mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-05 14:17:43 +00:00
drm/amdgpu: increased atom cmd timeout
added macro to define timeout 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>
This commit is contained in:
parent
5aaa8fff3a
commit
9a785c7ad1
1 changed files with 5 additions and 2 deletions
|
@ -54,6 +54,8 @@
|
|||
#define PLL_INDEX 2
|
||||
#define PLL_DATA 3
|
||||
|
||||
#define ATOM_CMD_TIMEOUT_SEC 20
|
||||
|
||||
typedef struct {
|
||||
struct atom_context *ctx;
|
||||
uint32_t *ps, *ws;
|
||||
|
@ -744,8 +746,9 @@ 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) > 10000)) {
|
||||
DRM_ERROR("atombios stuck in loop for more than 10secs aborting\n");
|
||||
if ((jiffies_to_msecs(cjiffies) > ATOM_CMD_TIMEOUT_SEC*1000)) {
|
||||
DRM_ERROR("atombios stuck in loop for more than %dsecs aborting\n",
|
||||
ATOM_CMD_TIMEOUT_SEC);
|
||||
ctx->abort = true;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue