RE: [PATCH 1/2] misc: add CARMA DATA-FPGA Access Driver

2011-02-10 Thread David Laight
I was completely unaware of that feature. I hunch that many drivers are incapable of dealing with an unbind while they are still open. Hmm, maybe older drivers... Anythig hotpluggable (USB, PCI, etc) should be in a better shape because they expect to be yanked at any time. Whim and

pls help-problem with mmap DMA buffer

2011-02-10 Thread reshi nuwa
Hi , I get the same problem as in http://lists.ozlabs.org/pipermail/linuxppc-dev/2009-November/077394.html posted by Jonathan. One solution suggested is using get_user_pages(), which give a pointer of user space buffer to the kernel module to DMA( as I got it) But the code in teh above link

Resources used by driver ?

2011-02-10 Thread Guillaume Dargaud
Thanks to the advice I received here, I now have my first 'real' Linux driver up and running and am now at the optimization stage. Is it possible to see the resources consumed by a module ? They don't show in 'ps/top' but I'm sure there are ways to see how much memory it uses (to check for

Re: [PATCH] powerpc: Fix call to flush_ptrace_hw_breakpoint()

2011-02-10 Thread K.Prasad
On Mon, Feb 07, 2011 at 04:13:37PM +1100, Benjamin Herrenschmidt wrote: On Mon, 2011-02-07 at 10:22 +0530, K.Prasad wrote: Okay! Another wrapper of #ifndef CONFIG_HAVE_HW_BREAKPOINT around the definition of 'set_debug_reg_defaults'. Can you send a patch ? Pasted below. There's

ydl powerstation is unable to use external usb hard disk drives

2011-02-10 Thread acrux
i'm a bit in trouble when i try to use an external usb hard disk drive on our YDL Powerstation (2x PPC970MP). Sombody is able to suggest me a solution? Instead, on my iBook G4, everything is working fine. Actually i don't have another ppc64 to do further attempts. # YDL Powerstation

[PATCH v2] ppc: add dynamic dma window support

2011-02-10 Thread Nishanth Aravamudan
If firmware allows us to map all of a partition's memory for DMA on a particular bridge, create a 1:1 mapping of that memory. Add hooks for dealing with hotplug events. Dynamic DMA windows can use larger than the default page size, and we use the largest one possible. Signed-off-by: Nishanth

[PATCH powerpc 0/2] powerpc CONFIG_PREEMPT fixes

2011-02-10 Thread Paul E. McKenney
Hello! This series provides fixes for a couple of CONFIG_PREEMPT problems on Power: 1. The hpte_need_flush() function accesses per-CPU variables without protection. 2. The rtas_event_scan() function needs to use raw_smp_processor_id() to get a starting point to avoid

[PATCH powerpc 1/2] powerpc: protect per-CPU access with preempt_disable

2011-02-10 Thread Paul E. McKenney
The hpte_need_flush() function accesses the ppc64_tlb_batch per-CPU variable with preemption enabled, a bug that this patch fixes. Perhaps crudely. Signed-off-by: Paul E. McKenney paul...@linux.vnet.ibm.com --- arch/powerpc/include/asm/pgtable-ppc64.h |5 - 1 files changed, 4

[PATCH powerpc 2/2] powerpc: mask smp_processor_id() false positive

2011-02-10 Thread Paul E. McKenney
The rtas_event_scan() function uses smp_processor_id() to select a starting point in cpu_online_mask, and does so under the protection of get_online_cpus(). This might not select the current processor in any case, so switch to raw_smp_processor_id(). Signed-off-by: Paul E. McKenney

Re: ydl powerstation is unable to use external usb hard disk drives

2011-02-10 Thread nello martuscielli
hi all, there is the same issue here on my iBook G4 with 2.6.38-rc4 thus it isn't an issue related to ppc64. It's not possible to use it. usb 1-2: new high speed USB device using ehci_hcd and address 3 usb 1-2: New USB device found, idVendor=1058, idProduct=1010 usb 1-2: New USB device strings:

linux-2.6.37 compile error for Efika (MPC5200B)

2011-02-10 Thread nello martuscielli
hi, i've this error trying to compile my linux-2.6.37 for Genesi Efika (MPC5200B) with sound enabled. [...] LD sound/pci/built-in.o LD sound/pcmcia/pdaudiocf/built-in.o LD sound/pcmcia/vx/built-in.o LD sound/pcmcia/built-in.o LD sound/ppc/built-in.o LD

Re: [PATCH v3 0/4] powerpc: Open PIC binding and pic-no-reset

2011-02-10 Thread Meador Inge
From the feedback I have received so far, the fundamental ideas in this patch set are sane. However, the following issues are still outstanding: 1. What is the name of the no reset property? pic-no-reset or no-reset? 2. Should we just keep the existing protected sources

Re: [PATCH v3 0/4] powerpc: Open PIC binding and pic-no-reset

2011-02-10 Thread Meador Inge
Apologies for the bad post.  Bad day for email ...  Please ignore the top reply in my previous reply.  The full reply is the below the quote. On Thu, Feb 10, 2011 at 8:01 PM, Meador Inge meador_i...@mentor.com wrote: On 02/10/2011 02:42 PM, Meador Inge wrote: -- Forwarded message