drm/amdgpu: Add supported NPS modes node
authorAsad Kamal <asad.kamal@amd.com>
Wed, 30 Oct 2024 11:02:01 +0000 (19:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 Nov 2024 16:07:34 +0000 (11:07 -0500)
commit04e9101766dfe1f140e59090935552b2906c5425
tree86a8a82016cc326a1ac3b28ab424b835b11a5bf6
parent35a6e15aabc016a241379c09d6c367519709b95b
drm/amdgpu: Add supported NPS modes node

Add sysfs node to show supported NPS mode for the
partition configuration selected using xcp_config

v2: Hide node if dynamic nps switch not supported

v3: Fix removal of files in case of error

Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c