From 6b5eb1cc2d1702ff10cd02249d3d861c094f9118 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Thu, 19 Jul 2012 19:26:43 +0300 Subject: AMD and GFXUMA: move setup_uma_memory() to northbridge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit UMA region can be determined at any time after the amount of RAM is known and before the uma_resource() call. Change-Id: I2a0bf2d3cad55ee70e889c88846f962b7faa0c7e Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/1379 Reviewed-by: Zheng Bao Tested-by: build bot (Jenkins) Reviewed-by: Anton Kochkov --- src/northbridge/amd/amdk8/northbridge.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/northbridge/amd/amdk8') diff --git a/src/northbridge/amd/amdk8/northbridge.c b/src/northbridge/amd/amdk8/northbridge.c index 21f2808465..bec02f0e9d 100644 --- a/src/northbridge/amd/amdk8/northbridge.c +++ b/src/northbridge/amd/amdk8/northbridge.c @@ -823,7 +823,7 @@ static u32 hoist_memory(unsigned long hole_startk, int node_id) #include #endif -void setup_uma_memory(void) +static void setup_uma_memory(void) { #if CONFIG_GFXUMA msr_t msr, msr2; @@ -896,6 +896,8 @@ static void amdk8_domain_set_resources(device_t dev) u32 reset_memhole = 1; #endif + setup_uma_memory(); + #if 0 /* Place the IO devices somewhere safe */ io = find_resource(dev, 0); -- cgit v1.2.3