[Bug 216917] hibernation regression since 6.0.18 (Ryzen-5650U incl. Radeon GPU)
bugzilla-daemon at kernel.org
bugzilla-daemon at kernel.org
Tue Jan 17 15:34:06 UTC 2023
https://bugzilla.kernel.org/show_bug.cgi?id=216917
--- Comment #25 from Rainer Fiebig (jrf at mailbox.org) ---
(In reply to Alex Deucher from comment #23)
> I'll just revert it. It is more important for kernels with the the
> drm_buddy changes.
Would the following be equivalent to what you intended with your commit?
Looks a bit awkward but hibernate/resume work with it for 6.0.19 (and a Ryzen
5600G):
uint32_t amdgpu_bo_get_preferred_domain(struct amdgpu_device *adev,
uint32_t domain)
{
if (domain == (AMDGPU_GEM_DOMAIN_VRAM | AMDGPU_GEM_DOMAIN_GTT)) {
domain = AMDGPU_GEM_DOMAIN_VRAM;
if ((adev->asic_type == CHIP_CARRIZO) || (adev->asic_type ==
CHIP_STONEY)) {
if (adev->gmc.real_vram_size <= AMDGPU_SG_THRESHOLD)
domain = AMDGPU_GEM_DOMAIN_GTT;
}
}
return domain;
}
Let me know whether this is worth persuing. I could then test it with 5.15.88
and 6.1.6.
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the dri-devel
mailing list