Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp389738rdh; Sat, 23 Sep 2023 15:30:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF3+gdwEsXz/ENk7SzVX7bsJVrZDFcUfcXBdMkiGJejrbkFOOMzRoUd1innHio9y+X88QAG X-Received: by 2002:aca:191a:0:b0:3ac:a11a:4879 with SMTP id l26-20020aca191a000000b003aca11a4879mr3786464oii.39.1695508228848; Sat, 23 Sep 2023 15:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695508228; cv=none; d=google.com; s=arc-20160816; b=TPJnpnxOwAhi6fhXTPvlMgTqNXWSDMAyvqmYhWk5FG+SnG3HP+kUv+KCtj5F41TxCs uzi6XTGkPDkLpr+VK9BxOxMfSNSVkixpDN0PJZRQhA6KM8ZWSAyrM4znuS/lIy81fZJQ Ga597qDDSoBXPywahdd/aOLpM4DqsN47NP0nRBlytQHM3BRjdPCs4QkUPu+Jp8WLm6RP WrlTbUVmTzDvVzmSxgR0GSQitaU4fhgznZOViS8GonoSQJZW30nCNHpUwBWjGpO2X7fQ fqhbxSYyYvWvQG3XIiudpRGVY2eglXA6fxueOB5AbbH1LrQSJnUGWFpk5rTFszHSHwaS 5Pyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:autocrypt:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=9tS+t+9ne/achIv7oKXeD3phZJ7C1Jx1QC/gCOCkAJw=; fh=dKiknTyGKkOHUyhwddqeW9JaYEyzYRE24eFt+ohSvqs=; b=POz3goz0Kj2RUFhaJAgMfekhUoOiOlh5+yBTfc5h2v1GOhzCEMRGt2yBxITAWLpJ/x O/lMdydXlhAkllN8CgKb5U9RMd+WtTFlMSnIjkBN2LaK/fgwLz6UZWwKrlK09wkabEi8 RD94t27EZoBQa9qNHCij6pOs3v+j7mIks0LLwTef0yeAd6g1CyaFqXYkixfBJRLbFa1/ oj0jKsjAdRtbdho4p2R7wVAQS13FHLsVA317XOM6h7H8p1V2j8mx8Fe4BbSf+XWReoPh HyLJbPeqTw2KoEcEGQ76C4eh7R6bdLfiZAfQKJP21uAY6rXerY9k0mSUBLKONfJoZQXH SJGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=gF2j4UiO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id s8-20020a170902ea0800b001c3a2e70278si4106894plg.437.2023.09.23.15.30.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 15:30:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=gF2j4UiO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id AF3E18043ADC; Fri, 22 Sep 2023 04:41:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233724AbjIVLlt (ORCPT + 99 others); Fri, 22 Sep 2023 07:41:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233703AbjIVLlt (ORCPT ); Fri, 22 Sep 2023 07:41:49 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46061FB; Fri, 22 Sep 2023 04:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1695382902; bh=9tS+t+9ne/achIv7oKXeD3phZJ7C1Jx1QC/gCOCkAJw=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=gF2j4UiOogzBDjYD8oxN34bmy2Sftbo+qN3LnAvHjAnvzN1+MgDs7xMhw8UaUvPfY 1ajoom+NH/l6RGptV5B8xBFQdGoGY1ApU8cN08XLoxhIECZ8jUPlZ4NMP6Eh7fqKOh YIeRIyWmUAmLXdcNR82qk8nIsDbgmjGY3F088qbs= Received: from [127.0.0.1] (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 271226599B; Fri, 22 Sep 2023 07:41:38 -0400 (EDT) Message-ID: Subject: Re: [PATCH 0/6] RISC-V: Add eMMC support for TH1520 boards From: Xi Ruoyao To: 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 , Icenowy Zheng , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Date: Fri, 22 Sep 2023 19:41:37 +0800 In-Reply-To: <20230921-th1520-mmc-v1-0-49f76c274fb3@baylibre.com> References: <20230921-th1520-mmc-v1-0-49f76c274fb3@baylibre.com> Autocrypt: addr=xry111@xry111.site; prefer-encrypt=mutual; keydata=mDMEYnkdPhYJKwYBBAHaRw8BAQdAsY+HvJs3EVKpwIu2gN89cQT/pnrbQtlvd6Yfq7egugi0HlhpIFJ1b3lhbyA8eHJ5MTExQHhyeTExMS5zaXRlPoiTBBMWCgA7FiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQrKrSDhnnEOPHFgD8D9vUToTd1MF5bng9uPJq5y3DfpcxDp+LD3joA3U2TmwA/jZtN9xLH7CGDHeClKZK/ZYELotWfJsqRcthOIGjsdAPuDgEYnkdPhIKKwYBBAGXVQEFAQEHQG+HnNiPZseiBkzYBHwq/nN638o0NPwgYwH70wlKMZhRAwEIB4h4BBgWCgAgFiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwwACgkQrKrSDhnnEOPjXgD/euD64cxwqDIqckUaisT3VCst11RcnO5iRHm6meNIwj0BALLmWplyi7beKrOlqKfuZtCLbiAPywGfCNg8LOTt4iMD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Fri, 22 Sep 2023 04:41:51 -0700 (PDT) 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@ker= nel.org/ > [5] https://github.com/pdp7/linux/tree/b4/th1520-mmc I've tested this branch and successfully booted a rootfs on Lichee Pi 4A eMMC with rootdelay=3D10. Curiously is there some way to make it work without rootdelay? For everything except "Enable BeagleV Ahead eMMC controller": Tested-by: Xi Ruoyao --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University