drm/amdgpu/mes11: allocate hw_resource_1 buffer once
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Feb 2025 15:11:17 +0000 (10:11 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Feb 2025 19:09:29 +0000 (14:09 -0500)
commit13d68ae651dab6d19e014c5be838481c679f1936
tree4d6cae18416512d1e0b7f682ca45e3fd9afb6eb2
parent196222dccb3e1f3defe85919ae9f00f6f4a3f4c4
drm/amdgpu/mes11: allocate hw_resource_1 buffer once

Allocate the buffer at sw init time so we don't alloc
and free it for every suspend/resume or reset cycle.

Reviewed-by: Shaoyun.liu <shaouyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c