diff options
author | Lakshmanan M <lm@nvidia.com> | 2016-05-11 07:22:55 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:15 -0500 |
commit | da21fb5d060d9f92d3da05db4d7b49806710ad2a (patch) | |
tree | b1495e1c4b55bd2634ccabd9f67e8caa60f374c9 /drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h | |
parent | 18a017865946617fd63256858a0d2300160643f4 (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: I3ce65fdeacb012551d15eed85dc61602f7dadbbb
Signed-off-by: Lakshmanan M <lm@nvidia.com>
Reviewed-on: http://git-master/r/1145601
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h index 4781ff85..89037a7c 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_fifo_gp10b.h | |||
@@ -326,6 +326,10 @@ static inline u32 fifo_intr_pbdma_id_status_f(u32 v, u32 i) | |||
326 | { | 326 | { |
327 | return (v & 0x1) << (0 + i*1); | 327 | return (v & 0x1) << (0 + i*1); |
328 | } | 328 | } |
329 | static inline u32 fifo_intr_pbdma_id_status_v(u32 r, u32 i) | ||
330 | { | ||
331 | return (r >> (0 + i*1)) & 0x1; | ||
332 | } | ||
329 | static inline u32 fifo_intr_pbdma_id_status__size_1_v(void) | 333 | static inline u32 fifo_intr_pbdma_id_status__size_1_v(void) |
330 | { | 334 | { |
331 | return 0x00000001; | 335 | return 0x00000001; |