[PATCH 02/10] dt-bindings: Tegra186 tachometer device tree bindings

2018-02-20 Thread Rajkumar Rampelli
Supply Device tree binding documentation for the NVIDIA Tegra186 SoC's Tachometer Controller Signed-off-by: Rajkumar Rampelli --- .../bindings/pwm/pwm-tegra-tachometer.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/binding

[PATCH 01/10] pwm: core: Add support for PWM HW driver with pwm capture only

2018-02-20 Thread Rajkumar Rampelli
Add support for pwm HW driver which has only capture functionality. This helps to implement the PWM based Tachometer driver which reads the PWM output signals from electronic fans. PWM Tachometer captures the period and duty cycle of the PWM signal Signed-off-by: Rajkumar Rampelli --- drivers/p

[PATCH 04/10] hwmon: generic-pwm-tachometer: Add DT binding details

2018-02-20 Thread Rajkumar Rampelli
Add DT binding details for the PWM based generic tachometer driver which gets the period of the PWM tach-output from Fan via PWM IP having capability of capturing the signal. Signed-off-by: Rajkumar Rampelli --- .../bindings/hwmon/generic-pwm-tachometer.txt | 25 ++ 1 fi

[PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-20 Thread Rajkumar Rampelli
Add generic PWM based tachometer driver via HWMON interface to report the RPM of motor. This drivers get the period/duty cycle from PWM IP which captures the motor PWM output. This driver implements a simple interface for monitoring the speed of a fan and exposes it in roatations per minute (RPM)

[PATCH 06/10] arm64: tegra: Add Tachometer Controller on Tegra186

2018-02-20 Thread Rajkumar Rampelli
The NVIDIA Tegra186 SoC has a Tachometer Controller that analyzes the PWM signal of a Fan and reports the period value through pwm interface. Signed-off-by: Rajkumar Rampelli --- arch/arm64/boot/dts/nvidia/tegra186-p2771-.dts | 5 + arch/arm64/boot/dts/nvidia/tegra186.dtsi | 1

[PATCH 09/10] arm64: defconfig: Enable Generic PWM based Tachometer driver

2018-02-20 Thread Rajkumar Rampelli
Enable Generic PWM based Tachometer driver which implements a simple interface for monitoring the speed of a fan in roatations per minute, and exposes it to the user space by using the hwmon's sysfs interface. Enable this driver as a module in the ARM64 defconfig. Signed-off-by: Rajkumar Rampelli

[PATCH 10/10] arm64: tegra: Add PWM controller on Tegra186 soc

2018-02-20 Thread Rajkumar Rampelli
The NVIDIA Tegra186 SoC has a PWM controller which is used in FAN control use case. Signed-off-by: Rajkumar Rampelli --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidi

[PATCH 07/10] arm64: tegra: Add PWM based Tachometer support on Tegra186

2018-02-20 Thread Rajkumar Rampelli
Add PWM based Tachometer support on Tegra186 to measure number of rotations of a Fan per minute by using PWM capture interface Signed-off-by: Rajkumar Rampelli --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra1

[PATCH 08/10] arm64: defconfig: enable Nvidia Tegra Tachometer as a module

2018-02-20 Thread Rajkumar Rampelli
Tegra Tachometer driver implements PWM capture to measure period. Enable this driver as a module in the ARM64 defconfig. Signed-off-by: Rajkumar Rampelli --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconf

Re: [PATCH v3] iommu/amd: Add support for fast IOTLB flushing

2018-02-20 Thread Suravee Suthikulpanit
Hi Joerg, On 2/13/18 8:29 PM, Joerg Roedel wrote: Hi Suravee, thanks for working on this. On Wed, Jan 31, 2018 at 12:01:14AM -0500, Suravee Suthikulpanit wrote: +static void amd_iommu_iotlb_range_add(struct iommu_domain *domain, + unsigned long iova, size_t

Re: [PATCH 0/6] DISCONTIGMEM support for PPC32

2018-02-20 Thread Christophe LEROY
Le 20/02/2018 à 17:14, Jonathan Neuschäfer a écrit : This patchset adds support for DISCONTIGMEM on 32-bit PowerPC. This is required to properly support the Nintendo Wii's memory layout, in which there are two blocks of RAM and MMIO in the middle. Previously, this memory layout was handled by

Re: [PATCH 05/10] hwmon: generic-pwm-tachometer: Add generic PWM based tachometer

2018-02-20 Thread Mikko Perttunen
AIUI, the PWM framework already exposes a sysfs node with period information. We should just use that instead of adding a new driver for this. In any case, we cannot add something like this to device tree since it's not a hardware device. Mikko On 21.02.2018 08:58, Rajkumar Rampelli wrote:

[PATCH v4] iommu/amd: Add support for fast IOTLB flushing

2018-02-20 Thread Suravee Suthikulpanit
Since AMD IOMMU driver currently flushes all TLB entries when page size is more than one, use the same interface for both iommu_ops.flush_iotlb_all() and iommu_ops.iotlb_sync(). Cc: Joerg Roedel Signed-off-by: Suravee Suthikulpanit --- Changes from v3 (https://patchwork.kernel.org/patch/10193235

Re: [PATCH v7 0/3] clocksource/drivers/atcpit100: Add andestech atcpit100 timer

2018-02-20 Thread Greentime Hu
2018-02-13 17:13 GMT+08:00 Greentime Hu : > Hi, all: > > ATCPIT100 is often used on the Andes architecture, > This timer provide 4 PIT channels. Each PIT channel is a > multi-function timer, can be configured as 32,16,8 bit timers > or PWM as well. > > For system timer it will set channel 1 32-bit

Re: [PATCH 3/4] kernel/fork: switch vmapped stack callation to __vmalloc_area()

2018-02-20 Thread Konstantin Khlebnikov
On 21.02.2018 03:16, Andrew Morton wrote: On Tue, 23 Jan 2018 16:57:21 +0300 Konstantin Khlebnikov wrote: # stress-ng --clone 100 -t 10s --metrics-brief at 32-core machine shows boost 35000 -> 36000 bogo ops Patch 4/4 is a kind of RFC. Actually per-cpu cache of preallocated stacks works fa

Re: [RFCv4 01/21] media: add request API core and UAPI

2018-02-20 Thread Hans Verkuil
On 02/21/2018 07:01 AM, Alexandre Courbot wrote: > Hi Hans, > > On Tue, Feb 20, 2018 at 7:36 PM, Hans Verkuil wrote: >> On 02/20/18 05:44, Alexandre Courbot wrote: >>> +#define MEDIA_REQUEST_IOC(__cmd, func) >>> \ >>> + [_IOC_NR(MEDIA_REQUEST_IOC_##__

Re: [PATCH v4] tpm: Trigger only missing TPM 2.0 self tests

2018-02-20 Thread Jarkko Sakkinen
On Wed, Feb 21, 2018 at 12:53:47AM +0200, Jarkko Sakkinen wrote: > From: Alexander Steffen > > My Nuvoton 6xx in a Dell XPS-13 has been intermittently failing to work > (necessitating a reboot). The problem seems to be that the TPM gets into a > state where the partial self-test doesn't return TP

Re: [RFCv4 16/21] v4l2: video_device: support for creating requests

2018-02-20 Thread Hans Verkuil
On 02/21/2018 07:01 AM, Alexandre Courbot wrote: > On Wed, Feb 21, 2018 at 1:35 AM, Hans Verkuil wrote: >> On 02/20/2018 05:44 AM, Alexandre Courbot wrote: >>> Add a new VIDIOC_NEW_REQUEST ioctl, which allows to instanciate requests >>> on devices that support the request API. Requests created tha

Re: [PATCH 00/23] kconfig: move compiler capability tests to Kconfig

2018-02-20 Thread Masahiro Yamada
2018-02-20 0:18 GMT+09:00 Ulf Magnusson : >> >> I'm not happy that we in one context can reference CONFIG variables >> directly, but inside the $(call ...) and $(shell ...) needs the $ prefix. >> But I could not come up with something un-ambigious where this could be >> avoided. > > I think we sh

Re: [PATCH v2 01/21] lib/vsprintf: Print time and date in human readable format via %pt

2018-02-20 Thread Rasmus Villemoes
On 2018-02-21 00:55, Joe Perches wrote: > On Tue, 2018-02-20 at 23:43 +0200, Andy Shevchenko wrote: >> There are users which print time and date represented by content of >> struct rtc_time in human readable format. >> >> Instead of open coding that each time introduce %ptR[dt][rv] specifier. >> >>

Re: A "domain invalid" cgroup *can* sometimes have member tasks

2018-02-20 Thread Michael Kerrisk (man-pages)
Hi Tehjun, On 21 February 2018 at 00:01, Tejun Heo wrote: > On Tue, Feb 20, 2018 at 11:35:47AM -0800, Tejun Heo wrote: >> Hmm... nr_populated_domain_children check should have caught that >> condition and rejected it. Will look into what's going on. > > Ah, okay, I was special-casing the first l

Re: [GIT PULL 0/5] perf/core improvements and fixes

2018-02-20 Thread Ingo Molnar
;perf-core-for-mingo-4.17-20180216' of > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core > (2018-02-17 11:39:47 +0100) > > are available in the Git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-

Re: [PATCH 2/6] mfd: cros_ec: free IRQ automatically

2018-02-20 Thread Vincent Palatin
On Mon, Feb 19, 2018 at 11:40 PM, Enric Balletbo i Serra wrote: > From: Vincent Palatin > > Free the IRQ we might have requested when removing the cros_ec device, > so we can unload and reload the driver properly. > > Signed-off-by: Vincent Palatin > Signed-off-by: Enric Balletbo i Serra > ---

Re: [RFCv4 09/21] v4l2: add request API support

2018-02-20 Thread Alexandre Courbot
Hi Philippe, On Tue, Feb 20, 2018 at 4:36 PM, Philippe Ombredanne wrote: > On Tue, Feb 20, 2018 at 5:44 AM, Alexandre Courbot > wrote: >> Add a v4l2 request entity data structure that takes care of storing the >> request-related state of a V4L2 device ; in this case, its controls. >> >> Signed-o

RE: [lustre-devel] [PATCH 14/21] staging: lustre: fix assorted checkpatch errors

2018-02-20 Thread Eremin, Dmitry
Hello Neil, > diff --git a/drivers/staging/lustre/lustre/mdc/mdc_request.c > b/drivers/staging/lustre/lustre/mdc/mdc_request.c > index ab48746ce433..bde27acb0dd3 100644 > --- a/drivers/staging/lustre/lustre/mdc/mdc_request.c > +++ b/drivers/staging/lustre/lustre/mdc/mdc_request.c > @@ -1060,8 +106

Re: [PATCH v2] [media] Use common error handling code in 20 functions

2018-02-20 Thread Todor Tomov
Hi Markus, Thank you for the patch. On 19.02.2018 20:11, SF Markus Elfring wrote: > From: Markus Elfring > Date: Mon, 19 Feb 2018 18:50:40 +0100 > > Adjust jump targets so that a bit of exception handling can be better > reused at the end of these functions. > > This issue was partly detected

Re: [PATCH RESEND] x86: consider effective protection attributes in W+X check

2018-02-20 Thread Ingo Molnar
* Jan Beulich wrote: > Using just the leaf page table entry flags would cause a false warning > in case _PAGE_RW is clear or _PAGE_NX is set in a higher level entry. Under what circumstances did you see false positive warnings? > Hand through both the current entry's flags as well as the accum

Re: [RFC PATCH v2 1/6] dt-bindings: add bindings for USB physical connector

2018-02-20 Thread Andrzej Hajda
On 19.02.2018 15:28, Rob Herring wrote: > On Thu, Feb 15, 2018 at 11:39:15AM +0100, Andrzej Hajda wrote: >> These bindings allow to describe most known standard USB connectors >> and it should be possible to extend it if necessary. >> USB connectors, beside USB can be used to route other protocols,

Re: net: hang in unregister_netdevice: waiting for lo to become free

2018-02-20 Thread Dmitry Vyukov
On Tue, Feb 20, 2018 at 8:56 AM, Tommi Rantala wrote: > On 19.02.2018 20:59, Dmitry Vyukov wrote: >> >> On Sat, Feb 3, 2018 at 1:15 PM, Xin Long wrote: > > On 1/30/18 1:57 PM, David Ahern wrote: >> >> On 1/30/18 1:08 PM, Daniel Borkmann wrote: >>> >>> On 01/30/2018 07:32 P

[PATCH] kconfig: clean-up reverse dependency help implementation

2018-02-20 Thread Masahiro Yamada
This commit splits out the special E_OR handling ('-' instead of '||') into a dedicated helper expr_print_revdev(). Restore the original expr_print() prior to commit 1ccb27143360 ("kconfig: make "Selected by:" and "Implied by:" readable"). This makes sense because: - We need to chop those expr

[PATCH] mtd: nand: gpmi: fix edo mode for non fully ONFI compliant flashes

2018-02-20 Thread Manfred Schlaegl
In enable_edo_mode the timing mode feature is set according to previously read capabilities of the parameter page ("Timing mode support"). After the value was set, it is read back to provide a "double-check". If the "double check" fails, the whole function returns with an error, which leads to a ve

Re: [PATCH v2] xhci: Fix front USB ports on ASUS PRIME B350M-A

2018-02-20 Thread Mathias Nyman
Hi On 19.02.2018 21:06, Kai-Heng Feng wrote: When a USB device gets plugged on ASUS PRIME B350M-A's front ports, the xHC stops working: [ 549.114587] xhci_hcd :02:00.0: WARN: xHC CMD_RUN timeout [ 549.114608] suspend_common(): xhci_pci_suspend+0x0/0xc0 returns -110 [ 549.114638] xhci_hcd

Re: [PATCH RESEND] x86: consider effective protection attributes in W+X check

2018-02-20 Thread Jan Beulich
>>> On 20.02.18 at 09:10, wrote: > * Jan Beulich wrote: >> Using just the leaf page table entry flags would cause a false warning >> in case _PAGE_RW is clear or _PAGE_NX is set in a higher level entry. > > Under what circumstances did you see false positive warnings? As explained in the 2-patc

Re: [PATCH v3 2/4] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-20 Thread Thomas Gleixner
On Mon, 19 Feb 2018, David Woodhouse wrote: > diff --git a/arch/x86/include/asm/nospec-branch.h > b/arch/x86/include/asm/nospec-branch.h > index 0995c6a..34cbce3 100644 > --- a/arch/x86/include/asm/nospec-branch.h > +++ b/arch/x86/include/asm/nospec-branch.h > @@ -141,9 +141,16 @@ enum spectre_v2_

Re: [PATCH RESEND] x86: consider effective protection attributes in W+X check

2018-02-20 Thread Ingo Molnar
* Jan Beulich wrote: > >>> On 20.02.18 at 09:10, wrote: > > * Jan Beulich wrote: > >> Using just the leaf page table entry flags would cause a false warning > >> in case _PAGE_RW is clear or _PAGE_NX is set in a higher level entry. > > > > Under what circumstances did you see false positive w

Re: [PATCH v3 3/4] Revert "x86/retpoline: Simplify vmexit_fill_RSB()"

2018-02-20 Thread Thomas Gleixner
On Mon, 19 Feb 2018, David Woodhouse wrote: > This reverts commit 1dde7415e99933bb7293d6b2843752cbdb43ec11. By putting > the RSB filling out of line and calling it, we waste one RSB slot for > returning from the function itself, which means one fewer actual function > call we can make if we're doi

Re: [PATCH v3 4/4] x86/retpoline: Support retpoline build with Clang

2018-02-20 Thread Thomas Gleixner
On Mon, 19 Feb 2018, David Woodhouse wrote: Reviewed-by: Thomas Gleixner > +/* Clang doesn't have a way to turn it off per-function, yet. */ Is that going to happen in the foreseable future? Hmm, why am I asking, clang is going to break anyway once we require asm-gotos hard. Thanks, t

Re: [PATCH RESEND] x86: consider effective protection attributes in W+X check

2018-02-20 Thread Ingo Molnar
* Jan Beulich wrote: > I'll see what I can do; it's a pity that the change here, which had > been sent weeks ago and is a bug fix, hadn't gone in before that > other change (being more an improvement than a bug fix). When was it submitted, got a link or Message-ID of the previous submission? T

Re: [PATCH 00/31 v2] PTI support for x86_32

2018-02-20 Thread Joerg Roedel
Hi David, thanks a lot for your testing, much appreciated! On Mon, Feb 19, 2018 at 10:45:56PM -0500, David H. Gutteridge wrote: > (1) There is a regression when the QXL display driver is enabled; the > VM hangs during boot. (QXL has been a source of similar trouble in the > past.) I don't have an

Re: [PATCH RESEND] x86: consider effective protection attributes in W+X check

2018-02-20 Thread Jan Beulich
>>> On 20.02.18 at 09:37, wrote: > * Jan Beulich wrote: > >> I'll see what I can do; it's a pity that the change here, which had >> been sent weeks ago and is a bug fix, hadn't gone in before that >> other change (being more an improvement than a bug fix). > > When was it submitted, got a link

Re: [PATCH v3 4/4] x86/retpoline: Support retpoline build with Clang

2018-02-20 Thread David Woodhouse
On Tue, 2018-02-20 at 09:36 +0100, Thomas Gleixner wrote: > On Mon, 19 Feb 2018, David Woodhouse wrote: > > Reviewed-by: Thomas Gleixner > > > > > +/* Clang doesn't have a way to turn it off per-function, yet. */ > > Is that going to happen in the foreseable future? Hmm, why am I asking, > clan

Re: [PATCH 2/6] mfd: cros_ec: free IRQ automatically

2018-02-20 Thread Enric Balletbo Serra
Hi Vincent, 2018-02-20 9:00 GMT+01:00 Vincent Palatin : > On Mon, Feb 19, 2018 at 11:40 PM, Enric Balletbo i Serra > wrote: >> From: Vincent Palatin >> >> Free the IRQ we might have requested when removing the cros_ec device, >> so we can unload and reload the driver properly. >> >> Signed-off-b

[PATCH RESEND 1/2] mm: swap: clean up swap readahead

2018-02-20 Thread minchan
From: Minchan Kim When I see recent change of swap readahead, I am very unhappy about current code structure which diverges two swap readahead algorithm in do_swap_page. This patch is to clean it up. Main motivation is that fault handler doesn't need to be aware of readahead algorithms but just

Re: [PATCH v3 2/4] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-20 Thread David Woodhouse
On Tue, 2018-02-20 at 09:31 +0100, Thomas Gleixner wrote: > > @@ -237,6 +239,16 @@ static void __init spectre_v2_select_mitigation(void) > >   > >   case SPECTRE_V2_CMD_FORCE: > >   case SPECTRE_V2_CMD_AUTO: > > + if (boot_cpu_has(X86_FEATURE_ARCH_CAPABILITIES)) { > > +

Re: [PATCH 2/2] x86/speculation: Support "Enhanced IBRS" on future CPUs

2018-02-20 Thread Thomas Gleixner
On Mon, 19 Feb 2018, Linus Torvalds wrote: > On Mon, Feb 19, 2018 at 4:13 PM, Alan Cox wrote: > > > > In theory there's nothing stopping a guest getting a 'you are about to > > gain/lose IBRS' message or having a new 'CPU' hotplugged and the old one > > removed. > > I'm not convinced we handle th

[PATCH RESEND 0/2] swap readahead clean up

2018-02-20 Thread minchan
From: Minchan Kim This patchset cleans up recent added vma-based readahead code via unifying cluster-based readahead. Resent based on mmotm-2018-02-06-16-41. Minchan Kim (2): mm: swap: clean up swap readahead mm: swap: unify cluster-based and vma-based swap readahead include/linux/swap.h

[PATCH RESEND 2/2] mm: swap: unify cluster-based and vma-based swap readahead

2018-02-20 Thread minchan
From: Minchan Kim This patch makes do_swap_page() not need to be aware of two different swap readahead algorithms. Just unify cluster-based and vma-based readahead function call. Link: http://lkml.kernel.org/r/1509520520-32367-3-git-send-email-minc...@kernel.org Signed-off-by: Minchan Kim Cc:

Re: [PATCH] mtd: nand: gpmi: fix edo mode for non fully ONFI compliant flashes

2018-02-20 Thread Miquel Raynal
Hi Manfred, On Tue, 20 Feb 2018 09:15:33 +0100, Manfred Schlaegl wrote: > In enable_edo_mode the timing mode feature is set according to previously > read capabilities of the parameter page ("Timing mode support"). After > the value was set, it is read back to provide a "double-check". > If the

RE: [lustre-devel] [PATCH 14/21] staging: lustre: fix assorted checkpatch errors

2018-02-20 Thread NeilBrown
On Tue, Feb 20 2018, Eremin, Dmitry wrote: > Hello Neil, > >> diff --git a/drivers/staging/lustre/lustre/mdc/mdc_request.c >> b/drivers/staging/lustre/lustre/mdc/mdc_request.c >> index ab48746ce433..bde27acb0dd3 100644 >> --- a/drivers/staging/lustre/lustre/mdc/mdc_request.c >> +++ b/drivers/stagi

Re: [PATCH] scsi: cxlflash: Select SCSI_SCAN_ASYNC

2018-02-20 Thread Michael Ellerman
Vaibhav Jain writes: > The cxlflash driver uses "Asynchronous SCSI scanning" enabled by > CONFIG_SCSI_SCAN_ASYNC. Without this enabled the modprobe of cxlflash > module gets hung with following backtrace: > > Call Trace: > __switch_to+0x2cc/0x470 > __schedule+0x288/0xab0 > schedule+0x40/0xc0 >

[PATCH] PCI: stop crashing in pci_release_resource

2018-02-20 Thread Christian König
Is it entirely possible that the BIOS wasn't able to assign resources to a device. In this case don't crash in pci_release_resource() when we try to resize the resource. Signed-off-by: Christian König CC: sta...@vger.kernel.org --- drivers/pci/setup-res.c | 3 +++ 1 file changed, 3 insertions(+)

Re: [PATCH v9 11/11] media: i2c: ov7670: Fully set mbus frame fmt

2018-02-20 Thread jacopo mondi
Hi Laurent, On Mon, Feb 19, 2018 at 09:19:32PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > On Monday, 19 February 2018 18:59:44 EET Jacopo Mondi wrote: > > The sensor driver sets mbus format colorspace information and sizes, > > but not ycbcr encoding, quantization

Re: [PATCH] drm/meson: fix vsync buffer update

2018-02-20 Thread Neil Armstrong
On 19/02/2018 16:19, Daniel Vetter wrote: > On Thu, Feb 15, 2018 at 11:19:36AM +0100, Neil Armstrong wrote: >> The plane buffer address/stride/height was incorrectly updated in the >> plane_atomic_update operation instead of the vsync irq. >> This patch delays this operation in the vsync irq along

RE: [PATCH v3 1/6] vfio/type1: Introduce iova list and add iommu aperture validity check

2018-02-20 Thread Shameerali Kolothum Thodi
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Monday, February 19, 2018 7:51 PM > To: Shameerali Kolothum Thodi > Cc: eric.au...@redhat.com; pmo...@linux.vnet.ibm.com; > k...@vger.kernel.org; linux-kernel@vger.kernel.org; Linuxarm > ; John Garry

Re: [PATCH v2] irqchip/gic-v3-its: Add workaround for ThunderX2 erratum #174

2018-02-20 Thread Marc Zyngier
On Mon, 19 Feb 2018 21:12:10 +, Jayachandran C wrote: > > On Sun, Jan 21, 2018 at 11:35:34AM +, Marc Zyngier wrote: > > On Sun, 21 Jan 2018 07:00:48 +, > > Jayachandran C wrote: > > > > > > On Thu, Jan 18, 2018 at 10:58:20AM +0530, Ganapatrao Kulkarni wrote: > > > > This erratum is ob

[PATCH 0/2] add support for Socionext SynQuacer I2C controller

2018-02-20 Thread Ard Biesheuvel
Add a binding and a driver for the I2C IP found in the Socionext SynQuacer SoC, which is essentially a rebranded version of the Fujitsu F_I2C controller. Ard Biesheuvel (2): dt-bindings: i2c: add binding for Socionext SynQuacer I2C i2c: add support for Socionext SynQuacer I2C controller Docu

[PATCH 2/2] i2c: add support for Socionext SynQuacer I2C controller

2018-02-20 Thread Ard Biesheuvel
This is a cleaned up version of the I2C controller driver for the Fujitsu F_I2C IP, which was never supported upstream, and has now been incorporated into the Socionext SynQuacer SoC. Signed-off-by: Ard Biesheuvel --- drivers/i2c/busses/Kconfig | 11 + drivers/i2c/busses/Makefile

[PATCH 1/2] dt-bindings: i2c: add binding for Socionext SynQuacer I2C

2018-02-20 Thread Ard Biesheuvel
Add a binding for the I2C controller that can be found in the Socionext SynQuacer SoC. Note that this is the exact same IP as the Fujitsu F_I2C. Signed-off-by: Ard Biesheuvel --- Documentation/devicetree/bindings/i2c/i2c-synquacer.txt | 29 1 file changed, 29 insertions(+)

[PATCH] block: rbd: update sysfs interface

2018-02-20 Thread Aishwarya Pant
The existing sysfs interface has been updated to be in the same format as described in Documentation/ABI/README. This will be useful for scripting and tracking changes in the ABI. Attributes have been grouped by functionality and/or the date on which they were added. There are a couple of more cha

[PATCH] usb: host: ehci-platform: add support for optional external vbus supply

2018-02-20 Thread Amelie Delaunay
On some boards, especially when vbus supply requires large current, and the charge pump on the PHY isn't enough, an external vbus power switch may be used. Add support for this optional external vbus supply in ehci-platform. Signed-off-by: Amelie Delaunay --- Documentation/devicetree/bindings/us

Re: [PATCH v4 06/13] power: supply: axp20x_battery: use data struct for variant specific code

2018-02-20 Thread kbuild test robot
Hi Quentin, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on ] url: https://github.com/0day-ci/linux/commits/Quentin-Schulz/add-support-for-AXP813-ADC-and-battery-power-supply/20180220-051138 base: reproduce: # apt-get install sparse

[RFC PATCH] power: supply: axp20x_battery: axp209_data can be static

2018-02-20 Thread kbuild test robot
Fixes: 94767270f0b0 ("power: supply: axp20x_battery: use data struct for variant specific code") Signed-off-by: Fengguang Wu --- axp20x_battery.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/power/supply/axp20x_battery.c b/drivers/power/supply/axp20x_batte

Re: [PATCH 3/3] Kconfig: add a default allrandom.config

2018-02-20 Thread Masahiro Yamada
2018-02-17 6:41 GMT+09:00 Arnd Bergmann : > Building randconfig kernels frequently leads to build errors from > drivers that have additional build dependencies, or that we don't > want to build for compile-testing for some other reason. Can you fix the former case? The latter seems OK. > We alr

Re: [RFC patch] ioremap: don't set up huge I/O mappings when p4d/pud/pmd is zero

2018-02-20 Thread Chintan Pandya
On 12/28/2017 4:54 PM, Hanjun Guo wrote: From: Hanjun Guo When we using iounmap() to free the 4K mapping, it just clear the PTEs but leave P4D/PUD/PMD unchanged, also will not free the memory of page tables. This will cause issues on ARM64 platform (not sure if other archs have the same issu

Re: [PATCH] usb: host: ehci-platform: add support for optional external vbus supply

2018-02-20 Thread Roger Quadros
Hi, On 20/02/18 11:11, Amelie Delaunay wrote: > On some boards, especially when vbus supply requires large current, > and the charge pump on the PHY isn't enough, an external vbus power switch > may be used. > Add support for this optional external vbus supply in ehci-platform. Isn't this generic

Re: [PATCH 2/3] Kconfig: improve handling for all{rand,yes,no,}.config fragments

2018-02-20 Thread Masahiro Yamada
2018-02-17 6:41 GMT+09:00 Arnd Bergmann : > The kernel currently supports two methods of dealing with config > fragments in the tree: > > a) Running "make foo.config" looks for arch/$(ARCH)/configs/foo.config >and kernel/configs/foo.config, and applies the defaults from those >files on top

Re: [PATCH v1 1/2] PCI: Add PCIe port runtime suspend details

2018-02-20 Thread Rafael J. Wysocki
On Tue, Feb 20, 2018 at 12:14 AM, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Add details about how we decide whether we can put a PCI bridge in D3. > 9d26d3a8f1b0 ("PCI: Put PCIe ports into D3 during suspend") added this > support to reduce power consumption on Intel Sunrise Point and Broxton

Re: [PATCH 1/3] Kconfig: disable PROFILE_ALL_BRANCHES for compile testing

2018-02-20 Thread Masahiro Yamada
2018-02-17 6:41 GMT+09:00 Arnd Bergmann : > This can easily double the time for compiling a driver but does not > provide any benefit for the compile tester, so it's better left disabled. > > In addition, any 'inline' function that is not also 'static' and that > contains an 'if' causes a warning l

Re: [PATCH v3 01/25] dt-bindings: soc: qcom: Add bindings for APR bus

2018-02-20 Thread Srinivas Kandagatla
Thanks for your review comments, On 18/02/18 23:04, Rob Herring wrote: On Wed, Feb 14, 2018 at 09:13:23AM +, Srinivas Kandagatla wrote: Thanks for the review, On 13/02/18 23:12, Rob Herring wrote: On Tue, Feb 13, 2018 at 04:58:13PM +, srinivas.kandaga...@linaro.org wrote: From: Srini

Re: [PATCH] tools/memory-model: remove rb-dep, smp_read_barrier_depends, and lockless_dereference

2018-02-20 Thread Andrea Parri
On Mon, Feb 19, 2018 at 12:14:45PM -0500, Alan Stern wrote: > On Sat, 17 Feb 2018, Andrea Parri wrote: > > > > Akira's observation about READ_ONCE extends to all (annotated) loads. In > > > fact, it also applies to loads corresponding to unsuccessful RMW > > > operations; > > > consider, for exa

Re: [PATCH v3 02/25] soc: qcom: add support to APR bus driver

2018-02-20 Thread Srinivas Kandagatla
Thanks for review comments, On 19/02/18 03:08, Rob Herring wrote: On Tue, Feb 13, 2018 at 04:58:14PM +,srinivas.kandaga...@linaro.org wrote: From: Srinivas Kandagatla This patch adds support toi APR bus (Asynchronous Packet Router) driver. ARP driver is made as a bus driver so that the ap

Re: [alsa-devel] [PATCH v3 05/25] ASoC: qcom: qdsp6: Add support to Q6AFE

2018-02-20 Thread Srinivas Kandagatla
Thanks for your review comments On 19/02/18 10:30, Rohit Kumar wrote: diff --git a/sound/soc/qcom/Makefile b/sound/soc/qcom/Makefile index d5280355c24f..748f5e891dcf 100644 --- a/sound/soc/qcom/Makefile +++ b/sound/soc/qcom/Makefile @@ -13,6 +13,11 @@ obj-$(CONFIG_SND_SOC_LPASS_APQ8016) += sn

Re: [PATCH 1/8] clk: Add clk_bulk_alloc functions

2018-02-20 Thread Marek Szyprowski
Hi Robin, On 2018-02-19 17:29, Robin Murphy wrote: Hi Maciej, On 19/02/18 15:43, Maciej Purski wrote: When a driver is going to use clk_bulk_get() function, it has to initialize an array of clk_bulk_data, by filling its id fields. Add a new function to the core, which dynamically allocates cl

Re: [alsa-devel] [PATCH v3 14/25] ASoC: qcom: qdsp6: Add support to q6afe dai driver

2018-02-20 Thread Srinivas Kandagatla
Thanks for testing this out, On 19/02/18 10:32, Rohit Kumar wrote: diff --git a/sound/soc/qcom/qdsp6/Makefile b/sound/soc/qcom/qdsp6/Makefile index 660afcab98fd..c7833842b878 100644 --- a/sound/soc/qcom/qdsp6/Makefile +++ b/sound/soc/qcom/qdsp6/Makefile @@ -1,5 +1,5 @@ obj-$(CONFIG_SND_SOC_

Re: [PATCH 1/2] dt-bindings: phy: add support for STM32 USB PHY Controller (USBPHYC)

2018-02-20 Thread Amelie DELAUNAY
On 02/19/2018 02:51 AM, Rob Herring wrote: > On Mon, Feb 12, 2018 at 01:35:28PM +0100, Amelie Delaunay wrote: >> This patch adds the device tree bindings description for STM32 USBPHYC >> (USB PHY Controller). >> >> Signed-off-by: Amelie Delaunay >> --- >> .../devicetree/bindings/phy/phy-stm32-

Re: [PATCH v1 2/2] PCI: Allow user to request power management of conventional and hotplug bridges

2018-02-20 Thread Rafael J. Wysocki
On Tue, Feb 20, 2018 at 12:14 AM, Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Previously "pcie_port_pm=force" enabled power management of PCI bridges, > but only for PCIe ports (not conventional PCI bridges) and only for ports > that do not support hotplug. Those limitations are there because

Re: [PATCH 1/3] locking/ww_mutex: cleanup lock->ctx usage in amdgpu

2018-02-20 Thread Christian König
Am 19.02.2018 um 17:43 schrieb Daniel Vetter: On Mon, Feb 19, 2018 at 05:29:46PM +0100, Christian König wrote: [SNIP] Well that is not a problem at all. See we don't nest trylock with normal lock acquiring, cause that would indeed bypass the whole deadlock detection. Instead we first use ww_mut

Re: [PATCH v3 0/3] Enable CONFIG_VT support for S390

2018-02-20 Thread Christian Borntraeger
Added to my linux next tree to check for any fallout. On 02/19/2018 04:47 PM, Farhan Ali wrote: > Hi, > > This series of patches add support for an additional tty > and console for a S390 KVM guest using a virtio-gpu device[1]. > > Patch 1 enables the "Graphics support" menu which is > needed t

[PATCH] ASoC: uniphier: evea: fix typo 'eva' -> 'evea'

2018-02-20 Thread Katsuhiro Suzuki
Signed-off-by: Katsuhiro Suzuki --- sound/soc/uniphier/evea.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/uniphier/evea.c b/sound/soc/uniphier/evea.c index cad7e60de21d..ac2d30b55fb6 100644 --- a/sound/soc/uniphier/evea.c +++ b/sound/soc/uniphier/evea.c @@

[PATCH] xen/blkback: update sysfs interface documentation

2018-02-20 Thread Aishwarya Pant
Add documentation for statistic attribute ds_req - the number of discarded requests. Signed-off-by: Aishwarya Pant --- Documentation/ABI/stable/sysfs-bus-xen-backend | 7 +++ 1 file changed, 7 insertions(+) diff --git a/Documentation/ABI/stable/sysfs-bus-xen-backend b/Documentation/ABI/sta

Re: INFO: rcu detected stall in xfrm_confirm_neigh

2018-02-20 Thread Steffen Klassert
On Mon, Feb 19, 2018 at 11:05:38AM +0100, Dmitry Vyukov wrote: > On Mon, Feb 19, 2018 at 8:22 AM, Steffen Klassert > wrote: > >> > wrote: > >> >> Hello, > >> >> > >> >> syzbot hit the following crash on net-next commit > >> >> 9515a2e082f91457db0ecff4b65371d0fb5d9aad (Thu Jan 25 03:37:38 2018 >

Re: [PATCH v1 2/2] PCI: Allow user to request power management of conventional and hotplug bridges

2018-02-20 Thread Rafael J. Wysocki
On Tue, Feb 20, 2018 at 10:41 AM, Rafael J. Wysocki wrote: > On Tue, Feb 20, 2018 at 12:14 AM, Bjorn Helgaas wrote: >> From: Bjorn Helgaas >> >> Previously "pcie_port_pm=force" enabled power management of PCI bridges, >> but only for PCIe ports (not conventional PCI bridges) and only for ports >

[PATCH 0/9] serial: Fix out-of-bounds accesses through DT aliases

2018-02-20 Thread Geert Uytterhoeven
Hi all, Serial drivers used on DT platforms use the "serialN" alias in DT to obtain the serial port index for a specific port. Drivers typically use a fixed-size array for keeping track of all available serial ports. However, several drivers do not perform any validation on the index obta

[PATCH 8/9] serial: sirf: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The sirf_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: 66c7ab1120585d18 ("serial: sirf: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven --- drivers

[PATCH 4/9] serial: mxs-auart: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The auart_port[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: cabf23e7aa00b145 ("serial: mxs-auart: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven --- dr

[PATCH 2/9] serial: fsl_lpuart: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The lpuart_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: 970416c691dc68b5 ("serial: fsl_lpuart: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven ---

[PATCH 3/9] serial: imx: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The imx_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: 9206ab8a0350c3da ("serial: imx: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven --- drivers/t

[PATCH 9/9] serial: xuartps: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The cdns_uart_port[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: 1f118c02a1819856 ("serial: xuartps: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven ---

[PATCH 6/9] serial: samsung: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The s3c24xx_serial_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Note that the array size is defined by a Kconfig symbol (CONFIG_SERIAL_SAMSUNG_UARTS), so this can even be triggered using

[PATCH 7/9] serial: sh-sci: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The sci_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Note that the array size is defined by a Kconfig symbol (CONFIG_SERIAL_SH_SCI_NR_UARTS), so this can even be triggered using a legiti

[PATCH v3] MIPS: pm-cps: Block system suspend when a JTAG probe is present

2018-02-20 Thread Matt Redfearn
If a JTAG probe is connected to a MIPS cluster, then the CPC detects it and latches the CPC.STAT_CONF.EJTAG_PROBE bit to 1. While set, attempting to send a power-down command to a core will be blocked, and the CPC will instead send the core to clock-off state. This can interfere with systems fully

[PATCH 1/9] serial: arc_uart: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The arc_uart_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Note that the array size is defined by a Kconfig symbol (CONFIG_SERIAL_ARC_NR_PORTS), so this can even be triggered using a legi

Re: [PATCH 2/3] Kconfig: improve handling for all{rand,yes,no,}.config fragments

2018-02-20 Thread Arnd Bergmann
On Tue, Feb 20, 2018 at 10:26 AM, Masahiro Yamada wrote: > 2018-02-17 6:41 GMT+09:00 Arnd Bergmann : >> @@ -621,14 +622,24 @@ int main(int ac, char **av) >> case randconfig:name = "allrandom.config"; break; >> default: break; >> } >> -

Re: [RFC PATCH V2 11/22] x86/intel_rdt: Associate pseudo-locked regions with its domain

2018-02-20 Thread Thomas Gleixner
On Mon, 19 Feb 2018, Reinette Chatre wrote: > On 2/19/2018 3:19 PM, Thomas Gleixner wrote: > > On Mon, 19 Feb 2018, Reinette Chatre wrote: > >> On 2/19/2018 1:19 PM, Thomas Gleixner wrote: > >>> On Tue, 13 Feb 2018, Reinette Chatre wrote: > >>> > After a pseudo-locked region is locked it needs

Re: linux-next: Tree for Feb 19 (gpu/drm/pl111/)

2018-02-20 Thread Thierry Reding
On Mon, Feb 19, 2018 at 10:30:06AM -0800, Randy Dunlap wrote: > [add Eric + dri-devel] > > On 02/19/18 09:26, Randy Dunlap wrote: > > On 02/18/18 18:14, Stephen Rothwell wrote: > >> Hi all, > >> > >> Changes since 20180216: > >> > >> The nand tree gained a conflict against Linus' tree. > >> > >> T

Re: [PATCH 03/15] soc: renesas: Add R-Car M3-N support

2018-02-20 Thread jacopo mondi
Hi Geert, On Wed, Feb 14, 2018 at 01:48:27PM +0100, Geert Uytterhoeven wrote: > Hi Jacopo, > > Thanks for your patch! > > On Tue, Feb 13, 2018 at 10:45 AM, Jacopo Mondi > wrote: > > Add support for R-Car M3-N (r8a77965) power areas and reset. > > M3-N power areas are identical to M3-W ones, so ju

Re: [PATCH 1/3] ipc/shm: introduce shmctl(SHM_STAT_ANY)

2018-02-20 Thread Michal Hocko
On Thu 15-02-18 08:24:56, Davidlohr Bueso wrote: > There is a permission discrepancy when consulting shm ipc > object metadata between /proc/sysvipc/shm (0444) and the > SHM_STAT shmctl command. The later does permission checks > for the object vs S_IRUGO. As such there can be cases where > EACCESS

[PATCH RFC] riscv/barrier: Define __smp_{mb,rmb,wmb}

2018-02-20 Thread Andrea Parri
Introduce __smp_{mb,rmb,wmb}, and rely on the generic definitions for smp_{mb,rmb,wmb}. A first consequence is that smp_{mb,rmb,wmb} map to a compiler barrier on !SMP (while their definition remains unchanged on SMP). As a further consequence, smp_load_acquire and smp_store_release have "fence rw,r

Re: [PATCH RESEND] x86: consider effective protection attributes in W+X check

2018-02-20 Thread Ingo Molnar
* Jan Beulich wrote: > >>> On 20.02.18 at 09:37, wrote: > > > * Jan Beulich wrote: > > > >> I'll see what I can do; it's a pity that the change here, which had > >> been sent weeks ago and is a bug fix, hadn't gone in before that > >> other change (being more an improvement than a bug fix).

[PATCH 5/9] serial: pxa: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The serial_pxa_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: c8dcdc77298dde67 ("serial: pxa: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven --- dr

<    2   3   4   5   6   7   8   9   >