]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fixed calculation of gart buffer size
authorOded Gabbay <oded.gabbay@amd.com>
Sun, 26 Oct 2014 08:12:22 +0000 (10:12 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Fri, 9 Jan 2015 20:26:09 +0000 (22:26 +0200)
commiteb712ddf7d9eb7e51c0c7659cd8e2a875fb2906f
tree1c33d97806db32f1ffc5b62ab0a0ee6fc17f31e1
parenta941ac74d1437a2884a7b8a4831acb2f8e8cd6cd
drm/amdkfd: Fixed calculation of gart buffer size

This patch makes the gart's buffer size calculation more accurate. This buffer
is needed per GPU.

It takes into account maximum number of MQDs, runlist packets, kernel queues
and reserves 512KB for other misc allocations.

The total size is just shy of 4MB, for 32 processes and 128 queues per
process, which are the defaults for amdkfd kernel module parameters.

Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Alexey Skidanov <Alexey.skidanov@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c