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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 973C0C433EF for ; Thu, 17 Feb 2022 13:13:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 20C2283B87; Thu, 17 Feb 2022 14:13:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="EoFD1kgk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E791F83BA6; Thu, 17 Feb 2022 14:13:41 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4D5B383A9F for ; Thu, 17 Feb 2022 14:13:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0811D61B56; Thu, 17 Feb 2022 13:13:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD725C340E9; Thu, 17 Feb 2022 13:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645103616; bh=BcRTGqOVJkWx67M0SdlWgaPypJiLffa4XrRIs1+v9JQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EoFD1kgkvSItYqLqTBbVS++VK0eb14AzdgipjmDLn/W/8kYOVNLiCuclNmx+Snj6d m1ERvQiFtJV2/rHGHV/+Gf9FjPB905MhzO4AG9EE/Cy7ghF69AGr5rq4O6CdWyY3dM yLfPVURhwMA+aVrJ2OdSOfl0qgckrCuTT03YExoaiRU6HEJ2v4VTOCLNVnXSbFgQoz jrl8Wl2gsxdnxgiGFgDZaXTLiEDNGUMC7UUIgFNRfy1MStMVsMJ7mFeaonH6hKXWz3 rATh+eCmsk0PbHMbzyBldcqXCXn0Mg3NQcRPYLVckNlbr80HAUQ5GCuagl7TMLVaLG kV3m1BsDzYNTQ== Received: by pali.im (Postfix) id 80CE11187; Thu, 17 Feb 2022 14:13:34 +0100 (CET) Date: Thu, 17 Feb 2022 14:13:34 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Marek =?utf-8?B?QmVow7pu?= Cc: Chris Packham , Stefan Roese , "u-boot@lists.denx.de" , Marek =?utf-8?B?QmVow7pu?= Subject: Re: [PATCH u-boot-marvell v2 2/2] arm: mvebu: turris_omnia: Reset the board immediately on DDR training failure Message-ID: <20220217131334.viuslfqcmbfkqfw3@pali> References: <20220217125443.4544-1-kabel@kernel.org> <20220217125443.4544-2-kabel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220217125443.4544-2-kabel@kernel.org> User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On Thursday 17 February 2022 13:54:43 Marek Behún wrote: > From: Marek Behún > > The state of the current DDR training code for Armada 38x is such that > we cannot be sure it will always train successfully - although after the > last change we were yet unable to find a board that failed DDR training, > from experience in the last 2 years we know that it is possible. > > The experience also tells us that in many cases the board fails training > only sometimes, and after a reset the training is successful. > > Enable the new option that makes the board reset itself on DDR training > failure immediately. Until now we called hang() in such a case, which > meant that the board was reset by the MCU after 120 seconds. > > Signed-off-by: Marek Behún Reviewed-by: Pali Rohár > --- > configs/turris_omnia_defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig > index d6f70caeaf..010d69adcc 100644 > --- a/configs/turris_omnia_defconfig > +++ b/configs/turris_omnia_defconfig > @@ -11,6 +11,7 @@ CONFIG_NR_DRAM_BANKS=2 > CONFIG_SYS_MEMTEST_START=0x00800000 > CONFIG_SYS_MEMTEST_END=0x00ffffff > CONFIG_TARGET_TURRIS_OMNIA=y > +CONFIG_DDR_RESET_ON_TRAINING_FAILURE=y > CONFIG_ENV_SIZE=0x10000 > CONFIG_ENV_OFFSET=0xF0000 > CONFIG_ENV_SECT_SIZE=0x10000 > -- > 2.34.1 >