Skip to contentSkip to conversation

x86: qemu: fix ACPI Kconfig options

PATCH New Miao Yan 2 participants 6 messages May 9, 2016 – May 11, 2016 x86

lore
Share & tools
lore

Miao Yan

author
#0 lore raw

PATCH 1/1 x86: qemu: fix ACPI Kconfig options

CONFIG_GENENRATE_ACPI_TABLE controls the generation of ACPI table which uses U-Boot's built-in methods and CONFIG_QEMU_ACPI_TABLE controls whether to load ACPI table from QEMU's fw_cfg interface.

But with commit "697ec431469ce0a4c2fc2c02d8685d907491af84 x86: qemu: Drop our own ACPI implementation", there is only one way to support ACPI table for QEMU targets which is the fw_cfg interface. Having two Kconfig options for this purpose is not necessary any more, so this patch consolidates the two.

---
 arch/x86/Kconfig           | 9 ---------
 arch/x86/cpu/qemu/fw_cfg.c | 2 +-
 arch/x86/lib/Makefile      | 2 +-
 3 files changed, 2 insertions(+), 11 deletions(-)
arch/x86/Kconfig +0 -9
index 4ef27dc..f12cb9d 100644
@@ -442,15 +442,6 @@ config GENERATE_ACPI_TABLE
 	  by the operating system. It defines platform-independent interfaces
 	  for configuration and power management monitoring.
 
-config QEMU_ACPI_TABLE
-	bool "Load ACPI table from QEMU fw_cfg interface"
-	depends on GENERATE_ACPI_TABLE && QEMU
-	default y
-	help
-	  By default, U-Boot generates its own ACPI tables. This option, if
-	  enabled, disables U-Boot's version and loads ACPI tables generated
-	  by QEMU.
-
 config GENERATE_SMBIOS_TABLE
 	bool "Generate an SMBIOS (System Management BIOS) table"
 	default y
arch/x86/cpu/qemu/fw_cfg.c +1 -1
index 2e2794e..63d3077 100644
@@ -207,7 +207,7 @@ err:
 	return -ENOMEM;
 }
 
