@@ -1448,6 +1448,46 @@ void cpuinfo_arm_decode_cache(
1448
1448
.line_size = 64 /* assumption */
1449
1449
};
1450
1450
break ;
1451
+ case cpuinfo_uarch_taishanv110 :
1452
+ /*
1453
+ * Kunpeng920 series CPU designed by Huawei hisilicon for server,
1454
+ * L1 and L2 cache is private to each core, L3 is shared with all cores.
1455
+ * +--------------------+-------+-----------+-----------+-----------+----------+------------+
1456
+ * | Processor model | Cores | L1D cache | L1I cache | L2 cache | L3 cache | Reference |
1457
+ * +--------------------+-------+-----------+-----------+-----------+----------+------------+
1458
+ * | Kunpeng920-3226 | 32 | 64K | 64K | 512K | 32M | [1] |
1459
+ * +--------------------+-------+-----------+-----------+-----------+----------+------------+
1460
+ * | Kunpeng920-4826 | 48 | 64K | 64K | 512K | 48M | [2] |
1461
+ * +--------------------+-------+-----------+-----------+-----------+----------+------------+
1462
+ * | Kunpeng920-6426 | 64 | 64K | 64K | 512K | 64M | [3] |
1463
+ * +--------------------+-------+-----------+-----------+-----------+----------+------------+
1464
+ *
1465
+ * [1] https://en.wikichip.org/wiki/hisilicon/kunpeng/920-3226
1466
+ * [2] https://en.wikichip.org/wiki/hisilicon/kunpeng/920-4826
1467
+ * [3] https://en.wikichip.org/wiki/hisilicon/kunpeng/920-6426
1468
+ */
1469
+ * l1i = (struct cpuinfo_cache ) {
1470
+ .size = 64 * 1024 ,
1471
+ .associativity = 4 /* assumption */ ,
1472
+ .line_size = 128 /* assumption */ ,
1473
+ };
1474
+ * l1d = (struct cpuinfo_cache ) {
1475
+ .size = 64 * 1024 ,
1476
+ .associativity = 4 /* assumption */ ,
1477
+ .line_size = 128 /* assumption */ ,
1478
+ };
1479
+ * l2 = (struct cpuinfo_cache ) {
1480
+ .size = 512 * 1024 ,
1481
+ .associativity = 8 /* assumption */ ,
1482
+ .line_size = 128 /* assumption */ ,
1483
+ .flags = CPUINFO_CACHE_INCLUSIVE /* assumption */ ,
1484
+ };
1485
+ * l3 = (struct cpuinfo_cache ) {
1486
+ .size = cluster_cores * 1024 * 1024 ,
1487
+ .associativity = 16 /* assumption */ ,
1488
+ .line_size = 128 /* assumption */ ,
1489
+ };
1490
+ break ;
1451
1491
#endif
1452
1492
case cpuinfo_uarch_cortex_a12 :
1453
1493
case cpuinfo_uarch_cortex_a32 :
0 commit comments