Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4588013rdb; Fri, 15 Sep 2023 06:50:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEgUC3P5bjcDK+/idIWZqF1zj/YRezZU9SS3FXGYoxF4ldmQC4R6FCVaZua4zy1GmYZn2rZ X-Received: by 2002:a17:90a:fc89:b0:268:b0b:a084 with SMTP id ci9-20020a17090afc8900b002680b0ba084mr1452958pjb.46.1694785858490; Fri, 15 Sep 2023 06:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694785858; cv=none; d=google.com; s=arc-20160816; b=tx/10cY3JCBsoCcIBtdhv+KaNbUhnGYWuAXd+RlA6kNr0V8ihx6Zo8uO+sK7/1jzI5 7C6Ef+ECEP05mN8vgc/7fl7FW3Ato5oAE+4Z9Ag6K9leVuSQdrnVc/PDij2MGy7y27TX sAISOT32VRn7x3zvhrKds/qhFF3pKJTX7/w64F7eP9DqO5p7pT4vjB1kuX41SMs1kKtl Lxw3OeP3drQ+dRiynfi+Fb0xDlvamt2/uPYn1Brx8m4ygnGGZhVI9K3lW81EPI90OViv 2TFlOU5o0NcLN3r4JSze6QmpOgCJm8Qprpxdg5fM3pGXkSIy5VmYPW70e4OsdbXebk9/ 59RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=YG5tIhlgvyo3E2tjtK9k1O7Vx/acrwOqVX1en+myyIc=; fh=XhOtUYKRluKwjL8+u+ADF6vsuNC+6U8pf0wzxtK/Ez0=; b=wMsy2VFiKhuxmBR6khXcT+PzBICBtCYTQPw0+dWpmQNwPMWJGKtL04mIWfVXgY6/Hg cww3aE/Imk9P+b2zrrib+JoUKhFyNmIwH4J03daouJ20tIAt7GG9PY2BwyxDKKR6C4SG ojgU7kH226NoubSqzbvcmPBwwQtvbaHDFydM7cUlzn8hPsT436LUgXYf0qdM+BoxByEp QOR2EIdRh+csRDRrY9WOhfcKKZRs0594ETt1gWL3j+QgVG75733aJwTU+hU/EN/QSbv6 eSJ68mXQ1xXDtpvXp7RJ5ZkALP2i2KybKTqDEdbNO1UmvgZeHewIp4aVMM7ekZ3QN8+h 1lSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=WQD1btgz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id h8-20020a17090a2ec800b002740f8fa612si3298656pjs.21.2023.09.15.06.50.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 06:50:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=WQD1btgz; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 972B9806114A; Fri, 15 Sep 2023 04:47:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234243AbjIOLqx (ORCPT + 99 others); Fri, 15 Sep 2023 07:46:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232836AbjIOLqx (ORCPT ); Fri, 15 Sep 2023 07:46:53 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6217E1FE8 for ; Fri, 15 Sep 2023 04:46:48 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1694778407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YG5tIhlgvyo3E2tjtK9k1O7Vx/acrwOqVX1en+myyIc=; b=WQD1btgzpHrZE05x8H0EU9fVY4/RfeMU6hKI9C7seofOSQFiv36F50tKMqSmnHCLYAR6Ej YWj030j95Khtp80CzGcfGpbELdbh/q9M9WA/uF/zY9J7jRvG0Nzb0/UV5aB5Hw4HWaXn6p umHz0N3904QvLqwe3kuif5wj3zNcKtS/UveElGr/7yhmsnugbXIMh8fXooxABvymAXw2D9 gljXo9BQxITCyDzGcrdRgoR81d1C2kYGXV4AF35GCV7zLf2+9wCORUj70/A/8wgN7RDuzY 40U9aPye58ppeVjZFpizpt5RnrzS+NWS3dvU4+2egnhakP+pGdVyr0CUCtE9Hw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1694778407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YG5tIhlgvyo3E2tjtK9k1O7Vx/acrwOqVX1en+myyIc=; b=jN8OWU7nyAokpykn7mI1AbzgD2mAE+5MLwjHo6zaEyL8DYNnY8lR17YZEe8DvWVaQThjqa IEnaNxCYpIjAlMDg== To: K Prateek Nayak , LKML Cc: x86@kernel.org, Tom Lendacky , Andrew Cooper , Arjan van de Ven , Huang Rui , Juergen Gross , Dimitri Sivanich , Michael Kelley , Wei Liu , Pu Wen , Qiuxu Zhuo , Sohil Mehta , Gautham Shenoy Subject: Re: [patch V4 24/41] x86/cpu: Provide cpu_init/parse_topology() In-Reply-To: <011011ee-4f83-3545-4ca2-55bc0bef284a@amd.com> References: <20230814085006.593997112@linutronix.de> <20230814085113.471353147@linutronix.de> <934072fe-eca2-44df-94e7-9fed1dc8b502@amd.com> <87r0nn8ots.ffs@tglx> <4a4d5a89-b024-ea49-8740-1f3aef412c15@amd.com> <011011ee-4f83-3545-4ca2-55bc0bef284a@amd.com> Date: Fri, 15 Sep 2023 13:46:46 +0200 Message-ID: <87led71wwp.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 15 Sep 2023 04:47:23 -0700 (PDT) Prateek! On Thu, Sep 14 2023 at 14:50, K. Prateek Nayak wrote: > On 8/28/2023 7:58 PM, K Prateek Nayak wrote: > o Logical Processor : A processor core provides one or more logical > processors sharing execution resources. The > LOGICAL_PROCESSOR_ID sub-field distinguishes logical > processors in a core. The width of this bit field is > non-zero if a processor core provides more than one logical > processors. > """ > > So some questions to Intel folks to determine whether mapping AMD's > Complex to Tile makes sense or not: > > - What are the "certain resources" a group of module / tile share? > > - Module and Tile both use the phrase "set of cores" in their > description. Does this mean their existence is mutually exclusive? That's definitely a good question. > AMD's Complex (CCX) marks the L3 cache boundary. If either of the > "certain resources" refer to L3 cache, then Complex can be safely mapped > to the respective level without any fear of misinterpretation of the > characteristics. I don't think it's a good idea to try deducing cache hierarchy from the basic topology. The boundaries have changed over time and AMD has made it impossible on older CPUs to use the CPU topology for that. I tried to do that and gave up because I realized that we need both and then do the proper association by combining the information. > Also, I do not see a "DieGrp" domain in the "x86_topology_domains". Is > this because of the lack of "software visible" aspect of it despite its > possible existence? No. It's subsumed by the package domain. Let me look at the mechanics some more to make this more obvious. Thanks, tglx