Skip to content

Commit 3f38000

Browse files
mwbringmannmpe
authored andcommitted
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>
1 parent 723b113 commit 3f38000

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

arch/powerpc/include/asm/firmware.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
#define FW_FEATURE_TYPE1_AFFINITY ASM_CONST(0x0000000100000000)
5353
#define FW_FEATURE_PRRN ASM_CONST(0x0000000200000000)
5454
#define FW_FEATURE_DRMEM_V2 ASM_CONST(0x0000000400000000)
55+
#define FW_FEATURE_DRC_INFO ASM_CONST(0x0000000400000000)
5556

5657
#ifndef __ASSEMBLY__
5758

@@ -68,7 +69,8 @@ enum {
6869
FW_FEATURE_CMO | FW_FEATURE_VPHN | FW_FEATURE_XCMO |
6970
FW_FEATURE_SET_MODE | FW_FEATURE_BEST_ENERGY |
7071
FW_FEATURE_TYPE1_AFFINITY | FW_FEATURE_PRRN |
71-
FW_FEATURE_HPT_RESIZE | FW_FEATURE_DRMEM_V2,
72+
FW_FEATURE_HPT_RESIZE | FW_FEATURE_DRMEM_V2 |
73+
FW_FEATURE_DRC_INFO,
7274
FW_FEATURE_PSERIES_ALWAYS = 0,
7375
FW_FEATURE_POWERNV_POSSIBLE = FW_FEATURE_OPAL,
7476
FW_FEATURE_POWERNV_ALWAYS = 0,

arch/powerpc/include/asm/prom.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ extern int of_get_ibm_chip_id(struct device_node *np);
160160
#define OV5_HASH_GTSE 0x1940 /* Guest Translation Shoot Down Avail */
161161
/* Radix Table Extensions */
162162
#define OV5_RADIX_GTSE 0x1A40 /* Guest Translation Shoot Down Avail */
163+
#define OV5_DRC_INFO 0x1640 /* Redef Prop Structures: drc-info */
163164

164165
/* Option Vector 6: IBM PAPR hints */
165166
#define OV6_LINUX 0x02 /* Linux is our OS */

arch/powerpc/platforms/pseries/firmware.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ vec5_fw_features_table[] = {
115115
{FW_FEATURE_TYPE1_AFFINITY, OV5_TYPE1_AFFINITY},
116116
{FW_FEATURE_PRRN, OV5_PRRN},
117117
{FW_FEATURE_DRMEM_V2, OV5_DRMEM_V2},
118+
{FW_FEATURE_DRC_INFO, OV5_DRC_INFO},
118119
};
119120

120121
static void __init fw_vec5_feature_init(const char *vec5, unsigned long len)

0 commit comments

Comments
 (0)