drm/amdgpu/mes12: allocate hw_resource_1 buffer once
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Feb 2025 15:18:21 +0000 (10:18 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Feb 2025 19:09:29 +0000 (14:09 -0500)
commitf3e10e1a0c5a052d9e72cc18500b51d27fdf0eb4
tree10448681f540807b97fdf7ab215c775f7b2b0166
parent13d68ae651dab6d19e014c5be838481c679f1936
drm/amdgpu/mes12: 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_v12_0.c