1. 28 May, 2015 4 commits
  2. 26 May, 2015 15 commits
  3. 25 May, 2015 11 commits
  4. 20 May, 2015 1 commit
  5. 19 May, 2015 9 commits
    • Dave Airlie's avatar
      Merge tag 'drm-amdkfd-next-2015-05-19' of git://people.freedesktop.org/~gabbayo/linux into drm-next · 91d9f985
      Dave Airlie authored
      - Add the interrupts & events modules, including new IOCTLs to create and wait
        on events. The HSA RT open source stack is mainly using events to know when
        a dispatched work has been completed. In addition, this module is
        a pre-requisite for the next module I'm going to upstream - debugger support
      
        This module also handles H/W exceptions, such as memory exception received
        through the IOMMUv2 H/W and Bad Opcode exception receieved from the GPU.
      
      - Adding a new kernel module parameter to let the user decide whether he wants
        to receive a SIGTERM when a memory exception occurs inside the GPU kernel and
        the HSA application doesn't wait on an appropriate event, or if he just want
        to receive notification about this event in dmesg. The default is the latter.
      
      - Additional improvements for SDMA code
      
      - Update my email address in Maintainers file.
      
      * tag 'drm-amdkfd-next-2015-05-19' of git://people.freedesktop.org/~gabbayo/linux:
        drm/amdkfd: change driver version to 0.7.2
        drm/amdkfd: Implement events IOCTLs
        drm/amdkfd: Add module parameter of send_sigterm
        drm/amdkfd: Add bad opcode exception handling
        drm/amdkfd: Add memory exception handling
        drm/amdkfd: Add the events module
        drm/amdkfd: add events IOCTL set definitions
        drm/amdkfd: Add interrupt handling module
        drm/radeon: Add init interrupt kfd->kgd interface
        MAINTAINERS: update amdkfd Oded's email address
        drm/amdkfd: make the sdma vm init to be asic specific
        drm/amdkfd: Use new struct for asic specific ops
        drm/amdkfd: reformat some debug prints
        drm/amdkfd: Remove unessary void pointer cast
      91d9f985
    • Dave Airlie's avatar
      Merge tag 'topic/drm-misc-2015-05-19' of git://anongit.freedesktop.org/drm-intel into drm-next · 9c37bf2d
      Dave Airlie authored
      Scattering of random drm core patches. Bunch of atomic prep work too, but
      the final bits for blob properties, atomic modesets and lifting the
      experimental tag on the atomic ioctl are still blocked on Daniel Stone
      finalizing and testing the weston support for it. I hope that we can get
      it all ready for 4.2 though.
      
      * tag 'topic/drm-misc-2015-05-19' of git://anongit.freedesktop.org/drm-intel: (22 commits)
        drm/atomic: Allow drivers to subclass drm_atomic_state, v3
        drm/atomic: remove duplicated assignment of old_plane_state
        drm/dp: Fix comment in DP helper
        drm/atomic: add drm_atomic_get_existing_*_state helpers
        drm/core: get rid of -Iinclude/drm
        drm/i915: get rid of -Iinclude/drm
        drm/atomic-helpers: Export drm_atomic_helper_update_legacy_modeset_state
        drm/atomic-helpers: Update vblank timestamping constants
        drm/sysfs: remove unnecessary connector type checks
        drm/sysfs: split DVI-I and TV-out attributes
        drm/sysfs: make optional attribute groups per connector type
        drm/sysfs: add a helper for extracting connector type from kobject
        drm/edid: Add CEA modes before inferred modes
        drm/prime: Allow internal imports without import_sg_table
        drm: Add reference counting to blob properties
        drm: Introduce blob_lock
        drm: Introduce helper for replacing blob properties
        drm: Don't leak path blob property when updating
        drm/atomic: Don't open-code CRTC state destroy
        drm/edid: Add DMT modes with ID > 0x50
        ...
      9c37bf2d
    • Oded Gabbay's avatar
      7591cd2c
    • Andrew Lewycky's avatar
      8377396b
    • Oded Gabbay's avatar
      drm/amdkfd: Add module parameter of send_sigterm · 81663016
      Oded Gabbay authored
      This patch adds a new kernel module parameter to amdkfd,
      called send_sigterm.
      
      This parameter specifies whether amdkfd should send the
      SIGTERM signal to an HSA process, when the following conditions
      occur:
      
      1. The GPU triggers an exception regarding a kernel that was
         issued by this process.
      
      2. The HSA process isn't waiting on an event that handles
         this exception.
      
      The default behavior is not to send a SIGTERM and suffice
      with a dmesg error print.
      Reviewed-by: default avatarBen Goz <ben.goz@amd.com>
      Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
      81663016
    • Alexey Skidanov's avatar
    • Alexey Skidanov's avatar
      drm/amdkfd: Add memory exception handling · 59d3e8be
      Alexey Skidanov authored
      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: default avatarAlexey Skidanov <alexey.skidanov@gmail.com>
      Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
      59d3e8be
    • Andrew Lewycky's avatar
      drm/amdkfd: Add the events module · f3a39818
      Andrew Lewycky authored
      This patch adds the events module (kfd_events.c) and the interrupt
      handle module for Kaveri (cik_event_interrupt.c).
      
      The patch updates the interrupt_is_wanted(), so that it now calls the
      interrupt isr function specific for the device that received the
      interrupt. That function(implemented in cik_event_interrupt.c)
      returns whether this interrupt is of interest to us or not.
      
      The patch also updates the interrupt_wq(), so that it now calls the
      device's specific wq function, which checks the interrupt source
      and tries to signal relevant events.
      
      v2:
      
      Increase limit of signal events to 4096 per process
      Remove bitfields from struct cik_ih_ring_entry
      Rename radeon_kfd_event_mmap to kfd_event_mmap
      Add debug prints to allocate_free_slot and allocate_signal_page
      Make allocate_event_notification_slot return a correct value
      Add warning prints to create_signal_event
      Remove error print from IOCTL path
      Reformatted debug prints in kfd_event_mmap
      Map correct size (as received from mmap) in kfd_event_mmap
      
      v3:
      
      Reduce limit of signal events back to 256 per process
      Fix allocation of kernel memory for signal events
      Signed-off-by: default avatarAndrew Lewycky <Andrew.Lewycky@amd.com>
      Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
      f3a39818
    • Andrew Lewycky's avatar
      drm/amdkfd: add events IOCTL set definitions · 29a5d3eb
      Andrew Lewycky authored
      - AMDKFD_IOC_CREATE_EVENT:
      	Creates a new event of a specified type
      
      - AMDKFD_IOC_DESTROY_EVENT:
      	Destroys an existing event
      
      - AMDKFD_IOC_SET_EVENT:
      	Signal an existing event
      
      - AMDKFD_IOC_RESET_EVENT:
      	Reset an existing event
      
      - AMDKFD_IOC_WAIT_EVENTS:
      	Wait on event(s) until they are signaled
      
      v2:
      
      - Move the limit of the signal events to kfd_ioctl.h so it
        can be used by userspace
      
      v3:
      - Change all bool fields in struct kfd_memory_exception_failure
      to uint32_t
      Signed-off-by: default avatarAndrew Lewycky <Andrew.Lewycky@amd.com>
      Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
      29a5d3eb