diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2018-07-11 05:30:45 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-31 04:25:41 -0400 |
commit | 2d454db04fcc0c03e05b4665831e5780240d79b8 (patch) | |
tree | c18fd4bc302ea68e57e1e1d95c0f253e800bc043 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | d32692ae2427693daf85b3c7b4e24cd36471dec6 (diff) |
gpu: nvgpu: falcon queue support
-Renamed "struct pmu_queue" to "struct
nvgpu_falcon_queue" & moved to falcon.h
-Renamed pmu_queue_* functions to flcn_queue_* &
moved to new file falcon_queue.c
-Created ops for queue functions in struct
nvgpu_falcon_queue to support different queue
types like DMEM/FB-Q.
-Created ops in nvgpu_falcon_engine_dependency_ops
to add engine specific queue functionality & assigned
correct HAL functions in hal*.c file.
-Made changes in dependent functions as needed to replace
struct pmu_queue & calling queue functions using
nvgpu_falcon_queue data structure.
-Replaced input param "struct nvgpu_pmu *pmu" with
"struct gk20a *g" for pmu ops pmu_queue_head/pmu_queue_tail
& also for functions gk20a_pmu_queue_head()/
gk20a_pmu_queue_tail().
-Made changes in nvgpu_pmu_queue_init() to use nvgpu_falcon_queue
for PMU queue.
-Modified Makefile to include falcon_queue.o
-Modified Makefile.sources to include falcon_queue.c
Change-Id: I956328f6631b7154267fd5a29eaa1826190d99d1
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1776070
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index cfc9128d..6d19d8a3 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -771,7 +771,7 @@ struct gpu_ops { | |||
771 | u32 (*pmu_allocation_get_fb_size)( | 771 | u32 (*pmu_allocation_get_fb_size)( |
772 | struct nvgpu_pmu *pmu, void *pmu_alloc_ptr); | 772 | struct nvgpu_pmu *pmu, void *pmu_alloc_ptr); |
773 | void (*get_pmu_init_msg_pmu_queue_params)( | 773 | void (*get_pmu_init_msg_pmu_queue_params)( |
774 | struct pmu_queue *queue, u32 id, | 774 | struct nvgpu_falcon_queue *queue, u32 id, |
775 | void *pmu_init_msg); | 775 | void *pmu_init_msg); |
776 | void *(*get_pmu_msg_pmu_init_msg_ptr)( | 776 | void *(*get_pmu_msg_pmu_init_msg_ptr)( |
777 | struct pmu_init_msg *init); | 777 | struct pmu_init_msg *init); |
@@ -1003,10 +1003,10 @@ struct gpu_ops { | |||
1003 | u32 (*pmu_get_queue_head_size)(void); | 1003 | u32 (*pmu_get_queue_head_size)(void); |
1004 | u32 (*pmu_get_queue_tail_size)(void); | 1004 | u32 (*pmu_get_queue_tail_size)(void); |
1005 | u32 (*pmu_get_queue_tail)(u32 i); | 1005 | u32 (*pmu_get_queue_tail)(u32 i); |
1006 | int (*pmu_queue_head)(struct nvgpu_pmu *pmu, | 1006 | int (*pmu_queue_head)(struct gk20a *g, |
1007 | struct pmu_queue *queue, u32 *head, bool set); | 1007 | struct nvgpu_falcon_queue *queue, u32 *head, bool set); |
1008 | int (*pmu_queue_tail)(struct nvgpu_pmu *pmu, | 1008 | int (*pmu_queue_tail)(struct gk20a *g, |
1009 | struct pmu_queue *queue, u32 *tail, bool set); | 1009 | struct nvgpu_falcon_queue *queue, u32 *tail, bool set); |
1010 | void (*pmu_msgq_tail)(struct nvgpu_pmu *pmu, | 1010 | void (*pmu_msgq_tail)(struct nvgpu_pmu *pmu, |
1011 | u32 *tail, bool set); | 1011 | u32 *tail, bool set); |
1012 | u32 (*pmu_mutex_size)(void); | 1012 | u32 (*pmu_mutex_size)(void); |