diff options
| author | Lijo Lazar <[email protected]> | 2024-09-19 14:06:19 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-10-07 18:32:23 +0000 |
| commit | 012be6f22c01e25c995c30f1f178ac11820dfb65 (patch) | |
| tree | f9ed8d6deb0a6145fcb2fc036883df4cb9a3b883 /drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c | |
| parent | drm/amdgpu: Add gmc interface to request NPS mode (diff) | |
| download | kernel-012be6f22c01e25c995c30f1f178ac11820dfb65.tar.gz kernel-012be6f22c01e25c995c30f1f178ac11820dfb65.zip | |
drm/amdgpu: Add sysfs interfaces for NPS mode
Add a sysfs interface to see available NPS modes to switch to -
cat /sys/bus/pci/devices/../available_memory_paritition
Make the current_memory_partition sysfs node read/write for requesting a
new NPS mode. The request is only cached and at a later point a driver
unload/reload is required to switch to the new NPS mode.
Ex:
echo NPS1 > /sys/bus/pci/devices/../current_memory_paritition
echo NPS4 > /sys/bus/pci/devices/../current_memory_paritition
The above interfaces will be available only if the SOC supports more than
one NPS mode.
Also modify the current memory partition sysfs logic to be more
generic.
Signed-off-by: Lijo Lazar <[email protected]>
Reviewed-by: Rajneesh Bhardwaj <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c')
0 files changed, 0 insertions, 0 deletions
