mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: update on gr.ecc subunit code
Change a check from CONFIG_NVGPU_NON_FUSA to CONFIG_NVGPU_DGPU as the gpccount is more than 1 for DGPU and this code need to be executed for DGPU. Jira NVGPU-4460 Change-Id: I806c926cd787c787ac8a04f998602edcae5419b8 Signed-off-by: vinodg <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2257036 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
@@ -91,7 +91,7 @@ int nvgpu_ecc_counter_init_per_tpc(struct gk20a *g,
|
|||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
#ifdef CONFIG_NVGPU_NON_FUSA
|
#ifdef CONFIG_NVGPU_DGPU
|
||||||
while (gpc-- != 0u) {
|
while (gpc-- != 0u) {
|
||||||
nvgpu_kfree(g, stats[gpc]);
|
nvgpu_kfree(g, stats[gpc]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user