From patchwork Sat Aug 12 20:44:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Achal Verma X-Patchwork-Id: 13351952 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 AB69BC001E0 for ; Sat, 12 Aug 2023 20:45:49 +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: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:In-Reply-To:References: List-Owner; bh=nvJcaeTZtEzI8wkm3i3b06R/OoSzMry8sWvoae4aMZY=; b=NhXU6+wVTkQHr3 xNGHKHjWqWq6miIhINUPborb2pjFlQ0GskMob8U3NKG3eXi2P07tUVrFQ0lyJGDAuw2uuj/csi0c/ BFlKZkUHZ6hLx9JfbXOHD74hmhkwyiP1M1eXtw6ffp4mj3skxRErm+fp9qmfsT9Vf4DAEOtEDMbt3 1/4GmvdwZCC1c8DuxYzT0YrtcJ+TVbZlHSBfOmUSCIXxj9hs+5n16LhTgCDVuaFfgQtZd8Kd5j0vy zk7PqzIvmb2miy22IUJguE+X1BgUQGQ7pA6Z7Nl7lsOOrUHpm/BmQDpnhimd8xlmZEeFRmJeP4ANJ ehHOZw+DrpuHxuKTEMWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qUvU8-00E18U-0u; Sat, 12 Aug 2023 20:45:20 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qUvU1-00E15w-0f for linux-arm-kernel@lists.infradead.org; Sat, 12 Aug 2023 20:45:15 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 37CKiwF4020192; Sat, 12 Aug 2023 15:44:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691873098; bh=mmTcvOmzvh1G2Zt3WeekOlPqyTFdfYlojqbxNI4oq5U=; h=From:To:CC:Subject:Date; b=CzlDSXwgexJz7dMJeUorj33WNDFdUZpajxLO/v+AifXaX1lN85lwj4NTnIoR+oSXb no2LcnwC+3jL67J4LLb/X9lj6TZG2TrFDHwmjFMYFnq7XicnfCffRX5V7QbZcf5hJl feHy9/jSL+BfxoW7sfa96O78FyA1ntLIDWvxzWDA= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 37CKiwLa030536 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 12 Aug 2023 15:44:58 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 12 Aug 2023 15:44:57 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Sat, 12 Aug 2023 15:44:56 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 37CKiupT081100; Sat, 12 Aug 2023 15:44:56 -0500 From: Achal Verma To: Vignesh Raghavendra , Lorenzo Pieralisi , Krzysztof Wilczy_ski , Rob Herring , Bjorn Helgaas CC: , , , , Achal Verma Subject: [PATCH 0/2] Advertise ARI related capabilities. Date: Sun, 13 Aug 2023 02:14:53 +0530 Message-ID: <20230812204455.479510-1-a-verma1@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230812_134513_288928_9B663E6D X-CRM114-Status: UNSURE ( 9.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 This series addresses the limitation and flaw which are occurring due to ARI capability related bits not set correctly. First patch addresses the issue of PCI_EXP_DEVCAP2_ARI being not set even when J7 PCIe controller in RC mode supports ARI Forwarding. Second patch related to the issue when PCIe controller is put in end point mode, Next function field in ARI capability for last function stores current_function+1 value, which is supposed to be zero to signal that current function is the last one. Achal Verma (1): PCI: cadence: Advertise ARI Forwarding Supported Jasko-EXT Wojciech (1): PCI: cadence: Clear the ARI Capability Next Function Number of the last function drivers/pci/controller/cadence/pci-j721e.c | 4 ++++ .../pci/controller/cadence/pcie-cadence-ep.c | 14 +++++++++++++- .../pci/controller/cadence/pcie-cadence-host.c | 7 +++++++ drivers/pci/controller/cadence/pcie-cadence.h | 18 ++++++++++++++++++ 4 files changed, 42 insertions(+), 1 deletion(-)