drm/amd/ras: Replace NPS flags in ras module
Subsystems (2)
PATCH 1/1 drm/amd/ras: Replace NPS flags in ras module
Replace AMDGPU_NPS8_PARTITION_MODE withUMC_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(-)
drivers/gpu/drm/amd/ras/rascore/ras_core.c +1 -1
@@ -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));
Signature · 1 line
2.43.0
[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(-)
drivers/gpu/drm/amd/ras/rascore/ras_core.c +1 -1
@@ -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