summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorThomas Steinle <tsteinle@nvidia.com>2021-09-07 05:54:29 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2021-09-17 17:09:55 -0400
commitdb1393886badf352bdea5642f9e1809dd1428748 (patch)
tree62783d94392cf0b921a19a8d917d9392d1622e30 /drivers
parent5fb06d03ca25a207b9378a7155c0ac3e91b378ee (diff)
drivers: nvgpu: Print chid instead of ch->chid
During VM guest reset GPU interrupts were triggered after the corresponding channel has been disabled. This leads to a NULL-Ptr access in fecs error handling. This change removes the access to invalid ch->chid. Bug 3362082 Change-Id: I2d51a62ec47a07ae7ea90394fec76d3c3a8d186c Signed-off-by: Thomas Steinle <tsteinle@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2590478 (cherry picked from commit b1b04915bfad7060479624d5ec85894c6bac3ba6) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2596201 Reviewed-by: Phoenix Jung <pjung@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index abb53e66..5d1545c2 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -5321,7 +5321,7 @@ int gk20a_gr_handle_fecs_error(struct gk20a *g, struct channel_gk20a *ch,
5321 } else { 5321 } else {
5322 nvgpu_err(g, 5322 nvgpu_err(g,
5323 "unhandled fecs error interrupt 0x%08x for channel %u", 5323 "unhandled fecs error interrupt 0x%08x for channel %u",
5324 gr_fecs_intr, ch->chid); 5324 gr_fecs_intr, chid);
5325 gk20a_fecs_dump_falcon_stats(g); 5325 gk20a_fecs_dump_falcon_stats(g);
5326 } 5326 }
5327 5327