Skip to content

tests/intel/xe_fault_injection: Ignore all errors while injecting fault

Jonathan Cavitt igt-dev 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 0 repliesNew
  2. v42 patches 5 repliesSuperseded
  3. v3 posting 2/21 patch 3 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 posting 1/21 patch2 repliesSuperseded
v2 posting 2/21 patch2 repliesSuperseded
v2 posting 1/21 patch1 replySuperseded

Changes in v5 from the cover letter

- Pass preexisting pci name instead of attempting to regenerate it on each run of ignore_dmesg_errors_from_dut (Daniele)
- Make pci_slot a const parameter (John)

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tests/intel/xe_fault_injection: Make pci_slot consttests/intel/xe_fault_injection.c+2 -20 replies
2/2tests/intel/xe_fault_injection: Ignore all errors while injecting faulttests/intel/xe_fault_injection.c+27 -330 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDaniele Ceraolo SpurioKamil Konieczny
SeriesR-b R-b
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/2] tests/intel/xe_fault_injection: Ignore all errors while injecting fault

Currently, numerous fault messages have been included in the dmesg ignore list, and this list continues to expand. Each time a new fault injection point is introduced or a new feature is activated, additional fault messages appear, making it cumbersome to manage the dmesg ignore list.

However, we can safely assert that all dmesg reports that contain *ERROR* in their message can be ignored, so add them to the dmesg ignore list. This unfortunately does not include the device probe error itself, so that must be added separately.

While we're here, we should also assert that any errors we see are only coming from the target PCI device. We can do this by passing the pci_slot name to the dmesg ignore list, which is generated during test initialization. In order to pass this information, all test functions need to take the pci_slot name as a parameter.

Some functions already take the pci_slot name as a parameter but should be modified to make the pci_slot parameter a const variable.

v2:
- Only ignore error-level dmesg reports (or, at least, reports with *ERROR* in them), and device probe failues
- Add PCI data to regex (Michal)

v3: (Michal)
- Revert name change
- Add change log
- Remove fixes tag from commit
- Rename ignore_faults_in_dmesg to igt_ignore_dmesg_errors_from_dut, and move to lib/igt_core.c
- Minor code fixes

v4:
- Return ignore_faults_in_dmesg to tests/intel/xe_fault_injection.c, but keep it renamed to ignore_dmesg_errors_from_dut (Kamil)

v5:
- Pass preexisting pci name instead of attempting to regenerate it on each run of ignore_dmesg_errors_from_dut (Daniele)
- Make pci_slot a const parameter (John)

v6:
- Minor wording fixups (Daniele, Kamil)

Jonathan Cavitt (1):
tests/intel/xe_fault_injection: Make pci_slot const

Satyanarayana K V P (1):
tests/intel/xe_fault_injection: Ignore all errors while injecting
fault

 tests/intel/xe_fault_injection.c | 64 +++++++++++++++-----------------
 1 file changed, 29 insertions(+), 35 deletions(-)
Signature · 1 line
2.43.0