[PATCH] katmai.dts: extend DMA ranges; add dma/sysace nodes

2008-11-13 Thread Yuri Tikhonov
Hello, This patch extends DMA ranges for PCI(X) to 4GB, so that it could work on Katmais with 4GB RAM installed. Add new nodes for the PPC440SPe DMA, XOR engines to be used in the PPC440SPe ADMA driver, and the SysACE controller, which connects Compact Flash to Katmai. Signed-off-by: Ilya Yanok

Re: [PATCH] katmai.dts: extend DMA ranges; add dma/sysace nodes

2008-11-13 Thread Benjamin Herrenschmidt
On Thu, 2008-11-13 at 11:49 +0300, Yuri Tikhonov wrote: Hello, This patch extends DMA ranges for PCI(X) to 4GB, so that it could work on Katmais with 4GB RAM installed. And where do you put MMIO ? The 32 bit part of the PCI space need to be split between MMIO and DMA. Ideally, for 64-bit

Re: [PATCH 4/4] Use of_find_node_with_property() in pmac_setup_arch()

2008-11-13 Thread Benjamin Herrenschmidt
On Thu, 2008-11-13 at 15:20 +1100, Michael Ellerman wrote: Signed-off-by: Michael Ellerman [EMAIL PROTECTED] Acked-by: Benjamin Herrenschmidt [EMAIL PROTECTED] --- --- arch/powerpc/platforms/powermac/setup.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git

Re: [PATCH] katmai.dts: extend DMA ranges; add dma/sysace nodes

2008-11-13 Thread Josh Boyer
On Thu, 13 Nov 2008 11:49:14 +0300 Yuri Tikhonov [EMAIL PROTECTED] wrote: Hello, This patch extends DMA ranges for PCI(X) to 4GB, so that it could work on Katmais with 4GB RAM installed. Add new nodes for the PPC440SPe DMA, XOR engines to be used in the PPC440SPe ADMA driver, and the

[PATCH v2] usb/fsl_qe_udc: Report disconnect before unbinding

2008-11-13 Thread Anton Vorontsov
Gadgets disable endpoints in their disconnect callbacks, so we must call disconnect before unbinding. This also fixes muram memory leak, since we free muram in the qe_ep_disable(). But mainly the patch fixes following badness: [EMAIL PROTECTED]:~# insmod fsl_qe_udc.ko fsl_qe_udc: Freescale

[PATCH v2] usb/fsl_usb2_udc: Report disconnect before unbinding

2008-11-13 Thread Anton Vorontsov
Gadgets disable endpoints in their disconnect callbacks, so we must call disconnect before unbinding. The patch fixes following badness: [EMAIL PROTECTED]:~# insmod fsl_usb2_udc.ko Freescale High-Speed USB SOC Device Controller driver (Apr 20, 2007) [EMAIL PROTECTED]:~# insmod g_ether.ko g_ether

[PATCH 1/2] powerpc/85xx: Don't reset the MPIC for CAMP mode on MPC8572DS

2008-11-13 Thread Kumar Gala
From: Haiying Wang [EMAIL PROTECTED] The flag MPIC_WANTS_RESET shouldn't be set if reading the new cpu compatible fsl,MPC8572DS-CAMP returns 1. Signed-off-by: Haiying Wang [EMAIL PROTECTED] Signed-off-by: Kumar Gala [EMAIL PROTECTED] --- arch/powerpc/platforms/85xx/mpc85xx_ds.c | 11

[PATCH 2/2] powerpc/85xx: Create dts for each core in CAMP mode for MPC8572DS

2008-11-13 Thread Kumar Gala
From: Haiying Wang [EMAIL PROTECTED] Signed-off-by: Haiying Wang [EMAIL PROTECTED] Signed-off-by: Kumar Gala [EMAIL PROTECTED] --- arch/powerpc/boot/dts/mpc8572ds_camp_core0.dts | 484 arch/powerpc/boot/dts/mpc8572ds_camp_core1.dts | 233 2 files changed,

[PATCH 03/11] async_tx: add support for asynchronous RAID6 recovery operations

2008-11-13 Thread Ilya Yanok
This patch extends async_tx API with two operations for recovery operations on RAID6 array with two failed disks using new async_pqxor() operation. New functions: async_r6_dd_recov() recovers after double data disk failure async_r6_dp_recov() recovers after D+P failure Signed-off-by: Yuri

[PATCH 02/11] async_tx: add support for asynchronous GF multiplication

