Skip to contentSkip to conversation

/proc/sys/kernel/l2cr and the 750FX

PATCH Guy M. Streeter 3 participants 5 messages Nov 14, 2003 – Nov 21, 2003

lore
Share & tools
lore
#0 lore raw

In September I posted a version of this patch, which corrects the
formatted display of the L2CR register for 750FX processors. Tom Rini suggested that it should use a cpu feature flag instead of the processors version register, and also that the change might already have been made in later kernel source.
I have check all the 2.4.23+ and 2.6.0 source trees, and I don't see
any fix for this. I have changed the patch to use a feature flag instead of checking the PVR. I would like to see this change considered for inclusion.

thanks,
--Guy

arch/ppc/kernel/cputable.c +4 -3
@@ -167,7 +167,7 @@ struct cpu_spec	cpu_specs[] = {
     	0xffffff00, 0x70000100, "750FX",
     	CPU_FTR_SPLIT_ID_CACHE | CPU_FTR_CAN_DOZE | CPU_FTR_USE_TB |
 	CPU_FTR_L2CR | CPU_FTR_TAU | CPU_FTR_HPTE_TABLE | CPU_FTR_CAN_NAP |
-	CPU_FTR_DUAL_PLL_750FX | CPU_FTR_NO_DPM,
+	CPU_FTR_DUAL_PLL_750FX | CPU_FTR_NO_DPM | CPU_FTR_750FX_L2CR,
 	COMMON_PPC,
 	32, 32,
 	__setup_cpu_750
@@ -176,7 +176,8 @@ struct cpu_spec	cpu_specs[] = {
     	0xffffffff, 0x70000200, "750FX",
     	CPU_FTR_SPLIT_ID_CACHE | CPU_FTR_CAN_DOZE | CPU_FTR_USE_TB |
 	CPU_FTR_L2CR | CPU_FTR_TAU | CPU_FTR_HPTE_TABLE | CPU_FTR_CAN_NAP |
-	CPU_FTR_DUAL_PLL_750FX | CPU_FTR_HAS_HIGH_BATS | CPU_FTR_NO_DPM,
+	CPU_FTR_DUAL_PLL_750FX | CPU_FTR_HAS_HIGH_BATS | CPU_FTR_NO_DPM |
+	CPU_FTR_750FX_L2CR,
 	COMMON_PPC,
 	32, 32,
 	__setup_cpu_750
@@ -185,7 +186,7 @@ struct cpu_spec	cpu_specs[] = {
     	0xffff0000, 0x70000000, "750FX",
     	CPU_FTR_SPLIT_ID_CACHE | CPU_FTR_CAN_DOZE | CPU_FTR_USE_TB |
 	CPU_FTR_L2CR | CPU_FTR_TAU | CPU_FTR_HPTE_TABLE | CPU_FTR_CAN_NAP |
-	CPU_FTR_DUAL_PLL_750FX | CPU_FTR_HAS_HIGH_BATS,
+	CPU_FTR_DUAL_PLL_750FX | CPU_FTR_HAS_HIGH_BATS | CPU_FTR_750FX_L2CR,
 	COMMON_PPC,
 	32, 32,
 	__setup_cpu_750fx
arch/ppc/kernel/ppc_htab.c +38 -19

78 lines not on this page · raw message

include/asm-ppc/cputable.h +1 -0
@@ -75,6 +75,7 @@ extern struct cpu_spec		*cur_cpu_spec[];
 #define CPU_FTR_DUAL_PLL_750FX		0x00004000
 #define CPU_FTR_NO_DPM			0x00008000
 #define CPU_FTR_HAS_HIGH_BATS		0x00010000
+#define CPU_FTR_750FX_L2CR		0x00020000
 
 #ifdef __ASSEMBLY__
 
#1 lore raw
Quoted 9 lines · Guy M. Streeter

In September I posted a version of this patch, which corrects the
formatted display of the L2CR register for 750FX processors. Tom Rini suggested that it should use a cpu feature flag instead of the processors version register, and also that the change might already have been made in later kernel source.
I have check all the 2.4.23+ and 2.6.0 source trees, and I don't see
any fix for this. I have changed the patch to use a feature flag instead of checking the PVR. I would like to see this change considered for inclusion.

I've checked this into my 2.4.24-pre tree.

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 13 lines · Tom Rini
Quoted 9 lines · Guy M. Streeter

In September I posted a version of this patch, which corrects the
formatted display of the L2CR register for 750FX processors. Tom Rini suggested that it should use a cpu feature flag instead of the processors version register, and also that the change might already have been made in later kernel source.
I have check all the 2.4.23+ and 2.6.0 source trees, and I don't see
any fix for this. I have changed the patch to use a feature flag instead of checking the PVR. I would like to see this change considered for inclusion.

Quoted 1 line

I've checked this into my 2.4.24-pre tree.

.. with a change to turn CPU_FTR_DUAL_PLL_750FX into CPU_FTR_750FX, since that is applied to all revs of the 750FX.

--
Tom Rini
http://gate.crashing.org/~trini/

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#3 lore raw
Quoted 14 lines · Tom Rini
Quoted 13 lines · Tom Rini
Quoted 9 lines · Guy M. Streeter

In September I posted a version of this patch, which corrects the
formatted display of the L2CR register for 750FX processors. Tom Rini suggested that it should use a cpu feature flag instead of the processors version register, and also that the change might already have been made in later kernel source.
I have check all the 2.4.23+ and 2.6.0 source trees, and I don't see
any fix for this. I have changed the patch to use a feature flag instead of checking the PVR. I would like to see this change considered for inclusion.

Quoted 4 lines
Quoted 1 line

I've checked this into my 2.4.24-pre tree.

.. with a change to turn CPU_FTR_DUAL_PLL_750FX into CPU_FTR_750FX, since that is applied to all revs of the 750FX.

Cool. I had thought about doing that, and then my mind wandered off. :)

--Guy

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#4 lore raw

750FX and BDI2000, virtual address translation problem

Hello,

Anybody has experience with 750FX with BDI2000?
Whenever I enable address translation, BDI2000 cannot see the memory content.
It still can access registers of 750FX.
But, when I try to access memory, it says "PPC: time out ...", and I cannot proceed any more.
I'll appreciate your comment.

Dong-In

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/