Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp3356181rwe; Sun, 16 Apr 2023 18:17:43 -0700 (PDT) X-Google-Smtp-Source: AKy350ZUexGMqa3uAf+8UW6hws2Ng/sS6te5X6fmFdD9NaZdnJymPAmUbgjm2bCYzVe5JgYywHoR X-Received: by 2002:a05:6a20:4412:b0:ef:7aa2:3cfd with SMTP id ce18-20020a056a20441200b000ef7aa23cfdmr4017722pzb.50.1681694263210; Sun, 16 Apr 2023 18:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681694263; cv=none; d=google.com; s=arc-20160816; b=k3QSKMHLk1/q9Iks695P6YUYIwIZFH+E0SC/T5Uk/fleqO1XWa+8FbRLkMYmOhAjeg iBUUgeSBMeESTN4kKEAz7+cXU/EJoPMS0oZqUrt6Vn3Ei2rY46CPIW+LrWlVBK0gIqHF E5cKg/CFAL54y2ASW9qqCQYfstLxH9x1W4pZzQ+mz2NybrIc1mLlikqapNg+aza/I/dg jSCsn2qtmmoVb0qxgNZ5YTLaYhbOIfXBpvDcI4mQTOy8M1GQHT8HTHniN65JuTlUqdvZ +hImAAyY4a9lNs2zX7FINNSjwxco/4FKoV8QqfMtiSEtfnYUlVlzloBF0v6XaHyyxVWq NJxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5/ctjyyZ7/1t1W+X/IsCwWFTFtmR6wYZ1do6X2Knt4o=; b=oLM/HYLc0gEbFnZKWxczxnE4GcrzwIkWHQZGgjlOUUxKdCpCU57THwOFCeDN2Bzk1R BVzelFKKrE9eWXBgkx8ic2I8vVRCV/VrAHRC9tVIGVkfZfNEf21qQAez7oichxsuUYYm kPaCXUG4i0yHOSMs/sdn+Y60CCbPd4n63h7H+EFzzm3hO4kn2CYAlQzIjKY+z3bmDV6/ dhBbHdInDDSERFYfnNMn80qUhY31VfziSbu6najowYxVgs+/MAlWrbgaTQLVk8caeBqS iZ383DDWRm4O//DVIpKaLAV6HIDOvK3gEUzZkPZ1wh6E38Zf5RbLnHCurJ9q0r/5IvgD vm3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PcQ7xuEl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e38-20020a635466000000b004fbb1485396si10349829pgm.165.2023.04.16.18.17.29; Sun, 16 Apr 2023 18:17:43 -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=@intel.com header.s=Intel header.b=PcQ7xuEl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229693AbjDQAXi (ORCPT + 99 others); Sun, 16 Apr 2023 20:23:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjDQAXg (ORCPT ); Sun, 16 Apr 2023 20:23:36 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEA8E210C; Sun, 16 Apr 2023 17:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681691016; x=1713227016; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=lzQbXWRU7YivvtCUE1XwPbL80+u+WR0OsIWR1+rgxS8=; b=PcQ7xuElVku4UAgFT8UK0WUlEXOdbGxB3gqJ8pnzz6osZGGtEHjGNuxG LhsXhF3swmEk0Fle/UDx+ZrTbnd7gdsjzszxJ8auid/Jb78CFs2jC8q+B f8mQ0au4lSj7avwyjwmGZfzoJy8LeWGuRwCJ88JVAHbu506IJbgh1VK1o 68tB//YsgxL397eBzT729vkRxSyZHlgIbmYFn29k1UUdhQtnOKBgs5KJd 3gNGKjWkwHNFiMM7I4uxFMVm2VxrRWL9E3Xi0uNzWx/zmb6WWhO/ckjjL 2KMt0agEiYDWdLRaw/CH/8j9juOQV/9xBgtu3x8J5YxGwuwMgOOWBXIhL g==; X-IronPort-AV: E=McAfee;i="6600,9927,10682"; a="409986235" X-IronPort-AV: E=Sophos;i="5.99,203,1677571200"; d="scan'208";a="409986235" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2023 17:23:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10682"; a="667930798" X-IronPort-AV: E=Sophos;i="5.99,203,1677571200"; d="scan'208";a="667930798" Received: from rfaria-mobl.amr.corp.intel.com (HELO [10.209.22.12]) ([10.209.22.12]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Apr 2023 17:23:34 -0700 Message-ID: <7b068fc1-2d88-27c3-b561-0a6c36c589da@intel.com> Date: Sun, 16 Apr 2023 17:23:34 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v2.1 2/2] x86/Documentation: Add documentation about cluster Content-Language: en-US To: Bagas Sanjaya , K Prateek Nayak , linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, corbet@lwn.net, jgross@suse.com, andrew.cooper3@citrix.com, peterz@infradead.org, Jason@zx2c4.com, thomas.lendacky@amd.com, puwen@hygon.cn, x86@kernel.org, linux-doc@vger.kernel.org, oleksandr@natalenko.name References: <20230413172918.1500-3-kprateek.nayak@amd.com> <20230414031743.875-1-kprateek.nayak@amd.com> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,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 4/14/23 19:24, Bagas Sanjaya wrote: > On 4/14/23 10:17, K Prateek Nayak wrote: >> + - cluster_id: >> + >> + A per-CPU variable containing: >> + >> + - Upper bits extracted from the APIC ID. CPUs which have the same value >> + in these bits share an L2 and have the same cluster_id. >> + >> + CPUs for which cluster information is unavailable will show 65535 >> + (BAD_APICID) as the cluster_id. > "... return cluster_id of 65535 (BAD_APICID)." Bagas, this is talking about a per-cpu variable. Variables don't "return" things, functions do. I also have a request: I'd really appreciate if you could avoid reviewing x86-related documentation. The review comments that I've seen coming from you have not helped x86 documentation. They've hurt the patches more than they have helped.