From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752880AbbLIQDT (ORCPT ); Wed, 9 Dec 2015 11:03:19 -0500 Received: from mx2.suse.de ([195.135.220.15]:49110 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752045AbbLIQDR (ORCPT ); Wed, 9 Dec 2015 11:03:17 -0500 Date: Wed, 9 Dec 2015 17:03:02 +0100 From: Borislav Petkov To: Michael Ellerman Cc: linux-kernel@vger.kernel.org, Stephen Rothwell , linux-next@vger.kernel.org, Scott Wood , Johannes Thumshirn Subject: Re: Crash caused by "EDAC: Rip out the edac_subsys reference counting" (was Re: linux-next: Tree for Dec 8) Message-ID: <20151209160301.GB10518@pd.tnic> References: <20151208154910.78d27c03@canb.auug.org.au> <1449657167.17265.4.camel@ellerman.id.au> <20151209111747.GA10518@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20151209111747.GA10518@pd.tnic> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2015 at 12:17:47PM +0100, Borislav Petkov wrote: > On Wed, Dec 09, 2015 at 09:32:47PM +1100, Michael Ellerman wrote: > > Presumably caused by the fact that edac_init() is subsys_initcall(), whereas > > corenet_gen_publish_devices() is arch_initcall(). > > Thanks for the report! > > Hmm, interesting, can you send .config please? > > I need to fix this dependency properly - edac_core needs to have > finished loaded *before* any other EDAC driver loads. Every other order > is wrong. Yeah, see Johannes' patch. Btw, calling a driver's probe function from outside the driver is a new low in driver design. Tztztz... -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --