Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3293605pxb; Mon, 1 Nov 2021 11:14:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwABkrDKZEO47r/zL7/I3QSowpzNn+nmG5gXPq97VcB3P+yPOshTvgpPvr/fCXieWJqEORx X-Received: by 2002:a17:906:5a98:: with SMTP id l24mr21376278ejq.557.1635790471187; Mon, 01 Nov 2021 11:14:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635790471; cv=none; d=google.com; s=arc-20160816; b=wQweQF5tMmoqRoSBR00kBSWJMyUsSM8k6nuSctpbcKD7TLjoDw+Fhsf2y41QXQHZ5M RNTbU/KP5M6DwWKj7PBk4antvDYRwC8rvMoXxGD0+mTG5jDzcMZKffKP4D9Q7qSn1sPV KFJu3pEX8r75YvNIEBjGuVMze088f1IEudhGu5O5ebZoIPqO4bn7uZC7XQJyN2CPbw8z 1226Fby1mGQEJEjjObtE4OqK11hsdcrjYTH+4wQ+wGywaPWl+mmMnNXnFXW2wLYq8JBH XsZAwNR3/DvHBJ1C6oYgFgZlR4omptov+hevy8QJr1D4u1NddKKeaZEjyzFuhy5ZZ6/D SyOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7+MmlDvoZpfeQYswYxzPeLa6CaVxT8qy9GZtxh8XmOY=; b=Trj0MFiGFz1DBbP6a5l2RsohME8CpeJy9pKwEX67sPaOnyxMLmSR++YJLuTnAdq7Hn duKpvLk4lAD7PurAO36G+fBDE1jPCIa4unL/8gX+H5AHrJzy9DN7cEes3WzqMf9idydR ex9FwtruGhClbeKagN0haC7/Ve2CbNOhw4u0H1k6TOH2OAqjPwlDeHIw9lXTVs3NRArN Rt5B3liA1XsxZk2VRfwObfH2TaWdyKp00I66ieA1zfSMQL1SG2h+4Kq7fgagITJaZyua BMcdZMpt9CDspG/D8MNAnCR3LhnnFP5inuoqXsMCWBpIhQDzmRXBEXTlVQ4jaIMqWGd2 SOxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aVdP8F7F; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d13si21076914edo.55.2021.11.01.11.13.52; Mon, 01 Nov 2021 11:14: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=@kernel.org header.s=k20201202 header.b=aVdP8F7F; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231970AbhKAR70 (ORCPT + 99 others); Mon, 1 Nov 2021 13:59:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:38238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231588AbhKAR7Z (ORCPT ); Mon, 1 Nov 2021 13:59:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 18F5761058; Mon, 1 Nov 2021 17:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635789412; bh=WiBnBHSIxqp0Vb1O0pxCkDHWFMkUCELEPiehK40+ZKQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aVdP8F7F6fz6jgIKfc2ajaeENARDqkZHRoiVDxh/Ma5cZKhpweZ08+jODd4OkbyJT lRIR5eY2+HEqVrB/ms6puYfjuBXkYh+sSMXLsxoE4z63rSUjH8WwafreXi/rufw4/9 MdvM43T7PbJX4Qj7J7yA5RglCBQrSkPqboxSloxJKhi4yZnbD6wWTZueLcHxfni2pg wkznNkOK1o0GQbV9WjeArMtpJDxowkcuCvW7H+UBvi5FUJMEx/37d43ZeXyTQk0SGS PwsIAhkz909BPIvtcZlLSD/b1Lf6+EY9Jb/eKHKE6+bkis9w912NHmcPdqcU6nuI8C 4u9mwIIFOGBCw== Received: by pali.im (Postfix) id 875FA7E4; Mon, 1 Nov 2021 18:56:49 +0100 (CET) Date: Mon, 1 Nov 2021 18:56:49 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Jason Gunthorpe 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: <20211101175649.q743eg65jpjtk7sd@pali> References: <20211101150405.14618-1-pali@kernel.org> <20211101162711.GA2744544@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211101162711.GA2744544@nvidia.com> User-Agent: NeoMutt/20180716 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 01 November 2021 13:27:11 Jason Gunthorpe wrote: > 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 > > ? It is (still) relevant for platforms which do not use CONFIG_PCI_MVEBU yet. > Really, these broken controllers should not be used "raw" but always > via their special host bridge driver that fixes all the config space > problems. I agree. Long-term goal should be to convert these platforms to use pci-mvebu.c driver. And until it happens simple fixes like in commit 1dc831bf53fd is needed for all affected Marvell platforms. Some details how these Marvell PCIe controllers are broken is in email: https://lore.kernel.org/linux-pci/20211003120944.3lmwxylnhlp2kfj7@pali/