]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/ras: Replace NPS flags in ras module
authorJinzhou Su <jinzhou.su@amd.com>
Tue, 23 Dec 2025 05:45:16 +0000 (13:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 Jan 2026 22:00:00 +0000 (17:00 -0500)
Replace AMDGPU_NPS8_PARTITION_MODE with
UMC_MEMORY_PARTITION_MODE_NPS8 to pass sriov
compilation.

Signed-off-by: Jinzhou Su <jinzhou.su@amd.com>
Reviewed-by: YiPeng Chai <YiPeng.Chai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/ras/rascore/ras_core.c

index 7e70560b590bdd9aa6dc50355c2b1061e5f8cff5..f2fccdf5e32982a51702a4d1080c03b5792f209d 100644 (file)
@@ -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));