Re: [PATCH 04/15] swiotlb: remove unnecessary swiotlb_bus_to_virt

2009-07-13 Thread FUJITA Tomonori
On Mon, 13 Jul 2009 21:17:21 -0500 Becky Bruce wrote: > > On Jul 9, 2009, at 8:04 PM, FUJITA Tomonori wrote: > > > swiotlb_bus_to_virt is unncessary; we can use swiotlb_bus_to_phys and > > phys_to_virt instead. > > phys_to_virt (also, virt_to_phys) is invalid for highmem addresses on > ppc.

Re: [00/15] swiotlb cleanup

2009-07-13 Thread Becky Bruce
On Jul 10, 2009, at 12:12 AM, Ingo Molnar wrote: * FUJITA Tomonori wrote: - removes unused (and unnecessary) hooks in swiotlb. - adds dma_capable() and converts swiotlb to use it. It can be used to know if a memory area is dma capable or not. I added is_buffer_dma_capable() for the same

Re: [PATCH 04/15] swiotlb: remove unnecessary swiotlb_bus_to_virt

2009-07-13 Thread Becky Bruce
On Jul 9, 2009, at 8:04 PM, FUJITA Tomonori wrote: swiotlb_bus_to_virt is unncessary; we can use swiotlb_bus_to_phys and phys_to_virt instead. phys_to_virt (also, virt_to_phys) is invalid for highmem addresses on ppc. In most of the uses in this file, it doesn't matter, as the iotlb buff

Re: removing addr_needs_map in struct dma_mapping_ops

