Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753682AbeAJKwz (ORCPT + 1 other); Wed, 10 Jan 2018 05:52:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42531 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752821AbeAJKww (ORCPT ); Wed, 10 Jan 2018 05:52:52 -0500 Date: Wed, 10 Jan 2018 11:52:47 +0100 From: Jiri Olsa To: Corentin Labbe Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, namhyung@kernel.org, mark.rutland@arm.com, maxime.ripard@free-electrons.com, arnd@arndb.de, marc.zyngier@arm.com, linux-kernel@vger.kernel.org, mylene.josserand@free-electrons.com, linux-arm-kernel@lists.infradead.org Subject: Re: [BUG] sleeping function called from invalid context in perf_pmu_register() Message-ID: <20180110105247.GA25103@krava> References: <20171229085904.GC18393@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171229085904.GC18393@Red> User-Agent: Mutt/1.9.1 (2017-09-22) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 10 Jan 2018 10:52:51 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Fri, Dec 29, 2017 at 09:59:04AM +0100, Corentin Labbe wrote: SNIP > [ 1.494884] Exception stack(0xee845fb0 to 0xee845ff8) > [ 1.499933] 5fa0: 00000000 00000000 00000000 00000000 > [ 1.508100] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > [ 1.516267] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 > [ 1.522871] r5:c06c2528 r4:00000000 > > This is due to get_cpu() in cci_pmu_probe() in drivers/bus/arm-cci.c which disable preemption. > But now I do not know how to fix it. > My .config is below. yep, looks like cci_pmu_probe needs to be fixed.. can't call perf_pmu_register with preemption disabled jirka