]> git.hungrycats.org Git - linux/commitdiff
drm/amdgpu: Allocate enough space for hpd info on gfx11
authorAmber Lin <Amber.Lin@amd.com>
Wed, 6 May 2026 19:02:35 +0000 (15:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jun 2026 19:51:34 +0000 (15:51 -0400)
MES in newer versions on gfx11 and gfx12 can support queue/pipe
reset via MES.

Signed-off-by: Amber Lin <Amber.Lin@amd.com>
Reviewed-by: Jesse Zhang <jesse.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c

index 3aa5bd1e67c1a472012f34c81be3b8190a2fa9b4..ae45d840a0665c3b9e6c6b00f6a0f90aec8be797 100644 (file)
@@ -217,7 +217,7 @@ int amdgpu_mes_init(struct amdgpu_device *adev)
        if (r)
                goto error_doorbell;
 
-       if (amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(12, 1, 0)) {
+       if (amdgpu_ip_version(adev, GC_HWIP, 0) >= IP_VERSION(11, 0, 0)) {
                /* When queue/pipe reset is done in MES instead of in the
                 * driver, MES passes hung queues information to the driver in
                 * hung_queue_hqd_info. Calculate required space to store this