drm/amdkfd: Add memory exception handling
authorAlexey Skidanov <alexey.skidanov@gmail.com>
Tue, 14 Apr 2015 15:05:49 +0000 (18:05 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Tue, 19 May 2015 10:02:27 +0000 (13:02 +0300)
commit59d3e8be87a14c6a0d91c683e63d9b31734525ae
tree1f23bcca62cdfcec10055b83463d51129ec0d590
parentf3a398183f7b9ef78f6b71ee9f7641e046403bcb
drm/amdkfd: Add memory exception handling

This patch adds Peripheral Page Request (PPR) failure processing
and reporting.

Bad address or pointer to a system memory block with inappropriate
read/write permission cause such PPR failure during a user queue
processing. PPR request handling is done by IOMMU driver notifying
AMDKFD module on PPR failure.

The process triggering a PPR failure will be notified by
appropriate event or SIGTERM signal will be sent to it.

v3:
- Change all bool fields in struct kfd_memory_exception_failure to
  uint32_t

Signed-off-by: Alexey Skidanov <alexey.skidanov@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_device.c
drivers/gpu/drm/amd/amdkfd/kfd_events.c
drivers/gpu/drm/amd/amdkfd/kfd_events.h
drivers/gpu/drm/amd/amdkfd/kfd_priv.h