Re: [PATCH v2] ARM: Tegra: dt: Set up an OF IRQ translation range

2011-04-29 Thread Grant Likely
On Fri, Apr 29, 2011 at 10:10:08PM -0600, Stephen Warren wrote: > Without this, none of the devicetree devices in tegra-harmony.dts can > map interrupts, and the system fails to boot. > > Signed-off-by: Stephen Warren Merged into arm/dt: full tegra devicetree support patch, thanks. g. > --- >

Re: [PATCH v5 8/8] dt: add documentation of ARM dt boot interface

2011-04-29 Thread Grant Likely
On Fri, Apr 29, 2011 at 08:37:24PM -0400, Nicolas Pitre wrote: > On Fri, 29 Apr 2011, Grant Likely wrote: > > > diff --git a/Documentation/devicetree/booting-without-of.txt > > b/Documentation/devicetree/booting-without-of.txt > > index 50619a0..31d7e8a 100644 > > --- a/Documentation/devicetree/b

Re: [PATCH v5 5/8] arm/dt: Drop irq_create_of_mapping() from arm code.

2011-04-29 Thread Grant Likely
On Fri, Apr 29, 2011 at 08:28:47PM -0400, Nicolas Pitre wrote: > On Fri, 29 Apr 2011, Grant Likely wrote: > > > It is now implemented by core code. > > > > Signed-off-by: Grant Likely > > --- > > arch/arm/kernel/devtree.c | 14 -- > > 1 files changed, 0 insertions(+), 14 deletions

SDHCI enumeration order, dynamic mmcblkN IDs, and devicetree

2011-04-29 Thread Stephen Warren
The SDHCI driver assigns dynamic device numbers (mmcblk0/1/...) to devices based on when they get probed, which IDs are free at that time, etc. Many boards have e.g. 1 fixed MMC soldered onto the board, and 1 SD slot. There may or may not be a card in the SD slot at probe time, which can then cause

[PATCH 1/2] ARM: Tegra: dt: Split out separate Tegra SoC DT

2011-04-29 Thread Stephen Warren
tegra250.dts describes everything within the Tegra SoC, but leaves all optional devices disabled. tegra-harmony.dts is now the configuration of the SoC for the board, i.e. it enables the optional devices that are required for the board, and provides any required platform data for those devics. Th

[PATCH 2/2] ARM: Tegra: Seaboard: Add devicetree support

2011-04-29 Thread Stephen Warren
Signed-off-by: Stephen Warren --- arch/arm/boot/dts/tegra-seaboard.dts | 33 + arch/arm/mach-tegra/Makefile.boot|1 + 2 files changed, 34 insertions(+), 0 deletions(-) create mode 100644 arch/arm/boot/dts/tegra-seaboard.dts diff --git a/arch/arm/boot/dt

[PATCH v2] ARM: Tegra: dt: Set up an OF IRQ translation range

2011-04-29 Thread Stephen Warren
Without this, none of the devicetree devices in tegra-harmony.dts can map interrupts, and the system fails to boot. Signed-off-by: Stephen Warren --- v2: Add a Tegra-specific compatible value, search by that value, minor formatting fixes. arch/arm/boot/dts/tegra-harmony.dts |3 +++ arch

Re: [PATCH v5 8/8] dt: add documentation of ARM dt boot interface

2011-04-29 Thread Nicolas Pitre
On Fri, 29 Apr 2011, Grant Likely wrote: > diff --git a/Documentation/devicetree/booting-without-of.txt > b/Documentation/devicetree/booting-without-of.txt > index 50619a0..31d7e8a 100644 > --- a/Documentation/devicetree/booting-without-of.txt > +++ b/Documentation/devicetree/booting-without-of.t

Re: [PATCH v5 5/8] arm/dt: Drop irq_create_of_mapping() from arm code.

2011-04-29 Thread Nicolas Pitre
On Fri, 29 Apr 2011, Grant Likely wrote: > It is now implemented by core code. > > Signed-off-by: Grant Likely > --- > arch/arm/kernel/devtree.c | 14 -- > 1 files changed, 0 insertions(+), 14 deletions(-) Maybe this should be folded in the patch that introduced this instead? N

