[PATCH 00/13] Add Carrizo support for amdkfd

Oded Gabbay oded.gabbay at gmail.com
Fri Jun 12 12:31:08 PDT 2015


This patch-set adds Carrizo support for amdkfd, to allow running HSA
applications on Carrizo.

To operate, it requires the presence of the recently published amdgpu.

While the official support for Kaveri is still being done using radeon, this
patch-set includes support running HSA applications on Kaveri with amdgpu
handling Kaveri. However, this should be regarded as best-effort only, as it
is not tested, nor maintained. 

To reiterate, The official and support way of running HSA applications on
Kaveri is by using amdkfd and radeon.

It is important for me to mention that this patch-set does *not* modify the
amdkfd IOCTLs in any way, shape or form. In addition, it doesn't change any
other kernel-userspace interface (sysfs, kernel module params, etc.).

Please review.

Thanks,

  Oded

Ben Goz (8):
  drm/amdgpu: Add amdgpu <--> amdkfd gfx8 interface
  drm/amdkfd: add supported CZ devices PCI IDs to amdkfd
  drm/amdkfd: add CP HWS packet headers for VI
  drm/amdkfd: add support for VI in MQD manager
  drm/amdkfd: Add support for VI in DQM
  drm/amdkfd: fix runlist length calculation
  drm/amdkfd: Implement create_map_queues() for Carrizo
  drm/amdkfd: Set correct doorbell packet type for Carrizo

Oded Gabbay (5):
  drm/radeon: Modify kgd_engine_type enum to match CZ
  drm/amdgpu: Add H/W agnostic amdgpu <--> amdkfd interface
  drm/amdgpu: add amdgpu <--> amdkfd gfx7 interface
  drm/amdkfd: Add dependency of DRM_AMDGPU to Kconfig
  drm/amdkfd: Use generic defines in new amd headers

 MAINTAINERS                                        |   5 +
 drivers/gpu/drm/amd/amdgpu/Makefile                |   6 +
 drivers/gpu/drm/amd/amdgpu/amdgpu.h                |   3 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c         | 267 ++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h         |  65 ++
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c  | 670 +++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c  | 543 +++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c            |   5 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c             |   7 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c            |   7 +
 drivers/gpu/drm/amd/amdgpu/cik.c                   |  11 +-
 drivers/gpu/drm/amd/amdgpu/cikd.h                  |  12 +
 drivers/gpu/drm/amd/amdgpu/vid.h                   |   5 +
 drivers/gpu/drm/amd/amdkfd/Kconfig                 |   2 +-
 drivers/gpu/drm/amd/amdkfd/Makefile                |   3 +-
 drivers/gpu/drm/amd/amdkfd/cik_regs.h              |  11 -
 drivers/gpu/drm/amd/amdkfd/kfd_device.c            |   7 +-
 .../drm/amd/amdkfd/kfd_device_queue_manager_cik.c  |  12 +-
 .../drm/amd/amdkfd/kfd_device_queue_manager_vi.c   | 103 +++-
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c   |  20 +-
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c    | 249 +++++++-
 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c    |  99 ++-
 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_vi.h    | 398 ++++++++++++
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c          |   5 +
 drivers/gpu/drm/amd/amdkfd/kfd_topology.h          |   1 +
 drivers/gpu/drm/amd/include/kgd_kfd_interface.h    |   3 +-
 drivers/gpu/drm/amd/include/vi_structs.h           | 417 +++++++++++++
 drivers/gpu/drm/radeon/radeon_kfd.c                |   3 +-
 28 files changed, 2899 insertions(+), 40 deletions(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
 create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
 create mode 100644 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_vi.h
 create mode 100644 drivers/gpu/drm/amd/include/vi_structs.h

-- 
2.4.3



More information about the dri-devel mailing list