diff options
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | 10 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_pbdma_gv100.h | 8 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_pbdma_gv11b.h | 8 |
3 files changed, 2 insertions, 24 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c index a7a58e2f..7d3c5c75 100644 --- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GV11B fifo | 2 | * GV11B fifo |
3 | * | 3 | * |
4 | * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
7 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), |
@@ -184,13 +184,7 @@ int channel_gv11b_setup_ramfc(struct channel_gk20a *c, | |||
184 | 184 | ||
185 | nvgpu_mem_wr32(g, mem, ram_fc_chid_w(), ram_fc_chid_id_f(c->chid)); | 185 | nvgpu_mem_wr32(g, mem, ram_fc_chid_w(), ram_fc_chid_id_f(c->chid)); |
186 | 186 | ||
187 | if (c->t19x.subctx_id == CHANNEL_INFO_VEID0) | 187 | nvgpu_mem_wr32(g, mem, ram_fc_set_channel_info_w(), |
188 | nvgpu_mem_wr32(g, mem, ram_fc_set_channel_info_w(), | ||
189 | pbdma_set_channel_info_scg_type_graphics_compute0_f() | | ||
190 | pbdma_set_channel_info_veid_f(c->t19x.subctx_id)); | ||
191 | else | ||
192 | nvgpu_mem_wr32(g, mem, ram_fc_set_channel_info_w(), | ||
193 | pbdma_set_channel_info_scg_type_compute1_f() | | ||
194 | pbdma_set_channel_info_veid_f(c->t19x.subctx_id)); | 188 | pbdma_set_channel_info_veid_f(c->t19x.subctx_id)); |
195 | 189 | ||
196 | gv11b_fifo_init_ramfc_eng_method_buffer(g, c, mem); | 190 | gv11b_fifo_init_ramfc_eng_method_buffer(g, c, mem); |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_pbdma_gv100.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_pbdma_gv100.h index 66a0737c..4b7eb25c 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_pbdma_gv100.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_pbdma_gv100.h | |||
@@ -628,14 +628,6 @@ static inline u32 pbdma_set_channel_info_r(u32 i) | |||
628 | { | 628 | { |
629 | return 0x000400fcU + i*8192U; | 629 | return 0x000400fcU + i*8192U; |
630 | } | 630 | } |
631 | static inline u32 pbdma_set_channel_info_scg_type_graphics_compute0_f(void) | ||
632 | { | ||
633 | return 0x0U; | ||
634 | } | ||
635 | static inline u32 pbdma_set_channel_info_scg_type_compute1_f(void) | ||
636 | { | ||
637 | return 0x1U; | ||
638 | } | ||
639 | static inline u32 pbdma_set_channel_info_veid_f(u32 v) | 631 | static inline u32 pbdma_set_channel_info_veid_f(u32 v) |
640 | { | 632 | { |
641 | return (v & 0x3fU) << 8U; | 633 | return (v & 0x3fU) << 8U; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_pbdma_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_pbdma_gv11b.h index 9b9017ee..f05bee84 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_pbdma_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_pbdma_gv11b.h | |||
@@ -628,14 +628,6 @@ static inline u32 pbdma_set_channel_info_r(u32 i) | |||
628 | { | 628 | { |
629 | return 0x000400fcU + i*8192U; | 629 | return 0x000400fcU + i*8192U; |
630 | } | 630 | } |
631 | static inline u32 pbdma_set_channel_info_scg_type_graphics_compute0_f(void) | ||
632 | { | ||
633 | return 0x0U; | ||
634 | } | ||
635 | static inline u32 pbdma_set_channel_info_scg_type_compute1_f(void) | ||
636 | { | ||
637 | return 0x1U; | ||
638 | } | ||
639 | static inline u32 pbdma_set_channel_info_veid_f(u32 v) | 631 | static inline u32 pbdma_set_channel_info_veid_f(u32 v) |
640 | { | 632 | { |
641 | return (v & 0x3fU) << 8U; | 633 | return (v & 0x3fU) << 8U; |