[PATCH v2] staging: android: check the return value of register_shrinker

2018-01-04 Thread Xiongwei Song
register_shrinker call is made in ashmem_init, it may return error code, so we need to check it. Signed-off-by: Xiongwei Song --- v1->v2: remove unlikely() --- drivers/staging/android/ashmem.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH 10/10] uio_hv_generic: support sub-channels

2018-01-04 Thread Stephen Hemminger
Use sysfs to allow supporting sub-channels. The userspace application makes request to host to create sub-channels and the UIO kernel driver populates the sysfs per-channel directory with a binary attribute file that can be used to read/write ring. Signed-off-by: Stephen Hemminger

[PATCH 07/10] uio_hv_generic: use ISR callback method

2018-01-04 Thread Stephen Hemminger
The UIO IRQ handler doesn't need to be called from a tasklet. Signed-off-by: Stephen Hemminger --- drivers/uio/uio_hv_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/uio/uio_hv_generic.c b/drivers/uio/uio_hv_generic.c index

[PATCH 06/10] uio_hv_generic: create send and receive buffers

2018-01-04 Thread Stephen Hemminger
Map in receive and send buffers for networking in UIO device. These buffers are special and need to be setup by kernel API's. Signed-off-by: Stephen Hemminger --- drivers/uio/uio_hv_generic.c | 114 +-- 1 file changed, 109

[PATCH 09/10] uio_hv_generic: add rescind support

2018-01-04 Thread Stephen Hemminger
When host rescinds the device, the UIO driver will clear the interrupt state and notify application. The read (or write) on the interrupt FD will then fail with -EIO. This is simpler than adding lots extra uevent stuff inside UIO. Signed-off-by: Stephen Hemminger ---

[PATCH 08/10] uio_hv_generic: check that host supports monitor page

2018-01-04 Thread Stephen Hemminger
In order for userspace application to signal host, it needs the host to support the monitor page property. Check for the flag and fail if this is not supported. Signed-off-by: Stephen Hemminger --- drivers/uio/uio_hv_generic.c | 20 ++-- 1 file changed,

[PATCH 04/10] uio_hv_generic: use standard mmap for resources

2018-01-04 Thread Stephen Hemminger
The generic UIO mmap should work for us. Signed-off-by: Stephen Hemminger --- drivers/uio/uio_hv_generic.c | 33 +++-- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/drivers/uio/uio_hv_generic.c b/drivers/uio/uio_hv_generic.c

[PATCH 05/10] uio_hv_generic: make ring size configurable

2018-01-04 Thread Stephen Hemminger
Allow setting size of ring buffer for host communication via module parameter. Signed-off-by: Stephen Hemminger --- drivers/uio/uio_hv_generic.c | 25 + 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/drivers/uio/uio_hv_generic.c

[PATCH 00/10] hyperv bus and uio driver support improvements

2018-01-04 Thread Stephen Hemminger
These patches improve vmbus sysfs support for better management and make the UIO hyperv driver usable. The original version did not enough functionality to support userspace network drivers. Needed support of send/receive buffers and sub channels. Patches against current char-misc-next Stephen

[PATCH 01/10] vmbus: make channel attributes static

2018-01-04 Thread Stephen Hemminger
These channel attribute data structures are only used by vmbus_drv sysfs routines. Signed-off-by: Stephen Hemminger --- drivers/hv/vmbus_drv.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/hv/vmbus_drv.c

[PATCH 03/10] uio_hv_generic: fix configuration comments

2018-01-04 Thread Stephen Hemminger
The suggested method for configuration does not work with current kernels. Paths and ids changed. Signed-off-by: Stephen Hemminger --- drivers/uio/uio_hv_generic.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/uio/uio_hv_generic.c

[PATCH 02/10] vmbus: add monitor_id and subchannel_id to sysfs per channel

2018-01-04 Thread Stephen Hemminger
Useful to identify which network queue is associated with which vmbus channel. Signed-off-by: Stephen Hemminger --- drivers/hv/vmbus_drv.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/hv/vmbus_drv.c b/drivers/hv/vmbus_drv.c index

[PATCH 1/2] media: staging: use tabs instead of spaces at Kconfig and davinci

2018-01-04 Thread Mauro Carvalho Chehab
Even on text and Kconfigs, what we do on media is to use tabs for indentation. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/Kconfig | 14 +++--- drivers/staging/media/davinci_vpfe/TODO | 10 +- 2 files changed, 12

Re: WARNING in ion_ioctl

