Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2243138pxb; Fri, 25 Mar 2022 13:46:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4XAjTaxPZhxSVViqf5gQcNVmyFSa5bfHie2cUSlYTWUmXtVDnL9DX/+mV2/+QW8FpMgW+ X-Received: by 2002:a17:90a:a58e:b0:1bd:4752:90cf with SMTP id b14-20020a17090aa58e00b001bd475290cfmr14783822pjq.54.1648241197638; Fri, 25 Mar 2022 13:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648241197; cv=none; d=google.com; s=arc-20160816; b=Dj/qsr60BgOnCOhqP2+vvvqGXnKVfgnvHfjuKJijAEPg4UYWWQZhI1ql14c8H4NmYs bH1359zadVPr6ySgCACNcgeXe2cpu1EqlMYWTBrS+g1TIWSoTinXN8+pPe3/QKDG/SNf Va+nsWKa8YaJbUJZWf8jF3rg0VogTbYhqpuE2/2iPJ/tvdxHh8QAN5lknMjan1A8o2Tc W1JWPtUmMRv4Ht5Q8Ra9PP/npUqwhhcRfoSKB4f6kh5q+YpQaSgWlkgUGJNjRT/WRjHW 8xpZKPyBBdjKAcnxo4tbC9RUvAPKMIK7Xda02PXR2P1YD+iz0zRDtCScHIu7BfgaZw+F ffmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=YT2o1xxdFf9OVHBJJGoL9aS2UVDgV96wgaPQnf59u3A=; b=poRiRrd+Aw/82fqY15vt9iTctwT5Br68vVj8y7CPIWFDZm9kd4vgpmJA0q1uYSX9em eOOuzs0WGT+35vmtKtBUDT8L/Jv5JYznoApyspzP/aYFOyN4YLbCQc+8nX39U39cPk81 N/5lg7pPvA2C6SkKj0oqh4A+pQPF3VcTFRZE7Q4wr1qi/gzqnbCbT3ot7fV/Woog0u7v 5nwGukQkhLlYMH2k8Rl+TCvi7hTpTw/D+JcpD9DjSPQxjwWmwwLTZG4UyTU/uAOImMuM gSRWfTprwlRbf8j87fSJ45Xi7gLqtIFa/QPL52JUCthX3TOxl3uF8h3OGPhnMKMSVEgB 4mXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="iUDT/G3L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i15-20020a170902c94f00b00153ee8b0c9dsi3880038pla.176.2022.03.25.13.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 13:46:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="iUDT/G3L"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CB9B046640; Fri, 25 Mar 2022 13:12:31 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231136AbiCYUN7 (ORCPT + 99 others); Fri, 25 Mar 2022 16:13:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231592AbiCYUN4 (ORCPT ); Fri, 25 Mar 2022 16:13:56 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4583446177 for ; Fri, 25 Mar 2022 13:12:21 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-2e5e176e1b6so94186017b3.13 for ; Fri, 25 Mar 2022 13:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YT2o1xxdFf9OVHBJJGoL9aS2UVDgV96wgaPQnf59u3A=; b=iUDT/G3LEcGf/5tagjP8eFjsGsyOBph1oCwiAU9SRpn47LJA8MWoC2ZnwxrjbSPjMm NMgbwZLb++g0JJFq9rSNRDfuiuAAY8Rb8mEl15bFUi/1axDz0mqVDBjWIOF7rWkJktPB GVLthy7ZRekp5ux4Y2DFI5hfRTVn6an7IoJvpEJSJ/9e6g+VV6/TIh6v+e0YKsPg/ANl u9+Q/qattDvEkHp5i6SesaOU1SOYG0BE3BKYCSAklaOO+5ljSccec5A3gP/LLOHHRLHW 2IrIx4x8ygD2EPSpIa9BNu8dVIUcFM2jbwLpeByGektKecBFHNoOwvOwoDpGWDgslNFr atGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YT2o1xxdFf9OVHBJJGoL9aS2UVDgV96wgaPQnf59u3A=; b=Wr1c65/3SGRXsWPMPKpl7oNkX4MlJfKq6p8+dFku1D3CitBsXs8eRJdxOSfNk2Ts2W vHZdvkZrYIm0AYt66/ckxoA/al4udeby3iPMiPMmtkw3VbHGyca8ZC5UO6QYWULc3Vrk 9N20e+h7uRYaoXzZSfvgaevM+OXNT8cntsK3ISBpJjRo/dAfx4NfCBIG6Ev7m1ftWgoH T2CU8OuMRVbxtHckEe7as/NzbUIIKhwVQQdWeQsHmutlvpt5JW7pcEn0QfX9xRzUVAQ7 KLPs/vrPwI/o5B3YJQ+iO+2Ryak4aii/vJ6TNF8DVjeN3gm8NM1KXdz9UPXm5L3zspgH ve7w== X-Gm-Message-State: AOAM533skAaUGYritmsB4KRrioFyzdg/ZDkmxxVje0IZB5Eo1DmhvClT zJaQmpAsGQPF3f8bMgA1MHMfjJPYP6xSH1v1IaUhtQ== X-Received: by 2002:a81:164a:0:b0:2e6:8e4b:7487 with SMTP id 71-20020a81164a000000b002e68e4b7487mr12654258yww.437.1648239140546; Fri, 25 Mar 2022 13:12:20 -0700 (PDT) MIME-Version: 1.0 References: <20220304135134.47827-1-yann.gautier@foss.st.com> <20220304135134.47827-2-yann.gautier@foss.st.com> <0bc53018-fce4-4104-fa47-6e60d2367d69@foss.st.com> In-Reply-To: <0bc53018-fce4-4104-fa47-6e60d2367d69@foss.st.com> From: Linus Walleij Date: Fri, 25 Mar 2022 21:12:09 +0100 Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: mmc: mmci: add a property to disable DMA LLI To: Yann Gautier Cc: Rob Herring , Ulf Hansson , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Alexandre Torgue , Christophe Kerello , Ludovic Barre , Maxime Coquelin , Philipp Zabel , Russell King , Marek Vasut , kernel@dh-electronics.com, Manivannan Sadhasivam , Grzegorz Szymaszek Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Tue, Mar 15, 2022 at 9:26 AM Yann Gautier wrote: > The STM32 variant uses an internal DMA, and the DMA functions are in its > dedicated file. So I was planning to do the same as what is done in > meson-gx-mmc.c: using a bounce buffer to copy from/to in case DMA > constraints are not fulfilled. Not sure it can help for Ux500. > > Ulf, before I send my new series (although it is not ready yet), would > you be OK with the bounce buffer idea? Would it not be better if the bounce buffer is something available for all MMCI variants and not restricted to the STM32 DMA add-on? What I'm thinking is that this is a problem with the MMCI hardware rather than with the DMA hardware, so the problem kind of gets fixed in the wrong place if the bounce buffer is in the DMA add-on code. Maybe this is how you fixed it in later patches, I'll take a look. Yours, Linus Walleij