mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 21:03:32 +00:00
drm/amdgpu: increase atombios cmd timeout
[ Upstream commit 1b3460a8b1
]
mitigates race condition on BACO reset between GPU bootcode and driver reload
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
2cffad47fa
commit
65cac4b332
1 changed files with 2 additions and 2 deletions
|
@ -742,8 +742,8 @@ static void atom_op_jump(atom_exec_context *ctx, int *ptr, int arg)
|
|||
cjiffies = jiffies;
|
||||
if (time_after(cjiffies, ctx->last_jump_jiffies)) {
|
||||
cjiffies -= ctx->last_jump_jiffies;
|
||||
if ((jiffies_to_msecs(cjiffies) > 5000)) {
|
||||
DRM_ERROR("atombios stuck in loop for more than 5secs aborting\n");
|
||||
if ((jiffies_to_msecs(cjiffies) > 10000)) {
|
||||
DRM_ERROR("atombios stuck in loop for more than 10secs aborting\n");
|
||||
ctx->abort = true;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue