Skip to contentSkip to conversation

x86: galileo: Fix boot failure

PATCH New Bin Meng 2 participants 26 messages Oct 19, 2017 – Oct 27, 2017

Subsystems (2)
lore
Share & tools
lore

Bin Meng

author
#0 lore raw

PATCH 1/9 x86: galileo: Fix boot failure

With latest codes on mainstream master, Intel Galileo board does not boot unfortunately. Git biset leads to b383d6c0 "bootstage: Convert to use malloc()".

Disable bootstage support to make it boot again. The root cause needs to be investigated however.

Fixes b383d6c0 ("bootstage: Convert to use malloc()")

---

 configs/galileo_defconfig | 3 ---
 1 file changed, 3 deletions(-)
configs/galileo_defconfig +0 -3
index c1849e3..f91890c 100644
@@ -6,8 +6,6 @@ CONFIG_GENERATE_PIRQ_TABLE=y
 CONFIG_GENERATE_MP_TABLE=y
 CONFIG_GENERATE_ACPI_TABLE=y
 CONFIG_FIT=y
-CONFIG_BOOTSTAGE=y
-CONFIG_BOOTSTAGE_REPORT=y
 CONFIG_USE_BOOTARGS=y
 CONFIG_BOOTARGS="root=/dev/sdb3 init=/sbin/init rootwait ro"
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
@@ -25,7 +23,6 @@ CONFIG_CMD_DHCP=y
 # CONFIG_CMD_NFS is not set
 CONFIG_CMD_PING=y
 CONFIG_CMD_TIME=y
-CONFIG_CMD_BOOTSTAGE=y
 CONFIG_CMD_EXT2=y
 CONFIG_CMD_EXT4=y
 CONFIG_CMD_EXT4_WRITE=y
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/9 x86: galileo: Fix boot failure

Quoted 7 lines · Bin Meng

With latest codes on mainstream master, Intel Galileo board does not boot unfortunately. Git biset leads to b383d6c0 "bootstage: Convert to use malloc()".

Disable bootstage support to make it boot again. The root cause needs to be investigated however.

Quoted 7 lines
Fixes b383d6c0 ("bootstage: Convert to use malloc()")

---

 configs/galileo_defconfig | 3 ---
 1 file changed, 3 deletions(-)

applied to u-boot-x86, thanks!

author
#2 lore raw

PATCH 2/9 x86: braswell: Fix unexpected crash during Linux kernel boot

In reply to Bin Meng

It was observed that when booting Linux kernel on Intel Cherry Hill board, unexpected crash happens quite randomly. Sometimes kernel just oops, while sometimes kernel throws MCE errors and hangs:

mce: [Hardware Error]: Machine check events logged
mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 4: c400000000010151
mce: [Hardware Error]: TSC 0 ADDR 130f3f2c0
mce: [Hardware Error]: PROCESSOR 0:406c3 TIME 1508160686 SOCKET 0 APIC 0 microcode 363

This looks like a hardware error per mcelog. After debugging, it seems turning off turbo mode on the processor does not expose this behavior, although U-Boot runs OK with turbo mode on. Suspect it is related to an errata of Braswell processor.

To fix this, remove the Braswell cpu driver which does the turbo mode configuration, and switch to use the generic cpu-x86 driver. Also there is a configuration option in the FSP that turns on the turbo mode and that has been turned off too.

---

 arch/x86/cpu/braswell/Makefile |   2 +-
 arch/x86/cpu/braswell/cpu.c    | 170 -----------------------------------------
 arch/x86/dts/cherryhill.dts    |   9 +--
 3 files changed, 5 insertions(+), 176 deletions(-)
 delete mode 100644 arch/x86/cpu/braswell/cpu.c
arch/x86/cpu/braswell/Makefile +1 -1
index ddf6d28..4a639b8 100644
@@ -4,4 +4,4 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-obj-y += braswell.o cpu.o early_uart.o fsp_configs.o
+obj-y += braswell.o early_uart.o fsp_configs.o
arch/x86/cpu/braswell/cpu.c deleted +0 -170

170 lines not on this page · raw message

arch/x86/dts/cherryhill.dts +4 -5
index 1ccb605..840a669 100644
@@ -37,28 +37,28 @@
 
 		cpu at 0 {
 			device_type = "cpu";
-			compatible = "intel,braswell-cpu";
+			compatible = "cpu-x86";
 			reg = <0>;
 			intel,apic-id = <0>;
 		};
 
 		cpu at 1 {
 			device_type = "cpu";
-			compatible = "intel,braswell-cpu";
+			compatible = "cpu-x86";
 			reg = <1>;
 			intel,apic-id = <2>;
 		};
 
 		cpu at 2 {
 			device_type = "cpu";
-			compatible = "intel,braswell-cpu";
+			compatible = "cpu-x86";
 			reg = <2>;
 			intel,apic-id = <4>;
 		};
 
 		cpu at 3 {
 			device_type = "cpu";
-			compatible = "intel,braswell-cpu";
+			compatible = "cpu-x86";
 			reg = <3>;
 			intel,apic-id = <6>;
 		};
@@ -194,7 +194,6 @@
 			fsp,pmic-i2c-bus = <0>;
 			fsp,enable-isp;
 			fsp,isp-pci-dev-config = <ISP_PCI_DEV_CONFIG_2>;
-			fsp,turbo-mode;
 			fsp,pnp-settings = <PNP_SETTING_POWER_AND_PERF>;
 			fsp,sd-detect-chk;
 		};
Signature · 1 line
2.7.4
#3 lore raw

PATCH 2/9 x86: braswell: Fix unexpected crash during Linux kernel boot

Quoted 19 lines · Bin Meng

It was observed that when booting Linux kernel on Intel Cherry Hill board, unexpected crash happens quite randomly. Sometimes kernel just oops, while sometimes kernel throws MCE errors and hangs:

mce: [Hardware Error]: Machine check events logged
mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 4: c400000000010151
mce: [Hardware Error]: TSC 0 ADDR 130f3f2c0
mce: [Hardware Error]: PROCESSOR 0:406c3 TIME 1508160686 SOCKET 0 APIC 0 microcode 363

This looks like a hardware error per mcelog. After debugging, it seems turning off turbo mode on the processor does not expose this behavior, although U-Boot runs OK with turbo mode on. Suspect it is related to an errata of Braswell processor.

To fix this, remove the Braswell cpu driver which does the turbo mode configuration, and switch to use the generic cpu-x86 driver. Also there is a configuration option in the FSP that turns on the turbo mode and that has been turned off too.

Quoted 8 lines

---

 arch/x86/cpu/braswell/Makefile |   2 +-
 arch/x86/cpu/braswell/cpu.c    | 170 -----------------------------------------
 arch/x86/dts/cherryhill.dts    |   9 +--
 3 files changed, 5 insertions(+), 176 deletions(-)
 delete mode 100644 arch/x86/cpu/braswell/cpu.c

Oh dear, what a sad patch.

author
#4 lore raw

PATCH 2/9 x86: braswell: Fix unexpected crash during Linux kernel boot

Quoted 29 lines · Simon Glass
Quoted 19 lines · Bin Meng

It was observed that when booting Linux kernel on Intel Cherry Hill board, unexpected crash happens quite randomly. Sometimes kernel just oops, while sometimes kernel throws MCE errors and hangs:

mce: [Hardware Error]: Machine check events logged
mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 4: c400000000010151
mce: [Hardware Error]: TSC 0 ADDR 130f3f2c0
mce: [Hardware Error]: PROCESSOR 0:406c3 TIME 1508160686 SOCKET 0 APIC 0 microcode 363

This looks like a hardware error per mcelog. After debugging, it seems turning off turbo mode on the processor does not expose this behavior, although U-Boot runs OK with turbo mode on. Suspect it is related to an errata of Braswell processor.

To fix this, remove the Braswell cpu driver which does the turbo mode configuration, and switch to use the generic cpu-x86 driver. Also there is a configuration option in the FSP that turns on the turbo mode and that has been turned off too.

Quoted 8 lines

---

 arch/x86/cpu/braswell/Makefile |   2 +-
 arch/x86/cpu/braswell/cpu.c    | 170 -----------------------------------------
 arch/x86/dts/cherryhill.dts    |   9 +--
 3 files changed, 5 insertions(+), 176 deletions(-)
 delete mode 100644 arch/x86/cpu/braswell/cpu.c
Quoted 3 lines

Oh dear, what a sad patch.

applied to u-boot-x86, thanks!

author
#5 lore raw

PATCH 3/9 env: x86: braswell: Set ENV_IS_IN_SPI_FLASH as default

In reply to Bin Meng

Imply does not work for a Kconfig choice. Update ENV_IS_IN_SPI_FLASH to be the default one for Intel Braswell.

---

 arch/x86/cpu/braswell/Kconfig | 1 -
 env/Kconfig                   | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
arch/x86/cpu/braswell/Kconfig +0 -1
index 0e214a7..616f228 100644
@@ -12,7 +12,6 @@ config INTEL_BRASWELL
 	imply HAVE_INTEL_ME
 	imply HAVE_VBT
 	imply ENABLE_MRC_CACHE
-	imply ENV_IS_IN_SPI_FLASH
 	imply AHCI_PCI
 	imply ICH_SPI
 	imply MMC
env/Kconfig +1 -0
index 024d4d7..3342806 100644
@@ -17,6 +17,7 @@ choice
 	default ENV_IS_IN_FLASH if SH && !CPU_SH4
 	default ENV_IS_IN_SPI_FLASH if ARMADA_XP
 	default ENV_IS_IN_SPI_FLASH if INTEL_BAYTRAIL
+	default ENV_IS_IN_SPI_FLASH if INTEL_BRASWELL
 	default ENV_IS_IN_SPI_FLASH if INTEL_BROADWELL
 	default ENV_IS_IN_SPI_FLASH if NORTHBRIDGE_INTEL_IVYBRIDGE
 	default ENV_IS_IN_SPI_FLASH if INTEL_QUARK
Signature · 1 line
2.7.4
#6 lore raw

PATCH 3/9 env: x86: braswell: Set ENV_IS_IN_SPI_FLASH as default

Quoted 9 lines · Bin Meng

Imply does not work for a Kconfig choice. Update ENV_IS_IN_SPI_FLASH to be the default one for Intel Braswell.

---

 arch/x86/cpu/braswell/Kconfig | 1 -
 env/Kconfig                   | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
author
#7 lore raw

PATCH 3/9 env: x86: braswell: Set ENV_IS_IN_SPI_FLASH as default

Quoted 4 lines · Simon Glass
Quoted 3 lines · Bin Meng

Imply does not work for a Kconfig choice. Update ENV_IS_IN_SPI_FLASH to be the default one for Intel Braswell.

Quoted 8 lines
Quoted 6 lines

---

 arch/x86/cpu/braswell/Kconfig | 1 -
 env/Kconfig                   | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

applied to u-boot-x86, thanks!

author
#8 lore raw

PATCH 4/9 x86: Fix ACPI resume dependency to MRC cache

In reply to Bin Meng

In an S3 resume path, MRC cache is mandatory. Enforce the dependency in the Kconfig.

---

 arch/x86/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/x86/Kconfig +1 -0
index c869ae2..b2ae865 100644
@@ -664,6 +664,7 @@ endmenu
 
 config HAVE_ACPI_RESUME
 	bool "Enable ACPI S3 resume"
+	select ENABLE_MRC_CACHE
 	help
 	  Select this to enable ACPI S3 resume. S3 is an ACPI-defined sleeping
 	  state where all system context is lost except system memory. U-Boot
Signature · 1 line
2.7.4
author
#10 lore raw

PATCH 4/9 x86: Fix ACPI resume dependency to MRC cache

Quoted 11 lines · Simon Glass
Quoted 8 lines · Bin Meng

In an S3 resume path, MRC cache is mandatory. Enforce the dependency in the Kconfig.

---

 arch/x86/Kconfig | 1 +
 1 file changed, 1 insertion(+)

applied to u-boot-x86, thanks!

author
#11 lore raw

PATCH 5/9 Revert "x86: fsp: Configure SPI opcode registers before SPI is locked down"

In reply to Bin Meng

This reverts commit 1e6ebee667da47fd3a87839a239a7574c66f5659.

It's not appropriate to call the Intel SPI driver specific stuff in the FSP codes. We may add a simple DTS property "intel,spi-lock-down" and let the Intel SPI driver call these stuff instead.

---

 arch/x86/Kconfig              |  9 ---------
 arch/x86/lib/fsp/fsp_common.c | 24 ------------------------
 2 files changed, 33 deletions(-)
arch/x86/Kconfig +0 -9
index b2ae865..98c56ad 100644
@@ -402,15 +402,6 @@ config FSP_BROKEN_HOB
 	  do not overwrite the important boot service data which is used by
 	  FSP, otherwise the subsequent call to fsp_notify() will fail.
 
-config FSP_LOCKDOWN_SPI
-	bool
-	depends on HAVE_FSP
-	help
-	  Some Intel FSP (like Braswell) does SPI lock-down during the call
-	  to fsp_notify(INIT_PHASE_BOOT). This option should be turned on
-	  for such FSP and U-Boot will configure the SPI opcode registers
-	  before the lock-down.
-
 config ENABLE_MRC_CACHE
 	bool "Enable MRC cache"
 	depends on !EFI && !SYS_COREBOOT
arch/x86/lib/fsp/fsp_common.c +0 -24
index 1714d13..3397bb8 100644
@@ -19,8 +19,6 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern void ich_spi_config_opcode(struct udevice *dev);
-
 int checkcpu(void)
 {
 	return 0;
@@ -51,28 +49,6 @@ void board_final_cleanup(void)
 {
 	u32 status;
 
-#ifdef CONFIG_FSP_LOCKDOWN_SPI
-	struct udevice *dev;
-
-	/*
-	 * Some Intel FSP (like Braswell) does SPI lock-down during the call
-	 * to fsp_notify(INIT_PHASE_BOOT). But before SPI lock-down is done,
-	 * it's bootloader's responsibility to configure the SPI controller's
-	 * opcode registers properly otherwise SPI controller driver doesn't
-	 * know how to communicate with the SPI flash device.
-	 *
-	 * Note we cannot do such configuration elsewhere (eg: during the SPI
-	 * controller driver's probe() routine), because:
-	 *
-	 * 1). U-Boot SPI controller driver does not set the lock-down bit
-	 * 2). Any SPI transfer will corrupt the contents of these registers
-	 *
-	 * Hence we have to do it right here before SPI lock-down bit is set.
-	 */
-	if (!uclass_first_device_err(UCLASS_SPI, &dev))
-		ich_spi_config_opcode(dev);
-#endif
-
 	/* call into FspNotify */
 	debug("Calling into FSP (notify phase INIT_PHASE_BOOT): ");
 	status = fsp_notify(NULL, INIT_PHASE_BOOT);
Signature · 1 line
2.7.4
author
#12 lore raw

PATCH 5/9 Revert "x86: fsp: Configure SPI opcode registers before SPI is locked down"

Quoted 6 lines · Bin Meng

This reverts commit 1e6ebee667da47fd3a87839a239a7574c66f5659.

It's not appropriate to call the Intel SPI driver specific stuff in the FSP codes. We may add a simple DTS property "intel,spi-lock-down" and let the Intel SPI driver call these stuff instead.

Quoted 7 lines

---

 arch/x86/Kconfig              |  9 ---------
 arch/x86/lib/fsp/fsp_common.c | 24 ------------------------
 2 files changed, 33 deletions(-)

applied to u-boot-x86, thanks!

author
#13 lore raw

PATCH 6/9 spi: ich: Lock down controller settings if required

In reply to Bin Meng

Some Intel FSP (like Braswell) does SPI lock-down during the call to fsp_notify(INIT_PHASE_BOOT). But before SPI lock-down is done, it's bootloader's responsibility to configure the SPI controller's opcode registers properly otherwise SPI controller driver doesn't know how to communicate with the SPI flash device.

Rather than passively doing the opcode configuration, let's add a simple DTS property "intel,spi-lock-down" and let the driver call the opcode configuration function if required by such FSP.

---

 drivers/spi/ich.c | 22 ++++++++++++++++++++++
 drivers/spi/ich.h |  1 +
 2 files changed, 23 insertions(+)
drivers/spi/ich.c +22 -0
index 22fc83d..927bbd7 100644
@@ -184,6 +184,19 @@ static inline void spi_use_in(struct spi_trans *trans, unsigned bytes)
 	trans->bytesin -= bytes;
 }
 
+static void spi_lock_down(struct ich_spi_platdata *plat, void *sbase)
+{
+	if (plat->ich_version == ICHV_7) {
+		struct ich7_spi_regs *ich7_spi = sbase;
+
+		setbits_le16(&ich7_spi->spis, SPIS_LOCK);
+	} else if (plat->ich_version == ICHV_9) {
+		struct ich9_spi_regs *ich9_spi = sbase;
+
+		setbits_le16(&ich9_spi->hsfs, HSFS_FLOCKDN);
+	}
+}
+
 static bool spi_lock_status(struct ich_spi_platdata *plat, void *sbase)
 {
 	int lock = 0;
@@ -592,6 +605,12 @@ static int ich_spi_probe(struct udevice *dev)
 		return ret;
 	}
 
+	/* Lock down SPI controller settings if required */
+	if (plat->lockdown) {
+		ich_spi_config_opcode(dev);
+		spi_lock_down(plat, priv->base);
+	}
+
 	priv->cur_speed = priv->max_speed;
 
 	return 0;
@@ -662,6 +681,9 @@ static int ich_spi_ofdata_to_platdata(struct udevice *dev)
 			plat->ich_version = ICHV_9;
 	}
 
