From a343839e3cd2c128450821c14dabfc5f8efa9643 Mon Sep 17 00:00:00 2001 From: tiancyin Date: Thu, 8 May 2025 15:38:55 +0800 Subject: [PATCH] libhsakmt: work around VaMgr free_list_ size is not 1 In some cases, the upper modules of rocr-runtime did not free all of the memories at the end of the application's life time, it causes below error logs: pid:13066 tid:0x7f08718c4080 [~VaMgr] free_list_ size is not 1. pid:13066 tid:0x7f08718c4080 [~VaMgr] frag_map_ size is not 1. Change the log level from debug to info to work around this problem. Signed-off-by: tiancyin --- wddm/va_mgr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wddm/va_mgr.cpp b/wddm/va_mgr.cpp index 40f912b0d1..cc81727d87 100644 --- a/wddm/va_mgr.cpp +++ b/wddm/va_mgr.cpp @@ -18,9 +18,9 @@ VaMgr::VaMgr(uint64_t start, uint64_t size, uint64_t min_align) { VaMgr::~VaMgr() { if (free_list_.size() != 1) - pr_err("free_list_ size is not 1.\n"); + pr_warn("free_list_ size:%ld which should be 1.\n", free_list_.size()); if (frag_map_.size() != 1) - pr_err("frag_map_ size is not 1.\n"); + pr_warn("frag_map_ size:%ld which should be 1.\n", frag_map_.size()); free_list_.clear(); frag_map_.clear();