drm/amdgpu/mes11: fix set_hw_resources_1 calculation
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Feb 2025 14:39:24 +0000 (09:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:05:49 +0000 (21:05 -0500)
commit1350dd3691b5f757a948e5b9895d62c422baeb90
tree21158ab32d94adab963b1117ec74d1907c18ed41
parent5ffd56822a7159917306d99f18fd15dfd7288f20
drm/amdgpu/mes11: fix set_hw_resources_1 calculation

It's GPU page size not CPU page size.  In most cases they
are the same, but not always.  This can lead to overallocation
on systems with larger pages.

Cc: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c