diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2019-05-31 16:13:19 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-06-03 10:20:00 +1000 |
commit | 065cfb71eef26954f645f8d668bae930f493b140 (patch) | |
tree | d24df6305a09ebecd9b40e4db2eda7f2acfac1a8 | |
parent | 0c1a54e402633195e287f9f51ebd49a0a419af80 (diff) | |
download | skiboot-065cfb71eef26954f645f8d668bae930f493b140.zip skiboot-065cfb71eef26954f645f8d668bae930f493b140.tar.gz skiboot-065cfb71eef26954f645f8d668bae930f493b140.tar.bz2 |
Remove unused OPAL_PCI_GET_XIVE_REISSUE and OPAL_PCI_SET_XIVE_REISSUE
These seem to be remnants of one of the OPAL incarnations prior to
OPALv3. These calls have never been implemented in skiboot, and never
used by an upstream kernel (nor a PowerKVM kernel).
It's rather safe to just document them as never existing.
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Reviewed-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | core/pci-opal.c | 20 | ||||
-rw-r--r-- | doc/opal-api/index.rst | 28 | ||||
-rw-r--r-- | doc/opal-api/opal-pci-get-set-xive-reissue-35-36.rst | 18 | ||||
-rw-r--r-- | include/opal-api.h | 4 |
4 files changed, 28 insertions, 42 deletions
diff --git a/core/pci-opal.c b/core/pci-opal.c index 9b8d400..2d21786 100644 --- a/core/pci-opal.c +++ b/core/pci-opal.c @@ -321,26 +321,6 @@ static int64_t opal_pci_set_mve_enable(uint64_t phb_id, uint32_t mve_number, } opal_call(OPAL_PCI_SET_MVE_ENABLE, opal_pci_set_mve_enable, 3); -static int64_t opal_pci_get_xive_reissue(uint64_t phb_id __unused, - uint32_t xive_number __unused, - uint8_t *p_bit __unused, - uint8_t *q_bit __unused) -{ - /* IODA2 (P8) stuff, TODO */ - return OPAL_UNSUPPORTED; -} -opal_call(OPAL_PCI_GET_XIVE_REISSUE, opal_pci_get_xive_reissue, 4); - -static int64_t opal_pci_set_xive_reissue(uint64_t phb_id __unused, - uint32_t xive_number __unused, - uint8_t p_bit __unused, - uint8_t q_bit __unused) -{ - /* IODA2 (P8) stuff, TODO */ - return OPAL_UNSUPPORTED; -} -opal_call(OPAL_PCI_SET_XIVE_REISSUE, opal_pci_set_xive_reissue, 4); - static int64_t opal_pci_msi_eoi(uint64_t phb_id, uint32_t hwirq) { diff --git a/doc/opal-api/index.rst b/doc/opal-api/index.rst index 6e7a8a1..1c9af39 100644 --- a/doc/opal-api/index.rst +++ b/doc/opal-api/index.rst @@ -89,9 +89,11 @@ The OPAL API is the interface between an Operating System and OPAL. +---------------------------------------------+--------------+------------------------+----------+-----------------+ | :ref:`OPAL_PCI_SET_MVE_ENABLE` | 34 | v1.0 (Initial Release) | POWER8 | | +---------------------------------------------+--------------+------------------------+----------+-----------------+ -| :ref:`OPAL_PCI_GET_XIVE_REISSUE` | 35 | v1.0 (Initial Release) | POWER8 | | +| :ref:`OPAL_PCI_GET_XIVE_REISSUE` | 35 | Never | | Never used or | +| | | | | Implemented | +---------------------------------------------+--------------+------------------------+----------+-----------------+ -| :ref:`OPAL_PCI_SET_XIVE_REISSUE` | 36 | v1.0 (Initial Release) | POWER8 | | +| :ref:`OPAL_PCI_SET_XIVE_REISSUE` | 36 | Never | | Never used or | +| | | | | Implemented | +---------------------------------------------+--------------+------------------------+----------+-----------------+ | :ref:`OPAL_PCI_SET_XIVE_PE` | 37 | v1.0 (Initial Release) | POWER8 | | +---------------------------------------------+--------------+------------------------+----------+-----------------+ @@ -390,6 +392,10 @@ removed and no longer supported. +---------------------------------------------+-------+-----------------------+-----------------------+ | :ref:`OPAL_PCI_SET_PHB_TABLE_MEMORY` | 30 | Never | | +---------------------------------------------+-------+-----------------------+-----------------------+ +| :ref:`OPAL_PCI_GET_XIVE_REISSUE` | 35 | Never | | ++---------------------------------------------+-------+-----------------------+-----------------------+ +| :ref:`OPAL_PCI_GET_XIVE_REISSUE` | 36 | Never | | ++---------------------------------------------+-------+-----------------------+-----------------------+ | :ref:`OPAL_WRITE_OPPANEL` | 43 | pre-v1.0 | pre-v1.0 | +---------------------------------------------+-------+-----------------------+-----------------------+ | :ref:`OPAL_OLD_I2C_REQUEST` | 106 | v4.0 | v4.0 | @@ -430,6 +436,24 @@ OPAL_PCI_SET_PHB_TABLE_MEMORY A remnant of an old API design. Never implemented, never used. Only ever returned :ref:`OPAL_UNSUPPORTED`, now the call is not implemented at all. +.. _OPAL_PCI_GET_XIVE_REISSUE: + +OPAL_PCI_GET_XIVE_REISSUE +^^^^^^^^^^^^^^^^^^^^^^^^^ + +A remnant of something prior to OPALv3. Never implemented in skiboot and never +used by anyone. Returend :ref:`OPAL_UNSUPPORTED` until :ref:`skiboot-6.4`, where +it was removed. + +.. _OPAL_PCI_SET_XIVE_REISSUE: + +OPAL_PCI_SET_XIVE_REISSUE +^^^^^^^^^^^^^^^^^^^^^^^^^ + +A remnant of something prior to OPALv3. Never implemented in skiboot and never +used by anyone. Returend :ref:`OPAL_UNSUPPORTED` until :ref:`skiboot-6.4`, where +it was removed. + .. _OPAL_WRITE_OPPANEL: OPAL_WRITE_OPPANEL diff --git a/doc/opal-api/opal-pci-get-set-xive-reissue-35-36.rst b/doc/opal-api/opal-pci-get-set-xive-reissue-35-36.rst deleted file mode 100644 index 5c4e685..0000000 --- a/doc/opal-api/opal-pci-get-set-xive-reissue-35-36.rst +++ /dev/null @@ -1,18 +0,0 @@ -OPAL_PCI_GET_XIVE_REISSUE and OPAL_PCI_SET_XIVE_REISSUE -======================================================= -:: - - static int64_t opal_pci_get_xive_reissue(uint64_t phb_id __unused, - uint32_t xive_number __unused, - uint8_t *p_bit __unused, - uint8_t *q_bit __unused) - - static int64_t opal_pci_set_xive_reissue(uint64_t phb_id __unused, - uint32_t xive_number __unused, - uint8_t p_bit __unused, - uint8_t q_bit __unused) - - -Both of these calls are remnants from previous OPAL versions, calling either -of them shall return ``OPAL_UNSUPPORTED``. - diff --git a/include/opal-api.h b/include/opal-api.h index f767d3c..b7facf4 100644 --- a/include/opal-api.h +++ b/include/opal-api.h @@ -94,8 +94,8 @@ #define OPAL_PCI_SET_PELTV 32 #define OPAL_PCI_SET_MVE 33 #define OPAL_PCI_SET_MVE_ENABLE 34 -#define OPAL_PCI_GET_XIVE_REISSUE 35 -#define OPAL_PCI_SET_XIVE_REISSUE 36 +#define OPAL_PCI_GET_XIVE_REISSUE 35 /* never implemented */ +#define OPAL_PCI_SET_XIVE_REISSUE 36 /* never implemented */ #define OPAL_PCI_SET_XIVE_PE 37 #define OPAL_GET_XIVE_SOURCE 38 #define OPAL_GET_MSI_32 39 |