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

@@ -453,9 +453,9 @@ static const struct gpu_ops vgpu_gp10b_ops = {
.pbdma_acquire_val = gm20b_pbdma_acquire_val,
.get_pbdma_signature = gp10b_pbdma_get_signature,
.dump_pbdma_status = NULL,
.handle_pbdma_intr_0 = NULL,
.handle_pbdma_intr_1 = gm20b_pbdma_handle_intr_1,
.handle_pbdma_intr = gm20b_pbdma_handle_intr,
.handle_intr_0 = NULL,
.handle_intr_1 = gm20b_pbdma_handle_intr_1,
.handle_intr = gm20b_pbdma_handle_intr,
.read_pbdma_data = NULL,
.reset_pbdma_header = NULL,
.device_fatal_0_intr_descs = NULL,

View File

@@ -532,9 +532,9 @@ static const struct gpu_ops vgpu_gv11b_ops = {
.pbdma_acquire_val = gm20b_pbdma_acquire_val,
.get_pbdma_signature = gp10b_pbdma_get_signature,
.dump_pbdma_status = NULL,
.handle_pbdma_intr_0 = NULL,
.handle_pbdma_intr_1 = gv11b_pbdma_handle_intr_1,
.handle_pbdma_intr = gm20b_pbdma_handle_intr,
.handle_intr_0 = NULL,
.handle_intr_1 = gv11b_pbdma_handle_intr_1,
.handle_intr = gm20b_pbdma_handle_intr,
.read_pbdma_data = NULL,
.reset_pbdma_header = NULL,
.device_fatal_0_intr_descs = NULL,