Re: [PATCH 2/11] celleb: move the base part for celleb support

2008-03-06 Thread Ishizaki Kou
Arnd Bergmann <[EMAIL PROTECTED]> wrote: > On Wednesday 05 March 2008, Ishizaki Kou wrote: > > This patch moves the base code for celleb support into platforms/cell/. > > All files in this patch are used by celleb-beat and celleb-native commonly. > > Moving around the files this way is good, but >

Re: [PATCH 2/2] Add local bus device nodes to MPC837xMDS device trees.

2008-03-06 Thread Segher Boessenkool
> This isn't a problem with this device tree, but it's probably time we > started establishing some conventional generic names for nand flash > and board-control devices. > > So, to start the ball rolling, I've seen several names for nand flash > nodes, I'd suggest we standardise on "nand-flash".

Re: [PATCH 1/5] generic __remove_pages() support

2008-03-06 Thread Yasunori Goto
Hi Badari-san. > On Thu, 2008-03-06 at 12:54 -0800, Dave Hansen wrote: > > On Thu, 2008-03-06 at 10:55 -0800, Badari Pulavarty wrote: > > > + if (memmap) > > > + __kfree_section_memmap(memmap, PAGES_PER_SECTION); > > > + return; > > > + } > >

Re: [PATCH 3/4] Emerson KSI8560 device tree

