RE: Linux and usb device drivers using functionfs

2017-11-03 Thread Felipe Balbi
Hi, andy_purc...@keysight.com writes: >> > > And where is your swap? What happens if you just do not have swap at >> > > all? >> > Our system has no swap. Running 'top' says 0 total, 0 free, 0 used >> >> then your program can not get swapped out, so this whole thing is crazy. > > Colleague

RE: Linux and usb device drivers using functionfs

2017-11-02 Thread andy_purcell
@linux.intel.com; linux-usb@vger.kernel.org > Subject: Re: Linux and usb device drivers using functionfs > > On Thu, Nov 02, 2017 at 08:43:04PM +, andy_purc...@keysight.com wrote: > > Hello, > > > > > > > > > > And where is your swap? What happens if yo

Re: Linux and usb device drivers using functionfs

2017-11-02 Thread Greg KH
On Thu, Nov 02, 2017 at 08:43:04PM +, andy_purc...@keysight.com wrote: > Hello, > > > > > > And where is your swap? What happens if you just do not have swap at all? > Our system has no swap. Running 'top' says 0 total, 0 free, 0 used then your program can not get swapped out, so this

RE: Linux and usb device drivers using functionfs

2017-11-02 Thread andy_purcell
Hello, > > And where is your swap? What happens if you just do not have swap at all? Our system has no swap. Running 'top' says 0 total, 0 free, 0 used > > > A colleague claims mlockall() does not help, and says it is not a good > > idea anyway. > > That's not true, have you tried it?

Re: Linux and usb device drivers using functionfs

2017-11-02 Thread Greg KH
On Thu, Nov 02, 2017 at 04:37:51PM +, andy_purc...@keysight.com wrote: > > What do you mean by "device app runs to completion"? What is the "device > > app"? Is it the functionfs application you're talking about? And by > > "completion" > > do you mean that it completely stops running or is

RE: Linux and usb device drivers using functionfs

2017-11-02 Thread andy_purcell
From: Felipe Balbi [mailto:felipe.ba...@linux.intel.com] > Sent: Wednesday, November 1, 2017 4:44 AM > To: PURCELL,ANDY (K-Loveland,ex1) <andy_purc...@keysight.com>; linux- > u...@vger.kernel.org > Subject: RE: Linux and usb device drivers using functionfs > > > Hi Andy, &g

RE: Linux and usb device drivers using functionfs

2017-11-01 Thread Felipe Balbi
Hi Andy, andy_purc...@keysight.com writes: > Hello Felipe, > > I am not using DWC3. oh, okay :-) > I have new information about the problem. > The context was this: > 1) device boots > 2) some usb transfers happen, all are OK > 3) a device app runs to completion (USB quiescent during

RE: Linux and usb device drivers using functionfs

2017-10-31 Thread andy_purcell
) <andy_purc...@keysight.com>; linux- > u...@vger.kernel.org > Subject: Re: Linux and usb device drivers using functionfs > > > Hi, > > andy_purc...@keysight.com writes: > > I have implemented a USB device function using Linux functionfs and > > now there is a probl

Re: Linux and usb device drivers using functionfs

2017-10-31 Thread Felipe Balbi
Hi, andy_purc...@keysight.com writes: > I have implemented a USB device function using Linux functionfs and > now there is a problem being reported. > > I need to ask this group for advice. > > The problem is this: > 1) device boots > > 2) some usb transfers happen, all are OK > > 3) a

Re: Linux and usb device drivers using functionfs

2017-10-31 Thread Greg KH
On Mon, Oct 30, 2017 at 04:51:57PM +, andy_purc...@keysight.com wrote: > Hello, > > I have implemented a USB device function using Linux functionfs and now there > is a problem being reported. > I need to ask this group for advice. > > The problem is this: > 1) device boots > 2) some