drm/amdkfd: fix runlist length calculation
authorBen Goz <ben.goz@amd.com>
Tue, 6 Jan 2015 09:32:13 +0000 (11:32 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 20 Jul 2015 06:16:49 +0000 (09:16 +0300)
commite1940fa4bfa32d86a771e300a3fd116c46878bf4
tree6a76eae9367301093ced0de897c6f8228e7333b5
parent914bea6329b2cbbb3586a11f90ddf026bef44348
drm/amdkfd: fix runlist length calculation

The MAP_QUEUES packet length for Carrizo is different than for Kaveri.
Therefore, we now need to calculate the runlist length with regard to the
underlying H/W.

Signed-off-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c