All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/19] KFD fixes and cleanups
@ 2017-08-11 21:56 Felix Kuehling
       [not found] ` <1502488589-30272-1-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 70+ messages in thread
From: Felix Kuehling @ 2017-08-11 21:56 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	oded.gabbay-Re5JQEeQqe8AvxtiuMwx3w
  Cc: Felix Kuehling

This is the first round of changes preparing for upstreaming KFD
changes made internally in the last 2 years at AMD. A big part of it
is coding style and messaging cleanup. I have tried to avoid making
gratuitous formatting changes. All coding style changes should have a
justification based on the Linux style guide.

The last few patches (15-19) enable running pieces of the current ROCm
user mode stack (with minor Thunk fixes for backwards compatibility)
on this soon-to-be upstream kernel on CZ. At this time I can run some
KFDTest unit tests, which are currently not open source. I'm trying to
find other more substantial tests using a real compute API as a
baseline for testing further KFD upstreaming patches.

This patch series is freshly rebased on amd-staging-4.12.

Felix Kuehling (11):
  drm/amdkfd: Fix typo in dbgdev_wave_reset_wavefronts
  drm/amdkfd: Remove bogus divide-by-sizeof(uint32_t)
  drm/amdkfd: Fix allocated_queues bitmap initialization
  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
  drm/amdkfd: Update PM4 packet headers
  drm/amdgpu: Remove hard-coded assumptions about compute pipes
  drm/amdgpu: Disable GFX PG on CZ
  drm/amd: Update MEC HQD loading code for KFD

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

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

Yair Shachar (1):
  drm/amdkfd: Fix double Mutex lock order

Yong Zhao (1):
  drm/amdkfd: Add more error printing to help bringup

 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  | 156 +++++++---
 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c  | 185 ++++++++++--
 drivers/gpu/drm/amd/amdgpu/vi.c                    |   3 +-
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c           | 107 +++----
 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            | 122 ++++----
 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c  | 313 ++++++++-----------
 .../drm/amd/amdkfd/kfd_device_queue_manager_cik.c  |   6 +-
 .../drm/amd/amdkfd/kfd_device_queue_manager_vi.c   |   6 +-
 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    | 301 +++++++------------
 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              |  31 +-
 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    |  11 +-
 drivers/gpu/drm/radeon/radeon_kfd.c                |  12 +-
 33 files changed, 1054 insertions(+), 1261 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] 70+ messages in thread

end of thread, other threads:[~2017-08-16 22:36 UTC | newest]

Thread overview: 70+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-11 21:56 [PATCH 00/19] KFD fixes and cleanups Felix Kuehling
     [not found] ` <1502488589-30272-1-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-11 21:56   ` [PATCH 01/19] drm/amdkfd: Fix double Mutex lock order Felix Kuehling
     [not found]     ` <1502488589-30272-2-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 12:23       ` Oded Gabbay
     [not found]         ` <CAFCwf12A9Qr-HCyQFR2eDN_TEExzxHEBVK9XQ9_xuwPKErHg3w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-12 19:28           ` Kuehling, Felix
2017-08-11 21:56   ` [PATCH 02/19] drm/amdkfd: Fix typo in dbgdev_wave_reset_wavefronts Felix Kuehling
     [not found]     ` <1502488589-30272-3-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 12:29       ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 03/19] drm/amdkfd: Remove bogus divide-by-sizeof(uint32_t) Felix Kuehling
     [not found]     ` <1502488589-30272-4-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 12:37       ` Oded Gabbay
     [not found]         ` <CAFCwf11Bg41FNg2sChh6EZkczb6quSzxdFXoJ-qhoE8JwqgGJw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-12 18:02           ` Kuehling, Felix
     [not found]             ` <DM5PR1201MB02356DFA5A4EAE4CC747F12F928E0-grEf7a3NxMBd8L2jMOIKKmrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-12 20:00               ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 04/19] drm/amdkfd: Fix allocated_queues bitmap initialization Felix Kuehling
     [not found]     ` <1502488589-30272-5-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 12:45       ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 05/19] drm/amdkfd: Clean up KFD style errors and warnings Felix Kuehling
     [not found]     ` <1502488589-30272-6-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 12:46       ` Oded Gabbay
     [not found]         ` <CAFCwf13wgCm9qPk4XX5DNOx0toPmZxogpxt5zBvEKzcMd2x3tw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-12 12:58           ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 06/19] drm/amdkfd: Consolidate and clean up log commands Felix Kuehling
     [not found]     ` <1502488589-30272-7-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 13:01       ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 07/19] drm/amdkfd: Change x==NULL/false references to !x Felix Kuehling
     [not found]     ` <1502488589-30272-8-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 13:07       ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 08/19] drm/amdkfd: Fix goto usage Felix Kuehling
     [not found]     ` <1502488589-30272-9-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 13:21       ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 09/19] drm/amdkfd: Remove usage of alloc(sizeof(struct Felix Kuehling
     [not found]     ` <1502488589-30272-10-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 13:23       ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 10/19] drm/amdkfd: Remove BUG_ONs for NULL pointer arguments Felix Kuehling
     [not found]     ` <1502488589-30272-11-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 14:19       ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 11/19] drm/amdkfd: Fix doorbell initialization and finalization Felix Kuehling
     [not found]     ` <1502488589-30272-12-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 14:21       ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 12/19] drm/amdkfd: Allocate gtt_sa_bitmap in long units Felix Kuehling
     [not found]     ` <1502488589-30272-13-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 14:26       ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 13/19] drm/amdkfd: Handle remaining BUG_ONs more gracefully Felix Kuehling
     [not found]     ` <1502488589-30272-14-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 14:39       ` Oded Gabbay
     [not found]         ` <CAFCwf129vQLO5owYBQt6S-V5WcxSrO7tu+v62-HhH2eOzATS1A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-12 18:37           ` Kuehling, Felix
     [not found]             ` <DM5PR1201MB0235FD5550E28485BCF31EB1928E0-grEf7a3NxMBd8L2jMOIKKmrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-13  8:48               ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 14/19] drm/amdkfd: Add more error printing to help bringup Felix Kuehling
     [not found]     ` <1502488589-30272-15-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 14:54       ` Oded Gabbay
     [not found]         ` <CAFCwf12LtX8Me-DSVvnf72eZr=UQm6sWnBoSuB2DM8jbqk3nOQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-15  3:50           ` Zhao, Yong
     [not found]             ` <CY1PR1201MB109725CE39D52B9E482824FAF08D0-JBJ/M6OpXY/YBI+VM8qCl2rFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-15 18:39               ` Felix Kuehling
2017-08-16  1:14               ` Felix Kuehling
2017-08-11 21:56   ` [PATCH 15/19] drm/amdkfd: Clamp EOP queue size correctly on Gfx8 Felix Kuehling
     [not found]     ` <1502488589-30272-16-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 15:04       ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 16/19] drm/amdkfd: Update PM4 packet headers Felix Kuehling
     [not found]     ` <1502488589-30272-17-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-12 15:10       ` Oded Gabbay
     [not found]         ` <CAFCwf12mAxpYF0-AWA=4hJiEe093KkakUYO28-+VxV=Uo+X4Tw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-12 18:16           ` Kuehling, Felix
     [not found]             ` <DM5PR1201MB023536CBDE40370D9703EBD6928E0-grEf7a3NxMBd8L2jMOIKKmrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-12 19:09               ` Bridgman, John
     [not found]                 ` <BN6PR12MB13489181F8A90932135C1CBBE88E0-/b2+HYfkarQX0pEhCR5T8QdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-08-13  8:49                   ` Oded Gabbay
     [not found]                     ` <CAFCwf12edu4VXLP8UTTJk+x9uu9D1bkgO23FpiJbuz3BEreYzg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-16  1:19                       ` Felix Kuehling
     [not found]                         ` <6137eb72-cb41-d65a-7863-71adf31a3506-5C7GfCeVMHo@public.gmane.org>
