x86: qemu: fix ACPI Kconfig options
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
@@ -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
@@ -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
@@ -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
PATCH 1/1 x86: qemu: fix ACPI Kconfig options
Quoted 10 lines · Miao Yan
CONFIG_GENENRATE_ACPI_TABLEcontrols the generation of ACPI table which uses U-Boot's built-in methods andCONFIG_QEMU_ACPI_TABLEcontrols whether to load ACPI table from QEMU'sfw_cfginterface.But with commit "
697ec431469ce0a4c2fc2c02d8685d907491af84x86: qemu: Drop our own ACPI implementation", there is only one way to support ACPI table for QEMU targets which is thefw_cfginterface. Having twoKconfigoptions for this purpose is not necessary any more, so this patch consolidates the two.
Quoted 7 lines
Signed-off-by Miao Yan <[email protected]>--- arch/x86/Kconfig | 9 --------- arch/x86/cpu/qemu/fw_cfg.c | 2 +- arch/x86/lib/Makefile | 2 +- 3 files changed, 2 insertions(+), 11 deletions(-)
PATCH 1/1 x86: qemu: fix ACPI Kconfig options
Quoted 19 lines · Bin Meng
Quoted 10 lines · Miao Yan
CONFIG_GENENRATE_ACPI_TABLEcontrols the generation of ACPI table which uses U-Boot's built-in methods andCONFIG_QEMU_ACPI_TABLEcontrols whether to load ACPI table from QEMU'sfw_cfginterface.But with commit "
697ec431469ce0a4c2fc2c02d8685d907491af84x86: qemu: Drop our own ACPI implementation", there is only one way to support ACPI table for QEMU targets which is thefw_cfginterface. Having twoKconfigoptions for this purpose is not necessary any more, so this patch consolidates the two.Quoted 7 lines
Signed-off-by Miao Yan <[email protected]>--- 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
Reviewed-by Bin Meng <[email protected]>
Miao, please rebase this patch on top of u-boot-x86/next since Tom's patch was applied first.
Regards,
Bin
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_TABLEcontrols the generation of ACPI table which uses U-Boot's built-in methods andCONFIG_QEMU_ACPI_TABLEcontrols whether to load ACPI table from QEMU'sfw_cfginterface.But with commit "
697ec431469ce0a4c2fc2c02d8685d907491af84x86: qemu: Drop our own ACPI implementation", there is only one way to support ACPI table for QEMU targets which is thefw_cfginterface. Having twoKconfigoptions for this purpose is not necessary any more, so this patch consolidates the two.Signed-off-by Miao Yan <[email protected]>--- 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
Reviewed-by Bin Meng <[email protected]>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
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_TABLEcontrols the generation of ACPI table which uses U-Boot's built-in methods andCONFIG_QEMU_ACPI_TABLEcontrols whether to load ACPI table from QEMU'sfw_cfginterface.But with commit "
697ec431469ce0a4c2fc2c02d8685d907491af84x86: qemu: Drop our own ACPI implementation", there is only one way to support ACPI table for QEMU targets which is thefw_cfginterface. Having twoKconfigoptions for this purpose is not necessary any more, so this patch consolidates the two.Signed-off-by Miao Yan <[email protected]>--- 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
Reviewed-by Bin Meng <[email protected]>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
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_TABLEcontrols the generation of ACPI table which uses U-Boot's built-in methods andCONFIG_QEMU_ACPI_TABLEcontrols whether to load ACPI table from QEMU'sfw_cfginterface.But with commit "
697ec431469ce0a4c2fc2c02d8685d907491af84x86: qemu: Drop our own ACPI implementation", there is only one way to support ACPI table for QEMU targets which is thefw_cfginterface. Having twoKconfigoptions for this purpose is not necessary any more, so this patch consolidates the two.Quoted 7 lines
Signed-off-by Miao Yan <[email protected]>--- 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
Reviewed-by Bin Meng <[email protected]>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