[AMD Official Use Only - AMD Internal Distribution Only]

Reviewed-by: YiPeng Chai <[email protected]>

-----Original Message-----
From: Su, Joe <[email protected]>
Sent: Tuesday, December 23, 2025 1:49 PM
To: [email protected]
Cc: Chai, Thomas <[email protected]>; Su, Joe <[email protected]>
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 <[email protected]>
---
 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 7e70560b590b..f2fccdf5e329 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.43.0

Reply via email to