gpu: nvgpu: report only unhandled methods

Some methods are implemented in SW, and it is expected that
nvgpu driver gets illegal method interrupts for these.
Do not report illegal method error if related method could
be handled. It avoids reporting false errors to 3LSS and
more importantly avoids entering SW quiesce state.

Jira NVGPU-3896

Change-Id: I1e6ddcf20e4038398259d22957619fe7bc2e9c7d
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2199906
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Thomas Fleury
2019-09-17 13:35:31 -04:00
committed by Alex Waterman
parent 5a6730de39
commit d1e6ac0c3e

View File

@@ -817,10 +817,11 @@ static u32 gr_intr_handle_illegal_interrupts(struct gk20a *g,
}
if (intr_info->illegal_method != 0U) {
nvgpu_gr_intr_report_exception(g, 0U,
if (gr_intr_handle_illegal_method(g, isr_data) != 0) {
nvgpu_gr_intr_report_exception(g, 0U,
GPU_PGRAPH_ILLEGAL_ERROR, gr_intr,
GPU_PGRAPH_ILLEGAL_METHOD);
if (gr_intr_handle_illegal_method(g, isr_data) != 0) {
do_reset = 1U;
}
*clear_intr &= ~intr_info->illegal_method;