Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/firmware: Add definitions for new drc-info firmware feature

Firmware Features: Define new bit flag representing the presence of
new device tree property "ibm,drc-info". The flag is used to tell
the front end processor whether the Linux kernel supports the new
property, and by the front end processor to tell the Linux kernel
that the new property is present in the device tree.

Signed-off-by: Michael Bringmann <mwb@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Michael Bringmann and committed by
Michael Ellerman
3f38000e 723b1133

+5 -1
+3 -1
arch/powerpc/include/asm/firmware.h
··· 52 52 #define FW_FEATURE_TYPE1_AFFINITY ASM_CONST(0x0000000100000000) 53 53 #define FW_FEATURE_PRRN ASM_CONST(0x0000000200000000) 54 54 #define FW_FEATURE_DRMEM_V2 ASM_CONST(0x0000000400000000) 55 + #define FW_FEATURE_DRC_INFO ASM_CONST(0x0000000400000000) 55 56 56 57 #ifndef __ASSEMBLY__ 57 58 ··· 69 68 FW_FEATURE_CMO | FW_FEATURE_VPHN | FW_FEATURE_XCMO | 70 69 FW_FEATURE_SET_MODE | FW_FEATURE_BEST_ENERGY | 71 70 FW_FEATURE_TYPE1_AFFINITY | FW_FEATURE_PRRN | 72 - FW_FEATURE_HPT_RESIZE | FW_FEATURE_DRMEM_V2, 71 + FW_FEATURE_HPT_RESIZE | FW_FEATURE_DRMEM_V2 | 72 + FW_FEATURE_DRC_INFO, 73 73 FW_FEATURE_PSERIES_ALWAYS = 0, 74 74 FW_FEATURE_POWERNV_POSSIBLE = FW_FEATURE_OPAL, 75 75 FW_FEATURE_POWERNV_ALWAYS = 0,
+1
arch/powerpc/include/asm/prom.h
··· 160 160 #define OV5_HASH_GTSE 0x1940 /* Guest Translation Shoot Down Avail */ 161 161 /* Radix Table Extensions */ 162 162 #define OV5_RADIX_GTSE 0x1A40 /* Guest Translation Shoot Down Avail */ 163 + #define OV5_DRC_INFO 0x1640 /* Redef Prop Structures: drc-info */ 163 164 164 165 /* Option Vector 6: IBM PAPR hints */ 165 166 #define OV6_LINUX 0x02 /* Linux is our OS */
+1
arch/powerpc/platforms/pseries/firmware.c
··· 115 115 {FW_FEATURE_TYPE1_AFFINITY, OV5_TYPE1_AFFINITY}, 116 116 {FW_FEATURE_PRRN, OV5_PRRN}, 117 117 {FW_FEATURE_DRMEM_V2, OV5_DRMEM_V2}, 118 + {FW_FEATURE_DRC_INFO, OV5_DRC_INFO}, 118 119 }; 119 120 120 121 static void __init fw_vec5_feature_init(const char *vec5, unsigned long len)