drm/amdkfd: Change MQD manager to be H/W specific
authorBen Goz <ben.goz@amd.com>
Sun, 4 Jan 2015 09:24:25 +0000 (11:24 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Sun, 4 Jan 2015 09:24:25 +0000 (11:24 +0200)
commit4b8f589b052fe800e36f11eb2d29d4cf364bbed0
treeedb12b56e6c40bff6960b9be667d057c6543b96c
parent0da7558c690708259617417d3ddc5b5042f1cca4
drm/amdkfd: Change MQD manager to be H/W specific

The MQDs for CI and VI are different. Therefore, the MQD manager module need to
be H/W specific.

This patch splits the current MQD manager into three files:

- kfd_mqd_manager.c, which contains common functions and initializes the
  specific mqd manager module according to the H/W

- kfd_mqd_manager_cik.c, which contains Kaveri specific functions. This is
  basically the old kfd_mqd_manager.c

- kfd_mqd_manager_vi.c, which will contain VI specific functions. Currently it
  is not implemented except for returning NULL on initialization.

Signed-off-by: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/Makefile
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdkfd/kfd_priv.h