All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/24] KFD fixes, cleanups, features to make the runtime happy
@ 2017-08-16  2:59 Felix Kuehling
       [not found] ` <1502852422-19620-1-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 45+ messages in thread
From: Felix Kuehling @ 2017-08-16  2:59 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	oded.gabbay-Re5JQEeQqe8AvxtiuMwx3w
  Cc: Felix Kuehling

I merged the last two patch series and made a number of updates as
discussed. I also rebased it on Alex's drm-next-4.14-wip branch. All
patches applied cleanly without having to resolve any conflicts.

I'm also publishing my branch with this patch series on GitHub to make
it easier to test and apply the changes. This KFD branch requires the
corresponding Thunk branch from GitHub, which uses a different ioctl
ABI from the last ROCm release. The rest of the user mode stack
should be OK on top of that Thunk.

https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/tree/fkxamd/drm-next-wip
https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/tree/fxkamd/drm-next-wip

On CZ, hsaconformance passes. OpenCL tests can be run with the current
ROCm OpenCL stack. I ran the SHOC benchmark as an example.

On KV, the current ROCm OpenCL driver doesn't work. This is a
limitation of the OpenCL driver. I'm trying to find out how hard it
would be to change that. In the mean time, some hsaconformance tests
can be run on KV. It passes most tests up to
162:code_recursive_kernel_function, where it hangs.

For testing KV with current user mode stack, please use amdgpu. I
don't expect this to work with radeon and I'm not planning to spend
any effort on making radeon work with a current user mode stack.

Dropped patches:
  * drm/amdkfd: Fix double Mutex lock order

Added patches:
  * drm/radeon: Return dword offsets of address watch registers
  * drm/amdgpu: Program SH_STATIC_MEM_CONFIG globally, not per-VMID

Reordered patch sequence:
  I moved "drm/amdgpu: Remove hard-coded assumptions about compute pipes"
  just after "drm/amdkfd: Fix allocated_queues bitmap initialization"
  because these two patches fix related problems (how queues are shared
  between KFD and KGD).

Updated patches:
  * drm/amdkfd: Clean up KFD style errors and warnings v2
  * drm/amdkfd: Fix goto usage v2
  * drm/amdkfd: Handle remaining BUG_ONs more gracefully v2
  * drm/amdkfd: Add more error printing to help bringup v2
  * drm/amdgpu: Add kgd/kfd interface to support scratch memory v2
  * drm/amdkfd: Adding new IOCTL for scratch memory v2
  * drm/amdgpu: Add kgd kfd interface get_tile_config() v2
  * drm/amdkfd: Implement image tiling mode support v2

Patches that still need a Reviewed-by or Acked-by:
  * drm/radeon: Return dword offsets of address watch registers
  * drm/amdkfd: Remove bogus divide-by-sizeof(uint32_t)
  * drm/amdkfd: Clean up KFD style errors and warnings v2
  * drm/amdkfd: Handle remaining BUG_ONs more gracefully v2
  * drm/amdkfd: Add more error printing to help bringup v2
  * drm/amdgpu: Program SH_STATIC_MEM_CONFIG globally, not per-VMID
  * drm/amdgpu: Add kgd/kfd interface to support scratch memory v2
  * drm/amdkfd: Adding new IOCTL for scratch memory v2

***

Felix Kuehling (13):
  drm/amdkfd: Fix typo in dbgdev_wave_reset_wavefronts
  drm/radeon: Return dword offsets of address watch registers
  drm/amdkfd: Remove bogus divide-by-sizeof(uint32_t)
  drm/amdkfd: Fix allocated_queues bitmap initialization
  drm/amdgpu: Remove hard-coded assumptions about compute pipes
  drm/amdkfd: Remove BUG_ONs for NULL pointer arguments
  drm/amdkfd: Fix doorbell initialization and finalization
  drm/amdkfd: Allocate gtt_sa_bitmap in long units
  drm/amdkfd: Handle remaining BUG_ONs more gracefully v2
  drm/amdkfd: Update PM4 packet headers
  drm/amdgpu: Disable GFX PG on CZ
  drm/amd: Update MEC HQD loading code for KFD
  drm/amdgpu: Program SH_STATIC_MEM_CONFIG globally, not per-VMID

Jay Cornwall (1):
  drm/amdkfd: Clamp EOP queue size correctly on Gfx8

Kent Russell (5):
  drm/amdkfd: Clean up KFD style errors and warnings v2
  drm/amdkfd: Consolidate and clean up log commands
  drm/amdkfd: Change x==NULL/false references to !x
  drm/amdkfd: Fix goto usage v2
  drm/amdkfd: Remove usage of alloc(sizeof(struct...

Moses Reuben (2):
  drm/amdgpu: Add kgd/kfd interface to support scratch memory v2
  drm/amdkfd: Adding new IOCTL for scratch memory v2

Yong Zhao (3):
  drm/amdkfd: Add more error printing to help bringup v2
  drm/amdgpu: Add kgd kfd interface get_tile_config() v2
  drm/amdkfd: Implement image tiling mode support v2

 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c         |   4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h         |  16 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c  | 189 ++++++++++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c  | 227 ++++++++++++--
 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c              |   2 +-
 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c              |   3 +-
 drivers/gpu/drm/amd/amdgpu/vi.c                    |   3 +-
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c           | 183 ++++++++----
 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c            | 102 +++----
 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c            |  21 +-
 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.h            |  27 +-
 drivers/gpu/drm/amd/amdkfd/kfd_device.c            | 123 ++++----
 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c  | 316 ++++++++------------
 .../drm/amd/amdkfd/kfd_device_queue_manager_cik.c  |   8 +-
 .../drm/amd/amdkfd/kfd_device_queue_manager_vi.c   |   8 +-
 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c          |  40 +--
 drivers/gpu/drm/amd/amdkfd/kfd_events.c            |  33 +--
 drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c       |   2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c         |   2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c      |  63 ++--
 drivers/gpu/drm/amd/amdkfd/kfd_module.c            |  10 +-
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.h       |   3 +-
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c   |  62 ++--
 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c    |  46 +--
 drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c    | 294 ++++++------------
 drivers/gpu/drm/amd/amdkfd/kfd_pasid.c             |   7 +-
 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers.h       | 330 +++------------------
 drivers/gpu/drm/amd/amdkfd/kfd_pm4_headers_vi.h    | 140 ++++++++-
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h              |  32 +-
 drivers/gpu/drm/amd/amdkfd/kfd_process.c           |  25 +-
 .../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c |  71 ++---
 drivers/gpu/drm/amd/amdkfd/kfd_queue.c             |  12 +-
 drivers/gpu/drm/amd/amdkfd/kfd_topology.c          |  46 +--
 drivers/gpu/drm/amd/include/kgd_kfd_interface.h    |  30 +-
 drivers/gpu/drm/radeon/radeon_kfd.c                |  15 +-
 include/uapi/linux/kfd_ioctl.h                     |  37 ++-
 36 files changed, 1280 insertions(+), 1252 deletions(-)

-- 
2.7.4

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply	[flat|nested] 45+ messages in thread

end of thread, other threads:[~2017-09-09  1:17 UTC | newest]

Thread overview: 45+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-16  2:59 [PATCH 00/24] KFD fixes, cleanups, features to make the runtime happy Felix Kuehling
     [not found] ` <1502852422-19620-1-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-16  2:59   ` [PATCH 01/24] drm/amdkfd: Fix typo in dbgdev_wave_reset_wavefronts Felix Kuehling
2017-08-16  3:00   ` [PATCH 02/24] drm/radeon: Return dword offsets of address watch registers Felix Kuehling
     [not found]     ` <1502852422-19620-3-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-16  9:44       ` Oded Gabbay
