Message ID | 20221013183854.21087-8-vidyas@nvidia.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp429432wrs; Thu, 13 Oct 2022 11:54:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5sTc6F1XAbwECS+97Tn+NkWdxtuF50pqdc40O2+UDn2fnWKf0sr/Cn1nmCwxWsK1eg1jbO X-Received: by 2002:a63:26c3:0:b0:46b:1dab:fd88 with SMTP id m186-20020a6326c3000000b0046b1dabfd88mr1126927pgm.251.1665687274736; Thu, 13 Oct 2022 11:54:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665687274; cv=pass; d=google.com; s=arc-20160816; b=jJMTF74zThnyIlMMo0U7R4fBocIaMuiKVzDt+GzBw0kQmKoDxIPdppuixFnh9tpM94 n6+iEizrJtDxhJqBPI6GgqZ+lyGo5qh5b69Nh2oSeDOzfoYz9RhUj9m3DSf6V7ENa3mG xiabFfy8l0L5ssIabsyyz/rDs5AGyhIHdaZ8PctemzsjVE0ScxKWIgQ0aFIvBrjKFla/ FuShDgs5fJ2MJubGC0CuZs4PDCaP93OjcJaMr9j5w+nkuh01GT+AR54VYYQerdHAURzV 5nA59ykDigClVT0NL36dRXagoMiISOjL0b9JTDWOqq4byaJaIBkhs6n3RuDa9L6uwxm0 ch/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=XeP2n9kvp0meTUaeqD+YLu2d/BVbWALLwpD5bIe6CYA=; b=jqfM8jaFgiJaf/BaBaObJrohJI4hFXE87aTT9LkRYbY5sbwaGarpaYjyMOeMEcOlba gYXCIoYa5NCS2n46DQpSUeD7XGKEfF81jGAmFWzbOWsnsuweT96z1gEw2GtF/QgchCuD x7Uyh0ykKSskX0MOy2FRdezB+3FGzdUqNtC4xpI5H1kTbw6Fab4re0NeXkGyKy+yUCM5 7Tk2lb3Hvkd6RQkLEk8KGa0phSH7d8I6NcpYGbbtUX1Q517jVZuQj3g774pHEMQ1HV+D 22NL2KKk6CWcGxCWpIx37bd//hev2PF5f0d12uw8J4SD9/P6qGtPDPcu9LcY5K2sEpU3 atkw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=gUBAjen9; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a63b605000000b00450b99448b0si153373pgf.341.2022.10.13.11.54.22; Thu, 13 Oct 2022 11:54:34 -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=@Nvidia.com header.s=selector2 header.b=gUBAjen9; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232123AbiJMSmw (ORCPT <rfc822;ouuuleilei@gmail.com> + 99 others); Thu, 13 Oct 2022 14:42:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232112AbiJMSmY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Oct 2022 14:42:24 -0400 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on20621.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8b::621]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F0A24A129; Thu, 13 Oct 2022 11:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KbYh07vA4SGNZSh3w0e/UeebTfqthWfuum19VPmyyvtE18wV0/qTxv1crw/EpeZfRHQH4DsqHErJYgcIKFbYd88z8oYq45kDdlG0haEr9ChGtf4MqxSgjT90IJnDS+fE7/MCkcmCKQuojozoT6bn7HUSCUJ5wM5POzcL4Ze1m2mAGxKhuqF418pQDlcJ/qauK/Ug7Y87RZZgaRZlnnwve6Cx2KEJKtoV2c+CMOQdVtJ7VC6Iav62oBLSEayErS20JqfG3gs6HySJulAnUTo0t91fh0lWWoECCpoFbedOETgVeTqYJgDfR3j0hp5S9GyYP98Za2llBOZBfq6ZrqdGoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XeP2n9kvp0meTUaeqD+YLu2d/BVbWALLwpD5bIe6CYA=; b=ATNIocWaIP91iCyUnWdjXweOo5bA5YnAcdPvAzgulKQPXPqOkPaLECEC8JneO+FfPJ0MWId4sCrp2s2H70fFusniD+MJ6/90/wU7uX1qqEen8Zp2L9zayETAbXpuTEiC+4UeK3fHWVORMjYDk7WOKoSe8ID1NfMJfTbpcmqZ07rQRXjBWmXBfdjxuUtyWvBHxdQQvBsDg7HY7c42Qk5qOY1mJzfxYyGHvMK1eAoWZtqQ9s6f8qLtY8yfctPnvVXPPVZZvGS6T4D+8TXvmiDjkzkzTQb8tu6F0ZJbBXYToZqLvz7WJ8DkcXfeiJKpi4gEAIBPnYFgaGHrB7WGior5Dw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=kernel.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XeP2n9kvp0meTUaeqD+YLu2d/BVbWALLwpD5bIe6CYA=; b=gUBAjen9aNg5GK7ahKS0VZ9FCEg7+MrMxZRhoz38JmiUx9XNzMkHRnxJfgM/uy2y7q1vcyBJOe2MYFvXC80ic6rXzRodpKsaYWgf4jQWRBMr16QKcyJwrTBB/TieB9ndDMfz8VCpQeRRkhpFY4bGRh8q3C118XVc0GXrF4Kuhju0RDOaD9nTboHG3neOwN6UGPpWpFsvq1vBH0omqgQg43+zsHmYHgv7/9QheeMh8MrljQebq+CsEu5y90dWIzYwBvi1CZ2v3Ivi1t6B3tA34m7uHw6+oyBIhDqMoa8+KPsHm7nSPXaqUcEQ4drWnXOi4ywEUsReoftWvm5tpR/KQg== Received: from DS7PR03CA0067.namprd03.prod.outlook.com (2603:10b6:5:3bb::12) by BL1PR12MB5302.namprd12.prod.outlook.com (2603:10b6:208:31d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.26; Thu, 13 Oct 2022 18:39:59 +0000 Received: from DM6NAM11FT098.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3bb:cafe::8f) by DS7PR03CA0067.outlook.office365.com (2603:10b6:5:3bb::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.26 via Frontend Transport; Thu, 13 Oct 2022 18:39:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by DM6NAM11FT098.mail.protection.outlook.com (10.13.173.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.20 via Frontend Transport; Thu, 13 Oct 2022 18:39:59 +0000 Received: from drhqmail201.nvidia.com (10.126.190.180) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Thu, 13 Oct 2022 11:39:49 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail201.nvidia.com (10.126.190.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Thu, 13 Oct 2022 11:39:48 -0700 Received: from vidyas-desktop.nvidia.com (10.127.8.9) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.986.29 via Frontend Transport; Thu, 13 Oct 2022 11:39:44 -0700 From: Vidya Sagar <vidyas@nvidia.com> To: <lpieralisi@kernel.org>, <robh@kernel.org>, <kw@linux.com>, <bhelgaas@google.com>, <thierry.reding@gmail.com>, <jonathanh@nvidia.com>, <kishon@ti.com>, <vkoul@kernel.org>, <mani@kernel.org>, <Sergey.Semin@baikalelectronics.ru>, <ffclaire1224@gmail.com> CC: <linux-pci@vger.kernel.org>, <linux-tegra@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-phy@lists.infradead.org>, <kthota@nvidia.com>, <mmaddireddy@nvidia.com>, <vidyas@nvidia.com>, <sagar.tv@gmail.com> Subject: [PATCH V3 07/21] PCI: tegra194: Disable direct speed change for EP Date: Fri, 14 Oct 2022 00:08:40 +0530 Message-ID: <20221013183854.21087-8-vidyas@nvidia.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20221013183854.21087-1-vidyas@nvidia.com> References: <20221013183854.21087-1-vidyas@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT098:EE_|BL1PR12MB5302:EE_ X-MS-Office365-Filtering-Correlation-Id: 15b41eb3-eaff-47ff-e793-08daad4a5541 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nyb4t4+6JpeakYc7lbnqDah7DWhDw3JNZ4uL2uNjpk23XMQpjrFyczbGxfkYqkiWf+Q9BqQm9t1zZAZqEGSxIVn9YtvUDO3JIXPy02fHJY3KMlyVRWGqMkjLeQEz/PfxS75IeMjve5h73Sx4qc5NTWinKGA6VSZ8V7MakmQsROL7z8PzS9GerNAc9xD+mkYgOFCoxv4o2Ps6miutrHi4rEachw3vL4r5kDu9K7ZJajkRdoaqSD77TUyGPLLw9ya+mwypjk6YIg7aZqvp24geJb6Wf/iSGR7KhMYgIEtvf5raGknY/4jnM+m4d6mhNTCajidcEpKKSYlkCpH5rr36g2SfYejyiJ9+dEldJceP2c3BsSKqQcthbEe/bJ2mYI3waA5DrDGQ/1WYQZVIw74F0ihOUJFKoVsr/JAutkFl7y/mQmDOhqoUy48ebE92IzGa7p//xrDFi72/GQRNVYakK76Qz9Io4LjNRxZ4qnLcQJLOJR9JqqTfXso/ZBfF8Ls/629jd6O27oBHplIkVaAn9+gq33dzTgt9I4F07N8llY3MaFAAOXjBlU2Zn3rrzw20ysjX8qLDiJxameNH73dHoBoj+yAYnllE8crpxmayizQY44fuWGjP/RejYD3zrcpJzZf8BIG/rI/hEEi0saKtoZugJWvljsRHx81GW16xMoGImKrmiUbHFv0kevZQhXUdV2xqUokWIPGsZTxbEKQGJnyXrywxkH+vQsqBEG0+xurDYXeo10+tBRQRmTNGvY/IH8MmmwEbjf+CsAGY8pYxVAZ5EtzEyiXSUcVXViuTRgU= X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230022)(4636009)(396003)(136003)(39860400002)(346002)(376002)(451199015)(36840700001)(40470700004)(46966006)(5660300002)(7416002)(1076003)(186003)(336012)(2616005)(7636003)(2906002)(356005)(41300700001)(26005)(8936002)(7696005)(921005)(82310400005)(86362001)(40460700003)(426003)(36756003)(83380400001)(47076005)(40480700001)(82740400003)(36860700001)(478600001)(316002)(110136005)(54906003)(8676002)(4326008)(70206006)(70586007)(6666004);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2022 18:39:59.4195 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 15b41eb3-eaff-47ff-e793-08daad4a5541 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT098.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5302 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, SPF_HELO_PASS,SPF_NONE autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746599699833774851?= X-GMAIL-MSGID: =?utf-8?q?1746599699833774851?= |
Series |
Enhancements to pcie-tegra194 driver
|
|
Commit Message
Vidya Sagar
Oct. 13, 2022, 6:38 p.m. UTC
Disable direct speed change for the endpoint to prevent it from initiating
the speed change post physical layer link up at gen1. This leaves the speed
change ownership with the host.
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
---
V3:
* Reworded the commit message
V2:
* None
drivers/pci/controller/dwc/pcie-tegra194.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c index 897e2a22bcd3..dff38f73d9a7 100644 --- a/drivers/pci/controller/dwc/pcie-tegra194.c +++ b/drivers/pci/controller/dwc/pcie-tegra194.c @@ -1929,6 +1929,10 @@ static void pex_ep_event_pex_rst_deassert(struct tegra_pcie_dw *pcie) reset_control_deassert(pcie->core_rst); + val = dw_pcie_readl_dbi(pci, PCIE_LINK_WIDTH_SPEED_CONTROL); + val &= ~PORT_LOGIC_SPEED_CHANGE; + dw_pcie_writel_dbi(pci, PCIE_LINK_WIDTH_SPEED_CONTROL, val); + if (pcie->update_fc_fixup) { val = dw_pcie_readl_dbi(pci, CFG_TIMER_CTRL_MAX_FUNC_NUM_OFF); val |= 0x1 << CFG_TIMER_CTRL_ACK_NAK_SHIFT;