[PATCH] drm/amdgpu: Double the timeout count on emulation mode
Alex Deucher
alexdeucher at gmail.com
Wed Feb 7 20:26:38 UTC 2018
On Wed, Feb 7, 2018 at 2:53 PM, Shaoyun Liu <Shaoyun.Liu at amd.com> wrote:
> Change-Id: If73d9e5f1f2f998d927f506ca4b7a961db368716
> Signed-off-by: Shaoyun Liu <Shaoyun.Liu at amd.com>
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index f6ec36f..7968944 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -1813,6 +1813,8 @@ int amdgpu_device_init(struct amdgpu_device *adev,
> adev->flags = flags;
> adev->asic_type = flags & AMD_ASIC_MASK;
> adev->usec_timeout = AMDGPU_MAX_USEC_TIMEOUT;
> + if (amdgpu_emu_mode == 1)
> + adev->usec_timeout *= 2;
> adev->gmc.gart_size = 512 * 1024 * 1024;
> adev->accel_working = false;
> adev->num_rings = 0;
> --
> 1.9.1
>
> _______________________________________________
> 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