summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2018-09-23 05:01:17 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-27 11:33:56 -0400
commit4dafb2e4927dd7e43ee39d40153cc6c34ed29d27 (patch)
treed60c4d1c0a8df1977b0b6be9e3fbcca326b7f019 /drivers/gpu/nvgpu/include
parent628e2c79017b83032a840fb85e136d3216dec9c4 (diff)
gpu: nvgpu: falcon engine EMEM queue support
-Removed _dmem postfix to some functions which can be common for DMEM & EMEM queue, and made changes as needed. -Defined flcn_queue_push_emem() & flcn_queue_pop_emem() functions to to read/write queue data to/from EMEM -Defined flcn_queue_init_emem_queue() function to assign EMEM specific functions to support EMEM queue type. -Defined QUEUE_TYPE_DMEM to support DMEM based queue. -Defined QUEUE_TYPE_EMEM to support EMEM based queue. -Modified nvgpu_flcn_queue_init() to call queue type flcn_queue_init_dmem/emem_queue() function to assign its ops. JIRA NVGPU-1161 Change-Id: I06333fa318b7ca4137c977ad63f5a857e7b36cc8 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1841084 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/falcon.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/falcon.h b/drivers/gpu/nvgpu/include/nvgpu/falcon.h
index cf15061d..4fc97ee8 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/falcon.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/falcon.h
@@ -84,7 +84,7 @@
84#define FALCON_MAILBOX_0 0x0 84#define FALCON_MAILBOX_0 0x0
85#define FALCON_MAILBOX_1 0x1 85#define FALCON_MAILBOX_1 0x1
86#define FALCON_MAILBOX_COUNT 0x02 86#define FALCON_MAILBOX_COUNT 0x02
87#define FALCON_BLOCK_SIZE 0x100 87#define FALCON_BLOCK_SIZE 0x100U
88 88
89#define GET_IMEM_TAG(IMEM_ADDR) (IMEM_ADDR >> 8) 89#define GET_IMEM_TAG(IMEM_ADDR) (IMEM_ADDR >> 8)
90 90
@@ -168,6 +168,10 @@ struct gk20a;
168struct nvgpu_falcon; 168struct nvgpu_falcon;
169struct nvgpu_falcon_bl_info; 169struct nvgpu_falcon_bl_info;
170 170
171/* Queue Type */
172#define QUEUE_TYPE_DMEM 0x0U
173#define QUEUE_TYPE_EMEM 0x1U
174
171struct nvgpu_falcon_queue { 175struct nvgpu_falcon_queue {
172 176
173 /* Queue Type (queue_type) */ 177 /* Queue Type (queue_type) */