From e0c17cac98b0f3f96ec6b63aff18607c1ee9cb6f Mon Sep 17 00:00:00 2001 From: Sagar Kamble Date: Wed, 9 Mar 2022 22:53:02 +0530 Subject: [PATCH] gpu: nvgpu: update OPT_ECC_EN fuse disabled error log This fuse is enabled only on safety systems. Bug 3536502 Change-Id: I9884c3df1d08cef7fca58885388803259780d62c Signed-off-by: Sagar Kamble Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2679034 (cherry picked from commit d6fc248fec570c0298a25ecdcaa1ddcda19afb51) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2685475 Reviewed-by: Amulya Yarlagadda GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/hal/fuse/fuse_ga10b.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/hal/fuse/fuse_ga10b.c b/drivers/gpu/nvgpu/hal/fuse/fuse_ga10b.c index 7642fc387..73f0309c8 100644 --- a/drivers/gpu/nvgpu/hal/fuse/fuse_ga10b.c +++ b/drivers/gpu/nvgpu/hal/fuse/fuse_ga10b.c @@ -1,7 +1,7 @@ /* * GA10B FUSE * - * Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -73,7 +73,11 @@ bool ga10b_fuse_is_opt_ecc_enable(struct gk20a *g) bool ecc_enable = nvgpu_readl(g, fuse_opt_ecc_en_r()) != 0U; if (nvgpu_platform_is_silicon(g) && !ecc_enable) { +#ifdef CONFIG_NVGPU_NON_FUSA + nvgpu_log_info(g, "OPT_ECC_EN fuse not set"); +#else nvgpu_err(g, "OPT_ECC_EN fuse not set"); +#endif } return ecc_enable;