]> 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)
commit11b7c4a7e068b528fc1c874ca740c27c96f95290
treee115312f991c94e587ec69948f467814370b7273
parent341e16438f8c644bc3f6c57875131911c71d3e4b
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