[PATCH] usb: dwc2: host: use msleep() for long delays

2017-01-12 Thread Nicholas Mc Guire
ested with: x86_64_defconfig + CONFIG_USB_DWC2 (1 sparse and 6 coccinelle warning - preparing separate patches for that) Patch is against 4.10-rc3 (localversion-next is next-20170112) drivers/usb/dwc2/hcd.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/dw

Re: [PATCH v2 7/7] uapi: export all headers under uapi directories

2017-01-12 Thread Nicolas Dichtel
Le 09/01/2017 à 13:56, Christoph Hellwig a écrit : > On Fri, Jan 06, 2017 at 10:43:59AM +0100, Nicolas Dichtel wrote: >> Regularly, when a new header is created in include/uapi/, the developer >> forgets to add it in the corresponding Kbuild file. This error is usually >> detected after the release

[PATCH] usb: dwc2: host: fix Wmaybe-uninitialized warning

2017-01-12 Thread Nicholas Mc Guire
amp;descriptor, dev, fmt, \ ^ drivers/usb/dwc2/hcd.c:4492:8: note: 'pipetype' was declared here char *pipetype; ^ Patch was compile tested with: x86_64_defconfig + CONFIG_USB_DWC2=m + CONFIG_USB_DWC2_VERBOSE=y Patch is against 4.10-rc3 (localversion-next is next-20170112) drive

[PATCH] usb: dwc2: host: use true/false for boolean

2017-01-12 Thread Nicholas Mc Guire
Patch was compile tested with: x86_64_defconfig + CONFIG_USB_DWC2 Patch is against 4.10-rc3 (localversion-next is next-20170112) drivers/usb/dwc2/hcd.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index 9f66777

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-12 Thread Catalin Marinas
On Wed, Jan 11, 2017 at 06:22:08PM +, Marc Zyngier wrote: > On 11/01/17 18:06, Catalin Marinas wrote: > > On Wed, Jan 11, 2017 at 09:41:15AM -0500, Christopher Covington wrote: > >> diff --git a/arch/arm64/mm/proc.S b/arch/arm64/mm/proc.S > >> index 32682be..9ee46df 100644 > >> --- a/arch/arm64

Re: [PATCH 5/6] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-12 Thread David Sterba
On Thu, Jan 12, 2017 at 04:37:16PM +0100, Michal Hocko wrote: > From: Michal Hocko > > There are many code paths opencoding kvmalloc. Let's use the helper > instead. The main difference to kvmalloc is that those users are usually > not considering all the aspects of the memory allocator. E.g. all

Re: [Regression] fstrim hangs on Hyper-V: caused by "block: improve handling of the magic discard payload"

2017-01-12 Thread Christoph Hellwig
Can you check if this debug printk triggers for the discard commands? --- diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 888e16e..7ab7d08 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -1031,6 +1031,10 @@ static void storvsc_command_completi

Re: [PATCH 8/9] serdev: add a tty port controller driver

2017-01-12 Thread Rob Herring
On Sat, Jan 7, 2017 at 8:11 AM, Andy Shevchenko wrote: > On Fri, 2017-01-06 at 10:26 -0600, Rob Herring wrote: >> Add a serdev controller driver for tty ports. >> >> The controller is registered with serdev when tty ports are registered >> with the TTY core. As the TTY core is built-in only, this

[PATCH] pinctrl: Initialize pinctrl_dev.node

2017-01-12 Thread Thierry Reding
From: Thierry Reding The struct pinctrl_dev's node field is not properly set up, which means the .prev and .next fields will be NULL. That's not something that the linked list code can deal with, so extra care must be taken when using these fields. An example of this is introduced in commit 3429f

Re: [PATCH] [net] net/mlx5e: fix another -Wmaybe-uninitialized warning

2017-01-12 Thread Arnd Bergmann
On Thursday, January 12, 2017 5:21:49 PM CET Or Gerlitz wrote: > On 1/11/2017 11:14 PM, Arnd Bergmann wrote: > > As found by Olof's build bot, today's mainline kernel gained a harmless > > warning about a potential uninitalied variable reference: > > > > drivers/net/ethernet/mellanox/mlx5/core/en_t

Re: [PATCH v3] arm64: mm: Fix NOMAP page initialization

2017-01-12 Thread Will Deacon
Hi Robert, On Mon, Jan 09, 2017 at 12:53:20PM +0100, Robert Richter wrote: > On 06.01.17 08:37:25, Ard Biesheuvel wrote: > > Any comments on the performance impact (including boot time) ? > > I did a kernel compile test and kernel mode time increases by about > 2.2%. Though this is already signif

