linux-rockchip/Documentation/ABI/stable
Xiaochen Shen c91e4513bc dmaengine: idxd: Make read buffer sysfs attributes invisible for Intel IAA
[ Upstream commit 9a8ddb35a9d5d3ad76784a012459b256a9d7de7e ]

In current code, the following sysfs attributes are exposed to user to
show or update the values:
  max_read_buffers (max_tokens)
  read_buffer_limit (token_limit)
  group/read_buffers_allowed (group/tokens_allowed)
  group/read_buffers_reserved (group/tokens_reserved)
  group/use_read_buffer_limit (group/use_token_limit)

>From Intel IAA spec [1], Intel IAA does not support Read Buffer
allocation control. So these sysfs attributes should not be supported on
IAA device.

Fix this issue by making these sysfs attributes invisible through
is_visible() filter when the device is IAA.

Add description in the ABI documentation to mention that these
attributes are not visible when the device does not support Read Buffer
allocation control.

[1]: https://cdrdv2.intel.com/v1/dl/getContent/721858

Fixes: fde212e44f ("dmaengine: idxd: deprecate token sysfs attributes for read buffers")
Fixes: c52ca47823 ("dmaengine: idxd: add configuration component of driver")
Signed-off-by: Xiaochen Shen <xiaochen.shen@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20221022074949.11719-1-xiaochen.shen@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:32:47 +01:00
..
firewire-cdev
o2cb
procfs-audit_loginuid
syscalls
sysfs-acpi-pmprofile
sysfs-block
sysfs-bus-firewire
sysfs-bus-fsl-mc
sysfs-bus-mhi
sysfs-bus-nvmem
sysfs-bus-usb
sysfs-bus-vmbus
sysfs-bus-w1
sysfs-bus-xen-backend
sysfs-class-backlight
sysfs-class-infiniband
sysfs-class-rfkill
sysfs-class-tpm
sysfs-class-ubi
sysfs-class-udc
sysfs-devices
sysfs-devices-node
sysfs-devices-system-cpu
sysfs-devices-system-xen_memory
sysfs-driver-aspeed-vuart
sysfs-driver-dma-idxd dmaengine: idxd: Make read buffer sysfs attributes invisible for Intel IAA 2022-12-31 13:32:47 +01:00
sysfs-driver-dma-ioatdma
sysfs-driver-firmware-zynqmp
sysfs-driver-ib_srp
sysfs-driver-mlxreg-io
sysfs-driver-qla2xxx
sysfs-driver-speakup
sysfs-driver-usb-usbtmc
sysfs-driver-w1_ds28e04
sysfs-driver-w1_ds28ea00
sysfs-driver-w1_ds2438
sysfs-firmware-efi-vars
sysfs-firmware-opal-dump
sysfs-firmware-opal-elog
sysfs-fs-orangefs
sysfs-hypervisor-xen
sysfs-kernel-notes
sysfs-module
sysfs-transport-srp
thermal-notification
vdso