]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Check gmc requirement for reset on init
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 20 Sep 2024 08:47:30 +0000 (14:17 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2024 15:16:32 +0000 (11:16 -0400)
commited3dac4bf9588b5a68e1a85ac45cbbe180df6d4b
tree8d1a1e3a28faa3ce62c0aeb969ad62adea8e74ef
parentee52489d1210dbb894fda71957e1e9832126efda
drm/amdgpu: Check gmc requirement for reset on init

Add a callback to check if there is any condition detected by GMC block
for reset on init. One case is if a pending NPS change request is
detected. If reset is done because of NPS switch, refresh NPS info from
discovery table.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h
drivers/gpu/drm/amd/amdgpu/soc15.c