Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8072702rwb; Tue, 13 Dec 2022 01:35:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf608pZDt/miVX1MLyRIJETP/M/jlMgYhAjCcQ+DXyggE7W7XLEPC0ytYwl9WFPBc0N0rfOP X-Received: by 2002:a17:906:668e:b0:79e:5ea1:4f9f with SMTP id z14-20020a170906668e00b0079e5ea14f9fmr15885421ejo.54.1670924142655; Tue, 13 Dec 2022 01:35:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1670924142; cv=pass; d=google.com; s=arc-20160816; b=e4qY8WW8JhyRC7S2yoH8CONJAl5jubDZabdKOe72MRD0EvyMvJodAcZoNzq+OzknMA rLZ1L3L6d0DchcU2nmFe1oM95nDGUIBEOB9yowfbrZ9+c3UY6qPN2LABj2zCzJ3vhH6a qNAbc9hIaYbRjWGJzROOoakjPoLEwRsDPhSe5Yb5wwLc1x4VgI3tArztIRVnZPelZi9F 1TGpIOcEeettc8OTg1Zunow+z8IcEt2otq1HSevdyukcuMou5P27StrrGp483DmiGZyk seL9P59Q02tzK/AAQIB/73Su1up+NDlZz3VROj/tY9dP3zJqaIW5Au+w+FYJlTi8YwTv sULw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:references:in-reply-to :cc:to:subject:from:date:dkim-signature; bh=UCTaLM6MCfX2pEgyCOrFEtdlk0GYa1rnf1/ghNcZQGk=; b=i+heiEcLf3DuPMA1SUohiwyJ+o5VhCBRSWn5a/h90iy+/nRrMeFdpwI67r0WttEcdc JkuNo1+Ye7Y45OtM/LpcKjMF/1SO08oT2zb9BlJMmmUL7q3xb2/PkGTOOu8gQHCwsjfJ IYsC+qJADIqHHpB1J+MAXwGk+YE1bOP4pkO1cvqMj0LD0LGnSrA8mPM3stPxHmUq2/DX 9Kw3nxpIdbiaeL8aVOD3ADuSs7VwgcMeNlrWBE2NWiYMUeirPMMcGCRU/p9i7LDR4AfG zLJwDs218GVwLnem5JKN4//93GTNeL5F5NAsx3W3+blFwDzQjY8Ie+UXq20rSLRZQVIx cmOQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@plvision.eu header.s=selector2 header.b=iu09pWXS; arc=pass (i=1 spf=pass spfdomain=plvision.eu dkim=pass dkdomain=plvision.eu dmarc=pass fromdomain=plvision.eu); 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=plvision.eu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wz7-20020a170906fe4700b007c10a0c6f44si6790986ejb.623.2022.12.13.01.35.25; Tue, 13 Dec 2022 01:35:42 -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=@plvision.eu header.s=selector2 header.b=iu09pWXS; arc=pass (i=1 spf=pass spfdomain=plvision.eu dkim=pass dkdomain=plvision.eu dmarc=pass fromdomain=plvision.eu); 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=plvision.eu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234800AbiLMJV7 (ORCPT + 74 others); Tue, 13 Dec 2022 04:21:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234803AbiLMJVa (ORCPT ); Tue, 13 Dec 2022 04:21:30 -0500 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2107.outbound.protection.outlook.com [40.107.14.107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49035B36; Tue, 13 Dec 2022 01:21:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GBfLm3BAyBxEMgQ+CvZ0Lz4s4l36WpAm+SO7o/wUlOZo3D5CBJBQ4yjVkpLiJaVQETJ/oFjjgWOsHCAuoX4nI4FCg6f3c5+HejOHv4dcKChJX/uzfOfr2hFGH70JKBi37lU/CypHW3QYRmMkljjEM/SZh8n7XB4VX5AwOUb8L6UygPHtfn9OkKR91NirmT2f2stdfub5CTNBAVrydFmsYj3LxbIKW5GM7Gg9pE6YViLudhOKHZdodvJUnubr/dE1/H+qndJzS4UezBZLs0FpY7dNLWCJCDzwccautiN3dToU0yM0sGSQ/8YRKcFwgu3Qa1KfUu4ZQ4uvZBTHG0pzmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UCTaLM6MCfX2pEgyCOrFEtdlk0GYa1rnf1/ghNcZQGk=; b=fbKUmEfXS36CON+8XqvJPzTf2o4tE1sngnvLQY56+YwWGI7tC73wuWghLeZR3UCLiORHn2mDFhzbPv+4rOFYts15MYPHXugnEE0ZTrdQEhUQsEAsBqn38Vspz+kDWg6zHeZiobygChLpl4prNWYafzMA/TrqSddMViiJW9Z+2B/cP5eQ186fzaL18TzZmWXkiGVKnrY2K3j0LpA+otbEwgIZWIQL5vyqTnvk5LTPSmNpxr6hDXW1GIghML0xwAdWXZgjgQL+HCxv/cx9KMhWpe8hEzu2q2M2I9UVrd+ztTLdTSEat7syrnSGHVjBxBW2Ts3wfCzjjUbQRkrU8aXGGw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=plvision.eu; dmarc=pass action=none header.from=plvision.eu; dkim=pass header.d=plvision.eu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plvision.eu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UCTaLM6MCfX2pEgyCOrFEtdlk0GYa1rnf1/ghNcZQGk=; b=iu09pWXS/9Du+3xQWE8ovIvCQL86YaNvRMUrsnlloJyA3YAzyHIFgKlT0DYIaUPOgjw3zzv9KgcjIoHUIBAMTX4WS+ED0eLvvrw4O9koTn240vB8tHcKdOmLILtg/XWYYaRK7yp6d2nRqg6/Wk2LzhKqlQVdKLBZN3VoUN1u/YY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=plvision.eu; Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) by PRAP190MB1764.EURP190.PROD.OUTLOOK.COM (2603:10a6:102:299::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.19; Tue, 13 Dec 2022 09:21:25 +0000 Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::5912:e2b4:985e:265a]) by VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::5912:e2b4:985e:265a%3]) with mapi id 15.20.5880.019; Tue, 13 Dec 2022 09:21:25 +0000 Date: Tue, 13 Dec 2022 11:21:24 +0200 From: Vadym Kochan Subject: Re: [PATCH v3 3/3] mmc: xenon: Fix 2G limitation on AC5 SoC To: Linus Walleij , Adrian Hunter Cc: 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 In-Reply-To: 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> Content-Type: text/plain X-ClientProxiedBy: FR3P281CA0171.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a0::7) To VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) Message-ID: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1P190MB0317:EE_|PRAP190MB1764:EE_ X-MS-Office365-Filtering-Correlation-Id: 4b526dfd-5ddc-4128-0758-08dadceb686f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: s0NbiTiWvzN6QuVPHibsAzy6Wa9Jda4/1HXAIUS3e4e8LGBGhd/pIotVHVSrGZpxefstqBPVQ2rZpCx4p5mtJnFNqvwM6+5/pjHCfRaPn4adtr5IhswtuxtGuk9eFsXvUSeqbHhIKh+dW3syklfE9uQhzclRfBCKoVWwfUvU63vHhjfp5ifxAMeyyeZDtcI8W4y3bW9MbWIt4OseWC7R1556IkbdGzk5l5MWTtfbSfRr5fehHlR2NLVZK/JYodJtC9LakYtfVhe7VFEhZgUIWn6PtnwUtO/ZDSPRzbvU9/yA4nEmEYhG2bF5MLTVK+obDW4heysMEpv3gTLHBbQ+NKNSeJ92FUj32rN6JDnBZ2O3+6jEJFoNybRC0SqVexFnPorN2mU6UWZqfUB04FvV9YQm1ZISf7i2Po2feYD86zW7B9tr0I/wrh+o5w98YxSVnb9aaNRShpyjI/9TRg2oRQajNtTEerQodoTotiPRmfezEm5MF5VLHiLSC0pvaEWyta56a4+0f3cx2KpX9fmzX5DHFM/YbCAZawn5UAqKriJGIghSatTu3VnlDprBC8o/3++moNHNlXzjEclMsTGMBd6tkhMOmhhWyuK/ZeLJqDG0WKMARGNDw5HtzgAW3Tr221rgoVwRu6S947cCybFIfTGMfYhhUEn6j7xpoBur0cBy/k96IcaJ4oBUvs6s/RtigXStmLQrT5qKybG+eUw2izkgRW0fKLMbCuXijsTAiTE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1P190MB0317.EURP190.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(346002)(396003)(376002)(366004)(39830400003)(451199015)(86362001)(55016003)(966005)(6506007)(33656002)(316002)(9686003)(53546011)(52116002)(110136005)(7696005)(186003)(26005)(478600001)(41300700001)(2906002)(52536014)(8936002)(7416002)(5660300002)(44832011)(38350700002)(66556008)(8676002)(66946007)(4326008)(66476007)(38100700002)(54906003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Va5d7nqay0KIQ773vGx5SIMnwdUJmPWyD/t/Kuea+PKd2CG2uOs7kG+qEC2P?= =?us-ascii?Q?5KwDyNKYWgsqwT08LjGrzyjDBvsSYSzJ+iVOHLJNhUeCkq2CvTX2SNFIPZa6?= =?us-ascii?Q?ZxYpVP2Vx49NLD5meI/asKkRwGPbOAP8n5IPA+Gp2UfHqfPe1v8kSRZdOPj+?= =?us-ascii?Q?8m5DTIvpFQy3jMOHjbKwwVuRnultz91cXMSWdh0OxLi+8e7XVd2QBkYjxUlo?= =?us-ascii?Q?BxGrgh6sVlbEfxyXTtwOhi2Gx6hQpJRO637IVXToiuCmhDtqI9PTNQaCeX5B?= =?us-ascii?Q?ESAJ/TodoeSbBq4B0tLdq6wxYlNiciHcdgOXWd/gq4JuUNQvVXVXZ5ib84hn?= =?us-ascii?Q?fX473ryT+FATU0M6+R5HsqFF6Af9TCYL9a39npv2ldmHUCyrHUXsUnc8XmC1?= =?us-ascii?Q?3AZ6o2fLPp9Sp/8VaGETbQWCl3qvn3Sgi1ilA97Jjo0Qq58Vy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uJ4XyZHNagbmoWUqtE0QO8Te1bnjWRI6qsJtNUVNENJ23KbsnYn?= =?us-ascii?Q?P/MIlqM7U5UZ2S+BpWrijwVw3cxv8tSgwRSL97L5L1c2y8d88ASxHfJYe1SR?= =?us-ascii?Q?Y7dXZLxPaJ17KgUf8xa9Jdv+vLZ6jQMrGFGhxAAu4LWWaK2QJ9JsVZNbxgd8?= =?us-ascii?Q?Ng+omDB2XzNral4+2U97W0opOlMPWeddaISgH4nvId55ygKg7A1IP0B3F8I7?= =?us-ascii?Q?o0pYxr5Z+U/d7c/MV+Eb/f/A0qorsB64gQtu/ByphvKAeAkVDjQKcLTRPZGo?= =?us-ascii?Q?JA=3D=3D?= X-OriginatorOrg: plvision.eu X-MS-Exchange-CrossTenant-Network-Message-Id: 4b526dfd-5ddc-4128-0758-08dadceb686f X-MS-Exchange-CrossTenant-AuthSource: VI1P190MB0317.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2022 09:21:25.4972 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 03707b74-30f3-46b6-a0e0-ff0a7438c9c4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bjxU3KQI7pz/40Gf4RlCj3BrVDJMSrl/sfGKtl8jsZkYznH83o0KeVWZnpLry/Z9kdaExoXlalQchWzeMLCjfRJgnfI6RaPJzHjnvklFo1Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PRAP190MB1764 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, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 Hi Linus, Adrian, On Tue, 13 Dec 2022 10:16:57 +0100, Linus Walleij wrote: > 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 Just in case, here is an old series with reserved-memory solution: https://lore.kernel.org/lkml/20220806085818.9873-4-vadym.kochan@plvision.eu/T/ But, what about to start with PIO solution (which is conceptually easier solution) with checking on ram size and then develop better one ? Thanks,