From: Maxime Ripard Date: Fri, 23 Mar 2018 10:39:25 +0100 Subject: [U-Boot] [PATCH v2 2/6] sunxi: add Kconfig option for the maximum accessible DRAM In-Reply-To: <20180323081857.57138-3-icenowy@aosc.io> References: <20180323081857.57138-1-icenowy@aosc.io> <20180323081857.57138-3-icenowy@aosc.io> Message-ID: <20180323093925.axmco2wjia3evb5p@flea> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Mar 23, 2018 at 04:18:53PM +0800, Icenowy Zheng wrote: > Allwinner 64-bit SoCs can use 4GiB DRAM chip, however their memory map > has only allocated 3GiB for DRAM, so only 3GiB of the DRAM is > accessible. How would that work in Linux? > Add a Kconfig option for the maximum accessible DRAM. > > For A80 it should be a much higher value (8GiB), but as I have no A80 > device to test and originally U-Boot only supports 2GiB DRAM on A80, it > currently still falls under the 2GiB situation. I guess we have LPAE on armv7 to deal with this nicely. Maxime -- Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com