]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: Avoid hive seqno increment in legacy ras
authorYiPeng Chai <YiPeng.Chai@amd.com>
Tue, 25 Mar 2025 06:11:10 +0000 (14:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 Oct 2025 22:18:55 +0000 (18:18 -0400)
The hive->event_mgr variable is used by both ras module
and legacy ras. To ensure the continuity of hive seqno
growth, after enabling ras module, it is forbidden to
operate the event_mgr variable in legacy ras.

Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c

index 5b610f668fcc26febe0b8c1b423d13457e968122..bc3f34c2c2d613f4779c02c500f05081039664b2 100644 (file)
@@ -4603,6 +4603,9 @@ int amdgpu_ras_mark_ras_event_caller(struct amdgpu_device *adev, enum ras_event_
        struct ras_event_state *event_state;
        int ret = 0;
 
+       if (amdgpu_uniras_enabled(adev))
+               return 0;
+
        if (type >= RAS_EVENT_TYPE_COUNT) {
                ret = -EINVAL;
                goto out;