gpu: nvgpu: modify handle_pbdma_intr* functions

RC_TYPE_PBDMA_FAULT is the only recovery type for all the pbdma intr
functions. Thus, rc_type variable is changed to a boolean type
in all implementations of handle_pbdma_intr* functions.

"handled" variable is unused and removed from all the implementations of
handle_pbdma_intr* functions.

handle_pbdma_intr* HAL ops are renamed to handle_intr*.

Jira NVGPU-2950

Change-Id: I9605d930225a38ed76f25b6a94cb02d855f522dd
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2083748
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Debarshi Dutta
2019-03-28 14:05:30 +05:30
committed by mobile promotions
parent 0f1726ae1f
commit b1ceb5c4d2
14 changed files with 93 additions and 103 deletions

View File

@@ -211,15 +211,15 @@ u32 gk20a_fifo_pbdma_isr(struct gk20a *g)
u32 num_pbdma = nvgpu_get_litter_value(g, GPU_LIT_HOST_NUM_PBDMA);
u32 pbdma_pending_bitmask = nvgpu_readl(g, fifo_intr_pbdma_id_r());
u32 error_notifier;
unsigned int rc_type;
bool recover;
for (pbdma_id = 0; pbdma_id < num_pbdma; pbdma_id++) {
if (fifo_intr_pbdma_id_status_v(pbdma_pending_bitmask, pbdma_id) != 0U) {
nvgpu_log(g, gpu_dbg_intr, "pbdma id %d intr pending",
pbdma_id);
rc_type = g->ops.pbdma.handle_pbdma_intr(g, pbdma_id,
recover = g->ops.pbdma.handle_intr(g, pbdma_id,
&error_notifier);
if (rc_type == RC_TYPE_PBDMA_FAULT) {
if (recover) {
gk20a_fifo_pbdma_fault_rc(g, f, pbdma_id,
error_notifier);
}