Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp961926ybx; Wed, 30 Oct 2019 07:52:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqyYy4zJ3Zy/nwoGAjsc8AqwWydbnFq201hVfKcB5/6tVlMpvXtITQ88HdHU6m/aZHacdWQn X-Received: by 2002:a17:906:19d9:: with SMTP id h25mr9551700ejd.60.1572447146636; Wed, 30 Oct 2019 07:52:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572447146; cv=none; d=google.com; s=arc-20160816; b=ePH/1jmMf773Eh9rIrYaHaU8Rz50gSHOao7yd2CK/v0wKXw+r5hVHWX4MDOnjSicWL rl7d6W2emDVVbgoj/xiY14c2O4iZgeAvsEYAuyCef2jeEx0jidGVLzw5Rvgn6ecxyfYx uUqh/qfGxdP4hWMHcd2ZOJ3MHUKw2bY2AHDC0fIFN3nHYxzs8n7FZunLXKHz8DKVMCE5 lpYWJnFIcFk0OHb/E8zEfCWpbhihdZy8zQZyLzoUdirq5dfxZdbUkW4yVMCJ7EosO2xq deDuX/sEKwiKDKvSp+wXw7Uyh5OtoVBD5UMiGSKSLty7wv3bi7BoKcWOZSRybqV7hVDj mPPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4Y4iht9Rf8rP8iM4hgf/kyl3RjwevstS9i/1JZEfS+g=; b=D5eWQAfbrAmNwhnSUd8wn+gK9jYmjbWn5YX6XjcNdd9m1hHPOOtvSeJXVI7Gj+zbUH zcf4Yd1cV7tKqWeUAlgbLIY/+XbCugX/Rgl6tA65q23oHz5ByKPF9gsTvFhMrnuEQG7M ZBG03qCQK2Q+Hg7aY/tkqoazfY2bjL8pdBykXSGemK3yy0ZQjTVeDLC133SWDkoBkX6w OBMSdwLUepnXin/Rqc9+yKmkcoUFX9VNCbYCIpoeZw1/JfLrnzLTKEu6ImM0sflBfzqh mxTdIfenS/86cd5PtCBnkaq52GAL+z35A3C8tpY45FbrEs4y2TdbDIqM9JN+wOk6B5dp ZBRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=11FfZgDS; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17si1602221edh.379.2019.10.30.07.52.02; Wed, 30 Oct 2019 07:52:26 -0700 (PDT) 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=@kernel.org header.s=default header.b=11FfZgDS; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726665AbfJ3OvX (ORCPT + 99 others); Wed, 30 Oct 2019 10:51:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:57588 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbfJ3OvW (ORCPT ); Wed, 30 Oct 2019 10:51:22 -0400 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E67412173E; Wed, 30 Oct 2019 14:51:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572447082; bh=pRODZ6zh4eXRE4Y4JwFU3ZKHlgD9TQRTXk+jdqEMR/Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=11FfZgDS1Kc++XBDo7UDXjFBbBwL6SQAX8nqkTaY/71fiz5LlcV7qu5FQHY3WEZrg TQudhggghLGvkoEusSH8lQ9yOKUbko6SaA2wJk/dRJB7MBPXQLT1k45czTG2yAIQb/ sRnkWFddLobRZwVnUTZpqx5J3VtVrhRdM7nah8bI= From: Will Deacon To: iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: Will Deacon , Robin Murphy , Joerg Roedel , Bjorn Helgaas , Lorenzo Pieralisi Subject: [PATCH 2/7] iommu/of: Request ACS from the PCI core when configuring IOMMU linkage Date: Wed, 30 Oct 2019 14:51:07 +0000 Message-Id: <20191030145112.19738-3-will@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191030145112.19738-1-will@kernel.org> References: <20191030145112.19738-1-will@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To avoid having to export 'pci_request_acs()' to modular IOMMU drivers, move the call into the 'of_dma_configure()' path in a similar manner to the way in which ACS is configured when probing via ACPI/IORT. Signed-off-by: Will Deacon --- drivers/iommu/of_iommu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c index 614a93aa5305..78faa9f73a91 100644 --- a/drivers/iommu/of_iommu.c +++ b/drivers/iommu/of_iommu.c @@ -177,6 +177,7 @@ const struct iommu_ops *of_iommu_configure(struct device *dev, .np = master_np, }; + pci_request_acs(); err = pci_for_each_dma_alias(to_pci_dev(dev), of_pci_iommu_init, &info); } else if (dev_is_fsl_mc(dev)) { -- 2.24.0.rc0.303.g954a862665-goog