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: 13561 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1899242vqi; Sat, 12 Aug 2023 14:15:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfnzPZKUg/EHqbtMk+PIEQFPQYVgnPoRSGBMz1DAmj//J5JfH4rtTcYByapjWiaS8OlCWv X-Received: by 2002:a05:6a20:431f:b0:13f:7ffe:855e with SMTP id h31-20020a056a20431f00b0013f7ffe855emr5492570pzk.45.1691874953180; Sat, 12 Aug 2023 14:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691874953; cv=none; d=google.com; s=arc-20160816; b=r7SBnytFiQx7PZYgoaMTbd1xTbU2WVjqGPXRWhiMchWbtJKK9Zz2hPrJVbEzLuntwQ y2/9Yi+LZCV0TqVq6G/pL1nbCXISof6Wlt5A6MV3uMUjoAMbCun+TUfDX9EV0hI9H/c7 hbkpPGwtIv5jULX3QhKuWynDwnK+Sv2XI9dRhAP1Qhy3pPvVJBUpoMvp3NVrFQnksbpI xhGQVwOvo6cwoGZevW6zMEka2/t8qTeh7e5JlpbIEVBzJat6HFU56VKU3+zaSXe/wGvi nEMZlgQd1rwSlsH7JUku+ZillKZSfycKKBOFsMhMzhhRTBMfau5CQGwHHmnJ9BOkeixC wbQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=mmTcvOmzvh1G2Zt3WeekOlPqyTFdfYlojqbxNI4oq5U=; fh=4+QNO2839kvtV879JoFcwEUSTfyGD2La5TgUGYYmoxA=; b=Docd7Vha+XJ8QKOgBO7XfbxpHcXha6ZuCkhmsKB+iMMQMgU/EbtUPwW5BipSW+f+4V l50sMLoc90f9d+CTLSaeQkcgP1qkS43Kb9FlfQDvrQaPHXt4CLZ9XRU96B9wyg9sURNs pkHBZi8BR0ZXcuPB/aGU0aErkR3uFH6uxrRM+ed4rJwjvaib7D6Daf8BbKMf8eLOTkfU dZBmVcUvPW6O0+ViLtwOQMgxkJz0oJfSJk1feC+deaIlYPZ+CKZ3zv8egmTAor1+qvDt cBN22x8omG63hts9BYgYweWetR0J64AxXgxBjpUbJdnU7ir7/d4gk1TB5aBfsBq3Jp/t E2Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CzlDSXwg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 81-20020a630154000000b0055b12581c75si5294958pgb.675.2023.08.12.14.15.40; Sat, 12 Aug 2023 14:15:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=CzlDSXwg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230462AbjHLUpP (ORCPT + 99 others); Sat, 12 Aug 2023 16:45:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230379AbjHLUpN (ORCPT ); Sat, 12 Aug 2023 16:45:13 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33AE9171F; Sat, 12 Aug 2023 13:45:16 -0700 (PDT) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774059470805392752 X-GMAIL-MSGID: 1774059470805392752 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(-)