diff options
author | Oded Gabbay <oded.gabbay@gmail.com> | 2015-06-12 14:35:14 -0400 |
---|---|---|
committer | Oded Gabbay <oded.gabbay@gmail.com> | 2015-07-20 02:16:47 -0400 |
commit | 130e0371b7d454bb4a861253c822b9f911ad5d19 (patch) | |
tree | a2ec6267c5d4eff7caf1caa469e61402c3c0cd29 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 22801f76fa59870aed2c0b8a4eb6c8d6993347ae (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 01657830b470..f3791e0d27d4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -2011,6 +2011,9 @@ struct amdgpu_device { | |||
2011 | /* tracking pinned memory */ | 2011 | /* tracking pinned memory */ |
2012 | u64 vram_pin_size; | 2012 | u64 vram_pin_size; |
2013 | u64 gart_pin_size; | 2013 | u64 gart_pin_size; |
2014 | |||
2015 | /* amdkfd interface */ | ||
2016 | struct kfd_dev *kfd; | ||
2014 | }; | 2017 | }; |
2015 | 2018 | ||
2016 | bool amdgpu_device_is_px(struct drm_device *dev); | 2019 | bool amdgpu_device_is_px(struct drm_device *dev); |