Skip to content

Commit 2a92943

Browse files
Mark Nelsonpaulusmack
authored andcommitted
powerpc: Add new CPU feature: CPU_FTR_CP_USE_DCBTZ
Add a new CPU feature bit, CPU_FTR_CP_USE_DCBTZ, to be added to the 64bit powerpc chips that benefit from having dcbt and dcbz instructions used in their memory copy routines. This will be used in a subsequent patch that updates copy_4K_page(). The new bit is added to Cell, PPC970 and Power4 because they show better performance with the new copy_4K_page() when dcbt and dcbz instructions are used. Signed-off-by: Mark Nelson <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 1b3c83e commit 2a92943

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

arch/powerpc/include/asm/cputable.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ extern const char *powerpc_base_platform;
193193
#define CPU_FTR_NO_SLBIE_B LONG_ASM_CONST(0x0008000000000000)
194194
#define CPU_FTR_VSX LONG_ASM_CONST(0x0010000000000000)
195195
#define CPU_FTR_SAO LONG_ASM_CONST(0x0020000000000000)
196+
#define CPU_FTR_CP_USE_DCBTZ LONG_ASM_CONST(0x0040000000000000)
196197

197198
#ifndef __ASSEMBLY__
198199

@@ -388,10 +389,11 @@ extern const char *powerpc_base_platform;
388389
CPU_FTR_MMCRA | CPU_FTR_CTRL)
389390
#define CPU_FTRS_POWER4 (CPU_FTR_USE_TB | CPU_FTR_LWSYNC | \
390391
CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_CTRL | \
391-
CPU_FTR_MMCRA)
392+
CPU_FTR_MMCRA | CPU_FTR_CP_USE_DCBTZ)
392393
#define CPU_FTRS_PPC970 (CPU_FTR_USE_TB | CPU_FTR_LWSYNC | \
393394
CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_CTRL | \
394-
CPU_FTR_ALTIVEC_COMP | CPU_FTR_CAN_NAP | CPU_FTR_MMCRA)
395+
CPU_FTR_ALTIVEC_COMP | CPU_FTR_CAN_NAP | CPU_FTR_MMCRA | \
396+
CPU_FTR_CP_USE_DCBTZ)
395397
#define CPU_FTRS_POWER5 (CPU_FTR_USE_TB | CPU_FTR_LWSYNC | \
396398
CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_CTRL | \
397399
CPU_FTR_MMCRA | CPU_FTR_SMT | \
@@ -412,7 +414,8 @@ extern const char *powerpc_base_platform;
412414
#define CPU_FTRS_CELL (CPU_FTR_USE_TB | CPU_FTR_LWSYNC | \
413415
CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_CTRL | \
414416
CPU_FTR_ALTIVEC_COMP | CPU_FTR_MMCRA | CPU_FTR_SMT | \
415-
CPU_FTR_PAUSE_ZERO | CPU_FTR_CI_LARGE_PAGE | CPU_FTR_CELL_TB_BUG)
417+
CPU_FTR_PAUSE_ZERO | CPU_FTR_CI_LARGE_PAGE | \
418+
CPU_FTR_CELL_TB_BUG | CPU_FTR_CP_USE_DCBTZ)
416419
#define CPU_FTRS_PA6T (CPU_FTR_USE_TB | CPU_FTR_LWSYNC | \
417420
CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2 | \
418421
CPU_FTR_ALTIVEC_COMP | CPU_FTR_CI_LARGE_PAGE | \

0 commit comments

Comments
 (0)