Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp680048imu; Thu, 13 Dec 2018 02:35:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/XsfXIVrjPyQM1lDxqLJfmsueY8lgBIrA1eLgFLjmXYxoAymbBdcrv8OISgimY0gsvBp8nk X-Received: by 2002:a17:902:8f97:: with SMTP id z23mr23484854plo.283.1544697337235; Thu, 13 Dec 2018 02:35:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544697337; cv=none; d=google.com; s=arc-20160816; b=M7vQ8Z1NIuutkD6PqGfFhSPc1l8UBdrzXBZ+sTPGXTvqtw37l10nBxfEzxVW3UWwNx yGpYEK8duDMf2HUjfXIlS3a6s+meGdK6+Uh2Mf1DwC6euIDCaVcJlQPDzrYvVhvD2C1p +hPzJAAUpCzajnwRy/1xXTadqXdEwmKzf1Ijj2Fz9UezvFh1ZFegD+HX7UbpLh8AgFB9 nZICDKXHmgske3pIF62BqxYXtn+8E0ZSUaAxbqI6bwQjtu1sKEjyhkJAJ34QCgldW/GD if9niZwvstameg0Nv3bb3Rf0aa2EKIbF6bRawEqY6AMmopGwwRY1g615QAyoOfoxj+6p 3lUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=LtSfmEgwkXLipM2oN/tEJZ5i0J/LLJlpLAEY0OfDiU0=; b=YdJTgACYTA2SquV1oQvWTKSuGILM/6eR7GCJsEBu6hoSCQxvHUx5OdrmS3Pbg6Lwts 5mrA6oC6SqMn1DqsBci/pe30/Z1iDYbK0PK7FQeHgnGB9RvNZ+QDdmNAAsLw+9BaFbmM UioYTvwX4eg8xtXZ22uZ+9E22THH9pOjjWd1Olqm7HE4aLdXfobgEI9+Ta9GAAMrfx+g 0rMCV+Sfp1/m74FM2Hs9Zt/NUjVOO9w7MQpMtNg4ZBYRhAY9WR6ESDjKY27tKjHMJuEO 3ID23enjevtiFKWwmQYVEEUziXYklJs9Eoei4eUOOGrTribkwSSaCSIepfgmg2XGnIpH KC6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=JLHOCAhg; 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 bj2si1226834plb.27.2018.12.13.02.35.22; Thu, 13 Dec 2018 02:35: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=JLHOCAhg; 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 S1728598AbeLMKdS (ORCPT + 99 others); Thu, 13 Dec 2018 05:33:18 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33158 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727374AbeLMKdS (ORCPT ); Thu, 13 Dec 2018 05:33:18 -0500 Received: by mail-wr1-f66.google.com with SMTP id c14so1461659wrr.0 for ; Thu, 13 Dec 2018 02:33:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=LtSfmEgwkXLipM2oN/tEJZ5i0J/LLJlpLAEY0OfDiU0=; b=JLHOCAhgzFEHqBtVgFMSU0jr0FAQyMNzUj1aOGT/ZKypZXOwMexKpagmP70EPmgHAe 1CnUr3h+ie1j36w7LOjwn88K8z1eRP1js/WvHpquqqvRIjlvse+hx0smY33i7evJyosl CUlQTukUHKH/vmSGSg9T8KB54MenF3tEZHNyE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=LtSfmEgwkXLipM2oN/tEJZ5i0J/LLJlpLAEY0OfDiU0=; b=GWWAVjKXIFrqwXnc+r/aIiHQSMjdnu0vMx9Km6RMLg/g90q89AZC1HJqHXe3jhiQ4a E3ogENHLq2ssJGH54hBUThLRhmZunNRTtHbxVZXb/ljqOs26kVbvC2UZKQF1n5Oopy/p 8IZ+hfdglw0FZsjbzrbVvx/Z//Nvl5AXAg+rVaSVN2crYQUk5xF6Uwe2EfAAugX1bRwh y14rbp58gCt1tXM/jL8kOR2WKYaWJE0zep0/54Vt9jqWcVXAS7RtB4Sqc7BIYDLW3i+Z EWuIHawB9qICuxAalRTSZA0pVj//4Pcushq9ecWWZFoBPL0SMpezu6z92PfUp3PWRruG fiew== X-Gm-Message-State: AA+aEWbgn3cC6lD2mYDsAB9icPaqon+ClDfQ+kjHwr9KecyMIlv/W5x0 rWPANwUncBij0XfjN8XQ9IsOhA== X-Received: by 2002:adf:e407:: with SMTP id g7mr19801956wrm.277.1544697196160; Thu, 13 Dec 2018 02:33:16 -0800 (PST) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id x76sm3327058wmd.27.2018.12.13.02.33.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 13 Dec 2018 02:33:15 -0800 (PST) From: Srinath Mannam To: Bjorn Helgaas , Robin Murphy , poza@codeaurora.org, Joerg Roedel , Lorenzo Pieralisi , Ray Jui Cc: bcm-kernel-feedback-list@broadcom.com, linux-pci@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Srinath Mannam Subject: [PATCH v2 0/3] PCIe Host request to reserve IOVA Date: Thu, 13 Dec 2018 16:02:51 +0530 Message-Id: <1544697174-6029-1-git-send-email-srinath.mannam@broadcom.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.7.4