one more question about dts

2010-07-20 Thread hacklu
my board is mpc8247,and i write it's dts by imitating mpc8272's dts how can i set the localbus address? local...@f0010100 { compatible = "fsl,mpc8272-localbus", "fsl,pq2-localbus"; #address-cells = <2>; #size-cells =

Re: [PATCH 92/92]Documentation/powerpc/booting-without-of.txt update web address.

2010-07-20 Thread Michael Neuling
> > The patch below fixes a broken web address. > > > > Signed-off-by: Justin P. Mattock > > > > --- > > Documentation/powerpc/booting-without-of.txt |2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/Documentation/powerpc/booting-without-of.txt b/Documentatio

Re: one more question about dts

2010-07-20 Thread Grant Likely
On Tue, Jul 20, 2010 at 8:37 PM, hacklu wrote: > my board is mpc8247,and i write it's dts by   imitating mpc8272's dts > > how can i set the localbus address? > > local...@f0010100 { > compatible = "fsl,mpc8272-localbus", >  "fsl,pq2-localbus"; >    

Re: [PATCH] math-emu: correct test for downshifting fraction in _FP_FROM_INT()

2010-07-20 Thread David Miller
From: Mikael Pettersson Date: Mon, 19 Jul 2010 23:58:42 +0200 > The kernel's math-emu code contains a macro _FP_FROM_INT() which is > used to convert an integer to a raw normalized floating-point value. > It does this basically in three steps: ... > The fix is simple: the exponent comparison use

[PATCH] DTS: Adding device tree source for the STx GP3 SSA MPC8555-based board.

2010-07-20 Thread Bradley Hughes
DTS: Adding device tree source for the STx GP3 SSA MPC8555-based board. --- arch/powerpc/boot/dts/stxssa.dts | 380 ++ 1 files changed, 380 insertions(+), 0 deletions(-) create mode 100644 arch/powerpc/boot/dts/stxssa.dts diff --git a/arch/powerpc/boot/dts/s

[PATCH v2 2/7] Fix case where phys_addr_t != unsigned long when reading proc entries

2010-07-20 Thread Matthew McClintock
On some actitectures the physical memory can be 64 bits, therefore the code that reads proc entries needs to take into account it could read either a 32 bit or 64bit value for the physical addresses. Signed-off-by: Matthew McClintock --- kexec/arch/ppc/kexec-elf-ppc.c |1 - kexec/arch/ppc/ke

[PATCH v2 1/7] Restore kexec uImage-ppc to working state

2010-07-20 Thread Matthew McClintock
Booting with uImage-ppc was broken by previous work, this patch should restore it to working order Signed-off-by: Matthew McClintock --- kexec/arch/ppc/kexec-ppc.c | 68 ++- kexec/arch/ppc/kexec-uImage-ppc.c |5 +-- purgatory/arch/ppc/purgatory-ppc.

[PATCH v2 5/7] Add support for ramdisk on ppc32 for uImage-ppc and Elf-ppc

2010-07-20 Thread Matthew McClintock
This fixes --reuseinitrd and --ramdisk option for ppc32 on uImage-ppc and Elf. It works for normal kexec as well as for kdump. When using --reuseinitrd you need to specifify retain_initrd on the command line. Also, if you are doing kdump you need to make sure your initrd lives in the crashdump reg

[PATCH v2 6/7] Add support for reworking flat device tree support

2010-07-20 Thread Matthew McClintock
Currently, the device tree is passed as is. You can optionally update the command line and specifically listed nodes but nothing is updated automatically. This patch updates the memreserve regions, memory node, initrd nodes and attempts to make the device tree look as it should. Some code is borro

[PATCH v2 7/7] Add documentation/howto for mpc85xx systems

2010-07-20 Thread Matthew McClintock
Signed-off-by: Matthew McClintock --- doc/mpc85xx.txt | 190 +++ 1 files changed, 190 insertions(+), 0 deletions(-) create mode 100644 doc/mpc85xx.txt diff --git a/doc/mpc85xx.txt b/doc/mpc85xx.txt new file mode 100644 index 000..af96841

[PATCH v2 3/7] Update uImage to support crash kernel and misc fixes

2010-07-20 Thread Matthew McClintock
Use current command line if none given, specifically useful for when arguments are added causing the use of the current cmdline to not occur. We also try to load the dtb above the kernel, this is useful for relocatable kernels where they device tree needs to reside just above the kernel base addre

[PATCH v2 4/7] Update Elf-ppc to support crash kernel and misc fixes

2010-07-20 Thread Matthew McClintock
Use current command line if none given, specifically useful for when arguments are added causing the use of the current cmdline to not occur We also try to load the dtb above the kernel, this is useful for relocatable kernels where they device tree needs to reside just above the kernel base addres

RT Kernel crash in SMP mode on Marvell board

2010-07-20 Thread Manikandan Ramachandran
Hello All, I'm trying to bring up a Marvell board [db644xx] with dual CPU[7447A] with kernel 2.6.33.5-rt23[Ingo's RT patch]. For conveniance I have registered IPI interrupt with IRQF_NODELAY flag, all other interrupts are threaded. I'm able to boot up the system fine, however after few hours I

Re: [PATCH 8/8] v3 Update memory-hotplug documentation

2010-07-20 Thread Dave Hansen
On Mon, 2010-07-19 at 22:59 -0500, Nathan Fontenot wrote: > > > -Now, XXX is defined as start_address_of_section / section_size. > +Now, XXX is defined as (start_address_of_section / section_size) of > the first > +section conatined in the memory block. > > For example, assume 1GiB section size

Re: [PATCH 4/8] v3 Allow memory_block to span multiple memory sections

2010-07-20 Thread Dave Hansen
On Mon, 2010-07-19 at 22:55 -0500, Nathan Fontenot wrote: > +static u32 get_memory_block_size(void) > +{ > + u32 block_sz; > + > + block_sz = memory_block_size_bytes(); > + > + /* Validate blk_sz is a power of 2 and not less than section size */ > + if ((block_sz & (block_sz

Re: [PATCH 4/8] v3 Allow memory_block to span multiple memory sections

2010-07-20 Thread Dave Hansen
On Mon, 2010-07-19 at 22:55 -0500, Nathan Fontenot wrote: > +static int add_memory_section(int nid, struct mem_section *section, > + unsigned long state, enum mem_add_context context) > +{ > + struct memory_block *mem; > + int ret = 0; > + > + mem = find_memo

Re: [PATCH 2/8] v3 Add new phys_index properties

2010-07-20 Thread Dave Hansen
On Tue, 2010-07-20 at 08:24 -0500, Nathan Fontenot wrote: > Update the 'phys_index' properties of a memory block to include a > 'start_phys_index' which is the same as the current 'phys_index' property. > This also adds an 'end_phys_index' property to indicate the id of the > last section in th mem

Re: [lm-sensors] [PATCH] hwmon: (tmp421) Add nfactor support (2nd attempt)

2010-07-20 Thread Andre Prendel
On Thu, May 20, 2010 at 09:35:56PM +0200, Andre Prendel wrote: > On Thu, May 20, 2010 at 03:07:05PM -0400, Jeff Angielski wrote: > > In any event, here it is again: > > Acked-by: Andre Prendel Hi Jeff, I'de suggest to resend the patch with my acked-by to the lm-sensors list and Andrew Morton. I

Re: [PATCH] math-emu: correct test for downshifting fraction in _FP_FROM_INT()

2010-07-20 Thread Mikael Pettersson
Mikael Pettersson writes: > The kernel's math-emu code contains a macro _FP_FROM_INT() which is > used to convert an integer to a raw normalized floating-point value. > It does this basically in three steps: > > 1. Compute the exponent from the number of leading zero bits. > 2. Downshift lar

Re: [PATCH 4/8] v3 Allow memory_block to span multiple memory sections

2010-07-20 Thread Nathan Fontenot
Update the memory sysfs code that each sysfs memory directory is now considered a memory block that can contain multiple memory sections per memory block. The default size of each memory block is SECTION_SIZE_BITS to maintain the current behavior of having a single memory section per memory block

Re: [PATCH 3/8] v3 Add section count to memory_block

2010-07-20 Thread Nathan Fontenot
Add a section count property to the memory_block struct to track the number of memory sections that have been added/removed from a memory block. Updated to use atomic_dec_and_test(). Signed-off-by: Nathan Fontenot --- drivers/base/memory.c | 18 +++--- include/linux/memory.h |

Re: [PATCH 2/8] v3 Add new phys_index properties

2010-07-20 Thread Nathan Fontenot
Update the 'phys_index' properties of a memory block to include a 'start_phys_index' which is the same as the current 'phys_index' property. This also adds an 'end_phys_index' property to indicate the id of the last section in th memory block. Patch updated to keep the name of the phys_index prope

Re: Badness with the kernel version 2.6.35-rc1-git1 running on P6 box

2010-07-20 Thread divya
On Friday 16 July 2010 03:26 PM, Eric Dumazet wrote: Le vendredi 16 juillet 2010 à 14:20 +0530, divya a écrit : Hi , With the latest kernel version 2.6.35-rc5-git1(2f7989efd4398) running on power(p6) box came across the following call trace Call Trace: [c6a0e800] [c0011c30

Re: [PPC64/Power7 - 2.6.35-rc5] Bad relocation warnings whileBuilding a CONFIG_RELOCATABLE kernel with CONFIG_ISERIES enabled

2010-07-20 Thread Alexander Graf
On 20.07.2010, at 09:27, Milton Miller wrote: > On Mon, 19 Jul 2010 about 14:00:56 +0200, Alexander Graf wrote: >> Milton Miller wrote: >>> I wrote: >>> >>> Oh yea, and for book-3s, the code copies from 0x100 to __end_interrupts >>> in arch/powerpc/kernel/exceptions-64s.h down to the real 0, but

Re: [PATCH] math-emu: correct test for downshifting fraction in _FP_FROM_INT()

2010-07-20 Thread Martin Schwidefsky
On Tue, 20 Jul 2010 00:12:02 +0200 Mikael Pettersson wrote: > Unfortunately it seems difficult to write a generic module > which uses math-emu: > - includes , > but only a handful of archs have it > - isn't always self-contained and may depend > on various $arch-specific declarations being

Re: [PPC64/Power7 - 2.6.35-rc5] Bad relocation warnings whileBuilding a CONFIG_RELOCATABLE kernel with CONFIG_ISERIES enabled

2010-07-20 Thread Milton Miller
On Mon, 19 Jul 2010 about 14:00:56 +0200, Alexander Graf wrote: >Milton Miller wrote: >> I wrote: >> >>> On Mon Jul 19 2010 at about 03:36:51 EST, Alexander Graf wrote: >>> On 19.07.2010, at 03:11, Benjamin Herrenschmidt wrote: > On Thu, 2010-07-15 at 17:05 +0530,

Re: [PATCH 6/8] v3 Update the node sysfs code

2010-07-20 Thread KAMEZAWA Hiroyuki
On Mon, 19 Jul 2010 22:57:35 -0500 Nathan Fontenot wrote: > Update the node sysfs code to be aware of the new capability for a memory > block to contain multiple memory sections. This requires an additional > parameter to unregister_mem_sect_under_nodes so that we know which memory > section of

Re: [PATCH 5/8] v3 Update the find_memory_block declaration

2010-07-20 Thread KAMEZAWA Hiroyuki
On Mon, 19 Jul 2010 22:56:16 -0500 Nathan Fontenot wrote: > Update the find_memory_block declaration to to take a struct mem_section * > so that it matches the definition. > > Signed-off-by: Nathan Fontenot Reviewd-by: KAMEZAWA Hiroyuki ___ Linuxppc

Re: [PATCH 4/8] v3 Allow memory_block to span multiple memory sections

2010-07-20 Thread KAMEZAWA Hiroyuki
On Mon, 19 Jul 2010 22:55:08 -0500 Nathan Fontenot wrote: > Update the memory sysfs code that each sysfs memory directory is now > considered a memory block that can contain multiple memory sections per > memory block. The default size of each memory block is SECTION_SIZE_BITS > to maintain the

Re: [PATCH 3/8] v3 Add section count to memory_block

2010-07-20 Thread KAMEZAWA Hiroyuki
On Mon, 19 Jul 2010 22:53:58 -0500 Nathan Fontenot wrote: > Add a section count property to the memory_block struct to track the number > of memory sections that have been added/removed from a emory block. > > Signed-off-by: Nathan Fontenot > --- > drivers/base/memory.c | 19 ---

Re: [PATCH 2/8] v3 Add new phys_index properties

2010-07-20 Thread KAMEZAWA Hiroyuki
On Mon, 19 Jul 2010 22:52:50 -0500 Nathan Fontenot wrote: > Update the 'phys_index' properties of a memory block to include a > 'start_phys_index' which is the same as the current 'phys_index' property. > This also adds an 'end_phys_index' property to indicate the id of the > last section in th m

Re: [PATCH 1/8] v3 Move the find_memory_block() routine up

2010-07-20 Thread KAMEZAWA Hiroyuki
On Mon, 19 Jul 2010 22:51:42 -0500 Nathan Fontenot wrote: > Move the find_me mory_block() routine up to avoid needing a forward > declaration in subsequent patches. > > Signed-off-by: Nathan Fontenot Acked-by: KAMEZAWA Hiroyuki > --- > drivers/base/memory.c | 62 > +++