]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Allocate gtt_sa_bitmap in long units
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 16 Aug 2017 03:00:11 +0000 (23:00 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Wed, 16 Aug 2017 03:00:11 +0000 (23:00 -0400)
commit22cecbc465d46cc66562cb11f391490b679f7eca
treee115312f991c94e587ec69948f467814370b7273
parentdd632db1f9f83c1ec5cf20b3f74819311c1d8973
drm/amdkfd: Allocate gtt_sa_bitmap in long units

gtt_sa_bitmap is accessed by bitmap functions, which operate on longs.
Therefore the array should be allocated in long units. Also round up
in case the number of bits is not a multiple of BITS_PER_LONG.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c