+	plat->lockdown = fdtdec_get_bool(gd->fdt_blob, node,
+					 "intel,spi-lock-down");
+
 	return ret;
 }
 
drivers/spi/ich.h +1 -0
index c867c57..06b7fb9 100644
@@ -174,6 +174,7 @@ enum ich_version {
 
 struct ich_spi_platdata {
 	enum ich_version ich_version;	/* Controller version, 7 or 9 */
+	bool lockdown;			/* lock down controller settings? */
 };
 
 struct ich_spi_priv {
Signature · 1 line
2.7.4
#14 lore raw

PATCH 6/9 spi: ich: Lock down controller settings if required

Quoted 10 lines · Bin Meng

Some Intel FSP (like Braswell) does SPI lock-down during the call to fsp_notify(INIT_PHASE_BOOT). But before SPI lock-down is done, it's bootloader's responsibility to configure the SPI controller's opcode registers properly otherwise SPI controller driver doesn't know how to communicate with the SPI flash device.

Rather than passively doing the opcode configuration, let's add a simple DTS property "intel,spi-lock-down" and let the driver call the opcode configuration function if required by such FSP.

Quoted 6 lines

---

 drivers/spi/ich.c | 22 ++++++++++++++++++++++
 drivers/spi/ich.h |  1 +
 2 files changed, 23 insertions(+)

Does this go in a binding file somewhere?

author
#15 lore raw

PATCH 6/9 spi: ich: Lock down controller settings if required

Hi Simon,

Quoted 11 lines · Simon Glass
Quoted 10 lines · Bin Meng

Some Intel FSP (like Braswell) does SPI lock-down during the call to fsp_notify(INIT_PHASE_BOOT). But before SPI lock-down is done, it's bootloader's responsibility to configure the SPI controller's opcode registers properly otherwise SPI controller driver doesn't know how to communicate with the SPI flash device.

Rather than passively doing the opcode configuration, let's add a simple DTS property "intel,spi-lock-down" and let the driver call the opcode configuration function if required by such FSP.

Quoted 9 lines
Quoted 6 lines

---

 drivers/spi/ich.c | 22 ++++++++++++++++++++++
 drivers/spi/ich.h |  1 +
 2 files changed, 23 insertions(+)

Does this go in a binding file somewhere?

Looks there is no binding file for Intel SPI controller driver. We will need create one.

Quoted 1 line

Regards,
Bin

author
#16 lore raw

PATCH 6/9 spi: ich: Lock down controller settings if required

Quoted 21 lines · Bin Meng

Hi Simon,

Quoted 18 lines · Simon Glass
Quoted 16 lines · Bin Meng

Some Intel FSP (like Braswell) does SPI lock-down during the call to fsp_notify(INIT_PHASE_BOOT). But before SPI lock-down is done, it's bootloader's responsibility to configure the SPI controller's opcode registers properly otherwise SPI controller driver doesn't know how to communicate with the SPI flash device.

Rather than passively doing the opcode configuration, let's add a simple DTS property "intel,spi-lock-down" and let the driver call the opcode configuration function if required by such FSP.

---

 drivers/spi/ich.c | 22 ++++++++++++++++++++++
 drivers/spi/ich.h |  1 +
 2 files changed, 23 insertions(+)
Quoted 8 lines
Quoted 2 lines

Does this go in a binding file somewhere?

Looks there is no binding file for Intel SPI controller driver. We will need create one.

Quoted 1 line

applied to u-boot-x86, thanks!

author
#17 lore raw

PATCH 7/9 x86: braswell: cherryhill: Update dts for SPI lock down

In reply to Bin Meng

Intel Braswell FSP requires SPI controller settings to be locked down, let's do this in the chrryhill.dts and remove previous Kconfig option.

---

 arch/x86/cpu/braswell/Kconfig | 4 ----
 arch/x86/dts/cherryhill.dts   | 1 +
 2 files changed, 1 insertion(+), 4 deletions(-)
arch/x86/cpu/braswell/Kconfig +0 -4
index 616f228..31ac279 100644
@@ -31,8 +31,4 @@ config FSP_ADDR
 	hex
 	default 0xfff20000
 
-config FSP_LOCKDOWN_SPI
-	bool
-	default y
-
 endif
arch/x86/dts/cherryhill.dts +1 -0
index 840a669..41e72f3 100644
@@ -143,6 +143,7 @@
 				#address-cells = <1>;
 				#size-cells = <0>;
 				compatible = "intel,ich9-spi";
+				intel,spi-lock-down;
 
 				spi-flash at 0 {
 					#address-cells = <1>;
Signature · 1 line
2.7.4
#18 lore raw

PATCH 7/9 x86: braswell: cherryhill: Update dts for SPI lock down

Quoted 9 lines · Bin Meng

Intel Braswell FSP requires SPI controller settings to be locked down, let's do this in the chrryhill.dts and remove previous Kconfig option.

---

 arch/x86/cpu/braswell/Kconfig | 4 ----
 arch/x86/dts/cherryhill.dts   | 1 +
 2 files changed, 1 insertion(+), 4 deletions(-)
author
#19 lore raw

PATCH 7/9 x86: braswell: cherryhill: Update dts for SPI lock down

Quoted 4 lines · Simon Glass
Quoted 3 lines · Bin Meng

Intel Braswell FSP requires SPI controller settings to be locked down, let's do this in the chrryhill.dts and remove previous Kconfig option.

Quoted 8 lines
Quoted 6 lines

---

 arch/x86/cpu/braswell/Kconfig | 4 ----
 arch/x86/dts/cherryhill.dts   | 1 +
 2 files changed, 1 insertion(+), 4 deletions(-)

applied to u-boot-x86, thanks!

author
#20 lore raw

PATCH 8/9 x86: fsp: graphics: Add some notes about the graphics info hob

In reply to Bin Meng

On some platforms (eg: Braswell), the FSP will not produce the graphics info HOB unless you plug some cables to the display interface (eg: HDMI) on the board. Add such notes in the FSP video driver.

---

 arch/x86/lib/fsp/fsp_graphics.c | 4 ++++
 1 file changed, 4 insertions(+)
arch/x86/lib/fsp/fsp_graphics.c +4 -0
index a19b067..af71276 100644
@@ -37,6 +37,10 @@ static int save_vesa_mode(struct vesa_mode_info *vesa)
 	/*
 	 * If there is no graphics info structure, bail out and keep
 	 * running on the serial console.
+	 *
+	 * Note: on some platforms (eg: Braswell), the FSP will not produce
+	 * the graphics info HOB unless you plug some cables to the display
+	 * interface (eg: HDMI) on the board.
 	 */
 	if (!ginfo) {
 		debug("FSP graphics hand-off block not found\n");
Signature · 1 line
2.7.4
#21 lore raw

PATCH 8/9 x86: fsp: graphics: Add some notes about the graphics info hob

Quoted 10 lines · Bin Meng

On some platforms (eg: Braswell), the FSP will not produce the graphics info HOB unless you plug some cables to the display interface (eg: HDMI) on the board. Add such notes in the FSP video driver.

---

 arch/x86/lib/fsp/fsp_graphics.c | 4 ++++
 1 file changed, 4 insertions(+)
author
#22 lore raw

PATCH 8/9 x86: fsp: graphics: Add some notes about the graphics info hob

Quoted 6 lines · Simon Glass
Quoted 5 lines · Bin Meng

On some platforms (eg: Braswell), the FSP will not produce the graphics info HOB unless you plug some cables to the display interface (eg: HDMI) on the board. Add such notes in the FSP video driver.

Quoted 7 lines
Quoted 5 lines

---

 arch/x86/lib/fsp/fsp_graphics.c | 4 ++++
 1 file changed, 4 insertions(+)

applied to u-boot-x86, thanks!

author
#23 lore raw

PATCH 9/9 x86: acpi: Put sleepstates.asl to the common place

In reply to Bin Meng

The supported sleep states are generic on Intel processors. Move the ASL definition to the common place.

---

 arch/x86/include/asm/{arch-baytrail => }/acpi/sleepstates.asl |  0
 arch/x86/include/asm/arch-baytrail/acpi/platform.asl          |  2 +-
 arch/x86/include/asm/arch-quark/acpi/platform.asl             |  2 +-
 arch/x86/include/asm/arch-quark/acpi/sleepstates.asl          | 10 ----------
 4 files changed, 2 insertions(+), 12 deletions(-)
 rename arch/x86/include/asm/{arch-baytrail => }/acpi/sleepstates.asl (100%)
 delete mode 100644 arch/x86/include/asm/arch-quark/acpi/sleepstates.asl
arch/x86/include/asm/acpi/sleepstates.asl renamed from arch/x86/include/asm/arch-baytrail/acpi/sleepstates.asl +0 -0
similarity index 100%
rename from arch/x86/include/asm/arch-baytrail/acpi/sleepstates.asl
rename to arch/x86/include/asm/acpi/sleepstates.asl
arch/x86/include/asm/arch-baytrail/acpi/platform.asl +1 -1
index a80d2c0..cf3de7c 100644
@@ -36,4 +36,4 @@ Scope (\_SB)
 }
 
 /* Chipset specific sleep states */
-#include "sleepstates.asl"
+#include <asm/acpi/sleepstates.asl>
arch/x86/include/asm/arch-quark/acpi/platform.asl +1 -1
index 1ecf153..db59c46 100644
@@ -33,4 +33,4 @@ Scope (\_SB)
 }
 
 /* Chipset specific sleep states */
-#include "sleepstates.asl"
+#include <asm/acpi/sleepstates.asl>
arch/x86/include/asm/arch-quark/acpi/sleepstates.asl deleted +0 -10
deleted file mode 100644
index 63c82fa..0000000
@@ -1,10 +0,0 @@
-/*
- * Copyright (C) 2016, Bin Meng <[email protected]>
- *
- * SPDX-License-Identifier:	GPL-2.0+
- */
-
-Name(\_S0, Package() {0x0, 0x0, 0x0, 0x0})
-Name(\_S3, Package() {0x5, 0x0, 0x0, 0x0})
-Name(\_S4, Package() {0x6, 0x0, 0x0, 0x0})
-Name(\_S5, Package() {0x7, 0x0, 0x0, 0x0})
Signature · 1 line
2.7.4
#24 lore raw

PATCH 9/9 x86: acpi: Put sleepstates.asl to the common place

Quoted 6 lines · Bin Meng

The supported sleep states are generic on Intel processors. Move the ASL definition to the common place.

---

Quoted 7 lines
 arch/x86/include/asm/{arch-baytrail => }/acpi/sleepstates.asl |  0
 arch/x86/include/asm/arch-baytrail/acpi/platform.asl          |  2 +-
 arch/x86/include/asm/arch-quark/acpi/platform.asl             |  2 +-
 arch/x86/include/asm/arch-quark/acpi/sleepstates.asl          | 10 ----------
 4 files changed, 2 insertions(+), 12 deletions(-)
 rename arch/x86/include/asm/{arch-baytrail => }/acpi/sleepstates.asl (100%)
 delete mode 100644 arch/x86/include/asm/arch-quark/acpi/sleepstates.asl
author
#25 lore raw

PATCH 9/9 x86: acpi: Put sleepstates.asl to the common place

Quoted 15 lines · Simon Glass
Quoted 6 lines · Bin Meng

The supported sleep states are generic on Intel processors. Move the ASL definition to the common place.

---

Quoted 7 lines
 arch/x86/include/asm/{arch-baytrail => }/acpi/sleepstates.asl |  0
 arch/x86/include/asm/arch-baytrail/acpi/platform.asl          |  2 +-
 arch/x86/include/asm/arch-quark/acpi/platform.asl             |  2 +-
 arch/x86/include/asm/arch-quark/acpi/sleepstates.asl          | 10 ----------
 4 files changed, 2 insertions(+), 12 deletions(-)
 rename arch/x86/include/asm/{arch-baytrail => }/acpi/sleepstates.asl (100%)
 delete mode 100644 arch/x86/include/asm/arch-quark/acpi/sleepstates.asl
Quoted 1 line

applied to u-boot-x86, thanks!