[PATCH 2/2] cpc925_edac: support single-processor configurations
Segher Boessenkool
segher at kernel.crashing.org
Sun May 22 06:04:54 EST 2011
>>> If second CPU is not enabled, CPC925 EDAC driver will spill out
>>> warnings
>>> about errors on second Processor Interface. Support masking that out,
>>> by detecting at runtime which CPUs are present in device tree.
>>
>> That doesn't quite work, there can be multiple CPUs per processor
>> interface.
>
> Are you sure that there can be multiple CPUs on one PI with CPC925
> (CPC945 isn't supported by this driver anyway, IIUC).
I do not know any board that actually uses this. And, hrm, you cannot
use 970MP with CPC925 if I remember correctly.
It's still better to look what processor interfaces are working
correctly
though. But given that this is essentially a dead platform, I'm okay
with
this hack, if it works ;-)
>> You should be able to see which interfaces are enabled in some CPC925
>> register,
>> but maybe both _are_ enabled on your system (although one is not
>> connected),
>> which is causing the errors?
>
> Hmm, I dont't think this is the case: I'm using a MapleD board with
> two CPUs
> connected to separate PIs. However I can slect the service processor
> to enable only one CPU via selecting correct bootscript. In this case
> bootscript correctly enables only APIMASK_ADI0. However as cpc925_edac
> checks the APIEXCP itself, it sees the APIEXCP_ADI1 bit set and spills
> regular warnings about it (see below).
(no below :-) )
I think the service processor left that processor interface enabled (the
interface itself, not the exception stuff), so the exception thing will
signal exceptions any time the CPC925 sends snoops to that second
processor. This also might reduce performance.
Or maybe it is normal for the exception thing to signal errors on
disabled
interfaces.
> If you'd prefer I can add a check for APIMASK at cpc925_cpu_init()
> time,
> but I think that this will be less robust.
Yeah that's less robust, for sure.
Just keep what you have, but add a big fat comment that you are assuming
the processor interface id is identical to the MPIC processor id :-)
Did you test disabling physical CPU #0 as well?
Segher
More information about the Linuxppc-dev
mailing list