Re: [PATCH] ARM: Tegra: dt: Set up an OF IRQ translation range

2011-04-29 Thread Grant Likely
On Fri, Apr 29, 2011 at 04:31:33PM -0600, Stephen Warren wrote: > Without this, none of the devicetree devices in tegra-harmony.dts can > map interrupts, and the system fails to boot. > > Signed-off-by: Stephen Warren > --- > Note: This patch is based on Grant's latest > git://git.secretlab.ca/gi

[PATCH] ARM: Tegra: dt: Set up an OF IRQ translation range

2011-04-29 Thread Stephen Warren
Without this, none of the devicetree devices in tegra-harmony.dts can map interrupts, and the system fails to boot. Signed-off-by: Stephen Warren --- Note: This patch is based on Grant's latest git://git.secretlab.ca/git/linux-2.6 devicetree/test plus all the Tegra fixes I recently posted to lina

Re: [PATCHv3] ARM:boot:device tree: Allow the device tree binary to be appended to zImage

2011-04-29 Thread Nicolas Pitre
On Fri, 29 Apr 2011, Russell King - ARM Linux wrote: > On Fri, Apr 29, 2011 at 09:16:39AM -0400, Nicolas Pitre wrote: > > On Fri, 29 Apr 2011, Tony Lindgren wrote: > > > > > If the compressed image is smaller than BSS, then we end up > > > having DT data in the BSS area. In this case the compress

Re: [PATCH 0/6] General device tree irq domain infrastructure

2011-04-29 Thread Grant Likely
On Fri, Apr 29, 2011 at 06:16:33PM +0200, Sebastian Andrzej Siewior wrote: > Grant Likely wrote: > >I'd really like to get patches 1-4 merged into 2.6.40. Please test. > >I'm also running through build testing here, and when it's complete > >I'll push it out to a 'devicetree/irq-domain' branch on

Re: [PATCH 2/2] powerpc: add support for MPIC message register API

2011-04-29 Thread Scott Wood
On Fri, 29 Apr 2011 17:27:06 + Kushwaha Prabhakar-B32579 wrote: > > > > > Hi, > > > > > > I have no comments about coding and architecture. It looks fine. > > > > > > Only have a query about its use case.. > > >"Any application intended to use message interrupt requires to know > > reg_

RE: [PATCH 2/2] powerpc: add support for MPIC message register API

2011-04-29 Thread Kushwaha Prabhakar-B32579
> > Hi, > > > > I have no comments about coding and architecture. It looks fine. > > > > Only have a query about its use case.. > >"Any application intended to use message interrupt requires to know > reg_num because of struct mpic_msgr* mpic_msgr_get(unsigned int reg_num) > API" > > > > It w

Re: [PATCH 2/2] powerpc: add support for MPIC message register API

2011-04-29 Thread Hollis Blanchard
On 04/28/2011 10:00 PM, Kushwaha Prabhakar-B32579 wrote: Hi, I have no comments about coding and architecture. It looks fine. Only have a query about its use case.. "Any application intended to use message interrupt requires to know reg_num because of struct mpic_msgr* mpic_msgr_get(unsigne

Re: [PATCH 0/6] General device tree irq domain infrastructure

2011-04-29 Thread Sebastian Andrzej Siewior
Grant Likely wrote: I'd really like to get patches 1-4 merged into 2.6.40. Please test. I'm also running through build testing here, and when it's complete I'll push it out to a 'devicetree/irq-domain' branch on git://git.secretlab.ca/git/linux-2.6 I pulled this, built and booted my x86-dt box

Re: [PATCH] libfdt: include version number in soname

2011-04-29 Thread Paolo Bonzini
On 04/29/2011 04:48 PM, Jon Loeliger wrote: > > Consider this the candidate for a 1.3.0 release! > > Don't forget to bump the version number.;) Yeah. You want that now for testing? Or just with the release? It should be done for a proper rc of course; anyway I did that myself for testing

Re: [PATCH] libfdt: include version number in soname

