Searched hist:"9118 c5d32bddb5f75bc4f9f31218e70317702502" (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/powerpc/papr_vpd/ |
H A D | .gitignore | 9118c5d32bddb5f75bc4f9f31218e70317702502 Tue Dec 12 18:01:59 CET 2023 Nathan Lynch <nathanl@linux.ibm.com> powerpc/selftests: Add test for papr-vpd
Add selftests for /dev/papr-vpd, exercising the common expected use cases:
* Retrieve all VPD by passing an empty location code. * Retrieve the "system VPD" by passing a location code derived from DT root node properties, as done by the vpdupdate command.
The tests also verify that certain intended properties of the driver hold:
* Passing an unterminated location code to PAPR_VPD_CREATE_HANDLE gets EINVAL. * Passing a NULL location code pointer to PAPR_VPD_CREATE_HANDLE gets EFAULT. * Closing the device node without first issuing a PAPR_VPD_CREATE_HANDLE command to it succeeds. * Releasing a handle without first consuming any data from it succeeds. * Re-reading the contents of a handle returns the same data as the first time.
Some minimal validation of the returned data is performed.
The tests are skipped on systems where the papr-vpd driver does not initialize, making this useful only on PowerVM LPARs at this point.
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20231212-papr-sys_rtas-vs-lockdown-v6-12-e9eafd0c8c6c@linux.ibm.com
|
H A D | Makefile | 9118c5d32bddb5f75bc4f9f31218e70317702502 Tue Dec 12 18:01:59 CET 2023 Nathan Lynch <nathanl@linux.ibm.com> powerpc/selftests: Add test for papr-vpd
Add selftests for /dev/papr-vpd, exercising the common expected use cases:
* Retrieve all VPD by passing an empty location code. * Retrieve the "system VPD" by passing a location code derived from DT root node properties, as done by the vpdupdate command.
The tests also verify that certain intended properties of the driver hold:
* Passing an unterminated location code to PAPR_VPD_CREATE_HANDLE gets EINVAL. * Passing a NULL location code pointer to PAPR_VPD_CREATE_HANDLE gets EFAULT. * Closing the device node without first issuing a PAPR_VPD_CREATE_HANDLE command to it succeeds. * Releasing a handle without first consuming any data from it succeeds. * Re-reading the contents of a handle returns the same data as the first time.
Some minimal validation of the returned data is performed.
The tests are skipped on systems where the papr-vpd driver does not initialize, making this useful only on PowerVM LPARs at this point.
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20231212-papr-sys_rtas-vs-lockdown-v6-12-e9eafd0c8c6c@linux.ibm.com
|
H A D | papr_vpd.c | 9118c5d32bddb5f75bc4f9f31218e70317702502 Tue Dec 12 18:01:59 CET 2023 Nathan Lynch <nathanl@linux.ibm.com> powerpc/selftests: Add test for papr-vpd
Add selftests for /dev/papr-vpd, exercising the common expected use cases:
* Retrieve all VPD by passing an empty location code. * Retrieve the "system VPD" by passing a location code derived from DT root node properties, as done by the vpdupdate command.
The tests also verify that certain intended properties of the driver hold:
* Passing an unterminated location code to PAPR_VPD_CREATE_HANDLE gets EINVAL. * Passing a NULL location code pointer to PAPR_VPD_CREATE_HANDLE gets EFAULT. * Closing the device node without first issuing a PAPR_VPD_CREATE_HANDLE command to it succeeds. * Releasing a handle without first consuming any data from it succeeds. * Re-reading the contents of a handle returns the same data as the first time.
Some minimal validation of the returned data is performed.
The tests are skipped on systems where the papr-vpd driver does not initialize, making this useful only on PowerVM LPARs at this point.
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20231212-papr-sys_rtas-vs-lockdown-v6-12-e9eafd0c8c6c@linux.ibm.com
|
/linux/tools/testing/selftests/powerpc/ |
H A D | Makefile | diff 9118c5d32bddb5f75bc4f9f31218e70317702502 Tue Dec 12 18:01:59 CET 2023 Nathan Lynch <nathanl@linux.ibm.com> powerpc/selftests: Add test for papr-vpd
Add selftests for /dev/papr-vpd, exercising the common expected use cases:
* Retrieve all VPD by passing an empty location code. * Retrieve the "system VPD" by passing a location code derived from DT root node properties, as done by the vpdupdate command.
The tests also verify that certain intended properties of the driver hold:
* Passing an unterminated location code to PAPR_VPD_CREATE_HANDLE gets EINVAL. * Passing a NULL location code pointer to PAPR_VPD_CREATE_HANDLE gets EFAULT. * Closing the device node without first issuing a PAPR_VPD_CREATE_HANDLE command to it succeeds. * Releasing a handle without first consuming any data from it succeeds. * Re-reading the contents of a handle returns the same data as the first time.
Some minimal validation of the returned data is performed.
The tests are skipped on systems where the papr-vpd driver does not initialize, making this useful only on PowerVM LPARs at this point.
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20231212-papr-sys_rtas-vs-lockdown-v6-12-e9eafd0c8c6c@linux.ibm.com
|