Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp965297pxp; Wed, 16 Mar 2022 22:52:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoaCqqcB02MAmnujY7cPewXHVZmxqvclpkfLGpBluvVM5D47uPyIveec2a9Q0RcpT4dqyN X-Received: by 2002:a63:ec4f:0:b0:378:d43b:2272 with SMTP id r15-20020a63ec4f000000b00378d43b2272mr2382576pgj.29.1647496320020; Wed, 16 Mar 2022 22:52:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647496320; cv=none; d=google.com; s=arc-20160816; b=zik0RmIPF48CwGVDb3jx5ix3B+TU/TKjvA2/PT1N2wjGa8YuQJiatptyXDv33q3RbK AuTnBA3yAVnGM0U/q+1Y1XpRniZD/EVABx8zurYh+mDWopdirmWdLW4r68AFx6fxJpqp K4Ap7fHw+TH4CQR7b/xYdZvOF76EKwLytzmbhRmT2o0dTjlcIfSr3czxPDdKVuusafvB O+EmP6ZTlNjpA1CRD7P+OIKH1V1iPFPX4Xbth3E0TFJMhK8CLC64RUCQJCEEnjLkp6qW CwR9ED0wrsNwEP/WXTU+1YFiEu2oUVAeCwF/zXxbNUdthurFIJeZaXk+cB1Ql8kN133W tK2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VUu4K7ChRXMrGrQNt35Wg5IFslzzJNsQ6i3cXSvywX0=; b=WSP6lOXJmtOMuz3YcKfYgmzKHOpsOxXroDGzqbeD4O3usbOFB+EvC1XJp3S0HVGBbe vKBhSbZuPVpwbhHc6j9boBFISCeqBddMRfCpzCQCI7QfI0s+h0gGFNDbdMXQSvvHzhMj XyyN46OoT1Kq/sxGit1IBESZw6jp2Xa85lCy3UEmRGL0kqHY3WJmpHW1O2LzZL6jKp9E RH86gIAlfBW5gmXPQa7RvtwZL1uk9Te6yQ14WyxRfafMD2M2EToaitVms6CwHkLYd7CR TjRyuhmusBHZT1o/I8i1FIkuY3dBXIOPLAwFFfHrbMb6sPwATFnSBsCIq54/dDEtf2Cl I8HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=cTP4t0cm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k5-20020a633d05000000b003816043ee98si1096847pga.141.2022.03.16.22.51.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:52:00 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=cTP4t0cm; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 57641160688; Wed, 16 Mar 2022 21:47:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355088AbiCPKAx (ORCPT + 99 others); Wed, 16 Mar 2022 06:00:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350398AbiCPKAw (ORCPT ); Wed, 16 Mar 2022 06:00:52 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24D3B64BEA; Wed, 16 Mar 2022 02:59:39 -0700 (PDT) Received: from zn.tnic (p2e55dff8.dip0.t-ipconnect.de [46.85.223.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id BD53B1EC0559; Wed, 16 Mar 2022 10:59:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1647424773; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=VUu4K7ChRXMrGrQNt35Wg5IFslzzJNsQ6i3cXSvywX0=; b=cTP4t0cmk01+BLf6UFg+bpwxcO66DyZMVbQyk5uCYG+L3u6I7B2553sBMA/GzxEmD97VvS CsUlGiw9HbEF/ZNKEnGPPMyod2cXod+pHS/mwhH/1ups1kVKeOWeZFIIwzFnM0MRVyzA+G NUC/jmIJtg6fSUnGDMi+FkFNT62Ayts= Date: Wed, 16 Mar 2022 10:59:29 +0100 From: Borislav Petkov To: niravkumar.l.rabara@intel.com Cc: dinguyen@kernel.org, mchehab@kernel.org, tony.luck@intel.com, james.morse@arm.com, rric@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] EDAC: altera: Add SDRAM ECC check for U-Boot Message-ID: References: <20220305014118.4794-1-niravkumar.l.rabara@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220305014118.4794-1-niravkumar.l.rabara@intel.com> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 05, 2022 at 09:41:18AM +0800, niravkumar.l.rabara@intel.com wrote: > From: Rabara Niravkumar L > > A bug in legacy U-Boot causes a crash during SDRAM boot if ECC > is not enabled in the bitstream but enabled in the Linux config. > > Memory mapped read of the ECC Enabled bit was only enabled > if U-Boot determined ECC was enabled in the bitstream. > > The Linux driver checks the ECC enable bit using a memory map > read. In the ECC disabled bitstream case, U-Boot didn't > enable ECC register memory map reads and since they are not > allowed this results in a crash. > > This patch always reads the ECC Enable register through a Avoid having "This patch" or "This commit" in the commit message. It is tautologically useless. Also, do $ git grep 'This patch' Documentation/process for more details. I've removed it now but pls pay attention for the future. > SMC call which is always allowed and it works with legacy > and current U-Boot. > > Signed-off-by: Rabara Niravkumar L > --- > drivers/edac/altera_edac.c | 40 +++++++++++++++++++++++++++++++++++++- > 1 file changed, 39 insertions(+), 1 deletion(-) Applied, thanks. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette