summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/acr_gv11b.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/acr_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/gv11b/acr_gv11b.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/acr_gv11b.c b/drivers/gpu/nvgpu/gv11b/acr_gv11b.c
index 7ca8c703..673cb7f2 100644
--- a/drivers/gpu/nvgpu/gv11b/acr_gv11b.c
+++ b/drivers/gpu/nvgpu/gv11b/acr_gv11b.c
@@ -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"),
@@ -43,8 +43,8 @@
43#include <nvgpu/hw/gv11b/hw_pwr_gv11b.h> 43#include <nvgpu/hw/gv11b/hw_pwr_gv11b.h>
44 44
45/*Defines*/ 45/*Defines*/
46#define gv11b_dbg_pmu(fmt, arg...) \ 46#define gv11b_dbg_pmu(g, fmt, arg...) \
47 gk20a_dbg(gpu_dbg_pmu, fmt, ##arg) 47 nvgpu_log(g, gpu_dbg_pmu, fmt, ##arg)
48 48
49static void flcn64_set_dma(struct falc_u64 *dma_addr, u64 value) 49static void flcn64_set_dma(struct falc_u64 *dma_addr, u64 value)
50{ 50{
@@ -60,7 +60,7 @@ int gv11b_alloc_blob_space(struct gk20a *g,
60{ 60{
61 int err; 61 int err;
62 62
63 gv11b_dbg_pmu("alloc blob space: NVGPU_DMA_FORCE_CONTIGUOUS"); 63 gv11b_dbg_pmu(g, "alloc blob space: NVGPU_DMA_FORCE_CONTIGUOUS");
64 err = nvgpu_dma_alloc_flags_sys(g, NVGPU_DMA_FORCE_CONTIGUOUS, 64 err = nvgpu_dma_alloc_flags_sys(g, NVGPU_DMA_FORCE_CONTIGUOUS,
65 size, mem); 65 size, mem);
66 66
@@ -87,10 +87,10 @@ int gv11b_bootstrap_hs_flcn(struct gk20a *g)
87 start = nvgpu_mem_get_addr(g, &acr->ucode_blob); 87 start = nvgpu_mem_get_addr(g, &acr->ucode_blob);
88 size = acr->ucode_blob.size; 88 size = acr->ucode_blob.size;
89 89
90 gv11b_dbg_pmu("acr ucode blob start %llx\n", start); 90 gv11b_dbg_pmu(g, "acr ucode blob start %llx\n", start);
91 gv11b_dbg_pmu("acr ucode blob size %x\n", size); 91 gv11b_dbg_pmu(g, "acr ucode blob size %x\n", size);
92 92
93 gv11b_dbg_pmu(""); 93 gv11b_dbg_pmu(g, " ");
94 94
95 if (!acr_fw) { 95 if (!acr_fw) {
96 /*First time init case*/ 96 /*First time init case*/
@@ -110,17 +110,17 @@ int gv11b_bootstrap_hs_flcn(struct gk20a *g)
110 acr->fw_hdr->hdr_offset); 110 acr->fw_hdr->hdr_offset);
111 img_size_in_bytes = ALIGN((acr->hsbin_hdr->data_size), 256); 111 img_size_in_bytes = ALIGN((acr->hsbin_hdr->data_size), 256);
112 112
113 gv11b_dbg_pmu("sig dbg offset %u\n", 113 gv11b_dbg_pmu(g, "sig dbg offset %u\n",
114 acr->fw_hdr->sig_dbg_offset); 114 acr->fw_hdr->sig_dbg_offset);
115 gv11b_dbg_pmu("sig dbg size %u\n", acr->fw_hdr->sig_dbg_size); 115 gv11b_dbg_pmu(g, "sig dbg size %u\n", acr->fw_hdr->sig_dbg_size);
116 gv11b_dbg_pmu("sig prod offset %u\n", 116 gv11b_dbg_pmu(g, "sig prod offset %u\n",
117 acr->fw_hdr->sig_prod_offset); 117 acr->fw_hdr->sig_prod_offset);
118 gv11b_dbg_pmu("sig prod size %u\n", 118 gv11b_dbg_pmu(g, "sig prod size %u\n",
119 acr->fw_hdr->sig_prod_size); 119 acr->fw_hdr->sig_prod_size);
120 gv11b_dbg_pmu("patch loc %u\n", acr->fw_hdr->patch_loc); 120 gv11b_dbg_pmu(g, "patch loc %u\n", acr->fw_hdr->patch_loc);
121 gv11b_dbg_pmu("patch sig %u\n", acr->fw_hdr->patch_sig); 121 gv11b_dbg_pmu(g, "patch sig %u\n", acr->fw_hdr->patch_sig);
122 gv11b_dbg_pmu("header offset %u\n", acr->fw_hdr->hdr_offset); 122 gv11b_dbg_pmu(g, "header offset %u\n", acr->fw_hdr->hdr_offset);
123 gv11b_dbg_pmu("header size %u\n", acr->fw_hdr->hdr_size); 123 gv11b_dbg_pmu(g, "header size %u\n", acr->fw_hdr->hdr_size);
124 124
125 /* Lets patch the signatures first.. */ 125 /* Lets patch the signatures first.. */
126 if (acr_ucode_patch_sig(g, acr_ucode_data_t210_load, 126 if (acr_ucode_patch_sig(g, acr_ucode_data_t210_load,
@@ -144,7 +144,7 @@ int gv11b_bootstrap_hs_flcn(struct gk20a *g)
144 } 144 }
145 145
146 for (index = 0; index < 9; index++) 146 for (index = 0; index < 9; index++)
147 gv11b_dbg_pmu("acr_ucode_header_t210_load %u\n", 147 gv11b_dbg_pmu(g, "acr_ucode_header_t210_load %u\n",
148 acr_ucode_header_t210_load[index]); 148 acr_ucode_header_t210_load[index]);
149 149
150 acr_dmem = (u64 *) 150 acr_dmem = (u64 *)
@@ -212,7 +212,7 @@ static int bl_bootstrap(struct nvgpu_pmu *pmu,
212 struct hsflcn_bl_desc *pmu_bl_gm10x_desc = g->acr.pmu_hsbl_desc; 212 struct hsflcn_bl_desc *pmu_bl_gm10x_desc = g->acr.pmu_hsbl_desc;
213 u32 dst; 213 u32 dst;
214 214
215 gk20a_dbg_fn(""); 215 nvgpu_log_fn(g, " ");
216 216
217 gk20a_writel(g, pwr_falcon_itfen_r(), 217 gk20a_writel(g, pwr_falcon_itfen_r(),
218 gk20a_readl(g, pwr_falcon_itfen_r()) | 218 gk20a_readl(g, pwr_falcon_itfen_r()) |
@@ -237,7 +237,7 @@ static int bl_bootstrap(struct nvgpu_pmu *pmu,
237 (u8 *)(acr->hsbl_ucode.cpu_va), bl_sz, 0, 0, 237 (u8 *)(acr->hsbl_ucode.cpu_va), bl_sz, 0, 0,
238 pmu_bl_gm10x_desc->bl_start_tag); 238 pmu_bl_gm10x_desc->bl_start_tag);
239 239
240 gv11b_dbg_pmu("Before starting falcon with BL\n"); 240 gv11b_dbg_pmu(g, "Before starting falcon with BL\n");
241 241
242 virt_addr = pmu_bl_gm10x_desc->bl_start_tag << 8; 242 virt_addr = pmu_bl_gm10x_desc->bl_start_tag << 8;
243 243
@@ -281,7 +281,7 @@ int gv11b_init_pmu_setup_hw1(struct gk20a *g,
281 struct nvgpu_pmu *pmu = &g->pmu; 281 struct nvgpu_pmu *pmu = &g->pmu;
282 int err; 282 int err;
283 283
284 gk20a_dbg_fn(""); 284 nvgpu_log_fn(g, " ");
285 285
286 nvgpu_mutex_acquire(&pmu->isr_mutex); 286 nvgpu_mutex_acquire(&pmu->isr_mutex);
287 nvgpu_flcn_reset(pmu->flcn); 287 nvgpu_flcn_reset(pmu->flcn);