]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6ef212f0045a3db9a9b5b3b8c12b2c721adbad6d
tree9814e56e5d7223141310e3c06e250714f3580ddf
parent7cee9798ddc6446a7c49c29e2a1a642df1d74687
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]