Re: [PATCH v2] staging: android: ion: Add implementation of dma_buf_vmap and dma_buf_vunmap

2018-01-30 Thread alexey
On 01/31/2018 12:15 AM, Greg KH wrote: On Tue, Jan 30, 2018 at 10:39:13PM +0200, Alexey Skidanov wrote: dma_buf_vmap and dma_buf_vunmap allow drivers to access buffers, created by ion. But why would anyone ever want to do that? What is wrong with the existing interfaces that drivers use to

[PATCH] staging: android: ion: Fix compilation warning

2018-09-08 Thread Alexey Skidanov
Label unlock is defined but not used Signed-off-by: Alexey Skidanov --- drivers/staging/android/ion/ion.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 5fa5363..080ff1c 100644 --- a/drivers

Re: [PATCH] staging: android: ion: Fix compilation warning

2018-09-08 Thread Alexey Skidanov
On 09/08/2018 09:42 PM, Dan Carpenter wrote: > On Sat, Sep 08, 2018 at 07:33:40PM +0300, Alexey Skidanov wrote: >> Label unlock is defined but not used >> >> Signed-off-by: Alexey Skidanov > > There is no Fixes tag. I don't understand how the compile warnin

[PATCH] staging: android: ion: Add per-heap counters

2018-09-08 Thread Alexey Skidanov
The heap statistics have been removed and currently even basics statistics are missing. This patch creates per heap debugfs directory /sys/kernel/debug/ and adds two counters - the number of allocated buffers and number of allocated bytes. Signed-off-by: Alexey Skidanov --- drivers/staging

Re: [PATCH] staging: android: ion: Add per-heap counters

2018-09-10 Thread Alexey Skidanov
On 09/10/2018 12:36 PM, Dan Carpenter wrote: > On Sun, Sep 09, 2018 at 01:44:31AM +0300, Alexey Skidanov wrote: >> The heap statistics have been removed and currently even basics statistics >> are missing. > > Remind me why did we remove them? What was the git hash? 1

Re: [PATCH] staging: android: ion: Add per-heap counters

2018-09-10 Thread Alexey Skidanov
On 09/10/2018 11:27 AM, Greg KH wrote: > On Sun, Sep 09, 2018 at 01:44:31AM +0300, Alexey Skidanov wrote: >> The heap statistics have been removed and currently even basics statistics >> are missing. >> >> This patch creates per heap debugfs directory /sys/kernel/debu

Re: [PATCH] staging: android: ion: Add per-heap counters

2018-09-10 Thread Alexey Skidanov
On 09/10/2018 05:21 PM, Greg KH wrote: > On Mon, Sep 10, 2018 at 01:46:13PM +0300, Alexey Skidanov wrote: >> >> >> On 09/10/2018 11:27 AM, Greg KH wrote: >>> On Sun, Sep 09, 2018 at 01:44:31AM +0300, Alexey Skidanov wrote: >>>> The heap statistics h

Re: [PATCH] staging: android: ion: Add per-heap counters

2018-09-10 Thread Alexey Skidanov
On 09/10/2018 06:57 PM, Greg KH wrote: > On Mon, Sep 10, 2018 at 06:51:18PM +0300, Alexey Skidanov wrote: >> On 09/10/2018 05:21 PM, Greg KH wrote: >>> On Mon, Sep 10, 2018 at 01:46:13PM +0300, Alexey Skidanov wrote: >>>> On 09/10/2018 11:27 AM, Greg KH wrote:

Re: [PATCH] staging: android: ion: Add per-heap counters

2018-09-10 Thread Alexey Skidanov
On 09/10/2018 11:21 PM, Laura Abbott wrote: > On 09/10/2018 03:00 AM, Alexey Skidanov wrote: >> >> >> On 09/10/2018 12:36 PM, Dan Carpenter wrote: >>> On Sun, Sep 09, 2018 at 01:44:31AM +0300, Alexey Skidanov wrote: >>>> The heap statistics h

[PATCH v2] staging: android: ion: Add per-heap counters

2018-09-11 Thread Alexey Skidanov
. Signed-off-by: Alexey Skidanov --- drivers/staging/android/ion/ion.c | 50 --- drivers/staging/android/ion/ion.h | 6 ++--- 2 files changed, 45 insertions(+), 11 deletions(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c

Re: [PATCH v2] staging: android: ion: Add per-heap counters

2018-09-11 Thread Alexey Skidanov
On 09/11/2018 11:59 AM, Greg KH wrote: > On Tue, Sep 11, 2018 at 11:50:19AM +0300, Dan Carpenter wrote: >> On Tue, Sep 11, 2018 at 11:17:10AM +0300, Alexey Skidanov wrote: >>> @@ -546,6 +556,38 @@ void ion_device_add_heap(struct ion_heap *heap) >>> } &g

Re: [PATCH v2] staging: android: ion: Add per-heap counters

