Re: non-booting kernel caused by "parisc: Switch from GENERIC_CPU_DEVICES to GENERIC_ARCH_TOPOLOGY"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/31/22 16:44, Mikulas Patocka wrote:
>
>
> On Tue, 31 May 2022, Mikulas Patocka wrote:
>
>>> So, right now I'm somehow lost how I can help.
>>
>> If you don't know what causes it, I can try to add some debug printks into
>> the kernel and analyze it when I have time.
>>
>>> You could you send me your .config, then I'll check locally.
>>> Please also try a "make oldconfig" with your .config so that the options don't have any leftovers.
>>
>> I uploaded my config here:
>> https://people.redhat.com/~mpatocka/testcases/parisc-config-5.18.txt
>
> CONFIG_SCHED_MC is causing it. It's on in my config, off in your config.
> If I turn it off, the crash goes away.
>
> The crash happens in "sd_init":
>
> sd_span = sched_domain_span(sd);	sets sd_span to an empty cpumask.
> sd_id = cpumask_first(sd_span);		sets sd_id to 4 (it is out of
> 					range because CONFIG_NR_CPUS=4)
> sd->shared = *per_cpu_ptr(sdd->sds, sd_id);  sets sd->shared to NULL
> atomic_inc(&sd->shared->ref);		crashes without printing anything

Nice finding! Thanks.

I'm tempted to drop the CONFIG_SCHED_MC option completely from parisc...

Helge




[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux