OPAL_NPU_SET_RELAXED_ORDER¶
Request that relaxed memory ordering be enabled or disabled for a device.
Parameters¶
uint64_t phb_id
uint16_t bdfn
bool request_enabled
phb_idOPAL ID of the PHB
bdfnBus-Device-Function number of the device
request_enabledRequested state of relaxed memory ordering enablement
Return values¶
OPAL_SUCCESSRequested state set
OPAL_PARAMETERThe given phb_id or bdfn is invalid or out of range
OPAL_CONSTRAINEDRelaxed ordering can not be enabled until an enable request is made for every device on this PHB.
OPAL_RESOURCENo more relaxed ordering sources are available
OPAL_NPU_GET_RELAXED_ORDER¶
Query the relaxed memory ordering state of a device.
Parameters¶
uint64_t phb_id
uint64_t bdfn
phb_idOPAL ID of the PHB
bdfnBus-Device-Function number of the device
Return values¶
On success, the current relaxed ordering state is returned.
OPAL_PARAMETERThe given phb_id or bdfn is invalid.