]> www.infradead.org Git - users/hch/configfs.git/commit
drm/amdgpu: Disable dpm_enabled flag while VF is in reset
authorVictor Skvortsov <victor.skvortsov@amd.com>
Thu, 8 Aug 2024 17:22:34 +0000 (13:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Aug 2024 16:12:52 +0000 (12:12 -0400)
commitf83cec3b3a7c968bbceb810b7acd1baf3fe8cd87
treec2fc37bb40f7b0a68d1401721b7a45eb743e7b5f
parent35c7152202e111968b10140383f49da9159d2704
drm/amdgpu: Disable dpm_enabled flag while VF is in reset

VFs do not perform HW fini/suspend in FLR, so the dpm_enabled
is incorrectly kept enabled. Add interface to disable it in
virt_pre_reset call.

v2: Made implementation generic for all asics
v3: Re-order conditionals so PP_MP1_STATE_FLR is only evaluated on VF

Signed-off-by: Victor Skvortsov <victor.skvortsov@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h
drivers/gpu/drm/amd/include/kgd_pp_interface.h
drivers/gpu/drm/amd/pm/amdgpu_dpm.c