[PATCH v3] iio: adc: ina2xx: Make calibration register value fixed

2017-12-15 Thread Maciej Purski
Calibration register is used for calculating current register in hardware according to datasheet: current = shunt_volt * calib_register / 2048 (ina 226) current = shunt_volt * calib_register / 4096 (ina 219) Fix calib_register value to 2048 for ina226 and 4096 for ina 219 in order to avoid truncat

Re: [PATCH v2 05/13] pinctrl: Add Microsemi Ocelot SoC driver

2017-12-15 Thread Philippe Ombredanne
Alexandre, Linux On Fri, Dec 15, 2017 at 12:53 AM, Linus Walleij wrote: > On Wed, Dec 13, 2017 at 10:23 AM, Philippe Ombredanne > wrote: >> On Wed, Dec 13, 2017 at 9:15 AM, Linus Walleij >> wrote: +// SPDX-License-Identifier: (GPL-2.0 OR MIT) >>> >>> Wow never saw that before. OK I guess.

Re: [PATCH] exit: move exit_task_namespaces() after exit_task_work()

2017-12-15 Thread Dmitry Vyukov
On Fri, Dec 15, 2017 at 8:35 AM, Dmitry Vyukov wrote: > On Fri, Dec 15, 2017 at 7:56 AM, Eric W. Biederman > wrote: >> Cong Wang writes: >> >>> syzbot reported we have a use-after-free when mqueue_evict_inode() >>> is called on __cleanup_mnt() path, where the ipc ns is already >>> freed by the p

Re: [PATCH v2 01/17] mm/gup: Fixup p*_access_permitted()

2017-12-15 Thread Peter Zijlstra
On Thu, Dec 14, 2017 at 09:04:56PM -0800, Dave Hansen wrote: > > I've got some additions to the selftests and a fix where we pass FOLL_* > flags around a bit more instead of just 'write'. I'll get those out as > soon as I do a bit more testing. Try the below; I have more in the works, but this a

Re: [PATCH v3 2/2] drm: rcar-du: calculate DPLLCR to be more small jitter

2017-12-15 Thread Geert Uytterhoeven
Hi Morimoto-san, On Fri, Dec 15, 2017 at 2:24 AM, Kuninori Morimoto wrote: > From: Kuninori Morimoto > In general, PLL has VCO (= Voltage controlled oscillator), > one of the very important electronic feature called as "jitter" > is related to this VCO. > In academic generalism, VCO should be ma

Re: [PATCH 0/2] input - leds: fix bugs found by fuzzing

2017-12-15 Thread Benjamin Tissoires
On Fri, Dec 15, 2017 at 1:16 AM, Samuel Thibault wrote: > Hello, > > Benjamin Tissoires, on jeu. 14 déc. 2017 14:25:20 +0100, wrote: >> I marked them as stable as I believe eventhough not many >> people discovered those and reported them, they should >> still be fixed in current kernels. > > Well,

Re: [PATCH net-next v6 1/2] dt-bindings: net: add DT bindings for Socionext UniPhier AVE

2017-12-15 Thread Kunihiko Hayashi
Hello Florian, On Thu, 14 Dec 2017 15:24:17 -0800 wrote: > > > On 12/14/2017 02:05 AM, Kunihiko Hayashi wrote: > > DT bindings for the AVE ethernet controller found on Socionext's > > UniPhier platforms. > > > > Signed-off-by: Kunihiko Hayashi > > Signed-off-by: Jassi Brar > > Acked-by: Rob

Re: [RFC PATCH v2 4/4] Allow to trace fd usage with rlimit-events

2017-12-15 Thread Krzysztof Opasiak
On 12/15/2017 12:59 AM, Andreas Dilger wrote: On Dec 14, 2017, at 3:00 PM, Krzysztof Opasiak wrote: Add rlimit-events calls to file descriptors management code to allow tracing of FD usage. This allows userspace process (monitor) to get notification when other process (subject) uses given a

[PATCH] gpio: fix "gpio-line-names" property retrieval

2017-12-15 Thread Christophe Leroy
Following commit 9427ecbed46cc ("gpio: Rework of_gpiochip_set_names() to use device property accessors"), "gpio-line-names" DT property is not retrieved anymore when chip->parent is not set by the driver. This patch fixes that. Fixes: 9427ecbed46cc ("gpio: Rework of_gpiochip_set_names() to use de

Re: [PATCH v3 2/2] drm: rcar-du: calculate DPLLCR to be more small jitter

2017-12-15 Thread Kuninori Morimoto
Hi Geert > > From: Kuninori Morimoto > > In general, PLL has VCO (= Voltage controlled oscillator), > > one of the very important electronic feature called as "jitter" > > is related to this VCO. > > In academic generalism, VCO should be maximum to be more small jitter. > > In high frequency clo

Re: [PATCH v2 1/5] extcon: usbc-cros-ec: add support to notify USB type cables.

2017-12-15 Thread Lee Jones
> On 2017년 12월 13일 19:32, Enric Balletbo i Serra wrote: > > From: Benson Leung > > > > Extend the driver to notify host and device type cables and the presence > > of power. > > > > Signed-off-by: Benson Leung > > Signed-off-by: Enric Balletbo i Serra > > Reviewed-by: Chanwoo Choi > > --- > >

Re: linux-next: Tree for Dec 14 (usb/dwc3)

2017-12-15 Thread Felipe Balbi
Hi, Randy Dunlap writes: > On 12/13/2017 11:06 PM, Stephen Rothwell wrote: >> Hi all, >> >> Changes since 20171213: >> > > on i386: > > ERROR: "__tracepoint_dwc3_writel" [drivers/usb/dwc3/dwc3.ko] undefined! > ERROR: "__tracepoint_dwc3_readl" [drivers/usb/dwc3/dwc3.ko] undefined! > > > > I can

Re: [PATCH v2 1/5] extcon: usbc-cros-ec: add support to notify USB type cables.

2017-12-15 Thread Chanwoo Choi
On 2017년 12월 15일 17:14, Lee Jones wrote: >> On 2017년 12월 13일 19:32, Enric Balletbo i Serra wrote: >>> From: Benson Leung >>> >>> Extend the driver to notify host and device type cables and the presence >>> of power. >>> >>> Signed-off-by: Benson Leung >>> Signed-off-by: Enric Balletbo i Serra >>

RE: [PATCH] ASoC: nau8825: fix issue that pop noise when start capture

2017-12-15 Thread Kumar, Abhijeet
Need some help on next steps Who will do the review and patch merge? Should i add any other mailing list to this thread? -Original Message- From: John Hsu [mailto:kch...@nuvoton.com] Sent: Friday, December 15, 2017 12:47 PM To: Kumar, Abhijeet Cc: Liam Girdwood ; Mark Brown ; Jaroslav

Re: [SIL2review] [PATCH] fixdep: free memory on second error path of do_config_file

2017-12-15 Thread Nicholas Mc Guire
On Thu, Dec 14, 2017 at 08:54:10PM +0100, Lukas Bulwahn wrote: > Commit dee81e988674 ("fixdep: faster CONFIG_ search") introduces the memory > leak when `map = mmap(...)` was replaced with `map = malloc(...)` and > `read(fd, map, ...)`. It introduces a new second error path, which does not > free t

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-15 Thread Petr Mladek
On Fri 2017-12-15 14:06:07, Sergey Senozhatsky wrote: > Hello, > > On (12/14/17 22:18), Steven Rostedt wrote: > > > Steven, your approach works ONLY when we have the following preconditions: > > > > > > a) there is a CPU that is calling printk() from the 'safe' (non-atomic, > > > etc) contex

Re: linux-next: Tree for Dec 15

2017-12-15 Thread Stephen Rothwell
Hi Sergey, On Fri, 15 Dec 2017 15:54:22 +0900 Sergey Senozhatsky wrote: > > hm, still no next-20171215 at > https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/refs/ It seems that the mirroring has failed, as the backend has been updated correctly (I even did it aga

Re: [PATCH v2 1/5] extcon: usbc-cros-ec: add support to notify USB type cables.

2017-12-15 Thread Chanwoo Choi
On 2017년 12월 15일 17:20, Chanwoo Choi wrote: > On 2017년 12월 15일 17:14, Lee Jones wrote: >>> On 2017년 12월 13일 19:32, Enric Balletbo i Serra wrote: From: Benson Leung Extend the driver to notify host and device type cables and the presence of power. Signed-off-by: Benson

Re: [PATCH v3 2/2] drm: rcar-du: calculate DPLLCR to be more small jitter

2017-12-15 Thread Geert Uytterhoeven
Hi Morimoto-san, On Fri, Dec 15, 2017 at 9:12 AM, Kuninori Morimoto wrote: >> > From: Kuninori Morimoto >> > In general, PLL has VCO (= Voltage controlled oscillator), >> > one of the very important electronic feature called as "jitter" >> > is related to this VCO. >> > In academic generalism, V

Re: Adding init_task consolidation patches to linux-next

2017-12-15 Thread David Howells
Palmer Dabbelt wrote: > Thanks! It works for me. Excellent, thanks! Can I put you down as a Tested-by for riscv? David

Re: [PATCH] locking/lockdep: Remove the cross-release locking checks

2017-12-15 Thread Byungchul Park
On Fri, Dec 15, 2017 at 3:24 PM, Theodore Ts'o wrote: > seems that lock classification as a solution to cross-release false > positives seems unlikely: For this, let me explain more. For example, either to use cross-release or to consider wait_for_completion() in submit_bio_wait() manually u

Re: [PATCH 1/1] usb: serial: option: add support for Telit ME910 PID 0x1101

2017-12-15 Thread Johan Hovold
On Thu, Dec 14, 2017 at 04:54:45PM +0100, Daniele Palmas wrote: > This patch adds support for PID 0x1101 of Telit ME910. > > Signed-off-by: Daniele Palmas Applied, thanks. Johan

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-15 Thread Sergey Senozhatsky
On (12/15/17 09:31), Petr Mladek wrote: > > On (12/14/17 22:18), Steven Rostedt wrote: > > > > Steven, your approach works ONLY when we have the following > > > > preconditions: > > > > > > > > a) there is a CPU that is calling printk() from the 'safe' (non-atomic, > > > > etc) context > > >

