Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp82103rdh; Sat, 23 Sep 2023 02:21:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1KzYnWfikfMTiiXhdY5omtEMwXqjgeW/fAVm9V7tr/ZmPAojUQHIO/0cW1VD6/P6jW1ef X-Received: by 2002:a05:6e02:1946:b0:34b:ac73:eb97 with SMTP id x6-20020a056e02194600b0034bac73eb97mr2575708ilu.14.1695460887559; Sat, 23 Sep 2023 02:21:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695460887; cv=pass; d=google.com; s=arc-20160816; b=Ux4XvsggUR6Yl4wkXkK6uX+ARkfb8p6Rtj3luzQPiJG5Bs/l6n2qu99+3iYtbQzUId d1qiRQr3N4/HPIX3W5kyNWc8Go2CEJxohQLbuBWvdzjlKoHp9ggkU0WL5VPRhEn9MuzT Np7MGhzyuR72LymS1GhoRDUcNUDTLm0eJUhQgv9C4+nU2uCRhqgGnvaMJFnOqx91kqK2 yLrAg7hV0G9+Ah1peWSv+0X4QdVo8dK3E6eAbCYDS/tUYs6/Vrg+IS2GHRGHcDPwq5sG sZgM5T5ZMSCVeEoSfwzmHbnhgaCYqAOsMLxaWpuaNx4+9iMKMiUsgRqY/ZIE7f4qWC02 cVCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:organization:references:in-reply-to:date :cc:to:from:subject:message-id:dkim-signature; bh=JdL16BofRxhbL+GeSwRejWgJZOcxAvs0UhcFJGqQXNo=; fh=i+neZrUCLjRY4h4dQ2RSGnl8IbMG42dGdhrskJON6Zc=; b=kFcb9df9e7tJppLyAzlJ1UDcQN3xvwPATFQrXkHtq0x2oOZx8BEobDJc8uX6ObulkC 6klFv+J2ftUK3xJ57+R4+d6Fll8uFUf4fGbDfeTXw8BunzrUwb2Vynw3tKYRV1/DuqW0 BzJ9vVvIbnyD8+LO57nBdLAPX3e0hIlz7zt12LsbBLCHma7Tr1kGwzMwKVf8xxiut4QK ANNWvwVwX9TA1pje3pdIgJDMHHhFwQJeIgM9vgSENo7iYxXx0jLU47TbdQ3/xymxBPp8 q80nZjbVDUhnruaJFFhRj9ntcUUpalA54HiabB14iU/Aoz+00juCYf8LP2Uej4l1wrhc oXLg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail2 header.b=FESkBIPB; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=icenowy.me Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bk13-20020a056a02028d00b00563e25c07c0si2273933pgb.270.2023.09.23.02.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 02:21:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail2 header.b=FESkBIPB; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=icenowy.me Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0F4D4839D9D6; Fri, 22 Sep 2023 17:12:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230424AbjIWAMi (ORCPT + 99 others); Fri, 22 Sep 2023 20:12:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229628AbjIWAMh (ORCPT ); Fri, 22 Sep 2023 20:12:37 -0400 Received: from sender3-op-o17.zoho.com (sender3-op-o17.zoho.com [136.143.184.17]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 761141A8 for ; Fri, 22 Sep 2023 17:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695427892; cv=none; d=zohomail.com; s=zohoarc; b=UcdZxtPJfhkeou047fGiepo/2N0CjThLq8vDmbyuPWsdsE6kBjmTYYPJWun41xQvYQfHIZSc/1iuWiPJ13tbNUYM7o9caI17DQzpWMLP3B6/sUSw7wDHSSx2FqKkXaTarxIttxtbSxKmfDfRVLZXj5oXc3jlcRot4nzbqLOh9ok= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1695427892; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=JdL16BofRxhbL+GeSwRejWgJZOcxAvs0UhcFJGqQXNo=; b=hQYr8uDHxlbxpLSmrEsJDwJMsSh1iUeTewyeiVnNScddbeM0787Un2ODokq7vP7aOFyYHRRCKkpI8mToocxHOQ6SVLZ/EC7gzOQhbm8sa0ojcqwipp4gXFSpsVGBWz0O3U4xE2gx6TRGvDS+D0+dHdkmYoqGNicqiElZd6JGIvc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1695427892; s=zmail2; d=icenowy.me; i=uwu@icenowy.me; h=Message-ID:Subject:Subject:From:From:To:To:Cc:Cc:Date:Date:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:MIME-Version:Message-Id:Reply-To; bh=JdL16BofRxhbL+GeSwRejWgJZOcxAvs0UhcFJGqQXNo=; b=FESkBIPBxc8X3/wjHdWYuR24KYAsFJ4mTjp/A5A7PpLEu+otXE1AnILIa8Wcieow 6iMnK1vknGuFZ1KHaE5yDsRcsPGTrt2EN33aoU3Zb6aUFcc0WtDWaG0Rutpb26zRN9+ R3qErXlY/rngtf6Du0VhG+N22FYMMX4VFx1Id5tpAvcGbgP8m6TayTnjpDfIpBF61K0 FhV4tkuTpMgUpbRQRcQcZJmp/D8x4utWaupc9U2/Rrvusr26xucOjMHIJNzKmbaLySH kbQkvU2K9AEognK9zjeWZZyKQ9IbsGwuzh1+n6wBtSvPOUPfmrFOFmtU5E8yHM1HHj8 JwE0cUScNQ== Received: from edelgard.fodlan.icenowy.me (120.85.96.110 [120.85.96.110]) by mx.zohomail.com with SMTPS id 1695427889763166.9901112942979; Fri, 22 Sep 2023 17:11:29 -0700 (PDT) Message-ID: Subject: Re: [PATCH 0/6] RISC-V: Add eMMC support for TH1520 boards From: Icenowy Zheng To: Xi Ruoyao , Drew Fustini , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Adrian Hunter , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley Cc: Robert Nelson , Jason Kridner , Han Gao , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Date: Sat, 23 Sep 2023 08:11:22 +0800 In-Reply-To: References: <20230921-th1520-mmc-v1-0-49f76c274fb3@baylibre.com> Organization: Anthon Open-Source Community Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 MIME-Version: 1.0 X-ZohoMailClient: External X-Spam-Status: No, score=4.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 22 Sep 2023 17:12:45 -0700 (PDT) X-Spam-Level: **** =E5=9C=A8 2023-09-22=E6=98=9F=E6=9C=9F=E4=BA=94=E7=9A=84 19:41 +0800=EF=BC= =8CXi Ruoyao=E5=86=99=E9=81=93=EF=BC=9A > On Thu, 2023-09-21 at 18:49 -0700, Drew Fustini wrote: > > This series adds support for the eMMC on the BeagleV Ahead and the > > Sipeed LicheePi 4A. This allows the kernel to boot with the rootfs > > on > > eMMC. > >=20 > > I tested on top of v6.6-rc2 with this config [1]. I was able to > > boot > > both the Ahead [2] and LPi4a [3] from eMMC. The following > > prerequisites > > are required: > >=20 > > =C2=A0 [PATCH v2] riscv: dts: thead: set dma-noncoherent to soc bus [4] > >=20 > > I pushed a branch [5] with this patch series and the above patch > > for > > those that find a git branch easier to test. > >=20 > > Please note that only the MMC controller connected to the eMMC > > device > > is enabled in the device trees for these two boards. I did not yet > > attempt to configure and use the microSD card slot. My preference > > is to > > address that in a future patch series. > >=20 > > References: > > [1] https://gist.github.com/pdp7/5fbdcf2a65eb1abdd3a29d519c19cdd2 > > [2] https://gist.github.com/pdp7/91a801a5f8d1070c53509eda9800ad78 > > [3] https://gist.github.com/pdp7/1445c3c991e88fd69c60165cef65726a > > [4] > > https://lore.kernel.org/linux-riscv/20230912072232.2455-1-jszhang@kerne= l.org/ > > [5] https://github.com/pdp7/linux/tree/b4/th1520-mmc >=20 > I've tested this branch and successfully booted a rootfs on Lichee Pi > 4A > eMMC with rootdelay=3D10. >=20 > Curiously is there some way to make it work without rootdelay? The answer is nearly no (although using an initrd will mitigate the need of rootdelay). MMC devices are known to be slow to probe, even on x86 devices. >=20 > For everything except "Enable BeagleV Ahead eMMC controller": >=20 > Tested-by: Xi Ruoyao >=20