Frederic Barrat <fbar...@linux.vnet.ibm.com> writes: > diff --git a/arch/powerpc/include/asm/opal-api.h > b/arch/powerpc/include/asm/opal-api.h > index 7df005965634..2f52182a4c63 100644 > --- a/arch/powerpc/include/asm/opal-api.h > +++ b/arch/powerpc/include/asm/opal-api.h > @@ -193,7 +193,13 @@ > #define OPAL_IMC_COUNTERS_INIT 149 > #define OPAL_IMC_COUNTERS_START 150 > #define OPAL_IMC_COUNTERS_STOP 151 > -#define OPAL_LAST 151 > +#define OPAL_GET_POWERCAP 152 > +#define OPAL_SET_POWERCAP 153 > +#define OPAL_GET_POWER_SHIFT_RATIO 154 > +#define OPAL_SET_POWER_SHIFT_RATIO 155 > +#define OPAL_SENSOR_GROUP_CLEAR 156
Those are not your OPAL calls, so they shouldn't be in this patch. I'll drop them. > +#define OPAL_PCI_SET_P2P 157 > +#define OPAL_LAST 157 Whitespace is messed up there, I can fix it. > diff --git a/arch/powerpc/include/asm/pnv-pci.h > b/arch/powerpc/include/asm/pnv-pci.h > index de9681034353..59a548909d0b 100644 > --- a/arch/powerpc/include/asm/pnv-pci.h > +++ b/arch/powerpc/include/asm/pnv-pci.h > @@ -26,6 +26,8 @@ extern int pnv_pci_get_presence_state(uint64_t id, uint8_t > *state); > extern int pnv_pci_get_power_state(uint64_t id, uint8_t *state); > extern int pnv_pci_set_power_state(uint64_t id, uint8_t state, > struct opal_msg *msg); > +extern int pnv_pci_set_p2p(struct pci_dev *initiator, struct pci_dev *target, > + uint64_t desc); I know the OPAL API uses unit64_t, but in the kernel we use u64. I can fix it up. cheers