summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/css_vgpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/css_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/css_vgpu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/css_vgpu.c b/drivers/gpu/nvgpu/vgpu/css_vgpu.c
index cca8766b..d18ed100 100644
--- a/drivers/gpu/nvgpu/vgpu/css_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/css_vgpu.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -46,7 +46,7 @@ static int vgpu_css_init_snapshot_buffer(struct gr_gk20a *gr)
46 err = of_parse_phandle_with_fixed_args(np, 46 err = of_parse_phandle_with_fixed_args(np,
47 "mempool-css", 1, 0, &args); 47 "mempool-css", 1, 0, &args);
48 if (err) { 48 if (err) {
49 dev_info(dev_from_gk20a(g), "dt missing mempool-css\n"); 49 nvgpu_info(g, "dt missing mempool-css");
50 goto fail; 50 goto fail;
51 } 51 }
52 52
@@ -54,15 +54,15 @@ static int vgpu_css_init_snapshot_buffer(struct gr_gk20a *gr)
54 mempool = args.args[0]; 54 mempool = args.args[0];
55 css_cookie = tegra_hv_mempool_reserve(hv_np, mempool); 55 css_cookie = tegra_hv_mempool_reserve(hv_np, mempool);
56 if (IS_ERR(css_cookie)) { 56 if (IS_ERR(css_cookie)) {
57 dev_info(dev_from_gk20a(g), 57 nvgpu_info(g,
58 "mempool %u reserve failed\n", mempool); 58 "mempool %u reserve failed", mempool);
59 err = -EINVAL; 59 err = -EINVAL;
60 goto fail; 60 goto fail;
61 } 61 }
62 62
63 /* Make sure buffer size is large enough */ 63 /* Make sure buffer size is large enough */
64 if (css_cookie->size < CSS_MIN_HW_SNAPSHOT_SIZE) { 64 if (css_cookie->size < CSS_MIN_HW_SNAPSHOT_SIZE) {
65 dev_info(dev_from_gk20a(g), "mempool size %lld too small\n", 65 nvgpu_info(g, "mempool size %lld too small",
66 css_cookie->size); 66 css_cookie->size);
67 err = -ENOMEM; 67 err = -ENOMEM;
68 goto fail; 68 goto fail;
@@ -74,7 +74,7 @@ static int vgpu_css_init_snapshot_buffer(struct gr_gk20a *gr)
74 buf = ioremap_cache(css_cookie->ipa, css_cookie->size); 74 buf = ioremap_cache(css_cookie->ipa, css_cookie->size);
75#endif 75#endif
76 if (!buf) { 76 if (!buf) {
77 dev_info(dev_from_gk20a(g), "ioremap_cache failed\n"); 77 nvgpu_info(g, "ioremap_cache failed");
78 err = -EINVAL; 78 err = -EINVAL;
79 goto fail; 79 goto fail;
80 } 80 }