Re: [PATCH] drm/amd/display: Fix the display corruption issue on Navi10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 20, 2020 at 2:49 AM Yifan Zhang <yifan1.zhang@xxxxxxx> wrote:
>
> [Why]
> Screen corruption on Navi10 card
>
> [How]
> Set system context in DCN only on Renoir and Cezanne
>
> Signed-off-by: Yifan Zhang <yifan1.zhang@xxxxxxx>

Acked-by: Alex Deucher <alexander.deucher@xxxxxxx>

> ---
>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> index 3d534a4da20b..6855aad7f312 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
> @@ -1061,10 +1061,12 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
>
>         dc_hardware_init(adev->dm.dc);
>
> -       mmhub_read_system_context(adev, &pa_config);
> +       if (adev->asic_type == CHIP_RENOIR) {
> +               mmhub_read_system_context(adev, &pa_config);
>
> -       // Call the DC init_memory func
> -       dc_setup_system_context(adev->dm.dc, &pa_config);
> +               // Call the DC init_memory func
> +               dc_setup_system_context(adev->dm.dc, &pa_config);
> +       }
>
>         adev->dm.freesync_module = mod_freesync_create(adev->dm.dc);
>         if (!adev->dm.freesync_module) {
> --
> 2.17.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux