dma_intel: fix ats_disable attribute handling 91/42991/2
authorJeff Shaw <[email protected]>
Tue, 20 May 2025 19:45:20 +0000 (12:45 -0700)
committerJeff Shaw <[email protected]>
Tue, 20 May 2025 21:13:17 +0000 (14:13 -0700)
commit6f81e37e8f6e79a0ddea8a81d4c4ed847918f4e7
tree043c4d40c7317253a66e182aa553ac8652cdba18
parentd9d991c510c6287bd3f077976c5b6e46a7e81f4f
dma_intel: fix ats_disable attribute handling

Some DSA devices allow the Address Translation Service (ATS) to be
controlled at the workqueue level. For those devices, the ats_disable
attribute is exposed in sysfs. For devices that do not support ATS
control per workqueue, and are driven by an idxd kernel driver >= 6.6,
the ats_disable attribute is not visible in sysfs.

This change fixes the DSA workqueue initialization to handle the case
where the ats_disable sysfs attribute is not present.

Type: fix

Change-Id: Ia11a90686b9e1916ab50a4209b67f3270190c3f1
Signed-off-by: Jeff Shaw <[email protected]>
src/plugins/dma_intel/main.c