dma_intel: fix ats_disable attribute handling 25/43025/1
authorJeff Shaw <[email protected]>
Tue, 20 May 2025 19:45:20 +0000 (12:45 -0700)
committerDave Wallace <[email protected]>
Thu, 22 May 2025 11:38:14 +0000 (11:38 +0000)
commit5e820f9ccc94fe1415613e7089c0cc9cdd90ecac
tree5198006cf4759c4c78643fba7503aa484a2a4faf
parent47505bc21ee3c2e8a6d549032070e595f347121a
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]>
(cherry picked from commit 6f81e37e8f6e79a0ddea8a81d4c4ed847918f4e7)
src/plugins/dma_intel/main.c