Add the proper checks for some of the gfx11 variant IP's
for firmware support of userqueues.

Signed-off-by: Sunil Khatri <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c 
b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
index 2c160ec9dc57..ca142c69cc28 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c
@@ -1670,7 +1670,11 @@ static int gfx_v11_0_sw_init(struct amdgpu_ip_block 
*ip_block)
        case IP_VERSION(11, 5, 2):
        case IP_VERSION(11, 5, 3):
                /* add firmware version checks here */
-               if (0 && !adev->gfx.disable_uq) {
+               if (!adev->gfx.disable_uq &&
+                   adev->gfx.me_fw_version  >= 3090 &&
+                   adev->gfx.pfp_fw_version >= 3190 &&
+                   adev->gfx.mec_fw_version >= 3450 &&
+                   adev->mes.fw_version[0] >= 147) {
                        adev->userq_funcs[AMDGPU_HW_IP_GFX] = &userq_mes_funcs;
                        adev->userq_funcs[AMDGPU_HW_IP_COMPUTE] = 
&userq_mes_funcs;
                }
-- 
2.34.1

Reply via email to