Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6557630ybi; Wed, 29 May 2019 09:29:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwVaO2qVesZm6dh35+YldV6BxPDNILvyap68L6hx3vX4poMM2NuKdern3knbWlqJLPVRsu X-Received: by 2002:aa7:9a95:: with SMTP id w21mr33779144pfi.248.1559147365560; Wed, 29 May 2019 09:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559147365; cv=none; d=google.com; s=arc-20160816; b=ojY72ejvlKBksXogyLw3ZeYROoLxdtwSCQk0+4kmlWrJgz3RGE400nu+sj7KN+bDuh 22gY5xq1nMOVhUTkWhg7hmF3MGXdLAQHLKAK0KTvCmtdzMMwfXUFalrZi/XoflcnV3bh ZFXY9xIJKm1NsgcHkgYur94wv5JCc3b/SGmsfaRQPxj+TvCnY2FH3MJB8vTOiP6w6IKR CFRbd8Rw+wvHTXGkHeXfwAOXLZQdtiKrHSkARwDvLNj1Yxr2E0X/vngmtdFCJ3Ys/35e vSsTLf/ZRxJGpcsfe6Xl+4akwqVVYuKOmVumwdir3O4s0GdSoPRlVgnU2jyZdx5L7K/t Yd5Q== 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=IgGiw6BmTcrA9/DgObrvYBKS3Y4C6Zbg9chTfkTLbag=; b=bP6ob+lA3Nl8P+0ymIlJNYjhLwzknrBXwns+HIHWTOtnCFUXd/69U9PLjTcB19iU2r qwr1SkV7px4HE+IfRBJzn4s749MhVkyVGbJCDEtuYfIVrxV/Utd9QMYqIDzUp/IUZyZs KabPIMX8wsH89VXZHR5vpsbX+8vy5Zt36WZpIZvRs3leKuqQMN5feZqM4ZeznWh6HEK5 q4AQ9grDRB3fnEhSXk4fmAkShFOI7TyRsw9uqYXLkrPhB5DYMHQLYEjuFZay5WZ7sJi9 HEdso3STLT8z1Ee/c5fihqL61KTXf+Jy39zHQNBg+Oa/zsyliUWxqx6fHd+29ADGapKE E6Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dvz3s46l; 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 91si16384plh.398.2019.05.29.09.29.08; Wed, 29 May 2019 09:29:25 -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=dvz3s46l; 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 S1727202AbfE2Q1E (ORCPT + 99 others); Wed, 29 May 2019 12:27:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:54134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726062AbfE2Q1D (ORCPT ); Wed, 29 May 2019 12:27:03 -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 792D423D61; Wed, 29 May 2019 16:27:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559147223; bh=jpOp7EoUMeWEqkI+UWuufre8c2qL/FWHtQg28/LCXHc=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=dvz3s46lOxyXsLQ/D8guvasY1EuJFeDJKaTJ8GRUHAFxqgDtDireFEhObYeoThI9h M4aXfiEfutjr03JjlCEh9J1aXxiBR9uXSAUK/mc/IVTR69j62tvbU1+azKybFXgai4 b/uMMuomDBYln7Brt+X3pcLw2HEWltA3kXcemm3Q= Date: Wed, 29 May 2019 18:26:59 +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: <20190529161028.a6kpywzpjazgql5u@treble> Message-ID: References: <20190529161028.a6kpywzpjazgql5u@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, Josh Poimboeuf wrote: > hibernation_restore() is called by user space at runtime, via ioctl or > sysfs. So I think this still doesn't fix the case where you've disabled > CPUs at runtime via sysfs, and then resumed from hibernation. Or are we > declaring that this is not a supported scenario? Yeah I personally find that scenario awkward :) Anyway, cpuhp_smt_enable() is going to online even those potentially "manually" offlined CPUs, isn't it? Are you perhaps suggesting to call enable_nonboot_cpus() instead of cpuhp_smt_enable() here to make it more explicit? > Is there are reason why maxcpus= doesn't do the CR4.MCE booted_once > dance? I am not sure whether it's really needed. My understanding is that the MCE issue happens only after primary sibling has been brought up; if that never happened, MCE wouldn't be broadcasted to that core at all in the first place. But this needs to be confirmed by Intel. -- Jiri Kosina SUSE Labs