From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5802F606A33B for ; Tue, 1 Dec 2026 13:43:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=ypUoZn/c; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=fiucL4YT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=5k9bKe8MbPMzzrxBpIE+d8ri1WMPwZ6noTmqEIYpQlY=; b=ypUoZn/cedf9ad oqLgTZ5vjR06INqm0LbiD1XD5SVmKKQ0BANRa7vJWxz2HiK4oMaESmgP85V9sV5wl1mDWuvyN14dS JZOR0SSHc6uyT5v5CpJaLK34iw8C/GT4y79kbWMwz/IaGBMi8hLJeiMXwEdwQZ39Cfv+me5iE8FFf UM5y4zaRDThGQV4I49FW1krEwPR26XRDakiZbvUI5GW0ENKBhLCYVLTF/7TQXbqL5VkCvKfMXoJ9p 7iCNyxp0/htYyrNwO11xStm22TIcPkXuQR97LsjFb/QM0vpXtxiZl2fLVYkXTI1r5l78e6XqmKCP3 y9M6FGRGe4utPn4S0cow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYO8Z-00000008IRC-11pM; Tue, 01 Dec 2026 13:43:15 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYO8X-00000008IQV-0L50 for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2026 13:43:14 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4bb72b44a97so102344625e9.0 for ; Tue, 01 Dec 2026 05:43:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796132591; x=1796737391; darn=lists.infradead.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=5k9bKe8MbPMzzrxBpIE+d8ri1WMPwZ6noTmqEIYpQlY=; b=fiucL4YTYKcJI0Ko+VrycM94nvk95ee6+OykHp4J5UIfYQYDOkjRm0E6+7F6c2iGqH xAKwauL8vfn+l7DEM5mTAV3tXLKUYLkwKS11MU2VcVDBLN5wMl9PkHdRa7263qeuJfsa JQPxKqm0FPuVMULUH7Fq72h57HRnvZMDvnGoqOvCKQKIhOnH079/jw0VAqJexS5cXGWV kOmdrqz8QLojnPsb0/UwLkSZr4z/8tMTx0VBgU35fzr3Jy2fqgYq6zdaZFtePeUrHuaD 1Bqc+2WeQQmAXQPzddUnwDomRgU4puY7rSZiBLTF+35W6U6q5cmTajT5/VMK3DzBrRfP cMHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796132591; x=1796737391; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=5k9bKe8MbPMzzr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vdP/6+ bCPNLury0Xmym2HacU72jpKGs+AYKNMmrmQW5YSTgqRBwu0J0NfZMshdeG4WWBz+QfcmjPaFdYK +tD7+HB2v9ite2aZxT5WgvYaAO1LcmGDRw6/KswVL5nhnNyHdIte+UOAUxu6Y5ZNVwXbMpJE5Wj LOtrVZvW+i2uYiCod//nDu2dgRZV7VxHqXCix6wPAzoKnuNWnxO4L9AO5HWjDNduYhpjvCsi8OJ TBw== X-Received: by 2002:a05:600c:530e:b0:4ba:eb:eb9b with SMTP id 5b1f17b1804b1-4bb8880aba2mr717562605e9.8.1796132590590; Tue, 01 Dec 2026 05:43:10 -0800 (PST) Received: from ?IPV6:2a02:e98:40:8091:a456:fe24:a89:daa6? ([2a02:e98:40:8091:a456:fe24:a89:daa6]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6c61f558sm73061267f8f.58.2026.12.01.05.43.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Dec 2026 05:43:10 -0800 (PST) Message-ID: <26135f2a-1a0a-4297-b526-2e206ee0d0e0@gmail.com> Date: Tue, 1 Dec 2026 14:43:09 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] ARM: dts: broadcom: bcm2711: Add DMA to sdhost To: Stefan Wahren , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , Kanak Shilledar , Florian Fanelli Cc: Conor Dooley , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Miroslav Ondra , =?UTF-8?B?TWF0b3XFoSBIw71ibA==?= References: <20261127-bcm2835-spi-dma-v1-0-8b134991ba2e@gmail.com> <20261127-bcm2835-spi-dma-v1-4-8b134991ba2e@gmail.com> <484e2b18-e282-4543-9058-3c472e6212e5@gmx.net> Content-Language: cs, en-US From: =?UTF-8?B?S3J5xaF0b2YgxIxlcm7DvQ==?= In-Reply-To: <484e2b18-e282-4543-9058-3c472e6212e5@gmx.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_054313_140194_1789E868 X-CRM114-Status: GOOD ( 26.61 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-14.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hello Stefan, thank you for reviews. Dne 29.11.2026 v 21:04 Stefan Wahren napsal(a): > Am 27.11.26 um 16:21 schrieb Kryštof Černý via B4 Relay: >> From: Kryštof Černý >> >> On BCM2835/6/7, sdhost gets its DMA channel from bcm2835-common.dtsi. >> Commit 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support") >> added the BCM2711 DMA controller but gave sdhost no channel, so a >> BCM2711 board that enables sdhost runs it in PIO mode: >> >>    sdhost-bcm2835 fe202000.mmc: unable to initialise DMA channel. >> Falling back to PIO >> >> Add the same dmas as on BCM2835/6/7; the BCM2711 legacy DMA engine uses >> the same DREQ number. >> >> Tested on a Raspberry Pi 4 B: the driver gets its channel and reports >> "DMA enabled". Nothing on that board is wired to the sdhost pins, so >> transfers are untested. >> >> Fixes: 7dbe8c62ceeb ("ARM: dts: Add minimal Raspberry Pi 4 support") > Disclaimer: I never tested SDHOST interface on Raspberry Pi 4. But > according to [1] the pins should be the same as the EMMC2 interface. So > in theory this only requires a change of the muxing. > > For this change it would be better to have: > - this really tested (e.g. with an SD card) > - a real use case in the commit message > > Best regards I do not have a real use case for this interface, it is not used in products I am working on. Purpose of this patch is purely to make downstream closer to upstream, so I am okay if you decide we should drop this patch. Hypothetical use case would be second SD card on Raspberry Pi 4B. Customers like to store data and the USB is outside and is less mechanically reliable than USB slot outside. No PCI-E present. I tried to test it, but I do not have a reliable tooling for it. I have tested it with a micro SD adapter, that is meant to be used with SPI, not SD, so there are some random bias resistors and capacitors and two data lines are missing. Also my jumper wires were very thin and long, so probably EMI issues were present. Test (50 MHz on 1-bit, 1 MiB blocks): Read: PIO: 6.2 MB/s, 12130/s interrupts from sdhost (mmc2), 100% usage of cpu core DMA: 6.1 MB/s, 23/s interrupts DMA - none from sdhost, negligible cpu usage Write: failing on both PIO and DMA, not sure if an issue with driver or my test harness. On PIO fails entirely, on DMA every last written sector lost. I will remove this patch from next series if you conclude the arguments are weak. I am ready to send it as soon as you decide it. Thanks again for your assistance. Kryštof > > [1] - https://elinux.org/RPi_BCM2711_GPIOs >> Signed-off-by: Kryštof Černý >> --- >>   arch/arm/boot/dts/broadcom/bcm2711.dtsi | 2 ++ >>   1 file changed, 2 insertions(+) >> >> diff --git a/arch/arm/boot/dts/broadcom/bcm2711.dtsi b/arch/arm/boot/ >> dts/broadcom/bcm2711.dtsi >> index 0680a0b1ca67..e18f11fb7f00 100644 >> --- a/arch/arm/boot/dts/broadcom/bcm2711.dtsi >> +++ b/arch/arm/boot/dts/broadcom/bcm2711.dtsi >> @@ -1155,6 +1155,8 @@ &sdhci { >>   &sdhost { >>       interrupts = ; >> +    dmas = <&dma 13>; >> +    dma-names = "rx-tx"; >>   }; >>   &spi { >> >