[U-Boot] [U-BOOT PATCH v3 2/4] x86: Added support for ACPI table generation at the generic layer.

2015-08-12 Thread Saket Sinha
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

[U-Boot] [U-BOOT PATCH v3 3/4] x86: Added ACPI support for Qemu.

2015-08-12 Thread Saket Sinha
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

[U-Boot] [U-BOOT PATCH v3 0/4] x86: This series adds ACPI support for qemu targets.

2015-08-12 Thread Saket Sinha
. 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

[U-Boot] [U-BOOT PATCH v3 1/4] x86: Added ACPI support as a configuration option.

2015-08-12 Thread Saket Sinha
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

[U-Boot] [U-BOOT PATCH v3 4/4] x86: Added dsdt tables for Qemu ACPI implementation.

2015-08-12 Thread Saket Sinha
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

[U-Boot] [UBOOT] [PATCH v4 0/3] Add ACPI table support

2015-08-17 Thread Saket Sinha
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

[U-Boot] [UBOOT PATCH v4 1/3] x86: Generate a valid ACPI table

2015-08-17 Thread Saket Sinha
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 |

[U-Boot] [UBOOT PATCH v4 2/3] x86: Add ACPI table support to QEMU

2015-08-17 Thread Saket Sinha
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

[U-Boot] [UBOOT PATCH v4 3/3] x86: Add DSDT table for supporting ACPI on QEMU

2015-08-17 Thread Saket Sinha
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

Re: [U-Boot] [UBOOT PATCH v4 2/3] x86: Add ACPI table support to QEMU

2015-08-17 Thread Saket Sinha
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. >&

[U-Boot] [UBOOT PATCH v5 0/3] Add ACPI table support

2015-08-17 Thread Saket Sinha
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

[U-Boot] [UBOOT PATCH v5 2/3] x86: Add ACPI table support to QEMU

2015-08-17 Thread Saket Sinha
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

[U-Boot] [UBOOT PATCH v5 1/3] x86: Generate a valid ACPI table

2015-08-17 Thread Saket Sinha
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 |

[U-Boot] [UBOOT PATCH v5 3/3] x86: Add DSDT table for supporting ACPI on QEMU

2015-08-17 Thread Saket Sinha
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

Re: [U-Boot] [UBOOT PATCH v5 3/3] x86: Add DSDT table for supporting ACPI on QEMU

2015-08-20 Thread Saket Sinha
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

Re: [U-Boot] [UBOOT PATCH v5 2/3] x86: Add ACPI table support to QEMU

2015-08-20 Thread Saket Sinha
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. >&

Re: [U-Boot] [UBOOT PATCH v5 1/3] x86: Generate a valid ACPI table

2015-08-20 Thread Saket Sinha
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

Re: [U-Boot] [UBOOT PATCH v5 0/3] Add ACPI table support

2015-08-20 Thread Saket Sinha
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, >>> >

[U-Boot] [UBOOT PATCH v6 2/3] x86: Add ACPI table support to QEMU

2015-08-21 Thread Saket Sinha
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

[U-Boot] [UBOOT PATCH v6 3/3] x86: Add DSDT table for supporting ACPI on QEMU

2015-08-21 Thread Saket Sinha
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

[U-Boot] [UBOOT PATCH v6 1/3] x86: Generate a valid ACPI table

2015-08-21 Thread Saket Sinha
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 |

[U-Boot] [UBOOT PATCH v6 0/3] Add ACPI table support

2015-08-21 Thread Saket Sinha
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

Re: [U-Boot] [UBOOT PATCH v6 2/3] x86: Add ACPI table support to QEMU

2015-08-23 Thread Saket Sinha
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

Re: [U-Boot] [UBOOT PATCH v6 2/3] x86: Add ACPI table support to QEMU

2015-08-23 Thread Saket Sinha
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

[U-Boot] [UBOOT PATCH v1 0/2] Add ACPI table support on Minnowmax

2015-08-29 Thread Saket Sinha
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

Re: [U-Boot] [UBOOT PATCH v1 2/2] x86: Add DSDT table for supporting ACPI on Minnowmax

2015-08-30 Thread Saket Sinha
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 >> --- &

Re: [U-Boot] Next for x86?

2015-11-25 Thread 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

[U-Boot] PCI configuration Issue for QEMU ACPI Support

2015-09-08 Thread Saket Sinha
. Regards, Saket Sinha ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] PCI issues for bringing up ACPI support on QEMU and Minnowmax target

2015-09-28 Thread Saket Sinha
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

Re: [U-Boot] [PATCH 0/7] add fw_cfg interface support for qemu-x86 targets

2015-12-28 Thread Saket Sinha
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. >

[U-Boot] Fwd: [PATCH] Initial fw_cfg support for qemu-x86 targets.

2015-12-28 Thread Saket Sinha
) 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

Re: [U-Boot] [PATCH 0/7] add fw_cfg interface support for qemu-x86 targets

2015-12-28 Thread Saket Sinha
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

Re: [U-Boot] [PATCH 0/7] add fw_cfg interface support for qemu-x86 targets

2015-12-28 Thread Saket Sinha
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

[U-Boot] bringing up u-boot on qemu-x86

2015-05-04 Thread Saket Sinha
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

Re: [U-Boot] U-boot qemu-x86 :load acpi tables from fw_cfg.

2015-05-22 Thread 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

[U-Boot] Building u-boot.rom for Minnowboard

2015-05-28 Thread Saket Sinha
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

Re: [U-Boot] Building u-boot.rom for Minnowboard

2015-05-31 Thread Saket Sinha
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

Re: [U-Boot] Building u-boot.rom for Minnowboard

2015-06-01 Thread Saket Sinha
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

Re: [U-Boot] Building u-boot.rom for Minnowboard

2015-06-01 Thread Saket Sinha
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

Re: [U-Boot] Building u-boot.rom for Minnowboard

2015-06-02 Thread Saket Sinha
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

Re: [U-Boot] Building u-boot.rom for Minnowboard

2015-06-02 Thread Saket Sinha
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

Re: [U-Boot] Building u-boot.rom for Minnowboard

2015-06-03 Thread Saket Sinha
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

Re: [U-Boot] Building u-boot.rom for Minnowboard

2015-06-03 Thread Saket Sinha
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

Re: [U-Boot] Building u-boot.rom for Minnowboard

2015-06-04 Thread Saket Sinha
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 __

Re: [U-Boot] Building u-boot.rom for Minnowboard

2015-06-04 Thread 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

[U-Boot] [PATCH v2] Initial support for ACPI Tables for qemu-x86 target.

2015-06-16 Thread Saket Sinha
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

Re: [U-Boot] [PATCH v2] Initial support for ACPI Tables for qemu-x86 target.

2015-06-17 Thread Saket Sinha
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

Re: [U-Boot] [PATCH v2] Initial support for ACPI Tables for qemu-x86 target.

2015-06-24 Thread Saket Sinha
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

Re: [U-Boot] [PATCH v2] Initial support for ACPI Tables for qemu-x86 target.

2015-06-25 Thread Saket Sinha
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

Re: [U-Boot] [PATCH v2] Initial support for ACPI Tables for qemu-x86 target.

2015-06-28 Thread Saket Sinha
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

[U-Boot] [PATCH] x86: Initial ACPI support for minnowmax and qemu.

2015-07-09 Thread Saket Sinha
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

[U-Boot] [PATCH] Support ACPI on minnowmax and qemu-x86 targets

2015-07-09 Thread Saket Sinha
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

Re: [U-Boot] [PATCH] x86: qemu: Drop our own ACPI implementation

2016-04-21 Thread Saket Sinha
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

Re: [U-Boot] [PATCH] x86: qemu: Drop our own ACPI implementation

2016-04-21 Thread Saket Sinha
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