Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2067823ybz; Thu, 23 Apr 2020 11:01:06 -0700 (PDT) X-Google-Smtp-Source: APiQypLNDgh7muWSox6xwF5kJqGcQdDp/M/GIxjMykIuL64Q3lG/HpG0unPfPggqTxNegDR7XvbD X-Received: by 2002:a05:6402:2032:: with SMTP id ay18mr3679901edb.16.1587664866140; Thu, 23 Apr 2020 11:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587664866; cv=none; d=google.com; s=arc-20160816; b=E/ZMv0cgZFbW6Rf4HU/i+AmEaZtmsyL3cXRq5T1DQU1lAIoWsQqkuMx+yby0m+t78Q NLVxNO8uWgqfz+f5pV92pWBSzbezptvJPekJDG+A/3AgFkJdessjld+tCl2MMipZBSKd YTe9Z4p8fxQE4enTd+ti0VYkSZjgbsJmDtY6Zg6mklwA1LAh/Q1VE8JAz7Gfac9U5Fhc IJTfKrCYwWm+HLvqvPUnfnwBAwwUNAmzWi0jw3duZo7N2UmxxSyhU55pJ2NMBWm205ra cpPRTKRNK1XwUlNnpzero028JKOuoJjd7D66pBVMGaEsKAsjC0N4LJ3DyWwzGAeQK/KZ 7uJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=SfTuN1GL8FeDNGb9kVTe6ZjLhJdk6HBFvGUQWKfTZaw=; b=hYwUOKB1OlCl4YN9e2A9XTDA0ifOS576G57gL+9125AIZU0BqA3nBL3pQ4cqdNEfQS QrNPbMwOYk3mYp4bAnXMHYoB3lUQDy5HgU4XCN8AKBuM+dT0ZBNdgQrBohSLHXHeGj8q fQ6uSqCSq7YetmiWt1U5HI4LiJcHaL5YxIgCJx4N3kWi2Va1nH0YQcxaBxLncSDAKPCQ B72qXTycoqhfPENMzpgFU9evS8VRIm+ul89CivzAno6kk3DjbeKgYsuWQbqevaVC5rkT PRz7n/+kAkcqX9KW030BFnHSGYXpgmqQCtIHbz3qwABE6bnbrKLdYZ9PLfhg06DllS0Q CFIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BTr1Wi4p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gh8si1649608ejb.301.2020.04.23.11.00.42; Thu, 23 Apr 2020 11:01:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BTr1Wi4p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730067AbgDWR6q (ORCPT + 99 others); Thu, 23 Apr 2020 13:58:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729996AbgDWR6p (ORCPT ); Thu, 23 Apr 2020 13:58:45 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 381D9C09B042 for ; Thu, 23 Apr 2020 10:58:45 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id i27so7625596ota.7 for ; Thu, 23 Apr 2020 10:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SfTuN1GL8FeDNGb9kVTe6ZjLhJdk6HBFvGUQWKfTZaw=; b=BTr1Wi4pt3CKPmc7eUWoYsjYOlCXW+9iFUIOKas6l/QvDPwXPtE0kDU0KOACjOgc6F 3e8Fvecfp5+5Arl6svwNLtfBHCnElBvOlAHABbY80B27DPZSYBpaPF4gydIDYcB+/IZ0 jPebPdOFlEOVPo3A7S+5NcPyh+onQKu7YIiL8UUyHBGwnLzR+nlsLeqZ9uz8chfx7Vcp +WeLr9iVCINd8JoBK2yliJsH8UE/JmH7bde0WqRLL7KRFlx8/1zfpVF2LTqdSnGQLZFH Bj1kDDzmNW+WSh6NdjXFmmkjt/nepry9y4gS+PLqrT9Wy4tqxyTGUV6RuOAnFogoA7Aj gD9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SfTuN1GL8FeDNGb9kVTe6ZjLhJdk6HBFvGUQWKfTZaw=; b=M/ye5iV6oKWkzUKMmxGAyAgigofbwqD4/QJQRD64ZDgZ2b9pOkOzondumtYFRkE/Bq QJRCoe/vzAPklKQ6BiNeXe2GcYPSU+bSibQLLmzHFfHmszhaba3f8yUp/uCVlj0/V+fB svzEQTBCPuQdetecXRWDWkh9l4rYN4X5yiZLRrzJp29Cf0GiAKDHOdp7a4wXYmBpL9bi ZUYYfwW0PGliPG6v9x08rU9U31S2sML8H05DvWsMcgmI9TnZ6xb8SPeC70AHGIeVTM22 /u7ath2svjtVl0L4whzWKcpgCJQPqhD40GbqETRVH6/otMmvjVsd+at+Su9ke063KLO5 XD/w== X-Gm-Message-State: AGi0Puau89uVj6rfHDAJRIwc+z32W4/AjaQpGdnjV0bCxivjxzflXq44 BhnkI+RYQM/72w0kT99cmn2YSu31WHceAio9/D/8NA== X-Received: by 2002:a54:4f02:: with SMTP id e2mr4120853oiy.10.1587664724608; Thu, 23 Apr 2020 10:58:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Stultz Date: Thu, 23 Apr 2020 10:58:33 -0700 Message-ID: Subject: Re: BUG: Invalid wait context with 5.7-rc2? To: Valentin Schneider Cc: "Paul E. McKenney" , Thomas Gleixner , lkml , Will Deacon , Sebastian Andrzej Siewior Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 23, 2020 at 10:29 AM John Stultz wrote: > > On Thu, Apr 23, 2020 at 10:19 AM Valentin Schneider > wrote: > > On 23/04/20 17:40, John Stultz wrote: > > > Hey Folks, > > > > > > Recently, I've seen some occasional hangs earlyish in boot on my > > > HiKey960 board with 5.7-rc1/rc2. The kernel isn't totally wedged as I > > > will see some kernel messages (firmware loading failures, etc) much > > > later if I leave it. But oddly sysrq doesn't respond. > > > > > > Figuring it must be some sort of deadlock, I added LOCKDEP and a bunch > > > of other debug options and started booting in a loop. So far I've not > > > been able to trigger the original problem, but I do see the following > > > every boot: > > > > > > > Interestingly I can't seem to reproduce that one with the latest master > > (5.7.0-rc2-00115-g8c2e9790f196). Is that with some of the extra h960 > > patches? > > There are additional patches for hikey960, but nothing from the > tracelog (which looked pretty generic). > But I'll pull everything out to confirm and re-check against > linus/master in case there's a recent fix. Yep. Still seeing it against linus/master with nothing else: [ 2.091225] clocksource: Switched to clocksource arch_sys_counter [ 2.091406] [ 2.098896] ============================= [ 2.102942] [ BUG: Invalid wait context ] [ 2.106991] 5.7.0-rc2-00069-g18bf34080c4c #250 Not tainted [ 2.112528] ----------------------------- [ 2.116574] swapper/1/0 is trying to lock: [ 2.120710] ffffff82194af258 (&pool->lock){..-.}-{3:3}, at: __queue_work+0x108/0x7c8 [ 2.128550] other info that might help us debug this: [ 2.133649] context-{2:2} [ 2.136290] 1 lock held by swapper/1/0: [ 2.140159] #0: ffffffc011d049c8 (rcu_read_lock){....}-{1:3}, at: __queue_work+0x48/0x7c8 [ 2.148513] stack backtrace: [ 2.151421] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.7.0-rc2-00069-g18bf34080c4c #250 [ 2.159593] Hardware name: HiKey960 (DT) [ 2.163554] Call trace: [ 2.166023] dump_backtrace+0x0/0x1a8 [ 2.169719] show_stack+0x18/0x28 [ 2.173066] dump_stack+0xdc/0x148 [ 2.176500] __lock_acquire+0x5c0/0x1568 [ 2.180458] lock_acquire+0x100/0x378 [ 2.184159] _raw_spin_lock+0x64/0x108 [ 2.187942] __queue_work+0x108/0x7c8 [ 2.191637] queue_work_on+0xd0/0xf0 [ 2.195248] timers_update_nohz+0x28/0x38 [ 2.199296] tick_setup_sched_timer+0x110/0x178 [ 2.203870] hrtimer_run_queues+0x114/0x170 [ 2.208092] run_local_timers+0x30/0x70 [ 2.211963] update_process_times+0x28/0x58 [ 2.216189] tick_periodic+0x48/0x148 [ 2.219884] tick_handle_periodic+0x28/0xc8 [ 2.224112] arch_timer_handler_phys+0x2c/0x50 [ 2.225533] VFS: Disk quotas dquot_6.6.0 [ 2.228600] handle_percpu_devid_irq+0xe0/0x460 [ 2.228605] generic_handle_irq+0x30/0x48 [ 2.228608] __handle_domain_irq+0x88/0xf8 [ 2.228613] gic_handle_irq+0x5c/0xb0 [ 2.228619] el1_irq+0xf4/0x1c0 [ 2.232654] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 2.237146] arch_cpu_idle+0x2c/0x230 [ 2.237151] default_idle_call+0x20/0x44 [ 2.237156] do_idle+0x1ec/0x2d0 [ 2.237159] cpu_startup_entry+0x24/0x48 [ 2.241701] pnp: PnP ACPI: disabled [ 2.245338] secondary_start_kernel+0x160/0x210