diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/sec2_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/sec2_gp106.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gp106/sec2_gp106.c b/drivers/gpu/nvgpu/gp106/sec2_gp106.c index 1c959022..d480d875 100644 --- a/drivers/gpu/nvgpu/gp106/sec2_gp106.c +++ b/drivers/gpu/nvgpu/gp106/sec2_gp106.c | |||
@@ -34,7 +34,8 @@ | |||
34 | #define gm20b_dbg_pmu(g, fmt, arg...) \ | 34 | #define gm20b_dbg_pmu(g, fmt, arg...) \ |
35 | nvgpu_log(g, gpu_dbg_pmu, fmt, ##arg) | 35 | nvgpu_log(g, gpu_dbg_pmu, fmt, ##arg) |
36 | 36 | ||
37 | int sec2_clear_halt_interrupt_status(struct gk20a *g, unsigned int timeout) | 37 | int gp106_sec2_clear_halt_interrupt_status(struct gk20a *g, |
38 | unsigned int timeout) | ||
38 | { | 39 | { |
39 | int status = 0; | 40 | int status = 0; |
40 | 41 | ||
@@ -44,7 +45,7 @@ int sec2_clear_halt_interrupt_status(struct gk20a *g, unsigned int timeout) | |||
44 | return status; | 45 | return status; |
45 | } | 46 | } |
46 | 47 | ||
47 | int sec2_wait_for_halt(struct gk20a *g, unsigned int timeout) | 48 | int gp106_sec2_wait_for_halt(struct gk20a *g, unsigned int timeout) |
48 | { | 49 | { |
49 | u32 data = 0; | 50 | u32 data = 0; |
50 | int completion = 0; | 51 | int completion = 0; |
@@ -55,9 +56,10 @@ int sec2_wait_for_halt(struct gk20a *g, unsigned int timeout) | |||
55 | goto exit; | 56 | goto exit; |
56 | } | 57 | } |
57 | 58 | ||
58 | g->acr.capabilities = gk20a_readl(g, psec_falcon_mailbox1_r()); | 59 | g->acr.capabilities = nvgpu_flcn_mailbox_read(&g->sec2_flcn, |
60 | FALCON_MAILBOX_1); | ||
59 | gm20b_dbg_pmu(g, "ACR capabilities %x\n", g->acr.capabilities); | 61 | gm20b_dbg_pmu(g, "ACR capabilities %x\n", g->acr.capabilities); |
60 | data = gk20a_readl(g, psec_falcon_mailbox0_r()); | 62 | data = nvgpu_flcn_mailbox_read(&g->sec2_flcn, FALCON_MAILBOX_0); |
61 | if (data) { | 63 | if (data) { |
62 | nvgpu_err(g, "ACR boot failed, err %x", data); | 64 | nvgpu_err(g, "ACR boot failed, err %x", data); |
63 | completion = -EAGAIN; | 65 | completion = -EAGAIN; |