dma_intel: fix ats_disable attribute handling 91/42991/3
authorJeff Shaw <[email protected]>
Tue, 20 May 2025 19:45:20 +0000 (12:45 -0700)
committerDave Wallace <[email protected]>
Thu, 22 May 2025 11:21:54 +0000 (11:21 +0000)
commitc58ef06259e6a4454ac6389be588934595ed6020
tree44a8265901429d99164785bf2a3f70d899a61062
parentc42fdfb097cd7b49cf5cfe81884e8c5959589847
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