diff options
author | Nicolas Benech <nbenech@nvidia.com> | 2018-08-30 13:55:37 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-06 19:13:52 -0400 |
commit | ba1245d8f74816189af0fc3e0d0d1c642f87cdf2 (patch) | |
tree | ff736e29e9dc62e8c7ffac6afcf12790b5f374b2 /drivers/gpu/nvgpu/vgpu | |
parent | 5cfd481cf5319d52f613cb5c5f66a1f643af5bed (diff) |
gpu: nvgpu: Add return code to fb.tlb_invalidate
As part of MISRA 17.7 fixes for a different GPU, the tlb_invalidate
needs to return an error code.
Change-Id: I3b8b9f112708c17457855dd1fb151168791bc6bf
Signed-off-by: Nicolas Benech <nbenech@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1810106
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/mm_vgpu.c | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/mm_vgpu.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c index 837508bb..ae35cafc 100644 --- a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c | |||
@@ -250,11 +250,12 @@ void vgpu_mm_l2_flush(struct gk20a *g, bool invalidate) | |||
250 | vgpu_cache_maint(vgpu_get_handle(g), op); | 250 | vgpu_cache_maint(vgpu_get_handle(g), op); |
251 | } | 251 | } |
252 | 252 | ||
253 | void vgpu_mm_tlb_invalidate(struct gk20a *g, struct nvgpu_mem *pdb) | 253 | int vgpu_mm_tlb_invalidate(struct gk20a *g, struct nvgpu_mem *pdb) |
254 | { | 254 | { |
255 | nvgpu_log_fn(g, " "); | 255 | nvgpu_log_fn(g, " "); |
256 | 256 | ||
257 | nvgpu_err(g, "call to RM server not supported"); | 257 | nvgpu_err(g, "call to RM server not supported"); |
258 | return 0; | ||
258 | } | 259 | } |
259 | 260 | ||
260 | void vgpu_mm_mmu_set_debug_mode(struct gk20a *g, bool enable) | 261 | void vgpu_mm_mmu_set_debug_mode(struct gk20a *g, bool enable) |
diff --git a/drivers/gpu/nvgpu/vgpu/mm_vgpu.h b/drivers/gpu/nvgpu/vgpu/mm_vgpu.h index 41bae96d..491700fc 100644 --- a/drivers/gpu/nvgpu/vgpu/mm_vgpu.h +++ b/drivers/gpu/nvgpu/vgpu/mm_vgpu.h | |||
@@ -43,6 +43,6 @@ int vgpu_vm_bind_channel(struct vm_gk20a *vm, | |||
43 | int vgpu_mm_fb_flush(struct gk20a *g); | 43 | int vgpu_mm_fb_flush(struct gk20a *g); |
44 | void vgpu_mm_l2_invalidate(struct gk20a *g); | 44 | void vgpu_mm_l2_invalidate(struct gk20a *g); |
45 | void vgpu_mm_l2_flush(struct gk20a *g, bool invalidate); | 45 | void vgpu_mm_l2_flush(struct gk20a *g, bool invalidate); |
46 | void vgpu_mm_tlb_invalidate(struct gk20a *g, struct nvgpu_mem *pdb); | 46 | int vgpu_mm_tlb_invalidate(struct gk20a *g, struct nvgpu_mem *pdb); |
47 | void vgpu_mm_mmu_set_debug_mode(struct gk20a *g, bool enable); | 47 | void vgpu_mm_mmu_set_debug_mode(struct gk20a *g, bool enable); |
48 | #endif | 48 | #endif |