Re: [Qemu-devel] [PATCH v5 5/5] add L2x0/PL310 cache controller device

2012-06-07 Thread Mark Langsdorf
Yes, that's fine by me. --Mark Langsdorf Calxeda, Inc. From: Andreas Färber [afaer...@suse.de] Sent: Thursday, June 07, 2012 8:45 AM To: Mark Langsdorf Cc: qemu-devel@nongnu.org; peter.mayd...@linaro.org; Rob Herring; Paolo Bonzini Subject: Re: [Qemu

Re: [Qemu-devel] [PATCH v3] use an uint64_t for the max_sz parameter in load_image_targphys

2012-04-11 Thread Mark Langsdorf
On 03/12/2012 11:47 AM, Andreas Färber wrote: Am 12.03.2012 17:33, schrieb Mark Langsdorf: Allow load_image_targphys to load files on systems with more than 2G of emulated memory by changing the max_sz parameter from an int to an uint64_t. Signed-off-by: Mark Langsdorf mark.langsd

Re: [Qemu-devel] [PATCH 14/14] target-arm: Move A9 config_base_address reset value to ARMCPU

2012-03-30 Thread Mark Langsdorf
Odd that I wasn't actually cc'd by the mailer on this. Do you want me to pull together a patch to make it a QOM property now, or is there some other dependency I should wait on? It may take me a week or so to get time to pull it together and test it. --Mark Langsdorf Calxeda, Inc. On 03/30/2012

Re: [Qemu-devel] [PATCH v2 3/3] Minimal ARM LPAE support.

2012-03-14 Thread Mark Langsdorf
Please include a change log below the commit line so we know what you changed. Thank you. More comments below. --Mark Langsdorf Calxeda, Inc. On 03/14/2012 06:58 AM, Alexey Starikovskiy wrote: Sufficient to boot Linux kernel on vexpress-a15 Missing: * Extends the DBGDRAR and DBGDSAR to 64

Re: [Qemu-devel] Minimal ARM LPAE support

2012-03-13 Thread Mark Langsdorf
On 03/13/2012 06:19 AM, Alexey Starikovskiy wrote: The entire patch repeatedly fails scripts/checkpatch. More comments below. --Mark Langsdorf Calxeda, Inc. Minimal ARM LPAE support. Sufficient to boot Linux kernel on vexpress-a15 Signed-off-by: Alexey Starikovskiy aysta...@gmail.com

[Qemu-devel] [PATCH 1/2] cleanup obsolete typedef

2012-03-13 Thread Mark Langsdorf
From: Joshua Housh joshua.ho...@calxeda.com There are no users of i2c_slave. Signed-off-by: Joshua Housh joshua.ho...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- qemu-common.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/qemu-common.h b

[Qemu-devel] [PATCH 2/2] qdev: fix NULL deference

2012-03-13 Thread Mark Langsdorf
From: Joshua Housh joshua.ho...@calxeda.com Make sure a BusInfo exists before trying to dereference it. Signed-off-by: Joshua Housh joshua.ho...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- hw/qdev.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions

Re: [Qemu-devel] [PATCH] use an unsigned long for the max_sz parameter in load_image_targphys

2012-03-12 Thread Mark Langsdorf
solution and that I'm working toward their understand. Thanks for thinking this over. --Mark Langsdorf Calxeda, Inc.

[Qemu-devel] [PATCH v3] use an uint64_t for the max_sz parameter in load_image_targphys

2012-03-12 Thread Mark Langsdorf
Allow load_image_targphys to load files on systems with more than 2G of emulated memory by changing the max_sz parameter from an int to an uint64_t. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v2 changed max_sz from target_phys_addr_t to uint64_t Changes from

Re: [Qemu-devel] [PATCH v3] use an uint64_t for the max_sz parameter in load_image_targphys

2012-03-12 Thread Mark Langsdorf
needs updating too, to check whether the dtb is using 32 bit or 64 bit cell sizes for its RAM size). I'm happy to put together a patch to do this at some point if Mark doesn't already have one lined up. I don't have one lined up for that. --Mark Langsdorf Calxeda, Inc.

