From patchwork Fri Mar 7 12:47:33 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Cassel X-Patchwork-Id: 14006439 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 67D50C19F32 for ; Fri, 7 Mar 2025 12:49:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=5wnb9n5PdaD1fyqxLnaCLGyQ1mvz7HTX5SyFZDbzKe8=; b=WCiqf0qD5/9ES+yP7PasQjiOt7 D5I3KSk1MwSnDB+VCimf2AOoK68KY44/KArep60sdyfBz0DGFd70HgKnUvS5JF4JF2xC7ieMMfQO5 20mB1ewvIB20/WAw4qGOWYDfjVLC34iX4AsiLROMty7CG61vO/VbNPJPh2qtQEcLGmWwQagkjLoZN dA0XlYunI+DEFNjCrmQ9R8diXaWZEGUAObTOuaqJohZi1Cb2l2mjNClwMzOKgChiUY8veCpsNWEWl TDeBhiOCydOyVSpV3dv71MPUIY0V+GRzesUU2paYKbV564jyyh4yveHwDKic5pQXs7JUCVCQicIzX 9dr9bQ7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tqX8p-0000000EDth-133Q; Fri, 07 Mar 2025 12:49:27 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tqX7C-0000000EDcx-12Or; Fri, 07 Mar 2025 12:47:47 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id A18335C5B74; Fri, 7 Mar 2025 12:45:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 161CDC4CED1; Fri, 7 Mar 2025 12:47:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1741351665; bh=eebdH19nLfGoKUJNH34HZZaZP6NaKX6DEIiCpB3f6Lo=; h=From:To:Cc:Subject:Date:From; b=u7ViVJrDpqN+mT4mZT+xSYO2ClkyDG9Rl99wfsKlhmViodfOMLWWUHJKtOp67z7nT oaydjmQqP0KikpvOZaSWE0JTQ9S95T+hV8DvWUvEdITFnCe2cucrUxRCzEuVFyvDQY V8rLg8FzZBFUeoKXmJqHvnzjvSHpo7BMXHebAETsmLH4P7Nb0Oo+fTEcz4cv5syV3G mGWqlvXg7ep2XHJr6MqLmpzieiVm8MMCmMfTfmQmVpDCAjiKWDzVuhShSYiQJS+xIt eAEkg5QsmDm5gu5cmJje6w97zEGAL59WjM+eXgx2Ak2W8CGMAOt2krjPR2rWi52U03 80BvM/yyeOf1g== From: Niklas Cassel To: Jingoo Han , Manivannan Sadhasivam , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Rob Herring , Bjorn Helgaas , Heiko Stuebner Cc: Shawn Lin , Damien Le Moal , Niklas Cassel , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH v2 0/2] PCI: dw-rockchip: hide broken ATS cap in EP-mode Date: Fri, 7 Mar 2025 13:47:33 +0100 Message-ID: <20250307124732.704375-4-cassel@kernel.org> X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=933; i=cassel@kernel.org; h=from:subject; bh=eebdH19nLfGoKUJNH34HZZaZP6NaKX6DEIiCpB3f6Lo=; b=owGbwMvMwCV2MsVw8cxjvkWMp9WSGNJPvXpafsFIIHRO3LyM0/ZJLn79s6V+hJ5c/mP+0eq0x OS7z0/f7ihlYRDjYpAVU2Tx/eGyv7jbfcpxxTs2MHNYmUCGMHBxCsBEvGUYGTo19W8/XZPRc6aj 7iLTj3npXuf+hp1Jvx/89vBylrqP0qqMDP2LPSJ+vV737pGQ7IN/b38oL/r19/Xta8azzwdvSwi 7JMEOAA== X-Developer-Key: i=cassel@kernel.org; a=openpgp; fpr=5ADE635C0E631CBBD5BE065A352FE6582ED9B5DA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250307_044746_337076_82602C79 X-CRM114-Status: UNSURE ( 8.35 ) 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 Hello there, Address Translation Services (ATS) is broken on rk3588 when running the PCIe controller in Endpoint Mode. This causes IOTLB invalidation timeout errors on the host side when using and rk3588 in Endpoint Mode, and you are unable to run pci_endpoint_test. Solve this by hiding the ATS capability. With this, we do not get any IOTLB invalidation timeouts, and we can run pci_endpoint_test successfully. Changes since v1: -Created a generic function to hide an extended capability. -Picked up tags. -Improved commit message. Niklas Cassel (2): PCI: dwc: ep: Add dw_pcie_ep_hide_ext_capability() PCI: dw-rockchip: Hide broken ATS capability .../pci/controller/dwc/pcie-designware-ep.c | 38 +++++++++++++++++++ drivers/pci/controller/dwc/pcie-designware.h | 7 ++++ drivers/pci/controller/dwc/pcie-dw-rockchip.c | 27 +++++++++++++ 3 files changed, 72 insertions(+)