Re: [PATCH 5/6] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-12 Thread Christian Borntraeger
On 01/12/2017 04:37 PM, Michal Hocko wrote: > diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c > index 4f74511015b8..e6bbb33d2956 100644 > --- a/arch/s390/kvm/kvm-s390.c > +++ b/arch/s390/kvm/kvm-s390.c > @@ -1126,10 +1126,7 @@ static long kvm_s390_get_skeys(struct kvm *kvm, struct

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-12 Thread Will Deacon
On Thu, Jan 12, 2017 at 03:55:58PM +, Catalin Marinas wrote: > On Wed, Jan 11, 2017 at 06:22:08PM +, Marc Zyngier wrote: > > On 11/01/17 18:06, Catalin Marinas wrote: > > > On Wed, Jan 11, 2017 at 09:41:15AM -0500, Christopher Covington wrote: > > >> diff --git a/arch/arm64/mm/proc.S b/arch

[PATCH 1/2] rtc: tegra: Sort includes alphabetically

2017-01-12 Thread Thierry Reding
From: Thierry Reding The ordering of includes is currently completely arbitrary, making it impossible to decide where to put new includes. Remove the dilemma by sort the include list alphabetically. Signed-off-by: Thierry Reding --- drivers/rtc/rtc-tegra.c | 13 +++-- 1 file changed, 7

[PATCH 2/2] rtc: tegra: Implement clock handling

2017-01-12 Thread Thierry Reding
From: Thierry Reding Accessing the registers of the RTC block on Tegra requires the module clock to be enabled. This only works because the RTC module clock will be enabled by default during early boot. However, because the clock is unused, the CCF will disable it at late_init time. This causes t

Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning

2017-01-12 Thread Arnd Bergmann
On Thursday, January 12, 2017 4:53:55 PM CET Michal Suchánek wrote: > Hello, > > On Thu, 12 Jan 2017 09:32:26 +0100 > Arnd Bergmann wrote: > > > On Thursday, January 12, 2017 3:58:24 AM CET Sebastian Reichel wrote: > > > Hi Arnd, > > > > > > On Wed, Jan 11, 2017 at 03:51:55PM +0100, Arnd Bergma

Re: [PATCH 2/6] mm: support __GFP_REPEAT in kvmalloc_node for >=64kB

2017-01-12 Thread Michael S. Tsirkin
On Thu, Jan 12, 2017 at 04:37:13PM +0100, Michal Hocko wrote: > From: Michal Hocko > > vhost code uses __GFP_REPEAT when allocating vhost_virtqueue resp. > vhost_vsock because it would really like to prefer kmalloc to the > vmalloc fallback - see 23cc5a991c7a ("vhost-net: extend device > allocati

Re: [Question] New mmap64 syscall?

2017-01-12 Thread Florian Weimer
On 01/03/2017 09:54 PM, Pavel Machek wrote: ...actually, with strace and batched interface, it will be impossible to see what is going on because of races. So I'm not sure if I like the batched interface at all... I'm not sure if I understand this problem. ioctl, fcntl, most socket system call

Re: [PATCH v3 2/5] arm64: Work around Falkor erratum 1003

2017-01-12 Thread Mark Rutland
On Thu, Jan 12, 2017 at 03:45:48PM +, Catalin Marinas wrote: > On Wed, Jan 11, 2017 at 06:40:52PM +, Mark Rutland wrote: > > Likewise, I beleive we may need to modify cpu_set_reserved_ttbr0(). > > This may be fine if my assumptions about this erratum are correct. In > the cpu_set_reserved

Re: [PATCH 1/2] afs: Move UUID struct to linux/uuid.h

2017-01-12 Thread David Howells
Arnd Bergmann wrote: > > - reply.ia.uuid[0] = htonl(afs_uuid.time_low); > > - reply.ia.uuid[1] = htonl(afs_uuid.time_mid); > > - reply.ia.uuid[2] = htonl(afs_uuid.time_hi_and_version); > > + reply.ia.uuid[0] = afs_uuid.time_low; > > + reply.ia.uuid[1] = htonl(ntohl(a

Re: [PATCH] power: supply: axp20x_usb_power: fix 64-bit build warning

2017-01-12 Thread Michal Suchánek
Hello, On Thu, 12 Jan 2017 09:32:26 +0100 Arnd Bergmann wrote: > On Thursday, January 12, 2017 3:58:24 AM CET Sebastian Reichel wrote: > > Hi Arnd, > > > > On Wed, Jan 11, 2017 at 03:51:55PM +0100, Arnd Bergmann wrote: > > > Casting a pointer to 'int' is not always valid: > > > > > > drivers

[PATCH] power: reset: Add MAX77620 support

2017-01-12 Thread Thierry Reding
From: Thierry Reding The Maxim MAX77620 PMIC has the ability to power off and restart the system. Add a driver that supports power off (via pm_power_off()) and restart (via arm_pm_restart() on 32-bit and 64-bit ARM). Based on work by Chaitanya Bandi . Cc: Chaitanya Bandi Signed-off-by: Thierry

Re: [PATCH 1/4] efi/x86: make efi_memmap_reserve only insert into boot mem areas

2017-01-12 Thread Ard Biesheuvel
Hello Dave, On 12 January 2017 at 09:41, Dave Young wrote: > There are memory ranges like below when I testing early efi_mem_reserve: > > efi: mem62: [Reserved | | | | | | | | | | | | ] > range=[0x-0x] (0MB) > efi: mem63: [Reserved

Re: [PATCH v4 05/15] lockdep: Make check_prev_add can use a separate stack_trace

2017-01-12 Thread Peter Zijlstra
On Fri, Dec 09, 2016 at 02:12:01PM +0900, Byungchul Park wrote: > check_prev_add() saves a stack trace of the current. But crossrelease > feature needs to use a separate stack trace of another context in > check_prev_add(). So make it use a separate stack trace instead of one > of the current. >

[PATCH v1 1/1] mm/ksm: improve deduplication of zero pages with colouring

2017-01-12 Thread Claudio Imbrenda
Some architectures have a set of zero pages (coloured zero pages) instead of only one zero page, in order to improve the cache performance. In those cases, the kernel samepage merger (KSM) would merge all the allocated pages that happen to be filled with zeroes to the same deduplicated page, thus l

Re: [PATCH v8 2/5] i2c: Add STM32F4 I2C driver

2017-01-12 Thread M'boumba Cedric Madianga
>>> > I don't understand scl_period = 1 µs for Fast Mode. For a bus freqency >>> > of 400 kHz we need low + high = 2.5 µs. Is there a factor 10 missing >>> > somewhere? >>> >>> As CCR = SCL_period * I2C parent clk frequency with minimal freq = >>> 2Mhz and SCL_period = 1 we have: >>> CCR = 1 * 2Mhz

Re: [PATCH 4/4] efi/x86: add debug code to print cooked memmap

2017-01-12 Thread Ard Biesheuvel
On 12 January 2017 at 09:41, Dave Young wrote: > It is not obvious if the reserved boot area are added correctly, add a > efi_print_memmap to print the new memmap. > > Signed-off-by: Dave Young This sounds useful regardless of the other patches in this series: Acked-by: Ard Biesheuvel Note th

Re: [PATCH 2/4] efi/x86: move efi bgrt init code to early init code

2017-01-12 Thread Ard Biesheuvel
On 12 January 2017 at 09:41, Dave Young wrote: > Before invoking the arch specific handler, efi_mem_reserve() reserves > the given memory region through memblock. > > efi_bgrt_init will call efi_mem_reserve after mm_init(), at that time > memblock is dead and it should not be used any more. > > ef

Re: [PATCH] pinctrl: qcom: Add msm8998 pinctrl driver

2017-01-12 Thread Bjorn Andersson
On Mon 09 Jan 07:00 PST 2017, Imran Khan wrote: > diff --git a/drivers/pinctrl/qcom/pinctrl-msm8998.c > b/drivers/pinctrl/qcom/pinctrl-msm8998.c [..] > + > +#define NORTH0x50 > +#define WEST 0x10 > +#define EAST 0x90 So the control registers are now laid out in 3 non-contiguo

[PATCH] Input: silead: use msleep() for long delays

2017-01-12 Thread Nicholas Mc Guire
are not called frequently (init and reset functions) and the uncertainty of 10ms fits the permitted range of the original usleep_ranges(). Patch was compile tested with: x86_64_defconfig + CONFIG_TOUCHSCREEN_SILEAD=m Patch is against 4.10-rc3 (localversion-next is next-20170112) drivers/input

Re: [PATCH v1 1/1] mm/ksm: improve deduplication of zero pages with colouring

2017-01-12 Thread Christian Borntraeger
On 01/12/2017 05:17 PM, Claudio Imbrenda wrote: > Some architectures have a set of zero pages (coloured zero pages) > instead of only one zero page, in order to improve the cache > performance. In those cases, the kernel samepage merger (KSM) would > merge all the allocated pages that happen to be

Re: [PATCH 1/2] afs: Move UUID struct to linux/uuid.h

2017-01-12 Thread Arnd Bergmann
On Thu, Jan 12, 2017 at 5:14 PM, David Howells wrote: >> > reply.ia.uuid[3] = htonl((s8) afs_uuid.clock_seq_hi_and_reserved); >> > reply.ia.uuid[4] = htonl((s8) afs_uuid.clock_seq_low); >> > for (loop = 0; loop < 6; loop++) >> >> Shouldn't this be ntohs() instead of ntohl()

Re: [PATCH v2] vfio/pci: Support error recovery

2017-01-12 Thread Michael S. Tsirkin
On Wed, Jan 11, 2017 at 09:53:25AM +0800, Cao jin wrote: > > > On 01/10/2017 11:11 PM, Michael S. Tsirkin wrote: > > On Tue, Jan 10, 2017 at 07:46:17PM +0800, Cao jin wrote: > >> > >> > >> On 01/10/2017 07:04 AM, Michael S. Tsirkin wrote: > >>> On Sat, Dec 31, 2016 at 05:15:36PM +0800, Cao jin wr

Re: [PATCH] usb: dwc2: host: fix Wmaybe-uninitialized warning

2017-01-12 Thread Greg Kroah-Hartman
On Thu, Jan 12, 2017 at 04:54:38PM +0100, Nicholas Mc Guire wrote: > Signed-off-by: Nicholas Mc Guire > --- > Problem reported by sparse > drivers/usb/dwc2/hcd.c: In function 'dwc2_dump_urb_info': > ./include/linux/dynamic_debug.h:134:3: warning: 'pipetype' may be used > uninitialized in this fun

[PATCH] proc: add a schedule point in proc_pid_readdir()

2017-01-12 Thread Eric Dumazet
From: Eric Dumazet We have seen proc_pid_readdir() invocations holding cpu for more than 50 ms. Add a cond_resched() to be gentle with other tasks. Signed-off-by: Eric Dumazet --- fs/proc/base.c |1 + 1 file changed, 1 insertion(+) diff --git a/fs/proc/base.c b/fs/proc/base.c index 8e7e61

Re: [PATCH v2 0/3] PCI: designware/dra7xx: misc fixes and cleanups

2017-01-12 Thread Kishon Vijay Abraham I
Hi, On Thursday 12 January 2017 06:45 PM, Bjorn Helgaas wrote: > On Thu, Jan 12, 2017 at 10:52:56AM +0530, Kishon Vijay Abraham I wrote: >> Hi Bjorn, >> >> On Thursday 12 January 2017 02:51 AM, Bjorn Helgaas wrote: >>> On Fri, Dec 30, 2016 at 03:26:11PM +0530, Kishon Vijay Abraham I wrote: Th

[PATCH 0/5] pinctrl-mvebu: Fine-tuning for four function implementations

2017-01-12 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 12 Jan 2017 17:25:17 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (5): Use kmalloc_array() in mvebu_pinctrl_dt_node_to_map() Delete an error message for a failed memory allocation in three functions

[PATCH 1/5] pinctrl: mvebu: Use kmalloc_array() in mvebu_pinctrl_dt_node_to_map()

2017-01-12 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 12 Jan 2017 16:00:15 +0100 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus use the corresponding function "kmalloc_array". This issue was detected by using the Coccinelle s

Re: [PATCH] usb: dwc2: host: fix Wmaybe-uninitialized warning

2017-01-12 Thread Nicholas Mc Guire
On Thu, Jan 12, 2017 at 05:25:00PM +0100, Greg Kroah-Hartman wrote: > On Thu, Jan 12, 2017 at 04:54:38PM +0100, Nicholas Mc Guire wrote: > > Signed-off-by: Nicholas Mc Guire > > --- > > Problem reported by sparse > > drivers/usb/dwc2/hcd.c: In function 'dwc2_dump_urb_info': > > ./include/linux/dyn

[PATCH V2] usb: dwc2: host: fix Wmaybe-uninitialized warning

2017-01-12 Thread Nicholas Mc Guire
^ Patch was compile tested with: x86_64_defconfig + CONFIG_USB_DWC2=m + CONFIG_USB_DWC2_VERBOSE=y Patch is against 4.10-rc3 (localversion-next is next-20170112) drivers/usb/dwc2/hcd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c i

Re: [PATCH v2 7/7] uapi: export all headers under uapi directories

2017-01-12 Thread Nicolas Dichtel
Le 12/01/2017 à 17:28, Jan Engelhardt a écrit : > On Thursday 2017-01-12 16:52, Nicolas Dichtel wrote: > >> Le 09/01/2017 à 13:56, Christoph Hellwig a écrit : >>> On Fri, Jan 06, 2017 at 10:43:59AM +0100, Nicolas Dichtel wrote: Regularly, when a new header is created in include/uapi/, the dev

[PATCH 2/5] pinctrl: mvebu: Delete an error message for a failed memory allocation in three functions

2017-01-12 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 12 Jan 2017 16:15:34 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: Possible unnecessary 'out of memory' message Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/pinctrl/mvebu/pinctrl-mv

[PATCH 3/5] pinctrl: mvebu: Delete an unnecessary return statement in mvebu_pinconf_group_dbg_show()

2017-01-12 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 12 Jan 2017 16:30:24 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such a statement in the affected function. Signed-off-by: Markus Elfring --- drivers

Re: [PATCH] usb: dwc3-exynos Fix dma_mask WARN_ON from xhci_plat_probe()

2017-01-12 Thread Shuah Khan
On 01/12/2017 12:26 AM, Felipe Balbi wrote: > > Hi, > > Shuah Khan writes: >> During dwc3_exynos_probe(), WARN_ON(!pdev->dev.dma_mask) is triggered from >> xhci_plat_probe(). dwc3_host_init() doesn't configure DMA prior to adding >> the platform device. >> >> dwc3_host_init() was changed to not

Re: [PATCH] can: Fix kernel panic at security_sock_rcv_skb

2017-01-12 Thread Oliver Hartkopp
On 01/12/2017 02:01 PM, Eric Dumazet wrote: On Thu, 2017-01-12 at 09:22 +0100, Oliver Hartkopp wrote: But my main concern is: The reason why can_rx_delete_receiver() was introduced was the need to remove a huge number of receivers with can_rx_unregister(). When you call synchronize_rcu() aft

Re: [PATCH v2 7/7] uapi: export all headers under uapi directories

2017-01-12 Thread Jan Engelhardt
On Thursday 2017-01-12 16:52, Nicolas Dichtel wrote: >Le 09/01/2017 à 13:56, Christoph Hellwig a écrit : >> On Fri, Jan 06, 2017 at 10:43:59AM +0100, Nicolas Dichtel wrote: >>> Regularly, when a new header is created in include/uapi/, the developer >>> forgets to add it in the corresponding Kbuild

[PATCH 4/5] pinctrl: mvebu: Use seq_puts() in mvebu_pinconf_group_dbg_show()

2017-01-12 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 12 Jan 2017 16:51:00 +0100 Strings which did not contain data format specifications should be put into a sequence. Thus use the corresponding function "seq_puts". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- driver

Re: [PATCH 0/4] mfd: max77686: Remove unneeded non-OF code in driver

2017-01-12 Thread Laxman Dewangan
On Thursday 12 January 2017 07:17 PM, Javier Martinez Canillas wrote: Hello Lee, This series contains cleanups for the max77686 PMIC MFD driver. The driver is only used in DT platforms and so all the code related with the i2c_device_id table can be removed. Best regards, Javier LGTM, let m

[PATCH] arm64: Advertise support for Rounding double multiply instructions

2017-01-12 Thread Suzuki K Poulose
ARM v8.1 extensions include support for rounding double multiply add/subtract instructions to the A64 SIMD instructions set. Let the userspace know about it via a HWCAP bit. Cc: Mark Rutland Cc: Will Deacon Acked-by: Catalin Marinas Signed-off-by: Suzuki K Poulose --- Applies on top of the MRS

[PATCH 5/5] pinctrl: mvebu: Use seq_putc() in mvebu_pinconf_group_dbg_show()

2017-01-12 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 12 Jan 2017 17:12:30 +0100 Single characters should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/pinctrl/mvebu/pinctrl-mvebu.c | 16 ++

Re: [PATCH v4 06/15] lockdep: Make save_trace can skip stack tracing of the current

2017-01-12 Thread Peter Zijlstra
On Fri, Dec 09, 2016 at 02:12:02PM +0900, Byungchul Park wrote: > Currently, save_trace() always performs save_stack_trace() for the > current. However, crossrelease needs to use stack trace data of another > context instead of the current. So add a parameter for skipping stack > tracing of the cur

RE: [Regression] fstrim hangs on Hyper-V: caused by "block: improve handling of the magic discard payload"

2017-01-12 Thread Dexuan Cui
> From: Christoph Hellwig [mailto:h...@lst.de] > Sent: Thursday, January 12, 2017 23:53 > To: Dexuan Cui > Cc: Christoph Hellwig ; linux-bl...@vger.kernel.org; Jens Axboe > ; Vitaly Kuznetsov ; linux- > ker...@vger.kernel.org; KY Srinivasan ; Chris Valean > (Cloudbase Solutions SRL) > Subject: Re

Re: [PATCH 0/3] crypto: picoxcell - Cleanups removing non-DT code

2017-01-12 Thread Herbert Xu
On Mon, Jan 02, 2017 at 02:06:56PM -0300, Javier Martinez Canillas wrote: > Hello, > > This small series contains a couple of cleanups that removes some driver's > code > that isn't needed due the driver being for a DT-only platform. > > The changes were suggested by Arnd Bergmann as a response

Re: [PATCH] crypto: Replaced gcc specific attributes with macros from compiler.h

2017-01-12 Thread Herbert Xu
On Sat, Dec 31, 2016 at 09:26:23PM +0530, gidisr...@gmail.com wrote: > From: Gideon Israel Dsouza > > Continuing from this commit: 52f5684c8e1e > ("kernel: use macros from compiler.h instead of __attribute__((...))") > > I submitted 4 total patches. They are part of task I've taken up to > incre

Re: [PATCH 1/2] afs: Move UUID struct to linux/uuid.h

2017-01-12 Thread David Howells
Arnd Bergmann wrote: > Yes, looks good to me. Can I put that down as a Reviewed-by? David

Re: [PATCH] crypto: mediatek: don't return garbage err on successful return

2017-01-12 Thread Herbert Xu
On Tue, Jan 03, 2017 at 01:21:22PM +, Colin King wrote: > From: Colin Ian King > > In the case where keylen <= bs mtk_sha_setkey returns an uninitialized > return value in err. Fix this by returning 0 instead of err. > > Issue detected by static analysis with cppcheck. > > Signed-off-by: C

Re: [PATCH v2 8/8] crypto/testmgr: Allocate only the required output size for hash tests

2017-01-12 Thread Herbert Xu
On Tue, Jan 10, 2017 at 03:24:46PM -0800, Andy Lutomirski wrote: > There are some hashes (e.g. sha224) that have some internal trickery > to make sure that only the correct number of output bytes are > generated. If something goes wrong, they could potentially overrun > the output buffer. > > Mak

Re: [PATCH 2/2] crypto: mediatek - fix format string for 64-bit builds

2017-01-12 Thread Herbert Xu
On Wed, Jan 11, 2017 at 02:55:20PM +0100, Arnd Bergmann wrote: > After I enabled COMPILE_TEST for non-ARM targets, I ran into these > warnings: > > crypto/mediatek/mtk-aes.c: In function 'mtk_aes_info_map': > crypto/mediatek/mtk-aes.c:224:28: error: format '%d' expects argument of type > 'int', b

[PATCH] ASoC: sun4i-spdif: Add support for the H3 SoC

2017-01-12 Thread codekipper
From: Marcus Cooper The H3 SoC uses the same SPDIF block as found in earlier SoCs, but its TXFIFO is mapped to another address. Signed-off-by: Marcus Cooper --- sound/soc/sunxi/sun4i-spdif.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/sound/soc/sunxi/sun4i-spdif.c b/sound/

Re: [PATCH 1/2] crypto: mediatek - remove ARM dependencies

2017-01-12 Thread Herbert Xu
On Wed, Jan 11, 2017 at 02:50:19PM +0100, Arnd Bergmann wrote: > Building the mediatek driver on an older ARM architecture results in a > harmless warning: > > warning: (ARCH_OMAP2PLUS_TYPICAL && CRYPTO_DEV_MEDIATEK) selects NEON which > has unmet direct dependencies (VFPv3 && CPU_V7) > > We cou

Re: [PATCH] PCI: dwc: Add COMPILE_TEST to all designware based drivers

2017-01-12 Thread Joao Pinto
Hi Kishon, Às 9:43 AM de 1/12/2017, Kishon Vijay Abraham I escreveu: > Add COMPILE_TEST to all designware based drivers so that it is possible > to perform compile test even when a particular architecture specific > config symbol is not set. > > Signed-off-by: Kishon Vijay Abraham I > --- > dr

Re: [PATCH v5 3/9] mm/swap: Split swap cache into 64MB trunks

2017-01-12 Thread Tim Chen
On Wed, Jan 11, 2017 at 03:19:37PM -0800, Andi Kleen wrote: > > Switching from a single radix-tree to an array of radix-trees to reduce > > contention seems a bit hacky. That we can do this and have everything > > continue to work tells me that we're simply using an inappropriate data > > structur

Re: ANNOUNCE: mdadm 4.0 - A tool for managing md Soft RAID under Linux

2017-01-12 Thread Jes Sorensen
On 01/11/17 23:24, Guoqing Jiang wrote: > > > On 01/12/2017 12:59 AM, Jes Sorensen wrote: >> On 01/11/17 11:52, Shaohua Li wrote: >>> On Tue, Jan 10, 2017 at 11:49:04AM -0600, Bruce Dubbs wrote: Jes Sorensen wrote: > I am pleased to announce the availability of > mdadm version 4

Re: [PATCH] power: reset: Add MAX77620 support

2017-01-12 Thread Laxman Dewangan
On Thursday 12 January 2017 09:45 PM, Thierry Reding wrote: From: Thierry Reding The Maxim MAX77620 PMIC has the ability to power off and restart the system. Add a driver that supports power off (via pm_power_off()) and restart (via arm_pm_restart() on 32-bit and 64-bit ARM). Based on work by

Re: mtd/ftl: Use kmalloc_array() in build_maps()

2017-01-12 Thread SF Markus Elfring
> The indentation has been changed and the new one looks wrong... The source code formatting contained various open issues before already. > If you want to fix the indentation to make it compliant with the Linux > coding style, do it on the whole file so every thing is uniform. Such a developme

Re: eMMC boot problem: switch to bus width 8 ddr failed

2017-01-12 Thread Ulf Hansson
+ Haibo, Gary, Fabio, Shawn Gou On 6 January 2017 at 16:56, Clemens Gruber wrote: > On Fri, Jan 06, 2017 at 10:33:49AM +0800, Shawn Lin wrote: >> On 2017/1/6 8:41, Clemens Gruber wrote: >> > Hi, >> > >> > with the current mainline 4.10-rc2 kernel, I can no longer boot from >> > the eMMC on my i.M

Re: [PATCH v4 0/4] Application Data Integrity feature introduced by SPARC M7

2017-01-12 Thread Khalid Aziz
On 01/11/2017 05:49 PM, Dave Hansen wrote: On 01/11/2017 04:22 PM, Khalid Aziz wrote: ... All of the tag coordination can happen in userspace. Once a process sets a tag on a physical page mapped in its address space, another process that has mapped the same physical page in its address space can

Re: [PATCH 5/6] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-12 Thread Ilya Dryomov
On Thu, Jan 12, 2017 at 4:37 PM, Michal Hocko wrote: > From: Michal Hocko > > There are many code paths opencoding kvmalloc. Let's use the helper > instead. The main difference to kvmalloc is that those users are usually > not considering all the aspects of the memory allocator. E.g. allocation >

[PATCH v3 0/2] tpm: enhance TPM 2.0 extend function to support multiple PCR banks

2017-01-12 Thread Nayna Jain
IMA extends its hash measurements in the TPM PCRs, based on policy. The existing in-kernel TPM extend function extends only the SHA1 PCR bank. TPM 2.0 defines multiple PCR banks, to support different hash algorithms. The TCG TPM 2.0 Specification[1] recommends extending all active PCR banks to prev

[PATCH] livepatch/module: print notice of TAINT_LIVEPATCH

2017-01-12 Thread Joe Lawrence
Add back the "tainting kernel with TAINT_LIVEPATCH" kernel log message that commit 2992ef29ae01 ("livepatch/module: make TAINT_LIVEPATCH module-specific") dropped. Now that it's a module-specific taint flag, include the module name. Signed-off-by: Joe Lawrence --- kernel/module.c | 2 ++ 1 file

Re: [linux-sunxi] Re: [PATCH 4/5] ARM: dts: sunxi: add dtsi file for V3s SoC

2017-01-12 Thread Maxime Ripard
On Wed, Jan 11, 2017 at 11:56:32AM +0800, Icenowy Zheng wrote: > > 2017年1月11日 02:21于 Maxime Ripard 写道: > > > > On Tue, Jan 03, 2017 at 11:16:28PM +0800, Icenowy Zheng wrote: > > > + uart0_pins_a: uart0@0 { > > > + pins = "PB8", "PB9"; > > > + function = "uart0"; > > > + bias-pull-up; > > > >

Re: mtd/ftl: Use kmalloc_array() in build_maps()

2017-01-12 Thread Marek Vasut
On 01/12/2017 05:50 PM, SF Markus Elfring wrote: >> The indentation has been changed and the new one looks wrong... > > The source code formatting contained various open issues before already. > > >> If you want to fix the indentation to make it compliant with the Linux >> coding style, do it on

[PATCH v3 1/2] tpm: implement TPM 2.0 capability to get active PCR banks

2017-01-12 Thread Nayna Jain
This patch implements the TPM 2.0 capability TPM_CAP_PCRS to retrieve the active PCR banks from the TPM. This is needed to enable extending all active banks as recommended by TPM 2.0 TCG Specification. Signed-off-by: Nayna Jain --- drivers/char/tpm/tpm.h | 4 +++ drivers/char/tpm/tpm2-cmd.

[PATCH v3 2/2] tpm: enhance TPM 2.0 PCR extend to support multiple banks

2017-01-12 Thread Nayna Jain
The current TPM 2.0 device driver extends only the SHA1 PCR bank but the TCG Specification[1] recommends extending all active PCR banks, to prevent malicious users from setting unused PCR banks with fake measurements and quoting them. The existing in-kernel interface(tpm_pcr_extend()) expects only

Re: [PATCH v3 3/5] arm64: Create and use __tlbi_dsb() macros

2017-01-12 Thread Will Deacon
Hi Christopher, On Wed, Jan 11, 2017 at 09:41:16AM -0500, Christopher Covington wrote: > This refactoring will allow an errata workaround that repeats tlbi dsb > sequences to only change one location. This is not intended to change the > generated assembly and comparison of before and after prepro

Plastic Extrusion Design Services

2017-01-12 Thread Angel
Hi, Dong Guan RiTeng Industrial Co.,Ltd. a large plastic extrusion / co-extrusion profiles/ pipes manufacturer in China. Our product range includes PC/PMMA/PP/PS/PE/PVC/ABS plastic extrusion/co-extrusion profiles/pipes, extrusion production line. And we have a corresponding plastic extrusion m

Re: [PATCH 5/6] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-12 Thread Dan Williams
On Thu, Jan 12, 2017 at 7:37 AM, Michal Hocko wrote: > From: Michal Hocko > > There are many code paths opencoding kvmalloc. Let's use the helper > instead. The main difference to kvmalloc is that those users are usually > not considering all the aspects of the memory allocator. E.g. allocation >

[GIT PULL] STi DT update for v4.11 round 1

2017-01-12 Thread Patrice Chotard
Hi Arnd, Kevin, Olof PLease consider this first round of STi dts update for v4.11 : The following changes since commit 7ce7d89f48834cefece7804d38fc5d85382edf77: Linux 4.10-rc1 (2016-12-25 16:13:08 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/

Re: [RFC PATCH] ext4: increase the protection of drop nlink and ext4 inode destroy

2017-01-12 Thread Theodore Ts'o
On Thu, Jan 12, 2017 at 04:00:16PM +0800, zhangyi (F) wrote: > > At the same time, I think other file systems may have the same problem, do > you think we should put these detections on the VFS layer? Thus other file > systems no need to do the same things, but the disadvantage is that we can > no

Re: [PATCH 3/3] mm, page_allocator: Only use per-cpu allocator for irq-safe requests

2017-01-12 Thread Vlastimil Babka
On 01/12/2017 11:43 AM, Mel Gorman wrote: Many workloads that allocate pages are not handling an interrupt at a time. As allocation requests may be from IRQ context, it's necessary to disable/enable IRQs for every page allocation. This cost is the bulk of the free path but also a significant perc

Re: [PATCH] i2c: core: helper function to detect slave mode

2017-01-12 Thread Andy Shevchenko
On Sat, 2017-01-07 at 03:24 +0200, Vladimir Zapolskiy wrote: > On 01/07/2017 02:19 AM, Andy Shevchenko wrote: > > On Sat, Jan 7, 2017 at 1:43 AM, Vladimir Zapolskiy > > wrote: > > > On 01/07/2017 12:45 AM, Andy Shevchenko wrote: > > > > + } > > > > > > + } else if (IS_BUILTIN(CONF

Re: [PATCH v2 0/3] PCI: designware/dra7xx: misc fixes and cleanups

2017-01-12 Thread Kishon Vijay Abraham I
Hi, On Thursday 12 January 2017 06:53 PM, Kishon Vijay Abraham I wrote: > Hi, > > On Thursday 12 January 2017 06:45 PM, Bjorn Helgaas wrote: >> On Thu, Jan 12, 2017 at 10:52:56AM +0530, Kishon Vijay Abraham I wrote: >>> Hi Bjorn, >>> >>> On Thursday 12 January 2017 02:51 AM, Bjorn Helgaas wrote:

Re: [PATCH] RDMA/i40iw: use designated initializers

2017-01-12 Thread Doug Ledford
On Fri, 2016-12-16 at 17:05 -0800, Kees Cook wrote: > Prepare to mark sensitive kernel structures for randomization by > making > sure they're using designated initializers. These were identified > during > allyesconfig builds of x86, arm, and arm64, with most initializer > fixes > extracted from g

Re: [PATCH] IB/qib: use rb_entry()

2017-01-12 Thread Doug Ledford
On Tue, 2016-12-20 at 22:02 +0800, Geliang Tang wrote: > To make the code clearer, use rb_entry() instead of container_of() to > deal with rbtree. > > Signed-off-by: Geliang Tang In spite of the fact that I don't really like this patch, and don't think it's an improvement, because other people h

Re: [PATCH] RDMA/nes: use designated initializers

2017-01-12 Thread Doug Ledford
On Fri, 2016-12-16 at 17:03 -0800, Kees Cook wrote: > Prepare to mark sensitive kernel structures for randomization by > making > sure they're using designated initializers. These were identified > during > allyesconfig builds of x86, arm, and arm64, with most initializer > fixes > extracted from g

Re: Support Intel uncore event lists v4

2017-01-12 Thread Andi Kleen
> > Really only trivial changes at this point, so you only need to read > > the patches you didn't read and ack before. > > any chance you'd push the new branch out? I pushed git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc perf/builtin-json-23 to make it do something also need to me

[PATCH 1/2] HID: corsair: fix DMA buffers on stack

2017-01-12 Thread Johan Hovold
Not all platforms support DMA to the stack, and specifically since v4.9 this is no longer supported on x86 with VMAP_STACK either. Note that the macro-mode buffer was larger than necessary. Fixes: 6f78193ee9ea ("HID: corsair: Add Corsair Vengeance K90 driver") Cc: stable Signed-off-by: Johan Hov

[PATCH 0/2] HID: corsair: fix DMA to stack and info leaks

2017-01-12 Thread Johan Hovold
These patches fix DMA buffers on stack and information leaks in the corsair HID driver. Note that this series has only been compile tested. Johan Johan Hovold (2): HID: corsair: fix DMA buffers on stack HID: corsair: fix control-transfer error handling drivers/hid/hid-corsair.c | 60 +

Re: [PATCH 5/6] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-12 Thread Michal Hocko
On Thu 12-01-17 17:54:34, Ilya Dryomov wrote: > On Thu, Jan 12, 2017 at 4:37 PM, Michal Hocko wrote: > > From: Michal Hocko > > > > There are many code paths opencoding kvmalloc. Let's use the helper > > instead. The main difference to kvmalloc is that those users are usually > > not considering

Re: [PATCH] iommu/arm-smmu-v3: limit use of 2-level stream tables

2017-01-12 Thread Will Deacon
On Tue, Jan 10, 2017 at 02:47:13PM -0500, Nate Watterson wrote: > In the current arm-smmu-v3 driver, all smmus that support 2-level > stream tables are being forced to use them. This is suboptimal for > smmus that support fewer stream id bits than would fill in a single > second level table. This p

Re: [PATCH 1/3] mm, page_alloc: Split buffered_rmqueue

2017-01-12 Thread Mel Gorman
On Thu, Jan 12, 2017 at 04:44:20PM +0100, Vlastimil Babka wrote: > On 01/12/2017 11:42 AM, Mel Gorman wrote: > > buffered_rmqueue removes a page from a given zone and uses the per-cpu > > list for order-0. This is fine but a hypothetical caller that wanted > > multiple order-0 pages has to disable/

Re: [PATCH 2/5] clk: sunxi-ng: add support for V3s CCU

2017-01-12 Thread Maxime Ripard
On Thu, Jan 12, 2017 at 03:44:53AM +0800, Icenowy Zheng wrote: > > > 12.01.2017, 03:40, "Icenowy Zheng" : > > 11.01.2017, 02:10, "Maxime Ripard" : > >>  On Tue, Jan 03, 2017 at 11:16:26PM +0800, Icenowy Zheng wrote: > >>>   V3s has a similar but cut-down CCU to H3. > >>> > >>>   Add support for i

Re: [PATCH v1 1/1] mm/ksm: improve deduplication of zero pages with colouring

2017-01-12 Thread Andrea Arcangeli
Hello Claudio, On Thu, Jan 12, 2017 at 05:17:14PM +0100, Claudio Imbrenda wrote: > +#ifdef __HAVE_COLOR_ZERO_PAGE > + /* > + * Same checksum as an empty page. We attempt to merge it with the > + * appropriate zero page. > + */ > + if (checksum == zero_checksum) { > +

Re: [PATCH] ASoC: sun4i-spdif: Add support for the H3 SoC

2017-01-12 Thread Maxime Ripard
On Thu, Jan 12, 2017 at 05:45:16PM +0100, codekip...@gmail.com wrote: > From: Marcus Cooper > > The H3 SoC uses the same SPDIF block as found in earlier SoCs, but its > TXFIFO is mapped to another address. > > Signed-off-by: Marcus Cooper You should also document the new compatible. Once this

sysfs deferred_probe attribute

2017-01-12 Thread Rob Herring
I just noticed that we have a new device attribute 'deferred_probe' added in 4.10 with this commit: commit 6751667a29d6fd64afb9ce30567ad616b68ed789 Author: Ben Hutchings Date: Tue Aug 16 14:34:18 2016 +0100 driver core: Add deferred_probe attribute to devices in sysfs It is sometimes

Re: [PATCH 5/6] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-12 Thread Kees Cook
On Thu, Jan 12, 2017 at 7:37 AM, Michal Hocko wrote: > From: Michal Hocko > > There are many code paths opencoding kvmalloc. Let's use the helper > instead. The main difference to kvmalloc is that those users are usually > not considering all the aspects of the memory allocator. E.g. allocation >

Re: [PATCH 5/6] treewide: use kv[mz]alloc* rather than opencoded variants

2017-01-12 Thread Michal Hocko
Ilya has noticed that I've screwed up some k[zc]alloc conversions and didn't use the kvzalloc. This is an updated patch with some acks collected on the way --- >From a7b89c6d0a3c685045e37740c8f97b065f37e0a4 Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Wed, 4 Jan 2017 13:30:32 +0100 Subject: [

[PATCH] ASoC: sunxi: Add bindings for sun8i to SPDIF

2017-01-12 Thread codekipper
From: Marcus Cooper The H3 SoC uses the same SPDIF block as found in earlier SoCs, but the transmit fifo is at a different address. Signed-off-by: Marcus Cooper --- Documentation/devicetree/bindings/sound/sunxi,sun4i-spdif.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/d

Re: [PATCH] power: reset: Add MAX77620 support

2017-01-12 Thread Thierry Reding
On Thu, Jan 12, 2017 at 10:06:24PM +0530, Laxman Dewangan wrote: > > On Thursday 12 January 2017 09:45 PM, Thierry Reding wrote: > > From: Thierry Reding > > > > The Maxim MAX77620 PMIC has the ability to power off and restart the > > system. Add a driver that supports power off (via pm_power_of

Re: [PATCH 3/4] net: ethernet: ti: cpsw: don't duplicate ndev_running

2017-01-12 Thread Grygorii Strashko
On 01/10/2017 07:56 PM, Ivan Khoronzhuk wrote: > On Mon, Jan 09, 2017 at 11:25:38AM -0600, Grygorii Strashko wrote: >> >> >> On 01/08/2017 10:41 AM, Ivan Khoronzhuk wrote: >>> No need to create additional vars to identify if interface is running. >>> So simplify code by removing redundant var and

<    1   2   3   4   5   6   7   8   9   10   >