Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1482026imu; Tue, 11 Dec 2018 21:47:43 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xi0SJWIc8M8OIdIJmB8KTuJC204ENdMaeAqqmpI9mPVssSZySj9DVu2/sdy9cIh5M42+/Y X-Received: by 2002:a63:e19:: with SMTP id d25mr17080599pgl.272.1544593663588; Tue, 11 Dec 2018 21:47:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544593663; cv=none; d=google.com; s=arc-20160816; b=vNVH5DLYR53dpkjO9ZkK495VdzjpRc3EYUJ/FwoMtdHrVWMc3xeAY2xkRYF6yFG2FQ gipavYurAQjFhgSfzqnmIlWpmTPenmyg8xN3Wb0F6sFiTgYZIGCRtRgjKTKCKFHAA8xh d3MP7A4h0DEIXuhtyhfIHnrGs95P5JjzZIVlSt5osJ+djvEi4XM52is4mpy6UaTEOUh9 1eTuPrhAIg682lBCsg1gU4XdGttgJdoa7zaZT7uKxhueJtDgQIC6pp0y8HRedeBGPXia NiSj+QMtGvQjl9p46R9JnNv5RBq9II/vhljGE8DSYq/UdGC+/iuzjKPU4lLuKg3XeE/9 ebFQ== 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=iYjpjhqWEVdwBSRetUBfnfvuhWcZhfMXzJpWRMq2qFU=; b=qQnRx+ZsqAe0YmysakgyTkAWw0MuYs3HrUbl2j2AF2tN3HjVJi/g8gdSeXwbD26+KY Y5fYvUaMdpt65Zajrj7mV80ngdPR1dIzG8exe6Z5FJformbwBooKWJwMeDh1e1DQXq6E P4qmQWaZt3tDXZy9flbJ/EhI3t7q69eO/tIvR8lIupOvS+2MtgzJEQkLHWB43/QlF/Ko Cub4TNTxCJhkrzTA/jNoBT6VDwdwJ9bHcFbTijlASL6YWmrnqHxLnNzVsGtcbpA2OnMw BtXSulXN/I3PBG+8eB66GSlP3A3cL6p+pq8KDm3lMvZrg3rpo8AwNc3aiC0j7mgoBooo Qwfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=dOmth98p; 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 10si13675032pgk.101.2018.12.11.21.47.26; Tue, 11 Dec 2018 21:47:43 -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=dOmth98p; 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 S1726490AbeLLFqa (ORCPT + 99 others); Wed, 12 Dec 2018 00:46:30 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46426 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbeLLFq3 (ORCPT ); Wed, 12 Dec 2018 00:46:29 -0500 Received: by mail-wr1-f68.google.com with SMTP id l9so16301537wrt.13 for ; Tue, 11 Dec 2018 21:46:27 -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=iYjpjhqWEVdwBSRetUBfnfvuhWcZhfMXzJpWRMq2qFU=; b=dOmth98pTDIjOQZ70Stz7JOrHKvOAwm0y87/L587hKd46tEdpGlBBeYY6MbBR6TSLC neKsajk873us1d/w11Z4bqo1fXTiCKBeDL6Em7krdzObTeUWmkh2ONBNQkr/+Hjacq3n SbWEUidJtWZ1RCTe0zjiohtspg91WzlBDGyQ0= 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=iYjpjhqWEVdwBSRetUBfnfvuhWcZhfMXzJpWRMq2qFU=; b=Dw2vE8dajYoqZEEIVGx4UgLcxN8xrTFDY9j2Zkf5Uvvn0E2ji2yzhebpnF75Y7+Wek 3p/UFz9QvLl6J1w7SpU6Ds8luQLPKD9i3rQP4Lb7hHaVh11NLQDsONP/eBV9KGxEKuSE vN3o6C26Ap4k4BB3W3wXp4Mla8UHk6IWO6YFKR4ekcuMB2EAW+QeyzSa5NjumzZwua1U SKP+etxuw/JbayryZya9RtJH4tkCRjBqFewOYaAqlLfIRaJ08Wu/B4LGMYHOJZ9tNl7Z cb452lW9vAPTIe9n9Qped0J6gqaH+bpEi5icsPWJX2gT0uw0OKhEAZgFAedhAvQBa/LS u2/A== X-Gm-Message-State: AA+aEWZGQnkmpyJdu7CPoeO5LHA/JBUq1n64UB9vI0Fv7r8njb4RpEIw mejHdj+SkPvNBzue2iIzLiq1qA== X-Received: by 2002:adf:f5d1:: with SMTP id k17mr17321627wrp.59.1544593586849; Tue, 11 Dec 2018 21:46:26 -0800 (PST) Received: from mannams-OptiPlex-7010.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id z206sm2015947wmc.18.2018.12.11.21.46.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Dec 2018 21:46:25 -0800 (PST) From: Srinath Mannam To: Bjorn Helgaas , Robin Murphy , 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: [RFC PATCH 0/3] PCIe Host request to reserve IOVA Date: Wed, 12 Dec 2018 11:16:06 +0530 Message-Id: <1544593569-8923-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. 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 | 49 +++++++++++++++++++++++++++++++++++++ drivers/pci/probe.c | 3 +++ include/linux/pci.h | 1 + 4 files changed, 61 insertions(+) -- 2.7.4