Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2956888imu; Mon, 19 Nov 2018 08:36:15 -0800 (PST) X-Google-Smtp-Source: AJdET5cXhmgLPpf7AbedaJk1n1JdilRws7LHdfzG5oZYKi6Fb04DZECMwoiza3wNiZ8VdWih4iQ4 X-Received: by 2002:a63:495b:: with SMTP id y27mr20671447pgk.32.1542645375932; Mon, 19 Nov 2018 08:36:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542645375; cv=none; d=google.com; s=arc-20160816; b=MxgvmjI2eNcnUGtchGMSSQY4Z6vYNikRv9Haaj/c7yg/9CGByK2RDzWQSTBZVohRSG GWTquBndpok92Y00xnndFa1734xUp7s4faawGOfOd5r2PoOYq7pD9S/Q161w4qu9/O1T b4bpQMHp8j9B0kSYsQVKHRxsLDudhUpYu8VPosPVm0vfqwgbgd7JuClT7jtfA6hx6xOY LKjGLri2d1Ncj6pB79KJJQo1IZnpPNOolHGJDzUmEn9tT6VbekmEB4dqw9TvA8aDMgRa qKVMlstbCsOeOD5YWwhzi/TP5n/dUBCb9jwEF34XmBfEqE+PkcoFFUu8B/6SQTqnkT6k k3Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XYC+wQDCMz/r4Zg74hPoZ1Mywjyk9NLVSX+iQtzUIEE=; b=k4tNc0jN2C3dXX/Hoz0Xdz6mq81zD/tBpCWmYMPE0IL2dxN8pL19j75vQ8Jdxpw/3q utE1Y3FUlHCCdldzOWcGElKDqOnVFagjcJ4TAXj1M1fCCNZhRcYC5l+hgbvPXMuz2j+Y Pcu6LZOZG556Oz+TY8jV0/qiD3UqEGXBKee7hTRuCPZJiZ70Q5dF0oB+3iOW7hR8rZ6N pUHg5zmM1b8wTLyxekP5xwqCCupECwO99EnRloAaaaYWzjxsCBHLpDOZXhvRBvSwpSlA +WiSRsgL3UxPKOx5q0gdmy5L3k+tKlWXMOknqOta6RTsAEYYyB9mhWVhiGBVRl3GgRmc kQ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XCAjN6xC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10si25377558plr.439.2018.11.19.08.35.38; Mon, 19 Nov 2018 08:36:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XCAjN6xC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730981AbeKTC5K (ORCPT + 99 others); Mon, 19 Nov 2018 21:57:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:55658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730179AbeKTC5J (ORCPT ); Mon, 19 Nov 2018 21:57:09 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 85C7A20831; Mon, 19 Nov 2018 16:33:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645182; bh=vcg4o2XYXaAa8eemJg3MaC2/B8bst1lrrcBRSRcopjA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XCAjN6xCgxi/MBoz9sdX+0kc7ndS9N3B32dYrjzg9ku1DRLB0XyLl1PcffNIXFfoD rw2Z96g8QB1sH5Hq+r96pise49UtCSGia5vmlTp3UkxuqAbRgQ9GwEptPVNcXWHkK8 jmbOOfYfMI/0UokL+a+o1UCXBr1yPYr4FmBtBafU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Huacai Chen , Paul Burton , Ralf Baechle , James Hogan , linux-mips@linux-mips.org, Fuxin Zhang , Zhangjin Wu , Huacai Chen , Sasha Levin Subject: [PATCH 4.19 028/205] MIPS/PCI: Call pcie_bus_configure_settings() to set MPS/MRRS Date: Mon, 19 Nov 2018 17:25:35 +0100 Message-Id: <20181119162622.568825315@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Huacai Chen [ Upstream commit 2794f688b2c336e0da85e9f91fed33febbd9f54a ] Call pcie_bus_configure_settings() on MIPS, like for other platforms. The function pcie_bus_configure_settings() makes sure the MPS (Max Payload Size) across the bus is uniform and provides the ability to tune the MRSS (Max Read Request Size) and MPS (Max Payload Size) to higher performance values. Some devices will not operate properly if these aren't set correctly because the firmware doesn't always do it. Signed-off-by: Huacai Chen Signed-off-by: Paul Burton Patchwork: https://patchwork.linux-mips.org/patch/20649/ Cc: Ralf Baechle Cc: James Hogan Cc: linux-mips@linux-mips.org Cc: Fuxin Zhang Cc: Zhangjin Wu Cc: Huacai Chen Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/mips/pci/pci-legacy.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/arch/mips/pci/pci-legacy.c +++ b/arch/mips/pci/pci-legacy.c @@ -127,8 +127,12 @@ static void pcibios_scanbus(struct pci_c if (pci_has_flag(PCI_PROBE_ONLY)) { pci_bus_claim_resources(bus); } else { + struct pci_bus *child; + pci_bus_size_bridges(bus); pci_bus_assign_resources(bus); + list_for_each_entry(child, &bus->children, node) + pcie_bus_configure_settings(child); } pci_bus_add_devices(bus); }