[rfc patch] sched/topology: fix domain reconstruction memory leakage

2017-08-19 Thread Mike Galbraith
Greetings, While beating on cpu hotplug with the shiny new topology fixes backported, my memory poor 8 socket box fairly quickly leaked itself to death, 0c0e776a9b0f being the culprit.  With the below applied, box took a severe beating overnight without a whimper. I'm wondering (ergo rfc) if

Re: [PATCH RESEND 0/2] enable hires timer to timeout datagram socket

2017-08-19 Thread Richard Cochran
On Fri, Aug 18, 2017 at 10:27:56PM +, Vallish Vaidyeshwara wrote: > We have a on-demand application that uses long timeouts and needs to react to > events within milliseconds. Huh? The test program you posted does not react to any event. Thanks, Richard

Re: [rfc patch] sched/topology: fix domain reconstruction memory leakage

2017-08-19 Thread Mike Galbraith
On Sat, 2017-08-19 at 08:10 +0200, Mike Galbraith wrote: > > Signed-off-by: Mike Galbraith (grr, wrong /me autographed the damn thing)

[PATCH 0/4] ISOFS: Adjustments for three function implementations

2017-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 19 Aug 2017 08:40:12 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Delete an error message for a failed memory allocation in isofs_read_inode() Adjust four checks

Re: [PATCH 5/5] Use __func__ instead of function name

2017-08-19 Thread 김동현
I guess below code would be better idea to gather more debug information. diff --git a/drivers/char/tpm/tpm_ibmvtpm.c b/drivers/char/tpm/tpm_ibmvtpm.c index 643bba7..0aae785 100644 --- a/drivers/char/tpm/tpm_ibmvtpm.c +++ b/drivers/char/tpm/tpm_ibmvtpm.c @@ -141,6 +141,11 @@ static int

[PATCH 00/15] drivers: make device_type const

2017-08-19 Thread Bhumika Goyal
Make device_type const. Done using Coccinelle. Bhumika Goyal (15): EDAC: make device_type const drm: make device_type const [media] i2c: make device_type const [media] rc: make device_type const mei: make device_type const mtd: make device_type const mux: make device_type const

Re: [PATCH v5 5/9] mtd: nand: tmio: Register partitions using the parsers

2017-08-19 Thread Wolfram Sang
On Mon, Aug 14, 2017 at 10:48:36PM +0200, Andrea Adami wrote: > With the introduction of sharpslpart partition parser we can now read the > offsets from NAND: we specify the list of the parsers as platform data, with > cmdlinepart and ofpart parsers first allowing to override the part. table >

Re: [PATCH v5 3/9] mfd: tmio: Add partition parsers platform data

2017-08-19 Thread Wolfram Sang
On Mon, Aug 14, 2017 at 10:48:34PM +0200, Andrea Adami wrote: > With the introduction of sharpslpart partition parser we can now read the > offsets from NAND: we specify the list of the parsers as platform data, with > cmdlinepart and ofpart parsers first allowing to override the part. table >

[PATCH 01/15] EDAC: make device_type const

2017-08-19 Thread Bhumika Goyal
Make these const as they are only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/edac/edac_mc_sysfs.c | 8 drivers/edac/i7core_edac.c | 4 ++-- 2 files changed, 6 insertions(+), 6

Re: [PATCH v3 5/5] usb: xhci: Handle USB transaction error on address command

2017-08-19 Thread Lu Baolu
Hi, On 08/18/2017 09:31 PM, Mathias Nyman wrote: > On 16.08.2017 05:15, Lu Baolu wrote: >> Hi, >> >> On 08/15/2017 07:30 PM, Mathias Nyman wrote: >>> On 11.08.2017 05:41, Lu Baolu wrote: Xhci driver handles USB transaction errors on transfer events, but transaction errors are possible

[PATCH 11/15] remoteproc: make device_type const

2017-08-19 Thread Bhumika Goyal
Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/remoteproc/remoteproc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 12/15] s390/zcrypt: make device_type const

2017-08-19 Thread Bhumika Goyal
Make these const as they are only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/s390/crypto/ap_card.c | 2 +- drivers/s390/crypto/ap_queue.c | 2 +- 2 files changed, 2 insertions(+), 2

Re: [PATCH 00/13] constify alsa snd_pcm_ops structures

2017-08-19 Thread Takashi Iwai
On Fri, 18 Aug 2017 09:45:08 +0200, Arvind Yadav wrote: > > snd_pcm_ops are not supposed to change at runtime. All functions > working with snd_pcm_ops provided by work with > const snd_pcm_ops. So mark the non-const structs as const. > > Arvind Yadav (13): > [PATCH 01/13] ALSA: aoa: constify

Re: [PATCH 3.16 084/134] usb: misc: legousbtower: Fix buffers on stack

2017-08-19 Thread Maksim Salau
On Fri, 18 Aug 2017 14:13:20 +0100 Ben Hutchings wrote: > 3.16.47-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: Maksim Salau > > commit 942a48730faf149ccbf3e12ac718aee120bb3529 upstream. >

[PATCH 0/5] constify net eisa_device_id

2017-08-19 Thread Arvind Yadav
eisa_device_id are not supposed to change at runtime. All functions working with eisa_device_id provided by work with const eisa_device_id. So mark the non-const structs as const. Arvind Yadav (5): [PATCH 1/5] net: 3c509: constify eisa_device_id [PATCH 2/5] net: 3c59x: constify

[PATCH 1/5] net: 3c509: constify eisa_device_id

2017-08-19 Thread Arvind Yadav
eisa_device_id are not supposed to change at runtime. All functions working with eisa_device_id provided by work with const eisa_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/3com/3c509.c | 2 +- 1 file

Re: Possible race in xilinx-xadc.ko

2017-08-19 Thread Lars-Peter Clausen
On 08/18/2017 05:10 PM, Anton Volkov wrote: > Hello. > > While searching for races in the Linux kernel I've come across > "drivers/iio/adc/xilinx-xadc.ko" module. Here is a question that I came up > with while analyzing results. Lines are given using the info from Linux v4.12. > > Consider the

Re: [PATCH v5 3/9] mfd: tmio: Add partition parsers platform data

2017-08-19 Thread Boris Brezillon
Hi Lee, Le Tue, 15 Aug 2017 07:58:35 +0100, Lee Jones a écrit : > On Mon, 14 Aug 2017, Andrea Adami wrote: > > > With the introduction of sharpslpart partition parser we can now read the > > offsets from NAND: we specify the list of the parsers as platform data, with > >

Re: [PATCH 1/4] gpu: host1x: Enable Tegra186 syncpoint protection

2017-08-19 Thread Mikko Perttunen
On 08/19/2017 01:36 AM, Dmitry Osipenko wrote: On 18.08.2017 19:15, Mikko Perttunen wrote: Since Tegra186 the Host1x hardware allows syncpoints to be assigned to specific channels, preventing any other channels from incrementing them. Enable this feature where available and assign syncpoints

[PATCH 02/15] drm: make device_type const

2017-08-19 Thread Bhumika Goyal
Make these const as they are only stored in the type field of a device structure, which is const. Done using Coccinelle. --- drivers/gpu/drm/drm_sysfs.c | 2 +- drivers/gpu/drm/ttm/ttm_module.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_sysfs.c

[PATCH 04/15] [media] rc: make device_type const

2017-08-19 Thread Bhumika Goyal
Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/media/rc/rc-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/rc-main.c

[PATCH 05/15] mei: make device_type const

2017-08-19 Thread Bhumika Goyal
Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/misc/mei/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/mei/bus.c

[PATCH 03/15] [media] i2c: make device_type const

2017-08-19 Thread Bhumika Goyal
Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/media/i2c/soc_camera/mt9t031.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v5 11/16] mtd: nand: qcom: support for command descriptor formation

2017-08-19 Thread Abhishek Sahu
On 2017-08-17 17:37, Abhishek Sahu wrote: 1. Add the function for command descriptor preparation which will be used only by BAM DMA and it will form the DMA descriptors containing command elements 2. DMA_PREP_CMD flag should be used for forming command DMA descriptors Reviewed-by:

[PATCH] proc: uninline proc_create()

2017-08-19 Thread Alexey Dobriyan
Save some code from ~320 invocations all clearing last argument. add/remove: 3/0 grow/shrink: 0/158 up/down: 45/-702 (-657) function old new delta proc_create- 17 +17

[PATCH 1/4] isofs: Delete an error message for a failed memory allocation in isofs_read_inode()

2017-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 18 Aug 2017 21:41:24 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH 2/4] isofs: Adjust four checks for null pointers

2017-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 18 Aug 2017 21:47:14 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus

Re: [PATCH 4/4] drm/tegra: Use u64_to_user_ptr helper

2017-08-19 Thread Mikko Perttunen
On 08/19/2017 01:05 AM, Dmitry Osipenko wrote: On 18.08.2017 19:15, Mikko Perttunen wrote: Use the u64_to_user_ptr helper macro to cast IOCTL argument u64 values to user pointers instead of writing out the cast manually. Signed-off-by: Mikko Perttunen ---

[PATCH 06/15] mtd: make device_type const

2017-08-19 Thread Bhumika Goyal
Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/mtd/mtdcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/mtdcore.c

[PATCH 08/15] PCI: make device_type const

2017-08-19 Thread Bhumika Goyal
Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/pci/endpoint/pci-epf-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 07/15] mux: make device_type const

2017-08-19 Thread Bhumika Goyal
Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/mux/mux-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mux/mux-core.c

[PATCH 09/15] phy: tegra: make device_type const

2017-08-19 Thread Bhumika Goyal
Make these const as they are only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/phy/tegra/xusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/tegra/xusb.c

[PATCH 10/15] platform/x86: wmi: make device_type const

2017-08-19 Thread Bhumika Goyal
Make these const as they are only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/platform/x86/wmi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[RFC PATCH 1/3] kbuild: generate *.hash.c during build

2017-08-19 Thread Masahiro Yamada
*.hash.c files are artifacts generated from *.gperf by using gperf. Instead of running gperf, we conventionally version-control *.hash.c_shipped files and copy them to *.hash.c during build. It is true that this approach can minimize external tool dependency, but we need to update the shipped

[RFC PATCH 0/3] kbuild: generate intermediate C files instead of copying _shipped files

2017-08-19 Thread Masahiro Yamada
In Linux build system convention, we do not run tools such as flex, bison, gperf during the kernel building. Instead, manage generated C files in the repository with _shipped suffixes. They are simply shipped (copied) removing the _shipped suffixes during the kernel building. Commit 7373f4f83c71

Re: [PATCH v5 10/16] mtd: nand: qcom: add command elements in BAM transaction

2017-08-19 Thread Abhishek Sahu
On 2017-08-17 17:37, Abhishek Sahu wrote: All the QPIC register read/write through BAM DMA requires command descriptor which contains the array of command elements. Reviewed-by: Archit Taneja Signed-off-by: Abhishek Sahu --- * Changes from v4:

Re: [PATCH 1/4] gpu: host1x: Enable Tegra186 syncpoint protection

2017-08-19 Thread Dmitry Osipenko
On 19.08.2017 11:10, Mikko Perttunen wrote: [snip] >>> +host1x_hw_syncpt_set_protection(host, true); >> >> Is it really okay to force the protection? Maybe protection should be enabled >> with a respect to CONFIG_TEGRA_HOST1X_FIREWALL? In that case we would have to >> avoid software jobs

[PATCH 4/5] net: hp100: constify eisa_device_id

2017-08-19 Thread Arvind Yadav
eisa_device_id are not supposed to change at runtime. All functions working with eisa_device_id provided by work with const eisa_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/hp/hp100.c | 2 +- 1 file changed,

[PATCH 5/5] net: defxx: constify eisa_device_id

2017-08-19 Thread Arvind Yadav
eisa_device_id are not supposed to change at runtime. All functions working with eisa_device_id provided by work with const eisa_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/fddi/defxx.c | 2 +- 1 file changed, 1

[PATCH 2/5] net: 3c59x: constify eisa_device_id

2017-08-19 Thread Arvind Yadav
eisa_device_id are not supposed to change at runtime. All functions working with eisa_device_id provided by work with const eisa_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/3com/3c59x.c | 2 +- 1 file

[PATCH 3/5] net: de4x5: constify eisa_device_id

2017-08-19 Thread Arvind Yadav
eisa_device_id are not supposed to change at runtime. All functions working with eisa_device_id provided by work with const eisa_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/net/ethernet/dec/tulip/de4x5.c | 2 +- 1 file

[PATCH 3/4] isofs: One check less in isofs_read_inode() after error detection

2017-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 19 Aug 2017 08:10:40 +0200 * Adjust jump targets. * Avoid a repeated check for the local variable "bh" after a memory allocation failure in this function. * Delete an initialisation for the local variable "ret" which became

[PATCH 4/4] isofs: Delete an unnecessary variable initialisation in isofs_read_inode()

2017-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 19 Aug 2017 08:13:46 +0200 The local variable "bh" will be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring ---

[PATCH] Bluetooth: make device_type const

2017-08-19 Thread Bhumika Goyal
Make these const as they are only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- net/bluetooth/hci_sysfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] Bluetooth: make device_type const

2017-08-19 Thread Marcel Holtmann
Hi Bhumika, > Make these const as they are only stored in the type field of a device > structure, which is const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal > --- > net/bluetooth/hci_sysfs.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) patch has

Re: [PATCH][RFC v3] PM / Hibernate: Feed the wathdog when creating snapshot

2017-08-19 Thread Chen Yu
On Thu, Aug 17, 2017 at 01:28:06PM +0200, Michal Hocko wrote: > On Thu 17-08-17 12:04:34, Chen Yu wrote: > [...] > > #ifdef CONFIG_HIBERNATION > > > > +/* Touch watchdog for every WD_INTERVAL_PAGE pages. */ > > +#define WD_INTERVAL_PAGE 1000 > > traversing 1000 pages should never take too

[PATCH RFC] media: open.rst: document devnode-centric and mc-centric types

2017-08-19 Thread Mauro Carvalho Chehab
When we added support for omap3, back in 2010, we added a new type of V4L2 devices that aren't fully controlled via the V4L2 device node. Yet, we never made it clear, at the V4L2 spec, about the differences between both types. Let's document them with the current implementation. Signed-off-by:

[PATCH 2/4] [media] media: pci: make i2c_adapter const

2017-08-19 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Done using Coccinelle Signed-off-by: Bhumika Goyal --- drivers/media/pci/cobalt/cobalt-i2c.c | 2 +- drivers/media/pci/cx18/cx18-i2c.c | 2 +- drivers/media/pci/cx23885/cx23885-i2c.c

[PATCH 1/4] i2c: busses: make i2c_adapter const

2017-08-19 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/i2c/busses/i2c-kempld.c | 2 +- drivers/i2c/busses/i2c-ocores.c | 2 +- drivers/i2c/busses/i2c-octeon-platdrv.c | 2 +-

Re: [PATCH 1/4] gpu: host1x: Enable Tegra186 syncpoint protection

2017-08-19 Thread Mikko Perttunen
On 08/19/2017 01:09 PM, Dmitry Osipenko wrote: On 19.08.2017 11:10, Mikko Perttunen wrote: [snip] +host1x_hw_syncpt_set_protection(host, true); Is it really okay to force the protection? Maybe protection should be enabled with a respect to CONFIG_TEGRA_HOST1X_FIREWALL? In that case we

[PATCH 3/4] [media] radio-usb-si4713: make i2c_adapter const

2017-08-19 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Done using Coccinelle Signed-off-by: Bhumika Goyal --- drivers/media/radio/si4713/radio-usb-si4713.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/radio/si4713/radio-usb-si4713.c

[PATCH 0/4] drivers: make i2c_adapter const

2017-08-19 Thread Bhumika Goyal
Make i2c_adapter const. Done using Coccinelle. Bhumika Goyal (4): i2c: busses: make i2c_adapter const [media] media: pci: make i2c_adapter const [media] radio-usb-si4713: make i2c_adapter const [media] usb: make i2c_adapter const drivers/i2c/busses/i2c-kempld.c | 2 +-

[PATCH 4/4] [media] usb: make i2c_adapter const

2017-08-19 Thread Bhumika Goyal
Make these const as they are only used in a copy operation. Done using Coccinelle Signed-off-by: Bhumika Goyal --- drivers/media/usb/au0828/au0828-i2c.c| 2 +- drivers/media/usb/cx231xx/cx231xx-i2c.c | 2 +- drivers/media/usb/em28xx/em28xx-i2c.c| 2 +-

Re: [PATCH 0/5] Add clk and scpsys support for MT6755

2017-08-19 Thread Mars Cheng
Hi Matthias, Yingjoe On Thu, 2017-08-17 at 12:19 +0200, Matthias Brugger wrote: > ... > > Hi Mars, > > > > Sean reworked the scpsys driver to remove code duplication, see: > > http://lists.infradead.org/pipermail/linux-mediatek/2017-August/009687.html > >

Re: [PATCH v3 07/10] dt-bindings: add compatible string for Allwinner R40 CCU

2017-08-19 Thread Chen-Yu Tsai
On Sun, May 28, 2017 at 11:09 PM, Chen-Yu Tsai wrote: > On Sat, May 27, 2017 at 6:23 PM, Icenowy Zheng wrote: >> Allwinner R40 has a clock controlling unit like the ones on other >> Allwinner SoCs after sun6i, and can also use a CCU-based driver. >> >> Add a

[PATCH 13/15] scsi: make device_type const

2017-08-19 Thread Bhumika Goyal
Make these const as they are only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/scsi/fcoe/fcoe_sysfs.c | 4 ++-- drivers/scsi/scsi_transport_iscsi.c | 4 ++-- 2 files changed, 4

[PATCH 15/15] usb: make device_type const

2017-08-19 Thread Bhumika Goyal
Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/usb/common/ulpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/common/ulpi.c

[PATCH 14/15] staging: greybus: make device_type const

2017-08-19 Thread Bhumika Goyal
Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/staging/greybus/gbphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH v3] MTD: NAND: add OOB layout without ECC bytes

2017-08-19 Thread Miquel RAYNAL
Hello Boris, On Fri, 18 Aug 2017 00:15:42 +0200 Boris Brezillon wrote: > +Yoshi > > Hi Miquel, > > Subject prefix should be "mtd: nand: " in lowercase. I was not aware of that kind of rule, next time I'll be careful. > > Le Wed, 16 Aug 2017 09:39:06

[PATCH][RFC v4] PM / Hibernate: Feed the wathdog when creating snapshot

2017-08-19 Thread Chen Yu
There is a problem that when counting the pages for creating the hibernation snapshot will take significant amount of time, especially on system with large memory. Since the counting job is performed with irq disabled, this might lead to NMI lockup. The following warning were found on a system

[linux-next][bisected c64e09ce] sysctl command hung indefinitely

