[git pull] amdkfd next 4.17

Oded Gabbay oded.gabbay at gmail.com
Sun Mar 11 10:32:02 UTC 2018


Hi Dave,

amdkfd pull request for 4.17, without any new IOCTL stuff and the issues
under debate.

Major points for this pull request:
- Add dGPU support for amdkfd initialization code and queue handling. It's
  not complete support since the GPUVM part is missing (the under debate stuff).
- Enable PCIe atomics for dGPU if present
- Various adjustments to the amdgpu<-->amdkfd interface for dGPUs
- Refactor IOMMUv2 code to allow loading amdkfd without IOMMUv2 in the system
- Add HSA process eviction code in case of system memory pressure
- Various fixes and small changes

The following changes since commit 128ccceaba8656573b8b0f86d3ab6e38094cc754:

  Merge branch 'drm-next-4.17' of git://people.freedesktop.org/~agd5f/linux into drm-next (2018-03-09 10:50:45 +1000)

are available in the Git repository at:

  git://people.freedesktop.org/~gabbayo/linux tags/drm-amdkfd-next-2018-03-11

for you to fetch changes up to a11024457d348672b26b3d4581ed19c793399b48:

  uapi: Fix type used in ioctl parameter structures (2018-02-06 20:32:46 -0500)

----------------------------------------------------------------
Felix Kuehling (20):
      drm/amdkfd: Conditionally enable PCIe atomics
      drm/amdkfd: Make sched_policy a per-device setting
      drm/amdkfd: Add dGPU support to the device queue manager
      drm/amdkfd: Add dGPU support to the MQD manager
      drm/amdkfd: Add dGPU support to kernel_queue_init
      drm/amdkfd: Add dGPU device IDs and device info
      drm/amdgpu: Enable KFD initialization on dGPUs
      drm/amdgpu: remove useless BUG_ONs
      drm/amdgpu: Fix header file dependencies
      drm/amdgpu: Fix wrong mask in get_atc_vmid_pasid_mapping_pasid
      drm/amdgpu: Remove unused kfd2kgd interface
      drm/amdgpu: Add KFD eviction fence
      drm/amdgpu: Update kgd2kfd_shared_resources for dGPU support
      drm/amdgpu: add amdgpu_sync_clone
      drm/amdgpu: Add GPUVM memory management functions for KFD
      drm/amdgpu: Add submit IB function for KFD
      drm/amdkfd: Centralize IOMMUv2 code and make it conditional
      drm/amdkfd: Add GPUVM virtual address space to PDD
      drm/amdkfd: Implement KFD process eviction/restore
      uapi: Fix type used in ioctl parameter structures

Gustavo A. R. Silva (1):
      drm/amdkfd: Use ARRAY_SIZE macro in kfd_build_sysfs_node_entry

Harish Kasiviswanathan (1):
      drm/amdkfd: Remove unaligned memory access

Oded Gabbay (1):
      dma-fence: add comment for WARN_ON in dma_fence_release()

Yong Zhao (1):
      drm/amdgpu: Replace kgd_mem with amdgpu_bo for kernel pinned gtt mem

 MAINTAINERS                                        |    2 +
 drivers/dma-buf/dma-fence.c                        |    1 +
 drivers/gpu/drm/amd/amdgpu/Makefile                |    2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c         |  132 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h         |  112 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c   |  179 +++
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c  |   80 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c  |   82 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c   | 1506 ++++++++++++++++++++
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.c         |    4 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_object.h         |    2 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h           |    6 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c           |   56 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_sync.h           |    1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c            |   25 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h             |    1 +
 drivers/gpu/drm/amd/amdkfd/Kconfig                 |    3 +-
 drivers/gpu/drm/amd/amdkfd/Makefile                |    4 +
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c           |    3 +-
 drivers/gpu/drm/amd/amdkfd/kfd_crat.c              |   14 +-
 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c            |    3 +-
 drivers/gpu/drm/amd/amdkfd/kfd_device.c            |  356 +++--
 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c  |  301 +++-
 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.h  |   14 +
 .../drm/amd/amdkfd/kfd_device_queue_manager_cik.c  |   56 +
 .../drm/amd/amdkfd/kfd_device_queue_manager_vi.c   |   93 ++
 drivers/gpu/drm/amd/amdkfd/kfd_events.c            |    3 +
 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c             |  357 +++++
 drivers/gpu/drm/amd/amdkfd/kfd_iommu.h             |   78 +
 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c      |    5 +
 drivers/gpu/drm/amd/amdkfd/kfd_module.c            |    2 +
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c       |    7 +
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c   |   44 +-
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c    |   27 +-
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h              |   62 +-
 drivers/gpu/drm/amd/amdkfd/kfd_process.c           |  362 +++--
 .../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c |    3 +-
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c          |   18 +-
 drivers/gpu/drm/amd/amdkfd/kfd_topology.h          |    6 +-
 drivers/gpu/drm/amd/include/kgd_kfd_interface.h    |   99 +-
 include/uapi/linux/kfd_ioctl.h                     |    8 +-
 41 files changed, 3757 insertions(+), 362 deletions(-)
 create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c
 create mode 100644 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
 create mode 100644 drivers/gpu/drm/amd/amdkfd/kfd_iommu.c
 create mode 100644 drivers/gpu/drm/amd/amdkfd/kfd_iommu.h


More information about the dri-devel mailing list