]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/ras: Add ras support for nbio v7_9_1
authorYiPeng Chai <YiPeng.Chai@amd.com>
Fri, 31 Oct 2025 07:41:26 +0000 (15:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Nov 2025 16:53:22 +0000 (11:53 -0500)
Add ras support for nbio v7_9_1.

Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c
drivers/gpu/drm/amd/ras/rascore/ras_nbio.c

index f8ec0f26a9e793355456f7948e57422d8d222bbd..e31ffebd32d91ac1180888c6a042832954de402f 100644 (file)
@@ -172,12 +172,13 @@ static int amdgpu_ras_mgr_init_nbio_config(struct amdgpu_device *adev,
 
        switch (config->nbio_ip_version) {
        case IP_VERSION(7, 9, 0):
+       case IP_VERSION(7, 9, 1):
                nbio_cfg->nbio_sys_fn = &amdgpu_ras_nbio_sys_func_v7_9;
                break;
        default:
                RAS_DEV_ERR(adev,
                        "The nbio(0x%x) ras config is not right!\n",
-                       config->mp1_ip_version);
+                       config->nbio_ip_version);
                ret = -EINVAL;
                break;
        }
index 8bf1f35d595e66c8262df8fb4e851f6847b862f8..bfddd104d5486f65b811e2733afdea8babd75fba 100644 (file)
@@ -31,6 +31,7 @@ static const struct ras_nbio_ip_func *ras_nbio_get_ip_funcs(
 {
        switch (ip_version) {
        case IP_VERSION(7, 9, 0):
+       case IP_VERSION(7, 9, 1):
                return &ras_nbio_v7_9;
        default:
                RAS_DEV_ERR(ras_core->dev,