From mboxrd@z Thu Jan 1 00:00:00 1970 From: poza-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org Subject: Re: [PATCH v2 0/3] PCIe Host request to reserve IOVA Date: Thu, 13 Dec 2018 16:16:59 +0530 Message-ID: References: <1544697174-6029-1-git-send-email-srinath.mannam@broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1544697174-6029-1-git-send-email-srinath.mannam-dY08KVG/lbpWk0Htik3J/w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Srinath Mannam Cc: Ray Jui , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, bcm-kernel-feedback-list-dY08KVG/lbpWk0Htik3J/w@public.gmane.org, linux-pci-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Bjorn Helgaas , Robin Murphy List-Id: iommu@lists.linux-foundation.org On 2018-12-13 16:02, Srinath Mannam wrote: > Few SOCs have limitation that their PCIe host can't allow few inbound > address ranges. > Allowed inbound address ranges are listed in dma-ranges DT property and > this address ranges are required to do IOVA mapping. > Remaining address ranges have to be reserved in IOVA mapping. > > PCIe Host driver of those SOCs has to list all address ranges which > have > to reserve their IOVA address into PCIe host bridge resource entry > list. > IOMMU framework will reserve these IOVAs while initializing IOMMU > domain. > > This patch set is based on Linux-4.19-rc1. > > Changes from v1: > - Addressed Oza review comments. > > Srinath Mannam (3): > PCI: Add dma-resv window list > iommu/dma: IOVA reserve for PCI host reserve address list > PCI: iproc: Add dma reserve resources to host > > drivers/iommu/dma-iommu.c | 8 ++++++ > drivers/pci/controller/pcie-iproc.c | 51 > ++++++++++++++++++++++++++++++++++++- > drivers/pci/probe.c | 3 +++ > include/linux/pci.h | 1 + > 4 files changed, 62 insertions(+), 1 deletion(-) Looks good to me. Reviewed-by: Oza Pawandeep