Re: [Qemu-devel] [PATCH] use an unsigned long for the max_sz parameter in load_image_targphys

2012-03-09 Thread Mark Langsdorf
On 03/09/2012 03:25 AM, Markus Armbruster wrote: Mark Langsdorf mark.langsd...@calxeda.com writes: Allow load_image_targphys to load files on systems with more than 2G of emulated memory by changing the max_sz parameter from an int to an unsigned long. Signed-off-by: Mark Langsdorf

Re: [Qemu-devel] [PATCH] use an unsigned long for the max_sz parameter in load_image_targphys

2012-03-09 Thread Mark Langsdorf
On 03/09/2012 07:21 AM, Alexander Graf wrote: On 09.03.2012, at 14:15, Mark Langsdorf wrote: On 03/09/2012 03:25 AM, Markus Armbruster wrote: Mark Langsdorf mark.langsd...@calxeda.com writes: Allow load_image_targphys to load files on systems with more than 2G of emulated memory

[Qemu-devel] [PATCH v2] use an unsigned long for the max_sz parameter in load_image_targphys

2012-03-09 Thread Mark Langsdorf
Allow load_image_targphys to load files on systems with more than 2G of emulated memory by changing the max_sz parameter from an int to an unsigned long. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- The other loaders in hw/loader.h did not look they had a similar issue. Changes

Re: [Qemu-devel] [PATCH] use an unsigned long for the max_sz parameter in load_image_targphys

2012-03-09 Thread Mark Langsdorf
On 03/09/2012 08:17 AM, Markus Armbruster wrote: Mark Langsdorf mark.langsd...@calxeda.com writes: On 03/09/2012 03:25 AM, Markus Armbruster wrote: get_image_size() returns int. How does widening size and max_sz here improve things? If max_sz is greater than 2GB, then: int max_sz

[Qemu-devel] [PATCH] arm highbank: force ramsize to INT_MAX when loading

2012-03-09 Thread Mark Langsdorf
Since the ram_size field of arm_boot_info is only an int, don't set that field to more than INT_MAX. Signed vs unsigned comparison overruns are possible otherwise. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- hw/highbank.c |2 +- 1 files changed, 1 insertions(+), 1 deletions

Re: [Qemu-devel] [PATCH] arm highbank: force ramsize to INT_MAX when loading

2012-03-09 Thread Mark Langsdorf
On 03/09/2012 10:13 AM, Peter Maydell wrote: On 9 March 2012 15:57, Mark Langsdorf mark.langsd...@calxeda.com wrote: Since the ram_size field of arm_boot_info is only an int, don't set that field to more than INT_MAX. Signed vs unsigned comparison overruns are possible otherwise. Can't we

[Qemu-devel] [PATCH] use an unsigned long for the max_sz parameter in load_image_targphys

2012-03-08 Thread Mark Langsdorf
Allow load_image_targphys to load files on systems with more than 2G of emulated memory by changing the max_sz parameter from an int to an unsigned long. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- hw/loader.c |4 ++-- hw/loader.h |3 ++- 2 files changed, 4 insertions

Re: [Qemu-devel] [PATCH] use an unsigned long for the max_sz parameter in load_image_targphys

2012-03-08 Thread Mark Langsdorf
On 03/08/2012 11:56 AM, Eric Blake wrote: On 03/08/2012 09:59 AM, Mark Langsdorf wrote: Allow load_image_targphys to load files on systems with more than 2G of emulated memory by changing the max_sz parameter from an int to an unsigned long. unsigned long is still 32-bits on a 32-bit host

[Qemu-devel] [PATCH v2] MAINTAINERS: Add hw/highbank.c maintainer

2012-02-06 Thread Mark Langsdorf
Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v1 Put entry in alphabetical order Added maintainership of hw/xgmac MAINTAINERS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 173e893..74ee059

[Qemu-devel] [PATCH] MAINTAINERS: Add hw/highbank.c maintainer

2012-02-03 Thread Mark Langsdorf
Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- MAINTAINERS |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 173e893..bdc254f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -237,6 +237,11 @@ M: Peter Maydell peter.mayd

[Qemu-devel] [PATCH v14 2/6] ahci: add support for non-PCI based controllers

