diff options
author | Lijo Lazar <lijo.lazar@amd.com> | 2024-09-19 17:06:19 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-10-07 21:32:23 +0300 |
commit | 012be6f22c01e25c995c30f1f178ac11820dfb65 (patch) | |
tree | f9ed8d6deb0a6145fcb2fc036883df4cb9a3b883 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | bbc160084edad8db569f6af0291e0ff9a8f41c0c (diff) | |
download | linux-012be6f22c01e25c995c30f1f178ac11820dfb65.tar.xz |
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 <lijo.lazar@amd.com>
Reviewed-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions