mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
AMD and GFXUMA: drop redundant use of lb_add_memory_range()
Use of uma_resource() in AMD northbridge code created a memory resource marked as reserved. Such resources are removed from system memory in write_coreboot_table(). Change-Id: Ib5e49e851d6622d8ece9d6d612e245b3962b9167 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/1233 Tested-by: build bot (Jenkins) Reviewed-by: Rudolf Marek <r.marek@assembler.cz>
This commit is contained in:
parent
ce6e9fed2e
commit
505414a6cf
27 changed files with 0 additions and 237 deletions
|
@ -91,15 +91,6 @@ static void a785e_i_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -142,15 +142,6 @@ static void bimini_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -195,15 +195,6 @@ static void dbm690t_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_base=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED,
|
||||
uma_memory_base, uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -78,15 +78,6 @@ static void dinar_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
struct chip_operations mainboard_ops = {
|
||||
|
|
|
@ -87,15 +87,6 @@ static void inagua_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
struct chip_operations mainboard_ops = {
|
||||
|
|
|
@ -110,15 +110,6 @@ static void mahogany_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -112,15 +112,6 @@ static void mahogany_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -72,15 +72,6 @@ static void persimmon_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -265,15 +265,6 @@ static void pistachio_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_base=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED,
|
||||
uma_memory_base, uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -87,15 +87,6 @@ static void southstation_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
struct chip_operations mainboard_ops = {
|
||||
|
|
|
@ -289,15 +289,6 @@ static void tilapia_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -62,15 +62,6 @@ static void torpedo_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
struct chip_operations mainboard_ops = {
|
||||
|
|
|
@ -60,15 +60,6 @@ static void unionstation_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
struct chip_operations mainboard_ops = {
|
||||
|
|
|
@ -109,15 +109,6 @@ static void mb_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -58,15 +58,6 @@ static void e350m1_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
struct chip_operations mainboard_ops = {
|
||||
|
|
|
@ -26,10 +26,6 @@
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
#if CONFIG_GFXUMA
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED,
|
||||
uma_memory_base, uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -88,15 +88,6 @@ static void m5a88pm_v_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -91,15 +91,6 @@ static void eax_785e(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -149,15 +149,6 @@ static void ma785gm_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -260,15 +260,6 @@ static void ma785gmt_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -85,15 +85,6 @@ static void ma78gm_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -67,15 +67,6 @@ static void kino_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -114,15 +114,6 @@ static void pa78vm5_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_start=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base,
|
||||
uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -195,15 +195,6 @@ static void kt690_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_base=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED,
|
||||
uma_memory_base, uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -873,14 +873,6 @@ int add_mainboard_resources(struct lb_memory *mem)
|
|||
printk(BIOS_INFO, "mmconf: base=%0llx size=%0llx\n", res->base, res->size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, res->base, res->size);
|
||||
}
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_base=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED, uma_memory_base, uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -247,15 +247,6 @@ static void tim5690_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_base=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED,
|
||||
uma_memory_base, uma_memory_size);
|
||||
#endif
|
||||
technexion_post_code(LED_MESSAGE_FINISH);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -154,15 +154,6 @@ static void tim8690_enable(device_t dev)
|
|||
|
||||
int add_mainboard_resources(struct lb_memory *mem)
|
||||
{
|
||||
/* UMA is removed from system memory in the northbridge code, but
|
||||
* in some circumstances we want the memory mentioned as reserved.
|
||||
*/
|
||||
#if CONFIG_GFXUMA
|
||||
printk(BIOS_INFO, "uma_memory_base=0x%llx, uma_memory_size=0x%llx \n",
|
||||
uma_memory_base, uma_memory_size);
|
||||
lb_add_memory_range(mem, LB_MEM_RESERVED,
|
||||
uma_memory_base, uma_memory_size);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue