diff options
author | Lakshmanan M <lm@nvidia.com> | 2016-05-11 07:17:08 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-13 13:01:56 -0400 |
commit | 50c6c9cfcd040742f3d242993576c65842006f92 (patch) | |
tree | fa61f863f2bc7b0039005c37bcaa5596b22ffd0d /drivers/gpu/nvgpu/gk20a/hw_fifo_gk20a.h | |
parent | 67535de642c485eae0f9529ae8148c9ea071b9c1 (diff) |
gpu: nvgpu: Add support for multiple PBDMAs
Added support for multiple PBDMAs handling during
fifo_pbdma_isr and gk20a_init_fifo_reset_enable_hw
use case.
JIRA DNVGPU-26
Change-Id: I5f013c5373f7a4b80a8de8863f0e175576ed4c22
Signed-off-by: Lakshmanan M <lm@nvidia.com>
Reviewed-on: http://git-master/r/1145591
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_fifo_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/hw_fifo_gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_fifo_gk20a.h index 07e2b4f8..c5c95cdf 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_fifo_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_fifo_gk20a.h | |||
@@ -362,6 +362,10 @@ static inline u32 fifo_intr_pbdma_id_status_f(u32 v, u32 i) | |||
362 | { | 362 | { |
363 | return (v & 0x1) << (0 + i*1); | 363 | return (v & 0x1) << (0 + i*1); |
364 | } | 364 | } |
365 | static inline u32 fifo_intr_pbdma_id_status_v(u32 r, u32 i) | ||
366 | { | ||
367 | return (r >> (0 + i*1)) & 0x1; | ||
368 | } | ||
365 | static inline u32 fifo_intr_pbdma_id_status__size_1_v(void) | 369 | static inline u32 fifo_intr_pbdma_id_status__size_1_v(void) |
366 | { | 370 | { |
367 | return 0x00000001; | 371 | return 0x00000001; |