diff options
author | Mahantesh Kumbar <mkumbar@nvidia.com> | 2017-12-07 12:29:40 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-25 17:24:24 -0500 |
commit | 729403f545c5bc26ce208d38db65962596951e0a (patch) | |
tree | f3a503445f6acbfe51b2b3b1b355ed474c77726c /drivers/gpu/nvgpu/include | |
parent | 758dac5567d3e514ea038d532b7fd86cec83a961 (diff) |
gpu: nvgpu: gv100: INIT WPR region using RPC
- Created nv_pmu_rpc_struct_acr_init_wpr_region struct
- Function gv100_pmu_init_acr() to create & execute
INIT_WPR_REGION using RPC.
- Updated gv100 HAL .init_wpr_region to point
to gv100_pmu_init_acr()
- Added code to handle INIT_WPR_REGION ack in
RPC handler.
Change-Id: I699fa945790689e5f24ad5d3de022efb458662e0
Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1613290
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/pmuif/gpmuif_acr.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_acr.h b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_acr.h index 2d31207f..bc3b1056 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_acr.h +++ b/drivers/gpu/nvgpu/include/nvgpu/pmuif/gpmuif_acr.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * Permission is hereby granted, free of charge, to any person obtaining a | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
5 | * copy of this software and associated documentation files (the "Software"), | 5 | * copy of this software and associated documentation files (the "Software"), |
@@ -110,4 +110,25 @@ struct pmu_acr_msg { | |||
110 | }; | 110 | }; |
111 | }; | 111 | }; |
112 | 112 | ||
113 | /* ACR RPC */ | ||
114 | #define NV_PMU_RPC_ID_ACR_INIT_WPR_REGION 0x00 | ||
115 | #define NV_PMU_RPC_ID_ACR_WRITE_CBC_BASE 0x01 | ||
116 | #define NV_PMU_RPC_ID_ACR_BOOTSTRAP_FALCON 0x02 | ||
117 | #define NV_PMU_RPC_ID_ACR_BOOTSTRAP_GR_FALCONS 0x03 | ||
118 | #define NV_PMU_RPC_ID_ACR__COUNT 0x04 | ||
119 | |||
120 | /* | ||
121 | * structure that holds data used | ||
122 | * to execute INIT_WPR_REGION RPC. | ||
123 | */ | ||
124 | struct nv_pmu_rpc_struct_acr_init_wpr_region { | ||
125 | /*[IN/OUT] Must be first field in RPC structure */ | ||
126 | struct nv_pmu_rpc_header hdr; | ||
127 | /*[IN] ACR region ID of WPR region */ | ||
128 | u32 wpr_regionId; | ||
129 | /* [IN] WPR offset from startAddress */ | ||
130 | u32 wpr_offset; | ||
131 | u32 scratch[1]; | ||
132 | }; | ||
133 | |||
113 | #endif /* _GPMUIFACR_H_ */ | 134 | #endif /* _GPMUIFACR_H_ */ |