Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1012283ybi; Fri, 24 May 2019 15:29:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoozEZZsh/MgCwzdqVS+5932X4aDyKZwiLZOiSoTW2hUmi3i9NOkFV68maFDRUgauGb2H1 X-Received: by 2002:a63:e408:: with SMTP id a8mr21440218pgi.146.1558736987792; Fri, 24 May 2019 15:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558736987; cv=none; d=google.com; s=arc-20160816; b=dIFFUuBQRmdTEQvKA5OGzqsdEJZTVq37y+8iZ9IqeDN484nQBzFNZDBfVtYNl95J+2 ledg0TA1i2yAgBZwMk7kayVi6ut+DN930CxOaPqoOtJjn/awoUOKSznbcy1rAFzdLYux B+pwVUh5d9Zau6DQMvYIuhvA4nanix53bgp4a2BUGOLyHu9vqIZgi4heljjZ2f3VbpOQ 5x77/Y2e0HkhXdhp7ZYo2Cg2+DJsMIz5bMP/bTG6QW+VdsQ7zSXIckt4F1VsY8nEui+Y 6+MzJWwMZbvuK1t5kiGupfSUz6sCHuWrxoyzCiR9tOYxTYKXZMBy0iPK2iN07iroCJHG klsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=AOsF0QBON6O1EpGLKSxUVqT2mf9vOMGUyoYHT9ZpdDM=; b=sX6XNQyOhkuAkd0RD3daUDMIzJpLD1EI8NfvWdb/3Nr5kWOMKikUg766v5JXo8xZUW sCwOBM942CgKtfohc4RoLaotpearPZPT3XFouWu5eOQGUMAYd15jP7kBYQ1tFfnUaIN6 S4P95fzVSyJ3mWdDa0gaXrlfOEXaULTAR7PsTYnpuF7rNRPGQ7JNIbXeTQXtiHpDnWTf aisXyaFcQbDwn/dIGSk9wRrfaytm3pm2ZRBt7VbWxFL0dnZyC1OPFGqah6smY3he8c9s PhgBGqdnRo14nYe7t1wL/m6WKYR1/cRD6Uk5reoFpjArfa5d9I01Le65v1+FRda6BNuF v3+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=St9heaFc; 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 bg17si5460866pjb.75.2019.05.24.15.29.32; Fri, 24 May 2019 15:29:47 -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=St9heaFc; 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 S2404388AbfEXW1W (ORCPT + 99 others); Fri, 24 May 2019 18:27:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:60674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404343AbfEXW1V (ORCPT ); Fri, 24 May 2019 18:27:21 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (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 786DF21848; Fri, 24 May 2019 22:27:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558736841; bh=SDoIvluJch9/n7yS60HKo4yatPF0jkw/bEYV06KPYVM=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=St9heaFc1DBQI4jtZg82szDgH3oHDso9H4ueTv1e3yw8VjnbQ68w00gU6ToxklC1J NMLfhfeMdLwB4zP+yqchvWdqMGG5CFEZil6VqhXwtuyqZPtknjvFGZLTr9JEzeR4rr SkpHSrHEZeyhx1MyGGtorXkeliIVadoW0Gkygj2k= Date: Sat, 25 May 2019 00:27:17 +0200 (CEST) From: Jiri Kosina To: Keith Busch cc: Jens Axboe , Christoph Hellwig , Hannes Reinecke , Keith Busch , Sagi Grimberg , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Subject: Re: [5.2-rc1 regression]: nvme vs. hibernation In-Reply-To: <20190524154429.GE15192@localhost.localdomain> Message-ID: References: <20190524154429.GE15192@localhost.localdomain> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 May 2019, Keith Busch wrote: > > Something is broken in Linus' tree (4dde821e429) with respec to > > hibernation on my thinkpad x270, and it seems to be nvme related. > > > > I reliably see the warning below during hibernation, and then sometimes > > resume sort of works but the machine misbehaves here and there (seems like > > lost IRQs), sometimes it never comes back from the hibernated state. > > > > I will not have too much have time to look into this over weekend, so I am > > sending this out as-is in case anyone has immediate idea. Otherwise I'll > > bisect it on monday (I don't even know at the moment what exactly was the > > last version that worked reliably, I'll have to figure that out as well > > later). > > I believe the warning call trace was introduced when we converted nvme to > lock-less completions. On device shutdown, we'll check queues for any > pending completions, and we temporarily disable the interrupts to make > sure that queues interrupt handler can't run concurrently. Yeah, the completion changes were the primary reason why I brought this up with all of you guys in CC. > On hibernation, most CPUs are offline, and the interrupt re-enabling > is hitting this warning that says the IRQ is not associated with any > online CPUs. > > I'm sure we can find a way to fix this warning, but I'm not sure that > explains the rest of the symptoms you're describing though. It seems to be more or less reliable enough for bisect. I'll try that on monday and will let you know. Thanks, -- Jiri Kosina SUSE Labs