[PATCH 00/16] KFD interrupt and signal event handling improvements

Felix Kuehling Felix.Kuehling at amd.com
Sat Oct 21 00:23:04 UTC 2017

This patch series improves interrupt handling latency, signal event
processing overhead and replaces some custom data structures with
standard kernel data structures (idr, kfifo, waitqueue).

It also increases the capacity of the number of signals that can be
processed from 256 to 4096. This breaks ancient versions of the Thunk
that support only 256 signal events. The current WIP-version on github
supports both sizes. If support for ancient Thunks is considered
important, this could be fixed by allowing mappings that are smaller
than 4096 signals, and limiting the number of signals per process
depending on the size of the mapped events page.

Andres Rodriguez (4):
  drm/amdkfd: use standard kernel kfifo for IH
  drm/amdkfd: increase IH num entries to 8192
  drm/amdkfd: wait only for IH work on IH exit
  drm/amdkfd: use a high priority workqueue for IH work

Besar Wicaksono (1):
  drm/amdkfd: Add SDMA trap src id to the KFD isr wanted list

Felix Kuehling (8):
  drm/amdkfd: Don't dereference kfd_process.mm
  drm/amdkfd: Clean up kfd_wait_on_events
  drm/amdkfd: Fix event destruction with pending waiters
  drm/amdkfd: remove redundant kfd_event_waiter.input_index
  drm/amdkfd: Use wait_queue_t to implement event waiting
  drm/amdkfd: Simplify events page allocator
  drm/amdkfd: Simplify event ID and signal slot management
  drm/amdkfd: Use IH context ID for signal lookup

Oded Gabbay (1):
  drm/amdkfd: increase limit of signal events to 4096 per process

Sean Keely (2):
  drm/amdkfd: Short cut for kfd_wait_on_events without waiting
  drm/amdkfd: Fix scheduler race in kfd_wait_on_events sleep loop

 drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c |   8 +-
 drivers/gpu/drm/amd/amdkfd/cik_int.h             |   3 +-
 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c         |   5 +-
 drivers/gpu/drm/amd/amdkfd/kfd_device.c          |   2 +-
 drivers/gpu/drm/amd/amdkfd/kfd_events.c          | 588 ++++++++++-------------
 drivers/gpu/drm/amd/amdkfd/kfd_events.h          |  18 +-
 drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c       |  83 ++--
 drivers/gpu/drm/amd/amdkfd/kfd_priv.h            |  32 +-
 drivers/gpu/drm/amd/amdkfd/kfd_process.c         |   6 +-
 include/uapi/linux/kfd_ioctl.h                   |   2 +-
 10 files changed, 332 insertions(+), 415 deletions(-)


More information about the amd-gfx mailing list