Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3658489pxb; Sun, 7 Feb 2021 18:06:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMZQ02IpUcGP1Fvyl/8cE2XNuGAHH6BKv3UU72wq3dDGDb+wWxkrkWugISUKb6loqGQf1+ X-Received: by 2002:a17:906:fca1:: with SMTP id qw1mr13833340ejb.130.1612749969704; Sun, 07 Feb 2021 18:06:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612749969; cv=none; d=google.com; s=arc-20160816; b=XXyO+nfsa6QALyu0VJu38r7xddP7j74lmSa/m1ham++Ungm7FqqWvtrda/2DAJW3Hv p6uXGqDYpxs1B5OUZFBLKw/KkgXlA/s5ztUZtu7uvU40oubWsEfw+sshfxugb0/KI0rs hnu6LsfjL99OgoMBdCRqJAl05qL/ihSUn+mlmlCB8+ta/L+3GYee6YJvDwx/kJNgqoGb C85rjGw3QFKarWBulVDVu+eg5gYSrjEGvNcgwO1NTnrse83s0oIY2aRzsXB4qcf8MafJ jtpgL8QxCnQ8Hjm4USmvhRo5WXksGFC+eFwAWAN1gUFvY41YCO0/8SsoojeoYVOYgRRu TGFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature; bh=cUtFIfOlkE66hKZ1iSDwIL9jGzTqS4QxLAUcpT4MTbM=; b=kJcjsdii4sU8U72JAtyG/kHMpI3wCgVGbXhQueM34YoTw3RgSTxvZ0DmOzr7pbjiql OuPKoYm1OGLT12VYTtWrbR2GNI3RsbTxkVduuVIfh7Pu9J0OQbmGR32qect673wwAT2C jPY9HCYsTj9DTah1C9BaO6jCESWF/RudwoS/T84GArDDGPsyNQB0Qb3NxAJiqAhOLgqv hnPWxm4W15DpLEE2Uy5ALddA3rf7oik5u5hqSknsf7XsF4CRkGBMjHcEXD5aZWoU+Bc3 jMyd+uuu7kgTt3RC+Opmf+BSz4xX9oeH8JeBLzG34G1APOfd9/peBaI9JTqzDKysYCXO 71OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=apsu4RIL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si10498677ejr.416.2021.02.07.18.05.45; Sun, 07 Feb 2021 18:06:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=apsu4RIL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229707AbhBHCCE (ORCPT + 99 others); Sun, 7 Feb 2021 21:02:04 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:55664 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229570AbhBHCCC (ORCPT ); Sun, 7 Feb 2021 21:02:02 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 11820AkW123340; Sun, 7 Feb 2021 20:00:10 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1612749610; bh=cUtFIfOlkE66hKZ1iSDwIL9jGzTqS4QxLAUcpT4MTbM=; h=Subject:From:To:CC:References:Date:In-Reply-To; b=apsu4RILEZPLAGEaHnF7AHIxBXnqVsHiIrfJNRUxWE9k4p00Fibsx4Hh8JAMM5eGc MSTyzFqD8sBnIJ562Xr7lFcGOEb7I8Q/G3tid/MpGf6Iygj74Mhbofy8hM+CD7d/kW Qq2+En/2/+KkTOGFb+zks4j20TMRza3RHrWg72NM= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 11820ANp120619 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 7 Feb 2021 20:00:10 -0600 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Sun, 7 Feb 2021 20:00:09 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Sun, 7 Feb 2021 20:00:09 -0600 Received: from [10.250.232.75] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 118205jW070770; Sun, 7 Feb 2021 20:00:06 -0600 Subject: Re: [PATCH v7 0/2] PCI: cadence: Retrain Link to work around Gen2 From: Kishon Vijay Abraham I To: Nadeem Athani , , , , , , , , CC: , , References: <20201230120515.2348-1-nadeem@cadence.com> <15abdca0-d1e1-64b7-4a9a-d7549f035e01@ti.com> Message-ID: Date: Mon, 8 Feb 2021 07:30:04 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <15abdca0-d1e1-64b7-4a9a-d7549f035e01@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lorenzo, Rob, On 12/01/21 12:45 pm, Kishon Vijay Abraham I wrote: > > > On 30/12/20 5:35 pm, Nadeem Athani wrote: >> Cadence controller will not initiate autonomous speed change if strapped >> as Gen2. The Retrain Link bit is set as quirk to enable this speed change. >> Adding a quirk flag for defective IP. In future IP revisions this will not >> be applicable. >> >> Version history: >> Changes in v7: >> - Changing the commit title of patch 1 in this series. >> - Added a return value for function cdns_pcie_retrain(). >> Changes in v6: >> - Move the position of function cdns_pcie_host_wait_for_link to remove >> compilation error. No changes in code. Separate patch for this. >> Changes in v5: >> - Remove the compatible string based setting of quirk flag. >> - Removed additional Link Up Check >> - Removed quirk from pcie-cadence-plat.c and added in pci-j721e.c >> Changes in v4: >> - Added a quirk flag based on a new compatible string. >> - Change of api for link up: cdns_pcie_host_wait_for_link(). >> Changes in v3: >> - To set retrain link bit,checking device capability & link status. >> - 32bit read in place of 8bit. >> - Minor correction in patch comment. >> - Change in variable & macro name. >> Changes in v2: >> - 16bit read in place of 8bit. > > Could get GEN2 card enumerated in GEN2 mode in J7ES EVM. > > Tested-by: Kishon Vijay Abraham I Can this series be merged? Thanks Kishon > > Thanks > Kishon >> >> Nadeem Athani (2): >> PCI: cadence: Shifting of a function to support new code. >> PCI: cadence: Retrain Link to work around Gen2 training defect. >> >> drivers/pci/controller/cadence/pci-j721e.c | 3 + >> drivers/pci/controller/cadence/pcie-cadence-host.c | 70 ++++++++++++++++------ >> drivers/pci/controller/cadence/pcie-cadence.h | 11 +++- >> 3 files changed, 65 insertions(+), 19 deletions(-) >>