Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3963042imm; Mon, 20 Aug 2018 07:36:57 -0700 (PDT) X-Google-Smtp-Source: AA+uWPywb7zCIQTP66bcWmVZ4znuF93eHuZpTutJhs3zS3aoyZ6A8OYz+k/UNOHkhK3RWI6TURBk X-Received: by 2002:a62:2646:: with SMTP id m67-v6mr48869197pfm.254.1534775817536; Mon, 20 Aug 2018 07:36:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534775817; cv=none; d=google.com; s=arc-20160816; b=dyxGuxG4rKBmqIH/SfHN/kLgfFUWGvwNSl3UZs3KruEZp4+6IuI4lc6ajFN/FY3vJG ohJD72hWVrgG9Pkghx7deBV6ax+YSi8ROAvED8RtyY2mk30WpFXiX8/CoABy/arYKFRD /f/fgCqF3gP74schXNnKJQjFcF5oJ1js9NCNrdI8PdAVrbr9/fHVetJsHWDBv4Cbat/T Q2V49EoI+DR0meekz0XCY8AC3TqYkDmVQQrgh7dOrGVkZ7glxUXZDJTfRl5h8JUOr9I5 agz5P5kAlc6lioDHnDOTxZCcB4WgTPvTEDwQkjQV8g7jar4t5yrnXxY+aqiEbrV+/X8r thtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:arc-authentication-results; bh=JsLiieC+cQBLTw5SD8oL1Qgnwzz8SoYUOjzsMtdxQck=; b=AiG0dwcPg0iUboYO/subon7dUX1cJuQjN0B1j5wbyYs4PbW/+2kWU8UT6YF4FUnwXn mYjPOo9LX7jzqJRQwO1Iga9ztAIdAMWwW8CisZCbkHkqYX0pn769qnrVBxgzDy4lfdVr I6Qvj/54JcjKBrTZq1UAgtZgP3Lds87lM4qEf1sS7YP46tOa50M6VEqxd17aQ1q2Hc0m aWLkk6dA/ZiwyNxOyxO2vUwysR8VRH3UqVo7oGJS3GhHUA7YV2abKU9N4TwIhSvyzNkM hMOj5j8lYRPU1CB6f38XvsiopAsaGlKGZCH37u/RJ8KQIQEZ/P884WBHmJEzQIFmh26G U2Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@profitbricks-com.20150623.gappssmtp.com header.s=20150623 header.b="M/CcnVQL"; 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 m126-v6si10741905pfb.126.2018.08.20.07.36.42; Mon, 20 Aug 2018 07:36:57 -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=@profitbricks-com.20150623.gappssmtp.com header.s=20150623 header.b="M/CcnVQL"; 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 S1727277AbeHTQg0 (ORCPT + 99 others); Mon, 20 Aug 2018 12:36:26 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:50324 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726740AbeHTQgZ (ORCPT ); Mon, 20 Aug 2018 12:36:25 -0400 Received: by mail-wm0-f66.google.com with SMTP id s12-v6so14299836wmc.0 for ; Mon, 20 Aug 2018 06:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=profitbricks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JsLiieC+cQBLTw5SD8oL1Qgnwzz8SoYUOjzsMtdxQck=; b=M/CcnVQLPigWG5dWcw7Ywpd3mu+mUU+uoLvHjr+S/mCuXhX7eOX27DlmgmIEUiHYtr llzNmA6LdzxT8hdceVDS8EPtldxC5t8jO0lXZN799yQHDqpLlPwxrZB1iJ3hF2v6yCjX Bl/QdIVBlUhG2yKoHwquqj1CcYhE5Id8PGULCMNF8aq+v0Usiee8VKBmZf4wFSTJloMa VjX+U2DjgvN/ueVCWsNvH8QoS8IvZTsGQQ1XLXbqb5jPBBDyV2L2bY97XAlq1UsZOhh7 HZ1dYw11gfl2x+lsbz1VpriG3K+qyzlF6khfjcN6vcbZhHKK1zwqzhPpAqcnZOmPGg7v 7Ppw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JsLiieC+cQBLTw5SD8oL1Qgnwzz8SoYUOjzsMtdxQck=; b=NLBjUSNbNKtj9c3nXmNxdLb4WN3tsWogKDrgyOYB/pHkwvamOvggEMAKv8XcJoLl3/ yLgISb9SqA93XndCXQWVIixnJqvDxOHSCzykrSNBegEDHHoR4/DIgWEyeMsPvlpGjiJK 3Pffr62opxDm/ZIZvLn/BB1YUU3A3v5B0wBHZlN8bNhMM+v+enveBhbsq84OcVXfqufq 8Lu0CZqCalNYiit8Vr7Q+YLbgXR8/7bQyE5n+0DFF1zXKGliT0wuHEiQiUOs+UCv5iOO 0sQWXcg/yuU3ozPbGkWKjRaddMvf4c56Zv1+zeUlj4SO8UYhcbEx/I5Hhx3FiUqMHpoR 3FDw== X-Gm-Message-State: AOUpUlFCnfc+rLaLCKjLEhVdYTWRDkxhui0LJsPb1bn6CgVBVOqFA8Ul G40cCJAlYG0FaGqYVgfMw5DpJrYAKZUIbgWZCfGY/g== X-Received: by 2002:a1c:ea17:: with SMTP id i23-v6mr26432602wmh.29.1534771246010; Mon, 20 Aug 2018 06:20:46 -0700 (PDT) MIME-Version: 1.0 References: <20180816155126.GA18296@kroah.com> <20180816163937.GA5105@kroah.com> <20180817170129.GE24945@kroah.com> In-Reply-To: From: Jinpu Wang Date: Mon, 20 Aug 2018 15:20:33 +0200 Message-ID: Subject: Re: [BUG]smt sysfs dir missing on 4.4.148 and 4.14.63 To: Thomas Gleixner Cc: Greg Kroah-Hartman , stable , linux-kernel@vger.kernel.org, Ingo Molnar , konrad.wilk@oracle.com, Peter Zijlstra , David Woodhouse Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 20, 2018 at 3:02 PM Thomas Gleixner wrote: > > On Mon, 20 Aug 2018, Jinpu Wang wrote: > > > On Sat, Aug 18, 2018 at 2:50 PM Thomas Gleixner wr= ote: > > > > > > 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_S= MP, > > > > > but I did explicitly enable CONFIG_HOTPLUG_CPU. > > > > > > > > > > That's why the smt dir is missing, and kernel panic when I boot w= ith > > > > > 'nosmt' or 'l1tf=3Dfull' probably also other combination. > > > > > > > > > > With CONFIG_HOTPLUG_CPU=3Dy, 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 ye= t > > > 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 right, sth like? diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index b0312f8..5852948 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -188,7 +188,8 @@ config X86 select HAVE_SYSCALL_TRACEPOINTS select HAVE_UNSTABLE_SCHED_CLOCK select HAVE_USER_RETURN_NOTIFIER - select HOTPLUG_SMT if SMP + select HOTPLUG_CPU if SMP + select HOTPLUG_SMT if SMP && HOTPLUG_CPU select IRQ_FORCED_THREADING select NEED_SG_DMA_LENGTH select PCI_LOCKLESS_CONFIG --=20 Thanks, Jack Wang Linux Kernel Developer ProfitBricks GmbH Greifswalder Str. 207 D - 10405 Berlin Tel: +49 30 577 008 042 Fax: +49 30 577 008 299 Email: jinpu.wang@profitbricks.com URL: https://www.profitbricks.de Sitz der Gesellschaft: Berlin Registergericht: Amtsgericht Charlottenburg, HRB 125506 B Gesch=C3=A4ftsf=C3=BChrer: Achim Weiss, Matthias Steinberg, Christoph Steff= ens