OSDN Git Service

drm/radeon: reduce number of free VMIDs and pipes in KV
authorOded Gabbay <oded.gabbay@amd.com>
Thu, 16 Jan 2014 15:35:44 +0000 (17:35 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Thu, 16 Jan 2014 15:35:44 +0000 (17:35 +0200)
commit62a7b7fbd08ef745bb51e8728e89125a0ba6327e
treec283511240849854f88d11273e4b615aaf676682
parenta015c1e92639cd65ebb49350abdf5ad15bce4448
drm/radeon: reduce number of free VMIDs and pipes in KV

To support HSA on KV, we need to limit the number of vmids and pipes
that are available for radeon's use with KV.

This patch reserves VMIDs 8-15 for amdkfd (so radeon can only use VMIDs
0-7) and also makes radeon thinks that KV has only a single MEC with a single
pipe in it

v3: Use define for static vmid allocation in radeon

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/radeon/cik.c
drivers/gpu/drm/radeon/cikd.h