Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp689927imu; Thu, 13 Dec 2018 02:48:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/VTgTUglcqprFmQr220o1c8ph24Jt6yDOCZz4pi97Nv1IqVg4yDMnOYS8AjVZDoz9YgkwF3 X-Received: by 2002:a62:fc86:: with SMTP id e128mr24724333pfh.54.1544698112309; Thu, 13 Dec 2018 02:48:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544698112; cv=none; d=google.com; s=arc-20160816; b=h741iNppf377AUEwusPAw+UzJjNHqWP/seFO+2AL3w+HZFv/+8MtB3Aa6c0BbyyFBi mYiw5G4brVM9zIb7Antncn/UxUHfrniJNiYujU+oVwcV3KIBADSosBFud4MGFfpo71oa QtimXHKrxk04QQJt/tBWybK2TAejjtUYUi43/CFdCf7M4hjRoxNL8GJzKQmaDNTAzuku X/CjWnbeXjgR+jpOxsqMZx5iGzlmr1NLEqFdzEkW155faBZ1NN1A61ap7iNT8xl3hMPI o7QRExTPzYuCcl8F1rkz+wRArR5soAt3kzB7YVzkWtLCV4t7tDbzWe5le1qviA0oNKS+ Z2Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=ygMb+viq4K43HEfNXYJMQWVT/s6x41yxBL7VewI4+a4=; b=RlXbfmxsnCTrEv5rcBPZOb1E38OOOaZS/BU95ApjfK7iNKNGHA31GMn74MWbShCevQ naftduIRGUMKFunBbzBGUinf597LnCaekCuffLbHqPmSjh8YBWbOVUKIUKvby9SDT4+y 2akaCDL1FUWg2rNzuANf1ZpoSIT9IaQAuYnw1NILr6H8Mr1OvLEnObxj1KF68Z7I7JSY d+e16UOKFmUIVtKnopPvelvMlAkxHLnDedm2TWVRpC1NqLqBRJk+Uy476V5EsDDjIald PI55moYwUh5mt1OXzzAALaYkVV8q9XCsVx8oOAS6hI3UL7c3ZLvx2lC292VT3jnydhbn jtmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=diw2Zgu4; dkim=pass header.i=@codeaurora.org header.s=default header.b=diw2Zgu4; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v16si1230758pgc.519.2018.12.13.02.48.17; Thu, 13 Dec 2018 02:48:32 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=diw2Zgu4; dkim=pass header.i=@codeaurora.org header.s=default header.b=diw2Zgu4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728719AbeLMKrD (ORCPT + 99 others); Thu, 13 Dec 2018 05:47:03 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:33074 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728541AbeLMKrA (ORCPT ); Thu, 13 Dec 2018 05:47:00 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 6BFD16092B; Thu, 13 Dec 2018 10:46:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1544698019; bh=8RVzQ0neZrDbY7ZmL49OKgK02r63FT7MY4uLkmtsS2g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=diw2Zgu4CNfPHObRANiQZoQM4HdbqOX9w3MAMs0VBXLcxFMVaVth5p38R8/2NkVic qYcnw8iyaqRmjNCWMpbtmoCkqLSYAanm17+lUhBiKWuUVB5PmhIaX+LYbj9DjvyD/x fKZq8+gUqLIYmoDWPnZTB3dTsVi644W787DHoji8= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 1979B608A5; Thu, 13 Dec 2018 10:46:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1544698019; bh=8RVzQ0neZrDbY7ZmL49OKgK02r63FT7MY4uLkmtsS2g=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=diw2Zgu4CNfPHObRANiQZoQM4HdbqOX9w3MAMs0VBXLcxFMVaVth5p38R8/2NkVic qYcnw8iyaqRmjNCWMpbtmoCkqLSYAanm17+lUhBiKWuUVB5PmhIaX+LYbj9DjvyD/x fKZq8+gUqLIYmoDWPnZTB3dTsVi644W787DHoji8= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 13 Dec 2018 16:16:59 +0530 From: poza@codeaurora.org To: Srinath Mannam Cc: Bjorn Helgaas , Robin Murphy , Joerg Roedel , Lorenzo Pieralisi , Ray Jui , bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/3] PCIe Host request to reserve IOVA In-Reply-To: <1544697174-6029-1-git-send-email-srinath.mannam@broadcom.com> References: <1544697174-6029-1-git-send-email-srinath.mannam@broadcom.com> Message-ID: X-Sender: poza@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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