Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3962341imm; Mon, 20 Aug 2018 07:36:17 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxjsZCPIcRcSj262PIEYg6Xfrix4E9CbyArz+WA6t/x2MtjfgD1GCMxQldBYiRSVX75d4u6 X-Received: by 2002:a17:902:5a3:: with SMTP id f32-v6mr45943159plf.286.1534775777886; Mon, 20 Aug 2018 07:36:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534775777; cv=none; d=google.com; s=arc-20160816; b=YcmGOFtTZLi4O/RB2YiPJYnQXL2buOdjhE3qypnw2pA7zTzrLfDKVWJ1rVEPUvwbu2 uaJXrmRsDhCAR5BjBULjT4K/pBmI14PaaonaV5B1Yq8UkwLY06n0hd8V8jUFtSRhu1UM QYf68FC2RSdagg67PtJzZ3/CbOqA+PB/MwFt7cKmmzb/lqH+mth63NgKHnBncSCWZvVP 6Av14+4uUDnDD2d3AhL2vPO2dYdG/QxCrlJJ7Glv3QL+YuhuhvagBJgwjp3fV+RemCF4 ZxfGkdSyaCqprVdn5frssnFI9glZ+6kdaMtc0X0tZvAeFHBl3jOCMIGDRv5aUJ4/IQ7G A3+Q== 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 :arc-authentication-results; bh=jN2+MbPhgm/6Q5v2bz3+7ZHI0XXaQDru1P5gSDPB5O4=; b=yhtzHt3vFZ5vCFUeJYy0HqDzNMu5Abh7zqZ1LBsRsJvaWvqAiB9pS0FjSVq61Q5hq/ 3iSUdNcvD4KbytoihUpC5qD87J63/+j7wOaWpsa+3OhXO8ylUZGshPK+z5LGmPj+zJ6w JbKux9FLHCbvMk5DTMFgN4/Gxf9doroHaEqPHRWJnQj4dn/n+LeunBVOk9oRAblTNEcE zizYw7VdePTd+KGv00xathhMULA4No0CvIhM5YUf1p9xsS7BjShuhjXfP7MJlMrtSABs 6MkYfoeWKsi4uI4vN6t6NDWOn91fFE4FUxO23stFhj58C39y44TG1YdihQ1EikridfO8 taBw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f190-v6si10081420pfc.327.2018.08.20.07.36.02; Mon, 20 Aug 2018 07:36:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727038AbeHTQSJ (ORCPT + 99 others); Mon, 20 Aug 2018 12:18:09 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:55369 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726689AbeHTQSJ (ORCPT ); Mon, 20 Aug 2018 12:18:09 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1frjpH-0005Xa-OS; Mon, 20 Aug 2018 15:02:32 +0200 Date: Mon, 20 Aug 2018 15:02:31 +0200 (CEST) From: Thomas Gleixner To: Jinpu Wang cc: Greg Kroah-Hartman , stable , LKML , Ingo Molnar , konrad.wilk@oracle.com, Peter Zijlstra , David Woodhouse Subject: Re: [BUG]smt sysfs dir missing on 4.4.148 and 4.14.63 In-Reply-To: Message-ID: References: <20180816155126.GA18296@kroah.com> <20180816163937.GA5105@kroah.com> <20180817170129.GE24945@kroah.com> User-Agent: Alpine 2.21 (DEB 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, 20 Aug 2018, Jinpu Wang wrote: > On Sat, Aug 18, 2018 at 2:50 PM Thomas Gleixner wrote: > > > > On Fri, 17 Aug 2018, Greg Kroah-Hartman wrote: > > > On Fri, Aug 17, 2018 at 02:39:00PM +0200, Jinpu Wang wrote: > > > > > > > > I found the problem, CONFIG_HOTPLUG_SMT is enable due to CONFIG_SMP, > > > > but I did explicitly enable CONFIG_HOTPLUG_CPU. > > > > > > > > That's why the smt dir is missing, and kernel panic when I boot with > > > > 'nosmt' or 'l1tf=full' probably also other combination. > > > > > > > > With CONFIG_HOTPLUG_CPU=y, it works fine so far. > > > > > > So do we need a new configuration dependancy here to resolve this > > > problem? Why is this not an issue in Linus's tree? > > > > That's probably the same problem on Linus tree. Have not tested it yet > > though. I'll have a look. > > > > Thanks, > > > > tglx > > > Yeah, it's the same problem on Linus tree. > > Probably makes sense to do the following, I can sent a formal patch if > you think it's right thing to do: > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index b0312f8..8a52f0b 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -188,7 +188,7 @@ config X86 > select HAVE_SYSCALL_TRACEPOINTS > select HAVE_UNSTABLE_SCHED_CLOCK > select HAVE_USER_RETURN_NOTIFIER > - select HOTPLUG_SMT if SMP > + select HOTPLUG_SMT if SMP && HOTPLUG_CPU That works, but we might as well force 'select HOTPLUG_CPU if SMP' so the L1TF mitigations are functional. Sigh.... Thanks, tglx