Skip to contentSkip to conversation

ppc32: Improve workaround for 74xx CPUs with broken BTIC

PATCH New Benjamin Herrenschmidt 1 participant 1 message Aug 26, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc32: Improve workaround for 74xx CPUs with broken BTIC

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.

===== arch/ppc/kernel/cpu_setup_6xx.S 1.5 vs edited =====

arch/ppc/kernel/cpu_setup_6xx.S +3 -3
@@ -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)