Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp3109419rdb; Fri, 22 Sep 2023 20:12:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGeuXaIqZUhDn3stUu8XDBpEXdbNnPucKO99F6isRDIDhdKwRWofPBuiUyvA0K5eFVzNkXp X-Received: by 2002:a05:620a:2191:b0:774:15ad:f34c with SMTP id g17-20020a05620a219100b0077415adf34cmr1189354qka.70.1695438726493; Fri, 22 Sep 2023 20:12:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695438726; cv=none; d=google.com; s=arc-20160816; b=zg2KT0VxUHUB/DqyAuH6xnWMuPhAcBu7D/moK43A/zVDKM+JJomu/h8QOT2sCRzWvb EQ+JrQ8eXnyG2mCCtwRoG7UhxnNhweIl3omBMf2p6dCC8IIp7kgAgbze8EYCdBRhV24A oA2kCqZT3SXzkWywKZSmkY+AYRZa2VhNa2MXfmB0m5mEow9ThMjJ4cwWtOB1vvwkjRgi ZrpvEs9X9epAaAAjXODaM0M8ktwd4HoBdLv+MxsbDrCtfqWSuY6Akke4RcQjr6gNgPA3 K6S8QMOpbMaSIKO2RLKx/7XexthKVNscHJ5anL0dDyzbq5v56uHNXej2Ct2evB9eJfuB rMzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=7L9HvqDP5WJky24lmHONuk63n7kfCDpjCwpcpj0vxMA=; fh=aMGPFvMMPP8U074O8k0QzaIYdvBVzW4B4Car9rdeRjk=; b=Ltj8ZPdThXBfWp/k6fVSBzuglbEhB+ej70L2s/9dayNRwZNd+MvwolqQIxhkKzEZ3D KuJuIGqKdgeHA3YmbsJNyC/wvMX5q7+Lzwjxy9LjWybzy3iIKhIDvzCI3u2VKx03zeaG dMHhfWrwsMu2Zs6K8kZkypbOn1gQf3zmG1LjnCEeW/PEbBfOyuljq+YTablRgkSMp/5J h6n3vl/g+EMeVL5zDg1F7JdfxnZXEEBoA99Cd08G620YmkzbV78LCElsRx/3Xwqfl/eG tSQi7Oo+c9U1SXvVFNU0e37Vz7Q6UmwWgfrtoy+JDNWXmW265sBtwmVRHwwym7942/uK PRbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Mi/5vk+W"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id w8-20020a63f508000000b0056418f28df6si5120213pgh.838.2023.09.22.20.12.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 20:12:06 -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=@gmail.com header.s=20230601 header.b="Mi/5vk+W"; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0B2F9840986E; Fri, 22 Sep 2023 12:08:58 -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 S233867AbjIVTIv (ORCPT + 99 others); Fri, 22 Sep 2023 15:08:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233816AbjIVTIt (ORCPT ); Fri, 22 Sep 2023 15:08:49 -0400 Received: from mail-ua1-x934.google.com (mail-ua1-x934.google.com [IPv6:2607:f8b0:4864:20::934]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55FD1C1; Fri, 22 Sep 2023 12:08:43 -0700 (PDT) Received: by mail-ua1-x934.google.com with SMTP id a1e0cc1a2514c-7ab9488f2f0so154971241.3; Fri, 22 Sep 2023 12:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695409722; x=1696014522; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7L9HvqDP5WJky24lmHONuk63n7kfCDpjCwpcpj0vxMA=; b=Mi/5vk+W/rYXHqn8ZjMSE9WEFZH0UK7eboKSAemx5t8p+j3rx10R6ryXBV2eNPVYUH ZjIZtkGDXkNAX0oRqMElAMSG4aqM3FFF8bnYRw3b0lAqz6WhggA9Twffra4v2YVh762M HLOwXm6xq5QAc9WEqrIj9TuH0Y7FEDSaM+wJ1S4s1/+9/RpuUQR07ZWXdfhhVf3B8fsw gQKPjXVrC02FzTfeDs2IhfL+cDP3FYPvvc758rU6FKUjbd+RtCYxbOv7oLaszwFQyVDT R6M9QUggKVTVVpyztzqE2Cbsxn+QqcZMItykOsZzB+M8JE5BzPNquVt3Fs7YIgacy3S/ dnJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695409722; x=1696014522; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7L9HvqDP5WJky24lmHONuk63n7kfCDpjCwpcpj0vxMA=; b=mzqaorlbKx7AILa+GmrMOYFm0SX1NB+WAGOLbK9MCFoDLMwn8RODJob1F6H/WJb9ju yalJxAzber2cDQhGWE0uK295JYTg4HH9Yc9NmQxtFZvE00PrfHPnfqzpXLpf1/czWwGn 100F/f7FoDSJES1mBlAjQbegHPe3HVAiuQfXbM8mobiR4pC5PktaG9IH24Zipa5yxeRE ar74V+zN03eIMKPsAkqrNLzLwCsYw6K+PV4ioEJxIgtK/B4NwZulEqFAKtbfFnnCg/3j s3jFGXAGidVLS17LCu7+ue1EBDKPqthrDXBeGXiwWDwg7KdPnr6eZsiT5cfCMm/lFCZO 7IoA== X-Gm-Message-State: AOJu0YyepZU/X4ZmhCabvyz6AYIPGnlciE3roy9w0dPznuyddDFLRflH edZAz19Th+Vo5oZhzbXklQ9MT/Vvixu3TX84djQ= X-Received: by 2002:a1f:ed45:0:b0:490:29bb:670b with SMTP id l66-20020a1fed45000000b0049029bb670bmr114533vkh.12.1695409722407; Fri, 22 Sep 2023 12:08:42 -0700 (PDT) MIME-Version: 1.0 References: <20230921-th1520-mmc-v1-0-49f76c274fb3@baylibre.com> In-Reply-To: <20230921-th1520-mmc-v1-0-49f76c274fb3@baylibre.com> From: Robert Nelson Date: Fri, 22 Sep 2023 14:08:16 -0500 Message-ID: Subject: Re: [PATCH 0/6] RISC-V: Add eMMC support for TH1520 boards To: Drew Fustini Cc: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Adrian Hunter , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Jason Kridner , Xi Ruoyao , Han Gao , Icenowy Zheng , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 12:08:58 -0700 (PDT) X-Spam-Level: ** On Thu, Sep 21, 2023 at 8:51=E2=80=AFPM 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. > > 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: > > [PATCH v2] riscv: dts: thead: set dma-noncoherent to soc bus [4] > > I pushed a branch [5] with this patch series and the above patch for > those that find a git branch easier to test. > > 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. > > 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 This patchset came out very nice! v6.6-rc2 with Last RFC v2: [ 4.066630] mmc0: SDHCI controller on ffe7080000.mmc [ffe7080000.mmc] using PIO debian@BeagleV:~$ sudo hdparm -tT /dev/mmcblk0 /dev/mmcblk0: Timing cached reads: 1516 MB in 2.00 seconds =3D 758.09 MB/sec Timing buffered disk reads: 84 MB in 3.01 seconds =3D 27.94 MB/sec vs v6.6-rc2 with this patchset: [ 4.096837] mmc0: SDHCI controller on ffe7080000.mmc [ffe7080000.mmc] using DMA debian@BeagleV:~$ sudo hdparm -tT /dev/mmcblk0 /dev/mmcblk0: Timing cached reads: 1580 MB in 2.00 seconds =3D 790.97 MB/sec Timing buffered disk reads: 418 MB in 3.00 seconds =3D 139.11 MB/sec Regards, --=20 Robert Nelson https://rcn-ee.com/