diff options
| author | Emily Deng <Emily.Deng@amd.com> | 2019-10-15 10:08:22 +0800 | 
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2019-10-15 15:50:23 -0400 | 
| commit | bcccee89f48c1e96b2aea067507e89f3581693bb (patch) | |
| tree | 9287d7c56d1884884ef1844d55998749b925db9f /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
| parent | b2c18f0a9c8bd0fa5c1239830b787d5f8288f7b5 (diff) | |
drm/amdgpu: Fix tdr3 could hang with slow compute issue
When index is 1, need to set compute ring timeout for sriov and passthrough.
Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 0473329548aa..62256fe70abd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -249,9 +249,11 @@ module_param_named(msi, amdgpu_msi, int, 0444);   * By default(with no lockup_timeout settings), the timeout for all non-compute(GFX, SDMA and Video)   * jobs is 10000. And there is no timeout enforced on compute jobs.   */ -MODULE_PARM_DESC(lockup_timeout, "GPU lockup timeout in ms (default: 10000 for non-compute jobs and infinity timeout for compute jobs." +MODULE_PARM_DESC(lockup_timeout, "GPU lockup timeout in ms (default: for bare metal 10000 for non-compute jobs and infinity timeout for compute jobs; " +		"for passthrough or sriov, 10000 for all jobs."  		" 0: keep default value. negative: infinity timeout), " -		"format is [Non-Compute] or [GFX,Compute,SDMA,Video]"); +		"format: for bare metal [Non-Compute] or [GFX,Compute,SDMA,Video]; " +		"for passthrough or sriov [all jobs] or [GFX,Compute,SDMA,Video].");  module_param_string(lockup_timeout, amdgpu_lockup_timeout, sizeof(amdgpu_lockup_timeout), 0444);  /**  | 