Re: [patch v2 1/2] mm, mmu_notifier: annotate mmu notifiers with blockable invalidate callbacks

2017-12-15 Thread Paolo Bonzini
On 14/12/2017 22:30, David Rientjes wrote: > Commit 4d4bbd8526a8 ("mm, oom_reaper: skip mm structs with mmu notifiers") > prevented the oom reaper from unmapping private anonymous memory with the > oom reaper when the oom victim mm had mmu notifiers registered. > > The rationale is that doing mmu_

RE: [PATCH] usbip: vhci-hcd: return correct port ENABLE status

2017-12-15 Thread Zhang, Pei
Add maintainers * * BRs, Pei Zhang > -Original Message- > From: Zhang, Pei > Sent: Wednesday, December 6, 2017 11:41 AM > To: linux-kernel@vger.kernel.org; usbip-de...@lists.sourceforge.net > Cc: Zhang, Pei > Subject: [PATCH] usbip: vhci-hcd: return correct port ENABLE st

Re: [PATCH] drivers: base: power: Fix GFP_KERNEL in spinlock context

2017-12-15 Thread Pavel Machek
On Tue 2017-12-12 15:58:00, Geert Uytterhoeven wrote: > Hi Shrikant, > > On Tue, Dec 12, 2017 at 2:45 PM, wrote: > > From: Shrikant Maurya > > > > As reported by Jia-Ju Bai (https://lkml.org/lkml/2017/12/11/872): > > API's are using GFP_KERNEL to allocate memory which may sleep. > > > > To ensu

Re: [PATCH] arm: dts: Remove leading 0x and 0s from bindings notation

2017-12-15 Thread Jesper Nilsson
On Thu, Dec 14, 2017 at 05:53:48PM +0100, Mathieu Malaterre wrote: > Improve the DTS files by removing all the leading "0x" and zeros to fix the > following dtc warnings: > > Warning (unit_address_format): Node /XXX unit name should not have leading > "0x" > > and > > Warning (unit_address_form

[PATCH] ARM: dts: sun7i: Enable HDMI on pcDuino3 Nano

2017-12-15 Thread Tuomas Tynkkynen
The board has a regular-sized HDMI connector, so enable the display the pipeline and HDMI output for it. Signed-off-by: Tuomas Tynkkynen --- arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dts | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/sun7i-a20-pc

[PATCH 0/4] stm32 clocksource driver rework

2017-12-15 Thread Benjamin Gaignard
version 10: - do not remove 16 bits timer support - use prescaler to get a 10KHz clock version 9: - rebased on timer/master where timer_of_cleanup() exist - fix the comments done by Daniel on v8 - reword commits message to be more explicit about 16 bits counter issue - add one patch about co

[PATCH 3/4] clocksource: stm32: add clocksource support

2017-12-15 Thread Benjamin Gaignard
The stm32 timer hardware is currently only used as a clock event device, but it can be used as a clocksource as well. Implement this by enabling the free running counter in the hardware block and converting the clock event part from a count down event timer to a comparator based timer. Signed-off

[PATCH 4/4] clocksource: stm32: Update license and copyright

2017-12-15 Thread Benjamin Gaignard
Adopt SPDX License Identifier and add STMicroelectronics copyright Signed-off-by: Benjamin Gaignard --- drivers/clocksource/timer-stm32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c index 38eb59bb7f

[PATCH 2/4] clocksource: stm32: use prescaler to adjust the resolution

2017-12-15 Thread Benjamin Gaignard
Rather than use fixed prescaler values compute it to get a clock as close as possible of 10KHz and a resolution of 0.1ms. Signed-off-by: Benjamin Gaignard --- drivers/clocksource/timer-stm32.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/drivers/cl

Re: [PATCH tip 0/3] Improvements of scheduler related Tracepoints

2017-12-15 Thread Teng Qin
On 12/14/17, 23:40, "Peter Zijlstra" wrote: > On Thu, Dec 14, 2017 at 07:16:00PM -0800, Alexei Starovoitov wrote: > > On 12/14/17 12:49 PM, Peter Zijlstra wrote: > > > On Thu, Dec 14, 2017 at 12:20:41PM -0800, Teng Qin wrote: > > > > This set of commits attempts to improve three scheduler relate

[PATCH 1/4] clocksource: stm32: convert driver to timer_of

2017-12-15 Thread Benjamin Gaignard
Convert driver to use timer_of helpers. This allow to remove custom proprietary structure. Given counter number of bits (16 or 32) set a different prescaler value and adjust timer_of rate, period and rating. Signed-off-by: Benjamin Gaignard --- drivers/clocksource/Kconfig | 1 + drivers

Re: [PATCH] cgroup/cpuset: fix circular locking dependency

2017-12-15 Thread Prateek Sood
On 12/13/2017 09:10 PM, Tejun Heo wrote: Hi TJ, > Hello, Prateek. > > On Wed, Dec 13, 2017 at 07:58:24PM +0530, Prateek Sood wrote: >> Did you mean something like below. If not then could you >> please share a patch for this problem in >> cgroup_transfer_tasks(). > > Oh we surely can add a new i

Re: [PATCH 1/3] mmc: sdhci-pci-o2micro: Add hardware tuning for eMMC

2017-12-15 Thread Ulf Hansson
On 4 December 2017 at 10:39, LinuxPatchCommit wrote: > Dear All, > > For O2micro/Bayhubtech SD Host DeviceID 8620, eMMC HS200 mode is working at > 1.8v and it uses hardware tuning. The hardware tuning only needs to send one > tuning command instead of multiple tuning commands with software tunin

Re: [PATCH] arm: dts: Remove leading 0x and 0s from bindings notation

2017-12-15 Thread Krzysztof Kozlowski
On Thu, Dec 14, 2017 at 5:53 PM, Mathieu Malaterre wrote: > Improve the DTS files by removing all the leading "0x" and zeros to fix the > following dtc warnings: > > Warning (unit_address_format): Node /XXX unit name should not have leading > "0x" > > and > > Warning (unit_address_format): Node /

Re: [PATCH v2 0/7] x86/kvm/hyperv: stable clocksorce for L2 guests when running nested KVM on Hyper-V

2017-12-15 Thread Paolo Bonzini
On 13/12/2017 16:09, Vitaly Kuznetsov wrote: > Currently, KVM passes PVCLOCK_TSC_STABLE_BIT to its guests when running in > so called 'masterclock' mode and this is only possible when the clocksource > on the host is TSC. When running nested on Hyper-V we're using a different > clocksource in L1 (H

Re: [PATCH V3] KVM/x86: Check input paging mode when cs.l is set

2017-12-15 Thread Paolo Bonzini
On 14/12/2017 09:01, Lan Tianyu wrote: > Reported by syzkaller: > WARNING: CPU: 0 PID: 27962 at arch/x86/kvm/emulate.c:5631 > x86_emulate_insn+0x557/0x15f0 [kvm] > Modules linked in: kvm_intel kvm [last unloaded: kvm] > CPU: 0 PID: 27962 Comm: syz-executor Tainted: GB W >

Re: [PATCH v2 0/2] mm: introduce MAP_FIXED_SAFE

2017-12-15 Thread Michael Ellerman
Kees Cook writes: > On Wed, Dec 13, 2017 at 1:25 AM, Michal Hocko wrote: >> >> Hi, >> I am resending with some minor updates based on Michael's review and >> ask for inclusion. There haven't been any fundamental objections for >> the RFC [1] nor the previous version [2]. The biggest discussion

Re: [PATCH] kvm_main: Use common error handling code in kvm_dev_ioctl_create_vm()

2017-12-15 Thread Paolo Bonzini
On 21/11/2017 13:46, SF Markus Elfring wrote: > From: Markus Elfring > Date: Tue, 21 Nov 2017 13:40:17 +0100 > > Add a jump target so that a bit of exception handling can be better reused > at the end of this function. > > This issue was detected by using the Coccinelle software. > > Signed-off

[PATCH 1/2] clk: qcom: Clear hardware clock control bit of RCG

2017-12-15 Thread Amit Nischal
For upcoming targets like SDM845, POR value of the hardware clock control bit is set for most of root clocks which needs to be cleared for software to be able to control. For older targets like MSM8996, this bit is reserved bit and having POR value as 0 so this patch will work for the older targets

[PATCH 0/2] clk: qcom: MISC RCG changes for SDM845

2017-12-15 Thread Amit Nischal
This patch series does the miscellaneous changes for RCGs used in SDM845. 1. Clear hardware clock control bit of RCGs where HW clock control bit is set by default so that software can control those root clocks. 2. Introduces clk_rcg2_shared_ops to support clock controller drivers for SDM8

Re: Linux 4.15-rc2: Regression in resume from ACPI S3

2017-12-15 Thread Thomas Gleixner
On Thu, 14 Dec 2017, Linus Torvalds wrote: > On Thu, Dec 14, 2017 at 2:36 PM, Thomas Gleixner wrote: > > > > But, because the silly firmware comes out of suspend with all PIC lines > > unmasked for whatever reason, the PIC can observe that IRQ being raised and > > the CPU not handling it. So yes,

[PATCH 2/2] clk: qcom: Configure the RCGs to a safe source as needed

2017-12-15 Thread Amit Nischal
For some root clock generators, there could be child branches which are controlled by an entity other than application processor subsystem. For such RCGs, as per application processor subsystem clock driver, all of its downstream clocks are disabled and RCG is in disabled state but in actual downst

Re: BUG: unable to handle kernel paging request in __switch_to

2017-12-15 Thread Dmitry Vyukov
On Thu, Dec 14, 2017 at 10:39 PM, Linus Torvalds wrote: > On Thu, Dec 14, 2017 at 1:27 PM, Andy Lutomirski wrote: >> On Thu, Dec 14, 2017 at 11:28 AM, Linus Torvalds >> wrote: >>> I don't think that's the case. "int3" is entirely synchronous, and >>> doesn't have the same odd issues as a breakpo

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-15 Thread Petr Mladek
On Fri 2017-12-15 17:42:36, Sergey Senozhatsky wrote: > On (12/15/17 09:31), Petr Mladek wrote: > > > On (12/14/17 22:18), Steven Rostedt wrote: > > > > > Steven, your approach works ONLY when we have the following > > > > > preconditions: > > > > > > > > > > a) there is a CPU that is calling pr

Re: [PATCH] KVM: arm/arm64: don't set vtimer->cnt_ctl in kvm_arch_timer_handler

2017-12-15 Thread Marc Zyngier
On 15/12/17 02:27, Jia He wrote: > > [...] >> @@ -367,6 +368,7 @@ static void vtimer_save_state(struct kvm_vcpu *vcpu) >> >> /* Disable the virtual timer */ >> write_sysreg_el0(0, cntv_ctl); >> +isb(); > My only concern is whether this isb() is required here? > Sorryif this is

Re: [PATCH v4 4/6] dt: bindings: lp8860: Add trigger binding to the lp8860

2017-12-15 Thread Pavel Machek
Hi! > @@ -35,6 +37,7 @@ led-controller@2d { > led@0 { > reg = <0>; > label = "white:display_cluster"; > + linux,default-trigger = "backlight"; > }; > } What is "display_cluster"? Is it display backlight? Could we use ":backlight" and perhaps s

Re: [PATCH V2] ACPI / LPSS: Add device link for CHT SD card dependency on I2C

2017-12-15 Thread Adrian Hunter
On 14/12/17 16:16, Andy Shevchenko wrote: > On Thu, 2017-12-07 at 11:03 +0200, Adrian Hunter wrote: >> Some Cherry Trail boards have a dependency between the SDHCI host >> controller used for SD cards and an external PMIC accessed via I2C. >> Add a >> device link between the SDHCI host controller (

Re: [RFC PATCH] media: v4l2-device: Link subdevices to their parent devices if available

2017-12-15 Thread Sakari Ailus
On Fri, Dec 15, 2017 at 01:32:21PM +0900, Tomasz Figa wrote: > Currently v4l2_device_register_subdev_nodes() does not initialize the > dev_parent field of the video_device structs it creates for subdevices > being registered. This leads to __video_register_device() falling back > to the parent devi

Re: BUG: unable to handle kernel paging request in __switch_to

2017-12-15 Thread Dmitry Vyukov
On Fri, Dec 15, 2017 at 10:07 AM, Dmitry Vyukov wrote: > On Thu, Dec 14, 2017 at 10:39 PM, Linus Torvalds > wrote: >> On Thu, Dec 14, 2017 at 1:27 PM, Andy Lutomirski wrote: >>> On Thu, Dec 14, 2017 at 11:28 AM, Linus Torvalds >>> wrote: I don't think that's the case. "int3" is entirely sy

Re: [PATCH v5 2/2] KVM: MMU: consider host cache mode in MMIO page check

2017-12-15 Thread Paolo Bonzini
On 08/11/2017 08:56, Haozhong Zhang wrote: > Some reserved pages, such as those from NVDIMM DAX devices, are not > for MMIO, and can be mapped with cached memory type for better > performance. However, the above check misconceives those pages as > MMIO. Because KVM maps MMIO pages with UC memory t

Re: [PATCH 2/6 v3] mmc: s3cmci: Fix platform_get_irq's error checking

2017-12-15 Thread Ulf Hansson
On 19 November 2017 at 05:52, Arvind Yadav wrote: > The platform_get_irq() function returns negative if an error occurs. > zero or positive number on success. platform_get_irq() error checking > for zero is not correct. > > Signed-off-by: Arvind Yadav Thanks, applied for next! Kind regards Uffe

Re: [PATCH 6/6 v3] mmc: sunxi-mmc: Handle return value of platform_get_irq

2017-12-15 Thread Ulf Hansson
On 19 November 2017 at 05:52, Arvind Yadav wrote: > platform_get_irq() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav Thanks, applied for next! Kind regards Uffe > --- > changes in v2 : > Add failure case '<= 0' instead of '< 0'. IRQ0 is not val

Re: [PATCH 4/6 v3] mmc: sdhci-spear: Handle return value of platform_get_irq

2017-12-15 Thread Ulf Hansson
On 19 November 2017 at 05:52, Arvind Yadav wrote: > platform_get_irq() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav Thanks, applied for next! Kind regards Uffe > --- > changes in v2 : > Add failure case '<= 0' instead of '< 0'. IRQ0 is not val

Re: [PATCH 12/45] drivers: mmc: remove duplicate includes

2017-12-15 Thread Ulf Hansson
On 6 December 2017 at 17:57, Pravin Shedge wrote: > These duplicate includes have been found with scripts/checkincludes.pl but > they have been removed manually to avoid removing false positives. > > Signed-off-by: Pravin Shedge Thanks, applied for next with an updated prefix of the commit msg h

Re: [PATCH urgent 0/3] __restore_processor_state() fixes

2017-12-15 Thread Jarkko Nikula
On 12/15/2017 03:28 AM, Rafael J. Wysocki wrote: On Thursday, December 14, 2017 10:19:04 PM CET Andy Lutomirski wrote: __restore_processor_state() was spaghetti code, made no sense, and had bugs. And I broke resume on 32-bit systems. This series cleans it up and fixes it (hopefully!). Andy Lu

Re: [PATCH v2 00/22] mmc: tmio: various fixes and cleanups

2017-12-15 Thread Ulf Hansson
On 24 November 2017 at 17:24, Masahiro Yamada wrote: > > I am working on this IP for Socionext SoCs. > > I was hit by several issues, and noticed various > clean-up candidates. > > - Fix and clean-up Kconfig > - Fix various card detection problems > - Move Renesas private data out of TMIO core

Re: [PATCH 3/6 v3] mmc: sdhci-acpi: Handle return value of platform_get_irq

2017-12-15 Thread Ulf Hansson
On 19 November 2017 at 05:52, Arvind Yadav wrote: > platform_get_irq() can fail here and we must check its return value. > > Signed-off-by: Arvind Yadav Thanks, applied for next! Kind regards Uffe > --- > changes in v2 : > Add failure case '<= 0' instead of '< 0'. IRQ0 is not val

Re: [PATCH 1/6 v3] mmc: meson-gx-mmc: Fix platform_get_irq's error checking

2017-12-15 Thread Ulf Hansson
On 19 November 2017 at 05:52, Arvind Yadav wrote: > The platform_get_irq() function returns negative if an error occurs. > zero or positive number on success. platform_get_irq() error checking > for zero is not correct. > > Signed-off-by: Arvind Yadav Thanks, applied for next! Kind regards Uffe

[PATCH] usbip: fix usbip bind writing random string after command in match_busid

2017-12-15 Thread Juan Zea
usbip bind writes commands followed by random string when writing to match_busid attribute in sysfs, caused by using full variable size instead of string length. Signed-off-by: Juan Zea --- tools/usb/usbip/src/utils.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/t

[PATCH 3.18 13/64] KEYS: add missing permission check for request_key() destination

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit 4dca6ea1d9432052afb06baf2e3ae78188a4410b upstream. When the request_key() syscall is not passed a destination keyring, it links the requested key (if constructed) into the

[PATCH 3.18 10/64] isa: Prevent NULL dereference in isa_bus driver callbacks

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: William Breathitt Gray commit 5a244727f428a06634f22bb890e78024ab0c89f3 upstream. The isa_driver structure for an isa_bus device is stored in the device platform_data member of the respective d

[PATCH 3.18 00/64] 3.18.88-stable review

2017-12-15 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 3.18.88 release. There are 64 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Sun Dec 17 09:21:53 UTC 2017. Anything receiv

[PATCH 3.18 06/64] can: esd_usb2: cancel urb on -EPIPE and -EPROTO

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Martin Kelly commit 7a31ced3de06e9878e4f9c3abe8f87d9344d8144 upstream. In mcba_usb, we have observed that when you unplug the device, the driver will endlessly resubmit failing URBs, which can

[PATCH 3.18 18/64] ALSA: usb-audio: Fix out-of-bound error

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jaejoong Kim commit 251552a2b0d454badc8f486e6d79100970c744b0 upstream. The snd_usb_copy_string_desc() retrieves the usb string corresponding to the index number through the usb_string(). The p

[PATCH 3.18 16/64] ALSA: pcm: prevent UAF in snd_pcm_info

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Robb Glasser commit 362bca57f5d78220f8b5907b875961af9436e229 upstream. When the device descriptor is closed, the `substream->runtime` pointer is freed. But another thread may be in the ioctl h

[PATCH 3.18 08/64] virtio: release virtio index when fail to device_register

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: weiping zhang commit e60ea67bb60459b95a50a156296041a13e0e380e upstream. index can be reused by other virtio device. Signed-off-by: weiping zhang Reviewed-by: Cornelia Huck Signed-off-by: Mi

[PATCH 3.18 29/64] Revert "drm/armada: Fix compile fail"

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Sasha Levin This reverts commit 82f260d472c3b4dbb7324624e395c3e91f73a040. Not required on < 4.10. Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/armada/M

[PATCH 3.18 19/64] ALSA: usb-audio: Add check return value for usb_string()

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Jaejoong Kim commit 89b89d121ffcf8d9546633b98ded9d18b8f75891 upstream. snd_usb_copy_string_desc() returns zero if usb_string() fails. In case of failure, we need to check the snd_usb_copy_stri

[PATCH 3.18 31/64] selftest/powerpc: Fix false failures for skipped tests

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Sachin Sant [ Upstream commit a6d8a21596df041f36f4c2ccc260c459e3e851f1 ] Tests under alignment subdirectory are skipped when executed on previous generation hardware, but harness still marks

[PATCH 3.18 40/64] spi_ks8995: fix "BUG: key accdaa28 not in .data!"

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: "Blomme, Maarten" [ Upstream commit 4342696df764ec65dcdfbd0c10d90ea52505f8ba ] Signed-off-by: Maarten Blomme Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg K

[PATCH 3.18 44/64] i2c: riic: fix restart condition

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Chris Brandt [ Upstream commit 2501c1bb054290679baad0ff7f4f07c714251f4c ] While modifying the driver to use the STOP interrupt, the completion of the intermediate transfers need to wake the d

[PATCH 3.18 48/64] route: also update fnhe_genid when updating a route cache

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit cebe84c6190d741045a322f5343f717139993c08 ] Now when ip route flush cache and it turn out all fnhe_genid != genid. If a redirect/pmtu icmp packet comes and the old f

[PATCH 3.18 22/64] media: dvb: i2c transfers over usb cannot be done from stack

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Laurent Caumont commit 6d33377f2abbf9f0e561b116dd468d1c3ff36a6a upstream. Signed-off-by: Laurent Caumont Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg K

[PATCH 3.18 21/64] kdb: Fix handling of kallsyms_symbol_next() return value

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Daniel Thompson commit c07d35338081d107e57cf37572d8cc931a8e32e2 upstream. kallsyms_symbol_next() returns a boolean (true on success). Currently kdb_read() tests the return value with an inequa

[PATCH 3.18 20/64] iommu/vt-d: Fix scatterlist offset handling

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Robin Murphy commit 29a90b70893817e2f2bb3cea40a29f5308e21b21 upstream. The intel-iommu DMA ops fail to correctly handle scatterlists where sg->offset is greater than PAGE_SIZE - the IOVA alloc

[PATCH 3.18 23/64] arm64: KVM: fix VTTBR_BADDR_MASK BUG_ON off-by-one

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Kristina Martsenko commit 26aa7b3b1c0fb3f1a6176a0c1847204ef4355693 upstream. VTTBR_BADDR_MASK is used to sanity check the size and alignment of the VTTBR address. It seems to currently be off

[PATCH 3.18 62/64] audit: ensure that audit=1 actually enables audit for PID 1

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Paul Moore [ Upstream commit 173743dd99a49c956b124a74c8aacb0384739a4c ] Prior to this patch we enabled audit in audit_init(), which is too late for PID 1 as the standard initcalls are run aft

[PATCH 3.18 59/64] IB/mlx4: Increase maximal message size under UD QP

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Mark Bloch [ Upstream commit 5f22a1d87c5315a98981ecf93cd8de226cffe6ca ] Maximal message should be used as a limit to the max message payload allowed, without the headers. The ConnectX-3 check

[PATCH 3.18 64/64] usb: gadget: ffs: Forbid usb_ep_alloc_request from sleeping

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Vincent Pelletier commit 30bf90ccdec1da9c8198b161ecbff39ce4e5a9ba upstream. Found using DEBUG_ATOMIC_SLEEP while submitting an AIO read operation: [ 100.853642] BUG: sleeping function called

[PATCH 3.18 17/64] ALSA: seq: Remove spurious WARN_ON() at timer check

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 43a3542870328601be02fcc9d27b09db467336ef upstream. The use of snd_BUG_ON() in ALSA sequencer timer may lead to a spurious WARN_ON() when a slave timer is deployed as its ba

[PATCH 3.18 55/64] sctp: do not free asoc when it is already dead in sctp_sendmsg

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit ca3af4dd28cff4e7216e213ba3b671fbf9f84758 ] Now in sctp_sendmsg sctp_wait_for_sndbuf could schedule out without holding sock sk. It means the current asoc can be fre

[PATCH 3.18 63/64] arm: KVM: Fix VTTBR_BADDR_MASK BUG_ON off-by-one

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Marc Zyngier commit 5553b142be11e794ebc0805950b2e8313f93d718 upstream. VTTBR_BADDR_MASK is used to sanity check the size and alignment of the VTTBR address. It seems to currently be off by one

[PATCH 3.18 61/64] afs: Connect up the CB.ProbeUuid

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: David Howells [ Upstream commit f4b3526d83c40dd8bf5948b9d7a1b2c340f0dcc8 ] The handler for the CB.ProbeUuid operation in the cache manager is implemented, but isn't listed in the switch-state

[PATCH 3.18 58/64] xfrm: Copy policy family in clone_policy

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Herbert Xu [ Upstream commit 0e74aa1d79a5bbc663e03a2804399cae418a0321 ] The syzbot found an ancient bug in the IPsec code. When we cloned a socket policy (for example, for a child TCP socket

[PATCH 3.18 60/64] IB/mlx5: Assign send CQ and recv CQ of UMR QP

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Majd Dibbiny [ Upstream commit 31fde034a8bd964a5c7c1a5663fc87a913158db2 ] The UMR's QP is created by calling mlx5_ib_create_qp directly, and therefore the send CQ and the recv CQ on the ibqp

Re: [PATCH] media: v4l: xilinx: Use SPDX-License-Identifier

2017-12-15 Thread Mauro Carvalho Chehab
Em Fri, 15 Dec 2017 10:55:26 +0530 Dhaval Shah escreveu: > Hi Laurent/Mauro/Greg, > > On Fri, Dec 15, 2017 at 3:32 AM, Laurent Pinchart > wrote: > > Hi Mauro, > > > > On Thursday, 14 December 2017 23:50:03 EET Mauro Carvalho Chehab wrote: > >> Em Thu, 14 Dec 2017 21:57:06 +0100 Greg KH escreveu

[PATCH 3.18 57/64] atm: horizon: Fix irq release error

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Arvind Yadav [ Upstream commit bde533f2ea607cbbbe76ef8738b36243939a7bc2 ] atm_dev_register() can fail here and passed parameters to free irq which is not initialised. Initialization of 'dev->

[PATCH 3.18 56/64] sctp: use the right sk after waking up from wait_buf sleep

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Xin Long [ Upstream commit cea0cc80a6777beb6eb643d4ad53690e1ad1d4ff ] Commit dfcb9f4f99f1 ("sctp: deny peeloff operation on asocs with threads sleeping on it") fixed the race between peeloff

[PATCH 3.18 25/64] arm64: fpsimd: Prevent registers leaking from dead tasks

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Dave Martin commit 071b6d4a5d343046f253a5a8835d477d93992002 upstream. Currently, loading of a task's fpsimd state into the CPU registers is skipped if that task's state is already present in t

Re: [RFC PATCH 1/3] mm, numa: rework do_pages_move

2017-12-15 Thread Michal Hocko
On Thu 14-12-17 18:35:58, Kirill A. Shutemov wrote: > On Wed, Dec 13, 2017 at 03:39:48PM +0100, Michal Hocko wrote: [...] > > + err = 0; > > + if (page_to_nid(page) == node) > > + goto out_putpage; > > + > > + err = -EACCES; > > + if (page_mapcount(page) > 1 && > > +

Re: v4.15-rc2 on thinkpad x60: ethernet stopped working

2017-12-15 Thread Pavel Machek
Hi! > >In v4.15-rc2+, network manager can not see my ethernet card, and > >manual attempts to ifconfig it up did not really help, either. > > > >Card is: > > > >02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet > >Controller > >Any ideas ? > > Yes , 19110cfbb34d4af0cdfe1

[PATCH 3.18 53/64] sunrpc: Fix rpc_task_begin trace point

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Chuck Lever [ Upstream commit b2bfe5915d5fe7577221031a39ac722a0a2a1199 ] The rpc_task_begin trace point always display a task ID of zero. Move the trace point call site so that it picks up th

[PATCH 3.18 51/64] dynamic-debug-howto: fix optional/omitted ending line number to be LARGE instead of 0

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Randy Dunlap [ Upstream commit 1f3c790bd5989fcfec9e53ad8fa09f5b740c958f ] line-range is supposed to treat "1-" as "1-endoffile", so handle the special case by setting last_lineno to UINT_MAX.

Re: [PATCH v2 0/7] x86/kvm/hyperv: stable clocksorce for L2 guests when running nested KVM on Hyper-V

2017-12-15 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > On 13/12/2017 16:09, Vitaly Kuznetsov wrote: >> Currently, KVM passes PVCLOCK_TSC_STABLE_BIT to its guests when running in >> so called 'masterclock' mode and this is only possible when the clocksource >> on the host is TSC. When running nested on Hyper-V we're using a dif

[PATCH 3.18 54/64] sparc64/mm: set fields in deferred pages

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Pavel Tatashin [ Upstream commit 2a20aa171071a334d80c4e5d5af719d8374702fc ] Without deferred struct page feature (CONFIG_DEFERRED_STRUCT_PAGE_INIT), flags and other fields in "struct page"es

[PATCH 3.18 50/64] lib/genalloc.c: make the avail variable an atomic_long_t

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Stephen Bates [ Upstream commit 36a3d1dd4e16bcd0d2ddfb4a2ec7092f0ae0d931 ] If the amount of resources allocated to a gen_pool exceeds 2^32 then the avail atomic overflows and this causes prob

[PATCH 3.18 52/64] NFS: Fix a typo in nfs_rename()

2017-12-15 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust [ Upstream commit d803224c84be067754db7fa58a93f36f61566493 ] On successful rename, the "old_dentry" is retained and is attached to the "new_dir", so we need to call nfs_set_ve

  1   2   3   4   5   6   7   8   9   10   >