diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-12-15 12:04:15 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-17 15:29:09 -0500 |
commit | 2f6698b863c9cc1db6455637b7c72e812b470b93 (patch) | |
tree | d0c8abf32d6994b9f54bf5eddafd8316e038c829 /drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_gr_gp10b.h | |
parent | 6a73114788ffafe4c53771c707ecbd9c9ea0a117 (diff) |
gpu: nvgpu: Make graphics context property of TSG
Move graphics context ownership to TSG instead of channel. Combine
channel_ctx_gk20a and gr_ctx_desc to one structure, because the split
between them was arbitrary. Move context header to be property of
channel.
Bug 1842197
Change-Id: I410e3262f80b318d8528bcbec270b63a2d8d2ff9
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1639532
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Tested-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_gr_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_gr_gp10b.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_gr_gp10b.h b/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_gr_gp10b.h index 31b88d19..559bd227 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_gr_gp10b.h +++ b/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_gr_gp10b.h | |||
@@ -20,12 +20,12 @@ | |||
20 | #include "gk20a/gk20a.h" | 20 | #include "gk20a/gk20a.h" |
21 | 21 | ||
22 | int vgpu_gr_gp10b_alloc_gr_ctx(struct gk20a *g, | 22 | int vgpu_gr_gp10b_alloc_gr_ctx(struct gk20a *g, |
23 | struct gr_ctx_desc **__gr_ctx, | 23 | struct nvgpu_gr_ctx *gr_ctx, |
24 | struct vm_gk20a *vm, | 24 | struct vm_gk20a *vm, |
25 | u32 class, | 25 | u32 class, |
26 | u32 flags); | 26 | u32 flags); |
27 | int vgpu_gr_gp10b_set_ctxsw_preemption_mode(struct gk20a *g, | 27 | int vgpu_gr_gp10b_set_ctxsw_preemption_mode(struct gk20a *g, |
28 | struct gr_ctx_desc *gr_ctx, | 28 | struct nvgpu_gr_ctx *gr_ctx, |
29 | struct vm_gk20a *vm, u32 class, | 29 | struct vm_gk20a *vm, u32 class, |
30 | u32 graphics_preempt_mode, | 30 | u32 graphics_preempt_mode, |
31 | u32 compute_preempt_mode); | 31 | u32 compute_preempt_mode); |