Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp397356ybv; Wed, 19 Feb 2020 01:47:28 -0800 (PST) X-Google-Smtp-Source: APXvYqxWUpk+fdf0Q1L3mHl7qJYf9eTB7egp7eTjZc6b0+Akm2/RYBscJSHfXvtM84gpg5puDwFk X-Received: by 2002:a9d:5e8b:: with SMTP id f11mr5370834otl.110.1582105648037; Wed, 19 Feb 2020 01:47:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582105648; cv=none; d=google.com; s=arc-20160816; b=AiT3f4zBqpETxCQxNW4x55nFZqMiU+YQWTShxsPom+27QA3RMIHKp5441+YRqOFnQ5 EXBNEc9ZoG5l4l29lsYaH1nYuUtE7IxpAiwL7FFHgR9cevAqwwBVhy9JQO5Rp5x3Mpff r3mxPwoJH5i/gbWdSHCzXu2avj/fDPgQ/B610sXjMkvkN+9UOz4ohl6mtcLB9ntEwP0s e7DZEU7ntb9h1PO66/K/j91tQ/YrGuOkax0XmCt72/HQlW+l8+xyM3xxHbO2UjXWvNXz HCGMurNZGbOZIq6r0E9BhtD40EH2GAtpgR6gjFm3E5PcQw/YOwPreRWy0Z6nDvJ2Yc5f R1yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=RaigmuoEHnfTUcsdJoNeLrztW4+jz99YY3AazcnnY/I=; b=IwwVlNMu3H7A7T73yeBbHLDRD9yIv0c1MzRw6PN/dDm8XnDanUcCJeea4DAUNTvb+Q f6KVd/t90+jWT2x/zjUkc0XEj94ZXTbSCz3uvLYBPE2Z3NYu1Fmrdcej1rjPrWIgbTXv mDyXjUT+5/AP/MHYKuvKNjBMtgwp4REv4d0FDtsuXXqz9qIA2vQN3QrCJ77EsN55kxfh wYT4rXKQl/+sQ/0+NOO6R2dJDPrnWAEBJOCoHA8HuQXmK5kegVF/LcrL4YfUf9VzMFNZ jcYPgi5ZmCebAL8dPDI4Jfs8kZHweEV5IVvkk8PuIq89SvArbNHCwq3vusaiHwp2W7xG d5EQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x19si840324otk.89.2020.02.19.01.47.16; Wed, 19 Feb 2020 01:47:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726652AbgBSJqI (ORCPT + 99 others); Wed, 19 Feb 2020 04:46:08 -0500 Received: from 8bytes.org ([81.169.241.247]:54824 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbgBSJqI (ORCPT ); Wed, 19 Feb 2020 04:46:08 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id 38850346; Wed, 19 Feb 2020 10:46:06 +0100 (CET) Date: Wed, 19 Feb 2020 10:46:04 +0100 From: Joerg Roedel To: "Isaac J. Manjarres" Cc: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Liam Mark , pratikp@codeaurora.org, kernel-team@android.com Subject: Re: [RFC PATCH] iommu/dma: Allow drivers to reserve an iova range Message-ID: <20200219094604.GI22063@8bytes.org> References: <1581721096-16235-1-git-send-email-isaacm@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1581721096-16235-1-git-send-email-isaacm@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 14, 2020 at 02:58:16PM -0800, Isaac J. Manjarres wrote: > From: Liam Mark > > Some devices have a memory map which contains gaps or holes. > In order for the device to have as much IOVA space as possible, > allow its driver to inform the DMA-IOMMU layer that it should > not allocate addresses from these holes. > > Change-Id: I15bd1d313d889c2572d0eb2adecf6bebde3267f7 > Signed-off-by: Isaac J. Manjarres Ideally this is something put into the IOMMU firmware table by the platform firmware. If its not there, a quirk is the best way to handle this. Regards, Joerg