2011-04-29 Thread Jon Loeliger
> On 04/29/2011 03:48 PM, Jon Loeliger wrote: > > Applied with last-minute mod and pushed out. > > > > Consider this the candidate for a 1.3.0 release! > > Don't forget to bump the version number. ;) Yeah. You want that now for testing? Or just with the release? jdl ___

Re: [PATCHv3] ARM:boot:device tree: Allow the device tree binary to be appended to zImage

2011-04-29 Thread Russell King - ARM Linux
On Fri, Apr 29, 2011 at 09:16:39AM -0400, Nicolas Pitre wrote: > On Fri, 29 Apr 2011, Tony Lindgren wrote: > > > If the compressed image is smaller than BSS, then we end up > > having DT data in the BSS area. In this case the compressed > > image is about 2.3 MB for LZMA. > > > > The uncompress c

Re: [PATCH] libfdt: include version number in soname

2011-04-29 Thread Paolo Bonzini
On 04/29/2011 03:48 PM, Jon Loeliger wrote: Applied with last-minute mod and pushed out. Consider this the candidate for a 1.3.0 release! Don't forget to bump the version number. ;) Paolo ___ devicetree-discuss mailing list devicetree-discuss@lists.

Re: [PATCH] libfdt: include version number in soname

2011-04-29 Thread Jon Loeliger
> On Tue, Apr 26, 2011 at 01:16:27PM +0200, Paolo Bonzini wrote: > > On 04/26/2011 12:45 PM, David Gibson wrote: > > > > > > libfdt: include version number in soname > > > > > > From: Paolo Bonzini > > > > > > The libfdt shared library is only installed by its unversioned name. > > > Including i

Re: [PATCHv3] ARM:boot:device tree: Allow the device tree binary to be appended to zImage

2011-04-29 Thread Nicolas Pitre
On Fri, 29 Apr 2011, Tony Lindgren wrote: > * Grant Likely [110429 05:59]: > > On Fri, Apr 29, 2011 at 4:26 AM, Tony Lindgren wrote: > > > * Tony Lindgren [110427 07:41]: > > > > > > If the compressed image is smaller than BSS, then we end up > > > having DT data in the BSS area. In this case t

Re: [PATCHv3] ARM:boot:device tree: Allow the device tree binary to be appended to zImage

2011-04-29 Thread Nicolas Pitre
On Fri, 29 Apr 2011, Tony Lindgren wrote: > If the compressed image is smaller than BSS, then we end up > having DT data in the BSS area. In this case the compressed > image is about 2.3 MB for LZMA. > > The uncompress code does not know about the kernel BSS, > and does not necessarily relocate a

Re: [PATCHv3] ARM:boot:device tree: Allow the device tree binary to be appended to zImage

2011-04-29 Thread Tony Lindgren
* Grant Likely [110429 05:59]: > On Fri, Apr 29, 2011 at 4:26 AM, Tony Lindgren wrote: > > * Tony Lindgren [110427 07:41]: > > > > If the compressed image is smaller than BSS, then we end up > > having DT data in the BSS area. In this case the compressed > > image is about 2.3 MB for LZMA. > > >

Re: [PATCHv3] ARM:boot:device tree: Allow the device tree binary to be appended to zImage

2011-04-29 Thread Grant Likely
On Fri, Apr 29, 2011 at 7:02 AM, Grant Likely wrote: > On Fri, Apr 29, 2011 at 4:26 AM, Tony Lindgren wrote: >> We could do it based on estimated BSS size in uncompress code, >> or based on the real BSS size in __mmap_switched before BSS >> gets reset. > > How about telling the wrapper what the f

Re: [PATCHv3] ARM:boot:device tree: Allow the device tree binary to be appended to zImage

2011-04-29 Thread Grant Likely
On Fri, Apr 29, 2011 at 4:26 AM, Tony Lindgren wrote: > * Tony Lindgren [110427 07:41]: >> * Nicolas Pitre [110427 07:37]: >> > On Wed, 27 Apr 2011, Tony Lindgren wrote: >> > > >> > > I guess the issue is that when setup_machine_fdt gets called we only >> > > have minimal MMU mapping done. >> >

Re: [PATCHv3] ARM:boot:device tree: Allow the device tree binary to be appended to zImage

