From: Jinzhou Su Date: Tue, 23 Dec 2025 05:45:16 +0000 (+0800) Subject: drm/amd/ras: Replace NPS flags in ras module X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0099f2e92cacff128722c1c66173c3b4962e9b78;p=thirdparty%2Fkernel%2Flinux.git 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 --- 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));