drm/amdgpu: Add amdgpu <--> amdkfd gfx8 interface
authorBen Goz <ben.goz@amd.com>
Tue, 7 Oct 2014 11:43:07 +0000 (14:43 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Mon, 20 Jul 2015 06:16:48 +0000 (09:16 +0300)
commitff758a12b45b0513dbe9905deba2a29b20412138
tree9814e56e5d7223141310e3c06e250714f3580ddf
parent32c22e994f44e7e5cc54b52375012311d1693b0d
drm/amdgpu: Add amdgpu <--> amdkfd gfx8 interface

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: Ben Goz <ben.goz@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
MAINTAINERS
drivers/gpu/drm/amd/amdgpu/Makefile
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c [new file with mode: 0644]
drivers/gpu/drm/amd/amdgpu/vid.h
drivers/gpu/drm/amd/include/vi_structs.h [new file with mode: 0644]
This page took 0.025048 seconds and 5 git commands to generate.