diff options
author | Lakshmanan M <lm@nvidia.com> | 2016-05-11 07:25:23 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-13 12:39:23 -0400 |
commit | 6863c08cc6c2ea1badfe23a536f6bf08d5d5431a (patch) | |
tree | 9ada9785fb84140c26e769f64fc8b019ca029893 /drivers | |
parent | d089e402355f3533b18a50a4e9fe7423593762af (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: I2e70c6f9a724899aaef179ae015149d7127f227b
Signed-off-by: Lakshmanan M <lm@nvidia.com>
Reviewed-on: http://git-master/r/1145603
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')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/hw_fifo_gv11b.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/hw_fifo_gv11b.h b/drivers/gpu/nvgpu/gv11b/hw_fifo_gv11b.h index 500d2434..55960a4d 100644 --- a/drivers/gpu/nvgpu/gv11b/hw_fifo_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/hw_fifo_gv11b.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 0x0000000e; | 335 | return 0x0000000e; |