Skip to content

Commit 9c7a008

Browse files
committed
powerpc/64: Fix L1D cache shape vector reporting L1I values
It seems we didn't pay quite enough attention when testing the new cache shape vectors, which means we didn't notice the bug where the vector for the L1D was using the L1I values. Fix it, resulting in eg: L1I cache size: 0x8000 32768B 32K L1I line size: 0x80 8-way associative L1D cache size: 0x10000 65536B 64K L1D line size: 0x80 8-way associative Fixes: 98a5f36 ("powerpc: Add new cache geometry aux vectors") Cut-and-paste-bug-by: Benjamin Herrenschmidt <[email protected]> Badly-reviewed-by: Michael Ellerman <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 6ba422c commit 9c7a008

File tree

1 file changed

+2
-2
lines changed
  • arch/powerpc/include/asm

1 file changed

+2
-2
lines changed

arch/powerpc/include/asm/elf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ extern int arch_setup_additional_pages(struct linux_binprm *bprm,
144144
#define ARCH_DLINFO_CACHE_GEOMETRY \
145145
NEW_AUX_ENT(AT_L1I_CACHESIZE, ppc64_caches.l1i.size); \
146146
NEW_AUX_ENT(AT_L1I_CACHEGEOMETRY, get_cache_geometry(l1i)); \
147-
NEW_AUX_ENT(AT_L1D_CACHESIZE, ppc64_caches.l1i.size); \
148-
NEW_AUX_ENT(AT_L1D_CACHEGEOMETRY, get_cache_geometry(l1i)); \
147+
NEW_AUX_ENT(AT_L1D_CACHESIZE, ppc64_caches.l1d.size); \
148+
NEW_AUX_ENT(AT_L1D_CACHEGEOMETRY, get_cache_geometry(l1d)); \
149149
NEW_AUX_ENT(AT_L2_CACHESIZE, ppc64_caches.l2.size); \
150150
NEW_AUX_ENT(AT_L2_CACHEGEOMETRY, get_cache_geometry(l2)); \
151151
NEW_AUX_ENT(AT_L3_CACHESIZE, ppc64_caches.l3.size); \

0 commit comments

Comments
 (0)