2009-06-05 02:52:52

by David Lang

[permalink] [raw]
Subject: only a single core (out of 8) initialized

this is 2.6.30-rc7 with a patch added to debug a nv sata driver
incompatibility with the Intel SSDs on a tyan motherboard

on one system it sees all 8 cores, on the other system it only initializes
one core.

can anyone help me spot what's going wrong in the one that's only seeing a
single core? If I'm reading things correctly it's seeing both sockets for
the NUMA setup, but then only initializing one core on the first socket.

David Lang


Attachments:
dmesg.works2 (46.82 kB)
dmesg.singlecore (34.65 kB)
Download all attachments

2009-06-05 03:13:33

by Yinghai Lu

[permalink] [raw]
Subject: Re: only a single core (out of 8) initialized

On Thu, Jun 4, 2009 at 7:52 PM, <[email protected]> wrote:
> this is 2.6.30-rc7 with a patch added to debug a nv sata driver
> incompatibility with the Intel SSDs on a tyan motherboard
>
> on one system it sees all 8 cores, on the other system it only initializes
> one core.
>
> can anyone help me spot what's going wrong in the one that's only seeing a
> single core? If I'm reading things correctly it's seeing both sockets for
> the NUMA setup, but then only initializing one core on the first socket.

the works
ACPI: RSDP 00000000000fa8d0 00024 (v02 ACPIAM)
ACPI: XSDT 00000000d7fd0100 0005C (v01 112707 XSDT1716 20071127 MSFT 00000097)
ACPI: FACP 00000000d7fd0290 000F4 (v03 112707 FACP1716 20071127 MSFT 00000097)
ACPI: DSDT 00000000d7fd0470 04D61 (v01 0AAAA 0AAAA000 00000000 INTL 20051117)
ACPI: FACS 00000000d7fde000 00040
ACPI: APIC 00000000d7fd0390 000A0 (v01 112707 APIC1716 20071127 MSFT 00000097)
ACPI: MCFG 00000000d7fd0430 0003C (v01 112707 OEMMCFG 20071127 MSFT 00000097)
ACPI: OEMB 00000000d7fde040 00091 (v01 112707 OEMB1716 20071127 MSFT 00000097)
ACPI: SRAT 00000000d7fd51e0 00110 (v01 AMD HAMMER 00000001 AMD 00000001)
ACPI: HPET 00000000d7fd52f0 00038 (v01 112707 OEMHPET0 20071127 MSFT 00000097)
ACPI: SSDT 00000000d7fd5330 002E0 (v01 A M I POWERNOW 00000001 AMD 00000001)
ACPI: Local APIC address 0xfee00000

it is using MADT aka APIC

other one

ACPI: RSDP 00000000000f9af0 00024 (v02 ACPIAM)
ACPI: XSDT 00000000d7ff0100 0003C (v01 100108 XSDT0856 20081001 MSFT 00000097)
ACPI: FACP 00000000d7ff0290 000F4 (v03 100108 FACP0856 20081001 MSFT 00000097)
ACPI: DSDT 00000000d7ff0470 04D4E (v01 0AAAA 0AAAA000 00000000 INTL 20051117)
ACPI: FACS 00000000d7ffe000 00040
ACPI: MCFG 00000000d7ff0430 0003C (v01 100108 OEMMCFG 20081001 MSFT 00000097)
ACPI: HPET 00000000d7ff51c0 00038 (v01 100108 OEMHPET0 20081001 MSFT 00000097)
Scanning NUMA topology in Northbridge 24
it is using MPTABLE

looks that you update that BIOS the one.
please check if you loaded optimal setting in BIOS setup. and check
MADT and ACPI v3.0 option in BIOS

YH

2009-06-05 03:31:45

by Andrew Morton

[permalink] [raw]
Subject: Re: only a single core (out of 8) initialized

On Thu, 4 Jun 2009 19:52:36 -0700 (PDT) [email protected] wrote:

> this is 2.6.30-rc7

Were any earlier kernels OK?

> with a patch added to debug a nv sata driver
> incompatibility with the Intel SSDs on a tyan motherboard
>
> on one system it sees all 8 cores, on the other system it only initializes
> one core.
>
> can anyone help me spot what's going wrong in the one that's only seeing a
> single core? If I'm reading things correctly it's seeing both sockets for
> the NUMA setup, but then only initializing one core on the first socket.

good:
SMP: Allowing 8 CPUs, 4 hotplug CPUs

bad:
SMP: Allowing 1 CPUs, 0 hotplug CPUs

perhaps due to
ACPI: No APIC-table, disabling MPS

You could have a poke around in arch/x86/kernel/smpboot.c() and find
out what happened here. I'd be suspecting this code triggered:

/* no processor from mptable or madt */
if (!num_processors)
num_processors = 1;

because ACPI doesn't like that board.

Did you look into updating the BIOS?

2009-06-05 03:52:49

by David Lang

[permalink] [raw]
Subject: Re: only a single core (out of 8) initialized

