Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D0274C25B08 for ; Wed, 17 Aug 2022 05:30:03 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4M6xRZ0Yfgz3bxp for ; Wed, 17 Aug 2022 15:30:02 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aj.id.au header.i=@aj.id.au header.a=rsa-sha256 header.s=fm3 header.b=bryoZ3AF; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=CBWC3LLl; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=aj.id.au (client-ip=66.111.4.28; helo=out4-smtp.messagingengine.com; envelope-from=andrew@aj.id.au; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aj.id.au header.i=@aj.id.au header.a=rsa-sha256 header.s=fm3 header.b=bryoZ3AF; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm1 header.b=CBWC3LLl; dkim-atps=neutral Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4M6xQp3YZ4z2xKf for ; Wed, 17 Aug 2022 15:29:22 +1000 (AEST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 74D025C012A; Wed, 17 Aug 2022 01:29:20 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute3.internal (MEProxy); Wed, 17 Aug 2022 01:29:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=cc :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1660714160; x=1660800560; bh=6LFMoRDRBQ jKbL4qtQQjNEig4MDhymXRDAyDjed+Xyg=; b=bryoZ3AFVSh7rrJDnjtMPg2EXI Llm8yzFap72YqR+jUfQfz+XE0oVSRpEsV+zPOOpp9/Ap2GOIlU1AJsqzK5L4GOoW 2TDaIi87ZDRXRODKVtelKQ98rVaKzKEvke0DONMXxKbR7lbRGYjyFU/erKU0nZ1h tAzXeiTwdLnOleTvIjxp/QrqINVUKVv/ssZVQqy7CwAD61SIPMF8KPgfxd9C3LzU GV0P/QKDZPalEwIYWmbB63u8KXslgDX0gcUw2efwVoPBDLTkQbFD92k1FX/gYO+p aOsGwf7iv4ABTNMiNoIdD2jtrdx87YkfEga9sRGs23sFelRPjPJ41yFBrqog== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1660714160; x=1660800560; bh=6LFMoRDRBQjKbL4qtQQjNEig4MDh ymXRDAyDjed+Xyg=; b=CBWC3LLlZBDQqS6MgHl5AnrzcATl+Gi3/sLpSKmyWFuT tjzxIxan1rDznNadvrAc4McFLiBfKZYqnYamcTQiv15gsahoc3Ryj3OLKH7Jmwik ZFznY6VMjVw6JwDCVDJ00nBTW6euqdokeTTX/ACXW+xWMQjv6Lj5iEdcjauszLBz AkXqunpVX6ZOcOOEmZgTTmY8Tqplo3ntxDZpnj6Ut9Ou/SexusIO65c7W+V1L451 XiPZpEppmHE2jSv9cQGBx3TZjq3ddmjVVKmhYgGA+oDpNcEBw0XaLOGhZUVC7u68 RHzUHvbJFBPXJQqQwxPydVI8coHQmHYnmjCWIvAGbw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehhedgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdetnhgu rhgvficulfgvfhhfvghrhidfuceorghnughrvgifsegrjhdrihgurdgruheqnecuggftrf grthhtvghrnhephefhfeekgfekudevheffheeihedujeefjeevjeefudfgfeeutdeuvdeh hfevueffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvgifsegrjhdrihgurdgruh X-ME-Proxy: Feedback-ID: idfb84289:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id AD13F1700082; Wed, 17 Aug 2022 01:29:19 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-841-g7899e99a45-fm-20220811.002-g7899e99a Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20220817015949.16946-1-joel@jms.id.au> <20220817015949.16946-2-joel@jms.id.au> Date: Wed, 17 Aug 2022 14:58:59 +0930 From: "Andrew Jeffery" To: "Dhananjay Phadke" , "Joel Stanley" , "Dylan Hung" , openbmc@lists.ozlabs.org Subject: Re: [PATCH u-boot v2019.04-aspeed-openbmc 1/2] aspeed/sdram: Use device tree to configure ECC Content-Type: text/plain X-BeenThere: openbmc@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development list for OpenBMC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openbmc-bounces+openbmc=archiver.kernel.org@lists.ozlabs.org Sender: "openbmc" On Wed, 17 Aug 2022, at 12:34, Dhananjay Phadke wrote: > On 8/16/2022 6:59 PM, Joel Stanley wrote: >> Instead of configuring ECC based on the build config, use a device tree >> property to selectively enable ECC at runtime. >> >> There are two properties: >> >> aspeed,ecc-enabled; >> aspeed,ecc-size = "512"; >> >> The enabled property is a boolean that enables ECC if it is present. >> >> The size is the number of MB that should be covered by ECC. Setting it >> to zero, or omitting it, defaults the ECC size to "auto detect". > > What's the use case for enabling ECC only on part of the DRAM or not > using max possible DRAM space? > I have some hand-wavy concerns about the impact of ECC on the configuration of the AHB bridges, but that needs to be investigated with some experiments. As Joel said, some feedback from Aspeed on the use-cases would be handy. Andrew