Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp285414imu; Fri, 25 Jan 2019 02:14:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN6yic4WfgDf7wetB/gkdNMn6b2xr37u3YFVO9BAGOZZmsc46ZuzUbAf6Xg5h0dNxw0843vU X-Received: by 2002:a63:381c:: with SMTP id f28mr9418744pga.330.1548411269087; Fri, 25 Jan 2019 02:14:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548411269; cv=none; d=google.com; s=arc-20160816; b=wN4vFMM970PaxV/qdUbmvunLSxZ6av8wCkChKasrzUU5xkqxH5qDIjZ0xxQFELY2TN 4b6WKQ0EYYFpgDaohnfx08l/MRaXrpsxFz+PbXfiqS8wT4jGoKro6Mr+6KJVA45/dzfO PhYtF2SeF6eFZbac41vwA6Sb6WN7I+o1pPTkrf5IoX5daWXFERmLdq55+iZRlKr64kTV z+zN2LlFb7PfVq2Ljn73jj47ZlSA2XTuQJvCNiM4SWSONIl7UyVdsxkusCHGyeHoXZ4p mQxBXY83r7m4Ky6OIKYhpb9GP/azJFKiFIxCherfcB4hofZyXfQlfM0U4tj1epmhQ5rx AfQQ== 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=RMdk5cmmpnbcM5aDvhKNw8euAJU+GnQUtHbH0E7iD/U=; b=mflfN9H9mau2wMslwMT2u0d22afuKeD6+iKavEjnRsoUmwNq/RrJ9yKbsYPPcRN1EO qsfc/Em2vaGC04GBHPI7SSQKQiSfasZfpBUfNuImm02cYOkx9OKNZFX0mGmuTtaX1SB6 cOVp5qoU5bVydYWZ+LHVGcnUaf9GSgTPIpIhnjdzIoREy1BUfEvNCQPRVV7f5iIi2sp4 T7LvxYLjyLgCI9UCxjn3ea/QFw2jY28MqLZKldUcCVLq3sG4zcD/spvmXlCkmfVe/fD3 Rou3t30pNvav/vZw/WPFcWMhiHdwMTyM1ZSwMdwBvEoFTcX58q4pLm1cHV/N1DzBXQqF 9pCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=g9PzHzGp; 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 o9si25306388pfe.63.2019.01.25.02.14.13; Fri, 25 Jan 2019 02:14:29 -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=g9PzHzGp; 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 S1729059AbfAYKOG (ORCPT + 99 others); Fri, 25 Jan 2019 05:14:06 -0500 Received: from mail-yw1-f67.google.com ([209.85.161.67]:36706 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728400AbfAYKOG (ORCPT ); Fri, 25 Jan 2019 05:14:06 -0500 Received: by mail-yw1-f67.google.com with SMTP id i73so3684907ywg.3 for ; Fri, 25 Jan 2019 02:14:05 -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=RMdk5cmmpnbcM5aDvhKNw8euAJU+GnQUtHbH0E7iD/U=; b=g9PzHzGp8la7oxzZTPfTFoQm9IFcfqOdD7nOidKQb/q+pllpO6tb036MeN79ZAGaRz x5eLsgaA5vhvk2rd2o3M0JqT3IRxlGIgTDFMcUNCMSur1wHfyspOd8kQ6rZSbTqsSnZR LRRXlA8xxOPEGrWT3NKM8TbNdUu8LClFN8DNA= 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=RMdk5cmmpnbcM5aDvhKNw8euAJU+GnQUtHbH0E7iD/U=; b=pz5YIlRDMYi3KLZ3IFxqQUfYH4NV1uKQmwHFcSRuhz7r3Gqph6e1szs6NN/eSDPuk9 fCjKjK/0cm5CAOGxnabv0g2g+8YSR706YhACCAlACuJAOsYfzCQ2W/IwJ1BfxxygqL6G llOBpxESPWCT3KM6BrIRDZpf9O2/neEpLB3oSJhza7C5dGvOT4fFNKwGokdsYAiVmyQA i+O6XH3+lHS8CQcRYISvBZfVaF4x8U/hWS3MDzmfS8PuOGOgnMifjFOAABjR5SgJ1OfO qpHdVypORu+tK8A21iulab6bo39B6kQ1R34TYOWvwjDns3G1Klj4vUweNUqYyMSCjzz3 QqLQ== X-Gm-Message-State: AJcUukePT5xOoVpqUIOFOeX9PPBgvSOe4SMQhsfN6QADfuJhRH9eqycQ EGRGPUrMZUqy2+NbcjIv2EtLOQ== X-Received: by 2002:a81:60c4:: with SMTP id u187mr9997130ywb.345.1548411244973; Fri, 25 Jan 2019 02:14:04 -0800 (PST) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id x203sm11868695ywd.41.2019.01.25.02.14.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Jan 2019 02:14:04 -0800 (PST) From: Srinath Mannam To: Bjorn Helgaas , Robin Murphy , Joerg Roedel , Lorenzo Pieralisi , poza@codeaurora.org, 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 v3 0/3] PCIe Host request to reserve IOVA Date: Fri, 25 Jan 2019 15:43:48 +0530 Message-Id: <1548411231-27549-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-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