On Tue, Jan 30, 2018 at 9:01 PM, Bin Meng wrote:
> U-Boot on QEMU does not build ACPI table by ourself, instead it uses
> the prebuilt ACPI table via the qfw interface. This implements the
> qfw version of acpi_get_rsdp_addr() for setup_zimage().
>
> Signed-off-by: Bin Meng
> ---
>
> drivers/mis
This patch enables qfw and cmd_qfw on sandbox for build coverage test
Signed-off-by: Miao Yan
---
Changes in v3:
- fix config option order
configs/sandbox_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index afdf4a3
The qfw command interface makes use of CONFIG_LOADADDR and
CONFIG_RAMDISKADDR to setup kernel. But not all boards have these macros,
which causes build problem on those platforms.
This patch fixes this issue.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
Changes in v3:
- none
cmd/qfw.c
The qfw command interface used to depend on X86, this patch removes
this restriction so it can be built for sandbox for testing. For normal
usage, it can only be used with CONFIG_QEMU.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
Changes in v3:
- none
cmd/Kconfig | 1 -
1 file changed
Loading ACPI table from QEMU's fw_cfg interface is not x86 specific
(ARM64 may also make use of it). So move the code to common place.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
Changes in v3:
- none
arch/x86/cpu/qemu/acpi_table.c
Rename qemu/acpi_table.c to qemu/e820.c, because ACPI stuff is moved
to qfw core, this file only contains code for installing e820 table.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
Changes in v3:
- none
arch/x86/cpu/qemu/Makefile | 3 +--
arch/x86/cpu/qemu
The original implementation of qfw includes several x86 specific
operations, like directly calling outb/inb and using some inline
assembly code which prevents it being ported to other architectures.
This patch adds callback functions and moves those to arch/x86/
Signed-off-by: Miao Yan
Reviewed
Make file names consistent with CONFIG_QFW and CONFIG_CMD_QFW
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
Changes in v3:
- squash with patch v2 #13
arch/x86/cpu/mp_init.c| 2 +-
arch/x86/cpu/qemu/acpi_table.c| 2 +-
arch/x86/cpu/qemu/cpu.c | 2
-off-by: Miao Yan
Reviewed-by: Bin Meng
---
Changes in v3:
- fix a typo in commit message
arch/x86/Kconfig | 2 +-
arch/x86/cpu/mp_init.c | 4 +-
arch/x86/cpu/qemu/Makefile | 3 +-
arch/x86/cpu/qemu/qemu.c | 2 +
cmd/Kconfig | 1 +
cmd/Makefile
This patch is part of the qfw refactor work.
The qemu_fwcfg_free_files() function is only used in error handling in
ACPI table generation, let's not make this a core function and move it
to the right place.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
Changes in v3:
- none
arch/x8
This patch is part of the qfw refactor work. This patch makes
qemu_fwcfg_present() and qemu_fwcfg_dma_present() public functions.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
Changes in v3:
- none
cmd/qemu_fw_cfg.c | 37 -
include/qemu_fw_cfg.h
This patch adds some comments about qfw register endianness for clarity.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
Changes in v3:
- none
arch/x86/cpu/qemu/qemu.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/x86/cpu/qemu/qemu.c b/arch/x86/cpu/qemu
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.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
Changes in v3:
- non
This patch is part of the refactor work of qfw. It adds 3 APIs to qfw
core to iterate firmware list.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
Changes in v3:
- none
cmd/qemu_fw_cfg.c | 25 ++---
include/qemu_fw_cfg.h | 9 +
2 files changed, 31
-patch detect renames
*) add a patch to enable qfw for sandbox_defconfig
*) address other trivial review comments
Changes in v3:
*) correct config option order in sandbox_defconfig
*) squash patch v2 #8 and patch v2 #13
*) fix typos in commit message
Miao Yan (13):
x86: qemu: fix ACPI
Hi Bin,
2016-05-20 10:29 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Fri, May 20, 2016 at 10:06 AM, Miao Yan wrote:
>> Hi Bin,
>>
>> 2016-05-19 17:08 GMT+08:00 Bin Meng :
>>> Hi Miao,
>>>
>>> On Wed, May 18, 2016 at 5:40 PM, Miao Yan wrote:
2016-05-20 10:30 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Fri, May 20, 2016 at 10:07 AM, Miao Yan wrote:
>> Hi Bin,
>>
>> 2016-05-19 17:08 GMT+08:00 Bin Meng :
>>> Hi Miao,
>>>
>>> the title should say: CMD_QEMU_FW_CFG
>>>
>>&g
Hi Bin,
2016-05-19 17:08 GMT+08:00 Bin Meng :
> Hi Miao,
>
> the title should say: CMD_QEMU_FW_CFG
>
> I can fix this when applying.
>
> On Wed, May 18, 2016 at 5:39 PM, Miao Yan wrote:
>> Align macro names with the rest of qfw code
>>
>
> and I believe
Hi Bin,
2016-05-19 17:08 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Wed, May 18, 2016 at 5:40 PM, Miao Yan wrote:
>> This patch enables qfw and cmd_qfw on sandbox for build coverage test
>>
>> Signed-off-by: Miao Yan
>> ---
>> configs/sandbox_defconfig
This patch enables qfw and cmd_qfw on sandbox for build coverage test
Signed-off-by: Miao Yan
---
configs/sandbox_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index afdf4a3..f19308d 100644
--- a/configs/sandbox_defconfig
Align macro names with the rest of qfw code
Signed-off-by: Miao Yan
---
cmd/Kconfig| 2 +-
cmd/Makefile | 2 +-
configs/qemu-x86_defconfig | 2 +-
drivers/misc/Kconfig | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cmd/Kconfig b/cmd
Loading ACPI table from QEMU's fw_cfg interface is not x86 specific
(ARM64 may also make use of it). So move the code to common place.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
arch/x86/cpu/qemu/acpi_table.c | 209 -
drivers/misc/
The qfw command interface used to depend on X86, this patch removes
this restriction so it can be built for sandbox for testing. For normal
usage, it can only be used with CONFIG_QEMU.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
cmd/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff
The qfw command interface makes use of CONFIG_LOADADDR and
CONFIG_RAMDISKADDR to setup kernel. But not all boards have these macro,
which causes build problem on those platforms.
This patch fixes this issue.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
Changes in v2:
- fix commit
This patch adds some comments about qfw register endianness for clarity.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
arch/x86/cpu/qemu/qemu.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/x86/cpu/qemu/qemu.c b/arch/x86/cpu/qemu/qemu.c
index 6ff9947
Rename qemu/acpi_table.c to qemu/e820.c, because ACPI stuff is moved
to qfw core, this file only contains code for installing e820 table.
Signed-off-by: Miao Yan
---
arch/x86/cpu/qemu/Makefile | 3 +--
arch/x86/cpu/qemu/{acpi_table.c => e820.c} | 0
2 files changed, 1 insert
This patch is part of the qfw refactor work. This patch makes
qemu_fwcfg_present() and qemu_fwcfg_dma_present() public functions.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
cmd/qemu_fw_cfg.c | 37 -
include/qemu_fw_cfg.h | 3 +++
2 files changed
.
Signed-off-by: Miao Yan
---
Changes in v2:
- do not use #ifdef...#end when including header files
- cleanup blank line at the end of file
- rename cmd_qfw.c to qfw.c
arch/x86/Kconfig | 2 +-
arch/x86/cpu/mp_init.c | 4 +-
arch/x86/cpu/qemu/Makefile | 3 +-
arch/x86/cpu
Make file names aligned with CONFIG_QFW
Signed-off-by: Miao Yan
---
arch/x86/cpu/mp_init.c| 2 +-
arch/x86/cpu/qemu/acpi_table.c| 2 +-
arch/x86/cpu/qemu/cpu.c | 2 +-
arch/x86/cpu/qemu/qemu.c | 2 +-
cmd/qfw.c | 2
The original implementation of qfw includes several x86 specific
operations, like directly calling outb/inb and using some inline
assembly code which prevents it being ported to other architectures.
This patch adds callback functions and moves those to arch/x86/
Signed-off-by: Miao Yan
Reviewed
This patch is part of the qfw refactor work.
The qemu_fwcfg_free_files() function is only used in error handling in
ACPI table generation, let's not make this a core function and move it
to the right place.
Signed-off-by: Miao Yan
---
arch/x86/cpu/qemu/acpi_table.c | 13 +++--
This patch is part of the refactor work of qfw. It adds 3 APIs to qfw
core to iterate firmware list.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
---
cmd/qemu_fw_cfg.c | 25 ++---
include/qemu_fw_cfg.h | 9 +
2 files changed, 31 insertions(+), 3 deletions
-patch detect renames
*) add a patch to enable qfw for sandbox_defconfig
*) address other trivial review comments
Miao Yan (14):
x86: qemu: fix ACPI Kconfig options
cmd: qfw: add API to iterate firmware list
cmd: qfw: remove qemu_fwcfg_free_files()
cmd: qfw: make fwcfg_present and
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.
Signed-off-by: Miao Yan
---
Changes in v2:
- fix a wrong macro nam
2016-05-17 8:42 GMT+08:00 Tom Rini :
> On Mon, May 16, 2016 at 05:40:16PM +0800, Miao Yan wrote:
>> Hi Bin,
>>
>> 2016-05-13 22:01 GMT+08:00 Bin Meng :
>> > Hi Miao,
>> >
>> > On Fri, May 13, 2016 at 2:29 PM, Miao Yan wrote:
>> >> Ren
Hi Bin,
2016-05-16 16:47 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Fri, May 13, 2016 at 2:29 PM, Miao Yan wrote:
>> This patch splits qfw command interface and qfw core function into two
>> files, and introduces a new Kconfig option (CONFIG_QFW). for
>> qfw core.
2016-05-14 4:46 GMT+08:00 Tom Rini :
> On Fri, May 13, 2016 at 10:00:05PM +0800, Bin Meng wrote:
>> Hi Miao,
>>
>> On Fri, May 13, 2016 at 2:29 PM, Miao Yan wrote:
>> > This patch is part of the qfw refactor work.
>> >
>> > The qemu_fwcfg_free_fi
2016-05-14 4:46 GMT+08:00 Tom Rini :
> On Fri, May 13, 2016 at 10:00:37PM +0800, Bin Meng wrote:
>> Hi Miao,
>>
>> On Fri, May 13, 2016 at 2:29 PM, Miao Yan wrote:
>> > The qfw command interface makes use of CONFIG_LOADADDR and
>> > CONFIG_RAMDISKADDR t
Hi Bin,
2016-05-13 22:00 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Fri, May 13, 2016 at 2:29 PM, Miao Yan wrote:
>> The qfw command interface used to depend on X86, this patch removes
>> this restriction so it can be built for sandbox for testing. For normal
>> usag
Hi Bin,
2016-05-13 22:01 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Fri, May 13, 2016 at 2:29 PM, Miao Yan wrote:
>> Rename qemu/acpi_table.c to qemu/e820.c, because ACPI stuff is moved
>> to qfw core, this file only contains code for installing e820 table.
>>
Hi Bin,
2016-05-13 22:00 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Fri, May 13, 2016 at 2:29 PM, Miao Yan wrote:
>> This patch splits qfw command interface and qfw core function into two
>> files, and introduces a new Kconfig option (CONFIG_QFW). for
>> qfw core.
Hi Bin,
2016-05-13 21:59 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Fri, May 13, 2016 at 2:29 PM, Miao Yan wrote:
>> 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
>>
Make file names aligned with CONFIG_QFW
Signed-off-by: Miao Yan
---
arch/x86/cpu/mp_init.c | 2 +-
arch/x86/cpu/qemu/acpi_table.c | 2 +-
arch/x86/cpu/qemu/cpu.c| 2 +-
arch/x86/cpu/qemu/qemu.c | 2 +-
cmd/cmd_qfw.c | 2 +-
drivers/misc/Makefile
Rename qemu/acpi_table.c to qemu/e820.c, because ACPI stuff is moved
to qfw core, this file only contains code for installing e820 table.
Signed-off-by: Miao Yan
---
arch/x86/cpu/qemu/Makefile | 3 +--
arch/x86/cpu/qemu/acpi_table.c | 43 --
arch
Loading ACPI table from QEMU's fw_cfg interface is not x86 specific
(ARM64 may also make user of it). So move the code common place.
Signed-off-by: Miao Yan
---
arch/x86/cpu/qemu/acpi_table.c | 211 -
drivers/misc/qfw.c
The qfw command interface used to depend on X86, this patch removes
this restriction so it can be built for sandbox for testing. For normal
usage, it can only be used with CONFIG_QEMU.
Signed-off-by: Miao Yan
---
cmd/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/cmd/Kconfig b/cmd
.
Signed-off-by: Miao Yan
---
arch/x86/Kconfig | 2 +-
arch/x86/cpu/mp_init.c | 6 +-
arch/x86/cpu/qemu/Makefile | 3 +-
arch/x86/cpu/qemu/acpi_table.c | 2 +
arch/x86/cpu/qemu/qemu.c | 4 +
cmd/Kconfig| 1 +
cmd/Makefile
This patch adds some comments about qfw register endianness for clarity.
Signed-off-by: Miao Yan
---
arch/x86/cpu/qemu/qemu.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/x86/cpu/qemu/qemu.c b/arch/x86/cpu/qemu/qemu.c
index d964283..716a0ac 100644
--- a/arch
The qfw command interface makes use of CONFIG_LOADADDR and
CONFIG_RAMDISKADDR to setup kernel. But not all boards have these macro,
which causes build problem on those platforms.
This patch fixes this issue.
Signed-off-by: Miao Yan
---
cmd/cmd_qfw.c | 13 +
1 file changed, 13
This patch is part of the qfw refactor work.
The qemu_fwcfg_free_files() function is only used in error handling in
ACPI table generation, let's not make this a core function and move it
to the right place.
Signed-off-by: Miao Yan
---
arch/x86/cpu/qemu/acpi_table.c | 13 +++--
The original implementation of qfw includes several x86 specific
operations, like directly calling outb/inb and using some inline
assembly code which prevents it being ported to other architectures.
This patch adds callback functions and moves those to arch/x86/
Signed-off-by: Miao Yan
This patch is part of the qfw refactor work. This patch makes
qemu_fwcfg_present() and qemu_fwcfg_dma_present() public functions.
Signed-off-by: Miao Yan
---
cmd/qemu_fw_cfg.c | 37 -
include/qemu_fw_cfg.h | 3 +++
2 files changed, 23 insertions(+), 17
This patch is part of the refactor work of qfw. It adds 3 APIs to qfw
core to iterate firmware list.
Signed-off-by: Miao Yan
---
cmd/qemu_fw_cfg.c | 25 ++---
include/qemu_fw_cfg.h | 9 +
2 files changed, 31 insertions(+), 3 deletions(-)
diff --git a/cmd
This patchset cleans the QEMU fw_cfg code:
*) split qfw core and qfw command interface
*) split x86 specific operations from qfw core
*) move x86 ACPI generation code into qfw core as this can also
be used by others like ARM64
*) various cleanups
Miao Yan (12):
x86: qemu: fix 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.
Signed-off-by: Miao Yan
---
arch/x86/Kconfig | 10 +
2016-05-11 10:11 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Tue, May 10, 2016 at 10:10 AM, Miao Yan wrote:
>>>>
>>>> +config CMD_QEMU_FW_CFG
>>>> + bool "qfw"
>>>> + depends on X86
>>>> + hel
Hi Tom,
>
> Well, this patch was a first pass at trying to separate out the logic.
> My end goal is to be able to use -kernel / -initrd / -dtb to pass in
> files "directly" to say vexpress_ca9x4 rather than have to fiddle with
> fake networking. So we need to keep that in mind when splitting the
Hi Bin,
2016-05-11 10:13 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Wed, May 11, 2016 at 10:02 AM, Miao Yan wrote:
>> Hi Bin,
>>
>> 2016-05-10 11:11 GMT+08:00 Bin Meng :
>>> On Mon, May 9, 2016 at 8:57 PM, Bin Meng wrote:
>>>>
Hi Bin,
2016-05-10 11:11 GMT+08:00 Bin Meng :
> On Mon, May 9, 2016 at 8:57 PM, Bin Meng wrote:
>> On Mon, May 9, 2016 at 3:27 PM, Miao Yan wrote:
>>> CONFIG_GENENRATE_ACPI_TABLE controls the generation of ACPI table which
>>> uses U-Boot's built-in methods and
Hi Bin,
2016-05-10 13:12 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Tue, May 10, 2016 at 12:35 PM, Miao Yan wrote:
>> 2016-05-10 11:08 GMT+08:00 Bin Meng :
>>> On Tue, May 10, 2016 at 10:17 AM, Tom Rini wrote:
>>>> On Tue, May 10, 2016 at 09:20:45AM +0800, Bin M
qemu/fw_cfg.c into
>>> > cmd/qemu_fw_cfg.c
>>> > - Move arch/x86/include/asm/fw_cfg.h to include/qemu_fw_cfg.h
>>> > - Rename ACPI table portion to arch/x86/cpu/qemu/acpi_table.c
>>> >
>>> > Signed-off-by: Tom Rini
>>> > ---
>>&
>>
>> +config CMD_QEMU_FW_CFG
>> + bool "qfw"
>> + depends on X86
>> + help
>> + This provides access to the QEMU firmware interface. The main
>> + feature is to allow easy loading of files passed to qemu-system
>> + via -kernel / -initrd
>> endmenu
>
> T
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.
Signed-off-by: Miao Yan
---
arch/x86/Kconfig | 9
i
> ---
> Changes in v2:
> - Depend on X86 (per Miao Yan)
I am afraid this still doesn't build. At least you need to make the
ACPI stuff depend on the new config option CONFIG_CMD_QEMU_FW_CFG, as
well as some tweaks in qemu.c and mp_init.c because they call
functions from the ori
t; +++ b/arch/x86/cpu/qemu/Makefile
> @@ -7,4 +7,5 @@
> ifndef CONFIG_EFI_STUB
> obj-y += car.o dram.o
> endif
> -obj-y += cpu.o fw_cfg.o qemu.o
> +obj-y += cpu.o qemu.o
> +obj-$(CONFIG_QEMU_ACPI_TABLE) += acpi_table.o
> diff --git a/arch/x86/cpu/qemu/acpi_table.c b/arch
ch/x86/cpu/qemu/fw_cfg.c
> index a0a3d08..2e2794e 100644
> --- a/arch/x86/cpu/qemu/fw_cfg.c
> +++ b/arch/x86/cpu/qemu/fw_cfg.c
> @@ -1,5 +1,5 @@
> /*
> - * (C) Copyright 2015 Miao Yan
> + * (C) Copyright 2015 Miao Yan
> *
> * SPDX-License-Identifier:GPL-2.0+
&
ned-off-by: Miao Yan
Reviewed-by: Bin Meng
Tested-by: Bin Meng
---
Change in v3:
- fix a build error
- make it [PATCH 3/4]
arch/x86/cpu/qemu/Makefile| 2 +
arch/x86/cpu/qemu/fw_cfg.c| 253 ++
arch/x86/include/asm/fw_cfg.h | 61 ++
ar
Enable ACPI IO space for piix4 (for pc board) and ich9 (for q35 board)
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
Tested-by: Bin Meng
---
arch/x86/cpu/qemu/Kconfig | 7 +++
arch/x86/cpu/qemu/qemu.c| 29 +
arch/x86/include/asm
] x86: qemu: loading ACPI table from QEMU, add a config
option
CONFIG_QEMU_ACPI_TABLE
- various cleanups
Miao Yan (4):
x86: qemu: re-structure qemu_fwcfg_list_firmware()
x86: qemu: setup PM IO base for ACPI in southbridge
x86: qemu: add the ability to load and link ACPI tables from
Re-write the logic in qemu_fwcfg_list_firmware(), add a function
qemu_fwcfg_read_firmware_list() to handle reading firmware list.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
Tested-by: Bin Meng
---
arch/x86/cpu/qemu/fw_cfg.c| 63 +--
arch/x86
This patch adds a config option for loading ACPI table from QEMU. When enabled,
U-Boot won't generate ACPI tables, but use those provided by QEMU.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
Tested-by: Bin Meng
---
Changes in v3:
- fix a build error
- make it [PATCH 4/4]
arc
Hi Bin,
2016-01-20 17:18 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Wed, Jan 20, 2016 at 5:15 PM, Miao Yan wrote:
>> Hi Bin,
>>
>> 2016-01-20 16:46 GMT+08:00 Bin Meng :
>>> On Wed, Jan 20, 2016 at 12:24 PM, Miao Yan wrote:
>>>> This patch adds a conf
Hi Bin,
2016-01-20 16:46 GMT+08:00 Bin Meng :
> On Wed, Jan 20, 2016 at 12:24 PM, Miao Yan wrote:
>> This patch adds a config option for loading ACPI table from QEMU. When
>> enabled,
>> U-Boot won't generate ACPI tables, but use those provided by QEMU.
>
Re-write the logic in qemu_fwcfg_list_firmware(), add a function
qemu_fwcfg_read_firmware_list() to handle reading firmware list.
Signed-off-by: Miao Yan
---
Changes in v2:
- coding style fix
- add comments in header file
arch/x86/cpu/qemu/fw_cfg.c| 63
This patch adds a config option for loading ACPI table from QEMU. When enabled,
U-Boot won't generate ACPI tables, but use those provided by QEMU.
Signed-off-by: Miao Yan
---
arch/x86/Kconfig | 9 +
arch/x86/cpu/qemu/Makefile | 2 ++
arch/x86/lib/Makefile | 2 ++
3
- various cleanups
Miao Yan (4):
x86: qemu: re-structure qemu_fwcfg_list_firmware()
x86: qemu: setup PM IO base for ACPI in southbridge
x86: config option for loading ACPI table from QEMU
x86: qemu: add the ability to load and link ACPI tables from QEMU
arch/x86/Kconfig
ned-off-by: Miao Yan
---
Changes in v2:
- add function comment
- improve error handling
arch/x86/cpu/qemu/fw_cfg.c| 253 ++
arch/x86/include/asm/fw_cfg.h | 61 ++
arch/x86/lib/acpi_table.c | 4 +
3 files changed, 318 insertions(+)
di
Enable ACPI IO space for piix4 (for pc board) and ich9 (for q35 board)
Signed-off-by: Miao Yan
---
Changes in v2:
- add ACPI_PM1_BASE in Kconfig
- drop PCI device ID checks
arch/x86/cpu/qemu/Kconfig | 7 +++
arch/x86/cpu/qemu/qemu.c| 29
Hi Bin,
2016-01-19 17:25 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Tue, Jan 19, 2016 at 10:46 AM, Miao Yan wrote:
>> Hi Bin,
>>
>> 2016-01-16 21:23 GMT+08:00 Bin Meng :
>>> Hi Miao,
>>>
>>> On Fri, Jan 15, 2016 at 11:12 AM, Miao Yan wrote:
2016-01-18 21:49 GMT+08:00 Stefan Roese :
> Without this CONFIG_BOOTDELAY, autobooting does not work at all. As
> autoboot_command() from common/* will not get called. So lets define
> CONFIG_BOOTDELAY, so that auto-booting works on x86.
>
> Signed-off-by: Stefan Roese
> Cc: M
Hi Bin,
2016-01-16 21:24 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Fri, Jan 15, 2016 at 11:12 AM, Miao Yan wrote:
>> If CONFIG_GENERATE_ACPI_TABLE is not defined, then use ACPI table created
>> by QEMU.
>>
>> Signed-off-by: Miao Yan
>> ---
>> arch/x86
Hi Bin,
2016-01-16 21:23 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Fri, Jan 15, 2016 at 11:12 AM, Miao Yan wrote:
>> Enable ACPI IO space for piix4 (for pc board) and ich9 (for q35 board)
>>
>> Signed-off-by: Miao Yan
>> ---
>> arch/
Hi Bin,
2016-01-16 21:24 GMT+08:00 Bin Meng :
> Hi Miao,
>
> On Fri, Jan 15, 2016 at 11:12 AM, Miao Yan wrote:
>> This patch adds the ability to load and link ACPI tables provided by QEMU.
>> QEMU tells guests how to load and patch ACPI tables through its fw_cfg
>
ned-off-by: Miao Yan
---
arch/x86/cpu/qemu/fw_cfg.c| 214 ++
arch/x86/include/asm/fw_cfg.h | 70 ++
2 files changed, 284 insertions(+)
diff --git a/arch/x86/cpu/qemu/fw_cfg.c b/arch/x86/cpu/qemu/fw_cfg.c
index b22026c..755676c 100644
---
If CONFIG_GENERATE_ACPI_TABLE is not defined, then use ACPI table created
by QEMU.
Signed-off-by: Miao Yan
---
arch/x86/lib/tables.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/arch/x86/lib/tables.c b/arch/x86/lib/tables.c
index 14b15cf..1671385 100644
--- a/arch/x86
Enable ACPI IO space for piix4 (for pc board) and ich9 (for q35 board)
Signed-off-by: Miao Yan
---
arch/x86/cpu/qemu/qemu.c| 39 +
arch/x86/include/asm/arch-qemu/device.h | 8 +++
2 files changed, 47 insertions(+)
diff --git a/arch/x86/cpu
Re-write the logic in qemu_fwcfg_list_firmware(), add a function
qemu_cfg_read_firmware_list() to handle reading firmware list.
Signed-off-by: Miao Yan
---
arch/x86/cpu/qemu/fw_cfg.c| 60 +--
arch/x86/include/asm/fw_cfg.h | 8 ++
2 files changed
Currently, if CONFIG_GENERATE_ACPI_TABLE is defined, U-Boot will generate ACPI
tables itlself, this patchset adds the ability to load the ACPI tables generated
by QEMU.
Miao Yan (4):
x86: qemu: re-structure qemu_fwcfg_list_firmware()
x86: qemu: setup PM IO base for ACPI in southbridge
x86
Hi Bin,
2016-01-07 17:31 GMT+08:00 Miao Yan :
> The fw_cfg interface provided by QEMU allow guests to retrieve various
> information
> about the system, e.g. cpu number, variaous firmware data, kernel setup, etc.
> The
> fw_cfg interface can be accessed through 3 IO ports (on x86
Document the usage of 'qfw' command
Signed-off-by: Miao Yan
Reviewed-by: Simon Glass
Reviewed-by: Bin Meng
---
doc/README.x86 | 34 +++---
1 file changed, 31 insertions(+), 3 deletions(-)
diff --git a/doc/README.x86 b/doc/README.x86
index 1271e5e..36aa
Rename 'find_cpu_by_apid_id' to 'find_cpu_by_apic_id'. This should be a
typo.
Signed-off-by: Miao Yan
Reviewed-by: Simon Glass
Reviewed-by: Bin Meng
---
arch/x86/cpu/mp_init.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/cpu/mp_i
online CPU
number at runtime, and dynamically adds 'cpu' device to U-Boot's driver
model.
Signed-off-by: Miao Yan
Reviewed-by: Simon Glass
Reviewed-by: Bin Meng
Tested-by: Bin Meng
---
Changes in v6:
- remove cpu_qemu_bind
arc
The QEMU fw_cfg interface allows the guest to retrieve various data
information from QEMU. For example, APCI/SMBios tables, number of online
cpus, kernel data and command line, etc.
This patch adds support for QEMU fw_cfg interface.
Signed-off-by: Miao Yan
Reviewed-by: Simon Glass
Reviewed-by
relies on
the cpu node hard-coded in dts files.
Changes in v6:
- fix oneline comment
- do not update bootargs when kernel cmdline only contains '\0'
Miao Yan (8):
x86: adjust ramdisk load address
x86: qemu: add fw_cfg support
x86: qemu: add a cpu uclass driver for qemu targ
Hi Lian,
2016-01-06 16:41 GMT+08:00 Minghuan Lian :
> The length of the receiving packet descriptor is a 16bit integer
> not 32bit. le32_to_cpu should be replaced by le16_to_cpu to
> make the correct conversion. Otherwise, e1000 cannot work on
> some kinds of big-endian platform.
This is a dupli
2016-01-06 8:25 GMT+08:00 Simon Glass :
> On 4 January 2016 at 01:00, Miao Yan wrote:
>> Currently, when booting with more that one CPU enabled, U-Boot scans
>> 'cpu' node in device tree and calculates CPU number. This does not scale
>> well as changing CPU number a
Document the usage of 'qfw' command
Signed-off-by: Miao Yan
Reviewed-by: Simon Glass
Reviewed-by: Bin Meng
---
Changes in v5:
- maximum supported is 255 now which is imposed by QEMU
- 'fw' to 'qfw'
doc/README.x86 | 34 +++---
online CPU
number at runtime, and dynamically adds 'cpu' device to U-Boot's driver
model.
Signed-off-by: Miao Yan
---
arch/x86/cpu/mp_init.c | 73 +
arch/x86/cpu/qemu/cpu.c | 5
2 files changed, 73 insertions(+), 5 deletions(-)
Remove 'cpu' node in device tree for QEMU targets, and let U-Boot detect
and fix up those information at runtime.
Signed-off-by: Miao Yan
---
arch/x86/dts/qemu-x86_i440fx.dts | 7 ---
arch/x86/dts/qemu-x86_q35.dts| 7 ---
2 files changed, 14 deletions(-)
diff --git a/ar
to directly read
online cpu number from firmware.
Signed-off-by: Miao Yan
Reviewed-by: Bin Meng
Reviewed-by: Simon Glass
---
arch/x86/cpu/qemu/Makefile | 2 +-
arch/x86/cpu/qemu/cpu.c | 57
arch/x86/dts/qemu-x86_i440fx.dts | 4 +--
arch
1 - 100 of 171 matches
Mail list logo