Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3475108imu; Mon, 28 Jan 2019 05:36:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN7jjegltERB76DUpzYNtOOIv5yV/HOmFIywdvdjD6V6ZLeRDErazS+HevoqdkFoBA6y04mY X-Received: by 2002:a62:6dc7:: with SMTP id i190mr21931282pfc.166.1548682601389; Mon, 28 Jan 2019 05:36:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548682601; cv=none; d=google.com; s=arc-20160816; b=gI3bVVb3o64g+mFmvVxYsFiOj45rcITCytc2KdZjVglLzZFinqlsF07i0GbEwOsV68 Y6OjaXln5y8mQzbR5MbTEh5ZiJGL+ziqIsUapoMI/ua24ZGnzTCcta0wGemLN9QbIlDc XJrTv2M2wOV0D+jVXNVySsKEkVqb/0UWXDjKKoDnEpq7kttiVbbJTYW5ymlGmFINZoWP 3e11nW7eFiAbKt1U8E8ece2t63V3oXOoJ0+zXqF2oYimkbS8Wkw9YWUOsVA8Ms/TleRX j9WQte3lg3l3QYWY1I8y1LfUapcy5sDrCDwwo8J2CuiJstLrotK3ENlaAMLuF138MwHA ROAg== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ORgf0gM47bp1HAPH0YMrQc8n/mDwV4SYw6T8SnjePBI=; b=XEKQypfNp9IIywcIPdSk37Eotor/rr9YqvSAV8YxVcQc2TVwfs/VFMPLBek+aqakFG mw3UKidegSwjuZ7Zxl2UlwGwnM4X98JYUz/b+LazSuAx47wbccfA3RO2F1uxpddOVS7T lD29yuGbcTrrlXjSmLUbYclR94qmB/iGEQSh/ZW6M1lDTK9Fud3/mF8KNN8V5YknT0oy onH/uT2L7Qbn/GNn6y4AaQQxPAd7Dr8gyrg/yaHdctJeVzKBMGGgjifc6ufv07F4YPNb 7c/3BksU7w3OpsMXYCDnJ2x+Mr3Y0qzagg9Jc4X3dBQ+jVtdhWm7IFIdllL/BkwFDYaP qBaA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g31si30564447pld.358.2019.01.28.05.36.26; Mon, 28 Jan 2019 05:36:41 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726832AbfA1Nf6 (ORCPT + 99 others); Mon, 28 Jan 2019 08:35:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52268 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726647AbfA1Nf5 (ORCPT ); Mon, 28 Jan 2019 08:35:57 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C7F9A8666E; Mon, 28 Jan 2019 13:35:57 +0000 (UTC) Received: from localhost (unknown [10.43.2.182]) by smtp.corp.redhat.com (Postfix) with ESMTP id 76AEC1852C; Mon, 28 Jan 2019 13:35:56 +0000 (UTC) Date: Mon, 28 Jan 2019 14:35:54 +0100 From: Igor Mammedov To: Josh Poimboeuf Cc: Thomas Gleixner , Joe Mario , Jiri Kosina , Peter Zijlstra , linux-kernel@vger.kernel.org Subject: Re: cpu/hotplug: broken sibling thread hotplug Message-ID: <20190128143554.4e043691@redhat.com> In-Reply-To: <20190128125252.6xf4bulvd7ni4mi4@treble> References: <20190124165713.2b0b37ed@redhat.com> <20190125163657.rqbykfn7ebpclc2z@treble> <20190125170203.2o2l27d2sytw44nl@treble> <20190128111304.0df37a8a@redhat.com> <20190128125252.6xf4bulvd7ni4mi4@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Mon, 28 Jan 2019 13:35:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 28 Jan 2019 06:52:52 -0600 Josh Poimboeuf wrote: > On Mon, Jan 28, 2019 at 11:13:04AM +0100, Igor Mammedov wrote: > > On Fri, 25 Jan 2019 11:02:03 -0600 > > Josh Poimboeuf wrote: > > > > > On Fri, Jan 25, 2019 at 10:36:57AM -0600, Josh Poimboeuf wrote: > > > > How about this patch? It's just a revert of 73d5e2b47264 and > > > > bc2d8d262cba, plus the 1-line vmx_vm_init() change. If it looks ok to > > > > you, I can clean it up and submit an official version. > > > > > > This one actually compiles... > > > > Looks good to me, > > (one small question below) > > > > > > [...] > > > static inline bool cpu_smt_allowed(unsigned int cpu) > > > { > > > - if (topology_is_primary_thread(cpu)) > > > + if (cpu_smt_control == CPU_SMT_ENABLED) > > > return true; > > > > > > - /* > > > - * If the CPU is not a 'primary' thread and the booted_once bit is > > > - * set then the processor has SMT support. Store this information > > > - * for the late check of SMT support in cpu_smt_check_topology(). > > > - */ > > > - if (per_cpu(cpuhp_state, cpu).booted_once) > > > - cpu_smt_available = true; > > > - > > > - if (cpu_smt_control == CPU_SMT_ENABLED) > > > + if (topology_is_primary_thread(cpu)) > > > return true; > > why did you swap cpu_smt_control and topology_is_primary_thread checks? > > That's just the revert of bc2d8d262cba5. ok. waiting for formal patch pls, CC kvm@vger.kernel.org so Paolo could have a chance to review (pick it up if Thomas is ok with approach)