[PATCH 1/3] drm/amdgpu/gmc9: re-enable AGP

Christian König ckoenig.leichtzumerken at gmail.com
Mon Jan 8 08:17:31 UTC 2024


Am 03.01.24 um 22:55 schrieb Alex Deucher:
> It should be fixed with
> commit ca0b006939f9 ("drm/amdgpu: fix AGP addressing when GART is not at 0")
> so re-enable it.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com> for the series.

> ---
>   drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> index 9bff72356a37..de961bedad3b 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
> @@ -1632,7 +1632,7 @@ static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev,
>   	} else {
>   		amdgpu_gmc_vram_location(adev, mc, base);
>   		amdgpu_gmc_gart_location(adev, mc, AMDGPU_GART_PLACEMENT_BEST_FIT);
> -		if (!amdgpu_sriov_vf(adev) && (amdgpu_agp == 1))
> +		if (!amdgpu_sriov_vf(adev) && (amdgpu_agp != 0))
>   			amdgpu_gmc_agp_location(adev, mc);
>   	}
>   	/* base offset of vram pages */



More information about the amd-gfx mailing list