Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3898768yba; Tue, 23 Apr 2019 11:24:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrts7P0J6sktcxCJ/pXFBGyLSZtRMEnfeVZusduvDbKYMztZr2FPbv8dwoDneI6WmpzOZB X-Received: by 2002:a63:5012:: with SMTP id e18mr25651411pgb.383.1556043849458; Tue, 23 Apr 2019 11:24:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556043849; cv=none; d=google.com; s=arc-20160816; b=hywSg612dopGCGjna8sHsSF3HdZ7veuCUkBlNHKZIGMq8p5QBvyw69tFjGi310dCHe dCWFjcIscWuKnqZ1OwDYyYE2uEu8fDIZJcmefeNg6ex7BqQOW7uzOktXwt1k3WfQFpUk IHs22b7ca+zoedr8DcYY5NMiDMmUrC1yJieUTsLd5TQy/BHgwS5Go9nGW+6J1xNVaXxu TCitv+GdsWdP6+jKc57GCQ+QX4O9aG8o0PCCVApfUwGgXkYjZtpFt8uz9TPLxKBIUCwJ kXf6nloGMQwfUmMofujlnqGMfPnF6pr7mTvoh2DrJJ5vYHSxFQ/qjvIu6jXBNWuzRSh5 7eag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:message-id:to:subject :from:cc:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=0bZy4aRY1v38y9GqPnZz1aWxu18iRww/fPMBYyZcoHc=; b=LK4lZ8f9fXHMyimb5nKiPeN1KHik0o2JvFR0w3gYfztGEl9dAFtDmnOoY26B9QvdJR Hyq+VVPCDaaNQIbD7PXygJq3yQ3oKbGgYa5ZhjMji2DeBZd7Cq0THWJAgSdBYknT4q0E 39lWeLlKq40UtbUf7SYfCZefhD/wkaZefn9BdG/X7HxMA/B7mYV8oXPDNglhA3lNsvAF Wia9uqMftaMxeM3dtwD8PJGsr/+mksB0Vku9PI1WMZ2g/ZXd+JRiPM26eehRa9wRmwoG 487SGLUprA03c4s9Y3H/gFP5RoI6tRyn9sQ9bR6ghA7IPxuMKktL/S5R4HBtG5eZMomC c2Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Gwc7dvzQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si16440005pfn.267.2019.04.23.11.23.55; Tue, 23 Apr 2019 11:24:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Gwc7dvzQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726292AbfDWSXA (ORCPT + 99 others); Tue, 23 Apr 2019 14:23:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:50592 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbfDWSXA (ORCPT ); Tue, 23 Apr 2019 14:23:00 -0400 Received: from localhost (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AEADE208E4; Tue, 23 Apr 2019 18:22:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556043778; bh=gtk6cJW3O1/O6x/j2ecHHClStItcbmry26/pT4Fy8VM=; h=In-Reply-To:References:Cc:From:Subject:To:Date:From; b=Gwc7dvzQe+22GYK5oBif2bBXMexIh1mCuP3sGydjDx/4jP71gRxhqb6iap9cfF0cJ d9NyHz8tJwLrT8U4iLs6oxfhTfv0PH5q7x1WzymBGDMcMa+6QqVZBw2NTYu1mgpHQX 6TMvPhbJzKw/wGycx/hl0HRbQ5F55rprPbMfAHLM= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20190423180922.GA3463@roeck-us.net> References: <20190412183150.102131-1-sboyd@kernel.org> <20190412183150.102131-10-sboyd@kernel.org> <20190423180922.GA3463@roeck-us.net> Cc: Michael Turquette , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Miquel Raynal , Jerome Brunet , Russell King , Jeffrey Hugo , Chen-Yu Tsai From: Stephen Boyd Subject: Re: [PATCH v4 9/9] clk: fixed-factor: Let clk framework find parent To: Guenter Roeck Message-ID: <155604377791.15276.4869998549466063176@swboyd.mtv.corp.google.com> User-Agent: alot/0.8 Date: Tue, 23 Apr 2019 11:22:57 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Guenter Roeck (2019-04-23 11:09:22) > Hi, >=20 > On Fri, Apr 12, 2019 at 11:31:50AM -0700, Stephen Boyd wrote: > > Convert this driver to a more modern way of specifying parents now that > > we have a way to specify clk parents by DT index. This lets us nicely > > avoid a problem where a parent clk name isn't know because the parent > > clk hasn't been registered yet. > >=20 > > Cc: Miquel Raynal > > Cc: Jerome Brunet > > Cc: Russell King > > Cc: Michael Turquette > > Cc: Jeffrey Hugo > > Cc: Chen-Yu Tsai > > Signed-off-by: Stephen Boyd >=20 > This patch causes a substantial number of crashes of qemu boot tests in -= next. >=20 > Failed tests:=20 > arm:versatilepb:versatile_defconfig:aeabi:pci:scsi:mem128:versati= le-pb:rootfs=20 > arm:versatilepb:versatile_defconfig:aeabi:pci:mem128:versatile-pb= :initrd=20 > arm:versatileab:versatile_defconfig:mem128:versatile-ab:initrd=20 > arm:beagle:multi_v7_defconfig:sd:mem256:omap3-beagle:rootfs=20 > arm:beaglexm:multi_v7_defconfig:sd:mem512:omap3-beagle-xm:rootfs = > arm:overo:multi_v7_defconfig:sd:mem256:omap3-overo-tobi:rootfs=20 > arm:realview-pb-a8:realview_defconfig:realview_pb:mem512:arm-real= view-pba8:initrd=20 > arm:realview-pbx-a9:realview_defconfig:realview_pb:arm-realview-p= bx-a9:initrd=20 > arm:realview-eb:realview_defconfig:realview_eb:mem512:arm-realvie= w-eb:initrd=20 > arm:realview-eb-mpcore:realview_defconfig:realview_eb:mem512:arm-= realview-eb-11mp-ctrevb:initrd=20 > arm:integratorcp:integrator_defconfig:mem128:integratorcp:initrd = > arm:mps2-an385:mps2_defconfig:mps2-an385:initrd >=20 > Most of the time the crash happens too early to generate a log, > but here is one: >=20 > [ 0.000000] [<2100bd59>] (unwind_backtrace) from [<2100b11f>] (show_st= ack+0xb/0xc) > [ 0.000000] [<2100b11f>] (show_stack) from [<211b2d27>] (Ldiv0_64+0x9/= 0x1a) > [ 0.000000] [<211b2d27>] (Ldiv0_64) from [<21038e87>] (clocks_calc_max= _nsecs+0x1d/0x62) > [ 0.000000] [<21038e87>] (clocks_calc_max_nsecs) from [<21038fb1>] (__= clocksource_update_freq_scale+0xe5/0x11c) > [ 0.000000] [<21038fb1>] (__clocksource_update_freq_scale) from [<2103= 8ff1>] (__clocksource_register_scale+0x9/0x40) > [ 0.000000] [<21038ff1>] (__clocksource_register_scale) from [<212a871= 3>] (mps2_timer_init+0xaf/0x29c) > [ 0.000000] [<212a8713>] (mps2_timer_init) from [<212a85b1>] (timer_pr= obe+0x49/0x80) > [ 0.000000] [<212a85b1>] (timer_probe) from [<2129d639>] (start_kernel= +0x1c5/0x2f4) > [ 0.000000] [<2129d639>] (start_kernel) from [<00000000>] ( (null)) > [ 0.000000] clocksource: mps2-clksrc: mask: 0xffffffff max_cycles: 0x0= , max_idle_ns: 0 ns > [ 0.000000] Division by zero in kernel. >=20 > Reverting the crash fixes the problem. Bisect log attached. >=20 Thanks for the report. This was bisected yesterday by kernelci.org (see https://lkml.kernel.org/r/5cbe596c.1c69fb81.e252.b9d0@mx.google.com for more details). Can you try the latest version of clk-next and see if it fixes the early crashes? The one-liner patch I attached in that thread should be all you need. It would be even better for kernelci to find the offending patch like you've done here and reply to the patch on the mailing list. Finally, can you share your qemu recipe? I can pull it into my testing and integration workflow so that this doesn't happen again.