1. 18 8月, 2015 7 次提交
  2. 20 7月, 2015 3 次提交
    • B
      drm/amdgpu: Add amdgpu <--> amdkfd gfx8 interface · ff758a12
      Ben Goz 提交于
      This patch adds the gfx8 interface file between amdgpu and amdkfd. This
      interface file is currently in use when running on a Carrizo-based
      system.
      
      The interface itself is represented by a pointer to struct
      kfd_dev. The pointer is located inside amdgpu_device structure.
      
      All the register accesses that amdkfd need are done using this
      interface. This allows us to avoid direct register accesses in
      amdkfd proper, while also allows us to avoid locking between
      amdkfd and amdgpu.
      
      The single exception is the doorbells that are used in both of
      the drivers. However, because they are located in separate pci
      bar pages, the danger of sharing registers between the drivers
      is minimal.
      
      Having said that, we are planning to move the doorbells as well
      to amdgpu.
      Signed-off-by: NBen Goz <ben.goz@amd.com>
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      ff758a12
    • O
      drm/amdgpu: add amdgpu <--> amdkfd gfx7 interface · 32c22e99
      Oded Gabbay 提交于
      This patch adds the gfx7 interface file between amdgpu and amdkfd. This
      interface file mirrors (some) of the functions in radeon_kfd.c
      (the interface file between radeon and amdkfd).
      
      The gfx7 interface is used when it is run on a Kaveri-based system.
      
      This interface file was used for bring-up of amdkfd on amdgpu and for
      debugging purposes. For users who would like to run HSA on Kaveri, please
      use the radeon graphic driver.
      
      Note: CONFIG_DRM_AMDGPU_CIK must be selected for amdgpu to handle Kaveri.
      
      v2: removed MTYPE_NONCACHED enum definition as it is defined in another
      patch
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      32c22e99
    • O
      drm/amdgpu: Add H/W agnostic amdgpu <--> amdkfd interface · 130e0371
      Oded Gabbay 提交于
      This patch adds an interface file between amdgpu and amdkfd. This
      interface file is H/W agnostic, thus containing functions that
      operate the same for any AMD APU/GPU H/W generation.
      
      The functions in this interface mirror (some) of the functions in
      radeon_kfd.c (the radeon<-->amdkfd interface file). The main functions
      are:
      
      - amdgpu_amdkfd_init - initialize the amdkfd module
      - amdgpu_amdkfd_load_interface - load the H/W interface according to the
        currently probed device
      - amdgpu_amdkfd_device_probe - probe the device in amdkfd
      - amdgpu_amdkfd_device_init - initialize the device in amdkfd
      - amdgpu_amdkfd_interrupt - call the ISR of amdkfd
      - amdgpu_amdkfd_suspend - suspend callback from amdgpu
      - amdgpu_amdkfd_resume - resume callback from amdgpu
      
      This patch also modifies the relevant amdgpu files, to use this new
      interface.
      Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
      130e0371
  3. 04 6月, 2015 4 次提交