2018-09-11 Thread Alexey Skidanov
On 09/11/2018 12:15 PM, Dan Carpenter wrote: > On Tue, Sep 11, 2018 at 12:11:23PM +0300, Alexey Skidanov wrote: >> >> >> On 09/11/2018 11:59 AM, Greg KH wrote: >>> On Tue, Sep 11, 2018 at 11:50:19AM +0300, Dan Carpenter wrote: >>>> On Tue, Sep 11, 2018

Re: [PATCH v2] staging: android: ion: Add per-heap counters

2018-09-11 Thread Alexey Skidanov
On 09/11/2018 12:31 PM, Greg KH wrote: > On Tue, Sep 11, 2018 at 12:11:23PM +0300, Alexey Skidanov wrote: >> >> >> On 09/11/2018 11:59 AM, Greg KH wrote: >>> On Tue, Sep 11, 2018 at 11:50:19AM +0300, Dan Carpenter wrote: >>>> On Tue, Sep 11, 2018

[PATCH v3] staging: android: ion: Add per-heap counters

2018-09-11 Thread Alexey Skidanov
. Signed-off-by: Alexey Skidanov --- v3: Removed debugfs_create_dir() return value checking drivers/staging/android/ion/ion.c | 46 --- drivers/staging/android/ion/ion.h | 6 ++--- 2 files changed, 41 insertions(+), 11 deletions(-) diff --git a/drivers

Re: [PATCH v3] staging: android: ion: Add per-heap counters

2018-09-26 Thread Alexey Skidanov
On 09/21/2018 05:40 PM, Laura Abbott wrote: > On 09/11/2018 04:29 AM, Alexey Skidanov wrote: >> Heap statistics have been removed and currently even basics statistics >> are missing. >> >> This patch creates per heap debugfs directory >> /sys/kernel/debug/ &

[PATCH] staging: axis-fifo: add error handling of class_create()

2018-09-28 Thread Alexey Khoroshilov
Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/axis-fifo/axis-fifo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c index abeee0ecc122

[PATCH v4] staging: android: ion: Add per-heap counters

2018-09-30 Thread Alexey Skidanov
. Signed-off-by: Alexey Skidanov --- v3: Removed debugfs_create_dir() return value checking v4: Added spinlock to protect heap statistics drivers/staging/android/ion/ion.c | 50 --- drivers/staging/android/ion/ion.h | 10 +++- 2 files changed

staging: android: ion: aligned allocation support

2018-10-02 Thread Alexey Skidanov
, Alexey ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: staging: android: ion: aligned allocation support

2018-10-03 Thread Alexey Skidanov
On 10/03/2018 09:07 PM, Laura Abbott wrote: > On 10/02/2018 07:27 AM, Alexey Skidanov wrote: >> Hi, >> >> Sometimes HW requires memory buffer to be aligned in order to be used >> properly.  Of course, we may overcome the lack of aligned allocation >> support, but

RE: staging: android: ion: aligned allocation support

2018-10-08 Thread Skidanov, Alexey
> -Original Message- > From: Laura Abbott [mailto:labb...@redhat.com] > Sent: Monday, October 08, 2018 21:26 > To: Skidanov, Alexey ; > de...@driverdev.osuosl.org > Cc: Sumit Semwal > Subject: Re: staging: android: ion: aligned allocation support > > On

[PATCH v5] staging: android: ion: Add per-heap counters

2018-10-09 Thread Alexey Skidanov
. Signed-off-by: Alexey Skidanov --- v3: Removed debugfs_create_dir() return value checking v4: Added spinlock to protect heap statistics v5: Rebased on staging-next drivers/staging/android/ion/ion.c | 50 --- drivers/staging/android/ion

[PATCH] staging: android: ion: Fixed uninitialized heap name access

2018-10-22 Thread Alexey Skidanov
The heap name might be uninitialized and access might crash the kernel. Signed-off-by: Alexey Skidanov --- drivers/staging/android/ion/ion.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index

Re: [PATCH] staging: android: ion: Fixed uninitialized heap name access

2018-10-22 Thread Alexey Skidanov
On 10/22/18 17:32, Laura Abbott wrote: > On 10/22/2018 07:02 AM, Alexey Skidanov wrote: >> The heap name might be uninitialized and access might crash the >> kernel. >> > > The heap name should never be null so this seems like this is being > fixed in the wrong p

[PATCH] Add carve out heap name initialization

2018-10-22 Thread Alexey Skidanov
Heap name is mundatory. Signed-off-by: Alexey Skidanov --- drivers/staging/android/ion/ion_carveout_heap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/android/ion/ion_carveout_heap.c b/drivers/staging/android/ion/ion_carveout_heap.c index e129237..e89b464 100644 --- a

RE: [PATCH] staging: android: ion: Fixed uninitialized heap name access

2018-10-22 Thread Skidanov, Alexey
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Tuesday, October 23, 2018 08:33 > To: Skidanov, Alexey > Cc: Laura Abbott ; gre...@linuxfoundation.org; > de...@driverdev.osuosl.org > Subject: Re: [PATCH] staging: android: ion

Re: [PATCH] Add carve out heap name initialization

2018-11-08 Thread Alexey Skidanov
On 11/8/18 9:15 PM, Laura Abbott wrote: > On 10/22/18 2:15 PM, Alexey Skidanov wrote: >> Heap name is mundatory. >> > > I'm wary of this and the other change because it misses the > broader problem of dealing with the carveout heaps. > I still want to remove th

Re: [PATCH] Add carve out heap name initialization

2018-11-08 Thread Alexey Skidanov
On 11/8/18 9:41 PM, Laura Abbott wrote: > On 11/8/18 11:34 AM, Alexey Skidanov wrote: >> >> >> On 11/8/18 9:15 PM, Laura Abbott wrote: >>> On 10/22/18 2:15 PM, Alexey Skidanov wrote: >>>> Heap name is mundatory. >>>> >>> >>>

[PATCH] staging: android: ion: Add chunk heap initialization

2018-11-11 Thread Alexey Skidanov
Create chunk heap of specified size and base address by adding "ion_chunk_heap=size@start" kernel boot parameter. Signed-off-by: Alexey Skidanov --- drivers/staging/android/ion/ion_chunk_heap.c | 40 1 file changed, 40 insertions(+) diff --git a/drive

Re: [PATCH] staging: android: ion: Add chunk heap initialization

2018-11-25 Thread Alexey Skidanov
On 11/25/18 10:51 PM, Laura Abbott wrote: > On 11/11/18 11:29 AM, Alexey Skidanov wrote: >> Create chunk heap of specified size and base address by adding >> "ion_chunk_heap=size@start" kernel boot parameter. >> >> Signed-off-by: Alexey Skidanov &g

Re: [PATCH] staging: android: ion: Add chunk heap initialization

2018-11-25 Thread Alexey Skidanov
On 11/25/18 11:40 PM, Laura Abbott wrote: > On 11/25/18 1:22 PM, Alexey Skidanov wrote: >> >> >> On 11/25/18 10:51 PM, Laura Abbott wrote: >>> On 11/11/18 11:29 AM, Alexey Skidanov wrote: >>>> Create chunk heap of specified size and base address by addi

Re: [PATCH] staging: android: ion: Add chunk heap initialization

2018-11-26 Thread Alexey Skidanov
On 11/26/18 6:39 PM, Laura Abbott wrote: > On 11/25/18 2:02 PM, Alexey Skidanov wrote: >> >> >> On 11/25/18 11:40 PM, Laura Abbott wrote: >>> On 11/25/18 1:22 PM, Alexey Skidanov wrote: >>>> >>>> >>>> On 11/25/18 10:51 PM, Lau

Re: [PATCH] staging: android: ion: Add chunk heap initialization

2018-11-27 Thread Alexey Skidanov
On 11/27/18 9:20 PM, Laura Abbott wrote: > On 11/26/18 10:43 AM, Alexey Skidanov wrote: >> >> >> On 11/26/18 6:39 PM, Laura Abbott wrote: >>> On 11/25/18 2:02 PM, Alexey Skidanov wrote: >>>> >>>> >>>> On 11/25/18 11:40 PM, La

Re: [PATCH] staging: android: ion: Add chunk heap initialization

2018-11-28 Thread Alexey Skidanov
On 11/29/18 3:30 AM, Laura Abbott wrote: > On 11/27/18 12:07 PM, Alexey Skidanov wrote: >> >> >> On 11/27/18 9:20 PM, Laura Abbott wrote: >>> On 11/26/18 10:43 AM, Alexey Skidanov wrote: >>>> >>>> >>>> On 11/26/18 6:39 PM, La

Re: [PATCH] staging: android: ion: Add chunk heap initialization

2018-12-05 Thread Alexey Skidanov
On 11/29/18 8:25 AM, Alexey Skidanov wrote: > > > On 11/29/18 3:30 AM, Laura Abbott wrote: >> On 11/27/18 12:07 PM, Alexey Skidanov wrote: >>> >>> >>> On 11/27/18 9:20 PM, Laura Abbott wrote: >>>> On 11/26/18 10:43 AM, Alexey Skidanov wrot

Re: [PATCH v3] staging: android: ion: Add implementation of dma_buf_vmap and dma_buf_vunmap

2018-12-15 Thread Alexey Skidanov
On 12/16/18 7:20 AM, Liam Mark wrote: > On Tue, 6 Feb 2018, Alexey Skidanov wrote: > >> >> >> On 02/07/2018 01:56 AM, Laura Abbott wrote: >>> On 01/31/2018 10:10 PM, Alexey Skidanov wrote: >>>> >>>> On 01/31/2018 03:00 PM, Greg KH wrot

[PATCH] staging: android: ion: Add chunk heaps instantiation

2018-12-16 Thread Alexey Skidanov
forms, there is no defined way to create the heaps. This patch provides the way of chunk heaps creation using "ion_chunk_heap=name:size@start" kernel boot parameter. Link: http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2018-November/128495.html Signed-off-by:

Re: [PATCH v3] staging: android: ion: Add implementation of dma_buf_vmap and dma_buf_vunmap

2018-12-18 Thread Alexey Skidanov
On 12/17/18 20:42, Liam Mark wrote: > On Sun, 16 Dec 2018, Alexey Skidanov wrote: > >> >> >> On 12/16/18 7:20 AM, Liam Mark wrote: >>> On Tue, 6 Feb 2018, Alexey Skidanov wrote: >>> >>>> >>>> >>>> On 02/07/2018 01:

Re: [PATCH] staging: android: ion: Add chunk heaps instantiation

2018-12-20 Thread Alexey Skidanov
On 12/20/18 10:36 PM, Laura Abbott wrote: > On 12/16/18 2:46 AM, Alexey Skidanov wrote: >> Chunk heap instantiation should be supported for device tree platforms >> and >> non device tree platforms. For device tree platforms, it's a platform >> specific code res

Re: [PATCH] staging: android: ion: Add chunk heaps instantiation

2019-01-02 Thread Alexey Skidanov
On 1/3/19 12:37 AM, Laura Abbott wrote: > On 12/20/18 1:29 PM, Alexey Skidanov wrote: >> >> >> On 12/20/18 10:36 PM, Laura Abbott wrote: >>> On 12/16/18 2:46 AM, Alexey Skidanov wrote: >>>> Chunk heap instantiation should be supported for device tr

RE: [PATCH] staging: android: ion: Add chunk heaps instantiation

2019-01-04 Thread Skidanov, Alexey
> -Original Message- > From: Laura Abbott [mailto:labb...@redhat.com] > Sent: Friday, January 04, 2019 03:58 > To: Skidanov, Alexey ; gre...@linuxfoundation.org; > Sumit > Semwal > Cc: de...@driverdev.osuosl.org > Subject: Re: [PATCH] staging: andro

RE: [PATCH v3] staging: android: ion: Add implementation of dma_buf_vmap and dma_buf_vunmap

2019-01-04 Thread Skidanov, Alexey
> -Original Message- > From: Liam Mark [mailto:lm...@codeaurora.org] > Sent: Friday, January 04, 2019 19:42 > To: Skidanov, Alexey > Cc: Laura Abbott ; Greg KH ; > de...@driverdev.osuosl.org; tk...@android.com; r...@android.com; linux- > ker...@vger.kernel.

[PATCH] staging: android: ion: cma heap: Limit size of allocated buffer

2019-08-24 Thread Alexey Skidanov
requested size might be greater than 4GB and in this case the field length of the struct scatterlist is initialized incorrectly. To fix this, we check that requested size may fit into the field length of the struct scatterlist Signed-off-by: Alexey Skidanov --- drivers/staging/android/ion/ion.h

Re: [PATCH] staging: android: ion: cma heap: Limit size of allocated buffer

2019-08-26 Thread Alexey Skidanov
On 8/26/19 11:36 AM, Laura Abbott wrote: > On 8/23/19 10:28 PM, Alexey Skidanov wrote: >> In ion_cma_heap, the allocated buffer is represented by a single >> struct scatterlist instance. The length field of this struct is >> 32 bit, hence the maximal size of requested buf

[PATCH] staging: dgnc: implement proper error handling in dgnc_start()

2014-12-19 Thread Alexey Khoroshilov
dgnc_start() ignores errors in class_create() and device_create() and it does not deallocate resources if dgnc_tty_preinit() fails. The patch implements proper error handling. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging

[PATCH] staging: rtl8723au: fix sparse warning

2014-12-22 Thread Alexey Tulia
drivers/staging/rtl8723au/core/rtw_xmit.c:2375 warning: symbol 'rtl8723a_EfusePgPacketRead' was not declared. Should it be static? Function 'rtw_ack_tx_done23a' seems to be unused in current staging code. Signed-off-by: Alexey Tulia --- drivers/staging/rtl8723au

[PATCH v3] staging: rtl8723au: fix sparse warning

2014-12-23 Thread Alexey Tulia
drivers/staging/rtl8723au/core/rtw_xmit.c:2375 warning: symbol 'rtw_ack_tx_done23a' was not declared. Should it be static? Function 'rtw_ack_tx_done23a' seems to be unused in current staging code. Signed-off-by: Alexey Tulia --- drivers/staging/rtl8723au/core/rtw_xmit.c |

[PATCH] staging: lustre: do not ignore try_module_get() fail in obd_class_open()

2014-12-26 Thread Alexey Khoroshilov
obd_class_open() ignores error code of try_module_get(), while it can lead to race with module unload. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 3 +-- 1 file changed, 1

user provided data for ion buffer

2019-04-07 Thread Skidanov, Alexey
think. Thanks, Alexey ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

ION doesn't set the cache attributes according to ION_FLAG_CACHED buffer flag

