summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2018-02-08 21:50:58 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-02-13 19:27:28 -0500
commiteb03270ff65b0fa52d080c2e8700acdf42b9ddee (patch)
treed555b9f85778f56354d2118f5e16dd573a6b4706 /drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
parentcc53490af534e7acf1764081756bf12c1e3a45ee (diff)
gpu: nvgpu: gv11b: update subctx pdb info
Updated subctx pdb info for all instblks created. Earlier subctx pdb info was getting updated during instblk commit. But some instblks like pmu instblk are never committed. Missing subctx pdb info in instblk is creating issues accessing subctx info. So, by filling subctx pdb info during instblk creation fixed all these issues. Also as part of re-org of the function gv11b_init_subcontext_pdb, moved setting subctx info in ram_in_engine_wfi_veid_w() to channel_gv11b_setup_ramfc. Bug 2051863 Change-Id: Ida96118e8f86b638fa6a8586d026ad2617ebbf64 Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1654678 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/subctx_gv11b.h')
-rw-r--r--drivers/gpu/nvgpu/gv11b/subctx_gv11b.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
index 10dc0ba5..3dcb58b3 100644
--- a/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
+++ b/drivers/gpu/nvgpu/gv11b/subctx_gv11b.h
@@ -2,7 +2,7 @@
2 * 2 *
3 * Volta GPU series Subcontext 3 * Volta GPU series Subcontext
4 * 4 *
5 * Copyright (c) 2016 - 2017, NVIDIA CORPORATION. All rights reserved. 5 * Copyright (c) 2016 - 2018, NVIDIA CORPORATION. All rights reserved.
6 * 6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a 7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the "Software"), 8 * copy of this software and associated documentation files (the "Software"),
@@ -31,4 +31,7 @@ void gv11b_free_subctx_header(struct channel_gk20a *c);
31 31
32int gv11b_update_subctx_header(struct channel_gk20a *c, u64 gpu_va); 32int gv11b_update_subctx_header(struct channel_gk20a *c, u64 gpu_va);
33 33
34void gv11b_init_subcontext_pdb(struct vm_gk20a *vm,
35 struct nvgpu_mem *inst_block);
36
34#endif /* __SUBCONTEXT_GV11B_H__ */ 37#endif /* __SUBCONTEXT_GV11B_H__ */