AGESA: Switch to MMCONF_SUPPORT_DEFAULT
Vendorcode always does PCI MMCONF access once it is enabled via MSR. In coreboot proper, we don't give opportunity to make pci_read/write calls before PCI MMCONF is enabled via MSR. This happens early in romstage amd_initmmio() for all cores. Change-Id: If31bc0a67b480bcc1d955632f413f5cdeec51a54 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/17533 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
@@ -18,7 +18,6 @@ config NORTHBRIDGE_AMD_AGESA_FAMILY10
|
||||
select HAVE_DEBUG_RAM_SETUP
|
||||
select HAVE_DEBUG_SMBUS
|
||||
select HYPERTRANSPORT_PLUGIN_SUPPORT
|
||||
select MMCONF_SUPPORT
|
||||
|
||||
if NORTHBRIDGE_AMD_AGESA_FAMILY10
|
||||
|
||||
|
@@ -1096,13 +1096,11 @@ static void cpu_bus_init(device_t dev)
|
||||
|
||||
static void cpu_bus_read_resources(device_t dev)
|
||||
{
|
||||
#if CONFIG_MMCONF_SUPPORT
|
||||
struct resource *resource = new_resource(dev, 0xc0010058);
|
||||
resource->base = CONFIG_MMCONF_BASE_ADDRESS;
|
||||
resource->size = CONFIG_MMCONF_BUS_NUMBER * 4096*256;
|
||||
resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE |
|
||||
IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void cpu_bus_set_resources(device_t dev)
|
||||
|
@@ -17,7 +17,6 @@ config NORTHBRIDGE_AMD_AGESA_FAMILY12
|
||||
select HAVE_DEBUG_RAM_SETUP
|
||||
select HAVE_DEBUG_SMBUS
|
||||
select HYPERTRANSPORT_PLUGIN_SUPPORT
|
||||
select MMCONF_SUPPORT
|
||||
|
||||
if NORTHBRIDGE_AMD_AGESA_FAMILY12
|
||||
|
||||
|
@@ -649,13 +649,11 @@ static void cpu_bus_read_resources(device_t dev)
|
||||
{
|
||||
printk(BIOS_DEBUG, "\nFam12h - northbridge.c - %s - Start.\n",__func__);
|
||||
|
||||
#if CONFIG_MMCONF_SUPPORT
|
||||
struct resource *resource = new_resource(dev, 0xc0010058);
|
||||
resource->base = CONFIG_MMCONF_BASE_ADDRESS;
|
||||
resource->size = CONFIG_MMCONF_BUS_NUMBER * 4096*256;
|
||||
resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE |
|
||||
IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED;
|
||||
#endif
|
||||
printk(BIOS_DEBUG, "Fam12h - northbridge.c - %s - End.\n",__func__);
|
||||
}
|
||||
|
||||
|
@@ -14,7 +14,6 @@
|
||||
##
|
||||
config NORTHBRIDGE_AMD_AGESA_FAMILY14
|
||||
bool
|
||||
select MMCONF_SUPPORT
|
||||
|
||||
if NORTHBRIDGE_AMD_AGESA_FAMILY14
|
||||
|
||||
|
@@ -302,13 +302,11 @@ static void nb_read_resources(device_t dev)
|
||||
* It is not honored by the coreboot resource allocator if it is in
|
||||
* the CPU_CLUSTER.
|
||||
*/
|
||||
#if CONFIG_MMCONF_SUPPORT
|
||||
struct resource *resource = new_resource(dev, 0xc0010058);
|
||||
resource->base = CONFIG_MMCONF_BASE_ADDRESS;
|
||||
resource->size = CONFIG_MMCONF_BUS_NUMBER * 4096 * 256;
|
||||
resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE |
|
||||
IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void set_resource(device_t dev, struct resource *resource, u32 nodeid)
|
||||
|
@@ -18,7 +18,6 @@ config NORTHBRIDGE_AMD_AGESA_FAMILY15
|
||||
select HAVE_DEBUG_RAM_SETUP
|
||||
select HAVE_DEBUG_SMBUS
|
||||
select HYPERTRANSPORT_PLUGIN_SUPPORT
|
||||
select MMCONF_SUPPORT
|
||||
|
||||
if NORTHBRIDGE_AMD_AGESA_FAMILY15
|
||||
|
||||
|
@@ -326,13 +326,11 @@ static void nb_read_resources(device_t dev)
|
||||
* It is not honored by the coreboot resource allocator if it is in
|
||||
* the CPU_CLUSTER.
|
||||
*/
|
||||
#if CONFIG_MMCONF_SUPPORT
|
||||
struct resource *resource = new_resource(dev, 0xc0010058);
|
||||
resource->base = CONFIG_MMCONF_BASE_ADDRESS;
|
||||
resource->size = CONFIG_MMCONF_BUS_NUMBER * 4096 * 256;
|
||||
resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE |
|
||||
IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void set_resource(device_t dev, struct resource *resource, u32 nodeid)
|
||||
|
@@ -14,7 +14,6 @@
|
||||
##
|
||||
config NORTHBRIDGE_AMD_AGESA_FAMILY15_RL
|
||||
bool
|
||||
select MMCONF_SUPPORT
|
||||
|
||||
if NORTHBRIDGE_AMD_AGESA_FAMILY15_RL
|
||||
|
||||
|
@@ -326,13 +326,11 @@ static void read_resources(struct device *dev)
|
||||
* It is not honored by the coreboot resource allocator if it is in
|
||||
* the CPU_CLUSTER.
|
||||
*/
|
||||
#if CONFIG_MMCONF_SUPPORT
|
||||
struct resource *resource = new_resource(dev, 0xc0010058);
|
||||
resource->base = CONFIG_MMCONF_BASE_ADDRESS;
|
||||
resource->size = CONFIG_MMCONF_BUS_NUMBER * 4096 * 256;
|
||||
resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE |
|
||||
IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void set_resource(struct device *dev, struct resource *resource, u32 nodeid)
|
||||
|
@@ -14,7 +14,6 @@
|
||||
##
|
||||
config NORTHBRIDGE_AMD_AGESA_FAMILY15_TN
|
||||
bool
|
||||
select MMCONF_SUPPORT
|
||||
|
||||
if NORTHBRIDGE_AMD_AGESA_FAMILY15_TN
|
||||
|
||||
|
@@ -325,13 +325,11 @@ static void nb_read_resources(device_t dev)
|
||||
* It is not honored by the coreboot resource allocator if it is in
|
||||
* the CPU_CLUSTER.
|
||||
*/
|
||||
#if CONFIG_MMCONF_SUPPORT
|
||||
struct resource *resource = new_resource(dev, 0xc0010058);
|
||||
resource->base = CONFIG_MMCONF_BASE_ADDRESS;
|
||||
resource->size = CONFIG_MMCONF_BUS_NUMBER * 4096 * 256;
|
||||
resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE |
|
||||
IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void set_resource(device_t dev, struct resource *resource, u32 nodeid)
|
||||
|
@@ -15,7 +15,6 @@
|
||||
##
|
||||
config NORTHBRIDGE_AMD_AGESA_FAMILY16_KB
|
||||
bool
|
||||
select MMCONF_SUPPORT
|
||||
|
||||
if NORTHBRIDGE_AMD_AGESA_FAMILY16_KB
|
||||
|
||||
|
@@ -325,13 +325,11 @@ static void read_resources(device_t dev)
|
||||
* It is not honored by the coreboot resource allocator if it is in
|
||||
* the APIC_CLUSTER.
|
||||
*/
|
||||
#if CONFIG_MMCONF_SUPPORT
|
||||
struct resource *resource = new_resource(dev, 0xc0010058);
|
||||
resource->base = CONFIG_MMCONF_BASE_ADDRESS;
|
||||
resource->size = CONFIG_MMCONF_BUS_NUMBER * 4096 * 256;
|
||||
resource->flags = IORESOURCE_MEM | IORESOURCE_RESERVE |
|
||||
IORESOURCE_FIXED | IORESOURCE_STORED | IORESOURCE_ASSIGNED;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void set_resource(device_t dev, struct resource *resource, u32 nodeid)
|
||||
|
Reference in New Issue
Block a user