dmaengine: idxd: Add wq occupancy information to sysfs attribute
authorDave Jiang <dave.jiang@intel.com>
Thu, 3 Jun 2021 21:57:35 +0000 (14:57 -0700)
committerVinod Koul <vkoul@kernel.org>
Wed, 14 Jul 2021 06:50:56 +0000 (12:20 +0530)
commite753a64bee753136087dfd70b37fdd199e942ea9
tree277d9f5bd9500c2ee8d69b417802574b366f4515
parent0dcfe41e9a4ca759ccc87a48e3bb9cc3b08ff1e8
dmaengine: idxd: Add wq occupancy information to sysfs attribute

Add occupancy information to wq sysfs attribute. Attribute will show
wq occupancy data if "WQ Occupancy Support" field in WQCAP is 1. It
displays the number of entries currently in this WQ. This is provided
as an estimate and should not be relied on to determine whether there
is space in the WQ. The data is to provide information to user apps
for flow control.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162275745546.1857062.8765615879420582018.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/ABI/stable/sysfs-driver-dma-idxd
drivers/dma/idxd/registers.h
drivers/dma/idxd/sysfs.c