2019-05-12 Thread Alexey Skidanov
is scanned. If RBT defines the memory type for the requested PFN, this memory type is used, otherwise the PFN is mapped as uncachable. Is it x86 specific issue? I have implemented and tested the fix for this issue, but it looks like it should be submitted to the PAT. Thanks, Alexey

[PATCH] staging: android: ion: Clean unused debug_show memeber of the heap object

2018-08-26 Thread Alexey Skidanov
Signed-off-by: Alexey Skidanov --- drivers/staging/android/ion/ion.h | 5 - drivers/staging/android/ion/ion_system_heap.c | 24 2 files changed, 29 deletions(-) diff --git a/drivers/staging/android/ion/ion.h b/drivers/staging/android/ion/ion.h index

[PATCH v2] staging: android: ion: Clean unused debug_show memeber of the heap object

2018-08-26 Thread Alexey Skidanov
ION had supported heap debug info under /sys/kernel/debug/ion/. This support have been removed but some leftovers (dead code) still exist. This patch removes the existing dead code. Signed-off-by: Alexey Skidanov --- drivers/staging/android/ion/ion.h | 5 - drivers/staging

Re: [PATCH v2] staging: android: ion: Clean unused debug_show memeber of the heap object

2018-09-04 Thread Alexey Skidanov
On 09/04/2018 09:23 PM, Laura Abbott wrote: > On 08/26/2018 01:08 PM, Alexey Skidanov wrote: >> ION had supported heap debug info under >> /sys/kernel/debug/ion/. >> This support have been removed but some leftovers (dead code) still >> exist. >> >> Th

[PATCH v3] staging: android: ion: Clean unused debug_show memeber of the heap object

2018-09-04 Thread Alexey Skidanov
ION had supported heap debug info under /sys/kernel/debug/ion/. This support have been removed but some leftovers (dead code) still exist. This patch removes the existing dead code. Fixes: 15c6098cfec5 ("staging: android: ion: Remove ion_handle and ion_client") Signed-off-by: Alexe

[media] s5p-cec: strange clk enabling pattern

2017-02-23 Thread Alexey Khoroshilov
data(dev); int ret; ret = clk_prepare_enable(cec->clk); if (ret < 0) return ret; return 0; } Is it ok to enable/disable clock in rusume/suspend only? Or have I missed anything? -- Thank you, Alexey Khoroshilov Linux Verification Center, ISPRAS

Re: [PATCH 02/39] proc: introduce proc_create_seq{,_data}

