Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4181059rwo; Tue, 25 Jul 2023 01:45:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlH1p/pqgp+B0MrOz044017yvOejLc/K/FqiN/PlMM0Dudjmj/gMYV0mpt7IKi3lnzLeFge0 X-Received: by 2002:a17:906:cc10:b0:982:b224:2a5d with SMTP id ml16-20020a170906cc1000b00982b2242a5dmr10604738ejb.37.1690274757238; Tue, 25 Jul 2023 01:45:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690274757; cv=pass; d=google.com; s=arc-20160816; b=qOXE4R57FrUv//VxC702L8W44zBtJGFWFFgLOEZs7QdOvrBV5nYIHPXGy2ZodWloD6 47mKPOMsMa2wEeAvSd/UYOrwqJ3caEnje8ZOaakZMv3yyf14CQHdq3+hasdt29fU9Pz3 Gf8KbjlbdKGgQNHN1OgHprH6z/LKHMl+PIUwRUPolk5CuNONjebK2aRQSJ0QloAg89r6 2diCyZvckE3+PdDAWJutKLJaz3FEx8IsrbA51iB8VhufMICRbadZ07To0796+ewEE1KQ oDuvy9QeeJL7AFzRWxGEdH/kDf2J1nYskTfdMr2qrxqPa04gtfzgzEoLpr5kaOur8GZm n7uA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=rLeQ66L9FUPzpcIluCA+bc8YmJ8ISWgNkgIAMiLE+8A=; fh=Wb0kupXYB2BS/t5Jxwcj1AGGoh9qdaGX2mHd5G3rsZU=; b=a209yhdfVqyXFa7JqE57JPpz5II9iDShsS3QKQmIM7lB5noZTZktozvAqOIfOa3bJX nkuXuAaeMYLgR4+lQgbVrGyO9JUBWfCju2KQBqgHt9WNZ1tMIQnXmtnbo8nvwOArOkFI aIqbb0brr9TvqbgZuYnDfpzwu+gdEBid44LtUiphaUqxRj15rxVccMnp88ptf+bGNc9l +q3M3ONwtZBj+/67vWALdx6Ihw84ZvRVto2Sa3MzAagz+Y+eRouHAblpnC61lAzplfuF xVTew3rBXXHSkPZYSb0HdXtY+9oTGH2SiVoWJvmzpQF2wA2RwMqCwBAE9V6wmvbpGMy+ BISA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=giRMFyDX; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p12-20020a1709060e8c00b00992ca767e00si7580147ejf.86.2023.07.25.01.45.32; Tue, 25 Jul 2023 01:45:57 -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=giRMFyDX; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=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 S231896AbjGYIT5 (ORCPT + 99 others); Tue, 25 Jul 2023 04:19:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbjGYITz (ORCPT ); Tue, 25 Jul 2023 04:19:55 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on20609.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e83::609]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A21ACE5C; Tue, 25 Jul 2023 01:19:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iFhFnCCwuPvH3YxUEjP9dUuLYmKAh5V+7M+MkXmvLWc1O2NqRzXIBwjlTQBc/b6dXJenSBbODuUYB6jCzhD7MZb3TAVZmzXbYD4CdoRbKIjOdYel/GkG3A8ZpsPOMLzGAgDGILZCsfjZcthO868681p14Lm2xVTYM7e1RHKtCXr1w3XUAwp0PyEJtuWBjZ35ANosQgOvbiFDDZQVfylTHWqCo9udZW/qD3AFzuKviGB6fXGbfB+5axoJJv6YcnnmsTp4qygZB0KbkeQYHrTOy/x4NhgHBJGszlHfA6M5+/OV6sI59SmxxQndR383M/uKGxL138eTXapt+g7RM9rlAw== 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=rLeQ66L9FUPzpcIluCA+bc8YmJ8ISWgNkgIAMiLE+8A=; b=X7Dxh04MIXx2ZY84aAgf4I94QR2tyvEI9BmiRwKzEcjj8CQvD9Z6v4Q3nZ1lnhgo2N3IqaS4iQBhKAfYgK3Uo1xoIXjsabbtePWvEUkCQtSt4uKIQVjZ3q3SbVCmYp3iUGw9Y/avlWrGPgSa2N/jeczAXKXPt0CHCg29TNF3sM8kEKdo5DMMsVkEH4F7CPKMico8MqfHKt5o+aqiR+Q5FgcYpXBJsppNA1726IAgPx13YRQz4xHiyiV4gF+tyqHiqGhnch3cL2GxnhMs8OQqeFOuPS0ruTAmHInMsZRx/fRv+6JRVWT0Maf6eZ38AOWi2/MJnZVGx8LkSob7Ti8f7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=rLeQ66L9FUPzpcIluCA+bc8YmJ8ISWgNkgIAMiLE+8A=; b=giRMFyDXYqNg742Z2bKE1nHm6Pa3lVF0jFvkBzcLO7mjot3SodRAOErHSrVMjOA0ALXdLtrEciU4ylYUuiUXs/sdJLx9IanK7TQlSO4uZOvgXnJIzjDg+TE36WtiEE+VXankDV4zA9a1EfUgkI4IghH3f726QpDpHTyWNJ8xHPFgv5TIKMOGzFH1s3Xc0ei63eGJ2SkSoJ7YFDru8U+Bd53MyRBfyazTEhQsbzTunB3YWMTrRR4a402MMzymGKjWObxT9UGC62zipFxFmBIHtMSTWME/SyVs14t3UOuoE2wMqTcN2EqYLlNb31NJLc+IhZ3xMPzwzEPgYvdzTpkoKw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BN8PR12MB2900.namprd12.prod.outlook.com (2603:10b6:408:69::18) by PH7PR12MB8793.namprd12.prod.outlook.com (2603:10b6:510:27a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33; Tue, 25 Jul 2023 08:19:50 +0000 Received: from BN8PR12MB2900.namprd12.prod.outlook.com ([fe80::b1:f0a0:1b20:1bf5]) by BN8PR12MB2900.namprd12.prod.outlook.com ([fe80::b1:f0a0:1b20:1bf5%5]) with mapi id 15.20.6609.032; Tue, 25 Jul 2023 08:19:50 +0000 Message-ID: <815d102d-be0c-8e5d-ac12-1500d90628da@nvidia.com> Date: Tue, 25 Jul 2023 13:49:35 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH V1] Revert "PCI: tegra194: Enable support for 256 Byte payload" To: Manivannan Sadhasivam Cc: lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, thierry.reding@gmail.com, jonathanh@nvidia.com, Sergey.Semin@baikalelectronics.ru, linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, kthota@nvidia.com, mmaddireddy@nvidia.com, sagar.tv@gmail.com References: <20230608093652.1409485-1-vidyas@nvidia.com> <20230725075159.GB22139@thinkpad> Content-Language: en-US From: Vidya Sagar In-Reply-To: <20230725075159.GB22139@thinkpad> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: MA0P287CA0014.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:d9::16) To BN8PR12MB2900.namprd12.prod.outlook.com (2603:10b6:408:69::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8PR12MB2900:EE_|PH7PR12MB8793:EE_ X-MS-Office365-Filtering-Correlation-Id: 88ec7da0-599e-43bf-8c88-08db8ce7ea0f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6WGLJfDqMk/hFQFk+kUWvExKTjr0xOzZqJbY8Yt8PxOsccKOvNAOJdk68dL4YeTsEeTiFkv/OemU/pRZGfIZMYY+oeFEetviGnkDwc6Jtt4bV2iC3lKJQEk04YUknb7DSkR2DOQdPvYkmnyPd62VL/vCshVUQydIJsWHLSDRMwN9nsd+cdNcr/sw4ayD9hs8ylD6fbWI1v3KFxvSaf9WC4tsuxggLOPSxISQZ0pqY2Sv8YuYfkQFs9XBt4kvFm6auywac1n/HB2zsCbX/etHGhgSpFrHmWKwQtfhF80u7UPo38pc1lDvOmyKrLYUcDs8pfeZkKyxw6W8DT1HuEB5Lth1sZfsceT13JC5iKhd6XmeBfV4IueToGQRXMP3V1c9pAai4Dcd0gr0MJCg292ISF5+ke6l0+BcRlW+DsQp+a+ZfgjpFYHTRHvSXQ7Q89jlX5sCdRdisRcWFxB9wH9zDQICNNcQ6UH/q+S8AKwnTrrJSZ7MdW9DNKVTFhV6LfsLQFT+6Gw3aYrsxaYvCoVCleMtxU8QcUBVIMy9FDNYhL8ecnJCMimtbpESwLYztqpXGTdvp0RZbV67w8A9Mmsi1Ju4iRbDkhHuexItgOH9WzRxxWVTVaKiXBanhUkwsEKFQJnLrl8KO76fI2pyrjAStQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN8PR12MB2900.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(366004)(39860400002)(136003)(376002)(346002)(451199021)(2616005)(26005)(186003)(53546011)(6506007)(66476007)(83380400001)(6916009)(66946007)(66556008)(316002)(4326008)(7416002)(41300700001)(8676002)(6512007)(8936002)(6486002)(6666004)(5660300002)(2906002)(478600001)(38100700002)(31696002)(86362001)(36756003)(31686004)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?anFOeWZOSCsrM2N3NlpBeW9kSXVXVnZOQVNUSGRLTFN2Vzlvd0cwRWJkWTdY?= =?utf-8?B?UjdNMXgwRXhrWElQU2NTUXNmTEhtdzRkQ1lNSytFVnZOWjJOY3A5d3RTZGs5?= =?utf-8?B?bTVCOUFmM2d0MnZlS1dydStwaEJCT0RqUTBWeGI4dGwyRnUrUlZxZ2hrdGhQ?= =?utf-8?B?WTM3QlVOMGJpb0lOTXlnaFBhVDZFUHhhQjFBa1BPbnlZeW5NdjlGK0h3VVh5?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0g3K3JlSDZ4UWp1QVlsUmljOWIvaThiZUVBZjJBSGlG?= =?utf-8?B?VFBtMU1uc09xWXBvb1NqUk9KV1g3RldEV0ZSbURFQWN3ZUFDR1BrTXFpQlRP?= =?utf-8?Q?YZeX3H7uSheS8s0IIRlZfYfM2?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 88ec7da0-599e-43bf-8c88-08db8ce7ea0f X-MS-Exchange-CrossTenant-AuthSource: BN8PR12MB2900.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2023 08:19:50.0327 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KeioAlDxrCBSHTG6n0IbAc+v1eByCx97RWJR7/iDubi96rEMxDPbVKpaL4RI7QLpDwalFjxv7um6mEoxWmAq8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB8793 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org On 7/25/2023 1:21 PM, Manivannan Sadhasivam wrote: > External email: Use caution opening links or attachments > > > On Thu, Jun 08, 2023 at 03:06:52PM +0530, Vidya Sagar wrote: >> This reverts commit 4fb8e46c1bc4 ("PCI: tegra194: Enable >> support for 256 Byte payload") >> >> Consider a PCIe hierarchy with a PCIe switch and a device connected >> downstream of the switch that has support for MPS which is the minimum >> in the hierarchy, and root port programmed with an MPS in its DevCtl >> register that is greater than the minimum. In this scenario, the default >> bus configuration of the kernel i.e. "PCIE_BUS_DEFAULT" doesn't >> configure the MPS settings in the hierarchy correctly resulting in the >> device with support for minimum MPS in the hierarchy receiving the TLPs >> of size more than that. Although this can be addresed by appending >> "pci=pcie_bus_safe" to the kernel command line, it doesn't seem to be a >> good idea to always have this commandline argument even for the basic >> functionality to work. >> Reverting commit 4fb8e46c1bc4 ("PCI: tegra194: Enable support for 256 >> Byte payload") avoids this requirement and ensures that the basic >> functionality of the devices irrespective of the hierarchy and the MPS of >> the devices in the hierarchy. >> To reap the benefits of having support for higher MPS, optionally, one can >> always append the kernel command line with "pci=pcie_bus_perf". >> >> Fixes: 4fb8e46c1bc4 ("PCI: tegra194: Enable support for 256 Byte payload") >> Signed-off-by: Vidya Sagar > > I know that this patch is merged. But I happen to test a similar change on Qcom > platform during a patch review and found that the PCI core changes MPS to 128 > when a 128byte supported device is found: > > [ 3.174290] pci 0000:01:00.0: Upstream bridge's Max Payload Size set to 128 (was 256, max 128) > [ 3.186538] pci 0000:01:00.0: Max Payload Size set to 128 (was 128, max 128) > > This was just randomly tested on a platform whose Root port DEVCAP was 128, but > it shouldn't matter. And I didn't change the default bus configuration. > > Wondering how you ended up facing issues with it. If the endpiont device that has support only for 128byte MPS is connected directly to the root port, then, I agree that the PCIe sub-system takes care of changing the MPS to the common lowest MPS, but if the endpoint device is connected behind a PCIe switch, then the PCIe subsystem doesn't configure the MPS properly. -Vidya Sagar > > - Mani > >> --- >> drivers/pci/controller/dwc/pcie-tegra194.c | 13 ------------- >> 1 file changed, 13 deletions(-) >> >> diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c >> index 4fdadc7b045f..877d81b13334 100644 >> --- a/drivers/pci/controller/dwc/pcie-tegra194.c >> +++ b/drivers/pci/controller/dwc/pcie-tegra194.c >> @@ -892,7 +892,6 @@ static int tegra_pcie_dw_host_init(struct dw_pcie_rp *pp) >> struct dw_pcie *pci = to_dw_pcie_from_pp(pp); >> struct tegra_pcie_dw *pcie = to_tegra_pcie(pci); >> u32 val; >> - u16 val_16; >> >> pp->bridge->ops = &tegra_pci_ops; >> >> @@ -900,11 +899,6 @@ static int tegra_pcie_dw_host_init(struct dw_pcie_rp *pp) >> pcie->pcie_cap_base = dw_pcie_find_capability(&pcie->pci, >> PCI_CAP_ID_EXP); >> >> - val_16 = dw_pcie_readw_dbi(pci, pcie->pcie_cap_base + PCI_EXP_DEVCTL); >> - val_16 &= ~PCI_EXP_DEVCTL_PAYLOAD; >> - val_16 |= PCI_EXP_DEVCTL_PAYLOAD_256B; >> - dw_pcie_writew_dbi(pci, pcie->pcie_cap_base + PCI_EXP_DEVCTL, val_16); >> - >> val = dw_pcie_readl_dbi(pci, PCI_IO_BASE); >> val &= ~(IO_BASE_IO_DECODE | IO_BASE_IO_DECODE_BIT8); >> dw_pcie_writel_dbi(pci, PCI_IO_BASE, val); >> @@ -1756,7 +1750,6 @@ static void pex_ep_event_pex_rst_deassert(struct tegra_pcie_dw *pcie) >> struct device *dev = pcie->dev; >> u32 val; >> int ret; >> - u16 val_16; >> >> if (pcie->ep_state == EP_STATE_ENABLED) >> return; >> @@ -1887,11 +1880,6 @@ static void pex_ep_event_pex_rst_deassert(struct tegra_pcie_dw *pcie) >> pcie->pcie_cap_base = dw_pcie_find_capability(&pcie->pci, >> PCI_CAP_ID_EXP); >> >> - val_16 = dw_pcie_readw_dbi(pci, pcie->pcie_cap_base + PCI_EXP_DEVCTL); >> - val_16 &= ~PCI_EXP_DEVCTL_PAYLOAD; >> - val_16 |= PCI_EXP_DEVCTL_PAYLOAD_256B; >> - dw_pcie_writew_dbi(pci, pcie->pcie_cap_base + PCI_EXP_DEVCTL, val_16); >> - >> /* Clear Slot Clock Configuration bit if SRNS configuration */ >> if (pcie->enable_srns) { >> val_16 = dw_pcie_readw_dbi(pci, pcie->pcie_cap_base + >> @@ -1900,7 +1888,6 @@ static void pex_ep_event_pex_rst_deassert(struct tegra_pcie_dw *pcie) >> dw_pcie_writew_dbi(pci, pcie->pcie_cap_base + PCI_EXP_LNKSTA, >> val_16); >> } >> - >> clk_set_rate(pcie->core_clk, GEN4_CORE_CLK_FREQ); >> >> val = (ep->msi_mem_phys & MSIX_ADDR_MATCH_LOW_OFF_MASK); >> -- >> 2.25.1 >> > > -- > மணிவண்ணன் சதாசிவம்