Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5417783ybi; Tue, 28 May 2019 12:44:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5CTg5SstavAV0dk1KJWC8yZyw+TucIv13LaaKKToQlrz77COrQnCP1wBTU5oKZzp3epyd X-Received: by 2002:aa7:9e91:: with SMTP id p17mr19801672pfq.162.1559072672759; Tue, 28 May 2019 12:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559072672; cv=none; d=google.com; s=arc-20160816; b=t0nMhW1/cFd1LMmJu/NZA3qJmlyvmaVVpSBCd+gUVSdNoi92/o9irbp2g2JjrrCUsm t2tWsH9HK6p+cOF6faQczK+K77wIjwovo153AFTs+14H7s39+za50gMy4vIRQ3v0BwNX Npxtig/BCfx7GYLawaOstyElTwugCzO5ljBkv0f4x99XGxNzcALfQ1ReFv7j1pkD/mv1 h2qYqKCmZVcjjiCzCHgzhbLeYBXyIpf4H6/7sN3tIUXnumT3Yfbp0DL/PLHrEwnRQD1x NYVZzp7UdgfWxN1cAotl4qLe27D4pY2itAL2z5+Oj+/JHJIGR3S4EYpsd3etNRm0rDxO ozrw== 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=oUMDfX7Ds/z/6Q3p6SvyZihNpW+OfHkBoYcflieCrs0=; b=bfxSLpcdES0NaErVYvct72cqxD5VevJThMvkR+lZx6YAKzI8nlZqwWefLLaRrQCb+W xQyZjCeYnRIMXGREmOWrnV4qGARBBrO/bsniiN8+xuX8vY6Kn1Xx2wQTVMYPbglZjX7q 4OHTgq+Z2NEITjm+P3SGHCTvQuXY0fDq9k9megeB/Y7cIVbJhUs4gKAiIUTgG34vn239 HYu36UC9PIUHlWX8D2egjiFQedQK31yGOjeAfGL7za2shrl4+vagc+d892DmBBOlS3iK 6TlgVwd9UFjn990J1Wz0pj1NiyUU3AKCO2iMEtXZaxYOY5n8gToJEpa18OfZgbEUL7ve /ZDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=e1nbRXCK; 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 ce1si23260069plb.338.2019.05.28.12.44.16; Tue, 28 May 2019 12:44:32 -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=e1nbRXCK; 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 S1727619AbfE1TWV (ORCPT + 99 others); Tue, 28 May 2019 15:22:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:33020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726876AbfE1TWU (ORCPT ); Tue, 28 May 2019 15:22:20 -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 486F420717; Tue, 28 May 2019 19:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559071339; bh=NNBPdal1/mPJSYY/vCIJCUtKr1A1D9YM+1nS3i59aSE=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=e1nbRXCK4zkM43bwpA5IrqL1jWKct4Vq1WA8Ly1whHC4PevDXtD8UwtxpDcbwlBcX u/Iy2IByYwwRF19Qp4GyUTYlrxIALyEi6wSSyzRpxuAIegbR20IpBovAr6moj9KZWm p33c+UH3muKLCd+niSSyVHKnZqH4ONYuiwzaoRzE= Date: Tue, 28 May 2019 21:22:14 +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: Re: "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 Tue, 28 May 2019, Jiri Kosina wrote: > [ 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. Thomas figured it out (and this should be really more widespread than just my machine :) ). nosmt forces HT siblings to mwait, but that explodes after %cr3 change during resume, as the mwait target address is all of a sudden not valid anymore for neither of the hyperthreads. That also explains why I apparently didn't see it that regularly with kaslr disabled. Nothing to do with nvme, so let's not continue coming up with proper fix in this thread. Thanks, -- Jiri Kosina SUSE Labs