Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751564AbdH1PZl (ORCPT ); Mon, 28 Aug 2017 11:25:41 -0400 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:37545 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751284AbdH1PZg (ORCPT ); Mon, 28 Aug 2017 11:25:36 -0400 From: Jan Luebbe To: Gregory Clement , Andrew Lunn , Thomas Petazzoni , Jason Cooper Cc: linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Jan Luebbe Subject: [PATCH 0/2] fix 4GB DRAM window support on mvebu Date: Mon, 28 Aug 2017 17:25:15 +0200 Message-Id: <20170828152517.24506-1-jlu@pengutronix.de> X-Mailer: git-send-email 2.11.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: jlu@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 657 Lines: 18 The current MBUS DRAM window calculation fails for 4GB windows because it overflows. This is fixed in the first patch by using u64 instead of u32 to store the size. The second excplicitly checks that we don't try to configure a too large memory window in the pci driver. As they don't depend on each other, they could also go in separatly. Jan Luebbe (2): bus: mbus: fix window size calculation for 4GB windows PCI: mvebu: Check DRAM window size drivers/bus/mvebu-mbus.c | 2 +- drivers/pci/host/pci-mvebu.c | 27 ++++++++++++++++++++++----- include/linux/mbus.h | 4 ++-- 3 files changed, 25 insertions(+), 8 deletions(-) -- 2.11.0