2018-04-19 Thread Alexey Dobriyan
On Thu, Apr 19, 2018 at 02:41:03PM +0200, Christoph Hellwig wrote: > Variants of proc_create{,_data} that directly take a struct seq_operations > argument and drastically reduces the boilerplate code in the callers. > +static int proc_seq_open(struct inode *inode, struct file *file) > +{ > + s

Re: [PATCH 14/39] proc: introduce proc_create_net_single

2018-04-19 Thread Alexey Dobriyan
On Thu, Apr 19, 2018 at 02:41:15PM +0200, Christoph Hellwig wrote: > Variant of proc_create_data that directly take a seq_file show > +struct proc_dir_entry *proc_create_net_single(const char *name, umode_t mode, > + struct proc_dir_entry *parent, > + int (*show)(struct seq

Re: [PATCH 03/39] proc: introduce proc_create_seq_private

2018-04-19 Thread Alexey Dobriyan
On Thu, Apr 19, 2018 at 02:41:04PM +0200, Christoph Hellwig wrote: > Variant of proc_create_data that directly take a struct seq_operations > --- a/fs/proc/internal.h > +++ b/fs/proc/internal.h > @@ -45,6 +45,7 @@ struct proc_dir_entry { > const struct inode_operations *proc_iops; > co

Re: simplify procfs code for seq_file instances

2018-04-19 Thread Alexey Dobriyan
> git://git.infradead.org/users/hch/misc.git proc_create I want to ask if it is time to start using poorman function overloading with _b_c_e(). There are millions of allocation functions for example, all slightly difference, and people will add more. Seeing /proc interfaces doubled like this

Re: simplify procfs code for seq_file instances

2018-04-25 Thread Alexey Dobriyan
And I very much disagree with a tradeoff that keeps 5000 lines of > > > code vs a few new helpers. > > > > OK, the curiosity and suspense are killing me. What the heck is > > "function overloading with _b_c_e()"? > > The way I understood Alexey was to u

Re: simplify procfs code for seq_file instances V2

2018-05-06 Thread Alexey Dobriyan
On Wed, Apr 25, 2018 at 05:47:47PM +0200, Christoph Hellwig wrote: > Changes since V1: > - open code proc_create_data to avoid setting not fully initialized >entries live > - use unsigned int for state_size Need this to maintain sizeof(struct proc_dir_entry): Otherwise ACK fs/proc/ part. d

Re: simplify procfs code for seq_file instances V2

2018-05-09 Thread Alexey Dobriyan
On Sun, May 06, 2018 at 06:45:31PM +0100, Al Viro wrote: > On Sun, May 06, 2018 at 08:19:49PM +0300, Alexey Dobriyan wrote: > > @@ -62,9 +62,9 @@ struct proc_dir_entry { > > umode_t mode; > > u8 namelen; > > #ifdef CONFIG_64BIT > > -#define SI

Re: [lustre-devel] [PATCH] staging: lustre: delete the filesystem from the tree.

2018-06-03 Thread Alexey Lyashkov
> 4 июня 2018 г., в 6:54, NeilBrown написал(а): > > On Sun, Jun 03 2018, Dilger, Andreas wrote: > >> On Jun 1, 2018, at 17:19, NeilBrown wrote: >>> >>> On Fri, Jun 01 2018, Doug Oucharek wrote: >>> Would it makes sense to land LNet and LNDs on their own first? Get the networking h

Re: [lustre-devel] [PATCH] staging: lustre: delete the filesystem from the tree.

2018-06-03 Thread Alexey Lyashkov
> 4 июня 2018 г., в 7:15, Andreas Dilger написал(а): > > On Jun 3, 2018, at 9:59 PM, Alexey Lyashkov wrote: >> >>> On Sun, Jun 03 2018, Dilger, Andreas wrote: >>> >>>> LNet is originally based on a high-performance networking stack called >&

[PATCH 1/3] staging: dgap: remove unneeded status variables

2014-02-23 Thread Alexey Khoroshilov
ictable at any time. Signed-off-by: Alexey Khoroshilov --- drivers/staging/dgap/dgap_driver.c | 105 - 1 file changed, 46 insertions(+), 59 deletions(-) diff --git a/drivers/staging/dgap/dgap_driver.c b/drivers/staging/dgap/dgap_driver.c index 089d017fc291..d7

[PATCH 2/3] staging: dgap: implement proper error handling in dgap_start()

2014-02-23 Thread Alexey Khoroshilov
dgap_start() ignored errors in class_create() and device_create(). The patch implements proper error handling. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/dgap/dgap_driver.c | 42 +++--- 1

[PATCH 3/3] staging: dgap: fix error handling in dgap_init_module()

2014-02-23 Thread Alexey Khoroshilov
No need to call pci_unregister_driver() if pci_register_driver() failed. Signed-off-by: Alexey Khoroshilov --- drivers/staging/dgap/dgap_driver.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/drivers/staging/dgap/dgap_driver.c b/drivers/staging/dgap

[PATCH 1/3] staging: dgap: remove unneeded status variables

2014-03-02 Thread Alexey Khoroshilov
ictable at any time. Signed-off-by: Alexey Khoroshilov --- drivers/staging/dgap/dgap.c | 97 - 1 file changed, 42 insertions(+), 55 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index cbce457..5271856 100644 ---

[PATCH 3/3] staging: dgap: fix error handling in dgap_init_module()

2014-03-02 Thread Alexey Khoroshilov
No need to call pci_unregister_driver() if pci_register_driver() failed. Signed-off-by: Alexey Khoroshilov --- drivers/staging/dgap/dgap.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index b4157d7

[PATCH 2/3] staging: dgap: implement proper error handling in dgap_start()

2014-03-02 Thread Alexey Khoroshilov
dgap_start() ignored errors in class_create() and device_create(). The patch implements proper error handling. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/dgap/dgap.c | 22 -- 1 file changed, 20

[PATCH 1/2] staging: dgap: remove unneeded status variables

2014-03-08 Thread Alexey Khoroshilov
ictable at any time. Also "dgap_downld" device was removed, while device_destroy(MKDEV(DIGI_DGAP_MAJOR, 1)) is still in dgap_cleanup_module(). The patch removes it by the way. Signed-off-by: Alexey Khoroshilov --- drivers/staging/dgap/dgap.c | 81 ++---

[PATCH 2/2] staging: dgap: implement proper error handling in dgap_start()

2014-03-08 Thread Alexey Khoroshilov
dgap_start() ignored errors in class_create() and device_create(). The patch implements proper error handling. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/dgap/dgap.c | 18 +- 1 file changed, 17 insertions

[PATCH] staging: iio: ad7152: Fix deadlock in ad7152_write_raw_samp_freq()

2017-05-26 Thread Alexey Khoroshilov
-by: Alexey Khoroshilov --- drivers/staging/iio/cdc/ad7152.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/iio/cdc/ad7152.c b/drivers/staging/iio/cdc/ad7152.c index dc6ecd824365..ff10d1f0a7e4 100644 --- a/drivers/staging/iio/cdc/ad7152.c +++ b/drivers/stag

[PATCH] [media] lirc_imon: do not leave imon_probe() with mutex held

2015-11-14 Thread Alexey Khoroshilov
n project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Fixes: af8a819a2513 ("[media] lirc_imon: simplify error handling code") --- drivers/staging/media/lirc/lirc_imon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/media/lirc/lirc_imon.c b/drivers

[PATCH] staging: rtl8188eu: remove an extra space

2015-11-21 Thread Alexey Tulia
drivers/staging/rtl8188eu/core/rtw_wlan_util.c:1377 check_assoc_AP() warn: inconsistent indenting Signed-off-by: Alexey Tulia --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b

[PATCH] staging: vt6656: fix definitions of DEVICE_FLAGS_* flags

2015-11-21 Thread Alexey Tulia
test_bit and set_bit take the bit number to operate on, rather than a mask. This patch fixes the DEVICE_FLAGS_* definitions so that they represent the bit index in priv->flags as opposed to the mask returned by the BIT macro. Signed-off-by: Alexey Tulia --- drivers/staging/vt6656/device.h

[PATCH] staging: wilc1000: fix double mutex_unlock on failure path in wilc_wlan_cleanup()

2015-12-04 Thread Alexey Khoroshilov
ect (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/wilc1000/wilc_wlan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/wilc1000/wilc_wlan.c b/drivers/staging/wilc1000/wilc_wlan.c index c02665747705..cd7f52a51173 100644 --- a/drivers/staging/wilc1

[PATCH] staging: wilc1000: fix double mutex_unlock on failure path in wilc_wlan_cleanup()

2015-12-20 Thread Alexey Khoroshilov
If hif_read_reg() or hif_write_reg() fail in wilc_wlan_cleanup(), it calls release_bus() and continues execution. But it leads to double release_bus() call that means double unlock of g_linux_wlan->hif_cs mutex. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Ale

[PATCH v3] staging: wilc1000: fix double mutex_unlock on failure path in wilc_wlan_cleanup()

2015-12-22 Thread Alexey Khoroshilov
If hif_read_reg() or hif_write_reg() fail in wilc_wlan_cleanup(), it calls release_bus() and continues execution. But it leads to double release_bus() call that means double unlock of g_linux_wlan->hif_cs mutex. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Ale

[PATCH] added fbtft ssd1305 controller support

2016-01-26 Thread Alexey Mednyy
Signed-off-by: Alexey Mednyy --- drivers/staging/fbtft/Kconfig | 6 + drivers/staging/fbtft/Makefile | 1 + drivers/staging/fbtft/fb_ssd1305.c | 271 + 3 files changed, 278 insertions(+) create mode 100644 drivers/staging/fbtft/fb_ssd1305.c diff

[PATCH] add fbtft ssd1325 controller support

2016-01-26 Thread Alexey Mednyy
Signed-off-by: Alexey Mednyy --- drivers/staging/fbtft/Kconfig | 6 + drivers/staging/fbtft/Makefile | 1 + drivers/staging/fbtft/fb_ssd1325.c | 266 + 3 files changed, 273 insertions(+) create mode 100644 drivers/staging/fbtft/fb_ssd1325.c diff

Re: [PATCH] added fbtft ssd1305 controller support

2016-01-26 Thread Alexey Mednyy
On 01/26/2016 05:00 PM, Dan Carpenter wrote: The subject should be: [PATCH] Staging: fbtft: added ssd1305 controller support On Tue, Jan 26, 2016 at 04:07:24PM +0300, Alexey Mednyy wrote: Signed-off-by: Alexey Mednyy --- drivers/staging/fbtft/Kconfig | 6 + drivers/staging/fbtft

Re: [PATCH] add fbtft ssd1325 controller support

2016-01-26 Thread Alexey Mednyy
On 01/26/2016 05:09 PM, Dan Carpenter wrote: Same stuff. Run checkpatch.pl. + gpio_set_value(par->gpio.dc, 1); + /* Write data */ + + ret = + par->fbtftops.write(par, par->txbuf.buf, + par->info->var.xres * par->info->var.yres / 2

[PATCH v2] added fbtft ssd1305 controller support

2016-01-26 Thread Alexey Mednyy
Signed-off-by: Alexey Mednyy --- drivers/staging/fbtft/Kconfig | 6 ++ drivers/staging/fbtft/Makefile | 1 + drivers/staging/fbtft/fb_ssd1305.c | 216 + 3 files changed, 223 insertions(+) create mode 100644 drivers/staging/fbtft/fb_ssd1305.c

[PATCH v2] add fbtft ssd1325 controller support

2016-01-26 Thread Alexey Mednyy
Signed-off-by: Alexey Mednyy --- drivers/staging/fbtft/Kconfig | 6 ++ drivers/staging/fbtft/Makefile | 1 + drivers/staging/fbtft/fb_ssd1325.c | 205 + 3 files changed, 212 insertions(+) create mode 100644 drivers/staging/fbtft/fb_ssd1325.c

[PATCH v3] Staging: fbtft: add ssd1325 controller support

2016-01-27 Thread Alexey Mednyy
ght = HEIGHT, + .txbuflen = WIDTH * HEIGHT / 2, + .gamma_num = GAMMA_NUM, + .gamma_len = GAMMA_LEN, + .gamma = DEFAULT_GAMMA, + .fbtftops = { + .write_vmem = write_vmem, + .init_display = init_display, + .set_addr_win = set_addr_win, + .

[PATCH v3] Staging: fbtft: add ssd1305 controller support

2016-01-27 Thread Alexey Mednyy
display, + .set_addr_win = set_addr_win, + .blank = blank, + .set_gamma = set_gamma, + }, +}; + +FBTFT_REGISTER_DRIVER(DRVNAME, "solomon,ssd1305", &display); + +MODULE_ALIAS("spi:&qu

Re: [PATCH v2] add fbtft ssd1325 controller support

2016-01-27 Thread Alexey Mednyy
On 01/27/2016 02:36 AM, Greg KH wrote: > On Tue, Jan 26, 2016 at 07:31:16PM +0300, Alexey Mednyy wrote: >> Signed-off-by: Alexey Mednyy > Why? Sorry, that was required by some other project I sent patches to. > > I can't take patches without any changelog entries, sor

[PATCH v4] Staging: fbtft: add ssd1325 controller support

2016-01-27 Thread Alexey Mednyy
That patch adds support for SSD1325 controller. That is 4bpp grayscale OLED display controller present in several displays eq: Winstar WEX012864 Signed-off-by: Alexey Mednyy --- drivers/staging/fbtft/Kconfig | 6 ++ drivers/staging/fbtft/Makefile | 1 + drivers/staging/fbtft

[PATCH v4] Staging: fbtft: add ssd1305 controller support

2016-01-27 Thread Alexey Mednyy
That patch adds support for SSD1305 controller. That is monochrome OLED display controller present in several displays eq: Winstar WEX012864 Signed-off-by: Alexey Mednyy --- drivers/staging/fbtft/Kconfig | 6 ++ drivers/staging/fbtft/Makefile | 1 + drivers/staging/fbtft/fb_ssd1305

[PATCH] staging: vt6656: don't return zero on failure path in vt6656_probe()

2015-03-13 Thread Alexey Khoroshilov
If ieee80211_alloc_hw() fails in vt6656_probe(), it breaks off initialization, but returns zero. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/vt6656/main_usb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers

[PATCH] staging: ozwpan: implement error handling in ozwpan_init()

2015-03-20 Thread Alexey Khoroshilov
Errors are correctly handled in oz_cdev_register() and oz_protocol_init(), but then they are ignored in ozwpan_init(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/ozwpan/ozmain.c | 14 -- 1 file changed, 12

[PATCH] staging: r8188eu: Add _enter_critical_mutex() error handling

2015-10-09 Thread Alexey Khoroshilov
-by: Alexey Khoroshilov --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 5 +++-- drivers/staging/rtl8188eu/include/osdep_service.h | 9 - drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 ++- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 5 - 4 files changed, 9

[PATCH v2] staging: r8188eu: Add _enter_critical_mutex() error handling

2015-10-17 Thread Alexey Khoroshilov
-by: Alexey Khoroshilov --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 5 +++-- drivers/staging/rtl8188eu/include/osdep_service.h | 9 - drivers/staging/rtl8188eu/os_dep/os_intfs.c | 3 ++- drivers/staging/rtl8188eu/os_dep/usb_ops_linux.c | 5 - 4 files changed, 9

[BUG] IB/hfi1: might sleep under spinlock in hfi1_ioctl()

2015-10-30 Thread Alexey Khoroshilov
roject (linuxtesting.org). -- Alexey Khoroshilov Linux Verification Center, ISPRAS web: http://linuxtesting.org ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH 1/2] staging: gdm7240: alloc_mux_rx() does not need GFP_ATOMIC

2013-10-08 Thread Alexey Khoroshilov
As far as alloc_mux_rx() is called from probe() only there is no need in GFP_ATOMIC here. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/gdm724x/gdm_mux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 2/2] staging: gdm7240: fix memory leak on failure path

2013-10-08 Thread Alexey Khoroshilov
init_usb() may fail after some of mux_rxes already allocated. So we need to release them on the failure path. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/gdm724x/gdm_mux.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH] staging: gdm724x: fix leak at failure path in gdm_usb_probe()

2013-11-15 Thread Alexey Khoroshilov
und by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/gdm724x/gdm_usb.c | 40 +-- 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/drivers/staging/gdm724x/gdm_usb.c b/drivers/stag

[PATCH] [media] go7007-loader: fix usb_dev leak

2013-12-20 Thread Alexey Khoroshilov
There is usb_get_dev() in go7007_loader_probe(), but there is no usb_put_dev() anywhere. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/media/go7007/go7007-loader.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion

[PATCH] [media] as102: fix leaks at failure paths in as102_usb_probe()

2013-12-27 Thread Alexey Khoroshilov
Failure handling is incomplete in as102_usb_probe(). The patch implements proper resource deallocations. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/media/as102/as102_usb_drv.c | 9 - 1 file changed, 8 insertions

[PATCH] staging: wlan-ng: fix leaks on failure paths in prism2sta_probe_usb()

2014-01-10 Thread Alexey Khoroshilov
. hfa384x_destroy() is just noop in init state. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/staging/wlan-ng/prism2usb.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2usb.c b

  1   2   >