diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/ptimer/ptimer_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/ptimer/ptimer_gk20a.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/ptimer/ptimer_gk20a.c b/drivers/gpu/nvgpu/common/ptimer/ptimer_gk20a.c index 0b3188ee..a9c971df 100644 --- a/drivers/gpu/nvgpu/common/ptimer/ptimer_gk20a.c +++ b/drivers/gpu/nvgpu/common/ptimer/ptimer_gk20a.c | |||
@@ -54,9 +54,10 @@ void gk20a_ptimer_isr(struct gk20a *g) | |||
54 | 54 | ||
55 | if (fecs_errcode) { | 55 | if (fecs_errcode) { |
56 | nvgpu_err(g, "FECS_ERRCODE 0x%08x", fecs_errcode); | 56 | nvgpu_err(g, "FECS_ERRCODE 0x%08x", fecs_errcode); |
57 | if (g->ops.priv_ring.decode_error_code) | 57 | if (g->ops.priv_ring.decode_error_code) { |
58 | g->ops.priv_ring.decode_error_code(g, | 58 | g->ops.priv_ring.decode_error_code(g, |
59 | fecs_errcode); | 59 | fecs_errcode); |
60 | } | ||
60 | } | 61 | } |
61 | } | 62 | } |
62 | 63 | ||
@@ -66,8 +67,9 @@ int gk20a_read_ptimer(struct gk20a *g, u64 *value) | |||
66 | unsigned int i = 0; | 67 | unsigned int i = 0; |
67 | u32 gpu_timestamp_hi_prev = 0; | 68 | u32 gpu_timestamp_hi_prev = 0; |
68 | 69 | ||
69 | if (!value) | 70 | if (!value) { |
70 | return -EINVAL; | 71 | return -EINVAL; |
72 | } | ||
71 | 73 | ||
72 | /* Note. The GPU nanosecond timer consists of two 32-bit | 74 | /* Note. The GPU nanosecond timer consists of two 32-bit |
73 | * registers (high & low). To detect a possible low register | 75 | * registers (high & low). To detect a possible low register |