drm/amdgpu: Skip TMR allocation if not required
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 24 Nov 2022 08:53:58 +0000 (14:23 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:49:59 +0000 (09:49 -0400)
commit5b03127d4745d6848f208463390e6a76d489eb03
tree0f5e21a2b4d2e976888e9768a3c3c05af308d226
parent845c9b313f3122191c847fcc4092492ce039542a
drm/amdgpu: Skip TMR allocation if not required

On ASICs with PSPv13.0.6, TMR is reserved at boot time. There is no need
to allocate TMR region by driver. However, it's still required to send
SETUP_TMR command to PSP.

Signed-off-by: Lijo Lazar <lijo.lazar@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_psp.c