Skip to contentSkip to conversation

PowerPC + SMP

DISCUSSION Stuart Yoder 2 participants 4 messages Apr 25, 2005 – Apr 26, 2005

lore
Share & tools
lore
#0 lore raw

Hi.

I am trying to figure out where in the PowerPC kernel the HID1 register is updated to enable bits dealing with cache coherency in an SMP system. Grepping through the arch/ppc source does not reveal much.

I have two 7447A processors and somewhere the ABE and SYNCBE bits in
HID1 need to be turned on to enable cache coherency. Is supposed to
happen in the bootloader prior to the kernel running??

Thanks,
Stuart Yoder

#1 lore raw
Quoted 5 lines · Stuart Yoder

Hi.
=A0
I am trying to figure out where in the PowerPC kernel the HID1=20 register is updated to enable bits dealing with cache coherency in an=20=

Quoted 7 lines

SMP system.=A0=A0 Grepping through the arch/ppc source does not reveal=20=

much.
=A0
I have=A0two 7447A processors and somewhere the ABE and SYNCBE bits in=20=

HID1=A0need to be turned on to enable cache coherency.=A0=A0 Is =

supposed to=20

Quoted 1 line

happen in the bootloader prior to the kernel running??

The expectation is that the bootloader normally handles such things.

- kumar

#2 lore raw

Thanks Kumar.

How can I know what assumptions the kernel makes about the state of the CPU/system when it begins execution? Is this clearly documented anywhere?

Do you know of open source bootloaders for Linux that would demonstrate how to set up the CPUs as the Linux kernel expects.

Thanks,
Stuart

Quoted 10 lines

-----Original Message-----
From: Kumar Gala [mailto:[email protected]]=20
Sent: Monday, April 25, 2005 4:40 PM
To: Stuart Yoder
Cc: [email protected]
Subject: Re: PowerPC + SMP
=20
=20
On Apr 25, 2005, at 4:10 PM, Stuart Yoder wrote:
=20

Quoted 6 lines
Quoted 4 lines

Hi.
=A0
I am trying to figure out where in the PowerPC kernel the HID1 register is updated to enable bits dealing with cache=20

coherency in an=20

Quoted 1 line

SMP system.=A0=A0 Grepping through the arch/ppc source does not =

reveal=20

Quoted 3 lines
Quoted 3 lines

much.
=A0
I have=A0two 7447A processors and somewhere the ABE and SYNCBE bits =

in

Quoted 11 lines
Quoted 1 line

HID1=A0need to be turned on to enable cache coherency.=A0=A0 Is=20

supposed to=20

Quoted 1 line

happen in the bootloader prior to the kernel running??

=20
The expectation is that the bootloader normally handles such things. =20
- kumar
=20
=20
=20
=20

#3 lore raw
Quoted 5 lines · Stuart Yoder

Thanks Kumar.

How can I know what assumptions the kernel makes about the state of the
CPU/system when it begins execution? Is this clearly documented anywhere?

Unfortunately this is something we dont have clearly documented today. As they say the code is the documentation.

Quoted 2 lines

Do you know of open source bootloaders for Linux that would demonstrate
how to set up the CPUs as the Linux kernel expects.

No, maybe take a look at linuxbios, not sure if it does SMP or not. However, I'm not aware of any open source PPC SMP bootloaders.

- kumar