mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
init_pbdma_intr_descs HAL ops is used to update the internal values of the struct intr within struct fifo_gk20a. Three kinds of intr_descriptors are filled i.e. device_fatal_0, channel_fatal_0 and restartable_0. Breaking them into separate HALs has the advantage of reusing the h/w headers corresponding to the device_fatal_0 as they are same across all the architectures while those of channel_fatal_0 varies. Another advantage is to now decouple pbdma from filling in values within the fifo_gk20a struct. A new method gk20a_fifo_init_pbdma_descs is constructed that initializes the above intr struct by calling the separate HAL ops for these. Jira NVGPU-2950 Change-Id: I78ddc61a5d9b2088d34259af90f8b85817bf19d9 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2072741 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>