drm/amdkfd: Fix SDMA ring buffer size calculation
authorshaoyunl <Shaoyun.Liu@amd.com>
Wed, 1 Nov 2017 23:21:56 +0000 (19:21 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Sun, 26 Nov 2017 09:31:32 +0000 (11:31 +0200)
commitd12fb13f23199faa7e536acec1db49068e5a067d
tree0429d7ee902374ab60be9ffb8538ea874b4af320
parentcf21654b40968609779751b34e7923180968fe5b
drm/amdkfd: Fix SDMA ring buffer size calculation

ffs function return the position of the first bit set on 1 based.
(bit zero returns 1).

Signed-off-by: shaoyun liu <shaoyun.liu@amd.com>
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_mqd_manager_cik.c