aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorNaman Jain <[email protected]>2025-05-02 07:48:11 +0000
committerGreg Kroah-Hartman <[email protected]>2025-05-02 11:59:02 +0000
commit65995e97a1caacf0024bebda3332b8d1f0f443c4 (patch)
treee8e721ff358699fa7ee807c9132d616e51eaa3d0 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parentuio_hv_generic: Fix sysfs creation path for ring buffer (diff)
downloadkernel-65995e97a1caacf0024bebda3332b8d1f0f443c4.tar.gz
kernel-65995e97a1caacf0024bebda3332b8d1f0f443c4.zip
Drivers: hv: Make the sysfs node size for the ring buffer dynamic
The ring buffer size varies across VMBus channels. The size of sysfs node for the ring buffer is currently hardcoded to 4 MB. Userspace clients either use fstat() or hardcode this size for doing mmap(). To address this, make the sysfs node size dynamic to reflect the actual ring buffer size for each channel. This will ensure that fstat() on ring sysfs node always returns the correct size of ring buffer. Reviewed-by: Michael Kelley <[email protected]> Tested-by: Michael Kelley <[email protected]> Reviewed-by: Dexuan Cui <[email protected]> Signed-off-by: Naman Jain <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
0 files changed, 0 insertions, 0 deletions