mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 00:34:52 +00:00
drm/amdgpu: flag vram lost on baco reset for VI/CIK
VI/CIK BACO was inflight when this fix landed for SOC15/NV. Add the fix to VI/CIK as well. Acked-by: Evan Quan <evan.quan@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
de185019bc
commit
5149f08275
2 changed files with 10 additions and 4 deletions
|
@ -1363,10 +1363,13 @@ static int cik_asic_reset(struct amdgpu_device *adev)
|
|||
{
|
||||
int r;
|
||||
|
||||
if (cik_asic_reset_method(adev) == AMD_RESET_METHOD_BACO)
|
||||
if (cik_asic_reset_method(adev) == AMD_RESET_METHOD_BACO) {
|
||||
if (!adev->in_suspend)
|
||||
amdgpu_inc_vram_lost(adev);
|
||||
r = smu7_asic_baco_reset(adev);
|
||||
else
|
||||
} else {
|
||||
r = cik_asic_pci_config_reset(adev);
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
|
|
@ -804,10 +804,13 @@ static int vi_asic_reset(struct amdgpu_device *adev)
|
|||
{
|
||||
int r;
|
||||
|
||||
if (vi_asic_reset_method(adev) == AMD_RESET_METHOD_BACO)
|
||||
if (vi_asic_reset_method(adev) == AMD_RESET_METHOD_BACO) {
|
||||
if (!adev->in_suspend)
|
||||
amdgpu_inc_vram_lost(adev);
|
||||
r = smu7_asic_baco_reset(adev);
|
||||
else
|
||||
} else {
|
||||
r = vi_asic_pci_config_reset(adev);
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue