Re: Page Allocation Failure and Page allocation stalls

2019-05-01 Thread Valdis Klētnieks
On Thu, 02 May 2019 04:56:05 +0530, Pankaj Suryawanshi said: > Please help me to decode the error messages and reason for this errors. > [ 3205.818891] HwBinder:1894_6: page allocation failure: order:7, > mode:0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null) Order 7 - so it wants 2**7

Page Allocation Failure and Page allocation stalls

2019-05-01 Thread Pankaj Suryawanshi
Hi All, Please help me to decode the error messages and reason for this errors. System Configuration 1. Kernel 4.14.65 For Android Pie. 2. RAM 2GB As per my understanding its because of i) I am out of memory or due to fragmentation. I also tried to set /proc/sys/vm/min_freekbytes from 3MB to

Suspend/resume causes I2C issues

2019-05-01 Thread Magnus Olsson
Hey, I'm trying to debug an issue on an embedded Linux (v4.4.107) where repeatedly and quickly suspending (mem suspend) and resuming the system causes one of the I2C controllers in the system to malfunction. I've run out of ideas and would like to know if anyone recognizes my issue or can

Re: debugfs question ...

2019-05-01 Thread 'Greg KH'
On Wed, May 01, 2019 at 03:18:51PM +0100, r...@metamail.co wrote: > Hello and thanks, > > > > > > > The pattern for the implementation is (AFAICT) right out of the book > > > > > > > You are returning a "short" read, and then disallowing ppos to be set to a > > non-zero value? That's a recipie

RE: debugfs question ...

2019-05-01 Thread rdq
> my guess is your are not returning EOF (= 0). User space expects a return > value of 0 (EOF) to terminate reading. But your code will always return > sizeof("Hello world\n"). A fix would be to not only increment ppos, but also > check if it's already behind your data. > > Regards, > > Martin