Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3857202ybb; Mon, 23 Mar 2020 08:58:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsAa/Dj1QenitTo6SYfplnscmeDEiXmlB5qellu7f/NFc4qeTC2BtYeF4t6H5FmeXb+ktSp X-Received: by 2002:aca:dc8b:: with SMTP id t133mr15273oig.98.1584979102319; Mon, 23 Mar 2020 08:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584979102; cv=none; d=google.com; s=arc-20160816; b=fUF1CqqgaBW+zzX+oKOP7K4MG8tyOiqkwbcRvQXCWJzT77+xwl1tlgv2e8zONwD/nk WMjWDMzw3fv0NaZ4U2nT51ARCCjptMiv3vomkmuHsfNyBuLg1HlZ4kvdnihbujjxe2QL YBMAx2Eb7/4AGuIOIhpN0NZGvhtYgYL/2/eYh8viMPdNAIf5+g2hcto+uUrRpOjzPIQF DLIDl0oN2hPbi4G5G299uDZscSy01J3qva5CV6bPW4Ua1AcNVZHvxEYClvPA7oSkT98R 4wQ7a4BZjZUzw/04eC+zzFXMvDik/NzheHpeRQTD/zZtfyDdsOoSF1diYvRJdC3Ui9uv vGyA== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=bmKpRgfOBPjHoUqSV1PaDxfAbnHG7+eRzGbSoIlzfb0=; b=FqGlF98RBTXY8FNsKTm4EngNp3aSQm6TYshWUL3mAjoIe6Pir+Yuf4/+naKbWWJfi4 VwjmMTpd4Q2pep76tR8q562Vm6M8J2rKn10o4CBzuRjfWmvqeqS+TfuYmtEt6m3sp8kE 94CxyxmCEFt7T4mzWMYFaQYGaSUkf1dOJNNlQs+pyiHNn5EqL405DlVBonaMIQESdGo0 iYdtr2/3lyA6Zz9nUrhxONttxtABd3v8eZSsmU1l1rZ8E4DLEWpHS3O3NRDChS/B9EUt IDzn9K6S0SPaToRlwmi6a2T278TCAX3IqzbPdzdNwRy23eUqn0HYqFb6It+JvIFnSUJX y+lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Jc49PZWH; 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 96si8045788otn.253.2020.03.23.08.58.09; Mon, 23 Mar 2020 08:58:22 -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=Jc49PZWH; 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 S1727381AbgCWP5c (ORCPT + 99 others); Mon, 23 Mar 2020 11:57:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:43810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727207AbgCWP5c (ORCPT ); Mon, 23 Mar 2020 11:57:32 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-105-78.bvtn.or.frontiernet.net [50.39.105.78]) (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 5EF9D20714; Mon, 23 Mar 2020 15:57:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584979051; bh=wWmp79oYZzRaFnYu+JbO0jOsvCTJ1l20wpyJ4PcbvPw=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=Jc49PZWHvYzMwgEdu9/+8tjzBQdvcrpBisMFFac0VVR/yE6Ao2qLGSm9mvnF7CMsL yJ70ErRJzt7E4d3oV5auDnn9+YvskerNhbygw41pO4VQbzRs8cxPaRA/DKrBsHmfbs 1HFEJ5J0xUnozzCuJum9y4r5VJDJ16a9IRQ0fQtY= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 2DC5A35226C6; Mon, 23 Mar 2020 08:57:31 -0700 (PDT) Date: Mon, 23 Mar 2020 08:57:31 -0700 From: "Paul E. McKenney" To: Qais Yousef Cc: Davidlohr Bueso , Josh Triplett , linux-kernel@vger.kernel.org Subject: Re: Hit WARN_ON() in rcutorture.c:1055 Message-ID: <20200323155731.GK3199@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200323154309.nah44so2556ee56g@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200323154309.nah44so2556ee56g@e107158-lin.cambridge.arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 23, 2020 at 03:43:09PM +0000, Qais Yousef wrote: > Hi > > I hit the following warning while running rcutorture tests. It only happens > when I try to hibernate the system (arm64 Juno-r2). Hibernating the system during rcutorture tests. Now that is gutsy! ;-) > Let me know if you need additional info. 1. Do you need this to work? If so, please tell me your use case. 2. What is line 1055 of your rcutorture.c? Here is my guess: if (stutter_wait("rcu_torture_writer") && !READ_ONCE(rcu_fwd_cb_nodelay) && !cur_ops->slow_gps && !torture_must_stop() && rcu_inkernel_boot_has_ended()) for (i = 0; i < ARRAY_SIZE(rcu_tortures); i++) if (list_empty(&rcu_tortures[i].rtort_free) && rcu_access_pointer(rcu_torture_current) != &rcu_tortures[i]) { rcu_ftrace_dump(DUMP_ALL); WARN(1, "%s: rtort_pipe_count: %d\n", __func__, rcu_tortures[i].rtort_pipe_count); If my guess is correct, it is complaining because of the lack of forward progress during the time the system was suspended. ;-) Or tell me exactly what kernel commit you are using, and I can look it up. Thanx, Paul > # echo suspend > /sys/power/disk > # [ 299.688526] rcu_torture_fwd_prog_nr: Duration 2913 cver 183 gps 285 > e[ 300.176051] rcu_torture_fwd_prog_cr Duration 39 barrier: 29 pending 9295 n_launders: 21213 n_launders_sa: 8224 n_max_gps: 100 n_max_cbs: 12823 cver 4 gps 10 > [ 300.190434] rcu_torture_fwd_cb_hist: Callback-invocation histogram (duration 72 jiffies): 1s/10: 11381:6 2s/10: 21139:7 3s/10: 1516:1 > # echo disk > /sys/power/state > [ 304.592943] PM: hibernation: hibernation entry > [ 304.612969] Filesystems sync: 0.003 seconds > [ 304.617616] Freezing user space processes ... (elapsed 0.004 seconds) done. > [ 304.629712] OOM killer disabled. > [ 304.642462] PM: hibernation: Preallocating image memory > [ 305.988263] PM: hibernation: Allocated 96990 pages for snapshot > [ 305.994311] PM: hibernation: Allocated 387960 kbytes in 1.33 seconds (291.69 MB/s) > [ 306.002022] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. > [ 306.013873] printk: Suspending console(s) (use no_console_suspend to debug) > [ 306.079141] Disabling non-boot CPUs ... > [ 306.082829] CPU1: shutdown > [ 306.082947] psci: CPU1 killed (polled 0 ms) > [ 306.090930] CPU2: shutdown > [ 306.092095] psci: CPU2 killed (polled 0 ms) > [ 306.101501] CPU3: shutdown > [ 306.101551] psci: CPU3 killed (polled 0 ms) > [ 306.112128] CPU4: shutdown > [ 306.112177] psci: CPU4 killed (polled 0 ms) > [ 306.130425] CPU5: shutdown > [ 306.130477] psci: CPU5 killed (polled 0 ms) > [ 306.135659] PM: hibernation: Creating image: > [ 306.135659] PM: hibernation: Need to copy 95345 pages > [ 306.135659] PM: hibernation: Image created (95345 pages copied) > [ 306.138145] Enabling non-boot CPUs ... > [ 306.152537] Detected PIPT I-cache on CPU1 > [ 306.152605] CPU1: Booted secondary processor 0x0000000000 [0x410fd080] > [ 306.156520] CPU1 is up > [ 306.170179] Detected PIPT I-cache on CPU2 > [ 306.170217] CPU2: Booted secondary processor 0x0000000001 [0x410fd080] > [ 306.171592] CPU2 is up > [ 306.185303] Detected VIPT I-cache on CPU3 > [ 306.185454] CPU3: Booted secondary processor 0x0000000101 [0x410fd033] > [ 306.191492] CPU3 is up > [ 306.205183] Detected VIPT I-cache on CPU4 > [ 306.205314] CPU4: Booted secondary processor 0x0000000102 [0x410fd033] > [ 306.212156] CPU4 is up > [ 306.226312] Detected VIPT I-cache on CPU5 > [ 306.226440] CPU5: Booted secondary processor 0x0000000103 [0x410fd033] > [ 306.235222] CPU5 is up > [ 306.392553] usb usb2: runtime PM trying to activate child device usb2 but parent (7ffb0000.ohci) is not active > [ 306.552039] hibernate: Hibernating on CPU 0 [mpidr:0x100] > [ 306.643894] PM: Using 3 thread(s) for compression > [ 306.648700] PM: Compressing and saving image data (95532 pages)... > [ 306.655007] PM: Image saving progress: 0% > [ 308.347979] ata2: SATA link down (SStatus 0 SControl 0) > [ 308.353489] ata1: SATA link down (SStatus 0 SControl 0) > [ 311.608370] ------------[ cut here ]------------ > [ 311.613127] WARNING: CPU: 3 PID: 261 at kernel/rcu/rcutorture.c:1055 rcu_torture_writer+0x664/0xa90 > [ 311.622360] Modules linked in: > [ 311.625495] CPU: 3 PID: 261 Comm: rcu_torture_wri Not tainted 5.6.0-rc6 #535 > [ 311.632690] Hardware name: ARM Juno development board (r2) (DT) > [ 311.638737] pstate: 00000005 (nzcv daif -PAN -UAO) > [ 311.643634] pc : rcu_torture_writer+0x664/0xa90 > [ 311.648266] lr : rcu_torture_writer+0x65c/0xa90 > [ 311.652896] sp : ffff800018a1bde0 > [ 311.656287] x29: ffff800018a1bde0 x28: ffff800014048140 > [ 311.661717] x27: 000000000000c134 x26: ffff800014046f08 > [ 311.667149] x25: ffff8000120ff000 x24: 0000000000000001 > [ 311.672581] x23: ffff800014046f08 x22: ffff800014045000 > [ 311.678012] x21: ffff800013279000 x20: ffff800014048938 > [ 311.683444] x19: ffff800014046000 x18: 00000000fffffffd > [ 311.688875] x17: 000000001824429d x16: ffff800014554170 > [ 311.694306] x15: 00000000fffffffe x14: 003d090000000000 > [ 311.699737] x13: 00003d0900000000 x12: 0000000000000003 > [ 311.705169] x11: 0000000000000c02 x10: 0000000000000000 > [ 311.710599] x9 : ffff8000137ed0a0 x8 : ffff0009757c8850 > [ 311.716030] x7 : 0000000000000000 x6 : ffff800018a1bcc0 > [ 311.721461] x5 : 0000000000000001 x4 : 0000000000000000 > [ 311.726891] x3 : 0000000000000080 x2 : 0000000002611501 > [ 311.732322] x1 : 0000000000000000 x0 : 0000000000000001 > [ 311.737754] Call trace: > [ 311.740263] rcu_torture_writer+0x664/0xa90 > [ 311.744544] kthread+0x13c/0x140 > [ 311.747852] ret_from_fork+0x10/0x18 > [ 311.751510] irq event stamp: 228320 > [ 311.755086] hardirqs last enabled at (228319): [] __local_bh_enable_ip+0x98/0x148 > [ 311.764414] hardirqs last disabled at (228320): [] do_debug_exception+0x1a8/0x258 > [ 311.773652] softirqs last enabled at (228318): [] rcu_torture_free+0x84/0x98 > [ 311.782537] softirqs last disabled at (228316): [] rcu_torture_free+0x60/0x98 > [ 311.791417] ---[ end trace dab722c9424166a2 ]--- > [ 311.998802] PM: Image saving progress: 10% > [ 312.211076] PM: Image saving progress: 20% > [ 312.311430] PM: Image saving progress: 30% > [ 312.949974] psmouse serio0: Failed to enable mouse on 1c060000.kmi > [ 313.351906] rcu-torture: rtc: 00000000e3ff6cce ver: 6966 tfle: 0 rta: 6967 rtaf: 0 rtf: 6957 rtmbe: 0 rtbe: 0 rtbke: 0 rtbre: 0 rtbf: 0 rtb: 0 nt: 123307 onoff: 0/0:0/0 -1,0:-1,0 0:0 (HZ=250) barrier: 0/ > 0:0 > [ 313.370772] rcu-torture: Reader Pipe: 75577741 19694 0 0 0 0 0 0 0 0 0 > [ 313.377628] rcu-torture: Reader Batch: 75556519 40915 0 0 0 0 0 0 0 0 0 > [ 313.384570] rcu-torture: Free-Block Circulation: 6966 6965 6964 6963 6962 6961 6960 6959 6958 6957 0 > [ 315.017220] PM: Image saving progress: 40% > [ 319.595899] psmouse serio1: Failed to enable mouse on 1c070000.kmi > [ 321.033476] PM: Image saving progress: 50% > [ 325.241344] PM: Image saving progress: 60% > [ 325.692738] PM: Image saving progress: 70% > [ 329.862793] PM: Image saving progress: 80% > [ 333.941109] PM: Image saving progress: 90% > [ 334.429067] PM: Image saving progress: 100% > [ 334.442732] PM: Image saving done > [ 334.446290] PM: hibernation: Wrote 382128 kbytes in 27.78 seconds (13.75 MB/s) > [ 334.458377] PM: S| > [ 334.747355] printk: Suspending console(s) (use no_console_suspend to debug) > > > Thanks > > -- > Qais Yousef