[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250506213523.2982756-11-sashal@kernel.org>
Date: Tue, 6 May 2025 17:35:14 -0400
From: Sasha Levin <sashal@...nel.org>
To: patches@...ts.linux.dev,
stable@...r.kernel.org
Cc: Sunil Khatri <sunil.khatri@....com>,
Maarten Lankhorst <dev@...khorst.se>,
Tvrtko Ursulin <tvrtko.ursulin@...lia.com>,
Christian König <christian.koenig@....com>,
Sasha Levin <sashal@...nel.org>,
ray.huang@....com,
maarten.lankhorst@...ux.intel.com,
mripard@...nel.org,
tzimmermann@...e.de,
airlied@...il.com,
simona@...ll.ch,
dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: [PATCH AUTOSEL 6.14 11/20] drm/ttm: fix the warning for hit_low and evict_low
From: Sunil Khatri <sunil.khatri@....com>
[ Upstream commit 76047483fe94414edf409dc498498abf346e22f1 ]
fix the below warning messages:
ttm/ttm_bo.c:1098: warning: Function parameter or struct member 'hit_low' not described in 'ttm_bo_swapout_walk'
ttm/ttm_bo.c:1098: warning: Function parameter or struct member 'evict_low' not described in 'ttm_bo_swapout_walk'
Cc: Maarten Lankhorst <dev@...khorst.se>
Cc: Tvrtko Ursulin <tvrtko.ursulin@...lia.com>
Signed-off-by: Sunil Khatri <sunil.khatri@....com>
Reviewed-by: Maarten Lankhorst <dev@...khorst.se>
Signed-off-by: Christian König <christian.koenig@....com>
Link: https://lore.kernel.org/r/20250423042442.762108-1-sunil.khatri@amd.com
Signed-off-by: Sasha Levin <sashal@...nel.org>
---
drivers/gpu/drm/ttm/ttm_bo.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index ea5e498588573..72c675191a022 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -1092,7 +1092,8 @@ struct ttm_bo_swapout_walk {
struct ttm_lru_walk walk;
/** @gfp_flags: The gfp flags to use for ttm_tt_swapout() */
gfp_t gfp_flags;
-
+ /** @hit_low: Whether we should attempt to swap BO's with low watermark threshold */
+ /** @evict_low: If we cannot swap a bo when @try_low is false (first pass) */
bool hit_low, evict_low;
};
--
2.39.5
Powered by blists - more mailing lists