Re: MIDI gadget allocating too much from coherent pool

2015-09-23 Thread Felipe Tonello
On Wed, Sep 23, 2015 at 12:39 PM, Felipe Tonello wrote: > Hi Peter, > > On Wed, Sep 23, 2015 at 4:09 AM, Peter Chen wrote: >> On Tue, Sep 22, 2015 at 07:51:34PM +0100, Felipe Tonello wrote: >>> Hi all, >>> >>> On Tue, Sep 22, 2015 at 10:13 AM,

Re: MIDI gadget allocating too much from coherent pool

2015-09-23 Thread Felipe Tonello
Hi Peter, On Wed, Sep 23, 2015 at 4:09 AM, Peter Chen wrote: > On Tue, Sep 22, 2015 at 07:51:34PM +0100, Felipe Tonello wrote: >> Hi all, >> >> On Tue, Sep 22, 2015 at 10:13 AM, Felipe Tonello >> wrote: >> > Hi Peter, >> > >> > On Tue, Sep 22,

Re: MIDI gadget allocating too much from coherent pool

2015-09-22 Thread Felipe Tonello
Hi all, On Tue, Sep 22, 2015 at 10:13 AM, Felipe Tonello wrote: > Hi Peter, > > On Tue, Sep 22, 2015 at 8:03 AM, Peter Chen wrote: >> On Tue, Sep 22, 2015 at 09:07:23AM +0100, Felipe Tonello wrote: >>> On Tue, Sep 22, 2015 at 12:41 AM, Peter

Re: MIDI gadget allocating too much from coherent pool

2015-09-22 Thread Peter Chen
On Tue, Sep 22, 2015 at 07:51:34PM +0100, Felipe Tonello wrote: > Hi all, > > On Tue, Sep 22, 2015 at 10:13 AM, Felipe Tonello > wrote: > > Hi Peter, > > > > On Tue, Sep 22, 2015 at 8:03 AM, Peter Chen > > wrote: > >> On Tue, Sep 22, 2015 at

Re: MIDI gadget allocating too much from coherent pool

2015-09-22 Thread Felipe Tonello
Hi Peter, On Tue, Sep 22, 2015 at 8:03 AM, Peter Chen wrote: > On Tue, Sep 22, 2015 at 09:07:23AM +0100, Felipe Tonello wrote: >> On Tue, Sep 22, 2015 at 12:41 AM, Peter Chen >> wrote: >> > On Mon, Sep 21, 2015 at 03:25:28PM +0100, Felipe

Re: MIDI gadget allocating too much from coherent pool

2015-09-22 Thread Felipe Tonello
On Tue, Sep 22, 2015 at 12:41 AM, Peter Chen wrote: > On Mon, Sep 21, 2015 at 03:25:28PM +0100, Felipe Tonello wrote: >> Hi all, >> >> I actually found the problem but can't really understand. The ci_irq() >> handler (from core.c) is not been called after a ep_queue()

Re: MIDI gadget allocating too much from coherent pool

2015-09-22 Thread Peter Chen
On Tue, Sep 22, 2015 at 09:07:23AM +0100, Felipe Tonello wrote: > On Tue, Sep 22, 2015 at 12:41 AM, Peter Chen wrote: > > On Mon, Sep 21, 2015 at 03:25:28PM +0100, Felipe Tonello wrote: > >> Hi all, > >> > >> I actually found the problem but can't really understand. The

Re: MIDI gadget allocating too much from coherent pool

2015-09-21 Thread Peter Chen
On Mon, Sep 21, 2015 at 03:25:28PM +0100, Felipe Tonello wrote: > Hi all, > > I actually found the problem but can't really understand. The ci_irq() > handler (from core.c) is not been called after a ep_queue() from > f_midi_transmit(). > > Is there any reason for that? > > I used mass_storage

Re: MIDI gadget allocating too much from coherent pool

2015-09-21 Thread Felipe Balbi
Hi, (it's kinda bad to drop *all* the context from the email) On Mon, Sep 21, 2015 at 03:25:28PM +0100, Felipe Tonello wrote: > Hi all, > > I actually found the problem but can't really understand. The ci_irq() > handler (from core.c) is not been called after a ep_queue() from >

Re: MIDI gadget allocating too much from coherent pool

2015-09-21 Thread Felipe Tonello
Hi all, I actually found the problem but can't really understand. The ci_irq() handler (from core.c) is not been called after a ep_queue() from f_midi_transmit(). Is there any reason for that? I used mass_storage gadget, made file transfers and others, and the interrupt handler was been called

Re: MIDI gadget allocating too much from coherent pool

2015-09-18 Thread Felipe Balbi
On Fri, Sep 18, 2015 at 11:03:26AM +0100, Felipe Tonello wrote: > After some debugging, here is where I am: > > The crash trace is like this: > > (f_midi.c) > -> ALSA calls f_midi_in_trigger() > ->tasklet_hi_schedule(>tasklet) > -> f_midi_transmit(midi, NULL) the NULL here causes the

Re: MIDI gadget allocating too much from coherent pool

2015-09-18 Thread Felipe Tonello
After some debugging, here is where I am: The crash trace is like this: (f_midi.c) -> ALSA calls f_midi_in_trigger() ->tasklet_hi_schedule(>tasklet) -> f_midi_transmit(midi, NULL) the NULL here causes the f_midi to request a usb_request allocation, also it sets req->complete (which is not

Re: MIDI gadget allocating too much from coherent pool

2015-09-18 Thread Felipe Tonello
Balbi, On Fri, Sep 18, 2015 at 5:02 PM, Felipe Balbi wrote: > Hi, > > On Fri, Sep 18, 2015 at 04:53:09PM +0100, Felipe Tonello wrote: >> Hi Balbi, >> >> On Fri, Sep 18, 2015 at 3:25 PM, Felipe Balbi wrote: >> > On Fri, Sep 18, 2015 at 11:03:26AM +0100, Felipe Tonello

Re: MIDI gadget allocating too much from coherent pool

2015-09-18 Thread Felipe Balbi
Hi, On Fri, Sep 18, 2015 at 04:53:09PM +0100, Felipe Tonello wrote: > Hi Balbi, > > On Fri, Sep 18, 2015 at 3:25 PM, Felipe Balbi wrote: > > On Fri, Sep 18, 2015 at 11:03:26AM +0100, Felipe Tonello wrote: > >> After some debugging, here is where I am: > >> > >> The crash trace is

Re: MIDI gadget allocating too much from coherent pool

2015-09-18 Thread Felipe Tonello
Hi Balbi, On Fri, Sep 18, 2015 at 3:25 PM, Felipe Balbi wrote: > On Fri, Sep 18, 2015 at 11:03:26AM +0100, Felipe Tonello wrote: >> After some debugging, here is where I am: >> >> The crash trace is like this: >> >> (f_midi.c) >> -> ALSA calls f_midi_in_trigger() >>

Re: MIDI gadget allocating too much from coherent pool

2015-09-16 Thread Felipe Balbi
On Wed, Sep 16, 2015 at 06:22:27PM +0100, Felipe Tonello wrote: > Hi Estevam, > > On Tue, Sep 15, 2015 at 5:09 AM, Fabio Estevam wrote: > > On Thu, Sep 10, 2015 at 6:47 AM, Felipe Tonello > > wrote: > >> Hi, > >> > >> I have the following setup: > >>

Re: MIDI gadget allocating too much from coherent pool

2015-09-16 Thread Fabio Estevam
Hi Clemens, On Mon, Sep 14, 2015 at 4:24 AM, Clemens Ladisch wrote: > The "fsl_usb2_udc" driver (if that is what you're using) uses a coherent > DMA pool for "TD management". I see no obvious problem with how it > calls dma_pool_alloc()/dma_pool_free(). Are there any

Re: MIDI gadget allocating too much from coherent pool

2015-09-16 Thread Felipe Tonello
Hi Estevam, On Tue, Sep 15, 2015 at 5:09 AM, Fabio Estevam wrote: > On Thu, Sep 10, 2015 at 6:47 AM, Felipe Tonello > wrote: >> Hi, >> >> I have the following setup: >> >> DSP (read sensors and read/send MIDI) <- UART -> SOC (imx6) <- USB >> MIDI

Re: MIDI gadget allocating too much from coherent pool

2015-09-14 Thread Fabio Estevam
On Thu, Sep 10, 2015 at 6:47 AM, Felipe Tonello wrote: > Hi, > > I have the following setup: > > DSP (read sensors and read/send MIDI) <- UART -> SOC (imx6) <- USB > MIDI GADGET -> HOST > > When the throughput from the DSP is high, thus causing the throughput > on the USB

Re: MIDI gadget allocating too much from coherent pool

2015-09-14 Thread Clemens Ladisch
Felipe Tonello wrote: > DSP (read sensors and read/send MIDI) <- UART -> SOC (imx6) <- USB > MIDI GADGET -> HOST > > When the throughput from the DSP is high, thus causing the throughput > on the USB to be high as well, I get a Kernel Panic saying to increase > the coherent_pool. I've used some

Re: MIDI gadget allocating too much from coherent pool

2015-09-14 Thread Clemens Ladisch
I wrote: > Felipe Tonello wrote: >> DSP (read sensors and read/send MIDI) <- UART -> SOC (imx6) <- USB >> MIDI GADGET -> HOST >> >> When the throughput from the DSP is high, thus causing the throughput >> on the USB to be high as well, I get a Kernel Panic saying to increase >> the coherent_pool.

MIDI gadget allocating too much from coherent pool

2015-09-10 Thread Felipe Tonello
Hi, I have the following setup: DSP (read sensors and read/send MIDI) <- UART -> SOC (imx6) <- USB MIDI GADGET -> HOST When the throughput from the DSP is high, thus causing the throughput on the USB to be high as well, I get a Kernel Panic saying to increase the coherent_pool. I've used some