diff options
author | Dave Jiang <dave.jiang@intel.com> | 2020-08-29 01:13:55 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-09-03 10:10:12 +0300 |
commit | ff18de55a62f0e8f0dcf11bfa7f69b23e6e951b0 (patch) | |
tree | 324074b701e98225cef6d749cb0f88cbd39e80bb /drivers/dma/idxd/idxd.h | |
parent | e7184b159dd37f4be8ff3d070c7c11f76b5bc3fe (diff) | |
download | linux-ff18de55a62f0e8f0dcf11bfa7f69b23e6e951b0.tar.xz |
dmaengine: idxd: add command status to idxd sysfs attribute
Export admin command status to sysfs attribute in order to allow user to
retrieve configuration error. Allows user tooling to retrieve the command
error and provide more user friendly error messages.
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/159865278770.29455.8026892329182750127.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/idxd/idxd.h')
-rw-r--r-- | drivers/dma/idxd/idxd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/idxd/idxd.h b/drivers/dma/idxd/idxd.h index e8bec6eb9f7e..c64df197e724 100644 --- a/drivers/dma/idxd/idxd.h +++ b/drivers/dma/idxd/idxd.h @@ -156,6 +156,7 @@ struct idxd_device { unsigned long flags; int id; int major; + u8 cmd_status; struct pci_dev *pdev; void __iomem *reg_base; |