Skip to content
Commit 50c5e6f4 authored by Rex Zhang's avatar Rex Zhang Committed by Vinod Koul
Browse files

dmaengine: idxd: Modify the dependence of attribute pasid_enabled



Kernel PASID and user PASID are separately enabled. User needs to know the
user PASID enabling status to decide how to use IDXD device in user space.
This is done via the attribute /sys/bus/dsa/devices/dsa0/pasid_enabled.
It's unnecessary for user to know the kernel PASID enabling status because
user won't use the kernel PASID. But instead of showing the user PASID
enabling status, the attribute shows the kernel PASID enabling status. Fix
the issue by showing the user PASID enabling status in the attribute.

Fixes: 42a1b738 ("dmaengine: idxd: Separate user and kernel pasid enabling")
Signed-off-by: default avatarRex Zhang <rex.zhang@intel.com>
Acked-by: default avatarFenghua Yu <fenghua.yu@intel.com>
Acked-by: default avatarDave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230614062706.1743078-1-rex.zhang@intel.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent ecc3cfc3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment