From mboxrd@z Thu Jan 1 00:00:00 1970 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 CE6CAC433F5 for ; Thu, 17 Feb 2022 00:09:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6D44583A78; Thu, 17 Feb 2022 01:09:25 +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="MZVTklES"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B4D3D83A99; Thu, 17 Feb 2022 01:09:14 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (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 7CF8983A81 for ; Thu, 17 Feb 2022 01:08:56 +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=kabel@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 660946121B; Thu, 17 Feb 2022 00:08:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA2A1C340EF; Thu, 17 Feb 2022 00:08:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645056534; bh=tmj2LekiPxgI30ftBJHDIgUAF7QguJn3pf/YXHk0jYc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MZVTklESxu9AYhXi5rFTngUytcQOBcP57ErBsczxVhDfTOerNW+aJvyGiMDjMGkZN JPV1LPqjbQ4Jaaa6oWQMugws4e9Lx7cD0/PtkzGDLbEbN1q2JO+82f22jlFlCFn8oE dpF926PXNrZX4uzlG4uaSS4gfPt9MMmyNH49P2CUCjQ2s7uHQEaiTc900uYsnfAIMK ztWyFuw2LGUVbKMgGqs976FwZ7b8GZKtCQzWDY4DBcgzPrQSITGAdVe4J33yTg3w2f eEaRrD4H/atU8MKLIWVi2vaLb03Rey8BSPiUSdJlMJFJJAogU8wlx01LScG7GP94em exNN+nK3Ssuvw== From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: Chris Packham , Stefan Roese Cc: "u-boot@lists.denx.de" , =?UTF-8?q?Marek=20Beh=C3=BAn?= Subject: [PATCH u-boot-marvell 2/2] arm: mvebu: turris_omnia: Reset the board immediately on DDR training failure Date: Thu, 17 Feb 2022 01:08:49 +0100 Message-Id: <20220217000849.13028-2-kabel@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220217000849.13028-1-kabel@kernel.org> References: <20220217000849.13028-1-kabel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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 --- 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