Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6662549ybi; Wed, 29 May 2019 11:05:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPlT44Vf3I6gnPeggfZkeo6W35oU2ELfoOB/xNLkKEheDlif5a881kg7gO4AJ2sON4Fgyc X-Received: by 2002:a62:3605:: with SMTP id d5mr131414081pfa.28.1559153120662; Wed, 29 May 2019 11:05:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559153120; cv=none; d=google.com; s=arc-20160816; b=fuuslhtoN6daec7Frc15Fic9w2M3iR2Ti3jfGyZ7nhniaZRy2EnmYs0rZFWeJ8X3tu oMOZAdfOCpi9I9khQ6WiP0yimVPG83Hf7rzBT6tfQut1hML9jt3WKnQfe5C47gJptS1g Id8+rRvOylfDbtYSSvrgFJWjHe0zhKwIzI4nBOXIB6WrZtjYSRCR2VSXvh47EttxYmvK QrYe2TX63BN5Iv/HDTTy63jl8Hae9irnUtAovM8j3BL8y1HRxacGXGmZPLXZNySiepQo iaNQtc7Cseo22HqlmuTM0Wgfbo9SVz29zNqBT0dJXzjX7X3QZwp77JHTUABMZDF051hy OFZQ== 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=zH+/HVJaMmTGtMq5uqlmQXHHwWt51DXWA487iIy/61M=; b=sPOl38z9vDMvVpYVP2ptNK/QxsXMv2fs1dTxXeevOkSaM5Iy7Wif+FiEgg56Ds9R0b wc1XRt87ibze61ihAg6+p1hqvhdiT0fD1TQ0pLF/NTrA0TCo9ogUrxrAc/xLUYkI5a6A lJPQD3aooMgGk+CaZIvW3zNvwEDmS4fOkbuqgKMdqcvt9+5u5jkD//bKQbDuVUPTSR03 RpJ9/TJRr5ZhpwFZHqRMH2J3CqYMtbKrSgmtkwLoRx2iEx4es+S5rFR+kgx3VUeQckKa viGeveEmJgiAd7vF7SizeT1dXGzwlYtFBqPpCxyFcImQtA8KpPgeijpKPB7Y079swsPM RIWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=R1xa4dU9; 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 q32si540108pjc.5.2019.05.29.11.05.03; Wed, 29 May 2019 11:05:20 -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=R1xa4dU9; 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 S1727428AbfE2SCw (ORCPT + 99 others); Wed, 29 May 2019 14:02:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:49328 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726024AbfE2SCv (ORCPT ); Wed, 29 May 2019 14:02:51 -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 5974524020; Wed, 29 May 2019 18:02:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559152971; bh=J1gLsjzvEkY7rS5KobvWe5qx+tH7eR2x9ewus4g2TrM=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=R1xa4dU9ejuliWV5FRLjxgbtuQU06pHSLaRZPEXd4lskPsDwwOR9WDmQRGwvqq973 n2FcuNBKw1mcHtppG5SjMdyef8q89ki2X14a3EBhF6h7OelgF+uHUrsWoyuQ4xPvKA Knso4QgKfDFQL2eJB2p0xzHQCAMXLKr3VP3HD0ms= Date: Wed, 29 May 2019 20:02:47 +0200 (CEST) From: Jiri Kosina To: Josh Poimboeuf cc: "Rafael J. Wysocki" , Pavel Machek , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Peter Zijlstra , x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] x86/power: Fix 'nosmt' vs. hibernation triple fault during resume In-Reply-To: Message-ID: References: <20190529161028.a6kpywzpjazgql5u@treble> <20190529171726.obom7xql72bgbjhc@treble> 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 Wed, 29 May 2019, Jiri Kosina wrote: > The target kernel only onlines the CPUs which were online at the time of > hibernation (and are therefore in frozen_cpus mask). Hm, there is a catch though. After resume, the SMT siblings are now in hlt instead of mwait. Which means that the resumed kernel has to do one more online/offline cycle for them, to push them to mwait again. Bah. I'll send v3 shortly, so please don't apply v2 just yet. -- Jiri Kosina SUSE Labs