summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2018-08-22 07:14:59 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-09-25 00:17:29 -0400
commitf93565c51fb465aebc34dc52fd704ba038c917f7 (patch)
treed809b8da6418674502ed228074361fb6b9bbc8db /drivers/gpu/nvgpu/include
parentbf99dfdaf2dd974723dfce23d815b2f5ee83673d (diff)
gpu: nvgpu: add GSP falcon support
- Defined FALCON_ID_GSPLITE for GSP falcon. - Created variable gsp_flcn of struct nvgpu_falcon for GSP falcon & registered to falcon module to access falcon functions. - Created HAL file gsp_gv100.c/h for GSP. - Modified Makefile & Makefile.sources files to include gsp_gv100 HAL file. - Enabled GSP falcon support for GV100 by registering to common falcon module. - Defined function gv100_gsp_reset() & assigned to falcon reset as GSP engine reset. - Updated falcon HAL init code not to return error if requested falcon is not supported, instead log the info and return non-error. JIRA NVGPU-1160 Change-Id: Ice032cf443ae87254375265628b3c022f41544cd Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1804551 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.h1
-rw-r--r--drivers/gpu/nvgpu/include/nvgpu/gk20a.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/falcon.h b/drivers/gpu/nvgpu/include/nvgpu/falcon.h
index 55dca035..4541f228 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/falcon.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/falcon.h
@@ -30,6 +30,7 @@
30 * Falcon Id Defines 30 * Falcon Id Defines
31 */ 31 */
32#define FALCON_ID_PMU (0U) 32#define FALCON_ID_PMU (0U)
33#define FALCON_ID_GSPLITE (1U)
33#define FALCON_ID_FECS (2U) 34#define FALCON_ID_FECS (2U)
34#define FALCON_ID_GPCCS (3U) 35#define FALCON_ID_GPCCS (3U)
35#define FALCON_ID_NVDEC (4U) 36#define FALCON_ID_NVDEC (4U)
diff --git a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h
index ad77f802..43bc58f7 100644
--- a/drivers/gpu/nvgpu/include/nvgpu/gk20a.h
+++ b/drivers/gpu/nvgpu/include/nvgpu/gk20a.h
@@ -1428,6 +1428,7 @@ struct gk20a {
1428 struct nvgpu_falcon gpccs_flcn; 1428 struct nvgpu_falcon gpccs_flcn;
1429 struct nvgpu_falcon nvdec_flcn; 1429 struct nvgpu_falcon nvdec_flcn;
1430 struct nvgpu_falcon minion_flcn; 1430 struct nvgpu_falcon minion_flcn;
1431 struct nvgpu_falcon gsp_flcn;
1431 struct clk_gk20a clk; 1432 struct clk_gk20a clk;
1432 struct fifo_gk20a fifo; 1433 struct fifo_gk20a fifo;
1433 struct nvgpu_nvlink_dev nvlink; 1434 struct nvgpu_nvlink_dev nvlink;