Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2172757rwa; Mon, 22 Aug 2022 03:33:08 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ahqZOJnGbfH8Zsxm1qDy8ySliTeGNuRPVFK7JfVhsCS7WDipy77kNvWLJYyNP1YVhItlZ X-Received: by 2002:a05:6402:448e:b0:446:69bb:9853 with SMTP id er14-20020a056402448e00b0044669bb9853mr9227142edb.299.1661164388236; Mon, 22 Aug 2022 03:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661164388; cv=none; d=google.com; s=arc-20160816; b=oyoHsytasRJZMV1FpGOLCqPSYOUUsT3Lr85uROt88i4dowTq1yLuypjpUB+9Y9IxJc 8D1QMZlmJxkNJKjYNW83Hbx3Gh2inqnbylZiUmGtlH5mElrripzWTkdqmpqlG9T6U8wx IfmnNSKkkiJPnjcX/TdikG5hyFHK+TOrSF9drtfxl2LyWoBTkRHqJ9Xj78Q9/b1Cq/Nt zjPuOdg1fM+4o6lMraoadabrYAMpigylVoZRhFOfMlEOXQI3P8kHuGgNGtH7er3Dhn5W d5H+Rp5OLasrdKD6zOitLS7T2FHNqUGIJfq4drTS8u+BZKKp8XGnLwO17SjPfQVJmFtV QQIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=qaCXlF9vXe7egOKQ5Es2XFbqzCbBnxuX6i0MoMOYonQ=; b=1K/hhl561CDPRpzLJ51EydotNuuqdiJwx+0gy7oAmC3S2HcGhG/13mWTq4sc8Qh2s/ lJrmnYUtVif/wiJIEfCYX5aEFkpe197eYHALA/0LZ0RFgR78f0OJh3guXpkqZ3Ug7w2G /kZnsy9YCmn21DKZ3BEmwHb+x2wQ0RPb9V4r5TCBGw0C89IOKscURP8v9lsUiQFZZdRg famQmkaL/+uu3OdMTZCvqzb8A3B0MKTdDrNkc9Lmbzjvgwl9V/rJwhM1JYgL/x1aUT54 XJwSg7FGMwapIrmpsnZvX3ndeYabAA8lpWaAaE76gcyuKSZjJT3L05y67SQ7Z1gT0oBU +AsA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v23-20020aa7d9d7000000b00446b90b1ee4si2109621eds.29.2022.08.22.03.32.37; Mon, 22 Aug 2022 03:33:08 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234061AbiHVKGz (ORCPT + 99 others); Mon, 22 Aug 2022 06:06:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232398AbiHVKGy (ORCPT ); Mon, 22 Aug 2022 06:06:54 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D31672AC77; Mon, 22 Aug 2022 03:06:50 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B675513D5; Mon, 22 Aug 2022 03:06:53 -0700 (PDT) Received: from [10.57.15.77] (unknown [10.57.15.77]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C0A723F718; Mon, 22 Aug 2022 03:06:48 -0700 (PDT) Message-ID: <3b88438d-1bb0-e980-b4db-1f8663dc6042@arm.com> Date: Mon, 22 Aug 2022 11:06:43 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] mmc: sdhci-xenon: Fix 2G limitation on AC5 SoC Content-Language: en-GB To: Christoph Hellwig , Vadym Kochan Cc: Adrian Hunter , Florian Fainelli , Hu Ziji , Ulf Hansson , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Elad Nachman , iommu@lists.linux.dev, Mickey Rachamim References: <20220808095237.GA15939@plvision.eu> <6c94411c-4847-526c-d929-c9523aa65c11@intel.com> <20220808122652.GA6599@plvision.eu> <3f96b382-aede-1f52-33cb-5f95715bdf59@intel.com> <3d16ebad-ea6c-555e-2481-ca5fb08a6c66@arm.com> <20220816205129.GA6438@plvision.eu> <94888b3b-8f54-367d-c6b4-5ebfeeafe4c4@arm.com> <20220817160730.GA17202@plvision.eu> <80d2538c-bac4-cc4f-85ae-352fcf86321d@arm.com> <20220818120740.GA21548@plvision.eu> From: Robin Murphy In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 2022-08-21 07:17, Christoph Hellwig wrote: > On Thu, Aug 18, 2022 at 03:07:40PM +0300, Vadym Kochan wrote: >> It works with the following changes: >> >> #1 dma-ranges = <0x0 0x0 0x2 0x0 0x0 0x80000000>; >> >> #3 swiotlb="force" >> >> Is it OK to force the memory allocation from the start for the swiotlb ? > > It should be ok, but isn't really optimal. > > I wonder if we should just allow DT to specify the swiotlb buffer > location. Basically have yet another RESERVEDMEM_OF_DECLARE variant > for it, which shouldn't be all that much work except for figuring > out the interaction with the various kernel command line options. We already have all the information we need in the DT (and ACPI), the arm64 init code just needs to do a better job of interpreting it properly. I'll see what I can come up with once I've finished what I'm currently tied up in. Thanks, Robin.