wsl/hsakmt: Standardize warning logging with pr_warn_once

Signed-off-by: Horatio Zhang <Hongkun.Zhang@amd.com>
Reviewed-by: Flora Cui <flora.cui@amd.com>
Reviewed-by: Shane Xiao <shane.xiao@amd.com>
Part-of: <http://10.67.69.192/wsl/libhsakmt/-/merge_requests/40>
This commit is contained in:
Horatio Zhang
2024-10-09 16:31:52 +08:00
committed by Frank Min
parent c52d47b644
commit 6d5324c957
8 changed files with 57 additions and 22 deletions
+3
View File
@@ -30,6 +30,7 @@
HSAKMT_STATUS HSAKMTAPI hsaKmtSPMAcquire(HSAuint32 PreferredNode) {
CHECK_DXG_OPEN();
// Used for profiling tools
pr_warn_once("not supported\n");
return HSAKMT_STATUS_NOT_SUPPORTED;
}
@@ -38,11 +39,13 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtSPMSetDestBuffer(
HSAuint32 *SizeCopied, void *DestMemoryAddress, bool *isSPMDataLoss) {
CHECK_DXG_OPEN();
// Used for profiling tools
pr_warn_once("not supported\n");
return HSAKMT_STATUS_NOT_SUPPORTED;
}
HSAKMT_STATUS HSAKMTAPI hsaKmtSPMRelease(HSAuint32 PreferredNode) {
CHECK_DXG_OPEN();
// Used for profiling tools
pr_warn_once("not supported\n");
return HSAKMT_STATUS_NOT_SUPPORTED;
}