2011-04-29 Thread Tony Lindgren
* Tony Lindgren [110427 07:41]: > * Nicolas Pitre [110427 07:37]: > > On Wed, 27 Apr 2011, Tony Lindgren wrote: > > > > > > I guess the issue is that when setup_machine_fdt gets called we only > > > have minimal MMU mapping done. > > > > In head.S (the final kernel image one) there is a 1MB map

[PATCH] dt/irq: add of_irq_domain_add_simple() helper

2011-04-29 Thread Grant Likely
of_irq_domain_add_simple() is an easy way to generate an irq translation domain for simple irq controllers. It assumes a flat 1:1 mapping from hardware irq number to an offset of the first linux irq number assigned to the controller Signed-off-by: Grant Likely --- Following on from the irq_doma

[PATCH v5 8/8] dt: add documentation of ARM dt boot interface

2011-04-29 Thread Grant Likely
v5: clarified that dtb should be aligned on a 64 bit boundary in RAM. v3: added details to Documentation/arm/Booting Signed-off-by: Grant Likely --- Documentation/arm/Booting | 33 ++-- Documentation/devicetree/booting-without-of.txt | 48 +++

[PATCH v5 7/8] arm/dt: Basic tegra devicetree support

2011-04-29 Thread Grant Likely
This patch adds adds very basic support for booting tegra with a device tree. It simply allows the existing machine_descs to match against the tegra compatible values so that the kernel can boot. Kernel parameters and the initrd pointer is read out of the tree instead of atags. This is not comple

[PATCH v5 6/8] arm/dt: Basic versatile devicetree support

2011-04-29 Thread Grant Likely
This patch adds adds very basic support for booting versatile with a device tree. It simply allows the existing machine_descs to match against the versatile ab & pb compatible values so that the kernel can boot. Kernel parameters and the initrd pointer is read out of the tree instead of atags. T

[PATCH v5 5/8] arm/dt: Drop irq_create_of_mapping() from arm code.

2011-04-29 Thread Grant Likely
It is now implemented by core code. Signed-off-by: Grant Likely --- arch/arm/kernel/devtree.c | 14 -- 1 files changed, 0 insertions(+), 14 deletions(-) diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c index a701e42..1e0b613 100644 --- a/arch/arm/kernel/devtree.c

[PATCH v5 4/8] arm/dt: probe for platforms via the device tree

2011-04-29 Thread Grant Likely
If a dtb is passed to the kernel then the kernel needs to iterate through compiled-in mdescs looking for one that matches and move the dtb data to a safe location before it gets accidentally overwritten by the kernel. This patch creates a new function, setup_machine_fdt() which is analogous to the

[PATCH v5 3/8] arm/dt: consolidate atags setup into setup_machine_atags

2011-04-29 Thread Grant Likely
In preparation for adding device tree support, this patch consolidates all of the atag-specific setup into a single function. v5: - drop double printk("Machine; %s\n", ...); call. - leave copying boot_command_line in setup_arch() since it isn't atags specific. v4: - adapt to the removal

[PATCH v5 2/8] arm/dt: Allow CONFIG_OF on ARM

2011-04-29 Thread Grant Likely
Add some basic empty infrastructure for DT support on ARM. v5: - Fix off-by-one error in size calculation of initrd - Stop mucking with cmd_line, and load command line from dt into boot_command_line instead which matches the behaviour of ATAGS booting v3: - moved cmd_line export and init

[PATCH v5 1/8] arm/dt: Make __vet_atags also accept a dtb image

2011-04-29 Thread Grant Likely
The dtb is passed to the kernel via register r2, which is the same method that is used to pass an atags pointer. This patch modifies __vet_atags to not clear r2 when it encounters a dtb image. v2: fixed bugs pointed out by Nicolas Pitre Signed-off-by: Grant Likely --- arch/arm/kernel/head-comm

[PATCH v5 0/8] Basic ARM devicetree support

2011-04-29 Thread Grant Likely
Well, it's been a while since I've posted these, so it's probably about time to circulate them again. v5 rebases on top of 2.6.39-rc5 plus one patch to allow arch code to pass in a pointer to the command_line buffer, and the virq rework series that (finally!) implements devicetree irq mapping supp