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

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 docs: ABI: cleanup several ABI documents 2020-10-30 13:14:29 +01:00
o2cb ABI: o2cb: add an obsolete file for /sys/o2cb 2021-09-28 12:48:15 +02:00
procfs-audit_loginuid audit: drop /proc/PID/loginuid documentation Format field 2021-04-01 18:32:24 -04:00
syscalls
sysfs-acpi-pmprofile docs: ABI: cleanup several ABI documents 2020-10-30 13:14:29 +01:00
sysfs-block block: export dma_alignment attribute 2022-06-27 06:29:11 -06:00
sysfs-bus-firewire docs: ABI: stable: make files ReST compatible 2020-10-30 13:07:01 +01:00
sysfs-bus-fsl-mc bus: fsl-mc: add autorescan sysfs 2021-01-27 15:13:53 +01:00
sysfs-bus-mhi bus: mhi: host: Add soc_reset sysfs 2022-04-23 18:57:32 +05:30
sysfs-bus-nvmem docs: ABI: stable: make files ReST compatible 2020-10-30 13:07:01 +01:00
sysfs-bus-usb docs: ABI: stable: make files ReST compatible 2020-10-30 13:07:01 +01:00
sysfs-bus-vmbus docs: typo fixes in Documentation/ABI/ 2021-05-13 09:13:25 -06:00
sysfs-bus-w1 docs: ABI: cleanup several ABI documents 2020-10-30 13:14:29 +01:00
sysfs-bus-xen-backend docs: typo fixes in Documentation/ABI/ 2021-05-13 09:13:25 -06:00
sysfs-class-backlight docs: ABI: stable: make files ReST compatible 2020-10-30 13:07:01 +01:00
sysfs-class-infiniband ABI: sysfs-class-infiniband: use wildcards on What definitions 2021-09-21 18:31:16 +02:00
sysfs-class-rfkill docs: ABI: stable: make files ReST compatible 2020-10-30 13:07:01 +01:00
sysfs-class-tpm ABI: sysfs-class-tpm: use wildcards for pcr-* nodes 2021-09-21 18:31:15 +02:00
sysfs-class-ubi
sysfs-class-udc
sysfs-devices ABI: sysfs-devices: add /dev ABI 2021-09-28 12:48:15 +02:00
sysfs-devices-node x86/sgx: Add an attribute for the amount of SGX memory in a NUMA node 2021-12-09 07:02:22 -08:00
sysfs-devices-system-cpu topology/sysfs: Add PPIN in sysfs under cpu topology 2022-02-01 16:36:42 +01:00
sysfs-devices-system-xen_memory xen/balloon: add runtime control for scrubbing ballooned out pages 2018-09-14 08:51:10 -04:00
sysfs-driver-aspeed-vuart drivers/tty/serial/8250: Make Aspeed VUART SIRQ polarity configurable 2019-10-04 15:05:20 +02:00
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 docs: ABI: sysfs-driver-dma-ioatdma: what starts with /sys 2020-11-02 13:45:37 +01:00
sysfs-driver-firmware-zynqmp firmware: zynqmp: Add documentation for runtime feature config 2022-02-25 12:13:20 +01:00
sysfs-driver-ib_srp docs: ABI: stable: make files ReST compatible 2020-10-30 13:07:01 +01:00
sysfs-driver-mlxreg-io Documentation/ABI: Add new attributes for mlxreg-io sysfs interfaces 2022-07-14 23:00:21 +02:00
sysfs-driver-qla2xxx
sysfs-driver-speakup speakup: Make dectlk flush timeout configurable 2021-02-04 17:05:48 +01:00
sysfs-driver-usb-usbtmc usb: usbtmc: Remove sysfs group TermChar and auto_abort 2018-09-20 13:04:03 +02:00
sysfs-driver-w1_ds28e04 docs: w1: convert to ReST and add to the kAPI group of docs 2019-07-31 14:16:17 -06:00
sysfs-driver-w1_ds28ea00 docs: w1: convert to ReST and add to the kAPI group of docs 2019-07-31 14:16:17 -06:00
sysfs-driver-w1_ds2438 w1: ds2438: support for writing to offset register 2021-05-21 14:51:33 +02:00
sysfs-firmware-efi-vars docs: ABI: stable: make files ReST compatible 2020-10-30 13:07:01 +01:00
sysfs-firmware-opal-dump docs: ABI: stable: make files ReST compatible 2020-10-30 13:07:01 +01:00
sysfs-firmware-opal-elog docs: ABI: stable: make files ReST compatible 2020-10-30 13:07:01 +01:00
sysfs-fs-orangefs
sysfs-hypervisor-xen docs: ABI: stable: make files ReST compatible 2020-10-30 13:07:01 +01:00
sysfs-kernel-notes docs: stable-ABI: Document /sys/kernel/notes 2020-09-16 12:17:47 -06:00
sysfs-module sysfs docs: ABI: Fix typo in comment 2022-07-28 16:32:33 +02:00
sysfs-transport-srp
thermal-notification
vdso docs: ABI: vdso: use the right format for ABI 2020-10-30 13:12:53 +01:00