[PATCH] drm/amdgpu: reserve stollen vram for raven series

Huang, Ray Ray.Huang at amd.com
Tue May 28 10:08:29 UTC 2019


> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of Cui,
> Flora
> Sent: Tuesday, May 28, 2019 3:55 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Cui, Flora <Flora.Cui at amd.com>
> Subject: [PATCH] drm/amdgpu: reserve stollen vram for raven series
> 
> to avoid screen corruption during modprobe.
> 
> Change-Id: I8671de6ed46285585dbe866832c6d2b835ca37f3
> Signed-off-by: Flora Cui <flora.cui at amd.com>

Thanks. Yes. In raven series, we still found corruption at the start of vram.

Reviewed-by: Huang Rui <ray.huang at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> index 602593b..dbc83a1 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> @@ -624,9 +624,8 @@ static bool gmc_v9_0_keep_stolen_memory(struct
> amdgpu_device *adev)
>  	 */
>  	switch (adev->asic_type) {
>  	case CHIP_VEGA10:
> -		return true;
>  	case CHIP_RAVEN:
> -		return (adev->pdev->device == 0x15d8);
> +		return true;
>  	case CHIP_VEGA12:
>  	case CHIP_VEGA20:
>  	default:
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list