2012-01-23 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Add support for ahci on sysbus. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v10-v13 None Changes from v9 Changed

[Qemu-devel] [PATCH v14 1/6] Add xgmac ethernet model

2012-01-23 Thread Mark Langsdorf
rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- Changes from v10-v13 None Changes from v9 Make typedef struct names into CamelCase Changes from v7, v8 None Changes from v6

[Qemu-devel] [PATCH v14 4/6] arm_boot: support board IDs more than 16 bits wide

2012-01-23 Thread Mark Langsdorf
-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v13 None Changes from v1-v12 Skipped hw/arm_boot.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/arm_boot.c b/hw/arm_boot.c index 35ca22f..5f163fd 100644 --- a/hw/arm_boot.c +++ b/hw

[Qemu-devel] [PATCH v14 6/6] arm: SoC model for Calxeda Highbank

2012-01-23 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v13 Removed no_vga parameter Really reverted board_id to -1 Changes from

[Qemu-devel] [PATCH v14 5/6] arm: store the config_base_register during cpu_reset

2012-01-23 Thread Mark Langsdorf
Long term, the config_base_register will be a QDM parameter. In the meantime, models that use it need to be able to preserve it across cpu_reset() calls. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v13 Make save/restore unconditional Changes from v1-v12

[Qemu-devel] [PATCH v14 3/6] arm: add secondary cpu boot callbacks to arm_boot.c

2012-01-23 Thread Mark Langsdorf
Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(), to allow platforms more control of how secondary CPUs are brought up. The new functions default to NULL and aren't called unless they are populated so there are no changes to existing platform models. Signed-off-by: Mark

[Qemu-devel] [PATCH v14 0/6] arm: add support for Calxeda Highbank

2012-01-23 Thread Mark Langsdorf
This patch series adds support for the Calxeda Highbank SoC. Makefile.target |2 + hw/arm-misc.h | 17 ++ hw/arm_boot.c | 65 ++-- hw/highbank.c | 330 hw/ide/ahci.c | 44 ++ hw/xgmac.c | 421

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-20 Thread Mark Langsdorf
On 01/20/2012 07:48 AM, Rob Herring wrote: On 01/20/2012 02:47 AM, Peter Maydell wrote: On 19 January 2012 23:17, Rob Herring rob.herr...@calxeda.com wrote: On 01/19/2012 03:44 PM, Peter Maydell wrote: On 19 January 2012 21:31, Mark Langsdorf mark.langsd...@calxeda.com wrote

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-20 Thread Mark Langsdorf
On 01/20/2012 10:27 AM, Peter Maydell wrote: On 20 January 2012 16:25, Mark Langsdorf mark.langsd...@calxeda.com wrote: On 01/20/2012 07:48 AM, Rob Herring wrote: On 01/20/2012 02:47 AM, Peter Maydell wrote: On 19 January 2012 23:17, Rob Herring rob.herr...@calxeda.com wrote: On 01/19/2012 03

Re: [Qemu-devel] [PATCH] arm_boot: support board IDs more than 16 bits wide

2012-01-20 Thread Mark Langsdorf
) as the value of smpboot[0]. It seems to be bypassing the a9mpcore.c code entirely. I'm not sure what's happening there. --Mark Langsdorf Calxeda, Inc.

Re: [Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-20 Thread Mark Langsdorf
On 01/20/2012 10:58 AM, Peter Maydell wrote: On 20 January 2012 16:57, Mark Langsdorf mark.langsd...@calxeda.com wrote: On 01/20/2012 10:27 AM, Peter Maydell wrote: It's still not clear to me from this conversation if the right answer is 0, -1 or anything that's not a valid board ID

[Qemu-devel] [PATCH v13 0/6] arm: add support for Calxeda Highbank

2012-01-20 Thread Mark Langsdorf
This patch series adds support for the Calxeda Highbank SoC. Makefile.target |2 + hw/arm-misc.h | 17 ++ hw/arm_boot.c | 65 ++-- hw/highbank.c | 331 hw/ide/ahci.c | 44 ++ hw/xgmac.c | 421

[Qemu-devel] [PATCH v13 5/6] arm: store the config_base_register during cpu_reset

2012-01-20 Thread Mark Langsdorf
Long term, the config_base_register will be a QDM parameter. In the meantime, models that use it need to be able to preserve it across cpu_reset() calls. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v1-v12 Skipped target-arm/helper.c |7 +++ 1 files

[Qemu-devel] [PATCH v13 1/6] Add xgmac ethernet model

2012-01-20 Thread Mark Langsdorf
rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- Changes from v10-v12 None Changes from v9 Make typedef struct names into CamelCase Changes from v7, v8 None Changes from v6

[Qemu-devel] [PATCH v13 6/6] arm: SoC model for Calxeda Highbank

2012-01-20 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v12 Reverted board_id to -1. Added comments clarifying why this is legal

[Qemu-devel] [PATCH v13 4/6] arm_boot: support board IDs more than 16 bits wide

2012-01-20 Thread Mark Langsdorf
-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v1-v12 Skipped hw/arm_boot.c | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/arm_boot.c b/hw/arm_boot.c index 35ca22f..5f163fd 100644 --- a/hw/arm_boot.c +++ b/hw/arm_boot.c @@ -20,10 +20,10

[Qemu-devel] [PATCH v13 3/6] arm: add secondary cpu boot callbacks to arm_boot.c

2012-01-20 Thread Mark Langsdorf
Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(), to allow platforms more control of how secondary CPUs are brought up. The new functions default to NULL and aren't called unless they are populated so there are no changes to existing platform models. Signed-off-by: Mark

[Qemu-devel] [PATCH v13 2/6] ahci: add support for non-PCI based controllers

2012-01-20 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Add support for ahci on sysbus. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v10-v12 None Changes from v9 Changed

[Qemu-devel] [PATCH v11 0/5] arm: add support for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
This patch series adds support for the Calxeda Highbank SoC.

[Qemu-devel] [PATCH v11 1/6] Add xgmac ethernet model

2012-01-19 Thread Mark Langsdorf
rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- Changes from v10 None Changes from v9 Make typedef struct names into CamelCase Changes from v7, v8 None Changes from v6 Skipped

[Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v10 Added secondary core boot functions Changes from v9 Made typedef

[Qemu-devel] [PATCH v11 6/6] arm: Remove incorrect comment in arm_timer

2012-01-19 Thread Mark Langsdorf
The current comment says that the arm_timers are restricted to between 32 KHz and 1 MHz, but sp804 TRM does not specify those limits. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v7-v10 None Changes from v2-v6

[Qemu-devel] [PATCH v11 3/6] ahci: add support for non-PCI based controllers

2012-01-19 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Add support for ahci on sysbus. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v10 None Changes from v9 Changed

[Qemu-devel] [PATCH v11 2/6] arm: make the number of GIC interrupts configurable

2012-01-19 Thread Mark Langsdorf
appropriately. Set the maximum theoretical number of GIC interrupts to 1020 and update the save/restore code to only use the appropriate number for each SoC. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de Reviewed-by: Peter Maydell peter.mayd

[Qemu-devel] [PATCH v11 4/6] arm: add secondary cpu book callbacks to arm_boot.c

2012-01-19 Thread Mark Langsdorf
Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(), to allow platforms more control of how secondary CPUs are brought up. The new functions default to NULL and aren't called unless they are populated so there are no changes to existing platform models. Signed-off-by: Mark

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
On 01/19/2012 01:15 PM, Peter Maydell wrote: On 19 January 2012 15:43, Mark Langsdorf mark.langsd...@calxeda.com wrote: +highbank_binfo.board_id = -1; /* provided by deviceTree */ This doesn't work, because arm_boot.c does: bootloader[1] |= info-board_id 0xff

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
On 01/19/2012 01:32 PM, Peter Maydell wrote: On 19 January 2012 19:25, Mark Langsdorf mark.langsd...@calxeda.com wrote: On 01/19/2012 01:15 PM, Peter Maydell wrote: On 19 January 2012 15:43, Mark Langsdorf mark.langsd...@calxeda.com wrote: +highbank_binfo.board_id = -1; /* provided

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
On 01/19/2012 01:44 PM, Peter Maydell wrote: On 19 January 2012 19:35, Mark Langsdorf mark.langsd...@calxeda.com wrote: On 01/19/2012 01:32 PM, Peter Maydell wrote: On 19 January 2012 19:25, Mark Langsdorf mark.langsd...@calxeda.com wrote: On 01/19/2012 01:15 PM, Peter Maydell wrote: On 19

Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
On 01/19/2012 01:59 PM, Peter Maydell wrote: On 19 January 2012 19:58, Mark Langsdorf mark.langsd...@calxeda.com wrote: On 01/19/2012 01:44 PM, Peter Maydell wrote: I have a kernel now that seems to boot but then barfs with: Freeing init memory: 124K Kernel panic - not syncing: Attempted

[Qemu-devel] [PATCH v12 2/4] ahci: add support for non-PCI based controllers

2012-01-19 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Add support for ahci on sysbus. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v10 None Changes from v9 Changed

[Qemu-devel] [PATCH v12 3/4] arm: add secondary cpu boot callbacks to arm_boot.c

2012-01-19 Thread Mark Langsdorf
Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(), to allow platforms more control of how secondary CPUs are brought up. The new functions default to NULL and aren't called unless they are populated so there are no changes to existing platform models. Signed-off-by: Mark

[Qemu-devel] [PATCH v12 0/5] arm: add support for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
This patch series adds support for the Calxeda Highbank SoC. Makefile.target |2 + hw/arm-misc.h | 17 +++ hw/arm_boot.c | 54 ++-- hw/highbank.c | 327 ++ hw/ide/ahci.c | 44 ++ hw/xgmac.c | 421

[Qemu-devel] [PATCH v12 1/4] Add xgmac ethernet model

2012-01-19 Thread Mark Langsdorf
rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- Changes from v10, v11 None Changes from v9 Make typedef struct names into CamelCase Changes from v7, v8 None Changes from v6

[Qemu-devel] [PATCH v12 4/4] arm: SoC model for Calxeda Highbank

2012-01-19 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v11 Provided a meaningful board ID Added comments on the way the device

Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank

2012-01-18 Thread Mark Langsdorf
On 01/18/2012 08:53 AM, Peter Maydell wrote: On 18 January 2012 14:35, Mark Langsdorf mark.langsd...@calxeda.com wrote: Is there a good example of how to write secondary smp boot code other than arm_boot.c? Should I just expect to pull most of arm_boot.c into highbank and adjust from there? I

[Qemu-devel] [PATCH][RFC] arm: add secondary cpu book callbacks to arm_boot.c

2012-01-18 Thread Mark Langsdorf
Create two functions, write_secondary_boot() and secondary_cpu_reset_hook(), to allow platforms more control of how secondary CPUs are brought up. The new functions default to NULL and aren't called unless they are populated so there are no changes to existing platform models. Signed-off-by: Mark

Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank

2012-01-18 Thread Mark Langsdorf
On 01/18/2012 08:53 AM, Peter Maydell wrote: On 18 January 2012 14:35, Mark Langsdorf mark.langsd...@calxeda.com wrote: I can set the smp_loader code so that I can boot 2 cpus and verify their existence in /proc/cpuinfo, but I can't get 3 cpus to boot at all, no matter how I hack the existing

Re: [Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank

2012-01-18 Thread Mark Langsdorf
On 01/18/2012 01:26 PM, Peter Maydell wrote: On 18 January 2012 19:06, Mark Langsdorf mark.langsd...@calxeda.com wrote: On 01/18/2012 08:53 AM, Peter Maydell wrote: On 18 January 2012 14:35, Mark Langsdorf mark.langsd...@calxeda.com wrote: I can set the smp_loader code so that I can boot 2

[Qemu-devel] [PATCH v10 0/5] arm: add support for Calxeda Highbank

2012-01-17 Thread Mark Langsdorf
This patch series adds support for the Calxeda Highbank SoC.

[Qemu-devel] [PATCH v10 5/5] arm: Remove incorrect comment in arm_timer

2012-01-17 Thread Mark Langsdorf
The current comment says that the arm_timers are restricted to between 32 KHz and 1 MHz, but sp804 TRM does not specify those limits. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v7, v8, v9 None Changes from v2, v3

[Qemu-devel] [PATCH v10 4/5] arm: SoC model for Calxeda Highbank

2012-01-17 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- Changes from v9 Made typedef struct names

[Qemu-devel] [PATCH v10 1/5] Add xgmac ethernet model

2012-01-17 Thread Mark Langsdorf
rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- Changes from v10 Make typedef struct names into CamelCase Changes from v7, v8 None Changes from v6 Skipped Changes from v5 removed

[Qemu-devel] [PATCH v10 2/5] arm: make the number of GIC interrupts configurable

2012-01-17 Thread Mark Langsdorf
appropriately. Set the maximum theoretical number of GIC interrupts to 1020 and update the save/restore code to only use the appropriate number for each SoC. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de Reviewed-by: Peter Maydell peter.mayd

[Qemu-devel] [PATCH v10 3/5] ahci: add support for non-PCI based controllers

2012-01-17 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Add support for ahci on sysbus. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v9 Changed typedef struct names to CamelCase

[Qemu-devel] [PATCH v8 3/6] ahci: add support for non-PCI based controllers

2012-01-11 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Add support for ahci on sysbus. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v7 None Changes from v5, v6 Skipped

[Qemu-devel] [PATCH v8 4/6] arm: Add dummy support for co-processor 15's secure config register

2012-01-11 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- Changes from v7 None Changes from v1, v2, v3, v4, v5, v6 Skipped target

[Qemu-devel] [PATCH v8 1/6] Add xgmac ethernet model

2012-01-11 Thread Mark Langsdorf
...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v7 None Changes from v6 Skipped Changes from v5 removed c_phyaddr Changes from v4 None Changes from v3 Added debug macro and cleaned up some debug code Refitted all lines

[Qemu-devel] [PATCH v8 5/6] arm: SoC model for Calxeda Highbank

2012-01-11 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v7 None Changes from v3, v4, v5, v6 Skipped Changes from v2

[Qemu-devel] [PATCH v8 6/6] arm: Remove incorrect comment in arm_timer

2012-01-11 Thread Mark Langsdorf
The current comment says that the arm_timers are restricted to between 32 KHz and 1 MHz, but sp804 TRM does not specify those limits. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v7 None Changes from v2, v3, v4, v5

[Qemu-devel] [PATCH v8 0/6] arm: add support for Calxeda Highbank SoC

2012-01-11 Thread Mark Langsdorf
This patch series adds support for the Calxeda Highbank SoC. It depends on my previous patch series various ARM fixes for Calxeda Highbank and ahci: convert ahci_reset to use AHCIState. Some of the patches are carried voer from Various ARM fixes for Calxeda Highbank and were reviewed but not

[Qemu-devel] [PATCH v8 2/6] arm: make the number of GIC interrupts configurable

2012-01-11 Thread Mark Langsdorf
appropriately. Set the maximum theoretically number of GIC interrupts to 1020 and update the save/restore code to only use the appropriate number for each SoC. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v7 Removed unnecessary vmstate_register Changes from v6

[Qemu-devel] [PATCH v6 2/6] arm: make the number of GIC interrupts configurable

2012-01-11 Thread Mark Langsdorf
appropriately. Set the maximum theoretically number of GIC interrupts to 1020 and update the save/restore code to only use the appropriate number for each SoC. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v5 Clarify the commit message Rename GIC_NIRQ

[Qemu-devel] [PATCH v5 3/6] ahci: add support for non-PCI based controllers

2012-01-11 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Add support for ahci on sysbus. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v4 replaced all references to Plat|plat_ with sysbus_ made the number of ports

[Qemu-devel] [PATCH v9 6/6] arm: Remove incorrect comment in arm_timer

2012-01-11 Thread Mark Langsdorf
The current comment says that the arm_timers are restricted to between 32 KHz and 1 MHz, but sp804 TRM does not specify those limits. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v7, v8 None Changes from v2, v3, v4

[Qemu-devel] [PATCH v9 3/6] ahci: add support for non-PCI based controllers

2012-01-11 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Add support for ahci on sysbus. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v7, v8 None Changes from v5, v6

[Qemu-devel] [PATCH v2 5/6] arm: SoC model for Calxeda Highbank

2012-01-11 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v1 Restructed the loading of sysram.bin and made it more clearly optional

[Qemu-devel] [PATCH v9 5/6] arm: SoC model for Calxeda Highbank

2012-01-11 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- Changes from v7, v8 None Changes from v3

[Qemu-devel] [PATCH v9 2/6] arm: make the number of GIC interrupts configurable

2012-01-11 Thread Mark Langsdorf
appropriately. Set the maximum theoretical number of GIC interrupts to 1020 and update the save/restore code to only use the appropriate number for each SoC. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v8 Removed comments

[Qemu-devel] [PATCH 4/6] arm: Add dummy support for co-processor 15's secure config register

2012-01-11 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- target-arm/cpu.h |3 ++- target-arm/helper.c |9 + target-arm/machine.c |2 ++ 3 files changed, 13 insertions(+), 1

[Qemu-devel] [PATCH v7 2/6] arm: make the number of GIC interrupts configurable

2012-01-11 Thread Mark Langsdorf
appropriately. Set the maximum theoretical number of GIC interrupts to 1020 and update the save/restore code to only use the appropriate number for each SoC. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v6 Removed trailing whitespace armv7m_nvic uses num_irq

[Qemu-devel] [PATCH v5 1/6] Add xgmac ethernet model

2012-01-11 Thread Mark Langsdorf
...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v4 None Changes from v3 Added debug macro and cleaned up some debug code Refitted all lines to fit within 80 columns Changes from v2 None Changes from v1 Reformated most lines to fit

[Qemu-devel] [PATCH v7 6/6] arm: Remove incorrect comment in arm_timer

2012-01-11 Thread Mark Langsdorf
The current comment says that the arm_timers are restricted to between 32 KHz and 1 MHz, but sp804 TRM does not specify those limits. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v2, v3, v4, v5, v6 Skipped Changes

[Qemu-devel] [PATCH v7 1/6] Add xgmac ethernet model

2012-01-11 Thread Mark Langsdorf
...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v6 Skipped Changes from v5 removed c_phyaddr Changes from v4 None Changes from v3 Added debug macro and cleaned up some debug code Refitted all lines to fit within 80 columns Changes

[Qemu-devel] [PATCH v7 5/6] arm: SoC model for Calxeda Highbank

2012-01-11 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v3, v4, v5, v6 Skipped Changes from v2 Created a reset function

[Qemu-devel] [PATCH v9 4/6] arm: Add dummy support for co-processor 15's secure config register

2012-01-11 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- Changes from v7, v8 None Changes from v1, v2, v3, v4, v5, v6 Skipped

[Qemu-devel] [PATCH v7 3/6] ahci: add support for non-PCI based controllers

2012-01-11 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Add support for ahci on sysbus. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Andreas Färber afaer...@suse.de --- Changes from v5, v6 Skipped Changes from v4

[Qemu-devel] [PATCH v9 1/6] Add xgmac ethernet model

2012-01-11 Thread Mark Langsdorf
-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- Changes from v7, v8 None Changes from v6 Skipped Changes from v5 removed c_phyaddr Changes from v4 None Changes from v3 Added debug macro and cleaned up some debug

[Qemu-devel] [PATCH v2 6/6] arm: Remove incorrect comment in arm_timer

2012-01-11 Thread Mark Langsdorf
The current comment says that the arm_timers are restricted to between 32 KHz and 1 MHz, but sp804 TRM does not specify those limits. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v1 Clarified the commit message hw/arm_timer.c |3 --- 1 files changed, 0

[Qemu-devel] [PATCH v3 0/5] arm: add support for Calxeda Highbank SoC

2012-01-11 Thread Mark Langsdorf
This patch series adds support for the Calxeda Highbank SoC. It depends on my previous patch series various ARM fixes for Calxeda Highbank and ahci: convert ahci_reset to use AHCIState. Some of the patches are carried voer from Various ARM fixes for Calxeda Highbank and were reviewed but not

[Qemu-devel] [PATCH v7 0/6] arm: add support for Calxeda Highbank SoC

2012-01-11 Thread Mark Langsdorf
This patch series adds support for the Calxeda Highbank SoC. It depends on my previous patch series various ARM fixes for Calxeda Highbank and ahci: convert ahci_reset to use AHCIState. Some of the patches are carried voer from Various ARM fixes for Calxeda Highbank and were reviewed but not

[Qemu-devel] [PATCH v7 4/6] arm: Add dummy support for co-processor 15's secure config register

2012-01-11 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com Reviewed-by: Peter Maydell peter.mayd...@linaro.org --- Changes from v1, v2, v3, v4, v5, v6 Skipped target-arm/cpu.h |3

[Qemu-devel] [PATCH v2 0/6] arm: add support for Calxeda Highbank SoC

2012-01-09 Thread Mark Langsdorf
This patch series adds support for the Calxeda Highbank SoC. It depends on my previous patch series various ARM fixes for Calxeda Highbank and ahci: convert ahci_reset to use AHCIState. Some of the patches are carried voer from Various ARM fixes for Calxeda Highbank and were reviewed but not

[Qemu-devel] [PATCH v4 3/6] ahci: add support for non-PCI based controllers

2012-01-09 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Add support for ahci on sysbus. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v3 Renamed plat-ahci to sysbus-ahci Changes from v1, v2 Corrected indentation

[Qemu-devel] [PATCH 6/6] arm: Remove incorrect and misleading comment in arm_timer

2012-01-09 Thread Mark Langsdorf
Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- hw/arm_timer.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/hw/arm_timer.c b/hw/arm_timer.c index 60e1c63..15d493f 100644 --- a/hw/arm_timer.c +++ b/hw/arm_timer.c @@ -272,11 +272,8 @@ static int sp804_init

[Qemu-devel] [PATCH v2 5/6] arm: SoC model for Calxeda Highbank

2012-01-09 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Adds support for Calxeda's Highbank SoC. Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v1 Restructed the loading of sysram.bin and made it more clearly optional

[Qemu-devel] [PATCH 4/6] arm: Add dummy support for co-processor 15's secure config register

2012-01-09 Thread Mark Langsdorf
From: Rob Herring rob.herr...@calxeda.com Signed-off-by: Rob Herring rob.herr...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- target-arm/cpu.h |3 ++- target-arm/helper.c |9 + target-arm/machine.c |2 ++ 3 files changed, 13 insertions(+), 1

[Qemu-devel] [PATCH v5 1/6] Add xgmac ethernet model

2012-01-09 Thread Mark Langsdorf
...@calxeda.com Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v4 None Changes from v3 Added debug macro and cleaned up some debug code Refitted all lines to fit within 80 columns Changes from v2 None Changes from v1 Reformated most lines to fit

[Qemu-devel] [PATCH v6 2/6] arm: make the number of GIC interrupts configurable

2012-01-09 Thread Mark Langsdorf
appropriately. Set the maximum theoretically number of GIC interrupts to 1020 and update the save/restore code to only use the appropriate number for each SoC. Signed-off-by: Mark Langsdorf mark.langsd...@calxeda.com --- Changes from v5 Clarify the commit message Rename GIC_NIRQ

Re: [Qemu-devel] [PATCH 5/5] arm: SoC model for Calxeda Highbank

2012-01-06 Thread Mark Langsdorf
On 01/06/2012 10:29 AM, Peter Maydell wrote: On 5 January 2012 20:02, Mark Langsdorf mark.langsd...@calxeda.com wrote: From: Rob Herring rob.herr...@calxeda.com Adds support for Calxeda's Highbank SoC. Is there a test kernel image/etc we can use to confirm that this all works? The 3.2

Re: [Qemu-devel] [PATCH 5/5] arm: SoC model for Calxeda Highbank

2012-01-06 Thread Mark Langsdorf
On 01/06/2012 11:04 AM, Peter Maydell wrote: On 6 January 2012 16:58, Mark Langsdorf mark.langsd...@calxeda.com wrote: On 01/06/2012 10:29 AM, Peter Maydell wrote: +sysram = g_new(MemoryRegion, 1); +memory_region_init_ram(sysram, highbank.sysram, 0x8000

  1   2   >