summaryrefslogtreecommitdiff
path: root/include/uapi/linux/idxd.h
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2021-08-19 19:34:06 +0300
committerVinod Koul <vkoul@kernel.org>2021-08-29 16:44:20 +0300
commitd8071323c5632bdf0a8ef9b9e5662fac43649f9d (patch)
tree4184d8f8eda5c2830302812456daf79d3ba233ba /include/uapi/linux/idxd.h
parentaac6c0f90799d66b8989be1e056408f33fd99fe6 (diff)
downloadlinux-d8071323c5632bdf0a8ef9b9e5662fac43649f9d.tar.xz
dmaengine: idxd: fix setting up priv mode for dwq
DSA spec says WQ priv bit is 0 if the Privileged Mode Enable field of the PCI Express PASID capability is 0 and pasid is enabled. Make sure that the WQCFG priv field is set correctly according to usage type. Reject config if setting up kernel WQ type and no support. Also add the correct priv setup for a descriptor. Fixes: 484f910e93b4 ("dmaengine: idxd: fix wq config registers offset programming") Cc: Ramesh Thomas <ramesh.thomas@intel.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/162939084657.903168.14160019185148244596.stgit@djiang5-desk3.ch.intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/uapi/linux/idxd.h')
-rw-r--r--include/uapi/linux/idxd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/idxd.h b/include/uapi/linux/idxd.h
index ca24c25252fb..c750eac09fc9 100644
--- a/include/uapi/linux/idxd.h
+++ b/include/uapi/linux/idxd.h
@@ -27,6 +27,7 @@ enum idxd_scmd_stat {
IDXD_SCMD_WQ_NO_SWQ_SUPPORT = 0x800c0000,
IDXD_SCMD_WQ_NONE_CONFIGURED = 0x800d0000,
IDXD_SCMD_WQ_NO_SIZE = 0x800e0000,
+ IDXD_SCMD_WQ_NO_PRIV = 0x800f0000,
};
#define IDXD_SCMD_SOFTERR_MASK 0x80000000