Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1750761rdg; Sat, 12 Aug 2023 15:06:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnPwQtyW4IKz47bGqOvluu97OkPA55FgevG3zWcf2JGAyCnBc+S0RK2FqwOueeYEMp9nDp X-Received: by 2002:a05:6a21:33aa:b0:130:d5a:e40e with SMTP id yy42-20020a056a2133aa00b001300d5ae40emr5867535pzb.7.1691877968780; Sat, 12 Aug 2023 15:06:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691877968; cv=none; d=google.com; s=arc-20160816; b=Zp0nvyDyUp62BfrOXN5JLKZ4JmPxhSXtyeKqBLJxHv34pwMOBIfxi6MCQ1zgbA/Xql HA1TfU/F3JQEVvfoUhKUqncB7liv66eVQ9h6JrdyirbXUrmUvjHJKKzsL8yuE0mlc/ub jvE6d7J11uQ/3okqTgp7XpHA7uKMxyRqjOvKISLwR2zRI3cUxmJO8V1Wc8bqDYpv+wCq yPCOJfWWnTRv0xMdbsY1sRsl9BH37DX0cPQhZ4qHdyf0s5Q8dbMGUQv2JnKTNQTVMetC qBCX17qqfbSZLAJbauz3/JKaQcuPzcl+qFPZ7x+9Z7BQZASznuafcJ1J6m2k62As1BuD to5g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l29-20020a63701d000000b005644828d510si5444148pgc.670.2023.08.12.15.05.55; Sat, 12 Aug 2023 15:06:08 -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 S230444AbjHLUpP (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 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 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(-) -- 2.25.1