Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp997123imm; Fri, 17 Aug 2018 10:03:10 -0700 (PDT) X-Google-Smtp-Source: AA+uWPysgFryDJPTZ+vAqXr4jZdOOQx5rywh6yXD6aBNNGny4bIbA+AKvD4N8P6U+Xcyjc/Ha9+H X-Received: by 2002:a62:23c2:: with SMTP id q63-v6mr37385161pfj.91.1534525390304; Fri, 17 Aug 2018 10:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534525390; cv=none; d=google.com; s=arc-20160816; b=mgxHKjONwOcJdq7wqkJE/ctB/oVrWOwC94OaLvlFypfGz6chgxyOM4bofraRxg2S9b GcTiVSjuynYQtROS0UK17QhWHWbq4/xms5nst5yzyfEl+O2DwM3KuR5RtIqTAoJIG5N5 yUG2cDGvJNF0+jyCsUXhUx7+VUyVPfcJPqhDDAa8Xvg1JltRHPcW88QdDdqx/g4tgo6R PMKshS5p5iH/q07RtVgLgr6YA20hWqGLOEh5wulWg/Hfz8cG/vc7UTpNjEE25Kg/eRCP 4QHcBnJRVYtt/mJpb7uq/+b/YoL7R2RRTJJGjWwzeo01RQMsdtQi2EmKyQUi4gfM2aPE 2kuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=1KeBdspLFn59PCFypJ/K9P539z7O8c78ZCturLq7bWs=; b=NWm/XyShAMCvvUaQNY43PJ9rqrdxrhjLeL1VKWxlhpVDWqEP5XWprg44TDUfv29nfE +hwc4q02AP+obTO/+yBcBGvypCrp7XgMBjjB/CHFQCcaLe3EDZCnsQP8GzQGK2OkueEx 0gzVKgRUoVrMvfe34bm5YV1xZMpx18Pm0Lqcoq/YTO9JZTLoZDx/052xOHEQTWixLZ2j rHNMSw0WbhjmUqMgmUshnbv6ivx8/L//CE3kdq+Zh3d9eeCBex9OIgj50CV0MXkQdoh7 zEUaeUiZo2t3h86pcaQQgT9qffns+X6XZuGWHm4xmSOZL6MOo9Y0ElDmuHdzspwj2xbm PVjA== 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 c22-v6si2597914pgk.237.2018.08.17.10.02.54; Fri, 17 Aug 2018 10:03:10 -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 S1728006AbeHQUFm (ORCPT + 99 others); Fri, 17 Aug 2018 16:05:42 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55780 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727828AbeHQUFl (ORCPT ); Fri, 17 Aug 2018 16:05:41 -0400 Received: from localhost (unknown [194.244.16.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id BD17ACBF; Fri, 17 Aug 2018 17:01:32 +0000 (UTC) Date: Fri, 17 Aug 2018 19:01:29 +0200 From: Greg Kroah-Hartman To: Jinpu Wang Cc: Thomas Gleixner , stable , linux-kernel@vger.kernel.org, Ingo Molnar , konrad.wilk@oracle.com Subject: Re: [BUG]smt sysfs dir missing on 4.4.148 and 4.14.63 Message-ID: <20180817170129.GE24945@kroah.com> References: <20180816155126.GA18296@kroah.com> <20180816163937.GA5105@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 17, 2018 at 02:39:00PM +0200, Jinpu Wang wrote: > On Thu, Aug 16, 2018 at 6:48 PM Jinpu Wang wrote: > > > > On Thu, Aug 16, 2018 at 6:39 PM Greg Kroah-Hartman > > wrote: > > > > > > On Thu, Aug 16, 2018 at 06:28:59PM +0200, Jinpu Wang wrote: > > > > On Thu, Aug 16, 2018 at 5:51 PM Greg Kroah-Hartman > > > > wrote: > > > > > > > > > > On Thu, Aug 16, 2018 at 05:43:23PM +0200, Jinpu Wang wrote: > > > > > > Hi Greg, hi Thomas, > > > > > > > > > > > > I noticed /sys/devices/system/cpu/smt dir is missing on 4.4.148 and > > > > > > 4.14.63, default setting. > > > > > > > > > > For 4.4, I would be amazed if anything was there, the backport was done > > > > > only to handle the local user issue, not the "full" protection. So > > > > > please try 4.9 or 4.14. > > > > Thanks for quick reply. Right, just checked. the patch for create the > > > > sysfs entry is missing. > > > > > > What patch is that? What is the git commit id that we missed? > > > > > > > > How about 4.17 and 4.18, do those trees work properly for you? > > > > I guess it's the same. > > > > > > > > > > > Tried stable/master branch 31130a16d459 ("Merge tag > > > > > > 'for-linus-4.19-rc1-tag' of > > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip") > > > > > > It's the same there. > > > > > > > > > > Ah, so we are bug compatible, good :) > > > > I will try test stable master a bit more to gather the full log. > > > > > > > > > > > When boot with 'nosmt' kernel paramter kernel 4.14.63 panic during > > > > > > boot, 4.4.148 boot fine. > > > > > > The call trace seem irq related, is it known bug? > > > > > > > > > > You are not giving us much to go on here sorry. We need full details, > > > > > and also please cc: lkml and the other developers who worked on this. > > > > > THomas is on vacation this week. > > > > Now, add more developers to cc, also lkml. > > > > > > > > I have the config and boot dmesg attached for default setting. > > > > > > I see no error in your boot log, what exactly are you worried about? > > 2 problems here: > > 1 According to https://www.kernel.org/doc/html/latest/admin-guide/l1tf.html > > I expect /sys/devices/system/cpu/smt/, but it's not. > > 2 kernel 4.14.63 panic when I boot with 'nosmt' or 'l1tf=full', I > > attached the picture here again, > > I will try to get the full log tomorrow, also test with linus tree. > > > > > > confused, > > > > > > greg k-h > > > > Thanks > 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? confused, greg k-h