diff options
| author | Alex Deucher <[email protected]> | 2025-02-07 14:39:24 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2025-02-13 02:05:49 +0000 |
| commit | 1350dd3691b5f757a948e5b9895d62c422baeb90 (patch) | |
| tree | 21158ab32d94adab963b1117ec74d1907c18ed41 /drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | |
| parent | drm/amdkfd: fix missing L2 cache info in topology (diff) | |
| download | kernel-1350dd3691b5f757a948e5b9895d62c422baeb90.tar.gz kernel-1350dd3691b5f757a948e5b9895d62c422baeb90.zip | |
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 <[email protected]>
Cc: Christian König <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mes_v11_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c b/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c index 5c4aee86cf76..84cd846ec741 100644 --- a/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c +++ b/drivers/gpu/drm/amd/amdgpu/mes_v11_0.c @@ -732,7 +732,7 @@ static int mes_v11_0_set_hw_resources(struct amdgpu_mes *mes) static int mes_v11_0_set_hw_resources_1(struct amdgpu_mes *mes) { - int size = 128 * PAGE_SIZE; + int size = 128 * AMDGPU_GPU_PAGE_SIZE; int ret = 0; struct amdgpu_device *adev = mes->adev; union MESAPI_SET_HW_RESOURCES_1 mes_set_hw_res_pkt; |