2018-01-04 Thread Laura Abbott
On 01/04/2018 06:13 AM, Dmitry Vyukov wrote: On Thu, Jan 4, 2018 at 3:06 PM, Greg KH wrote: On Thu, Jan 04, 2018 at 05:57:01AM -0800, syzbot wrote: Hello, syzkaller hit the following crash on 71ee203389f7cb1c1927eab22b95baa01405791c

Re: WARNING in __alloc_pages_slowpath

2018-01-04 Thread Laura Abbott
On 01/04/2018 06:10 AM, Vlastimil Babka wrote: On 01/04/2018 02:57 PM, syzbot wrote: Hello, syzkaller hit the following crash on 71ee203389f7cb1c1927eab22b95baa01405791c git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master compiler: gcc (GCC) 7.1.1 20170620 .config is

[PATCH] Staging: iio: Prefer using BIT macro

2018-01-04 Thread Sumit Pundir
This patch fixes the following checkpatch.pl error at multiple lines: CHECK: Prefer using the BIT macro Signed-off-by: Sumit Pundir --- drivers/staging/iio/cdc/ad7152.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git

Re: [PATCH] staging: android: check the return value of register_shrinker

2018-01-04 Thread Xiongwei Song
2018-01-04 22:55 GMT+08:00 Dan Carpenter : > On Thu, Jan 04, 2018 at 08:08:53AM +0800, Xiongwei Song wrote: >> register_shrinker call is made in ashmem_init, it may return error code, >> so we need to check it. >> >> Signed-off-by: Xiongwei Song >> ---

Re: [PATCH] staging: android: check the return value of register_shrinker

2018-01-04 Thread Dan Carpenter
On Thu, Jan 04, 2018 at 08:08:53AM +0800, Xiongwei Song wrote: > register_shrinker call is made in ashmem_init, it may return error code, > so we need to check it. > > Signed-off-by: Xiongwei Song > --- > drivers/staging/android/ashmem.c | 8 +++- > 1 file changed, 7

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2018-01-04 Thread David Howells
Arnd Bergmann wrote: > - mn10300 appears to be wrong, broken by David Howells in > commit 83c2dc15ce82 ("MN10300: Handle cacheable PCI regions > in pci_iomap()") for any driver calling ioremap() by to get uncached > memory, It's not clear what the right thing to do was,

Re: WARNING in ion_ioctl

2018-01-04 Thread Dan Carpenter
On Thu, Jan 04, 2018 at 03:13:01PM +0100, Dmitry Vyukov wrote: > On Thu, Jan 4, 2018 at 3:06 PM, Greg KH wrote: > > On Thu, Jan 04, 2018 at 05:57:01AM -0800, syzbot wrote: > >> Hello, > >> > >> syzkaller hit the following crash on > >>

Re: WARNING in ion_ioctl

2018-01-04 Thread Greg KH
On Thu, Jan 04, 2018 at 03:13:01PM +0100, Dmitry Vyukov wrote: > On Thu, Jan 4, 2018 at 3:06 PM, Greg KH wrote: > > On Thu, Jan 04, 2018 at 05:57:01AM -0800, syzbot wrote: > >> Hello, > >> > >> syzkaller hit the following crash on > >>

Re: WARNING in ion_ioctl

2018-01-04 Thread Greg KH
On Thu, Jan 04, 2018 at 05:57:01AM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 71ee203389f7cb1c1927eab22b95baa01405791c > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console

[PATCH] staging: iio: trigger: replace device_attr with device_attr_rw

2018-01-04 Thread Aishwarya Pant
This is a clean-up patch which replaces DEVICE_ATTR() macro with the file permission specific DEVICE_ATTR_RW() macro for compaction and readability. Done using coccinelle. Signed-off-by: Aishwarya Pant --- drivers/staging/iio/trigger/iio-trig-bfin-timer.c | 15

[PATCH] ANDROID: binder: Remove obsolete proc waitqueue.

2018-01-04 Thread Martijn Coenen
It was no longer being used. Signed-off-by: Martijn Coenen --- drivers/android/binder.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 778caed570c6..06067636 100644 --- a/drivers/android/binder.c +++

Re: [PATCH v3 00/27] kill devm_ioremap_nocache

2018-01-04 Thread Christophe LEROY
Le 25/12/2017 à 02:34, Yisheng Xie a écrit : On 2017/12/24 17:05, christophe leroy wrote: Le 23/12/2017 à 14:48, Greg KH a écrit : On Sat, Dec 23, 2017 at 06:55:25PM +0800, Yisheng Xie wrote: Hi all, When I tried to use devm_ioremap function and review related code, I found