From 0099f2e92cacff128722c1c66173c3b4962e9b78 Mon Sep 17 00:00:00 2001 From: Jinzhou Su Date: Tue, 23 Dec 2025 13:45:16 +0800 Subject: [PATCH] drm/amd/ras: Replace NPS flags in ras module Replace AMDGPU_NPS8_PARTITION_MODE with UMC_MEMORY_PARTITION_MODE_NPS8 to pass sriov compilation. Signed-off-by: Jinzhou Su Reviewed-by: YiPeng Chai Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/ras/rascore/ras_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/ras/rascore/ras_core.c b/drivers/gpu/drm/amd/ras/rascore/ras_core.c index 7e70560b590bd..f2fccdf5e3298 100644 --- a/drivers/gpu/drm/amd/ras/rascore/ras_core.c +++ b/drivers/gpu/drm/amd/ras/rascore/ras_core.c @@ -613,7 +613,7 @@ int ras_core_convert_soc_pa_to_cur_nps_pages(struct ras_core_context *ras_core, return -EINVAL; cur_nps_mode = ras_core_get_curr_nps_mode(ras_core); - if (!cur_nps_mode || cur_nps_mode > AMDGPU_NPS8_PARTITION_MODE) + if (!cur_nps_mode || cur_nps_mode > UMC_MEMORY_PARTITION_MODE_NPS8) return -EINVAL; memset(&record, 0, sizeof(record)); -- 2.47.3