diff options
author | Lijo Lazar <[email protected]> | 2024-09-19 19:36:19 +0530 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2024-10-07 14:32:23 -0400 |
commit | 012be6f22c01e25c995c30f1f178ac11820dfb65 (patch) | |
tree | f9ed8d6deb0a6145fcb2fc036883df4cb9a3b883 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | bbc160084edad8db569f6af0291e0ff9a8f41c0c (diff) |
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_object.c')
0 files changed, 0 insertions, 0 deletions