Lines Matching +full:4 +full:mb
6 * Venkatesh Pallipadi : Adding cache identification through cpuid(4)
29 #define LVL_3 4
44 #define MB(x) ((x) * 1024) macro
51 { 0x06, LVL_1_INST, 8 }, /* 4-way set assoc, 32 byte line size */
52 { 0x08, LVL_1_INST, 16 }, /* 4-way set assoc, 32 byte line size */
53 { 0x09, LVL_1_INST, 32 }, /* 4-way set assoc, 64 byte line size */
55 { 0x0c, LVL_1_DATA, 16 }, /* 4-way set assoc, 32 byte line size */
56 { 0x0d, LVL_1_DATA, 16 }, /* 4-way set assoc, 64 byte line size */
59 { 0x22, LVL_3, 512 }, /* 4-way set assoc, sectored cache, 64 byte line size */
60 { 0x23, LVL_3, MB(1) }, /* 8-way set assoc, sectored cache, 64 byte line size */
61 { 0x25, LVL_3, MB(2) }, /* 8-way set assoc, sectored cache, 64 byte line size */
62 { 0x29, LVL_3, MB(4) }, /* 8-way set assoc, sectored cache, 64 byte line size */
65 { 0x39, LVL_2, 128 }, /* 4-way set assoc, sectored cache, 64 byte line size */
68 { 0x3c, LVL_2, 256 }, /* 4-way set assoc, sectored cache, 64 byte line size */
70 { 0x3e, LVL_2, 512 }, /* 4-way set assoc, sectored cache, 64 byte line size */
72 { 0x41, LVL_2, 128 }, /* 4-way set assoc, 32 byte line size */
73 { 0x42, LVL_2, 256 }, /* 4-way set assoc, 32 byte line size */
74 { 0x43, LVL_2, 512 }, /* 4-way set assoc, 32 byte line size */
75 { 0x44, LVL_2, MB(1) }, /* 4-way set assoc, 32 byte line size */
76 { 0x45, LVL_2, MB(2) }, /* 4-way set assoc, 32 byte line size */
77 { 0x46, LVL_3, MB(4) }, /* 4-way set assoc, 64 byte line size */
78 { 0x47, LVL_3, MB(8) }, /* 8-way set assoc, 64 byte line size */
79 { 0x48, LVL_2, MB(3) }, /* 12-way set assoc, 64 byte line size */
80 { 0x49, LVL_3, MB(4) }, /* 16-way set assoc, 64 byte line size */
81 { 0x4a, LVL_3, MB(6) }, /* 12-way set assoc, 64 byte line size */
82 { 0x4b, LVL_3, MB(8) }, /* 16-way set assoc, 64 byte line size */
83 { 0x4c, LVL_3, MB(12) }, /* 12-way set assoc, 64 byte line size */
84 { 0x4d, LVL_3, MB(16) }, /* 16-way set assoc, 64 byte line size */
85 { 0x4e, LVL_2, MB(6) }, /* 24-way set assoc, 64 byte line size */
87 { 0x66, LVL_1_DATA, 8 }, /* 4-way set assoc, sectored cache, 64 byte line size */
88 { 0x67, LVL_1_DATA, 16 }, /* 4-way set assoc, sectored cache, 64 byte line size */
89 { 0x68, LVL_1_DATA, 32 }, /* 4-way set assoc, sectored cache, 64 byte line size */
94 { 0x78, LVL_2, MB(1) }, /* 4-way set assoc, 64 byte line size */
98 { 0x7c, LVL_2, MB(1) }, /* 8-way set assoc, sectored cache, 64 byte line size */
99 { 0x7d, LVL_2, MB(2) }, /* 8-way set assoc, 64 byte line size */
104 { 0x84, LVL_2, MB(1) }, /* 8-way set assoc, 32 byte line size */
105 { 0x85, LVL_2, MB(2) }, /* 8-way set assoc, 32 byte line size */
106 { 0x86, LVL_2, 512 }, /* 4-way set assoc, 64 byte line size */
107 { 0x87, LVL_2, MB(1) }, /* 8-way set assoc, 64 byte line size */
108 { 0xd0, LVL_3, 512 }, /* 4-way set assoc, 64 byte line size */
109 { 0xd1, LVL_3, MB(1) }, /* 4-way set assoc, 64 byte line size */
110 { 0xd2, LVL_3, MB(2) }, /* 4-way set assoc, 64 byte line size */
111 { 0xd6, LVL_3, MB(1) }, /* 8-way set assoc, 64 byte line size */
112 { 0xd7, LVL_3, MB(2) }, /* 8-way set assoc, 64 byte line size */
113 { 0xd8, LVL_3, MB(4) }, /* 12-way set assoc, 64 byte line size */
114 { 0xdc, LVL_3, MB(2) }, /* 12-way set assoc, 64 byte line size */
115 { 0xdd, LVL_3, MB(4) }, /* 12-way set assoc, 64 byte line size */
116 { 0xde, LVL_3, MB(8) }, /* 12-way set assoc, 64 byte line size */
117 { 0xe2, LVL_3, MB(2) }, /* 16-way set assoc, 64 byte line size */
118 { 0xe3, LVL_3, MB(4) }, /* 16-way set assoc, 64 byte line size */
119 { 0xe4, LVL_3, MB(8) }, /* 16-way set assoc, 64 byte line size */
120 { 0xea, LVL_3, MB(12) }, /* 24-way set assoc, 64 byte line size */
121 { 0xeb, LVL_3, MB(18) }, /* 24-way set assoc, 64 byte line size */
122 { 0xec, LVL_3, MB(24) }, /* 24-way set assoc, 64 byte line size */
140 unsigned int reserved:4;
193 unsigned lines_per_tag:4;
194 unsigned assoc:4;
203 unsigned lines_per_tag:4;
204 unsigned assoc:4;
214 [4] = 4,
322 l3->subcaches[1] = sc1 = !(val & BIT(4)); in amd_calc_l3_indices()
346 pci_read_config_dword(nb->misc, 0x1BC + slot * 4, ®); in amd_get_l3_disable_slot()
387 * disable index in all 4 subcaches in amd_l3_disable_index()
389 for (i = 0; i < 4; i++) { in amd_l3_disable_index()
395 pci_write_config_dword(nb->misc, 0x1BC + slot * 4, reg); in amd_l3_disable_index()
405 pci_write_config_dword(nb->misc, 0x1BC + slot * 4, reg); in amd_l3_disable_index()
618 cpuid_count(4, index, &eax.full, &ebx.full, &ecx.full, &edx); in cpuid4_cache_lookup_regs()
644 op = 4; in find_num_cache_leaves()
716 num_cache_leaves = 4; in init_amd_cacheinfo()
731 unsigned int new_l1d = 0, new_l1i = 0; /* Cache sizes from cpuid(4) */ in init_intel_cacheinfo()
732 unsigned int new_l2 = 0, new_l3 = 0, i; /* Cache sizes from cpuid(4) */ in init_intel_cacheinfo()
748 * Whenever possible use cpuid(4), deterministic cache in init_intel_cacheinfo()
790 unsigned int regs[4]; in init_intel_cacheinfo()
868 * If cpu_llc_id is not yet set, this means cpuid_level < 4 which in in init_intel_cacheinfo()
1009 * The max shared threads number comes from CPUID.4:EAX[25-14] with input