[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v7 07/16] i386: Support modules_per_die in X86CPUTopoInfo
From: |
Zhao Liu |
Subject: |
Re: [PATCH v7 07/16] i386: Support modules_per_die in X86CPUTopoInfo |
Date: |
Thu, 11 Jan 2024 17:18:50 +0800 |
Hi Xiaoyao,
On Thu, Jan 11, 2024 at 01:53:53PM +0800, Xiaoyao Li wrote:
> > - cores_per_pkg = topo_info.cores_per_die * topo_info.dies_per_pkg;
> > + cores_per_pkg = topo_info.cores_per_module * topo_info.modules_per_die
> > *
> > + topo_info.dies_per_pkg;
>
> Nit. maybe we can introduce some helper function like
>
> static inline uint32_t topo_info_cores_per_pkg(X86CPUTopoInfo *topo_info) {
> return topo_info.cores_per_module * topo_info.modules_per_die *
> topo_info.dies_per_pkg;
> }
>
> so we don't need to care how it calculates.
Yeah, will add this helper, maybe in another patch.
>
> Besides,
>
> Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Thanks!
-Zhao
- Re: [PATCH v7 02/16] i386/cpu: Use APIC ID offset to encode cache topo in CPUID[4], (continued)
[PATCH v7 04/16] i386: Split topology types of CPUID[0x1F] from the definitions of CPUID[0xB], Zhao Liu, 2024/01/08
[PATCH v7 05/16] i386: Decouple CPUID[0x1F] subleaf with specific topology level, Zhao Liu, 2024/01/08
[PATCH v7 06/16] i386: Introduce module-level cpu topology to CPUX86State, Zhao Liu, 2024/01/08
[PATCH v7 07/16] i386: Support modules_per_die in X86CPUTopoInfo, Zhao Liu, 2024/01/08
[PATCH v7 08/16] i386: Expose module level in CPUID[0x1F], Zhao Liu, 2024/01/08
- Re: [PATCH v7 08/16] i386: Expose module level in CPUID[0x1F], Xiaoyao Li, 2024/01/11
- Re: [PATCH v7 08/16] i386: Expose module level in CPUID[0x1F], Yuan Yao, 2024/01/14
- Re: [PATCH v7 08/16] i386: Expose module level in CPUID[0x1F], Zhao Liu, 2024/01/14
- Re: [PATCH v7 08/16] i386: Expose module level in CPUID[0x1F], Xiaoyao Li, 2024/01/14
- Re: [PATCH v7 08/16] i386: Expose module level in CPUID[0x1F], Yuan Yao, 2024/01/15
- Re: [PATCH v7 08/16] i386: Expose module level in CPUID[0x1F], Zhao Liu, 2024/01/15
- Re: [PATCH v7 08/16] i386: Expose module level in CPUID[0x1F], Yuan Yao, 2024/01/15
- Re: [PATCH v7 08/16] i386: Expose module level in CPUID[0x1F], Zhao Liu, 2024/01/15