Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: enable gfx12 queue reset flag

Enable the kgq and kcq queue reset flag

Signed-off-by: Jesse Zhang <jesse.zhang@amd.com>
Reviewed-by: Tim Huang <tim.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Jesse Zhang and committed by
Alex Deucher
f7e672e6 e4479aec

+9 -1
+9 -1
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c
··· 1442 1442 } 1443 1443 } 1444 1444 1445 - /* TODO: Add queue reset mask when FW fully supports it */ 1446 1445 adev->gfx.gfx_supported_reset = 1447 1446 amdgpu_get_soft_full_reset_mask(&adev->gfx.gfx_ring[0]); 1448 1447 adev->gfx.compute_supported_reset = 1449 1448 amdgpu_get_soft_full_reset_mask(&adev->gfx.compute_ring[0]); 1449 + switch (amdgpu_ip_version(adev, GC_HWIP, 0)) { 1450 + case IP_VERSION(12, 0, 0): 1451 + case IP_VERSION(12, 0, 1): 1452 + if ((adev->gfx.me_fw_version >= 2660) && 1453 + (adev->gfx.mec_fw_version >= 2920)) { 1454 + adev->gfx.compute_supported_reset |= AMDGPU_RESET_TYPE_PER_QUEUE; 1455 + adev->gfx.gfx_supported_reset |= AMDGPU_RESET_TYPE_PER_QUEUE; 1456 + } 1457 + } 1450 1458 1451 1459 if (!adev->enable_mes_kiq) { 1452 1460 r = amdgpu_gfx_kiq_init(adev, GFX12_MEC_HPD_SIZE, 0);