OSDN Git Service

drm/amdgpu: Double the timeout count on emulation mode
authorShaoyun Liu <Shaoyun.Liu@amd.com>
Wed, 7 Feb 2018 19:43:13 +0000 (14:43 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:49 +0000 (14:19 -0500)
Signed-off-by: Shaoyun Liu <Shaoyun.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

index 2aa8067..c3e2235 100644 (file)
@@ -1786,6 +1786,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;