Files
linux-nvgpu/drivers/gpu/nvgpu/include/nvgpu
Debarshi Dutta 0ef96e4b1a gpu: nvgpu: correct handling of pbdma rc
nvgpu_rc_pbdma_fault just checks for the id and id_type from struct
nvgpu_pbdma_status_info. These contain invalid values during chsw_load
and chsw_switch. This patch corrects the above bug by checking for the
chsw status and then loading the values for id and type.

The current code reads the pbdma_status info after clearing the
interrupt. Other interrupts can cause enough delay between clearing the
interrupt and pbdma switching the channel leading to invalid channel/tsg
ID. Correct that by reading the pbdma_status info register before
clearing of the pbdma interrupt to correctly read the context
information before the pbdma can switch out the context.

Bug 2648298

Change-Id: Ic2f0682526e00d14ad58f0411472f34388183f2b
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2165047
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2019-08-05 02:56:16 -07:00
..
2019-06-12 00:45:43 -07:00
2019-08-01 04:37:31 -07:00
2019-04-13 09:13:48 -07:00
2018-06-14 21:40:57 -07:00
2019-07-11 08:56:04 -07:00
2019-05-02 08:56:11 -07:00
2019-06-21 11:16:07 -07:00
2019-06-07 17:05:23 -07:00
2018-09-13 19:18:24 -07:00
2019-08-05 02:56:16 -07:00
2018-08-14 15:33:20 -07:00
2019-07-11 08:56:04 -07:00
2018-10-12 17:35:07 +05:30
2018-11-09 13:27:04 -08:00