From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754716AbbIIC36 (ORCPT ); Tue, 8 Sep 2015 22:29:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53939 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752879AbbIIC3u (ORCPT ); Tue, 8 Sep 2015 22:29:50 -0400 Date: Wed, 9 Sep 2015 10:29:45 +0800 From: Baoquan He To: Sedat Dilek Cc: Tejun Heo , Christoph Lameter , LKML , Denys Vlasenko , Andrew Morton , David Rientjes , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Thomas Graf , Ingo Molnar , the arch/x86 maintainers Subject: Re: [llvmlinux] percpu | bitmap issue? (Cannot boot on bare metal due to a kernel NULL pointer dereference) Message-ID: <20150909022945.GB1998@dhcp-17-102.nay.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Thanks Baoquan