Verification: ubuntu@akis:~$ cat einj.sh #!/bin/bash
D="/sys/kernel/debug/apei/einj" # supported errors for injection listed in ${D}/available_error_types # magic numbers from ACPI 6.3 18.6.3 table 18-409 ERROR_TYPE="0x40" # PCIe SBDF - ACPI 6.3 18.6.3 table 18-410 # Byte 3 – PCIe Segment Description # Byte 2 – Bus Number # Byte 1 – Device Number [Bits 7:3], Function Number Bits [2:0] # Byte 0 - Reserved (all zero) PCIDEV="0x00e60000" modprobe einj sleep 1 echo ${ERROR_TYPE} > ${D}/error_type echo ${PCIDEV} > ${D}/param4 echo 1 > ${D}/error_inject ubuntu@akis:~$ sudo ./einj.sh ubuntu@akis:~$ sudo ras-mc-ctl --errors No Memory errors. PCIe AER events: 1 2020-08-11 19:59:36 +0000 0000:0b:00.0 Corrected error: Receiver Error No Extlog errors. DBD::SQLite::db prepare failed: no such table: devlink_event at /usr/sbin/ras-mc-ctl line 1304. Can't call method "execute" on an undefined value at /usr/sbin/ras-mc-ctl line 1305. ** Tags removed: verification-needed verification-needed-focal ** Tags added: verification-done verification-done-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1888423 Title: ras-mc-ctl doesn't provide BDF for PCIe errors To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rasdaemon/+bug/1888423/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs