Re: [RFC PATCH 0/8] staging: erofs: decompression inplace approach

2019-06-17 Thread Greg Kroah-Hartman
On Tue, Jun 18, 2019 at 09:47:08AM +0800, Gao Xiang wrote: > > > On 2019/6/18 4:36, Greg Kroah-Hartman wrote: > > On Sat, Jun 15, 2019 at 02:16:11AM +0800, Gao Xiang wrote: > >> At last, this is RFC patch v1, which means it is not suitable for > >> merging soon... I'm still working on it,

Re: [PATCH V5 11/16] scsi: aha152x: use sg helper to operate scatterlist

2019-06-17 Thread Finn Thain
On Tue, 18 Jun 2019, Ming Lei wrote: > From: Finn Thain > > Use the scatterlist iterators and remove direct indexing of the > scatterlist array. > > This way allows us to pre-allocate one small scatterlist, which can be > chained with one runtime allocated scatterlist if the pre-allocated one

[Patch v3] staging: rtl8723bs: hal: odm_HWConfig: Unneeded variable: "result". Return "HAL_STATUS_SUCCESS"

2019-06-17 Thread Hariprasad Kelam
Remove function ODM_ConfigMACWithHeaderFile as trace is not necessary and as it is getting called only once and call direct function "ODM_ReadAndConfig_MP_8723B_MAC_REG" Issue identified by coccicheck Signed-off-by: Hariprasad Kelam changes v2: fixed typo in commit message changes v3:

Re: [RFC PATCH 0/8] staging: erofs: decompression inplace approach

2019-06-17 Thread Gao Xiang
On 2019/6/18 4:36, Greg Kroah-Hartman wrote: > On Sat, Jun 15, 2019 at 02:16:11AM +0800, Gao Xiang wrote: >> At last, this is RFC patch v1, which means it is not suitable for >> merging soon... I'm still working on it, testing its stability >> these days and hope these patches get merged for

[Patch v2] staging: rtl8723bs: os_dep: ioctl_linux: make use of kzalloc

2019-06-17 Thread Hariprasad Kelam
kmalloc with memset can be replaced with kzalloc. Signed-off-by: Hariprasad Kelam - changes in v2: Replace rtw_zmalloc with kzalloc --- --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git

[PATCH V5 14/16] scsi: ppa: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Reviewed-by: Christoph Hellwig

[PATCH V5 16/16] NCR5380: Support chained sg lists

2019-06-17 Thread Ming Lei
From: Finn Thain My understanding is that support for chained scatterlists is to become mandatory for LLDs. Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime

[PATCH V5 11/16] scsi: aha152x: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
From: Finn Thain Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Finn added the

[PATCH V5 07/16] usb: image: microtek: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Cc: Oliver Neukum Cc: Greg

[PATCH V5 13/16] scsi: pcmcia: nsp_cs: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Reviewed-by: Christoph Hellwig

[PATCH V5 08/16] staging: unisys: visorhba: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Cc: de...@driverdev.osuosl.org Cc:

[PATCH V5 15/16] scsi: wd33c93: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Reviewed-by: Christoph Hellwig

[PATCH V5 06/16] scsi: pmcraid: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Reviewed-by: Christoph Hellwig

[PATCH V5 09/16] staging: rtsx: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Cc: Kim Bradley Cc:

[PATCH V5 12/16] scsi: imm: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Reviewed-by: Christoph Hellwig

[PATCH V5 10/16] s390: zfcp_fc: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Cc: Steffen Maier Cc: Benjamin

[PATCH V5 05/16] scsi: ipr: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Reviewed-by: Bart Van Assche

[PATCH V5 02/16] scsi: advansys: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Reviewed-by: Ewan D. Milne

[PATCH V5 04/16] scsi: mvumi: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Reviewed-by: Christoph Hellwig

[PATCH V5 03/16] scsi: lpfc: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Reviewed by: Ewan D. Milne

[PATCH V5 00/16] use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Hi, Scsi MQ makes a large static allocation for the first scatter gather list chunk for the driver to use. This is a performance headache we'd like to fix by reducing the size of the allocation to a 2 element array. Doing this will break the current guarantee that any driver using SG_ALL

[PATCH V5 01/16] scsi: vmw_pscsi: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
Use the scatterlist iterators and remove direct indexing of the scatterlist array. This way allows us to pre-allocate one small scatterlist, which can be chained with one runtime allocated scatterlist if the pre-allocated one isn't enough for the whole request. Reviewed-by: Ewan D. Milne

Re: [PATCH] staging: rtl8723bs: os_dep: ioctl_linux: Make use rtw_zmalloc

2019-06-17 Thread Hariprasad Kelam
On Sun, Jun 16, 2019 at 10:15:22AM +0300, Dan Carpenter wrote: > On Sun, Jun 16, 2019 at 11:02:50AM +0530, Hariprasad Kelam wrote: > > rtw_malloc with memset can be replace with rtw_zmalloc. > > > > Signed-off-by: Hariprasad Kelam > > --- > > drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 12

[PATCH] staging: rtl8723bs: hal: rtl8723b_rf6052: fix spaces preferred around unary operator

2019-06-17 Thread Hariprasad Kelam
ERROR: spaces required around that '<<' (ctx:VxV) Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/rtl8723b_rf6052.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_rf6052.c

[PATCH 3/3] staging: rtl8723bs: hal: rtl8723b_hal_init: Remove set but unused variable

2019-06-17 Thread Hariprasad Kelam
Remove variable pHalData as it is not being used in function. Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c

[PATCH 2/3] staging: rtl8723bs: hal: rtl8723b_hal_init: fix Using comparison to true is error prone

2019-06-17 Thread Hariprasad Kelam
This patch tries to fix below issues reported by checkpatch CHECK: Using comparison to true is error prone CHECK: Using comparison to true is false prone Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 38 +++ 1 file changed, 19

[PATCH 1/3] staging: rtl8723bs: hal: rtl8723b_hal_init: fix Comparison to NULL

2019-06-17 Thread Hariprasad Kelam
This patch tries to fix below issues reported by checkpatch CHECK: Comparison to NULL could be written "!efuseTbl" CHECK: Comparison to NULL could be written "!psta" Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 4 ++-- 1 file changed, 2 insertions(+),

Re: [PATCH v3 2/7] lib/hexdump.c: Relax rowsize checks in hex_dump_to_buffer

2019-06-17 Thread Alastair D'Silva
On Mon, 2019-06-17 at 15:47 -0700, Randy Dunlap wrote: > Hi, > Just a comment style nit below... > > On 6/16/19 7:04 PM, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > This patch removes the hardcoded row limits and allows for > > other lengths. These lengths must still be a

Re: [PATCH V4 11/16] scsi: aha152x: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
On Tue, Jun 18, 2019 at 09:35:48AM +1000, Finn Thain wrote: > On Mon, 17 Jun 2019, Finn Thain wrote: > > > On Mon, 17 Jun 2019, Ming Lei wrote: > > > > > Use the scatterlist iterators and remove direct indexing of the > > > scatterlist array. > > > > > > This way allows us to pre-allocate one

Re: [PATCH V4 00/16] use sg helper to operate scatterlist

2019-06-17 Thread Bart Van Assche
On 6/16/19 8:03 PM, Ming Lei wrote: Scsi MQ makes a large static allocation for the first scatter gather list chunk for the driver to use. This is a performance headache we'd like to fix by reducing the size of the allocation to a 2 element array. Doing this will break the current guarantee

Re: [PATCH V4 11/16] scsi: aha152x: use sg helper to operate scatterlist

2019-06-17 Thread Finn Thain
On Mon, 17 Jun 2019, Finn Thain wrote: > On Mon, 17 Jun 2019, Ming Lei wrote: > > > Use the scatterlist iterators and remove direct indexing of the > > scatterlist array. > > > > This way allows us to pre-allocate one small scatterlist, which can be > > chained with one runtime allocated

Re: [PATCH v3 2/7] lib/hexdump.c: Relax rowsize checks in hex_dump_to_buffer

2019-06-17 Thread Randy Dunlap
Hi, Just a comment style nit below... On 6/16/19 7:04 PM, Alastair D'Silva wrote: > From: Alastair D'Silva > > This patch removes the hardcoded row limits and allows for > other lengths. These lengths must still be a multiple of > groupsize. > > This allows structs that are not 16/32 bytes to

Re: [RFC PATCH 0/8] staging: erofs: decompression inplace approach

2019-06-17 Thread Greg Kroah-Hartman
On Sat, Jun 15, 2019 at 02:16:11AM +0800, Gao Xiang wrote: > At last, this is RFC patch v1, which means it is not suitable for > merging soon... I'm still working on it, testing its stability > these days and hope these patches get merged for 5.3 LTS > (if 5.3 is a LTS version). Why would 5.3 be

Re: [PATCH v2 3/4] iio: adc: ad7606: Add support for software mode for ad7616

2019-06-17 Thread Jonathan Cameron
On Sat, 8 Jun 2019 12:30:39 +0100 Jonathan Cameron wrote: > On Mon, 27 May 2019 15:56:49 +0300 > Beniamin Bia wrote: > > > Support for ad7616 running in software was added. In order > > to activate the software mode, HW_RNGSEL pins must be pulled low. > > Oversampling and input ranges are now

Re: [PATCH] Staging: iio: adt7316: use correct headers for gpio

2019-06-17 Thread Jonathan Cameron
On Mon, 17 Jun 2019 13:09:20 +0200 Arnd Bergmann wrote: > When building without CONFIG_GPIOLIB, we get a compile-time failure: > > drivers/staging/iio/addac/adt7316.c:947:3: error: implicit declaration of > function 'gpiod_set_value' [-Werror,-Wimplicit-function-declaration] >

[PATCHv2] x86/hyperv: Hold cpus_read_lock() on assigning reenlightenment vector

2019-06-17 Thread Dmitry Safonov
KVM support may be compiled as dynamic module, which triggers the following splat on modprobe (under CONFIG_DEBUG_PREEMPT): KVM: vmx: using Hyper-V Enlightened VMCS BUG: using smp_processor_id() in preemptible [] code: modprobe/466 caller is debug_smp_processor_id+0x17/0x19 CPU: 0

[PATCH] staging: Add missing newline at end of file

2019-06-17 Thread Geert Uytterhoeven
"git diff" says: \ No newline at end of file after modifying the files. Signed-off-by: Geert Uytterhoeven --- drivers/staging/mt7621-dts/TODO | 2 +- drivers/staging/rts5208/TODO| 2 +- drivers/staging/vt6655/test | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff

Re: [PATCH] staging: erofs: clean up initialization of pointer de

2019-06-17 Thread Gao Xiang
On 2019/6/17 20:55, Colin King wrote: > From: Colin Ian King > > Currently pointer de is being initialized with a value that is > never read and a few statements later de is being re-assigned. Clean > this up by ininitialzing de and removing the re-assignment. > > Addresses-Coverity:

Re: [PATCH v1 4/4] staging: media: tegra-vde: Defer dmabuf's unmapping

2019-06-17 Thread Dmitry Osipenko
17.06.2019 16:33, Hans Verkuil пишет: > On 6/2/19 11:37 PM, Dmitry Osipenko wrote: >> Frequent IOMMU remappings take about 50% of CPU usage because there is >> quite a lot to remap. Defer dmabuf's unmapping by 5 seconds in order to >> mitigate the mapping overhead which goes away completely and

Re: [PATCH v1 3/4] staging: media: tegra-vde: Add IOMMU support

2019-06-17 Thread Dmitry Osipenko
17.06.2019 16:31, Hans Verkuil пишет: > On 6/2/19 11:37 PM, Dmitry Osipenko wrote: >> All Tegra's could provide memory isolation for the video decoder >> hardware using IOMMU, it is also required for Tegra30+ in order >> to handle sparse dmabuf's which GPU exports in a default kernel >>

Re: [PATCH v1 4/4] staging: media: tegra-vde: Defer dmabuf's unmapping

2019-06-17 Thread Hans Verkuil
On 6/2/19 11:37 PM, Dmitry Osipenko wrote: > Frequent IOMMU remappings take about 50% of CPU usage because there is > quite a lot to remap. Defer dmabuf's unmapping by 5 seconds in order to > mitigate the mapping overhead which goes away completely and driver works > as fast as in a case of a

Re: [PATCH v1 3/4] staging: media: tegra-vde: Add IOMMU support

2019-06-17 Thread Hans Verkuil
On 6/2/19 11:37 PM, Dmitry Osipenko wrote: > All Tegra's could provide memory isolation for the video decoder > hardware using IOMMU, it is also required for Tegra30+ in order > to handle sparse dmabuf's which GPU exports in a default kernel > configuration. > > Inspired-by: Thierry Reding >

Re: [PATCH][next] staging: comedi: usbdux: remove redundant initialization of fx2delay

2019-06-17 Thread Ian Abbott
On 17/06/2019 14:03, Colin King wrote: From: Colin Ian King Variable fx2delay is being initialized to a value that is never read and is being re-assigned a few statements later. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian

Re: [PATCH 12/16] staging/comedi: mark as broken

2019-06-17 Thread Ian Abbott
On 14/06/2019 16:34, Christoph Hellwig wrote: On Fri, Jun 14, 2019 at 05:30:32PM +0200, Greg KH wrote: On Fri, Jun 14, 2019 at 04:48:57PM +0200, Christoph Hellwig wrote: On Fri, Jun 14, 2019 at 04:02:39PM +0200, Greg KH wrote: Perhaps a hint as to how we can fix this up? This is the first

Re: [PATCH] staging: rtl8723bs: remove redundant assignment to rtStatus

2019-06-17 Thread Colin Ian King
On 17/06/2019 13:47, Colin King wrote: > From: Colin Ian King > > Variable rtStatus is initialized with a value that is never read > and later it is reassigned a new value. Hence the initialization > is redundant and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by:

[PATCH][next] staging: comedi: usbdux: remove redundant initialization of fx2delay

2019-06-17 Thread Colin King
From: Colin Ian King Variable fx2delay is being initialized to a value that is never read and is being re-assigned a few statements later. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

[PATCH] staging: erofs: clean up initialization of pointer de

2019-06-17 Thread Colin King
From: Colin Ian King Currently pointer de is being initialized with a value that is never read and a few statements later de is being re-assigned. Clean this up by ininitialzing de and removing the re-assignment. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

[PATCH] staging: rtl8723bs: remove redundant assignment to rtStatus

2019-06-17 Thread Colin King
From: Colin Ian King Variable rtStatus is initialized with a value that is never read and later it is reassigned a new value. Hence the initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

Re: [PATCH 1/3] media: meson: include linux/kthread.h

2019-06-17 Thread Maxime Jourdan
Hello Arnd, On Mon, Jun 17, 2019 at 1:17 PM Arnd Bergmann wrote: > > Without this header, we get a compilation error in some configurations: > > drivers/staging/media/meson/vdec/vdec.c: In function 'vdec_recycle_thread': > drivers/staging/media/meson/vdec/vdec.c:59:10: error: implicit declaration

[PATCH 1/3] media: meson: include linux/kthread.h

2019-06-17 Thread Arnd Bergmann
Without this header, we get a compilation error in some configurations: drivers/staging/media/meson/vdec/vdec.c: In function 'vdec_recycle_thread': drivers/staging/media/meson/vdec/vdec.c:59:10: error: implicit declaration of function 'kthread_should_stop' [-Werror=implicit-function-declaration]

[PATCH] Staging: iio: adt7316: use correct headers for gpio

2019-06-17 Thread Arnd Bergmann
When building without CONFIG_GPIOLIB, we get a compile-time failure: drivers/staging/iio/addac/adt7316.c:947:3: error: implicit declaration of function 'gpiod_set_value' [-Werror,-Wimplicit-function-declaration] gpiod_set_value(chip->ldac_pin, 0); ^

Re: [PATCH V4 09/16] staging: rtsx: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
> + struct scatterlist *sg = *cur_sg ?: > + (struct scatterlist *)scsi_sglist(srb); > + No need for the cast here. And I have to say I hate that GNU C non-standard shortshut in ? :. Why not simply: struct scatterlist *sg = *cur_sg;

Re: [PATCH V4 09/16] staging: rtsx: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
On Mon, Jun 17, 2019 at 10:27:06AM +0200, Christoph Hellwig wrote: > On Mon, Jun 17, 2019 at 11:03:42AM +0800, Ming Lei wrote: > > Use the scatterlist iterators and remove direct indexing of the > > scatterlist array. > > > > This way allows us to pre-allocate one small scatterlist, which can be

Re: [PATCH V4 05/16] scsi: ipr: use sg helper to operate scatterlist

2019-06-17 Thread Ming Lei
On Mon, Jun 17, 2019 at 10:24:23AM +0200, Christoph Hellwig wrote: > > - for (i = 0; i < (len / bsize_elem); i++, buffer += bsize_elem) { > > - struct page *page = sg_page([i]); > > + for (i = 0; i < (len / bsize_elem); i++, sg = sg_next(sg), buffer += > > bsize_elem) { > > Please

Re: [PATCH] staging: iio: ad7150: use ternary operating to ensure 0/1 value

2019-06-17 Thread Dan Carpenter
On Sun, Jun 16, 2019 at 11:15:16AM +0100, Jonathan Cameron wrote: > On Fri, 14 Jun 2019 13:50:59 -0300 > Melissa Wen wrote: > > > Remove idiom and use ternary operator for consistently trigger 0/1 value > > on variable declaration. > > > > Signed-off-by: Melissa Wen > Hi Melissa, > > In

Re: use exact allocation for dma coherent memory

2019-06-17 Thread Christoph Hellwig
> drivers/infiniband/hw/cxgb4/qp.c >129 static int alloc_host_sq(struct c4iw_rdev *rdev, struct t4_sq *sq) >130 { >131 sq->queue = dma_alloc_coherent(&(rdev->lldi.pdev->dev), > sq->memsize, >132 &(sq->dma_addr), GFP_KERNEL); >

Re: [PATCH V4 16/16] NCR5380: Support chained sg lists

2019-06-17 Thread Christoph Hellwig
On Mon, Jun 17, 2019 at 11:03:49AM +0800, Ming Lei wrote: > From: Finn Thain > > My understanding is that support for chained scatterlists is to > become mandatory for LLDs. > > Use the scatterlist iterators and remove direct indexing of the > scatterlist array. > > This way allows us to

Re: [PATCH V4 15/16] scsi: wd33c93: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
On Mon, Jun 17, 2019 at 11:03:48AM +0800, Ming Lei wrote: > Use the scatterlist iterators and remove direct indexing of the > scatterlist array. > > This way allows us to pre-allocate one small scatterlist, which can be > chained with one runtime allocated scatterlist if the pre-allocated one >

Re: [PATCH V4 14/16] scsi: ppa: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
On Mon, Jun 17, 2019 at 11:03:47AM +0800, Ming Lei wrote: > Use the scatterlist iterators and remove direct indexing of the > scatterlist array. > > This way allows us to pre-allocate one small scatterlist, which can be > chained with one runtime allocated scatterlist if the pre-allocated one >

Re: [PATCH V4 13/16] scsi: pcmcia: nsp_cs: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
On Mon, Jun 17, 2019 at 11:03:46AM +0800, Ming Lei wrote: > Use the scatterlist iterators and remove direct indexing of the > scatterlist array. > > This way allows us to pre-allocate one small scatterlist, which can be > chained with one runtime allocated scatterlist if the pre-allocated one >

Re: [PATCH V4 12/16] scsi: imm: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
On Mon, Jun 17, 2019 at 11:03:45AM +0800, Ming Lei wrote: > Use the scatterlist iterators and remove direct indexing of the > scatterlist array. > > This way allows us to pre-allocate one small scatterlist, which can be > chained with one runtime allocated scatterlist if the pre-allocated one >

Re: [PATCH V4 11/16] scsi: aha152x: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH V4 10/16] s390: zfcp_fc: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
On Mon, Jun 17, 2019 at 11:03:43AM +0800, Ming Lei wrote: > Use the scatterlist iterators and remove direct indexing of the > scatterlist array. > > This way allows us to pre-allocate one small scatterlist, which can be > chained with one runtime allocated scatterlist if the pre-allocated one >

Re: [PATCH V4 09/16] staging: rtsx: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
On Mon, Jun 17, 2019 at 11:03:42AM +0800, Ming Lei wrote: > Use the scatterlist iterators and remove direct indexing of the > scatterlist array. > > This way allows us to pre-allocate one small scatterlist, which can be > chained with one runtime allocated scatterlist if the pre-allocated one >

Re: [PATCH V4 08/16] staging: unisys: visorhba: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
The patch itsel looks good, but another case of buggy kmap it seems: Reviewed-by: Christoph Hellwig ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH V4 07/16] usb: image: microtek: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH V4 06/16] scsi: pmcraid: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
Same kmap issue here that will need addressing. Otherwise looks good: Reviewed-by: Christoph Hellwig ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH V4 05/16] scsi: ipr: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
> - for (i = 0; i < (len / bsize_elem); i++, buffer += bsize_elem) { > - struct page *page = sg_page([i]); > + for (i = 0; i < (len / bsize_elem); i++, sg = sg_next(sg), buffer += > bsize_elem) { Please split the overly long line. > + struct page *page =

Re: [PATCH V4 02/16] scsi: advansys: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
On Mon, Jun 17, 2019 at 11:03:35AM +0800, Ming Lei wrote: > Use the scatterlist iterators and remove direct indexing of the > scatterlist array. > > This way allows us to pre-allocate one small scatterlist, which can be > chained with one runtime allocated scatterlist if the pre-allocated one >

Re: use exact allocation for dma coherent memory

2019-06-17 Thread Dan Carpenter
I once wrote a Smatch check based on a commit message that said we can't pass dma_alloc_coherent() pointers to virt_to_phys(). But then I never felt like I understood the rules enough to actually report the warnings as bugs. drivers/platform/x86/dcdbas.c:108 smi_data_buf_realloc() error: 'buf'

Re: [PATCH V4 04/16] scsi: mvumi: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
On Mon, Jun 17, 2019 at 11:03:37AM +0800, Ming Lei wrote: > Use the scatterlist iterators and remove direct indexing of the > scatterlist array. > > This way allows us to pre-allocate one small scatterlist, which can be > chained with one runtime allocated scatterlist if the pre-allocated one >

Re: [PATCH V4 03/16] scsi: lpfc: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
On Mon, Jun 17, 2019 at 11:03:36AM +0800, Ming Lei wrote: > Use the scatterlist iterators and remove direct indexing of the > scatterlist array. > > This way allows us to pre-allocate one small scatterlist, which can be > chained with one runtime allocated scatterlist if the pre-allocated one

Re: [PATCH V4 01/16] scsi: vmw_pscsi: use sg helper to operate scatterlist

2019-06-17 Thread Christoph Hellwig
On Mon, Jun 17, 2019 at 11:03:34AM +0800, Ming Lei wrote: > Use the scatterlist iterators and remove direct indexing of the scatterlist > array. > > This way allows us to pre-allocate one small scatterlist, which can be chained > with one runtime allocated scatterlist if the pre-allocated one

Re: [PATCH v3 4/7] lib/hexdump.c: Replace ascii bool in hex_dump_to_buffer with flags

2019-06-17 Thread Jani Nikula
On Mon, 17 Jun 2019, "Alastair D'Silva" wrote: > From: Alastair D'Silva > > In order to support additional features in hex_dump_to_buffer, replace > the ascii bool parameter with flags. > > Signed-off-by: Alastair D'Silva > --- > drivers/gpu/drm/i915/intel_engine_cs.c| 2 +- >