[PATCH] Documentation: vm, add hugetlbfs reservation overview

2017-04-07 Thread Mike Kravetz
Adding a brief overview of hugetlbfs reservation design and implementation as an aid to those making code modifications in this area. Signed-off-by: Mike Kravetz --- Documentation/vm/00-INDEX | 2 + Documentation/vm/hugetlbfs_reserv.txt | 529 ++ 2 f

Re: [PATCH 1/1] doc: Update control-dependencies section of memory-barriers.txt

2017-04-07 Thread Paul E. McKenney
On Fri, Apr 07, 2017 at 10:15:07AM +0100, Will Deacon wrote: > On Fri, Apr 07, 2017 at 02:37:36PM +0800, pierre Kuo wrote: > > for below example, if MAX is defined to be 1, then the compiler knows (Q > > % MAX) is equal to zero. > > so compiler will transform the "else" part of code. > > > > q

Re: [v3,1/4] input: add an EV_REL event for high-res vertical wheel

2017-04-07 Thread Benjamin Tissoires
On Apr 07 2017 or thereabouts, Mauro Carvalho Chehab wrote: > Em Fri, 7 Apr 2017 14:17:51 +0200 > Benjamin Tissoires escreveu: > > > Hi Mauro, > > > > On Apr 07 2017 or thereabouts, Mauro Carvalho Chehab wrote: > > > As some devices can produce either low-res or high-res > > > vertical wheel EV_

RE: [PATCH v3] usb: document that URB transfer_buffer should be aligned

2017-04-07 Thread David Laight
From: Mauro Carvalho Chehab > Sent: 05 April 2017 14:53 > Several host controllers, commonly found on ARM, like dwc2, > require buffers that are CPU-word aligned for they to work. > > Failing to do that will cause buffer overflows at the caller > drivers, with could cause data corruption. > > Suc

Re: [v3,1/4] input: add an EV_REL event for high-res vertical wheel

2017-04-07 Thread Mauro Carvalho Chehab
Em Fri, 7 Apr 2017 14:17:51 +0200 Benjamin Tissoires escreveu: > Hi Mauro, > > On Apr 07 2017 or thereabouts, Mauro Carvalho Chehab wrote: > > As some devices can produce either low-res or high-res > > vertical wheel EV_REL events, add a new event to allow > > userspace to distinguish between th

Re: [v3,1/4] input: add an EV_REL event for high-res vertical wheel

2017-04-07 Thread Benjamin Tissoires
Hi Mauro, On Apr 07 2017 or thereabouts, Mauro Carvalho Chehab wrote: > As some devices can produce either low-res or high-res > vertical wheel EV_REL events, add a new event to allow > userspace to distinguish between them. > > Signed-off-by: Mauro Carvalho Chehab > --- > Documentation/input/e

[PATCH v3 1/4] input: add an EV_REL event for high-res vertical wheel

2017-04-07 Thread Mauro Carvalho Chehab
As some devices can produce either low-res or high-res vertical wheel EV_REL events, add a new event to allow userspace to distinguish between them. Signed-off-by: Mauro Carvalho Chehab --- Documentation/input/event-codes.rst| 16 +--- include/uapi/linux/input-event-codes.h | 1

[PATCH v3 2/4] input: add a EV_SW event for ratchet switch

2017-04-07 Thread Mauro Carvalho Chehab
Some mice have a switch on their wheel, allowing to switch between ratchet and free wheel mode. Add support for it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/input/event-codes.rst| 12 include/linux/mod_devicetable.h| 2 +- include/uapi/linux/input-event-co

Re: [PATCH 1/1] doc: Update control-dependencies section of memory-barriers.txt

2017-04-07 Thread Will Deacon
On Fri, Apr 07, 2017 at 02:37:36PM +0800, pierre Kuo wrote: > for below example, if MAX is defined to be 1, then the compiler knows (Q > % MAX) is equal to zero. > so compiler will transform the "else" part of code. > > q = READ_ONCE(a); > if (q % MAX) { > WRITE_ONCE(b, 1