diff options
Diffstat (limited to 'include/gk20a/gk20a.c')
| -rw-r--r-- | include/gk20a/gk20a.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/gk20a/gk20a.c b/include/gk20a/gk20a.c index c3068b7..1a11716 100644 --- a/include/gk20a/gk20a.c +++ b/include/gk20a/gk20a.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * GK20A Graphics | 2 | * GK20A Graphics |
| 3 | * | 3 | * |
| 4 | * Copyright (c) 2011-2020, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2011-2021, NVIDIA CORPORATION. All rights reserved. |
| 5 | * | 5 | * |
| 6 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
| 7 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), |
| @@ -39,6 +39,7 @@ | |||
| 39 | #include <nvgpu/therm.h> | 39 | #include <nvgpu/therm.h> |
| 40 | #include <nvgpu/mc.h> | 40 | #include <nvgpu/mc.h> |
| 41 | #include <nvgpu/channel_sync.h> | 41 | #include <nvgpu/channel_sync.h> |
| 42 | #include <nvgpu/nvgpu_err.h> | ||
| 42 | 43 | ||
| 43 | #include <trace/events/gk20a.h> | 44 | #include <trace/events/gk20a.h> |
| 44 | 45 | ||
| @@ -525,6 +526,10 @@ static void gk20a_free_cb(struct nvgpu_ref *refcount) | |||
| 525 | struct gk20a *g = container_of(refcount, | 526 | struct gk20a *g = container_of(refcount, |
| 526 | struct gk20a, refcount); | 527 | struct gk20a, refcount); |
| 527 | 528 | ||
| 529 | #ifdef CONFIG_NVGPU_SUPPORT_LINUX_ECC_ERROR_REPORTING | ||
| 530 | nvgpu_deinit_ecc_reporting(g); | ||
| 531 | #endif | ||
| 532 | |||
| 528 | nvgpu_log(g, gpu_dbg_shutdown, "Freeing GK20A struct!"); | 533 | nvgpu_log(g, gpu_dbg_shutdown, "Freeing GK20A struct!"); |
| 529 | 534 | ||
| 530 | gk20a_ce_destroy(g); | 535 | gk20a_ce_destroy(g); |