2017-08-19 Thread Abdul Haleem
Hi Michal, 'sysctl -a' command never completes on my PowerPC machine with latest next kernel (As of next-20170811) Machine Type : Power8 bare-metal Kernel version : 4.13.0-rc4-next-20170817 gcc version : 4.8.5 command output -- $ sysctl -a [... vm.hugetlb_shm_group = 0

[PATCH] Staging: greybus: vibrator.c: Fixed alignment to match open parenthesis.

2017-08-19 Thread Srishti Sharma
Fixed alignment so that it matched open parenthesis Signed-off-by: Srishti Sharma --- drivers/staging/greybus/vibrator.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/greybus/vibrator.c b/drivers/staging/greybus/vibrator.c

Re: [linux-sunxi] Re: [PATCH v5] clk: sunxi-ng: support R40 SoC

2017-08-19 Thread Chen-Yu Tsai
On Tue, Aug 15, 2017 at 4:52 PM, wrote: > 在 2017-08-15 13:55,Icenowy Zheng 写道: >> >> Allwinner R40 SoC have a clock controller module in the style of the >> SoCs beyond sun6i, however, it's more rich and complex. >> >> Add support for it. >> >> Signed-off-by: Icenowy Zheng

Re: [linux-sunxi] Re: [PATCH v5] clk: sunxi-ng: support R40 SoC

2017-08-19 Thread icenowy
在 2017-08-19 17:11,Chen-Yu Tsai 写道: On Tue, Aug 15, 2017 at 4:52 PM, wrote: 在 2017-08-15 13:55,Icenowy Zheng 写道: Allwinner R40 SoC have a clock controller module in the style of the SoCs beyond sun6i, however, it's more rich and complex. Add support for it. Signed-off-by:

Re: [PATCH v5 3/9] mfd: tmio: Add partition parsers platform data

2017-08-19 Thread Boris Brezillon
Le Sat, 19 Aug 2017 09:26:03 +0200, Boris Brezillon a écrit : > Hi Lee, > > Le Tue, 15 Aug 2017 07:58:35 +0100, > Lee Jones a écrit : > > > On Mon, 14 Aug 2017, Andrea Adami wrote: > > > > > With the introduction of sharpslpart

[PATCH net-next v3] arm: eBPF JIT compiler

2017-08-19 Thread Shubham Bansal
The JIT compiler emits ARM 32 bit instructions. Currently, It supports eBPF only. Classic BPF is supported because of the conversion by BPF core. This patch is essentially changing the current implementation of JIT compiler of Berkeley Packet Filter from classic to internal with almost all

[PATCH] genirq: fixup checks against nr_cpu_ids

2017-08-19 Thread Alexey Dobriyan
Valid CPU ids are [0, nr_cpu_ids-1] inclusive. Signed-off-by: Alexey Dobriyan --- kernel/irq/ipi.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/kernel/irq/ipi.c +++ b/kernel/irq/ipi.c @@ -165,7 +165,7 @@ irq_hw_number_t ipi_get_hwirq(unsigned int

[PATCH] hfsplus: Delete an error message for a failed memory allocation in hfsplus_create_attributes_file()

2017-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 19 Aug 2017 11:34:48 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH] net: dsa: mv88e6xxx: make irq_chip const

2017-08-19 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/net/dsa/mv88e6xxx/chip.c| 2 +- drivers/net/dsa/mv88e6xxx/global2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [RFC PATCH 0/3] kbuild: generate intermediate C files instead of copying _shipped files

2017-08-19 Thread Cao jin
Hi, I am stuck in a similar problem recent days by chance. I am just curious about the purpose of introduction of these *_shipped file, are they just for user's convenience when user doesn't install the those tools? -- Sincerely, Cao jin On 08/19/2017 04:49 PM, Masahiro Yamada wrote: > In

Re: [PATCH] netfilter: xtables: use audit_log()

2017-08-19 Thread Pablo Neira Ayuso
On Mon, Aug 07, 2017 at 09:44:26PM +0800, Geliang Tang wrote: > Use audit_log() instead of open-coding it. As said, collapsed into 'netfilter: ebtables: use audit_log()', just for the record.

Re: [PATCH] netfilter: ebtables: use audit_log()

2017-08-19 Thread Pablo Neira Ayuso
On Mon, Aug 07, 2017 at 09:44:25PM +0800, Geliang Tang wrote: > Use audit_log() instead of open-coding it. Applied, thanks. BTW, I have collapse your xtables change to this patch too. part of the same logical change. Hint: If you see yourself writing exactly the same description for each patch

Re: [PATCH v8 09/14] lockdep: Apply crossrelease to completions

2017-08-19 Thread Arnd Bergmann
On Sat, Aug 19, 2017 at 1:43 AM, Boqun Feng wrote: > Hi Arnd, > > On Mon, Aug 14, 2017 at 10:50:24AM +0200, Arnd Bergmann wrote: >> On Mon, Aug 7, 2017 at 9:12 AM, Byungchul Park >> wrote: >> > Although wait_for_completion() and its family can cause

Re: [PATCH v8 09/14] lockdep: Apply crossrelease to completions

2017-08-19 Thread Arnd Bergmann
On Sat, Aug 19, 2017 at 2:51 PM, Arnd Bergmann wrote: >> --- a/include/linux/completion.h >> +++ b/include/linux/completion.h >> @@ -74,7 +74,7 @@ static inline void complete_release_commit(struct >> completion *x) {} >> #endif >> >> #define COMPLETION_INITIALIZER_ONSTACK(work)

Re: [linux-sunxi] [PATCH v5 4/8] ASoC: sun4i-i2s: Add mclk enable regmap field

2017-08-19 Thread Chen-Yu Tsai
On Sat, Aug 19, 2017 at 8:48 PM, wrote: > From: Marcus Cooper > > The location of the mclk output enable bit is different on newer > SoCs. Use a regmap field to enable it. > > Signed-off-by: Marcus Cooper Reviewed-by: Chen-Yu

Re: [linux-sunxi] [PATCH v5 5/8] ASoC: sun4i-i2s: Add regmap field to set DAI format

2017-08-19 Thread Chen-Yu Tsai
On Sat, Aug 19, 2017 at 8:48 PM, wrote: > From: Marcus Cooper > > On the newer SoCs the bits to configure the operational mode are > located in a different register. Add a regmap field so that this > location can be configured. > > Signed-off-by:

Re: [PATCH v3] irqchip/tango: Don't use incorrect irq_mask_ack callback

2017-08-19 Thread Måns Rullgård
Florian Fainelli writes: > What do we do with this patch series to move forward? Can we get Doug's > changes queued up for 4.14? My opinion is that the correct combined function should be added and the tango driver updated to use it. Patches already exist, so what are we

Re: [PATCH v3 2/8] irqchip/gic-v3-its: Initialize MSIs with subsys_initcalls

2017-08-19 Thread Marc Zyngier
On Tue, Aug 08 2017 at 2:22:52 pm BST, Robert Richter wrote: > This allows us to use kernel core functionality (e.g. cma) for ITS > initialization. MSIs must be up before the device_initcalls (pci and > platform device probe) and after arch_initcalls (dma init), so >

Re: [PATCH 1/4] gpu: host1x: Enable Tegra186 syncpoint protection

2017-08-19 Thread Dmitry Osipenko
On 19.08.2017 13:35, Mikko Perttunen wrote: > On 08/19/2017 01:09 PM, Dmitry Osipenko wrote: >> On 19.08.2017 11:10, Mikko Perttunen wrote: >> [snip] > +host1x_hw_syncpt_set_protection(host, true); Is it really okay to force the protection? Maybe protection should be

Re: [PATCH 1/4] gpu: host1x: Enable Tegra186 syncpoint protection

2017-08-19 Thread Dmitry Osipenko
On 19.08.2017 14:32, Mikko Perttunen wrote: > > > On 08/19/2017 02:11 PM, Dmitry Osipenko wrote: >> On 19.08.2017 13:35, Mikko Perttunen wrote: >>> On 08/19/2017 01:09 PM, Dmitry Osipenko wrote: On 19.08.2017 11:10, Mikko Perttunen wrote: [snip] >>> +

Re: [PATCH 1/4] gpu: host1x: Enable Tegra186 syncpoint protection

2017-08-19 Thread Dmitry Osipenko
On 18.08.2017 19:15, Mikko Perttunen wrote: > Since Tegra186 the Host1x hardware allows syncpoints to be assigned to > specific channels, preventing any other channels from incrementing > them. > > Enable this feature where available and assign syncpoints to channels > when submitting a job.

Re: [PATCH 5/5] net: defxx: constify eisa_device_id

2017-08-19 Thread Maciej W. Rozycki
On Sat, 19 Aug 2017, Arvind Yadav wrote: > eisa_device_id are not supposed to change at runtime. All functions > working with eisa_device_id provided by work with > const eisa_device_id. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav > ---

Re: [PATCH 2/4] gpu: host1x: Enable gather filter

2017-08-19 Thread Dmitry Osipenko
On 19.08.2017 13:46, Mikko Perttunen wrote: > On 08/19/2017 01:42 PM, Dmitry Osipenko wrote: >> On 18.08.2017 19:15, Mikko Perttunen wrote: >>> The gather filter is a feature present on Tegra124 and newer where the >>> hardware prevents GATHERed command buffers from executing commands >>> normally

Re: special handle of scripts/kconfig/zconf.tab.o

2017-08-19 Thread Sam Ravnborg
> > The difference between with/without _shipped is, > > zconf.{tab,hash,lex}.c_shipped reside under $(srctree), > > whereas zconf.{tab,hash,lex}.c under $(objtree). > > The whole idea behind the *_shipped file was to have less dependencies > on the host system buildign the kernel. > So we did

Re: [linux-sunxi] [PATCH v5 1/8] ASoC: sun4i-i2s: Add regmap fields for channels

2017-08-19 Thread Chen-Yu Tsai
On Sat, Aug 19, 2017 at 8:48 PM, wrote: > From: Marcus Cooper > > On the original i2s block the channel mapping and selection were > configured for stereo audio by default: This is not the case with > the newer SoCs and they are also located at

[PATCH] freevxfs: Delete an error message for a failed memory allocation in vxfs_fill_super()

2017-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 19 Aug 2017 12:40:30 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

Re: [PATCH 1/4] gpu: host1x: Enable Tegra186 syncpoint protection

2017-08-19 Thread Mikko Perttunen
On 08/19/2017 02:11 PM, Dmitry Osipenko wrote: On 19.08.2017 13:35, Mikko Perttunen wrote: On 08/19/2017 01:09 PM, Dmitry Osipenko wrote: On 19.08.2017 11:10, Mikko Perttunen wrote: [snip] +host1x_hw_syncpt_set_protection(host, true); Is it really okay to force the protection? Maybe

[PATCH 0/2] fs-ext4: Adjustments for two function implementations

2017-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 19 Aug 2017 13:35:43 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation in ext4_multi_mount_protect() Improve a size

[PATCH] make "nr_cpu_ids" unsigned

2017-08-19 Thread Alexey Dobriyan
First, number of CPUs can't be negative number. Second, different signnnedness leads to suboptimal code in the following cases: 1) kmalloc(nr_cpu_ids * sizeof(X)); "int" has to be sign extended to size_t. 2) while (loff_t *pos < nr_cpu_ids) MOVSXD is 1 byte longed than the

[PATCH 2/2] ext4: Improve a size determination in two functions

2017-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 19 Aug 2017 13:14:26 +0200 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style

[PATCH 1/2] ext4: Delete an error message for a failed memory allocation in ext4_multi_mount_protect()

2017-08-19 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 19 Aug 2017 13:04:50 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring ---

[PATCH] qe/ic: make irq_chip const

2017-08-19 Thread Bhumika Goyal
Make this const as it is only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/soc/fsl/qe/qe_ic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c index

[PATCH v5 4/8] ASoC: sun4i-i2s: Add mclk enable regmap field

2017-08-19 Thread codekipper
From: Marcus Cooper The location of the mclk output enable bit is different on newer SoCs. Use a regmap field to enable it. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 16 ++-- 1 file changed, 14 insertions(+), 2

[PATCH v5 1/8] ASoC: sun4i-i2s: Add regmap fields for channels

2017-08-19 Thread codekipper
From: Marcus Cooper On the original i2s block the channel mapping and selection were configured for stereo audio by default: This is not the case with the newer SoCs and they are also located at different offsets. To support the newer SoC then regmap fields have been added

[PATCH v5 2/8] ASoC: sun4i-i2s: Add regfields for word size select and sample resolution

2017-08-19 Thread codekipper
From: Marcus Cooper On newer SoCs the location of the slot width select and sample resolution are different and also there is a bigger range of support. For the current supported rates then an offset is required. Signed-off-by: Marcus Cooper

[PATCH v5 3/8] ASoC: sun4i-i2s: bclk and lrclk polarity tidyup

2017-08-19 Thread codekipper
From: Marcus Cooper On newer SoCs the bit fields for the blck and lrclk polarity are in a different locations. Use regmap fields to set the polarity bits as intended. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 45

[PATCH v5 5/8] ASoC: sun4i-i2s: Add regmap field to set DAI format

2017-08-19 Thread codekipper
From: Marcus Cooper On the newer SoCs the bits to configure the operational mode are located in a different register. Add a regmap field so that this location can be configured. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-i2s.c | 15

Re: [PATCH] net: ibm: emac: Fix some error handling path in 'emac_probe()'

2017-08-19 Thread Christian Lamparter
On Saturday, August 19, 2017 1:07:57 AM CEST Christophe JAILLET wrote: > If 'irq_of_parse_and_map()' or 'of_address_to_resource()' fail, 'err' is > known to be 0 at this point. > So return -ENODEV instead in the first case and propagate the error > returned by 'of_address_to_resource()' in the 2nd

devtmpfs: regular files

2017-08-19 Thread Sami Kerola
Hi, Is there some reason why devtmpfs allows creation of regular files? I think it would be nice if /dev would behave same way as /proc, that is: $ echo example > /proc/regular-file.txt -bash: /proc/regular-file.txt: No such file or directory That would make users who rm /dev/null to notice

Re: [PATCH 3.16 097/134] power: supply: pda_power: move from timer to delayed_work

2017-08-19 Thread Michael Nazzareno Trimarchi
Hi Ben On Fri, Aug 18, 2017 at 3:13 PM, Ben Hutchings wrote: > 3.16.47-rc1 review patch. If anyone has any objections, please let me know. > > -- > > From: Michael Trimarchi > > commit 633e8799ddc09431be2744c4a1efdbda13af2b0b

  1   2   3   4   5   6   7   >