2017-08-16  3:00   ` [PATCH 03/24] drm/amdkfd: Remove bogus divide-by-sizeof(uint32_t) Felix Kuehling
     [not found]     ` <1502852422-19620-4-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-16  9:44       ` Oded Gabbay
2017-08-16  3:00   ` [PATCH 04/24] drm/amdkfd: Fix allocated_queues bitmap initialization Felix Kuehling
2017-08-16  3:00   ` [PATCH 05/24] drm/amdgpu: Remove hard-coded assumptions about compute pipes Felix Kuehling
2017-08-16  3:00   ` [PATCH 06/24] drm/amdkfd: Clean up KFD style errors and warnings v2 Felix Kuehling
     [not found]     ` <1502852422-19620-7-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-18 17:35       ` Oded Gabbay
2017-08-16  3:00   ` [PATCH 07/24] drm/amdkfd: Consolidate and clean up log commands Felix Kuehling
2017-08-16  3:00   ` [PATCH 08/24] drm/amdkfd: Change x==NULL/false references to !x Felix Kuehling
2017-08-16  3:00   ` [PATCH 09/24] drm/amdkfd: Fix goto usage v2 Felix Kuehling
2017-08-16  3:00   ` [PATCH 10/24] drm/amdkfd: Remove usage of alloc(sizeof(struct Felix Kuehling
2017-08-16  3:00   ` [PATCH 11/24] drm/amdkfd: Remove BUG_ONs for NULL pointer arguments Felix Kuehling
2017-08-16  3:00   ` [PATCH 12/24] drm/amdkfd: Fix doorbell initialization and finalization Felix Kuehling
2017-08-16  3:00   ` [PATCH 13/24] drm/amdkfd: Allocate gtt_sa_bitmap in long units Felix Kuehling
2017-08-16  3:00   ` [PATCH 14/24] drm/amdkfd: Handle remaining BUG_ONs more gracefully v2 Felix Kuehling
     [not found]     ` <1502852422-19620-15-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-16  9:45       ` Oded Gabbay
2017-08-16  3:00   ` [PATCH 15/24] drm/amdkfd: Add more error printing to help bringup v2 Felix Kuehling
     [not found]     ` <1502852422-19620-16-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-16  9:45       ` Oded Gabbay
2017-08-16  3:00   ` [PATCH 16/24] drm/amdkfd: Clamp EOP queue size correctly on Gfx8 Felix Kuehling
2017-08-16  3:00   ` [PATCH 17/24] drm/amdkfd: Update PM4 packet headers Felix Kuehling
2017-08-16  3:00   ` [PATCH 18/24] drm/amdgpu: Disable GFX PG on CZ Felix Kuehling
2017-08-16  3:00   ` [PATCH 19/24] drm/amd: Update MEC HQD loading code for KFD Felix Kuehling
2017-08-16  3:00   ` [PATCH 20/24] drm/amdgpu: Program SH_STATIC_MEM_CONFIG globally, not per-VMID Felix Kuehling
     [not found]     ` <1502852422-19620-21-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-16  9:43       ` Oded Gabbay
2017-08-16  3:00   ` [PATCH 21/24] drm/amdgpu: Add kgd/kfd interface to support scratch memory v2 Felix Kuehling
     [not found]     ` <1502852422-19620-22-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-18 15:32       ` Oded Gabbay
2017-08-16  3:00   ` [PATCH 22/24] drm/amdkfd: Adding new IOCTL for " Felix Kuehling
     [not found]     ` <1502852422-19620-23-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-18 15:34       ` Oded Gabbay
2017-08-21 17:39       ` Jerome Glisse
     [not found]         ` <20170821173918.GA4125-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-21 19:21           ` Oded Gabbay
     [not found]             ` <CAFCwf10hhjmmoTv+3GP85FeyWYv4AyL1G+xBYmZfr_39N=wiOA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-21 20:01               ` Jerome Glisse
     [not found]                 ` <20170821200104.GB4125-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-21 20:11                   ` Felix Kuehling
     [not found]                     ` <9b600e94-f3d7-d1de-90da-6e578ce8c108-5C7GfCeVMHo@public.gmane.org>
2017-08-22  6:21                       ` Oded Gabbay
2017-08-21 20:06               ` Felix Kuehling
     [not found]                 ` <3aaf8348-46b2-bff4-16fb-65f3fbc2fb48-5C7GfCeVMHo@public.gmane.org>
2017-08-22  8:52                   ` Christian König
     [not found]                     ` <f87ac8e2-8cf0-0729-87ed-de172af3499f-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-22 18:45                       ` Felix Kuehling
2017-08-21 19:32           ` Felix Kuehling
2017-08-16  3:00   ` [PATCH 23/24] drm/amdgpu: Add kgd kfd interface get_tile_config() v2 Felix Kuehling
2017-08-16  3:00   ` [PATCH 24/24] drm/amdkfd: Implement image tiling mode support v2 Felix Kuehling
2017-08-16  7:51   ` [PATCH 00/24] KFD fixes, cleanups, features to make the runtime happy Christian König
     [not found]     ` <5c7f2140-0467-ebdb-87ca-0cd9d642ddbf-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-16  9:33       ` Oded Gabbay
2017-09-09  1:17   ` Felix Kuehling

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.