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
This patch enables qfw and cmd_qfw on sandbox for build coverage test
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v3:
- fix config option order
configs/sandbox_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/sandbox_defconfig b/c
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
C
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
Changes in v3:
- none
arch/x86/cpu/qemu/acpi_t
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
Changes in v3:
- none
arch/x86/cpu/q
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 <yanmi
Make file names consistent with CONFIG_QFW and CONFIG_CMD_QFW
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
Changes in v3:
- squash with patch v2 #13
arch/x86/cpu/mp_init.c| 2 +-
arch/x86/cpu/qemu/acpi_table.
-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
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
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
Changes in v3:
- none
cmd/qemu_fw_cf
This patch adds some comments about qfw register endianness for clarity.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
Changes in v3:
- none
arch/x86/cpu/qemu/qemu.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
ation", 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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
Changes in v3:
- none
cmd/qemu_fw_cfg.c | 25 ++---
include/q
-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 <bmeng...@gmail.com>:
> Hi Miao,
>
> On Fri, May 20, 2016 at 10:06 AM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> Hi Bin,
>>
>> 2016-05-19 17:08 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
>>> Hi M
2016-05-20 10:30 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Fri, May 20, 2016 at 10:07 AM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> Hi Bin,
>>
>> 2016-05-19 17:08 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
>>> Hi Miao,
>>&
Hi Bin,
2016-05-19 17:08 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> 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 <yanmiaob...@gmail.com> wrote:
>> Align macro names with th
Hi Bin,
2016-05-19 17:08 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Wed, May 18, 2016 at 5:40 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> This patch enables qfw and cmd_qfw on sandbox for build coverage test
>>
>> Signed-
This patch enables qfw and cmd_qfw on sandbox for build coverage test
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
configs/sandbox_defconfig | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index afdf4a3..f19308d
Align macro names with the rest of qfw code
Signed-off-by: Miao Yan <yanmiaob...@gmai.com>
---
cmd/Kconfig| 2 +-
cmd/Makefile | 2 +-
configs/qemu-x86_defconfig | 2 +-
drivers/misc/Kconfig | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
arch/x86/cpu/qemu/acpi_t
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
cmd
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng
This patch adds some comments about qfw register endianness for clarity.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
arch/x86/cpu/qemu/qemu.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/x86/cpu/q
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 <yanmiaob...@gmail.com>
---
arch/x86/cpu/qemu/Makefile | 3 +--
arch/x86/cpu/qemu/{acpi_table.c => e820.
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
cmd/qemu_fw_cf
.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
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/Ma
Make file names aligned with CONFIG_QFW
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
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
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 <yanmi
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 <yanmiaob...@gmail.com>
---
arch/x86/cpu/qemu/acpi_table.
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
cmd/qemu_fw_cfg.c | 25 ++---
include/qemu_fw_cfg.h | 9 ++
-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
ation", 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 <yanmiaob...@gmail.com>
---
Changes in v2:
- fix a
2016-05-17 8:42 GMT+08:00 Tom Rini <tr...@konsulko.com>:
> 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 <bmeng...@gmail.com>:
>> > Hi Miao,
>> >
>> > On Fri, May
Hi Bin,
2016-05-16 16:47 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Fri, May 13, 2016 at 2:29 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> This patch splits qfw command interface and qfw core function into two
>> files, and introduces
2016-05-14 4:46 GMT+08:00 Tom Rini <tr...@konsulko.com>:
> 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 <yanmiaob...@gmail.com> wrote:
>> > This patch is part of the qfw refactor
2016-05-14 4:46 GMT+08:00 Tom Rini <tr...@konsulko.com>:
> 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 <yanmiaob...@gmail.com> wrote:
>> > The qfw command interface makes use of C
Hi Bin,
2016-05-13 22:00 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Fri, May 13, 2016 at 2:29 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> The qfw command interface used to depend on X86, this patch removes
>> this restriction so it can
Hi Bin,
2016-05-13 22:01 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Fri, May 13, 2016 at 2:29 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> Rename qemu/acpi_table.c to qemu/e820.c, because ACPI stuff is moved
>> to qfw core, this file only contai
Hi Bin,
2016-05-13 22:00 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Fri, May 13, 2016 at 2:29 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> This patch splits qfw command interface and qfw core function into two
>> files, and introduces
Hi Bin,
2016-05-13 21:59 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Fri, May 13, 2016 at 2:29 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> CONFIG_GENENRATE_ACPI_TABLE controls the generation of ACPI table which
>> uses U-Boot's built-in m
Make file names aligned with CONFIG_QFW
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
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
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 <yanmiaob...@gmail.com>
---
arch/x86/cpu/qemu/Makefile | 3 +--
arch/x86/cpu/qemu/acpi_table.
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 <yanmiaob...@gmail.com>
---
arch/x86/cpu/qemu/acpi_table.c | 211 -
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 <yanmiaob...@gmail.com>
---
cmd/Kconfig | 1 -
1 file changed, 1 deletion(-)
.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
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
This patch adds some comments about qfw register endianness for clarity.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
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 d
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 <yanmiaob...@gmail.com>
---
cmd/cmd_qfw.c | 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 <yanmiaob...@gmail.com>
---
arch/x86/cpu/qemu/acpi_table.
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 <yanmi
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 <yanmiaob...@gmail.com>
---
cmd/qemu_fw_cfg.c | 37 -
include/qemu_fw_cfg.h | 3 +++
2 files c
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 <yanmiaob...@gmail.com>
---
cmd/qemu_fw_cfg.c | 25 ++---
include/qemu_fw_cfg.h | 9 +
2 files changed, 31 insertions(+), 3 del
ation", 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 <yanmiaob...@gmail.com>
---
arch/x86/Kconfi
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
2016-05-11 10:11 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Tue, May 10, 2016 at 10:10 AM, Miao Yan <yanmiaob...@gmail.com> wrote:
>>>>
>>>> +config CMD_QEMU_FW_CFG
>>>> + bool "qfw"
>>>> + d
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 <bmeng...@gmail.com>:
> Hi Miao,
>
> On Wed, May 11, 2016 at 10:02 AM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> Hi Bin,
>>
>> 2016-05-10 11:11 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
>>> On Mon
Hi Bin,
2016-05-10 11:11 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> On Mon, May 9, 2016 at 8:57 PM, Bin Meng <bmeng...@gmail.com> wrote:
>> On Mon, May 9, 2016 at 3:27 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>>> CONFIG_GENENRATE_ACPI_TABLE controls the gen
Hi Bin,
2016-05-10 13:12 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Tue, May 10, 2016 at 12:35 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> 2016-05-10 11:08 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
>>> On Tue, May 10, 2016 at 10:
>>> > Signed-off-by: Tom Rini <tr...@konsulko.com>
>>> > ---
>>> > Changes in v2:
>>> > - Depend on X86 (per Miao Yan)
>>> > ---
>>> > arch/x86/cpu/mp_init.c | 2 +-
>>> > arch/x8
>>
>> +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
>
>
ation", 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 <yanmiaob...@gmail.com>
---
arch/x86/Kconf
> Signed-off-by: Tom Rini <tr...@konsulko.com>
> ---
> 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_
> diff --git a/arch/x86/cpu/qemu/acpi_table.c b/arch/x86/cpu/qemu/acpi_table.c
> new file mode 100644
> index 000..49381ac
> --- /dev/null
> +++ b/arch/x86/cpu/qemu/acpi_table.c
> @@ -0,0 +1,243 @@
> +/*
> + * (C) Copyright 2015 Miao Yan <yanmiaob...@gmail.com>
> + *
gt;
> diff --git a/arch/x86/cpu/qemu/fw_cfg.c b/arch/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 <yanmiaoe...@gmail.com>
> + * (C) Copyri
Hi Bin,
2016-01-20 17:18 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Wed, Jan 20, 2016 at 5:15 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> Hi Bin,
>>
>> 2016-01-20 16:46 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
>>>
Hi Bin,
2016-01-20 16:46 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> On Wed, Jan 20, 2016 at 12:24 PM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> This patch adds a config option for loading ACPI table from QEMU. When
>> enabled,
>> U-Boot won't generate ACPI table
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
Tested-by: Bin Meng <bmeng...@gmail.com>
---
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 <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
Tested-by: Bin Meng <bmeng...@gmail.com>
Enable ACPI IO space for piix4 (for pc board) and ich9 (for q35 board)
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
Tested-by: Bin Meng <bmeng...@gmail.com>
---
arch/x86/cpu/qemu/Kconfig | 7 +++
arch/x
] 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
-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
Tested-by: Bin Meng <bmeng...@gmail.com>
---
Change in v3:
- fix a build error
- make it [PATCH 3/4]
arch/x86/cpu/qemu/Makefile| 2 +
arch/x86/cpu/qemu
Hi Bin,
2016-01-19 17:25 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Tue, Jan 19, 2016 at 10:46 AM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> Hi Bin,
>>
>> 2016-01-16 21:23 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
>>> Hi Mi
-by: Miao Yan <yanmiaob...@gmail.com>
---
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 change
- 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
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 <yanmiaob...@gmail.com>
---
Changes in v2:
- coding style fix
- add comments in header file
arch/x86/cpu/qemu/fw_cfg.c
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 <yanmiaob...@gmail.com>
---
arch/x86/Kconfig | 9 +
arch/x86/cpu/qemu/Makefile | 2 ++
arch/x
Enable ACPI IO space for piix4 (for pc board) and ich9 (for q35 board)
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
Changes in v2:
- add ACPI_PM1_BASE in Kconfig
- drop PCI device ID checks
arch/x86/cpu/qemu/Kconfig | 7 +++
arch/x86/cpu/qemu/
Hi Bin,
2016-01-16 21:24 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Fri, Jan 15, 2016 at 11:12 AM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> This patch adds the ability to load and link ACPI tables provided by QEMU.
>> QEMU tells guests how to l
Hi Bin,
2016-01-16 21:24 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Fri, Jan 15, 2016 at 11:12 AM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> If CONFIG_GENERATE_ACPI_TABLE is not defined, then use ACPI table created
>> by QEMU.
>>
>> S
Hi Bin,
2016-01-16 21:23 GMT+08:00 Bin Meng <bmeng...@gmail.com>:
> Hi Miao,
>
> On Fri, Jan 15, 2016 at 11:12 AM, Miao Yan <yanmiaob...@gmail.com> wrote:
>> Enable ACPI IO space for piix4 (for pc board) and ich9 (for q35 board)
>>
>> Signed-
n Roese <s...@denx.de>
> Cc: Miao Yan <yanmiaob...@gmail.com>
> Cc: Bin Meng <bmeng...@gmail.com>
> Cc: Simon Glass <s...@chromium.org>
> ---
> include/configs/x86-common.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/configs
Enable ACPI IO space for piix4 (for pc board) and ich9 (for q35 board)
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
arch/x86/cpu/qemu/qemu.c| 39 +
arch/x86/include/asm/arch-qemu/device.h | 8 +++
2 files changed, 47 insertions(+)
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 <yanmiaob...@gmail.com>
---
arch/x86/cpu/qemu/fw_cfg.c| 60 +--
arch/x86/include/asm/fw_cfg.
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
-by: Miao Yan <yanmiaob...@gmail.com>
---
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..7
If CONFIG_GENERATE_ACPI_TABLE is not defined, then use ACPI table created
by QEMU.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
---
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 1
Hi Bin,
2016-01-07 17:31 GMT+08:00 Miao Yan <yanmiaob...@gmail.com>:
> 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 access
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 <yanmiaob...@gmail.com>
Re
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 target
x86: fix a typo
number at runtime, and dynamically adds 'cpu' device to U-Boot's driver
model.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
Tested-by: Bin Meng <bmeng...@gmail.com>
---
Changes in v6:
Document the usage of 'qfw' command
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
doc/README.x86 | 34 +++---
1 file changed, 31 insertions(+), 3 deleti
Rename 'find_cpu_by_apid_id' to 'find_cpu_by_apic_id'. This should be a
typo.
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
arch/x86/cpu/mp_init.c | 6 +++---
1 file changed,
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
2016-01-06 8:25 GMT+08:00 Simon Glass <s...@chromium.org>:
> On 4 January 2016 at 01:00, Miao Yan <yanmiaob...@gmail.com> wrote:
>> Currently, when booting with more that one CPU enabled, U-Boot scans
>> 'cpu' node in device tree and calculates CPU number. This does no
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 <yanmiaob...@gmail.com>
Re
on
the cpu node hard-coded in dts files.
Changes in v5:
+ change 'fw' to 'qfw'
+ dynamically bind cpu device instead of fixing device tree blob
+ various cleanups
Miao Yan (8):
x86: adjust ramdisk load address
x86: qemu: add fw_cfg support
x86: qemu: add a cpu uclass driver for qemu
a new configuration item CONFIG_RAMDISK_ADDR for this purpose
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
Reviewed-by: Simon Glass <s...@chromium.org>
---
Changes in v5:
- move this change to x86-common.h
- reorder it to
Use actual CPU number, instead of maximum cpu configured, to allocate
stack memory in 'load_sipi_vector'
Signed-off-by: Miao Yan <yanmiaob...@gmail.com>
Reviewed-by: Simon Glass <s...@chromium.org>
Reviewed-by: Bin Meng <bmeng...@gmail.com>
---
arch/x86/cpu/mp_init.c | 6 +++-
1 - 100 of 171 matches
Mail list logo