[PATCH] ppc32: Improve workaround for 74xx CPUs with broken BTIC

From: Benjamin Herrenschmidt
Date: Thu Aug 26 2004 - 04:39:07 EST


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@xxxxxxxxxxxxxxxxxxx>

===== 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)


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/