mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
ppc/pnv: Add a HIOMAP erase command
The OPAL test suite runs a read-erase-write test on the PNOR : https://github.com/open-power/op-test/blob/master/testcases/OpTestPNOR.py which revealed that the IPMI HIOMAP handlers didn't support HIOMAP_C_ERASE. Implement the sector erase command by writing 0xFF in the PNOR memory region. Cc: Corey Minyard <cminyard@mvista.com> Reported-by: Klaus Heinrich Kiwi <klaus@linux.vnet.ibm.com> Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20200820164638.2515681-1-clg@kaod.org> Acked-by: Corey Minyard <cminyard@mvista.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
4f311a7089
commit
c02f9892af
2 changed files with 29 additions and 1 deletions
|
@ -53,6 +53,7 @@ enum ipmi_op {
|
|||
#define IPMI_CC_INVALID_DATA_FIELD 0xcc
|
||||
#define IPMI_CC_BMC_INIT_IN_PROGRESS 0xd2
|
||||
#define IPMI_CC_COMMAND_NOT_SUPPORTED 0xd5
|
||||
#define IPMI_CC_UNSPECIFIED 0xff
|
||||
|
||||
#define IPMI_NETFN_APP 0x06
|
||||
#define IPMI_NETFN_OEM 0x3a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue