[OpenBIOS] [PATCH] sparc64 add cpuid to cpu node

Blue Swirl blauwirbel at gmail.com
Thu Dec 11 18:11:06 CET 2008


On 12/7/08, Igor Kovalenko <igor.v.kovalenko at gmail.com> wrote:
> On Sat, Sep 27, 2008 at 10:51 PM, Blue Swirl <blauwirbel at gmail.com> wrote:
>  > On 9/27/08, Igor Kovalenko <igor.v.kovalenko at gmail.com> wrote:
>  >> Hi!
>  >>
>  >>  Linux kernel expects at least "cpuid" property in cpu device node, or
>  >>  it halts execution. This patch adds one with dummy "1" value. This
>  >>  allows to make some progress into booting the kernel.
>  >>
>  >>  Please apply.
>  >
>  > Thanks, applied. The real implementation would be to probe the real ID
>  > from various registers but as we don't have SMP yet this is sufficient
>  > for now.
>  >
>
>
> Small correction: cpuid property of qemu cpu should be "0" for the
>  linux kernel to boot on qemu. This is because kernel is reading cpu
>  registers to find out current smp processor ID and it happens to find
>  out "0" cpuid because corresponding register is zeroed by qemu.
>  Currently kernel fails since there is no "0" cpu node in tree.
>
>  Please apply the following patch: openbios-sparc64-cpuid.patch

Thanks. I did not see any difference, but applied anyway.



More information about the OpenBIOS mailing list