From d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Mon, 11 Dec 2023 02:45:28 +0000 Subject: [PATCH] add boot partition size --- kernel/drivers/gpu/drm/amd/amdgpu/atom.c | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/kernel/drivers/gpu/drm/amd/amdgpu/atom.c b/kernel/drivers/gpu/drm/amd/amdgpu/atom.c index 0222bb7..4cfc786 100644 --- a/kernel/drivers/gpu/drm/amd/amdgpu/atom.c +++ b/kernel/drivers/gpu/drm/amd/amdgpu/atom.c @@ -27,6 +27,8 @@ #include <linux/slab.h> #include <asm/unaligned.h> +#include <drm/drm_util.h> + #define ATOM_DEBUG #include "atom.h" @@ -51,6 +53,8 @@ #define PLL_INDEX 2 #define PLL_DATA 3 + +#define ATOM_CMD_TIMEOUT_SEC 20 typedef struct { struct atom_context *ctx; @@ -742,8 +746,9 @@ 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 { -- Gitblit v1.6.2