Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3958624yba; Tue, 23 Apr 2019 12:27:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzt/wvfZdEEcyRMfrvWIU0GKxKUnETwfcodGAvhWvv7Q6XEQb4NCPlYz9WCAyXUc9WjYCN1 X-Received: by 2002:a63:fb4d:: with SMTP id w13mr26665474pgj.397.1556047676260; Tue, 23 Apr 2019 12:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556047676; cv=none; d=google.com; s=arc-20160816; b=VT0LG/2/UWxHCHzOLMYXtBdrLad5Ik89/IJmCG59RRlGtYCh4i3WoFqSmmHVybQx/7 Ao3szqSavaRiMnI9rBvMTrNMncTQhA/jRJ31EUe+Zte7YeCq6I+KuWWvKSEoZLp8iZxj 3RCCVJt/aHBy0hgs7BFiTJjCqI4Gs5fwyRNgazjeFeLMweD7NwFaojUNw5h1Ph2amNdV jnyKSnl9jJW/gTc7lEyb9Lqo3QalzOeO5hLWrmSi5J6PQLLX0AzX8bj/oc9t/ntMlFuc NqQu+HR3FJyAsg0ggeB8j/jp/s1XIUdZgZrSfrIr2ld+zNTf96XWL6nk8xKBRv4+tE5V e7Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WP4G9WVvvp7Zl7pFv+60wIUYSGE55jMf3NxRJJgk0Zs=; b=mwozdSw00kLkSqF6s3n+ganvka3lw1IgzjhInAoHwq9pb46KhfWgbpMtTjYZe9xb92 n/HiITrEIRHQQ8H7J3FffAr27VKgYnQkg2CtVNOKTINqXMn50fzN1qpJADr2bQLWLCO/ y1np4ZAHDdZQbf8NZrnari0Np4nJKJTyPVBNi49/0uyaRLNgQd1+oglcLzeP2/EP00ud HOdZMoInc4N1jYiREm5iXJTACL36gpNu1DlVtOREBNXTVOKAxYZvVnuIdhyMvEzPw8jT nPCdf4/yJnjLeMrlxAYImt3SvWrK/Css35HAdYgF7WQrR1kfO/6oL5noEEUjHhwEPWaX ATYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=g94yYYWt; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i15si16903669pfj.115.2019.04.23.12.27.40; Tue, 23 Apr 2019 12:27:56 -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=fail header.i=@gmail.com header.s=20161025 header.b=g94yYYWt; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726793AbfDWT0L (ORCPT + 99 others); Tue, 23 Apr 2019 15:26:11 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:41503 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbfDWT0L (ORCPT ); Tue, 23 Apr 2019 15:26:11 -0400 Received: by mail-pl1-f193.google.com with SMTP id d9so2076154pls.8; Tue, 23 Apr 2019 12:26:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=WP4G9WVvvp7Zl7pFv+60wIUYSGE55jMf3NxRJJgk0Zs=; b=g94yYYWtPzN3KItE0dHLdgZjwmUjS81wxZPNGUHOao3GkMLE7f7WcC83SiEI6xv3st y6artZcMRQFDBxVGwrsomyVUggNi574kfxZAvZbaoByv/f+tGyG8g/lCVX1MHH0yR5r9 HpRb918nv8lbBcn4ai6fqBNg5ABxR3W9ir1a2pwdorM/RHR9oizcIRtfWSTsdnmbue/d any+DGZn3iYqInTjnv7xnBak0neOOlLge3ziTkstwBMvRlwCl9m0iPCLNgHUH9sA7wEK g/ky/YvxHmvGHoXlGu+9Uirxm38ilaFMgC/nAruAHYmf2Vw+Ot1eDcI8ZIoV+6XORpKK 4Weg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=WP4G9WVvvp7Zl7pFv+60wIUYSGE55jMf3NxRJJgk0Zs=; b=khFGqbsC9kmYsDYn0B8z4PF4VnR622MgJ2Ro6R9INJi0tTk615P/I4ZMGgMTrNYYql u4NwjeGD+krMw+TGqZgdHXmhHMoydNQBdVfHnUVDOt6ul0Sviz5imubCnsPSXrbL+Iu/ wcmx4Zsd5UGh8780+F5V++KJE40/rlEb9Mo7edHtvdS4au8/pr5wOeKfs/wUMJeKqmHA KW2MMrttTaV8MdwTE+goarHnKrxlUwWSOfEhwg851dyXPrdsHbdOVeJbtubHGM8nFTxl 6rkiz8ip8xuaDw6dUuT0gK6g0S90f7jI3Z3Nol6ADxoCfh6mDt6tBeGmauN9GBYEfPNv Gljg== X-Gm-Message-State: APjAAAWb99Pb5WRjrXY3tJQOuet8wwrjKoL9FB77ui2qj9+PIFluciTX dpBBFstS9udMh90dO0+2Svc= X-Received: by 2002:a17:902:9341:: with SMTP id g1mr28409829plp.81.1556047570085; Tue, 23 Apr 2019 12:26:10 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id l2sm18298380pgl.2.2019.04.23.12.26.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2019 12:26:08 -0700 (PDT) Date: Tue, 23 Apr 2019 12:26:07 -0700 From: Guenter Roeck To: Stephen Boyd Cc: Michael Turquette , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Miquel Raynal , Jerome Brunet , Russell King , Jeffrey Hugo , Chen-Yu Tsai Subject: Re: [PATCH v4 9/9] clk: fixed-factor: Let clk framework find parent Message-ID: <20190423192607.GA27297@roeck-us.net> References: <20190412183150.102131-1-sboyd@kernel.org> <20190412183150.102131-10-sboyd@kernel.org> <20190423180922.GA3463@roeck-us.net> <155604377791.15276.4869998549466063176@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <155604377791.15276.4869998549466063176@swboyd.mtv.corp.google.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 23, 2019 at 11:22:57AM -0700, Stephen Boyd wrote: > Quoting Guenter Roeck (2019-04-23 11:09:22) > > Hi, > > > > 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. > > > > > > Cc: Miquel Raynal > > > Cc: Jerome Brunet > > > Cc: Russell King > > > Cc: Michael Turquette > > > Cc: Jeffrey Hugo > > > Cc: Chen-Yu Tsai > > > Signed-off-by: Stephen Boyd > > > > This patch causes a substantial number of crashes of qemu boot tests in -next. > > > > Failed tests: > > arm:versatilepb:versatile_defconfig:aeabi:pci:scsi:mem128:versatile-pb:rootfs > > arm:versatilepb:versatile_defconfig:aeabi:pci:mem128:versatile-pb:initrd > > arm:versatileab:versatile_defconfig:mem128:versatile-ab:initrd > > arm:beagle:multi_v7_defconfig:sd:mem256:omap3-beagle:rootfs > > arm:beaglexm:multi_v7_defconfig:sd:mem512:omap3-beagle-xm:rootfs > > arm:overo:multi_v7_defconfig:sd:mem256:omap3-overo-tobi:rootfs > > arm:realview-pb-a8:realview_defconfig:realview_pb:mem512:arm-realview-pba8:initrd > > arm:realview-pbx-a9:realview_defconfig:realview_pb:arm-realview-pbx-a9:initrd > > arm:realview-eb:realview_defconfig:realview_eb:mem512:arm-realview-eb:initrd > > arm:realview-eb-mpcore:realview_defconfig:realview_eb:mem512:arm-realview-eb-11mp-ctrevb:initrd > > arm:integratorcp:integrator_defconfig:mem128:integratorcp:initrd > > arm:mps2-an385:mps2_defconfig:mps2-an385:initrd > > > > Most of the time the crash happens too early to generate a log, > > but here is one: > > > > [ 0.000000] [<2100bd59>] (unwind_backtrace) from [<2100b11f>] (show_stack+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 [<21038ff1>] (__clocksource_register_scale+0x9/0x40) > > [ 0.000000] [<21038ff1>] (__clocksource_register_scale) from [<212a8713>] (mps2_timer_init+0xaf/0x29c) > > [ 0.000000] [<212a8713>] (mps2_timer_init) from [<212a85b1>] (timer_probe+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. > > > > Reverting the crash fixes the problem. Bisect log attached. > > > > 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. > Yes, it done. Thanks for taking care of it. > 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. > It is all available at https://github.com/groeck/linux-build-test/. You would need an out-of-tree version of qemu to test mps2-an385, though; upstream qemu rejected the patches necessary to make it work for testing linux kernel images. Guenter