From patchwork Fri Jun 7 10:54:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 13689686 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EF1B1C27C5F for ; Fri, 7 Jun 2024 10:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hPswh3XwliozN8qbGcnwNGFAxvoRzi1fIOCRpwzNfm0=; b=Z3MKMdNbkRJ9Y6 hxXqLv0lt2sv6roKNeLEtCnBD3nByyfGL3k+i9W1/1l1CtxOSJn3HeCfdInitZh56a1dvGzD7Z1vQ +zDh1u/HHiZnvfuQ0QlXkN1Y0roRmATlnXz0sMThsS++H/TNMOM6apBmlYGcMMYNDgiH9kyacMXRh fvW2hiFbEHflDb7FQxNEAuRZvUg0QohXAmnbW/FWdHvKWHua8gluTq+wDSCZMebjdVgunxBKww8r3 bMmtujvX5n7JAgliZy74+/keyS80NzA+3EeyYoRFF3RSw3koVmassgZatqveZv6kgxcbnzOXSieHf FeWSpReRezn78Mkve+2Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFXIa-0000000DcVQ-1l3E; Fri, 07 Jun 2024 10:58:20 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFXIX-0000000DcTz-2KBx for linux-arm-kernel@lists.infradead.org; Fri, 07 Jun 2024 10:58:19 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-4210aa012e5so21061045e9.0 for ; Fri, 07 Jun 2024 03:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717757894; x=1718362694; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E23ckA0xadlytKJal2qSBXEtmljMi1zr8ZXYYtdmN4A=; b=FEF5M9mgtPyEbzImxU11eXFnxuhJRGDx7InGoTi4Dh8hsJaATtw/SD2aD34T7QzO0k 3YA+27utl5Va7VfJG8RDDrVBeWHkIz0R86V/8L5MB7+n7SDtWGdqJdbv9hLpBQI7Tyr9 pAe8rUfWJXcn8pykMTxnY9ArAmmpkAiHTAneNgRfjtCGyPXq7NVS5BUGdnsZddFPOCak urbrp7Mpa7Ajbng942i9ywvDPQIZ/bBVKdHyWFor+ZM730eFWeldV629tZJXNMKwhomj WC7Zbe51jkEsXmG9yQiE5Slv0BNI3Gl1B2TbzNSC/ETT50lvPSPIo0LvJHRy223WQAWg 45xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717757894; x=1718362694; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E23ckA0xadlytKJal2qSBXEtmljMi1zr8ZXYYtdmN4A=; b=GO7OJ3h1AEoh0RhONPM55xTdpfSFTBjXgYxxKP91fuq7tOxsO6+TpjWXA+vuqi/nEH MzxwejDLh02r+YVJ75KhnUqRf29wy48X9sYNql2LSEY+jLZdHvFnN24GBin1350sW04r p0ezkTr3n7V//TyzJN5ip8WEAUT5V5oHMg22Hffqe9w0VX6AaOJRRA9a0UkoEwEgajfL 3dalBYOG6JtI3aeI+kqxsni9EsZ63MpViI6fHsponGU21JhXVHSSIRFjom9v5KZVNJQK EB5feQOssNdBdCYWPgcegOpFSJd7kPo/9mZNd5IXrf50hA2Vv2GyAjJ3eF6tzrjgWEVI 26lg== X-Forwarded-Encrypted: i=1; AJvYcCVK/Tb0ybjK9ZnGyXFJpdt/ERivGxUZUSG1qyGnGrWnfjYIafZc600qUEGQQoUk1/TPb2U4vzY8qYeYUHsKjs4SxnHkYWyWhTwZy7AMrFOafuNRGUc= X-Gm-Message-State: AOJu0YwRN5HRSshPsnNGMVqypv6Hdjfs64NOe68Rx+YNgc59xvoS/9nJ l9dpBeLa65C3Glzn3FvNpP3rYKfG9hhCUaxiJlcQQhEBIWVGZaFGaaBg7alUwhg= X-Google-Smtp-Source: AGHT+IGRk39n3pVihAfcUidolbx9s1isjujkvF2fjkdGKFvNrj6NpUKCDBYYeIDpXOQ0xz5Q/dJp6A== X-Received: by 2002:a05:600c:1d03:b0:421:54f7:c294 with SMTP id 5b1f17b1804b1-42164a20c82mr19745275e9.29.1717757893769; Fri, 07 Jun 2024 03:58:13 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35ef5fd1c5fsm3739485f8f.113.2024.06.07.03.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 03:58:13 -0700 (PDT) From: Jean-Philippe Brucker To: will@kernel.org, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzk+dt@kernel.org, conor+dt@kernel.org, liviu.dudau@arm.com, sudeep.holla@arm.com, joro@8bytes.org Cc: robin.murphy@arm.com, nicolinc@nvidia.com, ketanp@nvidia.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, Jean-Philippe Brucker Subject: [PATCH v2 1/3] dt-bindings: PCI: generic: Add ats-supported property Date: Fri, 7 Jun 2024 11:54:14 +0100 Message-ID: <20240607105415.2501934-3-jean-philippe@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240607105415.2501934-2-jean-philippe@linaro.org> References: <20240607105415.2501934-2-jean-philippe@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240607_035817_832415_C6B1CC22 X-CRM114-Status: GOOD ( 11.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add a way for firmware to tell the OS that ATS is supported by the PCI root complex. An endpoint with ATS enabled may send Translation Requests and Translated Memory Requests, which look just like Normal Memory Requests with a non-zero AT field. So a root controller that ignores the AT field may simply forward the request to the IOMMU as a Normal Memory Request, which could end badly. In any case, the endpoint will be unusable. The ats-supported property allows the OS to only enable ATS in endpoints if the root controller can handle ATS requests. Only add the property to pcie-host-ecam-generic for the moment. For non-generic root controllers, availability of ATS can be inferred from the compatible string. Reviewed-by: Rob Herring Reviewed-by: Liviu Dudau Signed-off-by: Jean-Philippe Brucker --- Documentation/devicetree/bindings/pci/host-generic-pci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml index 3484e0b4b412e..bcfbaf5582cc9 100644 --- a/Documentation/devicetree/bindings/pci/host-generic-pci.yaml +++ b/Documentation/devicetree/bindings/pci/host-generic-pci.yaml @@ -110,6 +110,12 @@ properties: iommu-map-mask: true msi-parent: true + ats-supported: + description: + Indicates that a PCIe host controller supports ATS, and can handle Memory + Requests with Address Type (AT). + type: boolean + required: - compatible - reg From patchwork Fri Jun 7 10:54:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 13689688 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0D9F2C27C53 for ; Fri, 7 Jun 2024 10:58:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3RMCRcpibiZHj3Dbqjgr2BGq0NDt3fP5DNMItlgn3q4=; b=qHFw9+nMH+akSN Tkb7DPW/iGouYZASYq6e0OwBcL8BhqNduwaaVYuwovO7UYYITqDO+cTGUzaUW/JQTl5k3OTA6khed lP/VVYHT0wu4TYxbgQE0Dgugf2NCit7B7aOlLVzcYV7gMbJXNVv9bXwCmVr6/JJqunf5aTszJNQRQ K3qL+0PowDgUbl3Jpfldwm87UMufGj+99EhUdDM7bpFKya8wewqXUc/e1NGsH4HPRNVkLkw6/54xh +arUpVlpXsfRLYYJYmP2q1k8VzO7hSv8mGe/XvMXHYbNPpDcqnYKuaChHHE+UcAcg+d1z0YFNs2iQ ZU/JbQy97qUMQhPeh/kQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFXIf-0000000DcY4-1abg; Fri, 07 Jun 2024 10:58:25 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFXIZ-0000000DcU7-22Rt for linux-arm-kernel@lists.infradead.org; Fri, 07 Jun 2024 10:58:20 +0000 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-52bc335e49aso1840e87.3 for ; Fri, 07 Jun 2024 03:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717757896; x=1718362696; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MDcq5k/0ttuhuW1s9eNFA8PIx5mHSgVIL61fKi53/Ns=; b=rj0b9AGovfma22D88YdsQeB+HfJAaRgjwzMIml5Vt1L7gi3oRvRNoZORlGS/iSLI8A 6yDAa2ixmXE6J4IX1gAUvsSW4wquXmMWOxMoPPMsGybCO+UoLjfFjLgcIRa/QcvKmNiv 1+QO6YKt6AyVW2VJjdHv7T6ADsmkxqCVZp3YDcmIc5WKTcKyH/GulfSMCdNwCp1B1OcY RN8qwZdtG8Ozipg1b4cBDXh8b3xsCdnpnbPn1qD/yWl1J/nEBEXGW8W5ajWLFRZQme9K QDF/UsVo9OLF4OnWS3orNRs6G0M4aNfEiGHJqBorF6ToUGPFdWpOX86US/x3atireWXK 4HVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717757896; x=1718362696; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MDcq5k/0ttuhuW1s9eNFA8PIx5mHSgVIL61fKi53/Ns=; b=b3nOuy1K+cQrC0Kh69JgGJUE0yIdRofJDOdatphgjRcphKHGeFRzXK/c2vFscBqnyO bINCJ9Dgac3QpRE4/He4duyafcuFJET6mQ4tpVIerajpTqJDM0diKclhCZw60PSaDlr9 6aRHrwMRjZFjI0W/ktQSgPLsA3mJ2eL8BtXyB+1rtfLRwzXmXM6kEAgmiipy6XVBFKGP C9Mntxz8ln/PEK6G95vBWlS1nt82hLlXc9P93K0MuyIMfNv7RRGnd80z1e1VuRIir+49 WmzVJ3bKXXOZzv+detksPNjIqYVI0cF4gXjbOYEvO1jR6llIhtJH56iIIy3TZ8DLVP12 r/Mg== X-Forwarded-Encrypted: i=1; AJvYcCXL/7MmcW06utyQDgOkW1vOiRGrR8pTEJ/6RQMNLgYUIoL4r6iYRCHnrp9TJW9HoYn00jtQOhON9LI2ypugBQaJOXxJyV+HEc+TqTJwGLLkk2nDj4Q= X-Gm-Message-State: AOJu0Yw4J7gThtz0doc+AMoQaQdp7yrM+p8URZDSWgjRey8L1Gmhwlnv D3kkTS+mLSB5TDdWHPVFIbdecOxrqARky94S+TjC64ff0LO0I55gGwj3WKHaYkE= X-Google-Smtp-Source: AGHT+IFKBOo5vF96Rp1eu8L7oXMzKFGJxvSnCqz7HcFftnGZ/GajF1ZZWz5V+BiNnKs89U3LBYWGnw== X-Received: by 2002:ac2:52b5:0:b0:52b:b173:7490 with SMTP id 2adb3069b0e04-52bb9fea373mr1207405e87.68.1717757894609; Fri, 07 Jun 2024 03:58:14 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35ef5fd1c5fsm3739485f8f.113.2024.06.07.03.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 03:58:14 -0700 (PDT) From: Jean-Philippe Brucker To: will@kernel.org, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzk+dt@kernel.org, conor+dt@kernel.org, liviu.dudau@arm.com, sudeep.holla@arm.com, joro@8bytes.org Cc: robin.murphy@arm.com, nicolinc@nvidia.com, ketanp@nvidia.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, Jean-Philippe Brucker , Jason Gunthorpe Subject: [PATCH v2 2/3] iommu/of: Support ats-supported device-tree property Date: Fri, 7 Jun 2024 11:54:15 +0100 Message-ID: <20240607105415.2501934-4-jean-philippe@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240607105415.2501934-2-jean-philippe@linaro.org> References: <20240607105415.2501934-2-jean-philippe@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240607_035819_547073_E3BAC444 X-CRM114-Status: GOOD ( 11.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Device-tree declares whether a PCI root-complex supports ATS by setting the "ats-supported" property. Copy this flag into device fwspec to let IOMMU drivers quickly check if they can enable ATS for a device. Tested-by: Ketan Patil Reviewed-by: Jason Gunthorpe Reviewed-by: Liviu Dudau Reviewed-by: Robin Murphy Reviewed-by: Nicolin Chen Signed-off-by: Jean-Philippe Brucker --- drivers/iommu/of_iommu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c index 3afe0b48a48db..082b94c2b3291 100644 --- a/drivers/iommu/of_iommu.c +++ b/drivers/iommu/of_iommu.c @@ -105,6 +105,14 @@ static int of_iommu_configure_device(struct device_node *master_np, of_iommu_configure_dev(master_np, dev); } +static void of_pci_check_device_ats(struct device *dev, struct device_node *np) +{ + struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); + + if (fwspec && of_property_read_bool(np, "ats-supported")) + fwspec->flags |= IOMMU_FWSPEC_PCI_RC_ATS; +} + /* * Returns: * 0 on success, an iommu was configured @@ -147,6 +155,7 @@ int of_iommu_configure(struct device *dev, struct device_node *master_np, pci_request_acs(); err = pci_for_each_dma_alias(to_pci_dev(dev), of_pci_iommu_init, &info); + of_pci_check_device_ats(dev, master_np); } else { err = of_iommu_configure_device(master_np, dev, id); } From patchwork Fri Jun 7 10:54:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Philippe Brucker X-Patchwork-Id: 13689687 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DE422C27C55 for ; Fri, 7 Jun 2024 10:58:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gR5mZJ4ZOHQRA4gK9HCeVdo3+52IpOafAyWjmDdszkA=; b=Zv42W31rhUrN7p F+e7W4Dz6T8m95KWx+zKzTG0FzkZagXQGoY1gC5QpxizUGlLWWcWHdBMKXlDme/vL6GR/xdOWDDFl exEzTjZ2jxVcZBlIaaZSAp8gAQ6cX7g4+Orml2NqWLWFruH+4A80PWDC/CVtVLM5YnNJlcT8KmL0A 6Pd4NOns+1ikatzedDu6xljohN8tm3wm7PkD3IvKar4y1fC5KwjTIgfznW8LOGB/PrkmvJB1GTPku VcYOlfr6zoXg9wHr5WdI+8m37hn73dGdx9AaW/+7LtAV0rdLDxBtnRdkLnDu/PlZtvyv87znAZgYQ LmoZEj2r+mJbsbfcgtPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFXIg-0000000DcZ1-2BvB; Fri, 07 Jun 2024 10:58:27 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sFXIa-0000000DcU8-0Agj for linux-arm-kernel@lists.infradead.org; Fri, 07 Jun 2024 10:58:21 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-35e5604abdcso1950096f8f.0 for ; Fri, 07 Jun 2024 03:58:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717757896; x=1718362696; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bjEqBh5QuB3m0cSYJF5Sevhh+bm02dLUsdiKcr4Stbk=; b=c9h9nfjZFBsLm7D2bG4mn5NdTv20ydjf7YfD/SA61F0mvVgUon6sYGz7rpZ0/tOzJj 6MBiA2qOX0uy6CUE6upNQgowEYDRXNBtDQzGAfGRBZAKOi4LRjZ5ZaXCTg0te2J3TSRZ Xvr9kfq9/c/sXTy2NMSlJqEJMytSv6/kyHBGI1Df8/c3G2+YD6i5k2uQhoJwjVzeiu4y lxjBaS/Bb4mWKNxXJwCE29qUe2t2BYfDXR3+FI021ANbaWLC2A6YIyBJXnlbgPywDPRv 5JHFAo42YeHt8ckEv3M2ePVpiSPX5io7oFFGu58xdQylaxzoT3ka43Nbv9J+cOILnqh5 nQQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717757896; x=1718362696; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bjEqBh5QuB3m0cSYJF5Sevhh+bm02dLUsdiKcr4Stbk=; b=VzmIiZJf60LP/wvYkmu1Nbl4tsgaIWitV1ocEkEuAcRMIdFIxdTaAbEpft8X1/9P9N swQ0Urp8dEHpBWvXoyhTjJ7OT47hbEkiMwzWFFzpqkTam5bLvffwBki4HHu0jqJQd1Zq K9m6coKG+p8eZgZhWpqcfj8yvCI/4/f4iVVnOaZC43qPrbC3wC9FcrR+qK/2u6I+wSbZ OSa+t/5xm+GhCJlfcKdprZl0G1TbsdSSEgcarEBtwT3BlkaSVoOEbGvPNxkak7YW51Od 0uyRZpa5IoValKtTutZVSfAN7Pzmt876w098SDQPqgU2itjzmoufUuD700dlUM45/xTE T+sg== X-Forwarded-Encrypted: i=1; AJvYcCVlzFRIE1CmHM2u2rP7J8ykTlLR81n5RJ8vbXkSQQxgM8lElsLgMavJ5wtzsOMBzA+nzOVLIhZP6MMb1cQleOG2bhhElEChbi6PJOHcq/m7oalMWWw= X-Gm-Message-State: AOJu0YyU3Vcz5jl3tSR5PG6wSkqZKNv0w6wmWWvjYAlMNhgKwVaKZNvj 61uLhlk5YtES/PD1obu86ITggCKqa1UnsrnpiOoun8imMl/minvbGHUMBX7uYOs= X-Google-Smtp-Source: AGHT+IFX4FLgpNJ8GaYxoZxGPgBzPu85Hq8iJpZp9pD83eICpSj6uwNOOa6+5UgHkLP9J9gGJbKS8w== X-Received: by 2002:a5d:5090:0:b0:35e:ec8f:cb3d with SMTP id ffacd0b85a97d-35ef0926828mr4809560f8f.0.1717757896329; Fri, 07 Jun 2024 03:58:16 -0700 (PDT) Received: from localhost.localdomain ([2.221.137.100]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35ef5fd1c5fsm3739485f8f.113.2024.06.07.03.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 03:58:16 -0700 (PDT) From: Jean-Philippe Brucker To: will@kernel.org, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzk+dt@kernel.org, conor+dt@kernel.org, liviu.dudau@arm.com, sudeep.holla@arm.com, joro@8bytes.org Cc: robin.murphy@arm.com, nicolinc@nvidia.com, ketanp@nvidia.com, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, Jean-Philippe Brucker Subject: [PATCH v2 3/3] arm64: dts: fvp: Enable PCIe ATS for Base RevC FVP Date: Fri, 7 Jun 2024 11:54:16 +0100 Message-ID: <20240607105415.2501934-5-jean-philippe@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240607105415.2501934-2-jean-philippe@linaro.org> References: <20240607105415.2501934-2-jean-philippe@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240607_035820_106313_2DAF3B9D X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Declare that the host controller supports ATS, so the OS can enable it for ATS-capable PCIe endpoints. Acked-by: Sudeep Holla Signed-off-by: Jean-Philippe Brucker --- arch/arm64/boot/dts/arm/fvp-base-revc.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/arm/fvp-base-revc.dts b/arch/arm64/boot/dts/arm/fvp-base-revc.dts index 60472d65a3557..85f1c15cc65d0 100644 --- a/arch/arm64/boot/dts/arm/fvp-base-revc.dts +++ b/arch/arm64/boot/dts/arm/fvp-base-revc.dts @@ -243,6 +243,7 @@ pci: pci@40000000 { iommu-map = <0x0 &smmu 0x0 0x10000>; dma-coherent; + ats-supported; }; smmu: iommu@2b400000 {