drm/amdgpu: Add H/W agnostic amdgpu <--> amdkfd interface
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:
Oded Gabbay <oded.gabbay@gmail.com>
Showing
- MAINTAINERS 2 additions, 0 deletionsMAINTAINERS
- drivers/gpu/drm/amd/amdgpu/Makefile 4 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/Makefile
- drivers/gpu/drm/amd/amdgpu/amdgpu.h 3 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu.h
- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c 262 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h 64 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 5 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c 7 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_ih.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c 7 additions, 0 deletionsdrivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
- drivers/gpu/drm/amd/amdgpu/cik.c 10 additions, 1 deletiondrivers/gpu/drm/amd/amdgpu/cik.c
Loading
Please register or sign in to comment