diff options
author | Ian Munsie <imunsie@au1.ibm.com> | 2014-10-08 04:54:59 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-10-08 05:15:52 -0400 |
commit | 09521736011e83003ca3cf7d9a31c43148306a20 (patch) | |
tree | 9dd4fff3b46fb024eb87cfff9e7a57a4bdbb2fad | |
parent | a1dca3465a7be53980abab1e0d6646176fdc075f (diff) |
powerpc/opal: Add PHB to cxl mode call
This adds the OPAL call to change a PHB into cxl mode.
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/include/asm/opal.h | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/powernv/opal-wrappers.S | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/opal.h b/arch/powerpc/include/asm/opal.h index a084cf5bd76c..9124b0ede1fc 100644 --- a/arch/powerpc/include/asm/opal.h +++ b/arch/powerpc/include/asm/opal.h | |||
@@ -147,6 +147,7 @@ struct opal_sg_list { | |||
147 | #define OPAL_GET_PARAM 89 | 147 | #define OPAL_GET_PARAM 89 |
148 | #define OPAL_SET_PARAM 90 | 148 | #define OPAL_SET_PARAM 90 |
149 | #define OPAL_DUMP_RESEND 91 | 149 | #define OPAL_DUMP_RESEND 91 |
150 | #define OPAL_PCI_SET_PHB_CXL_MODE 93 | ||
150 | #define OPAL_DUMP_INFO2 94 | 151 | #define OPAL_DUMP_INFO2 94 |
151 | #define OPAL_PCI_ERR_INJECT 96 | 152 | #define OPAL_PCI_ERR_INJECT 96 |
152 | #define OPAL_PCI_EEH_FREEZE_SET 97 | 153 | #define OPAL_PCI_EEH_FREEZE_SET 97 |
@@ -961,6 +962,7 @@ int64_t opal_sensor_read(uint32_t sensor_hndl, int token, __be32 *sensor_data); | |||
961 | int64_t opal_handle_hmi(void); | 962 | int64_t opal_handle_hmi(void); |
962 | int64_t opal_register_dump_region(uint32_t id, uint64_t start, uint64_t end); | 963 | int64_t opal_register_dump_region(uint32_t id, uint64_t start, uint64_t end); |
963 | int64_t opal_unregister_dump_region(uint32_t id); | 964 | int64_t opal_unregister_dump_region(uint32_t id); |
965 | int64_t opal_pci_set_phb_cxl_mode(uint64_t phb_id, uint64_t mode, uint64_t pe_number); | ||
964 | 966 | ||
965 | /* Internal functions */ | 967 | /* Internal functions */ |
966 | extern int early_init_dt_scan_opal(unsigned long node, const char *uname, | 968 | extern int early_init_dt_scan_opal(unsigned long node, const char *uname, |
diff --git a/arch/powerpc/platforms/powernv/opal-wrappers.S b/arch/powerpc/platforms/powernv/opal-wrappers.S index 15942b6ffd3a..e9e2450c1fdd 100644 --- a/arch/powerpc/platforms/powernv/opal-wrappers.S +++ b/arch/powerpc/platforms/powernv/opal-wrappers.S | |||
@@ -249,3 +249,4 @@ OPAL_CALL(opal_set_param, OPAL_SET_PARAM); | |||
249 | OPAL_CALL(opal_handle_hmi, OPAL_HANDLE_HMI); | 249 | OPAL_CALL(opal_handle_hmi, OPAL_HANDLE_HMI); |
250 | OPAL_CALL(opal_register_dump_region, OPAL_REGISTER_DUMP_REGION); | 250 | OPAL_CALL(opal_register_dump_region, OPAL_REGISTER_DUMP_REGION); |
251 | OPAL_CALL(opal_unregister_dump_region, OPAL_UNREGISTER_DUMP_REGION); | 251 | OPAL_CALL(opal_unregister_dump_region, OPAL_UNREGISTER_DUMP_REGION); |
252 | OPAL_CALL(opal_pci_set_phb_cxl_mode, OPAL_PCI_SET_PHB_CXL_MODE); | ||