Comment 18 for bug 1848741

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote : Re: [amdgpu] Ubuntu 19.10 horizontal graphics corruption on AMD Ryzen 2500u (Raven Ridge)

I guess this patch fixes the issue:
commit b05f65d7720b172b6fde3abfa49ed66837071d45
Author: Alex Deucher <email address hidden>
Date: Thu Aug 15 08:27:09 2019 -0500

    drm/amdgpu/gfx9: update pg_flags after determining if gfx off is possible

    We need to set certain power gating flags after we determine
    if the firmware version is sufficient to support gfxoff.
    Previously we set the pg flags in early init, but we later
    we might have disabled gfxoff if the firmware versions didn't
    support it. Move adding the additional pg flags after we
    determine whether or not to support gfxoff.

    Fixes: 005440066f92 ("drm/amdgpu: enable gfxoff again on raven series (v2)")
    Tested-by: Kai-Heng Feng <email address hidden>
    Tested-by: Tom St Denis <email address hidden>
    Signed-off-by: Alex Deucher <email address hidden>
    Cc: Kai-Heng Feng <email address hidden>

Please test latest mainline kernel:
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.4-rc5/