summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/pmu/pmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/pmu/pmu.c')
-rw-r--r--drivers/gpu/nvgpu/common/pmu/pmu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/pmu/pmu.c b/drivers/gpu/nvgpu/common/pmu/pmu.c
index 35422e0d..eb1c83fb 100644
--- a/drivers/gpu/nvgpu/common/pmu/pmu.c
+++ b/drivers/gpu/nvgpu/common/pmu/pmu.c
@@ -193,14 +193,14 @@ int nvgpu_pmu_process_init_msg(struct nvgpu_pmu *pmu,
193 193
194 g->ops.pmu.pmu_msgq_tail(pmu, &tail, QUEUE_GET); 194 g->ops.pmu.pmu_msgq_tail(pmu, &tail, QUEUE_GET);
195 195
196 pmu_copy_from_dmem(pmu, tail, 196 nvgpu_flcn_copy_from_dmem(pmu->flcn, tail,
197 (u8 *)&msg->hdr, PMU_MSG_HDR_SIZE, 0); 197 (u8 *)&msg->hdr, PMU_MSG_HDR_SIZE, 0);
198 if (msg->hdr.unit_id != PMU_UNIT_INIT) { 198 if (msg->hdr.unit_id != PMU_UNIT_INIT) {
199 nvgpu_err(g, "expecting init msg"); 199 nvgpu_err(g, "expecting init msg");
200 return -EINVAL; 200 return -EINVAL;
201 } 201 }
202 202
203 pmu_copy_from_dmem(pmu, tail + PMU_MSG_HDR_SIZE, 203 nvgpu_flcn_copy_from_dmem(pmu->flcn, tail + PMU_MSG_HDR_SIZE,
204 (u8 *)&msg->msg, msg->hdr.size - PMU_MSG_HDR_SIZE, 0); 204 (u8 *)&msg->msg, msg->hdr.size - PMU_MSG_HDR_SIZE, 0);
205 205
206 if (msg->msg.init.msg_type != PMU_INIT_MSG_TYPE_PMU_INIT) { 206 if (msg->msg.init.msg_type != PMU_INIT_MSG_TYPE_PMU_INIT) {
@@ -214,7 +214,7 @@ int nvgpu_pmu_process_init_msg(struct nvgpu_pmu *pmu,
214 init = pv->get_pmu_msg_pmu_init_msg_ptr(&(msg->msg.init)); 214 init = pv->get_pmu_msg_pmu_init_msg_ptr(&(msg->msg.init));
215 if (!pmu->gid_info.valid) { 215 if (!pmu->gid_info.valid) {
216 216
217 pmu_copy_from_dmem(pmu, 217 nvgpu_flcn_copy_from_dmem(pmu->flcn,
218 pv->get_pmu_init_msg_pmu_sw_mg_off(init), 218 pv->get_pmu_init_msg_pmu_sw_mg_off(init),
219 (u8 *)&gid_data, 219 (u8 *)&gid_data,
220 sizeof(struct pmu_sha1_gid_data), 0); 220 sizeof(struct pmu_sha1_gid_data), 0);