diff options
author | Fenghua Yu <fenghua.yu@intel.com> | 2023-01-27 22:28:55 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-02-16 16:15:48 +0300 |
commit | 601bdadadb505a72d9a76cc20cdfa252cba7ddc0 (patch) | |
tree | 5e788a051c0a71fdc0d758c5ee648f19ae0849c4 /drivers/dma/ptdma/ptdma-dmaengine.c | |
parent | b02e07015a5ac7bbc029da931ae17914b8ae0339 (diff) | |
download | linux-601bdadadb505a72d9a76cc20cdfa252cba7ddc0.tar.xz |
dmaengine: idxd: Fix default allowed read buffers value in group
Currently default read buffers that is allowed in a group is 0.
grpcfg will be configured to max read buffers that IDXD can support if
the group's allowed read buffers value is 0. But 0 is an invalid
read buffers value and user may get confused when seeing the invalid
initial value 0 through sysfs interface.
To show only valid allowed read buffers value and eliminate confusion,
directly initialize the allowed read buffers to IDXD's max read buffers.
User still can change the value through sysfs interface.
Suggested-by: Ramesh Thomas <ramesh.thomas@intel.com>
Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Nikhil Rao <nikhil.rao@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230127192855.966929-1-fenghua.yu@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/ptdma/ptdma-dmaengine.c')
0 files changed, 0 insertions, 0 deletions