Signed-off-by: Saket Sinha
---
arch/x86/include/asm/acpi_table.h | 387 +++
arch/x86/lib/Makefile | 1 +
arch/x86/lib/acpi_table.c | 413 ++
arch/x86/lib/tables.c | 5 +
scripts/Makefile.lib
Signed-off-by: Saket Sinha
---
arch/x86/cpu/qemu/Makefile | 1 +
arch/x86/cpu/qemu/acpi.c | 157 +
2 files changed, 158 insertions(+)
create mode 100644 arch/x86/cpu/qemu/acpi.c
diff --git a/arch/x86/cpu/qemu/Makefile b/arch/x86/cpu/qemu
.
Saket Sinha (4):
x86: Added ACPI support as a configuration option.
x86: Added support for ACPI table generation at the generic layer.
x86: Added ACPI support for Qemu.
x86: Added dsdt tables for Qemu ACPI implementation.
arch/x86/Kconfig | 6 +
arch/x86/cpu/qemu
Signed-off-by: Saket Sinha
---
arch/x86/Kconfig | 6 ++
1 file changed, 6 insertions(+)
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 01ed760..36eae6d 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -346,6 +346,12 @@ config GENERATE_MP_TABLE
endmenu
+config
For ACPI, on QEMU x86 emulated platform things like control and/or check
thermal zones (temperature sensors, fan speeds, etc), battery levels & power
levels do not exist but we can emulate PCI IRQ routing, CPUs, NUMA domains.
Signed-off-by: Saket Sinha
---
arch/x86/cpu/qemu/Make
thermal zones
(temperature sensors, fan speeds, etc), battery levels, PCI IRQ routing, CPUs,
NUMA domains and many other things.
Changes in v4:
- Incoporated Bin's review comments.
Saket Sinha (3):
x86: Generate a valid ACPI table
x86: Add ACPI table support to QEMU
x86: Add DSDT tabl
ting, MP table
and SFI tables. With ACPI table existence, linux kernel gets control of
power management, thermal management, configuration management and
monitoring in hardware.
Signed-off-by: Saket Sinha
---
arch/x86/Kconfig | 9 +
arch/x86/include/asm/acpi_table.h |
This patch mainly adds ACPI support to QEMU.
Verified by booting Linux kernel on QEMU i440FX and Q35.
Signed-off-by: Saket Sinha
---
arch/x86/cpu/qemu/Makefile | 1 +
arch/x86/cpu/qemu/acpi.c | 161 +
2 files changed, 162 insertions(+)
create
The DSDT table contains a bytecode that is executed by a driver in the kernel.
Signed-off-by: Saket Sinha
---
arch/x86/cpu/qemu/Makefile | 2 +-
arch/x86/cpu/qemu/acpi/cpu-hotplug.asl | 78 +++
arch/x86/cpu/qemu/acpi/dbug.asl| 26 +++
arch/x86/cpu/qemu/acpi/hpet.asl
Hi Simon,
Please find my response inline -
On Mon, Aug 17, 2015 at 2:44 AM, Simon Glass wrote:
> Hi Saket,
>
> On 15 August 2015 at 23:10, Saket Sinha wrote:
>> This patch mainly adds ACPI support to QEMU.
>> Verified by booting Linux kernel on QEMU i440FX and Q35.
>&
thermal zones
(temperature sensors, fan speeds, etc), battery levels, PCI IRQ routing, CPUs,
NUMA domains and many other things.
Changes in v5:
- Incoporated Simon's review comments.
Saket Sinha (3):
x86: Generate a valid ACPI table
x86: Add ACPI table support to QEMU
x86: Add DSDT tabl
This patch mainly adds ACPI support to QEMU.
Verified by booting Linux kernel on QEMU i440FX and Q35.
Signed-off-by: Saket Sinha
---
arch/x86/cpu/qemu/Makefile | 1 +
arch/x86/cpu/qemu/acpi.c | 179 +
2 files changed, 180 insertions(+)
create
ting, MP table
and SFI tables. With ACPI table existence, linux kernel gets control of
power management, thermal management, configuration management and
monitoring in hardware.
Signed-off-by: Saket Sinha
---
arch/x86/Kconfig | 9 +
arch/x86/include/asm/acpi_table.h |
The DSDT table contains a bytecode that is executed by a driver in the kernel.
Signed-off-by: Saket Sinha
---
arch/x86/cpu/qemu/Makefile | 2 +-
arch/x86/cpu/qemu/acpi/cpu-hotplug.asl | 78 +++
arch/x86/cpu/qemu/acpi/dbug.asl| 26 +++
arch/x86/cpu/qemu/acpi/hpet.asl
Hi Bin,
Please find my response inline -
On Tue, Aug 18, 2015 at 12:36 PM, Bin Meng wrote:
> Hi Saket,
>
> On Tue, Aug 18, 2015 at 3:29 AM, Saket Sinha wrote:
>> The DSDT table contains a bytecode that is executed by a driver in the
>> kernel.
>>
&g
Hi Bin,
Please find my response inline.
On Tue, Aug 18, 2015 at 12:36 PM, Bin Meng wrote:
> Hi Saket,
>
> On Tue, Aug 18, 2015 at 3:29 AM, Saket Sinha wrote:
>> This patch mainly adds ACPI support to QEMU.
>> Verified by booting Linux kernel on QEMU i440FX and Q35.
>&
Hi Bin,
Please find my response inline -
On Tue, Aug 18, 2015 at 12:36 PM, Bin Meng wrote:
> Hi Saket,
>
> On Tue, Aug 18, 2015 at 3:29 AM, Saket Sinha wrote:
>> Implement write_acpi_table() to create a minimal working ACPI table.
>> This includes writing FACS, XSDT, R
Hi Bin ,
Please find my response inline -
On Tue, Aug 18, 2015 at 2:53 PM, Bin Meng wrote:
> Hi Saket,
>
> On Tue, Aug 18, 2015 at 3:10 PM, Bin Meng wrote:
>> Hi Saket,
>>
>> On Tue, Aug 18, 2015 at 9:25 AM, Bin Meng wrote:
>>> Hi Saket,
>>>
>
This patch mainly adds ACPI support to QEMU.
Verified by booting Linux kernel on QEMU i440FX and Q35.
Signed-off-by: Saket Sinha
---
arch/x86/cpu/qemu/Makefile | 1 +
arch/x86/cpu/qemu/acpi.c | 179 +
2 files changed, 180 insertions(+)
create
The DSDT table contains a bytecode that is executed by a driver in the kernel.
Signed-off-by: Saket Sinha
---
arch/x86/cpu/qemu/Makefile | 2 +-
arch/x86/cpu/qemu/acpi/cpu-hotplug.asl | 80 +++
arch/x86/cpu/qemu/acpi/dbug.asl| 25 ++
arch/x86/cpu/qemu/acpi/hpet.asl
ting, MP table
and SFI tables. With ACPI table existence, linux kernel gets control of
power management, thermal management, configuration management and
monitoring in hardware.
Signed-off-by: Saket Sinha
---
arch/x86/Kconfig | 9 +
arch/x86/include/asm/acpi_table.h |
eview comments.
Saket Sinha (3):
x86: Generate a valid ACPI table
x86: Add ACPI table support to QEMU
x86: Add DSDT table for supporting ACPI on QEMU
arch/x86/Kconfig | 9 +
arch/x86/cpu/qemu/Makefile | 1 +
arch/x86/cpu/qemu/acpi.c
Hi Bin,
On Sun, Aug 23, 2015 at 3:03 PM, Bin Meng wrote:
> Hi Saket,
>
> On Sat, Aug 22, 2015 at 2:50 PM, Saket Sinha wrote:
>> This patch mainly adds ACPI support to QEMU.
>> Verified by booting Linux kernel on QEMU i440FX and Q35.
>
> I don't think ACPI is fo
Hi Bin,
On Sun, Aug 23, 2015 at 5:14 PM, Bin Meng wrote:
> Hi Saket,
>
> On Sun, Aug 23, 2015 at 7:33 PM, Saket Sinha wrote:
>> Hi Bin,
>>
>>
>> On Sun, Aug 23, 2015 at 3:03 PM, Bin Meng wrote:
>>> Hi Saket,
>>>
>>> On Sat, Aug 2
This series adds ACPI table support on Minnowmax.
Saket Sinha (2):
x86: Add ACPI table support to Minnowmax
x86: Add DSDT table for supporting ACPI on Minnowmax
board/intel/minnowmax/Makefile | 1 +
board/intel/minnowmax/acpi.c| 234
Hi Bin,
On Mon, Aug 31, 2015 at 8:58 AM, Bin Meng wrote:
> Hi Saket,
>
> On Sun, Aug 30, 2015 at 8:10 AM, Saket Sinha wrote:
>> The DSDT table contains a bytecode that is executed by a driver in the
>> kernel.
>>
>> Signed-off-by: Saket Sinha
>> ---
&
s we are getting on the current qemu
support.
I hope to fix it for QEMU soon and would be sharing with Bin and
yourself, my findings(and patches soon).
For Minnowmax, apart from the PCI configuration errors(that we get
similar to QEMU), the power management via the API needs to
.
Regards,
Saket Sinha
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
000 which is what I have put
in arch/x86/dts/qemu-x86_q35.dts when I am memory mapping the PCI bus.
Any inputs regarding the issue, as to what I am doing wrong here, are
welcome.
Regards,
Saket Sinha
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
tables) successfully, it would be great.
Regards,
Saket Sinha
On Mon, Dec 28, 2015 at 2:48 PM, Miao Yan wrote:
> 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.
>
) successfully, it would be great.
Regards,
Saket Sinha
-- Forwarded message --
From: Bin Meng
Date: Fri, Jun 5, 2015 at 2:36 PM
Subject: Re: [PATCH] Initial fw_cfg support for qemu-x86 targets.
To: Saket Sinha
Cc: Simon Glass
Hi Saket,
On Fri, Jun 5, 2015 at 4:50 PM, Saket
an find the details how to reproduce it.
Anyways, I am sharing how you can test my patch to reproduce the error.
1. Apply the patch file(sahred seprately) to u-boot-x86 tree.
patch -p1 *.patch
2. make qemu-x86_defconfig, make all
3. qemu-system-i386 -nographic -bios u-boot.rom -net nic -net
user,tft
g.c
> @@ -34,7 +34,8 @@ void fw_cfg_get(int entry, void *dst, int dstlen)
>
> static void fw_cfg_init_file(void)
> {
> - u32 i, size, count = 0;
> + u32 i, size;
> + volatile u32 count = 0;
>
> if (fw_files != NULL)
> return;
>
Lets see if we can get this patch functional and able to utilize
fw_cfg to load tables for U-boot like SeaBIOS for qemu targets.
Regards,
Saket Sinha
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Hi Bin,
I am one of the students working on adding ACPI support to u-boot for
Minnowboard as a part of GSOC-2015.
In this endeavor, I have been trying to bring up u-boot on qemu-x86.
I request you to guide me as to how this can be done.
Regards,
Saket Sinha
nimal x86 firmware for QEMU.
http://lwn.net/Articles/645455/
https://github.com/bonzini/qboot
q-boot is able to give a minimal booting time, with the help of
fw_cfg, by reading both the kernel and initrd image
from fw_cfg.
I guess ACPI support for both q-boot and qemu-x86 in
wering Minnowmax and collecting the output on serial -
Nothing appears.
Kindly let me know, if I am missing something here.
Regards,
Saket Sinha
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
t;
I only way I have dumped SPI flash has been through flashrom only.
How else can I do it on Linux?
As of now I am trying to burn u-boot.rom with SPI programmer/software
on Windows to check the sanity of my flashrom setup.
>> >> 5. Now when I am powering Minnowmax and collecting the ou
programmer/software
>> on Windows to check the sanity of my flashrom setup.
>>
I have tried flashing both the u-boot.rom and
MinnowBoard.MAX.X64.079.R01.bin with the Dediprog Engineering software
on Windows with exactly same results for both the cases as with
flashrom so atleast flashr
rom on Linux and the
Dediprog Engineering software
on Windows with exactly same results.
Regards,
Saket Sinha
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
any output with Simon's u-boot.rom shared above on
the serial?
Regards,
Saket Sinha
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
uld be a real help.
> Will wait to hear from John.
>
Same here.
Regards,
Saket Sinha
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
build the u-boot.rom from FSP 3 gold and would let
you know about the results ASAP.
Regards,
Saket Sinha
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
24496 doesn't work with the
minnowmax I have.
Regards,
Saket Sinha
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
ports 3 Gbps 0x3 impl SATA mode
flags: 64bit ncq stag pm led clo pio slum part sxs
scanning bus for devices...
Found 0 device(s).
Net: RTL8169#0
Warning: RTL8169#0 using MAC address from net device
=>
Thanks for these wonderful patches.
Regards,
Saket Sinha
__
Hi Bin,
>> After applying both the patches, I am able to get the u-boot prompt
>> with u-boot.rom .
>> Thanks for these wonderful patches.
>
> This is good news! I believe you can continue your work for the ACPI
> support now :)
Sure. Thanks a lot for making this poss
This patchset is an initial attempt to support ACPI Tables for qemu-x86 target.
Changes in v2:
Dynamic generation of AML code for DSDT table.
Reading PCI registers for FADT table.
Incorporated Simon's review comments.
Signed-off-by: Saket Sinha
---
Mak
7;v1' patch offline before.
> Please check my initial review comments below. I will continue
> reviewing after I checked the specs.
>
> On Wed, Jun 17, 2015 at 10:25 AM, Saket Sinha wrote:
>> This patchset is an initial attempt to support ACPI Tables for qemu-x86
>> target
Hi Simon,
Please find my comments inline -
>> diff --git a/arch/x86/cpu/qemu/acpi_table.c b/arch/x86/cpu/qemu/acpi_table.c
>> new file mode 100755
>> index 000..cefd5f4
>> --- /dev/null
>> +++ b/arch/x86/cpu/qemu/acpi_table.c
>
> We should split the routines below in this file into two parts
ice *dev;
+ int index = 0;
for (uclass_find_first_device(UCLASS_CPU, &dev);
dev;
uclass_find_next_device(&dev)) {
struct cpu_platdata *plat = dev_get_parent_platdata(dev);
- current += acpi_create_madt_lapic((stru
i_bus :00: root bus resource [io 0x-0x0cf7 window]
[0.498000] pci_bus :00: root bus resource [io 0x0d00-0x window]
[0.50] pci_bus :00: root bus resource [mem
0x000a-0x000b window]
[0.501000] pci_bus :00: root bus resource [mem
0xe000-0xfebf window]
In the log "fail to add MMCONFIG information, can't access extended
PCI configuration space under this bridge." shows I am still not able
to use ECAM.
Regards,
Saket Sinha
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Signed-off-by: Saket Sinha
---
arch/x86/Kconfig | 7 +
arch/x86/cpu/qemu/Makefile | 3 +-
arch/x86/cpu/qemu/acpi.c | 176 +++
arch/x86/cpu/qemu/acpi/cpu-hotplug.asl | 78 +
arch/x86/cpu/qemu/acpi/dbug.asl
This is an initial attempt to support ACPI on minnowmax and qemu-x86 targets.
This is still a work in progress.
The Linux kernel boot logs on minnowmax can be found at
http://pastebin.com/Vdk8PqaV .
Saket Sinha (1):
x86: Initial ACPI support for minnowmax and qemu.
arch/x86/Kconfig
any
> duplicated effort :-)
>
I am planning to resume my ACPI work for Minnowmax and have shared
the Minnowmax ACPI patches (with some issues and which would now be
broken due to DM PCI).
I would need some guidance for this so let me know how we can
co-ordinate on the same.
Regards,
Saket Si
Hi Simon,
Do you want me to rework this with DM PCI ?
Regards,
Saket Sinha
On Wed, Apr 20, 2016 at 6:43 PM, Simon Glass wrote:
> Hi Bin,
>
> On 13 April 2016 at 01:52, Bin Meng wrote:
>> Our own ACPI implementation (when CONFIG_QEMU_ACPI_TABLE is not set)
>> does not bu
54 matches
Mail list logo