Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp743198ybl; Wed, 4 Dec 2019 10:07:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxDQH3Zn7gzv+ZDVgSx+Uf32mkU8phjhIY+MkSQyXu/wj0TnveRfIVu+XMmtaDbBu1fHLxf X-Received: by 2002:aca:de88:: with SMTP id v130mr3773139oig.108.1575482872522; Wed, 04 Dec 2019 10:07:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575482872; cv=none; d=google.com; s=arc-20160816; b=PbdQgchb8XXmuPA84SZeD4rZLYXcpj6uB02PbT+MiME0BZFCGunk3kvtjCly8c8NP/ 102ARQ7R8aE7E6ae/G5YwJsOshyntfqCfhg6DPSUzhOu6EmlqIF/jXM28IMCR5aUFBwi +BqfwAliDe8Sl1lbUSiEVfZTsADURsS+Ks5Nm6+n6EH20hHZLEGxV7Ox0DI7+I0IXEqf xfMO6tmuqy5uuWDVTBNejecwU5SlKQOwZi9g+060INEhrGdvExsoewf00uX8IOhNPD3p Imi9s0s4LaLb+1NJg8s9sKPvUVR0Luo3499okwwHd7MYsslI9wHNfuYPw5ITzvph14+7 CTqQ== 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=W2tckTsYTmGxhTewvAWDEvYisgVEBVw5eBtcTIiREyc=; b=hQFU+8e1ocHx9j5DzVR0cAGxlWrVDa8yYi9pWhXO/cPfI3fmL48DcAdJuuzwcsBut0 GeK6z8GdhMFw438hwqAcGONjisc4XHY4NzwbQqz4AkMqRKvyAsh4bJdDK21SJI63cccl FqdJFTeesczD0ac6VaziVR7Agexe+yWrmCTpYSSr7KrKqIWgs7seNuzu+Fi9MlLIdENd B/JmEo/rMFicTIR9Y2yPMrX0qVTgVUP7e8k2gqj2H+QFT2of/nGPDHuxhjxwyH5oaUvY Q9HJtnaotaFX4IiTp6JGKCTbbT2tSYVnd5JtUGWZFn1xgsR2N4yjgFi2Jnk08q5S7Flb HDzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XOFfAy9m; 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 t130si3168277oih.37.2019.12.04.10.07.40; Wed, 04 Dec 2019 10:07:52 -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=XOFfAy9m; 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 S1730552AbfLDSG2 (ORCPT + 99 others); Wed, 4 Dec 2019 13:06:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:54738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730544AbfLDSG0 (ORCPT ); Wed, 4 Dec 2019 13:06:26 -0500 Received: from localhost (unknown [217.68.49.72]) (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 E5BD72081B; Wed, 4 Dec 2019 18:06:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575482785; bh=ZhJ+AoQEj/5MiznVVd92YNDSv6J7kOWoIuf5m+J3hN0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XOFfAy9mLMfqYdRL6vKXRhwwhNtb65kr9SqUIgDwCpLn652XNRm3A4X7Qflc6ntcU enxSRj0UqArvd+0xs7wTIQVSMZ1l8c/AulCLW3Qe1qeVWoP6XxYVuLylKBXrJEDpWr 5mZyVoKZ01cKsY7M04j5kJpVaul//cyNOOMICk7g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Benjamin Herrenschmidt , Michael Ellerman , Sasha Levin Subject: [PATCH 4.14 096/209] powerpc/44x/bamboo: Fix PCI range Date: Wed, 4 Dec 2019 18:55:08 +0100 Message-Id: <20191204175328.473679314@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191204175321.609072813@linuxfoundation.org> References: <20191204175321.609072813@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Benjamin Herrenschmidt [ Upstream commit 3cfb9ebe906b51f2942b1e251009bb251efd2ba6 ] The bamboo dts has a bug: it uses a non-naturally aligned range for PCI memory space. This isnt' supported by the code, thus causing PCI to break on this system. This is due to the fact that while the chip memory map has 1G reserved for PCI memory, it's only 512M aligned. The code doesn't know how to split that into 2 different PMMs and fails, so limit the region to 512M. Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Michael Ellerman Signed-off-by: Sasha Levin --- arch/powerpc/boot/dts/bamboo.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/boot/dts/bamboo.dts b/arch/powerpc/boot/dts/bamboo.dts index aa68911f6560a..084b82ba74933 100644 --- a/arch/powerpc/boot/dts/bamboo.dts +++ b/arch/powerpc/boot/dts/bamboo.dts @@ -268,8 +268,10 @@ /* Outbound ranges, one memory and one IO, * later cannot be changed. Chip supports a second * IO range but we don't use it for now + * The chip also supports a larger memory range but + * it's not naturally aligned, so our code will break */ - ranges = <0x02000000 0x00000000 0xa0000000 0x00000000 0xa0000000 0x00000000 0x40000000 + ranges = <0x02000000 0x00000000 0xa0000000 0x00000000 0xa0000000 0x00000000 0x20000000 0x02000000 0x00000000 0x00000000 0x00000000 0xe0000000 0x00000000 0x00100000 0x01000000 0x00000000 0x00000000 0x00000000 0xe8000000 0x00000000 0x00010000>; -- 2.20.1