2017-08-16  7:37                           ` Christian König
     [not found]                             ` <4a8512a4-21df-cf48-4500-0424b08cd357-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-16  9:54                               ` Oded Gabbay
2017-08-16 22:31                               ` Felix Kuehling
2017-08-16 16:10                           ` Deucher, Alexander
     [not found]                             ` <BN6PR12MB16521615E13EE720D7D5FE51F7820-/b2+HYfkarQqUD6E6FAiowdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-08-16 22:33                               ` Felix Kuehling
     [not found]                                 ` <0a2aee42-c1ad-c356-dbdd-812633e570bf-5C7GfCeVMHo@public.gmane.org>
2017-08-16 22:36                                   ` Deucher, Alexander
2017-08-11 21:56   ` [PATCH 17/19] drm/amdgpu: Remove hard-coded assumptions about compute pipes Felix Kuehling
     [not found]     ` <1502488589-30272-18-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-13  8:29       ` Oded Gabbay
     [not found]         ` <CAFCwf108X+f6+jehRvykPy0NPCnYa6uHjoVAXWDvoN+35h-N5A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-14 14:53           ` Felix Kuehling
     [not found]             ` <0eec4793-c9fa-4dfb-c8d7-41995d20e738-5C7GfCeVMHo@public.gmane.org>
2017-08-14 15:06               ` Oded Gabbay
2017-08-11 21:56   ` [PATCH 18/19] drm/amdgpu: Disable GFX PG on CZ Felix Kuehling
     [not found]     ` <1502488589-30272-19-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-11 23:45       ` StDenis, Tom
     [not found]         ` <DM5PR1201MB0074CE2415F056F739B6A8B7F7890-grEf7a3NxMAwZliakWjjqGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-11 23:56           ` Felix Kuehling
     [not found]             ` <b5039bc6-5be9-d8b3-c995-082a60b40490-5C7GfCeVMHo@public.gmane.org>
2017-08-12  0:08               ` StDenis, Tom
     [not found]                 ` <DM5PR1201MB0074364796DD927ADB4746A7F78E0-grEf7a3NxMAwZliakWjjqGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-12  0:40                   ` Felix Kuehling
     [not found]                     ` <1d263ee5-e1e3-aa3a-a8aa-c1fbfbcbb8ab-5C7GfCeVMHo@public.gmane.org>
2017-08-12  0:54                       ` StDenis, Tom
     [not found]                         ` <DM5PR1201MB00745120AE898231F7BAD8DFF78E0-grEf7a3NxMAwZliakWjjqGrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-12  1:18                           ` Felix Kuehling
2017-08-14 15:28                       ` Deucher, Alexander
2017-08-11 21:56   ` [PATCH 19/19] drm/amd: Update MEC HQD loading code for KFD Felix Kuehling
     [not found]     ` <1502488589-30272-20-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-13  8:33       ` Oded Gabbay
2017-08-12 12:28   ` [PATCH 00/19] KFD fixes and cleanups Oded Gabbay
     [not found]     ` <CAFCwf10L0sMCWnPxOi=zLuXLor4X90--m-a6UnervTmEguGL9g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-12 18:07       ` Kuehling, Felix
     [not found]         ` <DM5PR1201MB0235D9AA9FAEF6F2635942C8928E0-grEf7a3NxMBd8L2jMOIKKmrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-08-14 16:25           ` Deucher, Alexander
     [not found]             ` <CY4PR12MB1653ACDE8226C3E06245F8EEF78C0-rpdhrqHFk06apTa93KjAaQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-08-14 22:23               ` 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.