2009-07-13 Thread FUJITA Tomonori
On Mon, 13 Jul 2009 16:50:43 -0500 Becky Bruce wrote: > > talked about defining something like struct dma_data. Then we could > > > > struct dev_archdata { > > ... > > > > struct dma_data *ddata; > > }; > > > > or > > > > struct dev_archdata { > > ... > > > > struct dma_data d

vmalloc issue on mpc8378

2009-07-13 Thread Robert Benea
I have an mpc8378 system with 512MB ram and 256MB flash (NOR). When I start the system I get the infamous message vmalloc failure. If I do cat /proc/meminfo I can see that I have only 212MB of VMALLOC space. I tried the advanced options and change the KERNEL_START to 0xb000 (instead of 0xc

Re: [PATCH 0/2] Setting GPIOs simultaneously

2009-07-13 Thread Anton Vorontsov
On Mon, Jul 13, 2009 at 09:59:54PM +0200, Joakim Tjernlund wrote: [...] > > > While being at it, the reason for me needing this is that the spi_mpc83xx > > > driver > > > was recently converted to a OF only driver so I have no way of defining > > > my own > > > CS function anymore. While OF is go

Re: removing addr_needs_map in struct dma_mapping_ops

2009-07-13 Thread Becky Bruce
On Jul 9, 2009, at 8:47 PM, FUJITA Tomonori wrote: I'm trying to convert POWERPC to use asm-generic/dma-mapping-common.h. POWERPC needs addr_needs_map() in struct dma_mapping_ops for SWIOTLB support but I want to avoid add addr_needs_map() in struct dma_map_ops. IIRC, you guys think it as a te

Re: [PATCH 0/2] Setting GPIOs simultaneously

2009-07-13 Thread Joakim Tjernlund
Anton Vorontsov wrote on 13/07/2009 19:34:55: > > On Mon, Jul 13, 2009 at 06:01:02PM +0200, Joakim Tjernlund wrote: > > > > Anton Vorontsov wrote on 13/07/2009 17:19:11: > > > > > > Hi all, > > > > > > I've been sitting on these patches for some time, but now it appears > > > that the set_sync()

Re: Delay on intialization ide subsystem(most likely)

2009-07-13 Thread Andrey Gusev
On Wed, 08 Jul 2009 11:12:42 +1000 Benjamin Herrenschmidt wrote: > On Wed, 2009-07-08 at 01:18 +0400, Andrey Gusev wrote: > > > I tried this drive on ide1 and ide2, there are same issue. This > > drive worked on P-III before (as separate on channel, with another > > hard drive and with cdrom) an

Re: DMA on AMCC ppc440epx

2009-07-13 Thread Mikhail Zolotaryov
Hi Leonid, probably, the following article on PPC DMA could help: http://lebon.org.ua/?p=5 Best regards, Mikhail Zolotaryov ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: Soft Reset for PPC44x Virtex 5 hangs saying Restarting System

2009-07-13 Thread srikanth krishnakar
On Mon, Jul 13, 2009 at 9:31 PM, Grant Likely wrote: > On Mon, Jul 13, 2009 at 9:39 AM, srikanth > krishnakar wrote: > > > > > > On Mon, Jul 13, 2009 at 8:32 PM, Grant Likely > > > wrote: > >> > >> On Mon, Jul 13, 2009 at 1:16 AM, srikanth > >> krishnakar wrote: > >> > Hi all, > >> > > >> > Kerne

Re: Soft Reset for PPC44x Virtex 5 hangs saying Restarting System

2009-07-13 Thread srikanth krishnakar
On Mon, Jul 13, 2009 at 8:32 PM, Grant Likely wrote: > On Mon, Jul 13, 2009 at 1:16 AM, srikanth > krishnakar wrote: > > Hi all, > > > > Kernel : Linux-2.6.29 > > Arch: Powerpc (ppc44x) > > Target: Xilinx ML507 Virtex5 > > > > I have an issue in "Reset System" of Xilinx ML507 target board. I am >

Re: [PATCH 0/2] Setting GPIOs simultaneously

2009-07-13 Thread Anton Vorontsov
On Mon, Jul 13, 2009 at 06:01:02PM +0200, Joakim Tjernlund wrote: > > Anton Vorontsov wrote on 13/07/2009 17:19:11: > > > > Hi all, > > > > I've been sitting on these patches for some time, but now it appears > > that the set_sync() feature is needed elsewhere. So here are the > > patches. > > >

Re: [PATCH 0/2] Setting GPIOs simultaneously

2009-07-13 Thread Joakim Tjernlund
Joakim Tjernlund/Transmode wrote on 13/07/2009 18:01:02: > > Anton Vorontsov wrote on 13/07/2009 17:19:11: > > > > Hi all, > > > > I've been sitting on these patches for some time, but now it appears > > that the set_sync() feature is needed elsewhere. So here are the > > patches. > > > > Joakim,

Re: Soft Reset for PPC44x Virtex 5 hangs saying Restarting System

2009-07-13 Thread Grant Likely
On Mon, Jul 13, 2009 at 9:39 AM, srikanth krishnakar wrote: > > > On Mon, Jul 13, 2009 at 8:32 PM, Grant Likely > wrote: >> >> On Mon, Jul 13, 2009 at 1:16 AM, srikanth >> krishnakar wrote: >> > Hi all, >> > >> > Kernel : Linux-2.6.29 >> > Arch: Powerpc (ppc44x) >> > Target: Xilinx ML507 Virtex5 >

Re: [PATCH 0/2] Setting GPIOs simultaneously

2009-07-13 Thread Joakim Tjernlund
Anton Vorontsov wrote on 13/07/2009 17:19:11: > > Hi all, > > I've been sitting on these patches for some time, but now it appears > that the set_sync() feature is needed elsewhere. So here are the > patches. > > Joakim, I think this is what you need. Yes, it sure looks so :) I will have to look

[PATCH 2/2] powerpc/qe: Implement set_sync() callback for QE GPIOs

2009-07-13 Thread Anton Vorontsov
This is needed to set GPIO's values synchronously. Signed-off-by: Anton Vorontsov --- arch/powerpc/include/asm/gpio.h | 11 +++ arch/powerpc/sysdev/qe_lib/gpio.c | 27 +++ 2 files changed, 38 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/include/a

[PATCH 1/2] gpiolib: Implement gpio_set_values_sync()

2009-07-13 Thread Anton Vorontsov
Sometimes it's necessary to set GPIO values synchronously, e.g. when CPU's GPIOs go to a FPGA and the FPGA has no latch-enable line, so intermediate values on GPIO lines may trigger unnecessary actions by the FPGA. Another usage is chip-select muxes, e.g. using X GPIOs as address lines to mux 2^X

[PATCH 0/2] Setting GPIOs simultaneously

2009-07-13 Thread Anton Vorontsov
Hi all, I've been sitting on these patches for some time, but now it appears that the set_sync() feature is needed elsewhere. So here are the patches. Joakim, I think this is what you need. Thanks, -- Anton Vorontsov email: cbouatmai...@gmail.com irc://irc.freenode.net/bd2

Re: Soft Reset for PPC44x Virtex 5 hangs saying Restarting System

2009-07-13 Thread Grant Likely
On Mon, Jul 13, 2009 at 1:16 AM, srikanth krishnakar wrote: > Hi all, > > Kernel : Linux-2.6.29 > Arch: Powerpc (ppc44x) > Target: Xilinx ML507 Virtex5 > > I have an issue in "Reset System" of Xilinx ML507 target board. I am using > Compact Flash to boot the target ( using system ACE file to boot t

SPI driver on mpc5121

2009-07-13 Thread Canella Matteo
Hi, I'm on a mpc5121 platform, kernel 2.6.24.6, and I'm using the mpc512x_psc_spi driver to communicate  with a touch screen controller. I'm sending commands and reading data from the controller using 24-bit packet (3 bytes). The speed of the SPI is set to 640 KHz. I thought that I would need 8/6

Re: mmap() problem in own driver

2009-07-13 Thread Arnd Bergmann
On Monday 13 July 2009, Sauce.Cheng wrote: > I want to get data from kernel space to user space indirectly using mmap() > but i dont know how I can do , anyone can give me some advices ? > > firstly, fetch data by DMA to a memory allocated by "kmalloc" > then i want to mmap it to user space and s

Re: [00/15] swiotlb cleanup

2009-07-13 Thread Ian Campbell
On Mon, 2009-07-13 at 18:53 +0900, FUJITA Tomonori wrote: > On Mon, 13 Jul 2009 10:40:29 +0100 > Ian Campbell wrote: > > > On Mon, 2009-07-13 at 05:20 +0100, FUJITA Tomonori wrote: > > > On Fri, 10 Jul 2009 15:02:00 +0100 > > > Ian Campbell wrote: > > > > > > > On Fri, 2009-07-10 at 14:35 +0900

Re: [00/15] swiotlb cleanup

2009-07-13 Thread FUJITA Tomonori
On Mon, 13 Jul 2009 10:40:29 +0100 Ian Campbell wrote: > On Mon, 2009-07-13 at 05:20 +0100, FUJITA Tomonori wrote: > > On Fri, 10 Jul 2009 15:02:00 +0100 > > Ian Campbell wrote: > > > > > On Fri, 2009-07-10 at 14:35 +0900, FUJITA Tomonori wrote: > > > > I don't think that we need to take accoun

Re: [00/15] swiotlb cleanup

2009-07-13 Thread Ian Campbell
On Mon, 2009-07-13 at 05:20 +0100, FUJITA Tomonori wrote: > On Fri, 10 Jul 2009 15:02:00 +0100 > Ian Campbell wrote: > > > On Fri, 2009-07-10 at 14:35 +0900, FUJITA Tomonori wrote: > > > I don't think that we need to take account of dom0 support; we don't > > > have a clear idea about an acceptab

Re: [00/15] swiotlb cleanup

2009-07-13 Thread FUJITA Tomonori
On Mon, 13 Jul 2009 13:20:22 +0900 FUJITA Tomonori wrote: > On Fri, 10 Jul 2009 16:12:48 +0200 > Ingo Molnar wrote: > > > > functionality and reimplemented the surrounding infrastructure in > > > terms of that (and incorporating our additional requirements). I > > > prototyped this (it is cur

Soft Reset for PPC44x Virtex 5 hangs saying Restarting System

2009-07-13 Thread srikanth krishnakar
Hi all, Kernel : Linux-2.6.29 Arch: Powerpc (ppc44x) Target: Xilinx ML507 Virtex5 I have an issue in "Reset System" of Xilinx ML507 target board. I am using Compact Flash to boot the target ( using system ACE file to boot the target), during the process reset or reboot command on the target, I am

mmap() problem in own driver

2009-07-13 Thread Sauce.Cheng
Hi everyone there is a problem of my own driver I want to get data from kernel space to user space indirectly using mmap() but i dont know how I can do , anyone can give me some advices ? firstly, fetch data by DMA to a memory allocated by "kmalloc" then i want to mmap it to user space and save