[PATCH] drm/amdgpu: make sure to reserve tmr region on all asics which support it

Nirmoy nirmodas at amd.com
Wed Jun 24 14:23:11 UTC 2020


Acked-by: Nirmoy Das <nirmoy.das at amd.com>

On 6/22/20 11:41 PM, Alex Deucher wrote:
> This includes older APUs like renoir.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> index f1855a8323b2..7d51768684dd 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
> @@ -1974,7 +1974,7 @@ int amdgpu_ttm_init(struct amdgpu_device *adev)
>   	 * If IP discovery enabled, a block of memory should be
>   	 * reserved for IP discovey.
>   	 */
> -	if (adev->asic_type >= CHIP_NAVI10 && amdgpu_discovery) {
> +	if (adev->discovery_bin) {
>   		r = amdgpu_ttm_reserve_tmr(adev);
>   		if (r)
>   			return r;


More information about the amd-gfx mailing list