]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: Use stack variable to fetch nps info
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 23 Feb 2026 10:58:22 +0000 (16:28 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 23 Mar 2026 18:21:34 +0000 (14:21 -0400)
commit896ffa9847c3d00895fa7f6da5b7e2c141189c9b
tree105eea329f2df248c37b95c7c93fb204af8dc47d
parentd31ed58e2988d4a733242d6900920c9af39db8bb
drm/amdgpu: Use stack variable to fetch nps info

Instead of a dynamic allocation, use stack variable and let the caller
pass the maximum ranges that can be held in the buffer.

Signed-off-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_discovery.c
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.h
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c