{"id":2197113,"url":"http://patchwork.ozlabs.org/api/1.0/patches/2197113/?format=json","project":{"id":28,"url":"http://patchwork.ozlabs.org/api/1.0/projects/28/?format=json","name":"Linux PCI development","link_name":"linux-pci","list_id":"linux-pci.vger.kernel.org","list_email":"linux-pci@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260217-master-v1-2-727e26cdfaf5@nvidia.com>","date":"2026-02-17T05:54:42","name":"[2/4] PCI: tegra194: Use 64-bit BAR layout and reset only first BAR in EP mode","commit_ref":null,"pull_url":null,"state":"handled-elsewhere","archived":false,"hash":"5b3e1410d8d1afbec32339ebbcb771cb9278e7dc","submitter":{"id":72399,"url":"http://patchwork.ozlabs.org/api/1.0/people/72399/?format=json","name":"Manikanta Maddireddy","email":"mmaddireddy@nvidia.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-pci/patch/20260217-master-v1-2-727e26cdfaf5@nvidia.com/mbox/","series":[{"id":492374,"url":"http://patchwork.ozlabs.org/api/1.0/series/492374/?format=json","date":"2026-02-17T05:54:40","name":"PCI: endpoint: Add BAR_DISABLED support to PCI endpoint framework","version":1,"mbox":"http://patchwork.ozlabs.org/series/492374/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2197113/checks/","tags":{},"headers":{"Return-Path":"\n <linux-pci+bounces-47412-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-pci@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256\n header.s=selector2 header.b=MTlC9TV5;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-pci+bounces-47412-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com\n header.b=\"MTlC9TV5\"","smtp.subspace.kernel.org;\n arc=fail smtp.client-ip=52.101.53.66","smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=nvidia.com","smtp.subspace.kernel.org;\n spf=fail smtp.mailfrom=nvidia.com"],"Received":["from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fFTQv1C3Kz1xwR\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 16:56:07 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 24ECC3017BD2\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 05:55:57 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id F09C629E110;\n\tTue, 17 Feb 2026 05:55:55 +0000 (UTC)","from BL0PR03CU003.outbound.protection.outlook.com\n (mail-eastusazon11012066.outbound.protection.outlook.com [52.101.53.66])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 789EA1FC7C5;\n\tTue, 17 Feb 2026 05:55:52 +0000 (UTC)","from CH2PR05CA0049.namprd05.prod.outlook.com (2603:10b6:610:38::26)\n by BY5PR12MB4292.namprd12.prod.outlook.com (2603:10b6:a03:212::12) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9611.14; Tue, 17 Feb\n 2026 05:55:46 +0000","from DS3PEPF0000C37C.namprd04.prod.outlook.com\n (2603:10b6:610:38:cafe::6) by CH2PR05CA0049.outlook.office365.com\n (2603:10b6:610:38::26) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9632.13 via Frontend Transport; Tue,\n 17 Feb 2026 05:55:48 +0000","from mail.nvidia.com (216.228.117.160) by\n DS3PEPF0000C37C.mail.protection.outlook.com (10.167.23.6) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9632.12 via Frontend Transport; Tue, 17 Feb 2026 05:55:45 +0000","from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com\n (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Mon, 16 Feb\n 2026 21:55:24 -0800","from mmaddireddy-ubuntu.nvidia.com (10.126.230.35) by\n rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.2562.20; Mon, 16 Feb 2026 21:55:18 -0800"],"ARC-Seal":["i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771307755; cv=fail;\n b=MymMIl/7araAmhxugJxKbztLzJzUnUvxKegydS1a3pSDCa521PeOZ5NwAy0h9Da18IPAPj0p1QUKBmzaMrwl6bUcqXtBHPzO3EYwteWMXk7rkWApb6aObrZZ0o9nywjt2yKZ9i3TVdcGjSAz9AUijMfNl4rqzXbb04S2EyJGycw=","i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=XL06dI8d7FGKm2EVvKw2pngMKANuzcFYsyui0jsM0G90j8EKdMFuAAVKtxba/aBBQxks9Qi1LPXsuIfzm4fcRr6W3PF3GzqzGA4QxH7zvWN/S6KpFXLcY/4TuBUqW0uKGXnM2k3i8ltzy38jv18mFwjXmxwGeGUr2r5Kal/MoeaOdJIevrj4oZ3GSe4Get/xPehTCXs8hBg8idkqgM6kFDbCt4J4vuk8Yab+QGShkmb9RlDTgz0VQtFIMRTP3p3RdgrwZ07LuM2VM1K3cA1QfJSv2BXDpW2tm+Wx1hKq1aGCPy54qAS8hbXv2B3m72i6qIg9GfuiFfRxpu508FJ0eg=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771307755; c=relaxed/simple;\n\tbh=fLcjbf5nhBOLypER8bEOMmHdO4+rnljtxUDo2QlEAS0=;\n\th=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=uf0PFp2G8eg4K+AkvJx3E1NpE8uQoxTDf4XG2orFaVA3gaqpIecV2qgUXfNScZfIMeLsZlSwwmTkFBqDeSKICWxwn8YF7tNTjmmLxYgqGnzwsS4qwqO8NlO7uHWBaJmR/wvmfIRT6edgO+DJNuk1n+hRO0J3LDGO621UYtGq46U=","i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n 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;\n bh=5x87qLFIwjMy11SClFj5ppEKOiiSgaKx7mCThH85Mp4=;\n b=lAFO078718yPrbg5dbEJ7TmE+RY6Ay+ixvLh+emermLT/WugVgr6nDAj04KS0PQQ4xyIvH6i/aFt0l395PT3BpgZGGS1eBpJ57uQFjafJF1PGVvIgohSvhkP/hx5vTbeKZbFxNoESecVxXPpQ7p/7hcacPGn5Y/2hB1jDlTk5Y6NG2inJtAOjt1rBpuuwHekk77fBF5xT5JkxkQ98K6vBXWxGZarXFPcTwiovEHO97ca0PyJnIr9FxnGIx1LPELvRLXEQUTQ4Onsvcp35vVO/y/1aslje7hfSIsum0v1TaAiJ9nnQz43cX3xA58YTbU3jp5xhOsbj0WKwtdBJ82y0g=="],"ARC-Authentication-Results":["i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=nvidia.com;\n spf=fail smtp.mailfrom=nvidia.com;\n dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com\n header.b=MTlC9TV5; arc=fail smtp.client-ip=52.101.53.66","i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.117.160) smtp.rcpttodomain=kernel.org smtp.mailfrom=nvidia.com;\n dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com;\n dkim=none (message not signed); arc=none (0)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=5x87qLFIwjMy11SClFj5ppEKOiiSgaKx7mCThH85Mp4=;\n b=MTlC9TV5Nugi9xrophKpUsB09Paa3Pa8eWO+CQ5Nd0mtTm1X5vGOCww4K6Fb+Y9ZsuPOd3nzVsG7ydj9mxfPhuh3WBFaxHhPTYp1sSIEkaVjQ10dn/RvQiZY4IwYbZJZ6sktQuJr5i4m18c8XZcM0vNR/zRiuZZyRe2LGr4sEgTWXK0qBAdnZtJbYqBZP30Awd59yK2uAMrSyruWI75eppWddY3xiLzk/fiXjNKQiY84Kwrr5ekQv0tm+zKICURrynDPwuwt32BdVsdGuo84oRAsmEA+b4zpo2c5xitpxwUlHbd3NuLOvwDazIH2WdNQV0JBTq7lRBr+3c3cBeoq0w==","X-MS-Exchange-Authentication-Results":"spf=pass (sender IP is 216.228.117.160)\n smtp.mailfrom=nvidia.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=nvidia.com;","Received-SPF":"Pass (protection.outlook.com: domain of nvidia.com designates\n 216.228.117.160 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C","From":"Manikanta Maddireddy <mmaddireddy@nvidia.com>","To":"Niklas Cassel <cassel@kernel.org>, Vidya Sagar <vidyas@nvidia.com>,\n Manivannan Sadhasivam <mani@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84sk?=\n\t=?utf-8?q?i?= <kwilczynski@kernel.org>,\n \"Kishon Vijay Abraham I\" <kishon@kernel.org>,\n Bjorn Helgaas <bhelgaas@google.com>,\n \"Lorenzo Pieralisi\" <lpieralisi@kernel.org>, Rob Herring <robh@kernel.org>,\n \"Thierry Reding\" <thierry.reding@gmail.com>,\n Jonathan Hunter <jonathanh@nvidia.com>, Arnd Bergmann <arnd@arndb.de>,\n Greg Kroah-Hartman <gregkh@linuxfoundation.org>,\n Kunihiko Hayashi <hayashi.kunihiko@socionext.com>,\n Masami Hiramatsu <mhiramat@kernel.org>","CC":"Manikanta Maddireddy <mmaddireddy@nvidia.com>,\n\t<linux-pci@vger.kernel.org>, <linux-kernel@vger.kernel.org>,\n\t<linux-tegra@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>","Subject":"[PATCH 2/4] PCI: tegra194: Use 64-bit BAR layout and reset only first\n BAR in EP mode","Date":"Tue, 17 Feb 2026 11:24:42 +0530","Message-ID":"<20260217-master-v1-2-727e26cdfaf5@nvidia.com>","X-Mailer":["git-send-email 2.34.1","b4 0.14.3"],"In-Reply-To":"<20260217-master-v1-0-727e26cdfaf5@nvidia.com>","References":"<20260217-master-v1-0-727e26cdfaf5@nvidia.com>","Precedence":"bulk","X-Mailing-List":"linux-pci@vger.kernel.org","List-Id":"<linux-pci.vger.kernel.org>","List-Subscribe":"<mailto:linux-pci+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-pci+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","X-NVConfidentiality":"public","Content-Transfer-Encoding":"8bit","X-ClientProxiedBy":"rnnvmail203.nvidia.com (10.129.68.9) To\n rnnvmail201.nvidia.com (10.129.68.8)","X-EOPAttributedMessage":"0","X-MS-PublicTrafficType":"Email","X-MS-TrafficTypeDiagnostic":"DS3PEPF0000C37C:EE_|BY5PR12MB4292:EE_","X-MS-Office365-Filtering-Correlation-Id":"422cd343-aefc-4093-8df3-08de6de9319c","X-MS-Exchange-SenderADCheck":"1","X-MS-Exchange-AntiSpam-Relay":"0","X-Microsoft-Antispam":"\n\tBCL:0;ARA:13230040|7416014|376014|36860700013|82310400026|1800799024|921020;","X-Microsoft-Antispam-Message-Info":"=?utf-8?q?ARB//uMdGC14y2EMT5jd4w30Ym7xQFk?=\n\t=?utf-8?q?Mf3BVSbChevwQ7ujKZ4fMqAL2aEKcxPEnVCP4090/ikNDuK5q8JKhFEzRgOBoKene?=\n\t=?utf-8?q?529GzhtqhxcLZRPMRV6abABoqJNdgG9sUdYIxb9mPlXWK8Ut3iAw3fUCMJ1m9bAiE?=\n\t=?utf-8?q?ErSoiG8aBO32zn800W5rkGCOMpX0LUavKsXnXrBUrVAG1D+9/IvxBqRaepjrUXpYl?=\n\t=?utf-8?q?92BX7+ieXR9qv9s2nZvPYLbjYemEzaPNIqqxXZdClGPXEMM47afVcHYTBNfc+BjXN?=\n\t=?utf-8?q?QDqQDV+zqvBTbc+M7XdrXG3ondZNAvRDuyCnUCmrepnm6MECFWAejKkUZ0WOWnodC?=\n\t=?utf-8?q?hgzngkkvU96IE+nEz6nwc7YAbpzkimER2VVA8WtH1zhqJxbnbhnrgqQqOmWGCKvF9?=\n\t=?utf-8?q?IxlzDtF8eIeFVlaFmXzRCU43XKmOul4sZgvwFga0MatXOY1JenfXRK2QxZH0IAu6W?=\n\t=?utf-8?q?G+d40KuwXISo05y0SVv8du6jEwBFLGYs5QufCEGTLoyEpUT5vO4XcRrzcIsTe8rg5?=\n\t=?utf-8?q?O1qgRbbnoB6D6+Hynl9A+hgb5jzL89Y2J4+nWQlf40tiBocxnnJxK+tyqgRGsxm2H?=\n\t=?utf-8?q?kKLJsyDIaKuusaA1Yo0gJqCcXvyvJrZTWUvXxuQcH1vpMK9HG8jPJKOky4ucqIQst?=\n\t=?utf-8?q?NR+NBHXr+NF5h5kPrvMMhJSJlE2G1bjtrZoVJn9NEBQGkm4XCDubynTxXiO6jA1XV?=\n\t=?utf-8?q?9FRwCyry1LZwylwj/MWnJUuzrsABn6pr9wN21uurleh3LmaPZiBX3lAWcNtoqKzMT?=\n\t=?utf-8?q?nk1kDT9Po+6oqhs2RrYqISP9gb4GHN7uHat+0owtaGKyVC0nPRENPWRr8Fq8st0MP?=\n\t=?utf-8?q?gQet5YjYCTVMoCmry8Cx56z3RAUnJ6iSRwYrfbbaSvVXMh4DTkMq1zbISRJchL2/H?=\n\t=?utf-8?q?0prHt505zckmyjonpNDA5OEF80xu+mgLploe1WzYTUabm7xz79r1f8taKJ00vRXZv?=\n\t=?utf-8?q?+Sficg1KilsExi9oPMf3eg+y++8Rk5BKnVuUe5JNdYJVk7+6LNbyrv7WOE+KKNbO2?=\n\t=?utf-8?q?qa9/B4mZUv2CMrJL5muhB6FzZj64LyI2i/1rnjTeTr4WU9m2KWInUwDa/qdcPVeYV?=\n\t=?utf-8?q?ALWMLPa0ix3Il2KpzX/rbQbHtaEQU+sTHl78KCkvVSI5opyAHiqErxIqWCw4oMNPR?=\n\t=?utf-8?q?iumTKP29CTwQCsGeI06rm6RcK4tJNH9ngkKHc4EZHLGqma4V5DT+7Hg5Dt0fUVjnt?=\n\t=?utf-8?q?xhnwIeuMvoZB+YI5zb1lPCsFBUihOTyxXmJV2l8Tape1tZ05M+aIOiPms+pYz4gyd?=\n\t=?utf-8?q?8GL9VtPVFndFe5yT28HVzTXT4ktU3JthKpKEN2M+Fk5JHLR+J/PMlp7ld7TjBbxCn?=\n\t=?utf-8?q?aqvdO6ccffkbQBv1v+A2iZT8eELMAhtBDujQWgxRy9Tc0cTx18QA/E+fsCUBFGORB?=\n\t=?utf-8?q?xxFsdGee+u4OOYLp16FrmIKo2jBHVVM5q/HttHzvXQ4bjtb7d+fIAywWLnt+P3x5B?=\n\t=?utf-8?q?LM9cd3cQWMuINtlaF2SLIfYnNfHAMJqU7pyeIJ4QDEdgSTjP0gyHHbG2K2XlJoOWT?=\n\t=?utf-8?q?Sw3AQCksH48SZnXOoZZ9Y/OiqYztxJsEAlbtAzMFygZDfuhjce9/QJLEI1NqyeWaT?=\n\t=?utf-8?q?zxDZDj9wVXYl2cXiSxZC6WuH+F/ObBqbK2pzoIp6ocsbpqlRQP4=3D?=","X-Forefront-Antispam-Report":"\n\tCIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230040)(7416014)(376014)(36860700013)(82310400026)(1800799024)(921020);DIR:OUT;SFP:1101;","X-MS-Exchange-AntiSpam-MessageData-ChunkCount":"1","X-MS-Exchange-AntiSpam-MessageData-0":"\n\tv+lUwcvDySUQLGetDuI3v4dEW+SLGOwvmtb4FJxvKLwKP+pK8Bca4r9ZI3eiHOfrEXajf9SObYXg9cK1j9WNH86vRnBIamtMPAqh+dOKyqjqGFaMomcTdl4dFZoQzFMbGBUHBOlK2d3Yy23g8OvtPgTzD2Jww7HDA78JUJB5+UbwJ2RPjJEDd+wgB1RZtd8aDx1G/gf5Hu/Ei2BzSdgiPJlLEyOV318WY5fk8s0mgOlKia1clLGGzORimUy5ZRYk2KLvhLR7uAUFofQJkCmXimVSPNZIXpc4LLi6otGXdrDobBNcY30dXL9Z40AWK9IfI8njVUkT8zUb0c1cFuHw1s7rIvEU8urS9QNXJAd3HbA8gnTTQOSGWbl4V2zsIYR3c85HouXZ47McPDpOjSr/OfiY9FMzlEb4HbtIPvAw/cJ29YXtX5Oz7uJPsw4Fljcl","X-OriginatorOrg":"Nvidia.com","X-MS-Exchange-CrossTenant-OriginalArrivalTime":"17 Feb 2026 05:55:45.8780\n (UTC)","X-MS-Exchange-CrossTenant-Network-Message-Id":"\n 422cd343-aefc-4093-8df3-08de6de9319c","X-MS-Exchange-CrossTenant-Id":"43083d15-7273-40c1-b7db-39efd9ccc17a","X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp":"\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com]","X-MS-Exchange-CrossTenant-AuthSource":"\n\tDS3PEPF0000C37C.namprd04.prod.outlook.com","X-MS-Exchange-CrossTenant-AuthAs":"Anonymous","X-MS-Exchange-CrossTenant-FromEntityHeader":"HybridOnPrem","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"BY5PR12MB4292"},"content":"Tegra194 endpoint exposes three 64-bit BARs at indices 0, 2, and 4:\n- BAR0+BAR1: EPF test/data (first 64-bit BAR)\n- BAR2+BAR3: MSI-X table (HW-backed)\n- BAR4+BAR5: DMA registers (HW-backed)\n\nUpdate tegra_pcie_epc_features so that BAR0 is BAR_FIXED with only_64bit,\nBAR1 is BAR_RESERVED (high half of 64-bit BAR0), BAR2/BAR3 are\nBAR_RESERVED with only_64bit on BAR2 (MSI-X), and BAR4/BAR5 are\nBAR_RESERVED with only_64bit on BAR4 (DMA).\n\nIn tegra_pcie_ep_init(), reset only BAR0 and BAR1 so that the first\n64-bit BAR is disabled until the EPF enables it via set_bar. Do not\nreset BAR2+BAR3 or BAR4+BAR5 so that MSI-X and DMA remain enabled for\nthe host.\n\nThis keeps CONSECUTIVE_BAR_TEST and DMA tests working while allowing\nthe host to use 64-bit BAR 2 (MSI-X) and 64-bit BAR 4 (DMA) for real\nuse.\n\nBAR0 is capabale of supporting various sizes using DBI2 BAR registers\nwhich are programmed in dw_pcie_ep_set_bar_programmable(), remove\n1 MB size limit from pci_epc_features.\n\nSigned-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>\n---\n drivers/pci/controller/dwc/pcie-tegra194.c | 26 +++++++++++++++-----------\n 1 file changed, 15 insertions(+), 11 deletions(-)","diff":"diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b/drivers/pci/controller/dwc/pcie-tegra194.c\nindex 1b4fc6a9bed1..6734d1336ef1 100644\n--- a/drivers/pci/controller/dwc/pcie-tegra194.c\n+++ b/drivers/pci/controller/dwc/pcie-tegra194.c\n@@ -1948,11 +1948,15 @@ static irqreturn_t tegra_pcie_ep_pex_rst_irq(int irq, void *arg)\n static void tegra_pcie_ep_init(struct dw_pcie_ep *ep)\n {\n \tstruct dw_pcie *pci = to_dw_pcie_from_ep(ep);\n-\tenum pci_barno bar;\n \n-\tfor (bar = 0; bar < PCI_STD_NUM_BARS; bar++)\n-\t\tdw_pcie_ep_reset_bar(pci, bar);\n-};\n+\t/*\n+\t * Only reset the first 64-bit BAR (BAR0+BAR1); EPF will enable it via set_bar.\n+\t * BAR2+BAR3 (MSI-X table) and BAR4+BAR5 (DMA regs) are HW-backed and must\n+\t * stay enabled.\n+\t */\n+\tdw_pcie_ep_reset_bar(pci, BAR_0);\n+\tdw_pcie_ep_reset_bar(pci, BAR_1);\n+}\n \n static int tegra_pcie_ep_raise_intx_irq(struct tegra_pcie_dw *pcie, u16 irq)\n {\n@@ -2009,16 +2013,16 @@ static int tegra_pcie_ep_raise_irq(struct dw_pcie_ep *ep, u8 func_no,\n \treturn 0;\n }\n \n+/* Tegra194 EP: BAR0 = programmable BAR, BAR2 = MSI-X table, BAR4 = DMA regs. */\n static const struct pci_epc_features tegra_pcie_epc_features = {\n \t.linkup_notifier = true,\n \t.msi_capable = true,\n-\t.bar[BAR_0] = { .type = BAR_FIXED, .fixed_size = SZ_1M,\n-\t\t\t.only_64bit = true, },\n-\t.bar[BAR_1] = { .type = BAR_RESERVED, },\n-\t.bar[BAR_2] = { .type = BAR_RESERVED, },\n-\t.bar[BAR_3] = { .type = BAR_RESERVED, },\n-\t.bar[BAR_4] = { .type = BAR_RESERVED, },\n-\t.bar[BAR_5] = { .type = BAR_RESERVED, },\n+\t.bar[BAR_0] = { .type = BAR_PROGRAMMABLE, .only_64bit = true, },\n+\t.bar[BAR_1] = { .type = BAR_RESERVED, },\t/* high half of 64-bit BAR0 */\n+\t.bar[BAR_2] = { .type = BAR_RESERVED, .only_64bit = true, },\t/* MSI-X table */\n+\t.bar[BAR_3] = { .type = BAR_RESERVED, },\t/* high half of 64-bit BAR2 */\n+\t.bar[BAR_4] = { .type = BAR_RESERVED, .only_64bit = true, },\t/* DMA regs */\n+\t.bar[BAR_5] = { .type = BAR_RESERVED, },\t/* high half of 64-bit BAR4 */\n \t.align = SZ_64K,\n };\n \n","prefixes":["2/4"]}