You need to sign in or sign up before continuing.
  1. 19 5月, 2015 1 次提交
    • 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
  2. 25 3月, 2015 2 次提交
  3. 22 1月, 2015 1 次提交
  4. 10 1月, 2015 2 次提交
  5. 07 1月, 2015 3 次提交
  6. 06 12月, 2014 1 次提交
  7. 05 12月, 2014 1 次提交
  8. 12 1月, 2015 1 次提交
  9. 25 11月, 2014 1 次提交
  10. 18 11月, 2014 1 次提交
  11. 20 11月, 2014 1 次提交
  12. 02 11月, 2014 1 次提交
  13. 04 1月, 2015 1 次提交
    • B
      drm/amdkfd: Add new VI-specific queue properties · ff3d04a1
      Ben Goz 提交于
      This patch adds new fields to the queue_properties structure. The new fields
      are relevant only for queues running on AMD GPU VI architecture.
      
      The eop_ring_buffer_address and eop_ring_buffer_size describe an
      end-of-pipe queue which is assigned to the MQD. In CI, the EOP queue was per
      pipeline and in VI it is per queue.
      
      The ctx_save_restore_area_address and ctx_save_restore_area_size describe a
      memory area that is designated to allow the CP to do context save/restore in
      mid-wave state.
      
      This patch also modifies the set_queue_properties_from_user() (called from
      kfd_ioctl_create_queue()) to check and copy those new parameters.
      Signed-off-by: NBen Goz <ben.goz@amd.com>
      Signed-off-by: NOded Gabbay <oded.gabbay@amd.com>
      Reviewed-by: NAlex Deucher <alexander.deucher@amd.com>
      ff3d04a1
  14. 17 7月, 2014 3 次提交
  15. 20 10月, 2014 1 次提交
    • O
      amdkfd: Implement the create/destroy/update queue IOCTLs · 39b027d9
      Oded Gabbay 提交于
      v3: Removed the use of internal typedefs, fixed debug prints, added checks
          for parameters and moved to using doorbell address from user
      
      v4: Extracted some of the code in the create queue ioctl to a different
          function that may be also called from other ioctls in the future.
          Also fixed the check of the ring size argument.
      
      v5:
      
      Add support for AQL queues creation to enable working with open-source HSA
      runtime
      Signed-off-by: NBen Goz <ben.goz@amd.com>
      Signed-off-by: NOded Gabbay <oded.gabbay@amd.com>
      39b027d9
  16. 17 7月, 2014 2 次提交
    • O
      amdkfd: Add basic modules to amdkfd · 19f6d2a6
      Oded Gabbay 提交于
      This patch adds the process module and three helper modules:
      
      - kfd_process, which handles process which open /dev/kfd
      
      - kfd_doorbell, which provides helper functions for doorbell allocation,
        release and mapping to userspace
      
      - kfd_pasid, which provides helper functions for pasid allocation and release
      
      - kfd_aperture, which provides helper functions for managing the LDS, Local GPU
        memory and Scratch memory apertures of the process
      
      This patch only contains the basic kfd_process module, which doesn't contain
      the reference to the queue scheduler. This was done to allow easier code review.
      
      Also, this patch doesn't contain the calls to the IOMMU driver for binding the
      pasid to the device. Again, this was done to allow easier code review
      
      The kfd_process object is created when a process opens /dev/kfd and is closed
      when the mm_struct of that process is teared-down.
      
      v3:
      
      Removed kfd_vidmem.c file
      Replaced direct mmput call to mmu_notifier release
      Removed typedefs
      Moved bool field to end of the structure
      Added new kernel params for gart usage limitation
      Added initialization of sa manager
      Fixed debug messages
      Remove support for LDS in 32 bit
      Changed code to support mmap of doorbell pages from userspace
      Added documentation for apertures
      
      v4: Replaced RCU by SRCU for kfd_process list management
      
      v5:
      
      Move amdkfd from drm/radeon/ to drm/amd/
      Rename kfd_aperture.c to kfd_flat_memory.c
      Protect against multiple init calls
      MQD size is H/W dependent so moved it to device info structure
      Rename kfd_mem_obj structure's members
      Use delayed function for process tear-down
      Signed-off-by: NOded Gabbay <oded.gabbay@amd.com>
      19f6d2a6
    • O
      amdkfd: Add amdkfd skeleton driver · 4a488a7a
      Oded Gabbay 提交于
      This patch adds the amdkfd skeleton driver. The driver does nothing except
      define a /dev/kfd device.
      
      It returns -ENODEV on all amdkfd IOCTLs.
      
      v3: Move bool field to the end of structure, removed the pmc ioctls and added
      a meaningful error message for ioctl error.
      
      v5:
      
      Create a new folder drm/amd and move amdkfd from drm/radeon/ to drm/amd/
      Remove scheduler_class from kfd_priv.h as it was never used
      Add skeleton implementation of the Get Version IOCTL
      
      v6:
      Update module version to the correct number and remove the "default m" from the
      Kconfig file
      Signed-off-by: NOded Gabbay <oded.gabbay@amd.com>
      4a488a7a