diff options
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/tsg_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/tsg_vgpu.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c b/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c index 2be102e3..94d7140e 100644 --- a/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/tsg_vgpu.c | |||
@@ -53,6 +53,19 @@ int vgpu_tsg_open(struct tsg_gk20a *tsg) | |||
53 | return err; | 53 | return err; |
54 | } | 54 | } |
55 | 55 | ||
56 | int vgpu_enable_tsg(struct tsg_gk20a *tsg) | ||
57 | { | ||
58 | struct gk20a *g = tsg->g; | ||
59 | struct channel_gk20a *ch; | ||
60 | |||
61 | nvgpu_rwsem_down_read(&tsg->ch_list_lock); | ||
62 | nvgpu_list_for_each_entry(ch, &tsg->ch_list, channel_gk20a, ch_entry) | ||
63 | g->ops.fifo.enable_channel(ch); | ||
64 | nvgpu_rwsem_up_read(&tsg->ch_list_lock); | ||
65 | |||
66 | return 0; | ||
67 | } | ||
68 | |||
56 | int vgpu_tsg_bind_channel(struct tsg_gk20a *tsg, | 69 | int vgpu_tsg_bind_channel(struct tsg_gk20a *tsg, |
57 | struct channel_gk20a *ch) | 70 | struct channel_gk20a *ch) |
58 | { | 71 | { |