2008-11-13 Thread Ilya Yanok
This adds support for doing asynchronous GF multiplication by adding four additional functions to async_tx API: async_pqxor() does simultaneous XOR of sources and XOR of sources GF-multiplied by given coefficients. async_pqxor_zero_sum() checks if results of calculations match given ones.

[PATCH 04/11] md: run stripe operations outside the lock

2008-11-13 Thread Ilya Yanok
The raid_run_ops routine uses the asynchronous offload api and the stripe_operations member of a stripe_head to carry out xor+pqxor+copy operations asynchronously, outside the lock. The operations performed by RAID-6 are the same as in the RAID-5 case except for no support of STRIPE_OP_PREXOR

[PATCH 06/11] md: change handle_stripe_fill6 to work in asynchronous way

2008-11-13 Thread Ilya Yanok
Change handle_stripe_fill6 to work asynchronously and introduce helper fetch_block6 function for this. Signed-off-by: Yuri Tikhonov [EMAIL PROTECTED] Signed-off-by: Ilya Yanok [EMAIL PROTECTED] --- drivers/md/raid5.c | 154 1 files changed,

[PATCH 08/11] md: asynchronous handle_parity_check6

2008-11-13 Thread Ilya Yanok
This patch introduces the state machine for handling the RAID-6 parities check and repair functionality. Signed-off-by: Yuri Tikhonov [EMAIL PROTECTED] Signed-off-by: Ilya Yanok [EMAIL PROTECTED] --- drivers/md/raid5.c | 163 +++- 1 files changed,

[PATCH 10/11] md: remove unused functions

2008-11-13 Thread Ilya Yanok
Some clean-up of the replaced or already unnecessary functions. Signed-off-by: Yuri Tikhonov [EMAIL PROTECTED] Signed-off-by: Ilya Yanok [EMAIL PROTECTED] --- drivers/md/raid5.c | 246 1 files changed, 0 insertions(+), 246 deletions(-) diff

Please pull 'merge' branch of powerpc-4xx git tree

2008-11-13 Thread Josh Boyer
Hi Paul, Please pull the merge branch of the powerpc-4xx git tree. It contains two small fixes that should go into .28. thx, josh The following changes since commit cb8fdc69a2a80e81e1280ec58afd2c3217ac8a7f: Paul Mackerras (1): powerpc: Update desktop/server defconfigs are available

Re: [PATCH 11/11] ppc440spe-adma: ADMA driver for PPC440SP(e) systems

2008-11-13 Thread Josh Boyer
On Thu, 13 Nov 2008 20:50:43 +0300 Ilya Yanok [EMAIL PROTECTED] wrote: Josh Boyer wrote: On Thu, Nov 13, 2008 at 06:16:04PM +0300, Ilya Yanok wrote: Adds the platform device definitions and the architecture specific support routines for the ppc440spe adma driver. Any board

[PATCH] net/ucc_geth: Fix oops in uec_get_ethtool_stats()

2008-11-13 Thread Anton Vorontsov
p_{tx,rx}_fw_statistics_pram are special: they're available only when a device is open. If the device is closed, we should just fill the data with zeroes. Fixes the following oops: [EMAIL PROTECTED]:~# ifconfig eth1 down [EMAIL PROTECTED]:~# ethtool -S eth1 Unable to handle kernel paging request

Re: [PATCH v1] RS485 support for MPC5200x_psc_uart

2008-11-13 Thread Wolfram Sang
Hello Hans, On Thu, Nov 13, 2008 at 04:48:30PM +0100, Lehmann, Hans (Ritter Elektronik) wrote: Adds rs485 support for MPC52xx_psc_uart Please be more specific. What exactly was done/modified to have RS485-support. Please also read SubmittingPatches and CodingStyle in the Documentation

Re: [PATCH] [v3] powerpc/4xx: work around CHIP11 errata in a more PAGE_SIZE-friendly way

2008-11-13 Thread Hollis Blanchard
On Thu, 2008-11-13 at 07:44 +1100, Benjamin Herrenschmidt wrote: Again, why can't we just stick something in the kernel code that reserves the last page ? It could be in prom.c or it could be called by affected 4xx platforms by the platform code, whatever, but the reserve map isn't really

Re: pmac_zilog debugging ...

2008-11-13 Thread Benjamin Herrenschmidt
On Thu, 2008-11-13 at 03:38 -0800, Kevin Diggs wrote: 12,206 PowerMac Zilog interrupts Interrupt load is higher without the DMA support. Is it possible that this hardware was not meant to be used without the DMA (i.e. it does not work quite right?)? Well, the HW Rx buffer is only 3 bytes

Re: pmac_zilog debugging ...

2008-11-13 Thread Kevin Diggs
Benjamin Herrenschmidt wrote: On Thu, 2008-11-13 at 03:38 -0800, Kevin Diggs wrote: 12,206 PowerMac Zilog interrupts Interrupt load is higher without the DMA support. Is it possible that this hardware was not meant to be used without the DMA (i.e. it does not work quite right?)? Well,

Re: [PATCH] mpc832x_rdb: fix swapped ethernet ids

2008-11-13 Thread David Gibson
On Thu, Nov 13, 2008 at 10:18:28AM -0500, Michael Barkowski wrote: ethernet0 (called FSL UEC0 in U-Boot) should be enet1 (UCC3/eth1), and ethernet1 should be enet0 (UCC2/eth0), to be consistent with U-Boot so that the interfaces do not swap addresses when control passes from U-Boot to the

Re[2]: [2/2] powerpc: support for 256K pages on PPC 44x

2008-11-13 Thread Yuri Tikhonov
Hello Milton, On Tuesday, November 11, 2008 Milton Miller wrote: [snip] #ifdef CONFIG_PTE_64BIT typedef unsigned long long pte_basic_t; +#ifdef CONFIG_PPC_256K_PAGES +#define PTE_SHIFT (PAGE_SHIFT - 7) This seems to be missing the comment on how many ptes are actually in the

Re[2]: [PATCH] xsysace: use resource_size_t instead of unsigned long

2008-11-13 Thread Yuri Tikhonov
Hello Stephen, On Thursday, November 13, 2008 you wrote: Hi Yuri, On Thu, 13 Nov 2008 11:43:17 +0300 Yuri Tikhonov [EMAIL PROTECTED] wrote: - dev_dbg(ace-dev, physaddr=0x%lx irq=%i\n, ace-physaddr, ace-irq); + dev_dbg(ace-dev, physaddr=0x%llx irq=%i\n, (u64)ace-physaddr,

Re: [PATCH] katmai.dts: extend DMA ranges; add dma/sysace nodes

2008-11-13 Thread Grant Likely
On Thu, Nov 13, 2008 at 06:45:33AM -0500, Josh Boyer wrote: On Thu, 13 Nov 2008 11:49:14 +0300 Yuri Tikhonov [EMAIL PROTECTED] wrote: + [EMAIL PROTECTED] { + compatible = xlnx,opb-sysace-1.00.b; Odd. This isn't a xilinx board by any means. This should

Re[2]: [PATCH] katmai.dts: extend DMA ranges; add dma/sysace nodes

2008-11-13 Thread Yuri Tikhonov
Hello Josh, On Thursday, November 13, 2008 you wrote: [snip] You have no compatible property in these 3 nodes. How are drivers supposed to bind to them? You also have no reg or dcr-reg properties. What exactly are these nodes for? Probably we (me and Ilya) overdone with posting

Re[2]: [PATCH] katmai.dts: extend DMA ranges; add dma/sysace nodes

2008-11-13 Thread Yuri Tikhonov
Hello Grant, On Friday, November 14, 2008 you wrote: On Thu, Nov 13, 2008 at 06:45:33AM -0500, Josh Boyer wrote: On Thu, 13 Nov 2008 11:49:14 +0300 Yuri Tikhonov [EMAIL PROTECTED] wrote: + [EMAIL PROTECTED] { + compatible = xlnx,opb-sysace-1.00.b; Odd.

Re: Re[2]: [PATCH] katmai.dts: extend DMA ranges; add dma/sysace nodes

2008-11-13 Thread Grant Likely
On Thu, Nov 13, 2008 at 10:27 PM, Yuri Tikhonov [EMAIL PROTECTED] wrote: Hello Grant, On Friday, November 14, 2008 you wrote: On Thu, Nov 13, 2008 at 06:45:33AM -0500, Josh Boyer wrote: On Thu, 13 Nov 2008 11:49:14 +0300 Yuri Tikhonov [EMAIL PROTECTED] wrote: + [EMAIL

Re: Re[2]: [PATCH] katmai.dts: extend DMA ranges; add dma/sysace nodes

2008-11-13 Thread Benjamin Herrenschmidt
My understanding was that the dma-ranges property is responsible for setting up the inbound ranges of RAM's physical addresses, where PCI could DMA to/from. As regarding the outbound property, this patch doesn't change this, and there we have the PCI space split (2 GB of memory, and 64K