Skip to content

dmaengine: idxd: Add wq occupancy information to sysfs attribute

Julia Denham requested to merge jdenham/centos-stream-9:bz1971888 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1971888 Tested: verified sysfs file exists on a Sapphire Rapids system Upstream Status: kernel/git/torvalds/linux.git

commit e753a64bee753136087dfd70b37fdd199e942ea9 Author: Dave Jiang dave.jiang@intel.com Date: Thu Jun 3 14:57:35 2021 -0700

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 (cherry picked from commit e753a64bee753136087dfd70b37fdd199e942ea9) Signed-off-by: Julia Denham jdenham@redhat.com

Merge request reports