Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8072527rwb; Tue, 13 Dec 2022 01:35:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf72syKOIrt0lLml1LG+M+32BxOUGDiiIV70V4uOM/7X2TfaTNB75JOkzyuL+Iq0vZactr41 X-Received: by 2002:a05:6402:370a:b0:461:2505:832d with SMTP id ek10-20020a056402370a00b004612505832dmr19968181edb.10.1670924131480; Tue, 13 Dec 2022 01:35:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670924131; cv=none; d=google.com; s=arc-20160816; b=dhhYljRYjzsUGJScXGM6Z3xpF4fxYSxq9AlCKgzByzUblEZN9nK15/hYd9kIE2A5nE PJWrpdeMzLWPI4IpZ/jj16T/fRflf4U9tSHViLFuOGEhLAWvZRZSYRdl+Tq2PtRsQrPV tzlSyoWUgXm9XxzooYBXU5I+QLnU2LIYQilvN0y7NhfP3HDeI4xt1kSGmxmT7eamc2lQ Qy7HSDnjAd/TgztxkkysJQhhwHrIt3gkU4NRUKFoNnE3tQdDjkJYUYVgtlENcWNIU2WI gsovmEwZKSB2XChEiTp0HaHVmMulbHCS16zp28WEeJqq6CtsRReUJAWAMI8YfUsKrAU/ 2JHA== 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=OrCcU/eLo13ZBVFGTuTaNxXPpehWwnnZY10XGNdHAy8=; b=Jx4MAzUP+obaqE61SAnX5GQf8jU1GlQvogtrevvNLvEvlhYqM7ZHV0EQml7Ggi54xo mrk5XmfTP1Vf+9t/S7yNme+oh9rFZx+IQOpxH3KVebZm6XyIgWonVhV9Ju17c0PL4gQV THQ9/PYus8Tjj5kTKVMugZcpl78KWl3FFbmDiLzBOG/sFBNI8yYASRMnPfc921PlH8C3 gl1bXL6sj7R8M7eULHBhP+2zLUBan+e1db97F5MElmLbHCO9yQAN4hPrp4ROKVTs6KP5 O0kcQkz71d1julDCyJnZYyt2MTY1WCeSmSKAjyxJfmVyGuL0wRtyQBLJYilfybx+lE2Z Sb6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jY8Iifm5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m19-20020aa7c493000000b0045961c7dde9si8589972edq.63.2022.12.13.01.35.10; Tue, 13 Dec 2022 01:35:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jY8Iifm5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234788AbiLMJUA (ORCPT + 75 others); Tue, 13 Dec 2022 04:20:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234912AbiLMJT0 (ORCPT ); Tue, 13 Dec 2022 04:19:26 -0500 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D19851CFCC for ; Tue, 13 Dec 2022 01:17:09 -0800 (PST) Received: by mail-yb1-xb31.google.com with SMTP id d128so16861274ybf.10 for ; Tue, 13 Dec 2022 01:17:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OrCcU/eLo13ZBVFGTuTaNxXPpehWwnnZY10XGNdHAy8=; b=jY8Iifm5eNOXeLtqgcNeEtLlg72Z/GFVeA7N47+JQ66xQyPDLLq20dYbg2wKPZdwNw iH7E1kFNGGcrazr8YZ3qPHSLlH0l7Kc//qxuQ1J8QBTu2TnB8fhHHa2vBb3W0AEgFo3k PFfzEeBC1lTImi6i4N02iDVgFC/qxA474cU3WCKLuPurhu3A+Jy61GfL2HziN0sA2pea +n9tpHRvnvPE5L0b/yXtRMr5tSeqCkRXv+toB3EI+zsdt67LXXrn1aCZH1IzdXO/CKYn KZo59t2aIpdTpmVDM78MDa88CjIlKJuSstU5wBAeuGRDUT/uA+3TgtxWcXP9GbydUKym s8sw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=OrCcU/eLo13ZBVFGTuTaNxXPpehWwnnZY10XGNdHAy8=; b=8JLKZ5MkGUckN+TtOuGLO9n7EgcI8pYTpR+p0OdG6ZmyjFDR8UEe2LBQz1IlAiFvoQ hEXk6w8yhpT6VkXtlb8S9nsE+xqigfK35jKD7rAoD76jlDiFz0oNCVy9UX3vTXEJLZNB bdZAFlOn2Yz0onH/eThAOO3wOFuqw9kswY7pWLN0bs7mqHdHXTsU/xrRf0E4xUtoZYR0 yTEaF6K7cQSA0aMKpHXybVIk0cw9iRDF0GVfkGMNcGaeK6PogCkcSMUczuHAXj97/cAG Qq1f3ckwSsryYt84A/Z9ZZpmFi/Ia2MuWMzMSAj9dE+vCO0Fo6qBADI5YQvd/AJJLQSs LzqA== X-Gm-Message-State: ANoB5pm0ETrHZKJN4vn5+4CzUz20Dq8A1uycEch2wqpEaYRQKUCpuROF tWOIu0kevcXPHB9E5OyX858mtjsZsSI5oTlYDVsuNg== X-Received: by 2002:a25:cc0b:0:b0:6f3:f978:efaf with SMTP id l11-20020a25cc0b000000b006f3f978efafmr56605874ybf.596.1670923029086; Tue, 13 Dec 2022 01:17:09 -0800 (PST) MIME-Version: 1.0 References: <20221205105931.410686-1-vadym.kochan@plvision.eu> <20221205105931.410686-4-vadym.kochan@plvision.eu> <18cf4197-adce-3e47-7802-80b0d078368b@intel.com> <69dd8714-4be1-6b1b-fa07-04c790a6c6fc@intel.com> <44f642bc-8810-80d9-368a-15994de7f50d@intel.com> In-Reply-To: <44f642bc-8810-80d9-368a-15994de7f50d@intel.com> From: Linus Walleij Date: Tue, 13 Dec 2022 10:16:57 +0100 Message-ID: Subject: Re: [PATCH v3 3/3] mmc: xenon: Fix 2G limitation on AC5 SoC To: Adrian Hunter Cc: Vadym Kochan , Hu Ziji , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Elad Nachman , Chris Packham Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Mon, Dec 12, 2022 at 9:43 AM Adrian Hunter wrote: > >> Right but I guess I meant what about 0x3_00000000..0x3_ffffffff ? > >> Isn't that also in DMA_BIT_MASK(34) > > > > Yes, you are right. > > So it would fail in that case? Is it possible to use devicetree > reserved memory or some such, to set aside 64k for the bounce > buffer DMA mapping? Yups spot on, reserved-memory can be used along with the kernel CONFIG_DMA_CMA to achieve exactly this: Documentation/devicetree/bindings/reserved-memory/reserved-memory.yaml kernel/dma/Kconfig Yours, Linus Walleij