drm/amdkfd: fix bug when initializing sdma vm
authorOded Gabbay <oded.gabbay@gmail.com>
Wed, 29 Jul 2015 07:40:26 +0000 (10:40 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 30 Jul 2015 06:26:15 +0000 (09:26 +0300)
commita63c580a5271b61f12cf91e768120e33792e2907
treefc11e60f505a2e7e6c60007cfc130b47207bfe34
parente8a64b20eb27cd9c9403f51e4e6c415f9e096e39
drm/amdkfd: fix bug when initializing sdma vm

A logical AND operation was used during mask and shift, instead of a
bitwise AND operation. This patch fixes this bug by changing the
operation to bitwise AND.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_vi.c