Add setup of event log feature for supported device. Event log addresses error reporting that was lacking in gen 1 DSA devices where a second error event does not get reported when a first event is pending software handling. The event log allows a circular buffer that the device can push error events to. It is up to the user to create a large enough event log ring in order to capture the expected events. The evl size can be set in the device sysfs attribute. By default 64 entries are supported as minimal when event log is enabled.
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -30,6 +30,7 @@ enum idxd_scmd_stat { · 29 unmodified lines | ||
| 30 | 30 | IDXD_SCMD_WQ_NO_PRIV = 0x800f0000, |
| 31 | 31 | IDXD_SCMD_WQ_IRQ_ERR = 0x80100000, |
| 32 | 32 | IDXD_SCMD_WQ_USER_NO_IOMMU = 0x80110000, |
| 33 | + IDXD_SCMD_DEV_EVL_ERR = 0x80120000, | |
| 33 | 34 | }; |
| 34 | 35 | |
| 35 | 36 | #define IDXD_SCMD_SOFTERR_MASK 0x80000000 |