]> 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)
commite93876fc0008b445c30f3735e3b105f007313382
tree9814e56e5d7223141310e3c06e250714f3580ddf
parentb9929da7359fb11dda9f492bf2626657b6f48153
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]