[coreboot-gerrit] New patch to review for coreboot: 65cd54c x86 cache-as-ram: Remove BROKEN_CAR_MIGRATE option

Kyösti Mälkki (kyosti.malkki@gmail.com) gerrit at coreboot.org
Tue Mar 10 19:56:01 CET 2015


Kyösti Mälkki (kyosti.malkki at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/8636

-gerrit

commit 65cd54cffee881c4fb31f039590daa5d398bc9dc
Author: Kyösti Mälkki <kyosti.malkki at gmail.com>
Date:   Tue Mar 10 07:25:35 2015 +0200

    x86 cache-as-ram: Remove BROKEN_CAR_MIGRATE option
    
    This was added to handle cases of Intel FSP platforms that had
    EARLY_CBMEM_INIT but could not migrate CAR variables to CBMEM.
    These boards were recently fixed.
    
    To support combination of EARLY_CBMEM_INIT without CAR migration was
    added maintenance effort with little benefits. You had no CBMEM
    console for romstage and the few timestamps you could store were
    circulated via PCI scratchpads or CMOS nvram.
    
    Change-Id: I5cffb7f2b14c45b67ee70cf48be4d7a4c9e5f761
    Signed-off-by: Kyösti Mälkki <kyosti.malkki at gmail.com>
---
 src/arch/x86/Kconfig                    | 8 --------
 src/console/Kconfig                     | 2 +-
 src/cpu/amd/agesa/Kconfig               | 1 -
 src/cpu/amd/pi/Kconfig                  | 1 -
 src/cpu/intel/ep80579/Kconfig           | 1 -
 src/cpu/x86/car.c                       | 5 ++---
 src/mainboard/asus/dsbf/Kconfig         | 1 -
 src/mainboard/iwave/iWRainbowG6/Kconfig | 1 -
 src/mainboard/supermicro/x7db8/Kconfig  | 1 -
 9 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/src/arch/x86/Kconfig b/src/arch/x86/Kconfig
index dfb91fa..2087619 100644
--- a/src/arch/x86/Kconfig
+++ b/src/arch/x86/Kconfig
@@ -51,16 +51,8 @@ config ROMCC
 	bool
 	default n
 
-config BROKEN_CAR_MIGRATE
-	def_bool n
-	help
-	  Many boards use CAR_GLOBAL but have no EARLY_CBMEM_INIT and
-	  manage CAR migration on S3 resume path only. Couple boards use
-	  CAR_GLOBAL and never do CAR migration.
-
 config LATE_CBMEM_INIT
 	def_bool n
-	select BROKEN_CAR_MIGRATE
 	help
 	  Enable this in chipset's Kconfig if northbridge does not implement
 	  early get_top_of_ram() call for romstage. CBMEM tables will be
diff --git a/src/console/Kconfig b/src/console/Kconfig
index 2969c0f..26e0866 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -186,7 +186,7 @@ config CONSOLE_CBMEM_BUFFER_SIZE
 
 config CONSOLE_PRERAM_BUFFER_BASE
 	hex
-	default 0xabadbeef if !CACHE_AS_RAM || BROKEN_CAR_MIGRATE
+	default 0xabadbeef if !CACHE_AS_RAM || LATE_CBMEM_INIT
 	default 0x0
 
 config CONSOLE_PRERAM_BUFFER_SIZE
diff --git a/src/cpu/amd/agesa/Kconfig b/src/cpu/amd/agesa/Kconfig
index 2aeb8d7..84d50c8 100644
--- a/src/cpu/amd/agesa/Kconfig
+++ b/src/cpu/amd/agesa/Kconfig
@@ -34,7 +34,6 @@ config CPU_AMD_AGESA
 	select TSC_SYNC_LFENCE
 	select UDELAY_LAPIC
 	select LAPIC_MONOTONIC_TIMER
-	select BROKEN_CAR_MIGRATE
 	select SPI_FLASH if HAVE_ACPI_RESUME
 
 if CPU_AMD_AGESA
diff --git a/src/cpu/amd/pi/Kconfig b/src/cpu/amd/pi/Kconfig
index 3fa6263..6702a19 100644
--- a/src/cpu/amd/pi/Kconfig
+++ b/src/cpu/amd/pi/Kconfig
@@ -29,7 +29,6 @@ config CPU_AMD_PI
 	select TSC_SYNC_LFENCE
 	select UDELAY_LAPIC
 	select LAPIC_MONOTONIC_TIMER
-	select BROKEN_CAR_MIGRATE
 	select SPI_FLASH if HAVE_ACPI_RESUME
 
 if CPU_AMD_PI
diff --git a/src/cpu/intel/ep80579/Kconfig b/src/cpu/intel/ep80579/Kconfig
index 5d90611..062f101 100644
--- a/src/cpu/intel/ep80579/Kconfig
+++ b/src/cpu/intel/ep80579/Kconfig
@@ -6,7 +6,6 @@ config CPU_INTEL_EP80579
 	select ARCH_RAMSTAGE_X86_32
 	select SSE
 	select SUPPORT_CPU_UCODE_IN_CBFS
-	select BROKEN_CAR_MIGRATE
 
 if CPU_INTEL_EP80579
 
diff --git a/src/cpu/x86/car.c b/src/cpu/x86/car.c
index 9f1a26e..18d74b2 100644
--- a/src/cpu/x86/car.c
+++ b/src/cpu/x86/car.c
@@ -149,9 +149,8 @@ static void do_car_migrate_hooks(void)
 
 void car_migrate_variables(void)
 {
-	if (!IS_ENABLED(CONFIG_BROKEN_CAR_MIGRATE) && !IS_ENABLED(PLATFORM_USES_FSP))
+	if (!IS_ENABLED(PLATFORM_USES_FSP))
 		do_car_migrate_variables();
 
-	if (!IS_ENABLED(CONFIG_BROKEN_CAR_MIGRATE))
-		do_car_migrate_hooks();
+	do_car_migrate_hooks();
 }
diff --git a/src/mainboard/asus/dsbf/Kconfig b/src/mainboard/asus/dsbf/Kconfig
index c130a9f..481d4fa 100644
--- a/src/mainboard/asus/dsbf/Kconfig
+++ b/src/mainboard/asus/dsbf/Kconfig
@@ -10,7 +10,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	select HAVE_PIRQ_TABLE
 	select DRIVERS_I2C_W83793
 	select DRIVERS_GENERIC_IOAPIC
-	select BROKEN_CAR_MIGRATE
 
 config MAINBOARD_DIR
 	string
diff --git a/src/mainboard/iwave/iWRainbowG6/Kconfig b/src/mainboard/iwave/iWRainbowG6/Kconfig
index e9ecede..7bca220 100644
--- a/src/mainboard/iwave/iWRainbowG6/Kconfig
+++ b/src/mainboard/iwave/iWRainbowG6/Kconfig
@@ -12,7 +12,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	select UDELAY_LAPIC
 	select HAVE_ACPI_TABLES
 	select BOARD_ROMSIZE_KB_1024
-	select BROKEN_CAR_MIGRATE
 
 config MAINBOARD_DIR
 	string
diff --git a/src/mainboard/supermicro/x7db8/Kconfig b/src/mainboard/supermicro/x7db8/Kconfig
index f5b0e11..82a4ebb 100644
--- a/src/mainboard/supermicro/x7db8/Kconfig
+++ b/src/mainboard/supermicro/x7db8/Kconfig
@@ -10,7 +10,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	select HAVE_PIRQ_TABLE
 	select DRIVERS_I2C_W83793
 	select DRIVERS_GENERIC_IOAPIC
-	select BROKEN_CAR_MIGRATE
 
 config MAINBOARD_DIR
 	string



More information about the coreboot-gerrit mailing list