On Thu, 4 Jun 2009, Andrew Morton wrote:

> Subject: Re: only a single core (out of 8) initialized
>
> On Thu, 4 Jun 2009 19:52:36 -0700 (PDT) [email protected] wrote:
>
>> this is 2.6.30-rc7
>
> Were any earlier kernels OK?
>
>> with a patch added to debug a nv sata driver
>> incompatibility with the Intel SSDs on a tyan motherboard
>>
>> on one system it sees all 8 cores, on the other system it only initializes
>> one core.
>>
>> can anyone help me spot what's going wrong in the one that's only seeing a
>> single core? If I'm reading things correctly it's seeing both sockets for
>> the NUMA setup, but then only initializing one core on the first socket.
>
> good:
> SMP: Allowing 8 CPUs, 4 hotplug CPUs
>
> bad:
> SMP: Allowing 1 CPUs, 0 hotplug CPUs
>
> perhaps due to
> ACPI: No APIC-table, disabling MPS
>
> You could have a poke around in arch/x86/kernel/smpboot.c() and find
> out what happened here. I'd be suspecting this code triggered:
>
> /* no processor from mptable or madt */
> if (!num_processors)
> num_processors = 1;
>
> because ACPI doesn't like that board.
>
> Did you look into updating the BIOS?

this is actually the newer of the two systems. I've already escalated up
to Tyan about the fact that this board won't see the Intel SSD drives
(unless you hotplug the drive). I've forwarded this to them as well. their
website does show a newer bios than what was shipped to me.

David Lang

2009-06-05 16:48:18

by David Lang

[permalink] [raw]
Subject: Re: only a single core (out of 8) initialized

On Thu, 4 Jun 2009, Andrew Morton wrote:

> On Thu, 4 Jun 2009 19:52:36 -0700 (PDT) [email protected] wrote:
>
>> this is 2.6.30-rc7
>
> Were any earlier kernels OK?

sorry, I missed this question.

I was running 2.6.29.1 when I noticed this problem. I haven't tried older
kernels yet.

David Lang

>> with a patch added to debug a nv sata driver
>> incompatibility with the Intel SSDs on a tyan motherboard
>>
>> on one system it sees all 8 cores, on the other system it only initializes
>> one core.
>>
>> can anyone help me spot what's going wrong in the one that's only seeing a
>> single core? If I'm reading things correctly it's seeing both sockets for
>> the NUMA setup, but then only initializing one core on the first socket.
>
> good:
> SMP: Allowing 8 CPUs, 4 hotplug CPUs
>
> bad:
> SMP: Allowing 1 CPUs, 0 hotplug CPUs
>
> perhaps due to
> ACPI: No APIC-table, disabling MPS
>
> You could have a poke around in arch/x86/kernel/smpboot.c() and find
> out what happened here. I'd be suspecting this code triggered:
>
> /* no processor from mptable or madt */
> if (!num_processors)
> num_processors = 1;
>
> because ACPI doesn't like that board.
>
> Did you look into updating the BIOS?
>
>

2009-06-06 01:25:12

by Robert Hancock

[permalink] [raw]
Subject: Re: only a single core (out of 8) initialized

[email protected] wrote:
> On Thu, 4 Jun 2009, Andrew Morton wrote:
>
>> Subject: Re: only a single core (out of 8) initialized
>>
>> On Thu, 4 Jun 2009 19:52:36 -0700 (PDT) [email protected] wrote:
>>
>>> this is 2.6.30-rc7
>>
>> Were any earlier kernels OK?
>>
>>> with a patch added to debug a nv sata driver
>>> incompatibility with the Intel SSDs on a tyan motherboard
>>>
>>> on one system it sees all 8 cores, on the other system it only
>>> initializes
>>> one core.
>>>
>>> can anyone help me spot what's going wrong in the one that's only
>>> seeing a
>>> single core? If I'm reading things correctly it's seeing both sockets
>>> for
>>> the NUMA setup, but then only initializing one core on the first socket.
>>
>> good:
>> SMP: Allowing 8 CPUs, 4 hotplug CPUs
>>
>> bad:
>> SMP: Allowing 1 CPUs, 0 hotplug CPUs
>>
>> perhaps due to
>> ACPI: No APIC-table, disabling MPS
>>
>> You could have a poke around in arch/x86/kernel/smpboot.c() and find
>> out what happened here. I'd be suspecting this code triggered:
>>
>> /* no processor from mptable or madt */
>> if (!num_processors)
>> num_processors = 1;
>>
>> because ACPI doesn't like that board.
>>
>> Did you look into updating the BIOS?
>
> this is actually the newer of the two systems. I've already escalated up
> to Tyan about the fact that this board won't see the Intel SSD drives
> (unless you hotplug the drive). I've forwarded this to them as well.
> their website does show a newer bios than what was shipped to me.

Yeah, it seems like a BIOS problem on that system. It's missing a bunch
of the ACPI tables that the other system has.