-#ifdef CONFIG_QEMU_ACPI_TABLE
+#ifdef CONFIG_GENERATE_ACPI_TABLE
 static struct fw_file *qemu_fwcfg_find_file(const char *name)
 {
 	struct list_head *entry;
arch/x86/lib/Makefile +1 -1
index dc90df2..ce5eb82 100644
@@ -31,7 +31,7 @@ obj-$(CONFIG_X86_RAMTEST) += ramtest.o
 obj-y += sfi.o
 obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
 obj-y	+= string.o
-ifndef CONFIG_QEMU_ACPI_TABLE
+ifndef CONFIG_QEMU
 obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
 endif
 obj-y	+= tables.o
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 x86: qemu: fix ACPI Kconfig options

Quoted 10 lines · Miao Yan

CONFIG_GENENRATE_ACPI_TABLE controls the generation of ACPI table which uses U-Boot's built-in methods and CONFIG_QEMU_ACPI_TABLE controls whether to load ACPI table from QEMU's fw_cfg interface.

But with commit "697ec431469ce0a4c2fc2c02d8685d907491af84 x86: qemu: Drop our own ACPI implementation", there is only one way to support ACPI table for QEMU targets which is the fw_cfg interface. Having two Kconfig options for this purpose is not necessary any more, so this patch consolidates the two.

Quoted 7 lines
---
 arch/x86/Kconfig           | 9 ---------
 arch/x86/cpu/qemu/fw_cfg.c | 2 +-
 arch/x86/lib/Makefile      | 2 +-
 3 files changed, 2 insertions(+), 11 deletions(-)
#2 lore raw

PATCH 1/1 x86: qemu: fix ACPI Kconfig options

Quoted 19 lines · Bin Meng
Quoted 10 lines · Miao Yan

CONFIG_GENENRATE_ACPI_TABLE controls the generation of ACPI table which uses U-Boot's built-in methods and CONFIG_QEMU_ACPI_TABLE controls whether to load ACPI table from QEMU's fw_cfg interface.

But with commit "697ec431469ce0a4c2fc2c02d8685d907491af84 x86: qemu: Drop our own ACPI implementation", there is only one way to support ACPI table for QEMU targets which is the fw_cfg interface. Having two Kconfig options for this purpose is not necessary any more, so this patch consolidates the two.

Quoted 7 lines
---
 arch/x86/Kconfig           | 9 ---------
 arch/x86/cpu/qemu/fw_cfg.c | 2 +-
 arch/x86/lib/Makefile      | 2 +-
 3 files changed, 2 insertions(+), 11 deletions(-)
Quoted 1 line

Miao, please rebase this patch on top of u-boot-x86/next since Tom's patch was applied first.

Regards,
Bin

author
#3 lore raw

PATCH 1/1 x86: qemu: fix ACPI Kconfig options

Hi Bin,

2016-05-10 11:11 GMT+08:00 Bin Meng <[email protected]>:

Quoted 20 lines · Bin Meng
Quoted 19 lines · Miao Yan
Quoted 17 lines

CONFIG_GENENRATE_ACPI_TABLE controls the generation of ACPI table which uses U-Boot's built-in methods and CONFIG_QEMU_ACPI_TABLE controls whether to load ACPI table from QEMU's fw_cfg interface.

But with commit "697ec431469ce0a4c2fc2c02d8685d907491af84 x86: qemu: Drop our own ACPI implementation", there is only one way to support ACPI table for QEMU targets which is the fw_cfg interface. Having two Kconfig options for this purpose is not necessary any more, so this patch consolidates the two.

---
 arch/x86/Kconfig           | 9 ---------
 arch/x86/cpu/qemu/fw_cfg.c | 2 +-
 arch/x86/lib/Makefile      | 2 +-
 3 files changed, 2 insertions(+), 11 deletions(-)
Quoted 4 lines
Quoted 1 line

Miao, please rebase this patch on top of u-boot-x86/next since Tom's patch was applied first.

Sure, I'll send v2.

Thanks,
Miao

#4 lore raw

PATCH 1/1 x86: qemu: fix ACPI Kconfig options

Hi Miao,

Quoted 23 lines · Miao Yan

Hi Bin,

2016-05-10 11:11 GMT+08:00 Bin Meng <[email protected]>:

Quoted 20 lines · Bin Meng
Quoted 19 lines · Miao Yan
Quoted 17 lines

CONFIG_GENENRATE_ACPI_TABLE controls the generation of ACPI table which uses U-Boot's built-in methods and CONFIG_QEMU_ACPI_TABLE controls whether to load ACPI table from QEMU's fw_cfg interface.

But with commit "697ec431469ce0a4c2fc2c02d8685d907491af84 x86: qemu: Drop our own ACPI implementation", there is only one way to support ACPI table for QEMU targets which is the fw_cfg interface. Having two Kconfig options for this purpose is not necessary any more, so this patch consolidates the two.

---
 arch/x86/Kconfig           | 9 ---------
 arch/x86/cpu/qemu/fw_cfg.c | 2 +-
 arch/x86/lib/Makefile      | 2 +-
 3 files changed, 2 insertions(+), 11 deletions(-)
Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Miao, please rebase this patch on top of u-boot-x86/next since Tom's patch was applied first.

Sure, I'll send v2.

When you rework the v2, could you please submit changes in addition to Tom's patch to make sure there is no build errors as the workflow you described. And maybe split the qfw command into two pieces? Sorry for asking for a lot.

Regards,
Bin

author
#5 lore raw

PATCH 1/1 x86: qemu: fix ACPI Kconfig options

Hi Bin,

2016-05-11 10:13 GMT+08:00 Bin Meng <[email protected]>:

Quoted 31 lines

Hi Miao,

Quoted 28 lines · Miao Yan

Hi Bin,

2016-05-10 11:11 GMT+08:00 Bin Meng <[email protected]>:

Quoted 24 lines · Bin Meng
Quoted 19 lines · Miao Yan
Quoted 10 lines

CONFIG_GENENRATE_ACPI_TABLE controls the generation of ACPI table which uses U-Boot's built-in methods and CONFIG_QEMU_ACPI_TABLE controls whether to load ACPI table from QEMU's fw_cfg interface.

But with commit "697ec431469ce0a4c2fc2c02d8685d907491af84 x86: qemu: Drop our own ACPI implementation", there is only one way to support ACPI table for QEMU targets which is the fw_cfg interface. Having two Kconfig options for this purpose is not necessary any more, so this patch consolidates the two.

Quoted 7 lines
---
 arch/x86/Kconfig           | 9 ---------
 arch/x86/cpu/qemu/fw_cfg.c | 2 +-
 arch/x86/lib/Makefile      | 2 +-
 3 files changed, 2 insertions(+), 11 deletions(-)
Quoted 1 line

Miao, please rebase this patch on top of u-boot-x86/next since Tom's patch was applied first.

Quoted 7 lines
Quoted 2 lines

Sure, I'll send v2.

When you rework the v2, could you please submit changes in addition to Tom's patch to make sure there is no build errors as the workflow you described. And maybe split the qfw command into two pieces? Sorry for asking for a lot.

OK, I'll think about it and send some patches.

Miao

Quoted 3 lines

Regards,
Bin