qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v11 19/21] i386: Add cache topology info in CPUCacheInfo


From: Tejus GK
Subject: Re: [PATCH v11 19/21] i386: Add cache topology info in CPUCacheInfo
Date: Tue, 30 Apr 2024 06:14:52 +0000



On 24 Apr 2024, at 9:19 PM, Zhao Liu <zhao1.liu@intel.com> wrote:

@@ -2140,6 +2164,7 @@ static const CPUCaches epyc_milan_cache_info = {
        .lines_per_tag = 1,
        .self_init = 1,
        .no_invd_sharing = true,
+        .share_level = CPU_TOPO_LEVEL_CORE,
    },
    .l1i_cache = &(CPUCacheInfo) {
        .type = INSTRUCTION_CACHE,
@@ -2152,6 +2177,7 @@ static const CPUCaches epyc_milan_cache_info = {
        .lines_per_tag = 1,
        .self_init = 1,
        .no_invd_sharing = true,
+        .share_level = CPU_TOPO_LEVEL_CORE,
    },
    .l2_cache = &(CPUCacheInfo) {
        .type = UNIFIED_CACHE,
@@ -2162,6 +2188,7 @@ static const CPUCaches epyc_milan_cache_info = {
        .partitions = 1,
        .sets = 1024,
        .lines_per_tag = 1,
+        .share_level = CPU_TOPO_LEVEL_CORE,
    },
    .l3_cache = &(CPUCacheInfo) {
        .type = UNIFIED_CACHE,
@@ -2175,6 +2202,7 @@ static const CPUCaches epyc_milan_cache_info = {
        .self_init = true,
        .inclusive = true,
        .complex_indexing = true,
+        .share_level = CPU_TOPO_LEVEL_DIE,
    },
};


Hi Zhao and Babu, thank you for this patch. I have a slightly off-topic question about this patch. Firstly, many AMD CPU models have pre-defined cache sizes for the various cache levels; how are these values decided? I couldn't figure that out from the patches that introduced those changes. Secondly, there isn't any pre-defined cache size for Intel, and the legacy cache values are used. This value can be vastly different from what actual available caches might be. Is there any reason why something like that for Intel has yet to be introduced?

regards, 
Tejus


reply via email to

[Prev in Thread] Current Thread [Next in Thread]