Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp275782imp; Thu, 21 Feb 2019 01:00:37 -0800 (PST) X-Google-Smtp-Source: AHgI3Iasz3mH5tyIn0ai85LJXs+PS10I1RIA9/rIKucnGqlcG7XnmOvpRZ6P7lQI6TUWF4gUomb9 X-Received: by 2002:a17:902:8348:: with SMTP id z8mr19920514pln.151.1550739637778; Thu, 21 Feb 2019 01:00:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550739637; cv=none; d=google.com; s=arc-20160816; b=u+/PXjVNkEzwb9/O0uZqQ9qzR/hbg8RWXwWIzJtNxz3Jranq8CKGHZAr9XwE8ZnKfR aCTs+a0Uj7sJOmPvTqtC5Lfugz8gZgOo1UqlLTTwuNUpq+A1ruwA244Y8JZ6OKZe96jk eKok1jeZKcJ8pB8K/P6Eu86R1ux88szmU9ntVqPpyucG5yT1eKQqkJgQCrcI06DMNipU dFwjvAZZFis0YEFrYKC7BVAIn41HimnI0Avbc38R29fUYjBxRPl6aERG9DQ+xCAG0g7e gGBoifE+oHvm1UYEiSxiQkbjr9NBITotiLz2F+CMBTwZaLDMUAs6SWFdV3paT+xz+4mF Ec+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wnSbCQyycLq8oDMSUhgJQnPqOcaOQETywggOOu0R6lI=; b=vOoprmASh5X9meQxtf8tareiCPhZrgSzFJg9szDFUrbg6vvypVGp+Vim3BFBeVp99S VVi7ECZ6moUEpMHI93+LPDmjGVP7TZK1OduzXz2LQI3XpZor/fW6efcD0dxo3LaPMuU6 9y3P8cui+JJ8D97J95T9gte8GpUN8uqQV9oI5ogDp2xTBoBn7yDr6Wxrj3izBU+vglFJ p8IIcOduq1ZebOHM8lJcjGMdrKepZrNyAff6M28X3LCIUpxmjohPIsZP4BSFgQro3J4i MZLj4t+0W+70sV+Uz7Y7U/6hrKQt2iJXdCwxexATjL6n9wKBv3iqY+VtpXjho8ydwnva 5q6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=hBULB71O; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e92si22342810plb.152.2019.02.21.01.00.21; Thu, 21 Feb 2019 01:00:37 -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=@broadcom.com header.s=google header.b=hBULB71O; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726656AbfBUI7x (ORCPT + 99 others); Thu, 21 Feb 2019 03:59:53 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33906 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726251AbfBUI7w (ORCPT ); Thu, 21 Feb 2019 03:59:52 -0500 Received: by mail-wr1-f65.google.com with SMTP id f14so29123168wrg.1 for ; Thu, 21 Feb 2019 00:59:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wnSbCQyycLq8oDMSUhgJQnPqOcaOQETywggOOu0R6lI=; b=hBULB71OefHi5mYgZdKD1NE3EtIoi6jjLVuJ5bgwUamg8KMCN/oJs++IvkvVIlDPNp ABMbt8JMoBMPK00QmqScGwRUU41MaM7o2M/pqgB/4tQaZZrlj2XBA9LMuh4wMmLaGRjW nuVR6S83wrg7GjFGcidYXG+OKmyA9jt27mTFs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wnSbCQyycLq8oDMSUhgJQnPqOcaOQETywggOOu0R6lI=; b=Djt1wHfn1f/ztyU0Gk3h+IHlQTCxlWZVTCOTE0zhLKHs24lp8PWDkhvcPeLpJp7IWN VKjqdKflKUScSLpf5kVXO8LGlYpTdqk7K7BaxUtVckNCiGWI5IY0FUXc5RNodgEacArb YJNs/C3arM647vBio+AI95YmXQAE5LDJwI6QmXfWk12CTkmmcu4dxa+hLHZKpHpWdmB0 KqeaiigrSFMrPW4DPQc64D7/hXNvv2HldIiFprDVghvBsKdurIgzTSHNHjFlT5hvCFAu igmYm9XsP6sglI0DPTyZtEV74gnRXGuPAVDsIL8u2Ez8lNYDLSYZDcaFTxtVlFpWXKg5 dhew== X-Gm-Message-State: AHQUAubuJFAiAMT5/WMY8QvSqxaEqW/QTIHwDZcUrtoiJYr5qYpBWBcg OKT3MgLqc5fyFgARpbCMeQu9/uO7lspEAOJz+sgRyQ== X-Received: by 2002:adf:9ecc:: with SMTP id b12mr27875564wrf.83.1550739590847; Thu, 21 Feb 2019 00:59:50 -0800 (PST) MIME-Version: 1.0 References: <1548411231-27549-1-git-send-email-srinath.mannam@broadcom.com> In-Reply-To: <1548411231-27549-1-git-send-email-srinath.mannam@broadcom.com> From: Srinath Mannam Date: Thu, 21 Feb 2019 14:29:39 +0530 Message-ID: Subject: Re: [PATCH v3 0/3] PCIe Host request to reserve IOVA To: Bjorn Helgaas , Robin Murphy , Joerg Roedel , Lorenzo Pieralisi , poza@codeaurora.org, Ray Jui Cc: BCM Kernel Feedback , linux-pci@vger.kernel.org, iommu@lists.linux-foundation.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, Please help to review this patch series. Thank you. Regards, Srinath. On Fri, Jan 25, 2019 at 3:44 PM 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-5.0-rc2. > > Changes from v2: > - Patch set rebased to Linux-5.0-rc2 > > Changes from v1: > - Addressed Oza review comments. > > Srinath Mannam (3): > PCI: Add dma-resv window list > iommu/dma: Reserve IOVA 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(-) > > -- > 2.7.4 >