Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp3036275rdb; Fri, 22 Sep 2023 16:30:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFE6fMjWcVBvCM0bL+cceADEO/Rr3z5BRWh/Omm+ro8DWIP+sGXzaYxxaUbbIsGRTKEeX5F X-Received: by 2002:a05:6a21:328c:b0:15c:b7ba:1671 with SMTP id yt12-20020a056a21328c00b0015cb7ba1671mr1349770pzb.2.1695425438781; Fri, 22 Sep 2023 16:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695425438; cv=none; d=google.com; s=arc-20160816; b=z4TgZVyDNNB8lcLZVNiBPSro57EFgxZurtpdS9tMreec3WLHAi0li13PqVJs6VNbcA JPwC9vek6IAratHMRNKnBNUQkD9+7O3aRsx+wMIOvZ37Gcodp6EiOdvB9Hi4B+QIdPFO 3JaPwoiQIt3y2nonKbkTxifBzdzDCsHpx218oJWHnmteCJRzXMGvTua6hpahQyPpgJJP t+aXyOTtJEdLI4sW7ZMJs7H2dPsDGVqOAdmylkOro59xrxPs8+FZ06QiAWCzTqIL8JqW 6uLzDtVFPDbin0W3iY81Y6BaEANzMKxPhurqKdKkdPm0tu+jRA/orUDRJ3d1BvHkoMK9 gQ/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AHg6WGFiYjr1HXimk+u+8jzAweDZw4kGMIG8TL93+tY=; fh=LkQcsBbtohhNB7AiDvR/9AJHA05rC86SXDlKP72GfQQ=; b=raxw3Jrnx6zxzbgZK/3cYVU1nMYlZnfB9fTM2ZdKbvtzSp0Dru8x++k4QM11zXOriI 4aEjEXqtjKVgIzciQL0hdHe0MxWn7rqLzcVSWu5x6ElwleZmWLcTts2YbsTDGbtVnQL8 8sUYX86NZPim/8g9IrzjlcidTFuaRUA7f9uK+A/rU9Leh+1TN7LduJryqDWAqQkG7hr9 SsCDQOK2+eG5yYI4WdUVL08Ick7sEjWzBHTuy7GLgJt22n/gxIc0P/JwfK13QgUYSndv K8UQP0Vgs90W4y5A3ho3o2SMJNnXFvSGfcdXyjnN5Tu2wWVOGtSXGkkPG3jVrX9bMUx8 yBcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=OBsj7UXu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s17-20020a656911000000b0056c2f508898si4770628pgq.725.2023.09.22.16.30.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 16:30:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=OBsj7UXu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 6901B8338159; Fri, 22 Sep 2023 09:23:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbjIVQXd (ORCPT + 99 others); Fri, 22 Sep 2023 12:23:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbjIVQXb (ORCPT ); Fri, 22 Sep 2023 12:23:31 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D30B197 for ; Fri, 22 Sep 2023 09:23:24 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-68fdcc37827so2728092b3a.0 for ; Fri, 22 Sep 2023 09:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695399804; x=1696004604; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=AHg6WGFiYjr1HXimk+u+8jzAweDZw4kGMIG8TL93+tY=; b=OBsj7UXuilNejuelWW2fSyBYD07C8b+34e0FOTN4n3KlejzV1K+XWcLhRpaK5m6KGD THGrpY/rma2UsKaTmFeBNRrlkxNuz4FKuNer1xmH8BwKsVNnNwhhFg0Iwu/x3u7xySf3 Lkb7wVU55QxQGAXF4AlhBe/eXVXmj/cuwJeIiOrEzN1H6mXskj+UlPmBcwqKNFbF//ly rlSStqMz1dyUuDFuJw4ANupuiK9djGXBrz55T/+4bjp6Xl2kzv2uAgFNujhveHHU2pwj 6AB01tdel60iujWkizWgJ1pZhVlTiaBe2NQwYMYUX/KCeP5JW/LQ62eyVFQDAUI/HYP+ tb2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695399804; x=1696004604; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AHg6WGFiYjr1HXimk+u+8jzAweDZw4kGMIG8TL93+tY=; b=eUrE85QXyLCF7K6grzm+H9O6+Wdu8mSM2Dp2/cEnuYd0zlvcyVth9H9yTEMiYtq7ap hO0e9u/2Ot2YbjFNrSDpOLKGruGotLN7trPogSZagpTeG7vL7J9sC9dullVDIWFxhidR p/DK6R/opk4xe8JVTS6TG/W5e6m4d9UmVCO8pextk5m2+76KggyFzYZWnjSLouvEgq2h 2K7yg/jAXD2PsbVs1UxbsheYD2WFsIGk3OHXX3s65YsAvYLcEnJicnBdapYskgy/HAAF h9FPyPPRBtYmOvQqJQAzY+Psd04rLqNT8F6Z/zJxH0+0eO5OuZeRyOtVVgplEyrZIO+z yYtw== X-Gm-Message-State: AOJu0Yy98imbZYWbC28zq5KovXMY4EDZbzypUmY0Ct7dN+1/lS+5jdG8 v9y7G13UlHE+YU7I+Vy7l9CaJA== X-Received: by 2002:a05:6a20:7283:b0:134:73f6:5832 with SMTP id o3-20020a056a20728300b0013473f65832mr281394pzk.16.1695399803769; Fri, 22 Sep 2023 09:23:23 -0700 (PDT) Received: from x1 ([2601:1c2:1800:f680:c44:77f:ca7d:adec]) by smtp.gmail.com with ESMTPSA id u25-20020a63a919000000b0057ab7d42a4dsm3249805pge.86.2023.09.22.09.23.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 09:23:23 -0700 (PDT) Date: Fri, 22 Sep 2023 09:23:21 -0700 From: Drew Fustini To: Xi Ruoyao 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 , 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 Subject: Re: [PATCH 0/6] RISC-V: Add eMMC support for TH1520 boards Message-ID: References: <20230921-th1520-mmc-v1-0-49f76c274fb3@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 22 Sep 2023 09:23:33 -0700 (PDT) On Fri, Sep 22, 2023 at 07:41:37PM +0800, Xi Ruoyao wrote: > 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. > > > > 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@kernel.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=10. > > Curiously is there some way to make it work without rootdelay? Thank you for testing. This is the kernel command line that I am using on both the lpi4 and the ahead: root=/dev/mmcblk0p3 ro rootfstype=ext4 rootwait console=ttyS0,115200 I seem to recall that before I used rootwait that there would be a VFS oops because mmcblk0p3 didn't exist yet. Have you tried rootwait instead of the 10 second delay? I imagine an enforced delay would be very annoying. With "rootwait", I don't notice any delay, it boots to the login prompt faster than I can read the text scrolling by during boot. (my rootfs is a simple buildroot). thanks, drew