Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3596860imm; Mon, 20 Aug 2018 01:08:36 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzK8qj2ONDqqKc42ugvsADHqoKPptIBb78W7hbi/lgxiFK6jabOadkLsuAsdxzznbQbzisN X-Received: by 2002:a62:ea05:: with SMTP id t5-v6mr47161226pfh.228.1534752516704; Mon, 20 Aug 2018 01:08:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534752516; cv=none; d=google.com; s=arc-20160816; b=A1JcSkgFa49Aiqc5s9mEmgUeMHQpftCTOwGgJmqfdGUui1U7UbNR0if/DuEtHOC6Bo U4g68n++Is0vqLjuXlphCypolZfsWr7lSyw4CdafS8YfptoBB7F/AlOioNog3rFsFAdv H1+5J/xhIkgaj0Wo4NEULBgfT88FS16p1rqJ9cNcKEaggn8iHPfsokwwgqplgjO7BDIN 2hIoZYY3TIKajxKz0eSJS6Rjlt1fsRdkgb5rSGOs7Aa1MZ2gNzqlmHNqk0Jd/Dt21diI tpwFDbrUyFGM40107F32+3YWB8ogBxd7mqmDTr/FO4JvmFQmclO0LNjZ2M3uhD3Npri2 nGTg== 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=172Pirb3PwhpIB7n0kyNAEjNpT5gZf6X6NlUEKw0HVs=; b=ud7d0/hPYB3utU2k813VlS9CetWgIVZJcFFuawosHb7oIiqjkzIZmwURRuJdYGhLUC CwcJyaoO3v/Ll5KEhRBEMDveGao1eaqUQB56daJmFop2nfUTSjfRGoCEHtvBIKwtqLny eLg93n8swuuMmEHWL3Csqcw00c0HFHromq9WunyGeULmNgFZ/yn07NklMQxiLdyvCu1l ZVncRExJ09OIiO4bDU7n8KEmQhGx29ix6KE/jz1o6aV9G94BU/rNFi5+zlT+Wluqacce MTQviXf3zRtdLQvQ04a0Z1tT56lxp6uxr8ULXpw1TsRCivZvWRggkk7x5J+ewYf/u4lK 5U2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@profitbricks-com.20150623.gappssmtp.com header.s=20150623 header.b=gYKmn+6Z; 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 u19-v6si4243543pgm.230.2018.08.20.01.07.56; Mon, 20 Aug 2018 01:08:36 -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=gYKmn+6Z; 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 S1726250AbeHTLUn (ORCPT + 99 others); Mon, 20 Aug 2018 07:20:43 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33815 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726119AbeHTLUn (ORCPT ); Mon, 20 Aug 2018 07:20:43 -0400 Received: by mail-wm0-f65.google.com with SMTP id l2-v6so6449364wme.1 for ; Mon, 20 Aug 2018 01:06:05 -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=172Pirb3PwhpIB7n0kyNAEjNpT5gZf6X6NlUEKw0HVs=; b=gYKmn+6ZIah1EplWReoN3aLFG9yjRaV16sSudj+340e0rj5ckau7fOnbSxF4iakqKR i7tSwXUzhVXYdXnjJUzEi1e/aCBG1i5seV91rcpoE2sjB6pSaLUMu5w8Wz2fRXSZPOWB hs8znrG5VKHHtrroaupsVoPhDFycKaVHjwY0aZneU2AQj8DGf4cpsWx8iKzzHiziG216 z+qbnFEit4AmUa3VOR2dTAHwzs5pIuAIR2YqL9o+HPCtEbA+uUiypLlrE9jUb7FaeI/4 HglzYn1brojx+dNEjhFKocL2yvEWj1QJ71CQMA7i34sZZvGwuIkEac3HyvpwDGU4Q0oC pZPA== 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=172Pirb3PwhpIB7n0kyNAEjNpT5gZf6X6NlUEKw0HVs=; b=qVk8MNv+xbXOgzh2QAGyob2L1yC9HduKqXUBq2Du6P+jfDu3gJK3bZT/3nqAXiLLZ1 P8TyoSUbZtEbV0U5iwQNSNJMOuB8OrhCxK2mbGlUIym6ko0N0BTLgIjahiwiJwjMJRo6 R+h2SPyonwaVO2GMykGOJdsDHBgQ09xSTu41n5HNGTnOVDsp1XSBbvqaDni5h3rBIXcb 5ss/3pq51uLQrlnC8AMjbMYIBHolDlRhIqZnXocQBhI1rAVgMjLUCEWhne2VI9+cq0f7 0Cz7HkjrgTeHWfz8TZtoMbIeXWzFcB5a/ZXTLgz9FIJ8vdTL/SC380pBXhgbX9vdiOiN yqSw== X-Gm-Message-State: AOUpUlHXEzuVmTuzfLS63oLXZq5Efr3XZqMLDt8+4uErnW5eQP0HMoUJ +Jqh2CUyz7WJH5QQusE7tzyK5VfGJLPAGnuexHwnMg== X-Received: by 2002:a1c:7ed8:: with SMTP id z207-v6mr24958285wmc.139.1534752364568; Mon, 20 Aug 2018 01:06:04 -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 10:05:49 +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 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 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=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 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 select IRQ_FORCED_THREADING select NEED_SG_DMA_LENGTH select PCI_LOCKLESS_CONFIG --=20 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