From patchwork Mon Jan 11 22:49:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 8012571 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 03E3D9F1C0 for ; Mon, 11 Jan 2016 22:49:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F885200CF for ; Mon, 11 Jan 2016 22:49:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 85FC020148 for ; Mon, 11 Jan 2016 22:49:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758752AbcAKWt3 (ORCPT ); Mon, 11 Jan 2016 17:49:29 -0500 Received: from v094114.home.net.pl ([79.96.170.134]:62917 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751717AbcAKWt3 (ORCPT ); Mon, 11 Jan 2016 17:49:29 -0500 Received: from cmv19.neoplus.adsl.tpnet.pl (83.31.149.19) (HELO vostro.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer v0.80) id 60d0c468964516c7; Mon, 11 Jan 2016 23:49:27 +0100 From: "Rafael J. Wysocki" To: Guenter Roeck Cc: Tony Lindgren , Tomeu Vizoso , Russell King , Kevin Hilman , linux-arm-kernel@lists.infradead.org, "linux-omap@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-pm@vger.kernel.org" Subject: Re: arm qemu boot failures in -next due to 'PM / Domains: add setter for dev.pm_domain' Date: Mon, 11 Jan 2016 23:49:59 +0100 Message-ID: <7302125.veLBHLkdLG@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.4.0; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160111200450.GA16902@roeck-us.net> References: <5693EB8A.40802@roeck-us.net> <20160111185459.GZ12777@atomide.com> <20160111200450.GA16902@roeck-us.net> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, WEIRD_PORT autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Monday, January 11, 2016 12:04:50 PM Guenter Roeck wrote: > On Mon, Jan 11, 2016 at 10:55:00AM -0800, Tony Lindgren wrote: > > * Guenter Roeck [160111 09:51]: > > > Hi, > > > > > > I see 6 out of 24 arm qemu tests failing in next-20160111. Bisect points > > > to commit 989561de9b51 ("PM / Domains: add setter for dev.pm_domain"). > > > Failures are silent - there is no output on the console. > > > Affected tests are > > > > > > arm:beagle:multi_v7_defconfig:omap3-beagle > > > arm:beaglexm:multi_v7_defconfig:omap3-beagle-xm > > > arm:overo:multi_v7_defconfig:omap3-overo-tobi > > > arm:beagle:omap2plus_defconfig:omap3-beagle > > > arm:beaglexm:omap2plus_defconfig:omap3-beagle-xm > > > arm:overo:omap2plus_defconfig:omap3-overo-tobi > > > > > > For details please see the 'next' column at http://server.roeck-us.net:8010/builders. > > > > > > Reverting the offending commit fixes the problems. > > > > > > Please let me know if there is anything I can do to help tracking down the problem. > > > > The following fixes the booting, but I wonder if it's a > > Yes, it does. > > Tested-by: Guenter Roeck > > > proper fix? > > > That I don't know. If I'm not mistaken, what happens is that device_is_bound() tries to dereference dev->p which is NULL. If that's the case, the appended one should help too. Can you please check? Tested-by: Tony Lindgren --- drivers/base/dd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-pm/drivers/base/dd.c =================================================================== --- linux-pm.orig/drivers/base/dd.c +++ linux-pm/drivers/base/dd.c @@ -234,7 +234,7 @@ late_initcall(deferred_probe_initcall); */ bool device_is_bound(struct device *dev) { - return klist_node_attached(&dev->p->knode_driver); + return dev->p && klist_node_attached(&dev->p->knode_driver); } static void driver_bound(struct device *dev)