Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3525763rwb; Tue, 16 Aug 2022 04:48:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR5k5iT2VC4TL4e5yQ+bqgYwDODHjNWdmrPSVVr+uAaDC7m3lbqrN/RcdhA7YCdkhvZHDQz3 X-Received: by 2002:a17:906:8a4e:b0:730:9fcd:d988 with SMTP id gx14-20020a1709068a4e00b007309fcdd988mr13406287ejc.636.1660650521776; Tue, 16 Aug 2022 04:48:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660650521; cv=none; d=google.com; s=arc-20160816; b=PV+lI1khGHVdpJI4FGwJFqA+/YMdWXYCzg2dkEjxCvXb/ZsLK5gx3JjoWMG+XRAE2w EEdvlmmDDvxo7z1bdtD1bEfcJgNE24Ox5ZjwcgBJsqJxowIz9Wl7W4Ek8fbuh71gUn7t Wmd1PHe9X5icp/zRxPjBKNLlnxmwLOAxJI3ubwtNnLs4CmGDb9anoGamUg8ClcDIkBWA ktXOW8nMoHCBtf+EhKQDIP3N1DQm0GfzxOFWora6YekOSoZVpXsqtWewRIab2y0s0fSb FqfwpNeFz0dvsFst6843/y87KPL4lKn7D69j/zqMbRGJ/ZZ7Iuwkv8pIP+ltkNs5C//O 8Zsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6BlpTwVx92rbeofMgr6BndByubfCRJy+MP8PnqkqRTU=; b=Yvwl2GeYTGDKmO5bbMhnkYYDHq127oAsIxq97j/m2fwTzLyUagloDSHSHqHKpCSfbi yc2JmnE4o+/AJOpgwPo10/kqgiHixhPuSOluOcI5MuaYjiKa1HVP+TrABnH9KNdUjCX0 rVgIeAUBZyPqHB2CfZwKutJYYG9EgDjZPudtbePL8WAmBs193WidcAjgrrsPH8yyMxok bFZJb7sEC1NuO/OOHZfKC0sDlYXJvXxKe+EtpMez1/lgoOWSuDZsa9u298SP8Ptp6qB8 RU+SEmLztijEJHzrb//z0+N0ncheOVNtlAEHLexwTVNf+26KFMsKZ+dAeHRvBK2CnOOR 3gWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=eYxw3R0f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz1-20020a1709072ce100b0072b33152db1si10625361ejc.858.2022.08.16.04.48.15; Tue, 16 Aug 2022 04:48:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=eYxw3R0f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235013AbiHPKru (ORCPT + 99 others); Tue, 16 Aug 2022 06:47:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235005AbiHPKrd (ORCPT ); Tue, 16 Aug 2022 06:47:33 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA610DF70; Tue, 16 Aug 2022 03:09:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=6BlpTwVx92rbeofMgr6BndByubfCRJy+MP8PnqkqRTU=; b=eYxw3R0fddjtO4kCgfEOWZVfd4 Bx85zGpyU007xVdxqdsTrh3JXX3JK1cgrmg70Wz6sGC8i/d9q8gJEfp1DtTeuTQ9Il3lUQ/XvwjA1 /3HU+UcdQmp3GBF3rJLD8fc2D4qWckYf2mQtu32UL8r38MUc6hg3s71RoWogX/UCHIkPOlAL185ja 3L3DLjB0hft7JKww/ZZOeRagnXyMIleVsy6kLAshN4mNw8YeC76FOnWM7p3vOaNwteQrFjGa9zLdI +9VaJJO7z8eh9BEzwJJWNS/20DaMCC/pOgnadM0yFkCgw1fdU8+KWMFyhhrrfRqCymOCdtwpHXwqb LldqktVQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oNtVJ-006oGs-Sn; Tue, 16 Aug 2022 10:08:58 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id D3109980083; Tue, 16 Aug 2022 12:08:55 +0200 (CEST) Date: Tue, 16 Aug 2022 12:08:55 +0200 From: Peter Zijlstra To: Zhang Rui Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-hwmon@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, corbet@lwn.net, fenghua.yu@intel.com, jdelvare@suse.com, linux@roeck-us.net, len.brown@intel.com Subject: Re: [PATCH V2 1/8] perf/x86/intel/P4: Fix smp_num_siblings usage Message-ID: References: <20220816051633.17775-1-rui.zhang@intel.com> <20220816051633.17775-2-rui.zhang@intel.com> <8496afee057d63b83a7ff02ec7f1de8c2d0e97ae.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8496afee057d63b83a7ff02ec7f1de8c2d0e97ae.camel@intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 16, 2022 at 05:47:14PM +0800, Zhang Rui wrote: > On Tue, 2022-08-16 at 10:27 +0200, Peter Zijlstra wrote: > > On Tue, Aug 16, 2022 at 01:16:26PM +0800, Zhang Rui wrote: > > > smp_num_siblings can be larger than 2. > > > > > > Any value larger than 1 suggests HT is supported. > > > > Subject and Changelog are still utterly insane. > > what about this one, do I need to resend the full series? > > thanks, > rui > > From 2e368e6afa83cb73e44ac8c3cf8339207097d9e1 Mon Sep 17 00:00:00 2001 > From: Zhang Rui > Date: Tue, 28 Jun 2022 11:02:12 +0800 > Subject: [PATCH V3 1/8] perf/x86/intel/P4: unify logic for detecting HT > > Any value larger than 1 suggests HT is supported. > > Although smp_num_siblings cannot be larger than 2 on P4 platform, it is > better to keep this logic consistent across the kernel. > > Reviewed-by: Len Brown > Signed-off-by: Zhang Rui Yes that works for me; thanks!