2008-03-06 Thread Olof Johansson
On Fri, Mar 07, 2008 at 11:29:59AM +1100, David Gibson wrote: > On Thu, Mar 06, 2008 at 06:14:51PM +0300, Alexandr Smirnov wrote: > > Add device tree file for Emerson KSI8560 board. > > > > Signed-off-by: Alexandr Smirnov <[EMAIL PROTECTED]> > > [snip] > > + [EMAIL PROTECTED] { > > +

CFI_DEF_CFA instruction

2008-03-06 Thread Bai Shuwei
hi, all, from the web i find the definition is: .cfi_def_cfa defines a rule for computing CFA as: take adress from register and add offeset to it. There is a concept CFA i can't understand, what means of the CFA, and this address point to where? Best Regards! Bai Shuwei -- Add: Tians

Re: [PATCH] pasemi_dma: Driver for PA Semi PWRficient on-chip DMA engine

2008-03-06 Thread Olof Johansson
On Fri, Mar 07, 2008 at 11:31:50AM +1100, Stephen Rothwell wrote: > Hi Olof, > > Just one thing I noticed ... > > On Thu, 6 Mar 2008 17:39:00 -0600 Olof Johansson <[EMAIL PROTECTED]> wrote: > > > > + dma_dev->device_dependency_added = pasemi_dma_dependency_added; > > device_dependency_added is

Re: [PATCH] The MPC83xx family doesn't support performance monitor instructions

2008-03-06 Thread Jerry Van Baren
Kumar Gala wrote: > On Mar 5, 2008, at 6:33 PM, Gerald Van Baren wrote: > >> "Errata to MPC8349EA PowerQUICC[tm] II Pro Integrated Host Processor >> Family >> Reference Manual, Rev. 1" (Freescale) >> >> Signed-off-by: Gerald Van Baren <[EMAIL PROTECTED]> >> --- >> >> Hi Kumar, >> >> Please apply

Re: [PATCH] pasemi_dma: Driver for PA Semi PWRficient on-chip DMA engine

2008-03-06 Thread Stephen Rothwell
Hi Olof, Just one thing I noticed ... On Thu, 6 Mar 2008 17:39:00 -0600 Olof Johansson <[EMAIL PROTECTED]> wrote: > > + dma_dev->device_dependency_added = pasemi_dma_dependency_added; device_dependency_added is going away in 2.6.26 ... -- Cheers, Stephen Rothwell[EMAIL

Re: [PATCH 3/4] Emerson KSI8560 device tree

2008-03-06 Thread David Gibson
On Thu, Mar 06, 2008 at 06:14:51PM +0300, Alexandr Smirnov wrote: > Add device tree file for Emerson KSI8560 board. > > Signed-off-by: Alexandr Smirnov <[EMAIL PROTECTED]> [snip] > + [EMAIL PROTECTED] { > + #address-cells = <1>; > + #size-cells = <1>; > + d

Re: [PATCH 2/2] Add local bus device nodes to MPC837xMDS device trees.

2008-03-06 Thread David Gibson
[snip] > + [EMAIL PROTECTED],0 { > + reg = <1 0x0 0x8000>; > + compatible = "fsl,mpc837xmds-bcsr"; > + }; > + > + [EMAIL PROTECTED],0 { This isn't a problem with this device tree, but it's probably time we started establis

Re: ARCH=ppc -> ARCH=powerpc : help needed for dts file

2008-03-06 Thread Benjamin Herrenschmidt
On Fri, 2008-03-07 at 01:10 +0100, Philippe De Muyter wrote: > > But I already noticed that the interrupt numbers that the arch/powerpc tree > uses for the parts that do already work (compact-flash and serials) are > different from the ones I saw on the running arch/ppc tree. e.g., > the serial

Re: ARCH=ppc -> ARCH=powerpc : help needed for dts file

2008-03-06 Thread Philippe De Muyter
Hi Ben, On Thu, Mar 06, 2008 at 10:46:51AM +1100, Benjamin Herrenschmidt wrote: > > > >>From your .dts, I see you've been doing some swizzling of slots using > > > interrupts 1...4 ... do that correspond to EXTIRQ 58 ? > > > > No, those correspond to the EXT1-4 that are the other side of the

Re: [PATCH 1/5] generic __remove_pages() support

2008-03-06 Thread Badari Pulavarty
Here is the latest version, addressing Randy and Dave's comments. Thanks, Badari Generic helper function to remove section mappings and sysfs entries for the section of the memory we are removing. offline_pages() correctly adjusted zone and marked the pages reserved. Issue: If mem_map, usemap

[PATCH] pasemi_dma: Driver for PA Semi PWRficient on-chip DMA engine

2008-03-06 Thread Olof Johansson
pasemi_dma: Driver for PA Semi PWRficient on-chip DMA engine First cut at a dma copy offload driver for PA Semi PWRficient. It uses the platform-specific functions to allocate channels, etc. Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> --- This has some dependencies on other patches c

Re: Please pull pasemi.git for-2.6.26 branch

2008-03-06 Thread Olof Johansson
On Fri, Mar 07, 2008 at 09:15:38AM +1100, Paul Mackerras wrote: > Olof Johansson writes: > > > Please pull from 'for-2.6.26' branch of > > > > master.kernel.org:/pub/scm/linux/kernel/git/olof/pasemi.git for-2.6.26 > > > > to receive the following updates. They have all been posted to the list

Re: Please pull pasemi.git for-2.6.26 branch

2008-03-06 Thread Paul Mackerras
Olof Johansson writes: > Please pull from 'for-2.6.26' branch of > > master.kernel.org:/pub/scm/linux/kernel/git/olof/pasemi.git for-2.6.26 > > to receive the following updates. They have all been posted to the list > previously, and had only minor updates to remove a couple of compiler > warn

Re: [PATCH 1/5] generic __remove_pages() support

2008-03-06 Thread Badari Pulavarty
On Thu, 2008-03-06 at 12:54 -0800, Dave Hansen wrote: > On Thu, 2008-03-06 at 10:55 -0800, Badari Pulavarty wrote: > > + if (memmap) > > + __kfree_section_memmap(memmap, PAGES_PER_SECTION); > > + return; > > + } > > + > > + /* > > +

Please pull pasemi.git for-2.6.26 branch

2008-03-06 Thread Olof Johansson
Hi Paul, Please pull from 'for-2.6.26' branch of master.kernel.org:/pub/scm/linux/kernel/git/olof/pasemi.git for-2.6.26 to receive the following updates. They have all been posted to the list previously, and had only minor updates to remove a couple of compiler warnings: arch/powerpc/platfor

Re: [PATCH 1/5] generic __remove_pages() support

2008-03-06 Thread Dave Hansen
On Thu, 2008-03-06 at 10:55 -0800, Badari Pulavarty wrote: > + if (memmap) > + __kfree_section_memmap(memmap, PAGES_PER_SECTION); > + return; > + } > + > + /* > +* Allocations came from bootmem - how do I free up ? > +*/

Re: [PATCH 1/5] generic __remove_pages() support

2008-03-06 Thread Randy Dunlap
On Thu, 06 Mar 2008 10:55:34 -0800 Badari Pulavarty wrote: > Generic helper function to remove section mappings and sysfs entries > for the section of the memory we are removing. offline_pages() correctly > adjusted zone and marked the pages reserved. Such generic (exported, non-static) interfa

Re: [PATCH 1/2] firewire: endianess fix

2008-03-06 Thread Gabriel Paubert
On Thu, Mar 06, 2008 at 12:26:00AM +0100, Stefan Richter wrote: > Gabriel Paubert wrote: > >>>I have a Pismo which I use on a virtually > >>>daily basis (and about to remove the last remnants of MacOS on it). > >>>However I have disabled Firewire because it would not sleep and wake > >>>up proper

Re: [PATCH 1/5] generic __remove_pages() support

2008-03-06 Thread Badari Pulavarty
On Thu, 2008-03-06 at 11:08 -0800, Randy Dunlap wrote: > On Thu, 06 Mar 2008 10:55:34 -0800 Badari Pulavarty wrote: > > > Generic helper function to remove section mappings and sysfs entries > > for the section of the memory we are removing. offline_pages() correctly > > adjusted zone and marked

[PATCH 5/5] [PPC] provide walk_memory_resource() for ppc

2008-03-06 Thread Badari Pulavarty
Provide walk_memory_resource() for ppc64. PPC maintains logic memory region mapping in lmb.memory structures. Walk through these structures and do the callbacks for the contiguous chunks. Signed-off-by: Badari Pulavarty <[EMAIL PROTECTED]> --- arch/powerpc/mm/mem.c | 30 +++

[PATCH 4/5] [PPC] update lmb for hotplug memory add/remove

2008-03-06 Thread Badari Pulavarty
ppc kernel maintains information about logical memory blocks in lmb.memory structure at the boot time. Its not updated for hotplug memory add/remove. hotplug memory notifier for memory add/remove now updates lmb.memory. This information is useful for eHEA driver to find out the memory layout and

[PATCH 3/5] [PPC] hotplug memory notifications for ppc

2008-03-06 Thread Badari Pulavarty
Hotplug memory notifier for ppc64. This gets invoked by writing the device-node that needs to be removed to /proc/ppc64/ofdt. We need to adjust the sections and remove sysfs entries by calling __remove_pages(). Then call arch specific code to get rid of htab mappings for the section of memory. Sig

[PATCH 2/5] [PPC] htab_remove_mapping() error handling

2008-03-06 Thread Badari Pulavarty
If the sub-arch doesn't support hpte_removebolted(), gracefully return failure rather than success. Signed-off-by: Badari Pulavarty <[EMAIL PROTECTED]> --- arch/powerpc/mm/hash_utils_64.c | 14 +- include/asm-powerpc/sparsemem.h |2 +- 2 files changed, 10 insertions(+), 6 deleti

[PATCH 1/5] generic __remove_pages() support

2008-03-06 Thread Badari Pulavarty
Generic helper function to remove section mappings and sysfs entries for the section of the memory we are removing. offline_pages() correctly adjusted zone and marked the pages reserved. Issue: If mem_map, usemap allocation could come from different places - kmalloc, vmalloc, alloc_pages or boot

[PATCH 0/5] 2.6.25-rc3-mm1 hotplug memory remove updates

2008-03-06 Thread Badari Pulavarty
Hi Andrew & Paul, Here are the updates for hotplug memory remove. Most changes are PPC specific, but I would like these to be included in next -mm for easy testing and review, before including in Paul's tree. eHEA driver folks are verifying if the exported interface walk_memory_resource() is goo

Re: [patch 4/6] ARM: move bridge enable out of pcibios_enable_resources()

2008-03-06 Thread Russell King - ARM Linux
On Wed, Feb 27, 2008 at 05:04:41PM -0700, Bjorn Helgaas wrote: > Move bridge enable from pcibios_enable_resources() to > platform_pci_enable_device() so the former matches other > architectures and can be shared. > > Signed-off-by: Bjorn Helgaas <[EMAIL PROTECTED]> > > Index: work6/arch/arm/kerne

Re: [POWERPC] 8xx: fix swap

2008-03-06 Thread Scott Wood
On Thu, Mar 06, 2008 at 09:56:58AM -0600, Kumar Gala wrote: > On Mar 6, 2008, at 4:53 AM, Vitaly Bordug wrote: > > arch/powerpc/kernel/head_8xx.S | 30 ++ > > +++- > > include/asm-powerpc/pgtable-ppc32.h |8 > > 2 files changed, 29 insertions(+), 9 deletio

Re: [POWERPC] 8xx: fix swap

2008-03-06 Thread Segher Boessenkool
> do we need similar fixes to arch/ppc ? Do we care? arch/ppc needs many fixes, when you have implemented all of that, you get a clone of arch/powerpc ;-) Segher ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinf

Re: [POWERPC] 8xx: fix swap

2008-03-06 Thread Vitaly Bordug
On Thu, 6 Mar 2008 09:56:58 -0600 Kumar Gala wrote: > > On Mar 6, 2008, at 4:53 AM, Vitaly Bordug wrote: > > > This makes swap routines operate correctly on the ppc_8xx based > > machines. > > Code has been revalidated on mpc885ads (8M sdram) with recent > > kernel. Based > > on patch from Y

Re: [POWERPC] 8xx: fix swap

2008-03-06 Thread Kumar Gala
On Mar 6, 2008, at 4:53 AM, Vitaly Bordug wrote: > This makes swap routines operate correctly on the ppc_8xx based > machines. > Code has been revalidated on mpc885ads (8M sdram) with recent > kernel. Based > on patch from Yuri Tikhonov <[EMAIL PROTECTED]> to do the same on arch/ > ppc > ins

Re: [PATCH] PPC: in celleb_show_cpuinfo() convert strncpy(x, y, sizeof(x)) to strlcpy

2008-03-06 Thread Segher Boessenkool
> This patch was not yet tested. Please confirm it's right. > --- > strncpy does not append '\0' if the length of the source string equals > the size parameter, strlcpy does. strlcpy() doesn't fill the rest of the array with zeroes, strncpy() does. This could matter (information leak, for example

Re: [patch 4/6] ARM: move bridge enable out of pcibios_enable_resources()

2008-03-06 Thread Bjorn Helgaas
On Thursday 06 March 2008 08:06:40 am Russell King - ARM Linux wrote: > On Wed, Feb 27, 2008 at 05:04:41PM -0700, Bjorn Helgaas wrote: > > Move bridge enable from pcibios_enable_resources() to > > platform_pci_enable_device() so the former matches other > > architectures and can be shared. > > > >

[PATCH 1/4] Emerson KSI8560 base support

2008-03-06 Thread Alexandr Smirnov
The KSI8560 is a single compact, mid-, or full-size Advanced Mezzanine Card (AdvancedMC™) based on the Freescale™ Semiconductor MPC8560 PowerQUICC III™ microprocessor. This product will serve in data and signaling applications such as signaling gateways (SGW) and softswitch signaling interface card

[PATCH 3/4] Emerson KSI8560 device tree

2008-03-06 Thread Alexandr Smirnov
Add device tree file for Emerson KSI8560 board. Signed-off-by: Alexandr Smirnov <[EMAIL PROTECTED]> b/arch/powerpc/boot/dts/ksi8560.dts | 264 1 file changed, 264 insertions(+) diff --git a/arch/powerpc/boot/dts/ksi8560.dts b/arch/powerpc/boot/dts/ksi8560

[PATCH] PowerPC 4xx: Use dcri_clrset() for PCIe indirect dcr read/modify/write access

2008-03-06 Thread Valentine Barshak
Use dcri_clrset() for PCIe SDR0 read/modify/write access. Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/ppc4xx_pci.c | 13 + 1 files changed, 5 insertions(+), 8 deletions(-) diff -pruN linux-2.6.orig/arch/powerpc/sysdev/ppc4xx_pci.c linux-2.6/arch/po

Realtime ethernet

2008-03-06 Thread Mehlan, Markus (Ritter Elektronik)
Hello, who knows a solution for realtime ethernet with an actual kernel (> 2.6.23)? Best regards, Markus ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [PATCH] PowerPC 4xx: Use dcri_clrset() for PCIe indirect dcr read/modify/write access

2008-03-06 Thread Valentine Barshak
Oops, sorry, please discard this one. There's a typo in it. The fixed patch is coming right away. Thanks. Valentine. Valentine Barshak wrote: > Use dcri_clrset() for PCIe SDR0 read/modify/write access. > > Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> > --- > arch/powerpc/sysdev/ppc4xx_pc

Re: [PATCH] The MPC83xx family doesn't support performance monitor instructions

2008-03-06 Thread Kumar Gala
On Mar 5, 2008, at 6:33 PM, Gerald Van Baren wrote: > "Errata to MPC8349EA PowerQUICC[tm] II Pro Integrated Host Processor > Family > Reference Manual, Rev. 1" (Freescale) > > Signed-off-by: Gerald Van Baren <[EMAIL PROTECTED]> > --- > > Hi Kumar, > > Please apply this fix to 2.6.25rc4 if possi

[PATCH] PowerPC 4xx: Use dcri_clrset() for PCIe indirect dcr read/modify/write access

2008-03-06 Thread Valentine Barshak
Use dcri_clrset() for PCIe SDR0 read/modify/write access. Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/ppc4xx_pci.c | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff -pruN linux-2.6.orig/arch/powerpc/sysdev/ppc4xx_pci.c linux-2.6/arch/powe

[PATCH 2/2] ibm_newemac: PowerPC 440EP/440GR EMAC PHY clock workaround

2008-03-06 Thread Valentine Barshak
This patch adds ibm_newemac PHY clock workaround for 440EP/440GR EMAC attached to a PHY which doesn't generate RX clock if there is no link. The code is based on the previous ibm_emac driver stuff. The 440EP/440GR allows controlling each EMAC clock separately as opposed to global clock selection fo

[PATCH 1/2] ibm_newemac: PowerPC 440GX EMAC PHY clock workaround

2008-03-06 Thread Valentine Barshak
The PowerPC 440GX Taishan board fails to reset EMAC3 (reset timeout error) if there's no link. Because of that it fails to find PHY chip. The older ibm_emac driver had a workaround for that: the EMAC_CLK_INTERNAL/EMAC_CLK_EXTERNAL macros, which toggle the Ethernet Clock Select bit in the SDR0_MFR

Re: [PATCH] PPC: in celleb_show_cpuinfo() convert strncpy(x, y, sizeof(x)) to strlcpy

2008-03-06 Thread Roel Kluin
Roel Kluin wrote: > This patch was not yet tested. Please confirm it's right. was too quick with the send button. the batch below is probably better --- strncpy does not append '\0' if the length of the source string equals the size parameter, strlcpy does. Signed-off-by: Roel Kluin <[EMAIL PROTE

[PATCH] PPC: in celleb_show_cpuinfo() convert strncpy(x, y, sizeof(x)) to strlcpy

2008-03-06 Thread Roel Kluin
This patch was not yet tested. Please confirm it's right. --- strncpy does not append '\0' if the length of the source string equals the size parameter, strlcpy does. Signed-off-by: Roel Kluin <[EMAIL PROTECTED]> --- diff --git a/arch/powerpc/platforms/celleb/setup.c b/arch/powerpc/platforms/cell

Re: [PATCH] PowerPC 4xx: Add dcri_clrset() for locked read/modify/write functionality

2008-03-06 Thread Benjamin Herrenschmidt
On Thu, 2008-03-06 at 14:31 +0300, Valentine Barshak wrote: > Josh Boyer wrote: > > On Thu, 06 Mar 2008 11:06:18 +1100 > > Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > >> On Wed, 2008-03-05 at 21:38 +0300, Valentine Barshak wrote: > >>> This adds dcri_clrset() macro which does read/mod

[POWERPC] 8xx: fix swap

2008-03-06 Thread Vitaly Bordug
This makes swap routines operate correctly on the ppc_8xx based machines. Code has been revalidated on mpc885ads (8M sdram) with recent kernel. Based on patch from Yuri Tikhonov <[EMAIL PROTECTED]> to do the same on arch/ppc instance. Recent kernel's size makes swap feature very important on low-m

[PATCH 1/2] fix wrong USB phy type in mpc837xmds dts

2008-03-06 Thread Li Yang
Due to chip constraint MPC837x USB DR module can only use ULPI and serial PHY interfaces. The patch fixes the wrong type in dts. Signed-off-by: Li Yang <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8377_mds.dts |4 ++-- arch/powerpc/boot/dts/mpc8378_mds.dts |4 ++-- arch/powerpc/boot/

Re: [PATCH] PowerPC 4xx: Add dcri_clrset() for locked read/modify/write functionality

2008-03-06 Thread Valentine Barshak
Josh Boyer wrote: > On Thu, 06 Mar 2008 11:06:18 +1100 > Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > >> On Wed, 2008-03-05 at 21:38 +0300, Valentine Barshak wrote: >>> This adds dcri_clrset() macro which does read/modify/write >>> on indirect dcr registers while holding indirect dcr lock.

[PATCH 2/2] Add local bus device nodes to MPC837xMDS device trees.

2008-03-06 Thread Li Yang
Signed-off-by: Li Yang <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/mpc8377_mds.dts | 66 + arch/powerpc/boot/dts/mpc8378_mds.dts | 66 + arch/powerpc/boot/dts/mpc8379_mds.dts | 66 + arch/powerp