* [PATCH] ppc32: Improve workaround for 74xx CPUs with broken BTIC
@ 2004-08-26 9:20 Benjamin Herrenschmidt
0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2004-08-26 9:20 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linus Torvalds, Linux Kernel list
Hi !
The previous workaround didn't enable the BTIC bit on CPUs where it
is broken. However, it seems some firmwares will unconditionally set
it, so this new patch will actually _clear_ it on CPUs where it is
broken.
Please apply,
Ben.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
===== arch/ppc/kernel/cpu_setup_6xx.S 1.5 vs edited =====
--- 1.5/arch/ppc/kernel/cpu_setup_6xx.S 2004-07-16 02:16:53 +10:00
+++ edited/arch/ppc/kernel/cpu_setup_6xx.S 2004-08-26 19:16:36 +10:00
@@ -218,10 +218,10 @@
/* All of the bits we have to set.....
*/
- ori r11,r11,HID0_SGE | HID0_FOLD | HID0_BHTE | HID0_LRSTK
+ ori r11,r11,HID0_SGE | HID0_FOLD | HID0_BHTE | HID0_LRSTK | HID0_BTIC
BEGIN_FTR_SECTION
- ori r11,r11,HID0_BTIC
-END_FTR_SECTION_IFCLR(CPU_FTR_NO_BTIC)
+ xori r11,r11,HID0_BTIC
+END_FTR_SECTION_IFSET(CPU_FTR_NO_BTIC)
BEGIN_FTR_SECTION
oris r11,r11,HID0_DPM@h /* enable dynamic power mgmt */
END_FTR_SECTION_IFCLR(CPU_FTR_NO_DPM)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-08-26 9:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-26 9:20 [PATCH] ppc32: Improve workaround for 74xx CPUs with broken BTIC Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®