summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 1caa1dcf..223c7727 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -45,7 +45,6 @@
45#include "gk20a.h" 45#include "gk20a.h"
46 46
47#include "dbg_gpu_gk20a.h" 47#include "dbg_gpu_gk20a.h"
48#include "hal.h"
49#include "pstate/pstate.h" 48#include "pstate/pstate.h"
50 49
51void __nvgpu_check_gpu_state(struct gk20a *g) 50void __nvgpu_check_gpu_state(struct gk20a *g)
@@ -65,33 +64,6 @@ void __gk20a_warn_on_no_regs(void)
65 WARN_ONCE(1, "Attempted access to GPU regs after unmapping!"); 64 WARN_ONCE(1, "Attempted access to GPU regs after unmapping!");
66} 65}
67 66
68int gk20a_detect_chip(struct gk20a *g)
69{
70 struct nvgpu_gpu_params *p = &g->params;
71
72 if (p->gpu_arch) {
73 return 0;
74 }
75
76 nvgpu_mc_boot_0(g, &p->gpu_arch, &p->gpu_impl, &p->gpu_rev);
77
78 if ((p->gpu_arch + p->gpu_impl) == NVGPU_GPUID_GV11B) {
79
80 /* overwrite gpu revison for A02 */
81 if (!nvgpu_is_soc_t194_a01(g)) {
82 p->gpu_rev = 0xa2;
83 }
84
85 }
86
87 nvgpu_log_info(g, "arch: %x, impl: %x, rev: %x\n",
88 g->params.gpu_arch,
89 g->params.gpu_impl,
90 g->params.gpu_rev);
91
92 return gpu_init_hal(g);
93}
94
95static void gk20a_mask_interrupts(struct gk20a *g) 67static void gk20a_mask_interrupts(struct gk20a *g)
96{ 68{
97 if (g->ops.mc.intr_mask != NULL) { 69 if (g->ops.mc.intr_mask != NULL) {