Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3193011pxb; Mon, 1 Nov 2021 09:28:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHXPPA0mgI3eln5++xSW7NrO+MIBZgUJa9cxhUetbSBWCjKThVPk0uHh/f8PTRwDmZfo1/ X-Received: by 2002:a05:6638:32aa:: with SMTP id f42mr17161563jav.45.1635784111553; Mon, 01 Nov 2021 09:28:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635784111; cv=pass; d=google.com; s=arc-20160816; b=BmgUsKEMrcPiQQuKAbNs8HXvG/u9Pf2HI4w/N3553CYHu5RCr+ikJ3Z6/owYYhJDMj +Mi4UiJXPbPJA0ERBU7/LJbrUsxa/ULM6RwjnXjACeFcMkLv3H9EyoCHU68lrNPiu55r t4n41zBltH/OAey8MIFV7L6jDJHgUnarcBXChjh5Ml2AToU34DKZ38HLIHs+mPJHeMaR 6F8BW7kLQfrN2HyZb90XTznD4YjzZGqtC08UkKimK/tpD2iCASE6lD20WZXASO2zPQCo a4tLQ7bhmQ2A8WEjdyXeLAvVeTIqvmlO+zhB0NQBBNRmKCKtZS+JhHHZWyk9Fqq92cCq JXKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to :content-transfer-encoding:content-disposition:references:message-id :subject:cc:to:from:date:dkim-signature; bh=oiKHJPudDRpjOXXBxugxm674l8UEZPNlv56plWQVYGo=; b=zXpaV2JPMBUyMaS/Hugum1keqtlMjDkNKTNOn4wOR8q5ddAHK5PGrMjQZSli5KKoCc 9j86TmlG25oqb8NzfAETZPWgz3LDl1WDWS2snovEtZphgJ8HJG9lQnyTfeQEUFstQNcM YsW64fwQK/Fba9Gu0DTBaiBOj7K5k1RBd52jq2F2VBfKH6bz41VOYyVbOekTBnMXnkZZ TosOYl7X9fyoaoPZNS5LwH2ICQsAjIf2ue+bNG0dcNKspFMFdmdJvyM1Ns6XTkTSXe04 2dSrqaInlU5aKPlVQpXaFSrRKiYmPiri86KbLpiPSiTIWIKdhRW+2d6NGAlB8dhdSFcf T74Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=BRxbeC6C; 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m3si618225iov.8.2021.11.01.09.28.14; Mon, 01 Nov 2021 09:28:31 -0700 (PDT) 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=@Nvidia.com header.s=selector2 header.b=BRxbeC6C; 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232305AbhKAQ3s (ORCPT + 99 others); Mon, 1 Nov 2021 12:29:48 -0400 Received: from mail-bn7nam10on2062.outbound.protection.outlook.com ([40.107.92.62]:14592 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232066AbhKAQ3r (ORCPT ); Mon, 1 Nov 2021 12:29:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T593nXvRklWUzWk26eO2yga71asLobIAnHgG4RsFN9XQYlvC9hN2AaPSInjefTGjh+BO7NuN0hIsaRNbm05QQnXm5zD9RFxFW9NwiWexAZj2vmYh5Fa2SPQ4bJ301U04mogwpH37fP3PadCaBlrrRFyWlgj+WNJlkoiHdD1TEZTZd0H/9yGtYCc8G3F1nTL+0e2JWTJlUE0yD8MtAN9K2rDYNzCeeJCwNkeQrZ3YxIda1JP8gMC544iaxf1BNsxyjlArwO7wXL2mKmhoIguZPgIVSyolYOF7oX6PiYb9c9UNNz6aZj6kLTX54hOjTn9MPchOat8zFwjjuSJ78L58xA== 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=oiKHJPudDRpjOXXBxugxm674l8UEZPNlv56plWQVYGo=; b=XQ377+Hsg/aWsYZ3lLJDvHYIb2O0WONtpmGxV+QMxdTQlyj9Agp7x71gqU4pHBk4ZoYLDtg+nRNnxpUSnR4yprT0qQ8RbBWvzf7NP8+4y21C9FQhfjMf6Wp7CDJ5XA/iRxhjvIqxDxKF1zVP3MDom7wl4nfFtQ1qkvVI3yWBSeUCXijP++kI681it+bBDpoitKU/IqL8XhIzS2T/9P0X+IoLzoyo1SCm8k/OLB4chu6Zb4stUIdM/Gw9FYgEb9mMmmVP+M2I/twTsdAvv3td/SprBFsGUMaDroMEMu2z/vpu/ews2f8LZlzeQq7ac2fPsBsazhpGSl1WLw3U9IKOow== 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=oiKHJPudDRpjOXXBxugxm674l8UEZPNlv56plWQVYGo=; b=BRxbeC6C21irU3SMw7rPEgwgh9fZkbIfYxXONGUFxGiYUYnxFIH5ze5RH8onwPxt9hs71WIncMbTCJMjL217E2lcAcx8Cb8GJnYK9SagfzUtHMWITg//FqMinWJiFkg8NjGFz7C2BCS+alf+4LWnG9HmELwHqsOclHaMWmhJi0u9nEicL7vjVkV74QtgjyzL1o6FhXZ8/ScXrZR8qEAJwAXms0DPNKmcPS+FDHk5TRZ4AHzbQsr0dFMqHGuIS0uQXa3aYNstNWuubhWorJZcmblp3AVz0ThBV4tiKuNtviO6GLh1aiq4QfTA/aO4/DsmlSLCfVfW7CdYerAnmMz18w== Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nvidia.com; Received: from BL0PR12MB5506.namprd12.prod.outlook.com (2603:10b6:208:1cb::22) by BL1PR12MB5221.namprd12.prod.outlook.com (2603:10b6:208:30b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14; Mon, 1 Nov 2021 16:27:12 +0000 Received: from BL0PR12MB5506.namprd12.prod.outlook.com ([fe80::e8af:232:915e:2f95]) by BL0PR12MB5506.namprd12.prod.outlook.com ([fe80::e8af:232:915e:2f95%8]) with mapi id 15.20.4649.019; Mon, 1 Nov 2021 16:27:12 +0000 Date: Mon, 1 Nov 2021 13:27:11 -0300 From: Jason Gunthorpe To: Pali =?utf-8?B?Um9ow6Fy?= Cc: Russell King , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Thomas Bogendoerfer , linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] PCI: Marvell: Update PCIe fixup Message-ID: <20211101162711.GA2744544@nvidia.com> References: <20211101150405.14618-1-pali@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211101150405.14618-1-pali@kernel.org> X-ClientProxiedBy: MN2PR06CA0010.namprd06.prod.outlook.com (2603:10b6:208:23d::15) To BL0PR12MB5506.namprd12.prod.outlook.com (2603:10b6:208:1cb::22) MIME-Version: 1.0 Received: from mlx.ziepe.ca (142.162.113.129) by MN2PR06CA0010.namprd06.prod.outlook.com (2603:10b6:208:23d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.15 via Frontend Transport; Mon, 1 Nov 2021 16:27:12 +0000 Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1mha9P-004XYX-Iy; Mon, 01 Nov 2021 13:27:11 -0300 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 81b9ea77-aef5-4429-34b3-08d99d54759b X-MS-TrafficTypeDiagnostic: BL1PR12MB5221: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3826; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JXafVqB6Es3sgecCphn+SRID4nNUiGuIfwU8h+IvxtBQb4k4GcnxKkSDPSa2s8CIiB2cP4l0uLp9SnJxMCF+1LIf1PuFE+3g5kAufP0LPsZdRqcbSyTyaYoJuwq5xMuvK/6LPwPpvTZM0+hErlCAdrIXndTIH61khkNW0EQFe9Jj7F2AzhGzMvQeDoVaek4WwkAm9YlEQRog97jlM24xzrDzUPl1/fDjcs9rickxvyEAkwYmh44WWrp/FSmBP40szTXRwGloJpsATfz1CbLRpND+ul4CViE+69EIKbXFq/ZyEa/h+qHugSKMw0DdV/wyRLzXM8is7URegHeQbIOqV4CD2Aciu3VebsS6/79GvaiNHo/O06uefoL/99gxZNOWKaL5meg4q5GryP2uuPYj6FxLDi8aiZ3hLzZNKRM8/9kox7IDnp3AEulCimVEbMQxrv0T2eObFaCAI03m5Ynazem30DPeGUfyKi4sr7w8vGM4eQ5HHYt8ZzOlMKejEqcjBZ8yQBWtOcGbzL1gW1t5VkH40a2oPU8OjXE94B0hSNAsma42szkblVFz4wFcvbrWWz/boijfGxkoImcnN+zjRnjgXifjXzQWgn2sdw4rx5PWX9J25w9UX4RqDPVZ5Ht59zpyLQ3FyBdxbkUX59ES6g== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL0PR12MB5506.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(33656002)(186003)(15650500001)(2906002)(66946007)(26005)(66574015)(86362001)(508600001)(66556008)(8676002)(426003)(66476007)(2616005)(38100700002)(8936002)(7416002)(36756003)(6916009)(1076003)(9786002)(5660300002)(4744005)(83380400001)(4326008)(316002)(54906003)(9746002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Q3ErL0NPK0lLSE8zcVJUY3ZyclRIQUdEd2E3NGJ2aTdPVmpyVVdKaFJIVm8z?= =?utf-8?B?cWZPWGNCeFBtVXRxbE1vL2xYMGt0OXJEbTUxSDBWdVhJTjJleUNJTmZpYUJ4?= =?utf-8?B?Y2djeWg0MTdzWjUrUjlBaENyOXUwVWNPWVNtTCs5ZzJMUVdYQmpEU2FSakNk?= =?utf-8?B?WWVMTk9GRkZRVXBKVVdSckZSdnhJYlhCR0JQc0pmczdZeEdwYXl5bnFHRE9S?= =?utf-8?B?V0NaWFYrTlJ5UnZyTUtPVEI1aEJLU0F3bCtXTU1HcVV0NFF6Ykp5VGtuWWZl?= =?utf-8?B?RG9PQUFvNm1GZXdyVFU1VUdLS0RoZjFYQjNtREhNK24wUHEvcHF6YmJkVytK?= =?utf-8?B?cW43QUlUZEhLcHB0MlkzMlU0YnhCYW9sMTMrW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-MS-Exchange-CrossTenant-AuthSource: BL0PR12MB5506.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2021 16:27:12.7168 (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: Q2geDuAx3On5StrbryBIVfEeKhydIfb7nIRkEibO4Ff2vi3OBsA9CoFiyKE5GUY3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5221 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 01, 2021 at 04:04:05PM +0100, Pali Rohár wrote: > - The code relies on rc_pci_fixup being called, which only happens > when CONFIG_PCI_QUIRKS is enabled, so add that to Kconfig. Omitting > this causes a booting failure with a non-obvious cause. > - Update rc_pci_fixup to set the class properly, copying the > more modern style from other places > - Correct the rc_pci_fixup comment > > This patch just re-applies commit 1dc831bf53fd ("ARM: Kirkwood: Update > PCI-E fixup") for all other Marvell platforms which use same buggy PCIe > controller. I wonder if that code is even relevant any more since we started using CONFIG_PCI_MVEBU ? Really, these broken controllers should not be used "raw" but always via their special host bridge driver that fixes all the config space problems. Jason