Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5154432ybi; Tue, 28 May 2019 08:25:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwACWC8KobGFgpHVwXs/wTVZkU2S6STKwmcCF/U/NKdyNm2GnYZeowrGmYvinihMsiwAIoO X-Received: by 2002:a63:7:: with SMTP id 7mr134824796pga.108.1559057107187; Tue, 28 May 2019 08:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559057107; cv=none; d=google.com; s=arc-20160816; b=O/xraIoQ4HUEIEhZLA6WKJlywWgFJ8IUxGuOlPQg47KwikfEQZmR/5phx21gWFAfpF JtmLgoYigBu9Do89mtBwMc5EQ32bSisHY9rs+erG3vpG+haj3TKrgAZWtwIntliTbf79 DYgsbumSBNrhNCzB3//S50H2d1nG8ad8hTAsjRHizoZuoCpxCbF+/bMOAXw77zMPQ3Hk NlsumogZ7Dg8FsNmkVZdjS6ArZVT8NyV9D6vLuzjuIF4U4r0FLyeQFNKhQZDRAICxUKG 40+LxEb2sh2qTOfU9flog5xlANEIwnbzESQSF8bEStOhYTC0mCUsDVGHX0Q+pcHVqpHX AKvQ== 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=3940xg/vg0IjXbKAXpaXm15XoS1yNYvDwnRiGzoLWxk=; b=Rz6eV/hivSHjQCPxb2tKvIkCsL0l8igslqU/ed2eXo2Xx3cJ+bJuDoYkHl7RpS3HHG D60e6ErBu0LfuSOUHT3QDtrVtFaB9zi4sMtfPfOovb173QYvFzfD4muM6Rwl1449165/ M6q36VZLqvnVFXoAPg7uVf+Yf3A5XsDPmvFEIvX60zYi+nu75DzgvCf+cPoLjMB56XFO jetR+9RGYyRrhhAMWXo34yeu/CNVyQOuQ2Jzevt52uGoLu8AI99xcZJpKjKDa3pZ0D4T RE+RQ8vN7+UVeADhvTGhnwb8i06+VbLEtWJFK11YGwAVuXqrYyAfU8eWFZlNFwc0r454 4Kug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VziaK6AG; 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 33si21869130pgy.582.2019.05.28.08.24.51; Tue, 28 May 2019 08:25:07 -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=VziaK6AG; 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 S1727783AbfE1PWC (ORCPT + 99 others); Tue, 28 May 2019 11:22:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:34630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726719AbfE1PWC (ORCPT ); Tue, 28 May 2019 11:22:02 -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 8697220665; Tue, 28 May 2019 15:21:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559056921; bh=PalDUvKBMeq6uuZipz24GPUGFzG5XkO+thRy1zun59M=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=VziaK6AGw22sF91IPVjUlLI7s8SEbHlbbR1CSpa1YqBT8UxDZoOWojiMM3382H+JT +MZcVPm1TwlQSpEFl0F1+rKWz7a9M3QCnT8QhNJXNH6pAr0zp3c4xRsuQ4szoKw6Am aaStj644mgDbJhWmtR/8ipXC9RtNt1dVev24xfLI= Date: Tue, 28 May 2019 17:21:56 +0200 (CEST) From: Jiri Kosina To: Dongli Zhang cc: Keith Busch , Jens Axboe , Sagi Grimberg , linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Keith Busch , Hannes Reinecke , Christoph Hellwig , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org, Josh Poimboeuf Subject: "nosmt" breaks resuming from hibernation (was Re: [5.2-rc1 regression]: nvme vs. hibernation) In-Reply-To: Message-ID: References: <20190524154429.GE15192@localhost.localdomain> <92a15981-dfdc-0ac9-72ee-920555a3c1a4@oracle.com> 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 Mon, 27 May 2019, Jiri Kosina wrote: > > Looks this has been discussed in the past. > > > > http://lists.infradead.org/pipermail/linux-nvme/2019-April/023234.html > > > > I created a fix for a case but not good enough. > > > > http://lists.infradead.org/pipermail/linux-nvme/2019-April/023277.html > > That removes the warning, but I still seem to have ~1:1 chance of reboot > (triple fault?) immediately after hibernation image is read from disk. [ some x86/PM folks added ] I isolated this to 'nosmt' being present in the "outer" (resuming) kernel, and am still not sure whether this is x86 issue or nvme/PCI/blk-mq issue. For the newcomers to this thread: on my thinkpad x270, 'nosmt' reliably breaks resume from hibernation; after the image is read out from disk and attempt is made to jump to the old kernel, machine reboots. I verified that it succesfully makes it to the point where restore_image() is called from swsusp_arch_resume() (and verified that only BSP is alive at that time), but the old kernel never comes back and triplefault-like reboot happens. It's sufficient to remove "nosmt" from the *resuming* kernel, and that makes the issue go away (and we resume to the old kernel that has SMT correctly disabled). So it has something to do with enabling & disabling the siblings before we do the CR3 dance and jump to the old kernel. I haven't yet been able to isolate this to being (or not being) relevant to the pending nvme CQS warning above. Any ideas how to debug this welcome. I haven't been able to reproduce it in a VM, so it's either something specific to that machine in general, or to nvme specifically. Dongli Zhang, could you please try hibernation with "nosmt" on the system where you originally saw the initial pending CQS warning? Are you by any chance seeing the issue as well? Thanks, -- Jiri Kosina SUSE Labs