Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2319379pxb; Mon, 20 Sep 2021 18:42:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFpKtUmDE78zJhQLvec3116Jiies52QvPj6b+fHvH5OUH2Hnv0R1qLOus1rnNP1+VeFuJt X-Received: by 2002:a05:6e02:b29:: with SMTP id e9mr13177244ilu.136.1632188545692; Mon, 20 Sep 2021 18:42:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188545; cv=none; d=google.com; s=arc-20160816; b=mhWs0uBQ2kyAbs5kYKW76aTWbxE32aXD0U9pQ1gHoP2gHTRP7qsZ4GvTKfj8U/xQMD 1wB2zI2lfda97G12a0txr0WUdwP5DmkivgZD7TRibjxwran14UM710rJs3d1cHNJyFam EdGwXpIzX3fqrXq5onBuop8O4eucIFRqcHxDb8ZitQHRtSDMDvyl/UQCwNKxUJL//cq3 2ngt82+4CrsSgEvkcd0tTNoA0FN7N88z2xnBcxwhyDlhRR9JsDgrg0MjSXx0d4wRQg3N sobRN2fg53h4eI1T6CeZ1aSZxUH5Zf+eLQ6hfHohpN8RGN0ziXJjmqTAylIvyfAhqttb YAyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6wIPzzOnBKPnHd5nzMDeByc+4hqrdTFALhdZw5hTCg8=; b=k9PJ0B2ZABtZGyKpehuYX07P8VIIsu/qThOAL1joUUs2KIb9caNUBOpj/vdK3UA8kD N2phroFjAp+FLiYcfUToW5aJU9nG41MgPZc4mxIcPnH2ElqtcFtCK/r5suFTX1fQMqsG NSnme28M0d87gVtHfPi+dMUCtb6HFKUOgEFQ5+UdV9f7mZLYkiLTYwpPP5Bpj5eDLgbD GL6FFpB31wQK1ts4W2ZDuieLMj5vZ59c1LKyJkHu2PHf5zJqmGPya3ndGErPfPwTRQ7s u02RD6yaDN6Qhg+Y5KUMdTyq062AMNLvRKDiP9ihP/NZfDQcPsoywVbkxtaXFS05cZIA ZbVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eLpKtI30; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si14047694ilj.28.2021.09.20.18.42.14; Mon, 20 Sep 2021 18:42:25 -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=@linuxfoundation.org header.s=korg header.b=eLpKtI30; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243902AbhITQto (ORCPT + 99 others); Mon, 20 Sep 2021 12:49:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:36602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243968AbhITQsw (ORCPT ); Mon, 20 Sep 2021 12:48:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E0A6D61205; Mon, 20 Sep 2021 16:47:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632156441; bh=dKp0Hzg0yWgl11MblMnUIDjdfgEhmOA6ylS1eM8rEDk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eLpKtI30WYpkqkXX0TmF9OMBaTBzrj/3h9ltynq7pHY9feyWEn/TCjLD0FvxMp+OE DRwviKqznCA4HCNk7vALLyiyEonRAc9f2yi9bfkjH0Q3b0FynDUt1Nb1OT3+P5RtEH QgKbNCYxIFiZSj/V2v/p4TQElLh5XE6E1puRgtF4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Marek=20Beh=C3=BAn?= , Bjorn Helgaas Subject: [PATCH 4.4 028/133] PCI: Call Max Payload Size-related fixup quirks early Date: Mon, 20 Sep 2021 18:41:46 +0200 Message-Id: <20210920163913.538592357@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163912.603434365@linuxfoundation.org> References: <20210920163912.603434365@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek BehĂșn commit b8da302e2955fe4d41eb9d48199242674d77dbe0 upstream. pci_device_add() calls HEADER fixups after pci_configure_device(), which configures Max Payload Size. Convert MPS-related fixups to EARLY fixups so pci_configure_mps() takes them into account. Fixes: 27d868b5e6cfa ("PCI: Set MPS to match upstream bridge") Link: https://lore.kernel.org/r/20210624171418.27194-1-kabel@kernel.org Signed-off-by: Marek BehĂșn Signed-off-by: Bjorn Helgaas Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/pci/quirks.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -2915,12 +2915,12 @@ static void fixup_mpss_256(struct pci_de { dev->pcie_mpss = 1; /* 256 bytes */ } -DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SOLARFLARE, - PCI_DEVICE_ID_SOLARFLARE_SFC4000A_0, fixup_mpss_256); -DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SOLARFLARE, - PCI_DEVICE_ID_SOLARFLARE_SFC4000A_1, fixup_mpss_256); -DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SOLARFLARE, - PCI_DEVICE_ID_SOLARFLARE_SFC4000B, fixup_mpss_256); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SOLARFLARE, + PCI_DEVICE_ID_SOLARFLARE_SFC4000A_0, fixup_mpss_256); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SOLARFLARE, + PCI_DEVICE_ID_SOLARFLARE_SFC4000A_1, fixup_mpss_256); +DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_SOLARFLARE, + PCI_DEVICE_ID_SOLARFLARE_SFC4000B, fixup_mpss_256); /* Intel 5000 and 5100 Memory controllers have an errata with read completion * coalescing (which is enabled by default on some BIOSes) and MPS of 256B.