lkml.org 
[lkml]   [2015]   [Sep]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [llvmlinux] percpu | bitmap issue? (Cannot boot on bare metal due to a kernel NULL pointer dereference)
From
On Wed, Sep 9, 2015 at 4:29 AM, Baoquan He <bhe@redhat.com> wrote:
>
> Seems it happened when call num_possible_cpus() which is a inline
> function to call __bitmap_weight(). So did you check
> lib/bitmap.c:__bitmap_weight() by objdump?
>
> setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:1 nr_node_ids:1
>

[ CC->TO Denys ]

Hi Boaquan,

Thanks for your reply.

I tried a lot in the meantime :-).

For example I applied a patch from Denys Vlasenko <dvlasenk@redhat.com>...

commit 1a1d48a4a8fde49aedc045d894efe67173d59fe0
"linux/bitmap: Force inlining of bitmap weight functions"

...on top of Linux v4.2.

This resulted in the same call-trace in QEMU.

I hacked around to only re-build mm/percpu.c with GCC (rest with
CLANG) with some guidance from Linus (compiler warapper-script) etc.

What do you need for outputs?
objdump of lib/bitmap.o?
From both builds - with GCC and CLANG?

Please give me clear instructions, Thanks!

Regards,
- Sedat -

[1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1a1d48a4a8fde49aedc045d894efe67173d59fe0


\
 
 \ /
  Last update: 2015-09-09 05:21    [W:0.148 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site