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 X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53E2AC04FF3 for ; Mon, 24 May 2021 19:51:10 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 3472461004 for ; Mon, 24 May 2021 19:51:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3472461004 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C191F82EA1; Mon, 24 May 2021 21:51:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 96CD682D18; Mon, 24 May 2021 16:43:49 +0200 (CEST) Received: from n7.nabble.com (n7.nabble.com [162.253.133.57]) by phobos.denx.de (Postfix) with ESMTP id 9651082B00 for ; Mon, 24 May 2021 16:43:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=aregaard@protonmail.com Received: from n7.nabble.com (localhost [127.0.0.1]) by n7.nabble.com (Postfix) with ESMTP id 182531FB5C93D for ; Mon, 24 May 2021 07:43:45 -0700 (MST) Date: Mon, 24 May 2021 07:43:45 -0700 (MST) From: aregaard To: u-boot@lists.denx.de Message-ID: <1621867425096-0.post@n7.nabble.com> Subject: sdhci_data_transfer: Trasnfer data timeout MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 24 May 2021 21:51:04 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.4 at phobos.denx.de X-Virus-Status: Clean Hi, I have made a custom board based on ARM A53. I use a NOR-flash, eMMC and DDR3. I can start the Uboot from NOR and communicate with the eMMC. But for some reason it is timing out the first time I connect to the eMMC. *(CLK =25MHz)* => run mmc_format eMMC: INT_STATUS = 00018000 eMMC: INT_STATUS = 00018001 sdhci_transfer_data: Transfer data timeout sdhci_transfer_data: Transfer data timeout After this part it can communicate: *(CLK = 50MHz)* success! Writing GPT: success! Saving Environment to SPI Flash... SF: Detected n25q128a13 with page size 256 Bytes, erase size 4 KiB, total 16 MiB Erasing SPI flash...Writing to SPI flash...done Valid environment: 1 OK This Timeout might cause problems with the DDR3 (I am having problems with the Kernel not booting corretly). I think there is an issue with the communication with the eMMC and DDR, due to the timeout. What can generate the timing-out-issue? To make it clear; I can communicate with the eMMC. The first time it is really slow and is timing out with 25 MHz FLASH-clk. The second time it goes directly into sync: => run mmc_format success! Writing GPT: success! Saving Environment to SPI Flash... Erasing SPI flash...Writing to SPI flash...done Valid environment: 2 OK I sounds like a HW-issue, but what can cause this in the code? If I reset the system it is timing out again the first time. Kind Regards -- Sent from: http://u-boot.10912.n7.nabble.com/