diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c index 9674e2d6..01c7ed3c 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c +++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a_sim.c | |||
@@ -1,9 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * drivers/video/tegra/host/gk20a/gr_ctx_sim_gk20a.c | ||
3 | * | ||
4 | * GK20A Graphics Context for Simulation | 2 | * GK20A Graphics Context for Simulation |
5 | * | 3 | * |
6 | * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved. |
7 | * | 5 | * |
8 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
9 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), |
@@ -35,7 +33,7 @@ int gr_gk20a_init_ctx_vars_sim(struct gk20a *g, struct gr_gk20a *gr) | |||
35 | int err = 0; | 33 | int err = 0; |
36 | u32 i, temp; | 34 | u32 i, temp; |
37 | 35 | ||
38 | gk20a_dbg(gpu_dbg_fn | gpu_dbg_info, | 36 | nvgpu_log(g, gpu_dbg_fn | gpu_dbg_info, |
39 | "querying grctx info from chiplib"); | 37 | "querying grctx info from chiplib"); |
40 | 38 | ||
41 | g->gr.ctx_vars.dynamic = true; | 39 | g->gr.ctx_vars.dynamic = true; |
@@ -250,7 +248,7 @@ int gr_gk20a_init_ctx_vars_sim(struct gk20a *g, struct gr_gk20a *gr) | |||
250 | i, &l[i].value); | 248 | i, &l[i].value); |
251 | } | 249 | } |
252 | 250 | ||
253 | gk20a_dbg(gpu_dbg_info | gpu_dbg_fn, "query GRCTX_REG_LIST_ETPC"); | 251 | nvgpu_log(g, gpu_dbg_info | gpu_dbg_fn, "query GRCTX_REG_LIST_ETPC"); |
254 | for (i = 0; i < g->gr.ctx_vars.ctxsw_regs.etpc.count; i++) { | 252 | for (i = 0; i < g->gr.ctx_vars.ctxsw_regs.etpc.count; i++) { |
255 | struct aiv_gk20a *l = g->gr.ctx_vars.ctxsw_regs.etpc.l; | 253 | struct aiv_gk20a *l = g->gr.ctx_vars.ctxsw_regs.etpc.l; |
256 | g->sim->esc_readl(g, "GRCTX_REG_LIST_ETPC:ADDR", | 254 | g->sim->esc_readl(g, "GRCTX_REG_LIST_ETPC:ADDR", |
@@ -259,7 +257,7 @@ int gr_gk20a_init_ctx_vars_sim(struct gk20a *g, struct gr_gk20a *gr) | |||
259 | i, &l[i].index); | 257 | i, &l[i].index); |
260 | g->sim->esc_readl(g, "GRCTX_REG_LIST_ETPC:VALUE", | 258 | g->sim->esc_readl(g, "GRCTX_REG_LIST_ETPC:VALUE", |
261 | i, &l[i].value); | 259 | i, &l[i].value); |
262 | gk20a_dbg(gpu_dbg_info | gpu_dbg_fn, | 260 | nvgpu_log(g, gpu_dbg_info | gpu_dbg_fn, |
263 | "addr:0x%#08x index:0x%08x value:0x%08x", | 261 | "addr:0x%#08x index:0x%08x value:0x%08x", |
264 | l[i].addr, l[i].index, l[i].value); | 262 | l[i].addr, l[i].index, l[i].value); |
265 | } | 263 | } |
@@ -269,7 +267,7 @@ int gr_gk20a_init_ctx_vars_sim(struct gk20a *g, struct gr_gk20a *gr) | |||
269 | g->sim->esc_readl(g, "GRCTX_GEN_CTX_REGS_BASE_INDEX", 0, | 267 | g->sim->esc_readl(g, "GRCTX_GEN_CTX_REGS_BASE_INDEX", 0, |
270 | &g->gr.ctx_vars.regs_base_index); | 268 | &g->gr.ctx_vars.regs_base_index); |
271 | 269 | ||
272 | gk20a_dbg(gpu_dbg_info | gpu_dbg_fn, "finished querying grctx info from chiplib"); | 270 | nvgpu_log(g, gpu_dbg_info | gpu_dbg_fn, "finished querying grctx info from chiplib"); |
273 | return 0; | 271 | return 0; |
274 | fail: | 272 | fail: |
275 | nvgpu_err(g, "failed querying grctx info from chiplib"); | 273 | nvgpu_err(g, "failed querying grctx info from chiplib"); |