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 say

RE: Linux and usb device drivers using functionfs

2017-11-02 Thread andy_purcell
y Purcell Keysight Technologies 900 South Taft Loveland, Colorado 80537 970-679-5976 > -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Thursday, November 2, 2017 3:31 PM > To: PURCELL,ANDY (K-Loveland,ex1) > Cc: felipe.ba...@linux.intel.com; linux-us

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 wh

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? Dev

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 it

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) ; linux- > u...@vger.kernel.org > Subject: RE: Linux and usb device drivers using functionfs > > > Hi Andy, > > andy_purc...@key

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
land,ex1) ; 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 problem being reported. &

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 device

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 us