From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Sun, 8 Dec 2019 11:02:52 +0800 Subject: [PATCH v6 038/102] x86: Set the DRAM banks to reflect real location In-Reply-To: <20191206213936.v6.38.I9dd99aacd4743c5c08a266642c9014e5982b8b76@changeid> References: <20191207044315.51770-1-sjg@chromium.org> <20191206213936.v6.38.I9dd99aacd4743c5c08a266642c9014e5982b8b76@changeid> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Dec 7, 2019 at 12:48 PM Simon Glass wrote: > > At present with fsp a single DRAM bank is added which extends to the > whole size of memory. However there is typically only 2GB of memory > available below the 4GB boundary, and this is what is used by U-Boot while > running in 32-bit mode. > > Scan the tables to set the banks correct. The first bank is set to memory > below 4GB, and the rest of memory is put into subsequent banks. > > Signed-off-by: Simon Glass > Reviewed-by: Bin Meng > --- > > Changes in v6: None > Changes in v5: None > Changes in v4: None > Changes in v3: > - Move mtrr_add_request() call to next patch > > Changes in v2: None > > arch/x86/lib/fsp/fsp_dram.c | 30 +++++++++++++++++++++++++++++- > 1 file changed, 29 insertions(+), 1 deletion(-) > applied to u-boot-x86/next, thanks!