1. 19 5月, 2015 14 次提交
    • A
      drm/amdkfd: Implement events IOCTLs · 8377396b
      Andrew Lewycky 提交于
      Signed-off-by: NAndrew Lewycky <Andrew.Lewycky@amd.com>
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      8377396b
    • O
      drm/amdkfd: Add module parameter of send_sigterm · 81663016
      Oded Gabbay 提交于
      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: NBen Goz <ben.goz@amd.com>
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      81663016
    • A
      930c5ff4
    • A
      drm/amdkfd: Add memory exception handling · 59d3e8be
      Alexey Skidanov 提交于
      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: NAlexey Skidanov <alexey.skidanov@gmail.com>
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      59d3e8be
    • A
      drm/amdkfd: Add the events module · f3a39818
      Andrew Lewycky 提交于
      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: NAndrew Lewycky <Andrew.Lewycky@amd.com>
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      f3a39818
    • A
      drm/amdkfd: add events IOCTL set definitions · 29a5d3eb
      Andrew Lewycky 提交于
      - 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: NAndrew Lewycky <Andrew.Lewycky@amd.com>
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      29a5d3eb
    • A
      drm/amdkfd: Add interrupt handling module · 2249d558
      Andrew Lewycky 提交于
      This patch adds the interrupt handling module, kfd_interrupt.c, and its
      related members in different data structures to the amdkfd driver.
      
      The amdkfd interrupt module maintains an internal interrupt ring
      per amdkfd device. The internal interrupt ring contains interrupts
      that needs further handling. The extra handling is deferred to
      a later time through a workqueue.
      
      There's no acknowledgment for the interrupts we use. The hardware
      simply queues a new interrupt each time without waiting.
      
      The fixed-size internal queue means that it's possible for us to lose
      interrupts because we have no back-pressure to the hardware.
      
      However, only interrupts that are "wanted" by amdkfd, are copied into
      the amdkfd s/w interrupt ring, in order to minimize the chances
      for overflow of the ring.
      Signed-off-by: NAndrew Lewycky <Andrew.Lewycky@amd.com>
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      2249d558
    • O
      drm/radeon: Add init interrupt kfd->kgd interface · d36b94fc
      Oded Gabbay 提交于
      This patch adds a new interface function to the kfd->kgd interface.
      The function is kgd_init_interrupts() and its function is to
      initialize a pipe's interrupts.
      
      The function currently enables the timestamp interrupt and the
      bad opcode interrupt.
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      d36b94fc
    • O
      MAINTAINERS: update amdkfd Oded's email address · 1241e0b4
      Oded Gabbay 提交于
      Leaving AMD soon so need to update my email address to @gmail.com
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      1241e0b4
    • O
    • O
      drm/amdkfd: Use new struct for asic specific ops · d42af779
      Oded Gabbay 提交于
      This patch creates a new structure for asic specific operations, instead
      of using the existing structure of operations.
      
      This is done to make the code flow more logic, readable and maintainable.
      
      The change is done only to the device queue manager module at this point.
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      d42af779
    • O
      drm/amdkfd: reformat some debug prints · 8856d8e0
      Oded Gabbay 提交于
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      8856d8e0
    • F
      drm/amdkfd: Remove unessary void pointer cast · 1549fcd1
      Firo Yang 提交于
      kmalloc() returns a void pointer - no need to cast it in
      drivers/gpu/drm/amd/amdkfd/kfd_process.c::kfd_process_destroy_delayed()
      Signed-off-by: NFiro Yang <firogm@gmail.com>
      Signed-off-by: NOded Gabbay <oded.gabbay@amd.com>
      1549fcd1
    • D
      Merge tag 'drm-intel-next-2015-05-08' of git://anongit.freedesktop.org/drm-intel into drm-next · d0093404
      Dave Airlie 提交于
      - skl plane scaler support (Chandra Kondru)
      - enable hsw cmd parser (Daniel and fix from Rebecca Palmer)
      - skl dc5/6 support (low power display modes) from Suketu&Sunil
      - dp compliance testing patches (Todd Previte)
      - dp link training optimization (Mika Kahola)
      - fixes to make skl resume work (Damien)
      - rework modeset code to fully use atomic state objects (Ander&Maarten)
      - pile of bxt w/a patchs from Nick Hoath
      - (linear) partial gtt mmap support (Joonas Lahtinen)
      
      * tag 'drm-intel-next-2015-05-08' of git://anongit.freedesktop.org/drm-intel: (103 commits)
        drm/i915: Update DRIVER_DATE to 20150508
        drm/i915: Only wait for required lanes in vlv_wait_port_ready()
        drm/i915: Fix possible security hole in command parsing
        drm/edid: Kerneldoc for newly added edid_corrupt
        drm/i915: Reject huge tiled objects
        Revert "drm/i915: Hack to tie both common lanes together on chv"
        drm/i915: Work around DISPLAY_PHY_CONTROL register corruption on CHV
        drm/i915: Implement chv display PHY lane stagger setup
        drm/i915/vlv: remove wait for previous GFX clk disable request
        drm/i915: Set crtc_state->active to false when CRTC is disabled (v2)
        drm/i915/skl: Re-indent part of skl_ddi_calculate_wrpll()
        drm/i915: Use partial view in mmap fault handler
        drm/i915: Add a partial GGTT view type
        drm/i915: Consider object pinned if any VMA is pinned
        drm/i915: Do not make assumptions on GGTT VMA sizes
        drm/i915/bxt: Mark WaCcsTlbPrefetchDisable as for Broxton also.
        drm/i915/bxt: Mark WaDisablePartialResolveInVc as for Broxton also.
        drm/i915/bxt: Mark Wa4x4STCOptimizationDisable as for Broxton also.
        drm/i915/bxt: Move WaForceEnableNonCoherent to Skylake only
        drm/i915/bxt: Enable WaEnableYV12BugFixInHalfSliceChicken7 for Broxton
        ...
      d0093404
  2. 15 5月, 2015 2 次提交
  3. 11 5月, 2015 1 次提交
  4. 08 5月, 2015 23 次提交