[RFC v5 08/11] mm: Provide speculative fault infrastructure

2017-06-16 Thread Laurent Dufour
From: Peter Zijlstra Provide infrastructure to do a speculative fault (not holding mmap_sem). The not holding of mmap_sem means we can race against VMA change/removal and page-table destruction. We use the SRCU VMA freeing to keep the VMA around. We use the VMA seqcount to detect change (includi

[RFC v5 09/11] mm: Try spin lock in speculative path

2017-06-16 Thread Laurent Dufour
There is a deadlock when a CPU is doing a speculative page fault and another one is calling do_unmap(). The deadlock occurred because the speculative path try to spinlock the pte while the interrupt are disabled. When the other CPU in the unmap's path has locked the pte then is waiting for all the

[RFC v5 03/11] mm: Introduce pte_spinlock for FAULT_FLAG_SPECULATIVE

2017-06-16 Thread Laurent Dufour
When handling page fault without holding the mmap_sem the fetch of the pte lock pointer and the locking will have to be done while ensuring that the VMA is not touched in our back. So move the fetch and locking operations in a dedicated function. Signed-off-by: Laurent Dufour --- mm/memory.c |

[RFC v5 10/11] x86/mm: Add speculative pagefault handling

2017-06-16 Thread Laurent Dufour
From: Peter Zijlstra Try a speculative fault before acquiring mmap_sem, if it returns with VM_FAULT_RETRY continue with the mmap_sem acquisition and do the traditional fault. Signed-off-by: Peter Zijlstra (Intel) [Clearing of FAULT_FLAG_ALLOW_RETRY is now done in handle_speculative_fault()] [

[RFC v5 00/11] Speculative page faults

2017-06-16 Thread Laurent Dufour
This is a port on kernel 4.12 of the work done by Peter Zijlstra to handle page fault without holding the mm semaphore [1]. The idea is to try to handle user space page faults without holding the mmap_sem. This should allow better concurrency for massively threaded process since the page fault han

Applied "dt-bindings: stm32: sai: fix DT example" to the asoc tree

2017-06-16 Thread Mark Brown
The patch dt-bindings: stm32: sai: fix DT example has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus d

Re: [PATCH 1/7] dt-bindings: stm32: sai: fix DT example

2017-06-16 Thread Mark Brown
On Fri, Jun 16, 2017 at 02:15:28PM +0200, olivier moysan wrote: > Correct the device tree example. Please submit patches using subject lines reflecting the style for the subsystem. This makes it easier for people to identify relevant patches. Look at what existing commits in the area you're chan

Applied "dt-bindings: stm32: add h7 support for sai" to the asoc tree

2017-06-16 Thread Mark Brown
The patch dt-bindings: stm32: add h7 support for sai has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linu

Applied "ASoC: stm32: sai: change stop sequence" to the asoc tree

2017-06-16 Thread Mark Brown
The patch ASoC: stm32: sai: change stop sequence has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus du

Applied "ASoC: stm32: sai: fix clock management" to the asoc tree

2017-06-16 Thread Mark Brown
The patch ASoC: stm32: sai: fix clock management has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus du

Applied "ASoC: stm32: sai: add h7 support" to the asoc tree

2017-06-16 Thread Mark Brown
The patch ASoC: stm32: sai: add h7 support has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during t

Re: [PATCH 0/5] perf: add support for capturing skid IP

2017-06-16 Thread Andi Kleen
> > Yeah, I think it is easier and more portable, especially on hardware with a > > PEBS-like mechanism but no branch buffer (like LBR). FYI, I did do a test > > implementation yesterday to evaluate the difficulty. > > > A more generalized usage of the feature is to evaluate the amount of skid > fo

Re: [PATCH] MIPS: Make individual platforms select ARCH_MIGHT_HAVE_PC_SERIO

2017-06-16 Thread Florian Fainelli
On 06/15/2017 06:56 PM, Maciej W. Rozycki wrote: > On Mon, 5 Jun 2017, Florian Fainelli wrote: > >> Out of the many MIPS platforms only 3 appear to be actually using an >> I8042 keyboard controller: SGI, JAZZ and LOOGSON64, remove >> ARCH_MIGHT_HAVE_PC_SERIO from the top-level MIPS Kconfig symbol

Re: xgetbv nondeterminism

2017-06-16 Thread H.J. Lu
On Fri, Jun 16, 2017 at 9:38 AM, Andy Lutomirski wrote: > On Fri, Jun 16, 2017 at 9:17 AM, H.J. Lu wrote: >> On Fri, Jun 16, 2017 at 9:01 AM, Andy Lutomirski wrote: >>> On Thu, Jun 15, 2017 at 9:34 PM, H.J. Lu wrote: On Thu, Jun 15, 2017 at 8:05 PM, Andy Lutomirski wrote: > On Thu, Ju

Re: [PATCH v2] serial: Delete dead code for CIR serial ports

2017-06-16 Thread Andy Shevchenko
On Fri, Jun 16, 2017 at 6:17 PM, Matthias Brugger wrote: > Commit e4fda3a04275 ("serial: don't register CIR serial ports") adds a > check for PORT_8250_CIR to serial8250_register_8250_port(). But the code > isn't needed as the function never takes the branch when the port is CIR > serial port. > >

Re: [RFC PATCH 00/13] Switchtec NTB Support

2017-06-16 Thread Serge Semin
On Fri, Jun 16, 2017 at 10:47:21AM -0600, Logan Gunthorpe wrote: > > > On 16/06/17 09:34 AM, Allen Hubbe wrote: > > In code review, I really only have found minor nits. Overall, the driver > > looks good. > > Great, thanks for such a quick review! > > > In switchtec_ntb_part_op, there is a

[PATCH] staging: fusb302: don't bitshift __le16 type

2017-06-16 Thread Frans Klaver
The header field in struct pd_message is declared as an __le16 type. The data in the message is supposed to be little endian. This means we don't have to go and shift the individual bytes into position when we're filling the buffer, we can just copy the contents right away. As an added benefit we d

Re: WARN_ON_ONCE() in process_one_work()?

2017-06-16 Thread Paul E. McKenney
On Thu, Jun 15, 2017 at 08:38:57AM -0700, Paul E. McKenney wrote: > On Wed, Jun 14, 2017 at 08:15:48AM -0700, Paul E. McKenney wrote: > > On Tue, Jun 13, 2017 at 03:31:03PM -0700, Paul E. McKenney wrote: > > > On Tue, Jun 13, 2017 at 04:58:37PM -0400, Tejun Heo wrote: > > > > Hello, Paul. > > > >

Re: [PATCH 2/2] perf report: report module before querying isactivation in dwfl unwind

2017-06-16 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 16, 2017 at 01:06:52PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Jun 02, 2017 at 12:25:08PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Fri, Jun 02, 2017 at 04:37:53PM +0200, Milian Wolff escreveu: > > > The PC returned by dwfl_frame_pc may map into a not-yet-reported > >

Re: [PATCH 1/2] iommu/s390: Use iommu_group_get_for_dev() in s390_iommu_add_device()

2017-06-16 Thread Gerald Schaefer
On Thu, 15 Jun 2017 15:11:51 +0200 Joerg Roedel wrote: > From: Joerg Roedel > > The iommu_group_get_for_dev() function also attaches the > device to its group, so this code doesn't need to be in the > iommu driver. > > Further by using this function the driver can make use of > default domains

Re: [PATCH] usb: host: ehci: workaround PME bug on AMD EHCI controller

2017-06-16 Thread Alan Stern
On Sat, 17 Jun 2017, Kai-Heng Feng wrote: > On Fri, Jun 16, 2017 at 11:07 AM, Kai-Heng Feng > wrote: > > On Thu, Jun 15, 2017 at 10:12 PM, Alan Stern > > wrote: > >> Those documents refer to a hardware bug with a workaround in the BIOS. > >> Have you checked to see if your BIOS is up to date? >

Re: [PATCH v2 03/11] tty: kbd: reduce stack size with KASAN

2017-06-16 Thread Dmitry Torokhov
On Fri, Jun 16, 2017 at 8:58 AM, Samuel Thibault wrote: > Arnd Bergmann, on ven. 16 juin 2017 17:41:47 +0200, wrote: >> The problem are the 'ch' and 'flag' variables that are passed into >> tty_insert_flip_char by value, and from there into >> tty_insert_flip_string_flags by reference. In this ca

[PATCH] net/phy: micrel: configure intterupts after autoneg workaround

2017-06-16 Thread Zach Brown
The commit ("net/phy: micrel: Add workaround for bad autoneg") fixes an autoneg failure case by resetting the hardware. This turns off intterupts. Things will work themselves out if the phy polls, as it will figure out it's state during a poll. However if the phy uses only intterupts, the phy will

Re: linux-next: build failure after merge of the akpm-current tree

2017-06-16 Thread Andrew Morton
On Thu, 15 Jun 2017 16:46:33 -0700 Kees Cook wrote: > On Thu, Jun 15, 2017 at 12:12 PM, Andrew Morton > wrote: > > On Wed, 14 Jun 2017 18:56:30 -0700 Kees Cook wrote: > > > >> >> Caused by commit > >> >> > >> >> 088a5ecf7581 ("include/linux/string.h: add the option of fortified > >> >> strin

Re: [PATCH v4 0/5] Improve watchdog config for arch watchdogs

2017-06-16 Thread Babu Moger
Tested on sparc: Tested-by: Babu Moger Reviewed patch #1, #2, #3 Reviewed-by: Babu Moger On 6/16/2017 9:50 AM, Don Zickus wrote: (adding Andrew) On Fri, Jun 16, 2017 at 04:57:10PM +1000, Nicholas Piggin wrote: This is the latest series to make the hardlockup watchdog more easily replace

[RFH] qemu-2.6 memory corruption with OVMF and linux-4.9

2017-06-16 Thread Philipp Hahn
Hello, I tried to get QEMU running with UEFI and SecureBoot. It sometimes works, but sometimes I get memory corruption: - the Debian installer sometimes fails to load the "libata.ko" or "e1000.ko" modules. - it it not always the same module - my guest kernel uses KASLR, which might explain differe

Re: [PATCH v2 03/11] tty: kbd: reduce stack size with KASAN

2017-06-16 Thread Andrey Ryabinin
On 06/16/2017 06:41 PM, Arnd Bergmann wrote: > On Fri, Jun 16, 2017 at 3:02 PM, Greg Kroah-Hartman > wrote: >> On Fri, Jun 16, 2017 at 02:01:57PM +0200, Arnd Bergmann wrote: >>> On Thu, Jun 15, 2017 at 6:53 AM, Greg Kroah-Hartman >>> wrote: On Thu, Jun 15, 2017 at 06:52:21AM +0200, Greg Kroa

Re: [PATCH 0/5] perf: add support for capturing skid IP

2017-06-16 Thread Stephane Eranian
On Fri, Jun 16, 2017 at 10:08 AM, Stephane Eranian wrote: > On Fri, Jun 16, 2017 at 9:06 AM, Andi Kleen wrote: >> On Thu, Jun 15, 2017 at 11:52:07PM -0700, Stephane Eranian wrote: >>> Andi, >>> >>> On Thu, Jun 15, 2017 at 4:18 PM, Andi Kleen wrote: >>> >> Looking at this approach, the user inter

Re: [PATCH 2/2] i2c: Add Spreadtrum I2C controller driver

2017-06-16 Thread kbuild test robot
Hi Baolin, [auto build test ERROR on wsa/i2c/for-next] [also build test ERROR on v4.12-rc5 next-20170616] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Baolin-Wang/dt-bindings-i2c-Add

Re: autofs multi-map regression

2017-06-16 Thread Eric W. Biederman
Dick Streefland writes: > After a recent upgrade of a Ubuntu xenial machine, a particular > autofs multi-map mount setup stopped working. A simplified example is: > > :: > auto.master > :: > /net /etc/auto.net > :: > auto.net > :: > localho

Re: [RFC PATCH 00/13] Switchtec NTB Support

2017-06-16 Thread Logan Gunthorpe
On 16/06/17 10:33 AM, Serge Semin wrote: > New NTB API is going to be merged to mainline kernel within next features > merge window, so it's really recommended to use that API for new hardware. > Could you please rabase your driver on top of the tree? > https://github.com/jonmason/ntb.git Yes, A

Re: [PATCH 0/5] perf: add support for capturing skid IP

2017-06-16 Thread Stephane Eranian
On Fri, Jun 16, 2017 at 9:06 AM, Andi Kleen wrote: > On Thu, Jun 15, 2017 at 11:52:07PM -0700, Stephane Eranian wrote: >> Andi, >> >> On Thu, Jun 15, 2017 at 4:18 PM, Andi Kleen wrote: >> >> Looking at this approach, the user interface is straightforward, >> >> implementation in the x86 code is a

[PATCH v2 2/2] tracing: Document the use of TRACE_DEFINE_SIZEOF

2017-06-16 Thread Jeremy Linton
The kernel now corrects the use of sizeof() in the trace format files. Lets document how to make use of that feature. Signed-off-by: Jeremy Linton --- samples/trace_events/trace-events-sample.h | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/samp

[PATCH v2 1/2] tracing: trivial: Fix spelling mistakes in trace sample

2017-06-16 Thread Jeremy Linton
The trace sample file has a couple mispellings, lets fix them. Signed-off-by: Jeremy Linton --- samples/trace_events/trace-events-sample.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/trace_events/trace-events-sample.h b/samples/trace_events/trace-event

[PATCH v5 1/2] arm64: dts: mt7622: add basic nodes to the mt7622.dtsi file

2017-06-16 Thread sean.wang
From: Sean Wang add basic nodes into the mt7622.dtsi for the system bring-up which includes ARM CPU, GIC, timer, MediaTek UART, SYSIRQ and one reserved memory region for ATF. Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/mt7622.dtsi | 110 +++ 1 file cha

[PATCH v5 0/2] Add Basic SoC support for MT7622

2017-06-16 Thread sean.wang
From: Sean Wang Changes since v4: - redefine the two dummy clocks with the correct frequency which is 25MHz and 280MHz respectively. Changes since v3: - get rid of those accepted patches - rebased to branch v4.12-next/dts64 in Matthias' tree - fixed uart node in dts with two clocks as describe

[PATCH v5 2/2] arm64: dts: mt7622: add dts file for MT7622 reference board variant 1

2017-06-16 Thread sean.wang
From: Sean Wang Add the support for the MT7622 reference board variant 1 from MediaTek. Signed-off-by: Sean Wang --- arch/arm64/boot/dts/mediatek/Makefile| 1 + arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 27 +++ 2 files changed, 28 insertions(+) create mod

Re: [RFT v2] pinctrl: samsung: Fix NULL pointer exception on external interrupts on S3C24xx

2017-06-16 Thread Lihua Yao
On Thursday, June 15, 2017 11:46 PM, Krzysztof Kozlowski wrote: After commit 8b1bd11c1f8f ("pinctrl: samsung: Add the support the multiple IORESOURCE_MEM for one pin-bank"), the S3C24xx (and probably S3C64xx as well) fails: Unable to handle kernel NULL pointer dereference at virtual addr

Re: [PATCH] drm: hdlcd: Update PM code to save/restore console.

2017-06-16 Thread Noralf Trønnes
Den 16.06.2017 15.53, skrev Liviu Dudau: Update the PM code to suspend/resume the fbdev_cma console. Signed-off-by: Liviu Dudau --- drivers/gpu/drm/arm/hdlcd_drv.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/arm/hdlcd_drv.c b/drivers/gpu/d

Re: [RFC 3/3] rt: Check if the task needs to migrate when re-enabling migration

2017-06-16 Thread Sebastian Andrzej Siewior
On 2017-06-16 12:39:48 [+0200], Daniel Bristot de Oliveira wrote: > In the case of an affinity change during a migrate_disable section, > __set_cpus_allowed_ptr will not try to move the task from a CPU > in which it cannot execute anymore. > > So, after enabling migration, if the current task cann

Re: [PATCH] PCI: imx6: add regulator support

2017-06-16 Thread Bjorn Helgaas
On Thu, Jun 08, 2017 at 10:07:42AM +0200, Quentin Schulz wrote: > Some boards might require to control a regulator to power the PCIe port. > > This adds support for an optional regulator defined in Device Tree > linked in the PCIe controller under `vpcie-supply`. If present, the > regulator will b

Re: [PATCH] MAINTAINERS: Add an entry for MediaTek PCIe driver

2017-06-16 Thread Bjorn Helgaas
On Fri, Jun 16, 2017 at 12:53:09PM +0800, Ryder Lee wrote: > Add MediaTek PCIe driver maintainer entry. > > Signed-off-by: Ryder Lee Folded into pci/host-mediatek for v4.13, thanks! > --- > MAINTAINERS | 8 > 1 file changed, 8 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS

Re: Crypto Fixes for 4.12

2017-06-16 Thread David Miller
From: Theodore Ts'o Date: Fri, 16 Jun 2017 08:50:07 -0400 > On Thu, Jun 15, 2017 at 11:01:18AM -0400, David Miller wrote: >> As a side note, ext4 does something similar with a private >> implementation, but it doesn't use something the evaluates to an >> alloca. Instead it uses a fixed 4-byte si

[GIT PULL] PCI fixes for v4.12

2017-06-16 Thread Bjorn Helgaas
PCI fixes: - fix another PCI_ENDPOINT build error (merged for v4.12) - fix error codes added to config accessors for v4.12 The following changes since commit 4d071c3238987325b9e50e33051a40d1cce311cc: PCI/PM: Add needs_resume flag to avoid suspend complete optimization (2017-05-23 14:18:

Re: [RFC PATCH 00/13] Switchtec NTB Support

2017-06-16 Thread Logan Gunthorpe
On 16/06/17 09:34 AM, Allen Hubbe wrote: > In code review, I really only have found minor nits. Overall, the driver > looks good. Great, thanks for such a quick review! > In switchtec_ntb_part_op, there is a delay of up to 50s (1000 * 50ms). This > looks like a thread context, so it could i

Re: LTS testing with latest kselftests - some failures

2017-06-16 Thread Luis R. Rodriguez
Kees, please review 47e0bbb7fa98 below. Brian, please review be4a1326d12c below. On Thu, Jun 15, 2017 at 11:26:53PM +0530, Sumit Semwal wrote: > Hello Greg, Shuah, > > While testing 4.4.y and 4.9.y LTS kernels with latest kselftest, To be clear it seems like you are taking the latest upstream ks

Re: [PATCH v9 5/7] vfio: Define vfio based dma-buf operations

2017-06-16 Thread Alex Williamson
On Fri, 16 Jun 2017 19:02:30 +0530 Kirti Wankhede wrote: > On 6/16/2017 2:08 AM, Alex Williamson wrote: > > On Thu, 15 Jun 2017 18:00:38 +0200 > > Gerd Hoffmann wrote: > > > >> Hi, > >> > +struct vfio_dmabuf_mgr_plane_info { > +__u64 start; > +__u64 drm_form

Re: [RFC] KVM: SVM: do not drop VMCB CPL to 0 if SS is not present

2017-06-16 Thread Paolo Bonzini
On 15/06/2017 23:44, Andy Lutomirski wrote: > On Tue, May 30, 2017 at 9:05 AM, Paolo Bonzini wrote: >> On 30/05/2017 17:58, Roman Penyaev wrote: >>> We will have CPL in var->dpl, and it seems ok. All we need is not >>> to lose it on the way kernel->userspace->kernel. >> >> You're right. So wha

[PATCH v3 2/4] [media] platform: Add Synopsys Designware HDMI RX Controller Driver

2017-06-16 Thread Jose Abreu
This is an initial submission for the Synopsys Designware HDMI RX Controller Driver. This driver interacts with a phy driver so that a communication between them is created and a video pipeline is configured. The controller + phy pipeline can then be integrated into a fully featured system that ca

[PATCH v3 0/4] Synopsys Designware HDMI Video Capture Controller + PHY

2017-06-16 Thread Jose Abreu
The Synopsys Designware HDMI RX controller is an HDMI receiver controller that is responsible to process digital data that comes from a phy. The final result is a stream of raw video data that can then be connected to a video DMA, for example, and transfered into RAM so that it can be displayed. T

[PATCH v3 3/4] MAINTAINERS: Add entry for Synopsys Designware HDMI drivers

2017-06-16 Thread Jose Abreu
Add a entry for Synopsys Designware HDMI Receivers drivers and phys. Signed-off-by: Jose Abreu Cc: Carlos Palminha --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 053c3bd..e798040 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11294,6 +

[PATCH v3 4/4] dt-bindings: media: Document Synopsys Designware HDMI RX

2017-06-16 Thread Jose Abreu
Document the bindings for the Synopsys Designware HDMI RX. Signed-off-by: Jose Abreu Cc: Carlos Palminha Cc: Rob Herring Cc: Mark Rutland Cc: Mauro Carvalho Chehab Cc: Hans Verkuil Changes from v2: - Document edid-phandle property --- .../devicetree/bindings/media/snps,dw-hdmi-rx.t

[PATCH v3 1/4] [media] platform: Add Synopsys Designware HDMI RX PHY e405 Driver

2017-06-16 Thread Jose Abreu
This adds support for the Synopsys Designware HDMI RX PHY e405. This phy receives and decodes HDMI video that is delivered to a controller. Main features included in this driver are: - Equalizer algorithm that chooses the phy best settings according to the detected HDMI cable chara

Re: xgetbv nondeterminism

2017-06-16 Thread Andy Lutomirski
On Fri, Jun 16, 2017 at 9:17 AM, H.J. Lu wrote: > On Fri, Jun 16, 2017 at 9:01 AM, Andy Lutomirski wrote: >> On Thu, Jun 15, 2017 at 9:34 PM, H.J. Lu wrote: >>> On Thu, Jun 15, 2017 at 8:05 PM, Andy Lutomirski wrote: On Thu, Jun 15, 2017 at 7:17 PM, H.J. Lu wrote: > On Thu, Jun 15, 20

To whom it may concern

2017-06-16 Thread Professor Itse Sagay
To whom it may concern, My name is Professor Itse Sagay, Professor Itse Sagay,Chairman Presidential Advisory Committee against Corruption Federal Republic of Nigeria. My reason of contacting you is in line with the desire of President Muhammadu Buhari quest to wipe corruption out of the Nigeria s

RE: [PATCH] RFC: platform/x86: wmi: Fix check for method instance number

2017-06-16 Thread Mario.Limonciello
> -Original Message- > From: Limonciello, Mario > Sent: Thursday, June 15, 2017 10:16 AM > To: 'Pali Rohár' ; Darren Hart > Cc: Andy Shevchenko ; Andy Lutomirski ; > platform-driver-...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: RE: [PATCH] RFC: platform/x86: wmi: Fix check f

Re: [RFC PATCH 00/13] Switchtec NTB Support

2017-06-16 Thread Serge Semin
Hello Logan. Thanks for the new hardware driver. It's really great to see NTB subsystem being developed. New NTB API is going to be merged to mainline kernel within next features merge window, so it's really recommended to use that API for new hardware. Could you please rabase your driver on top o

Re: [systemd-devel] [WIP PATCH 0/4] Rework the unreliable LID switch exported by ACPI

2017-06-16 Thread Lennart Poettering
On Fri, 16.06.17 11:06, Bastien Nocera (had...@hadess.net) wrote: > > Let's consider this case with delay: > > After resume, gnome-setting-daemon queries SW_LID and got "close". > > Then it lights up the wrong monitors. > > Then I believe "open" will be delivered to it several seconds later. > > S

[PATCH] arm64: dts: mt6797: fixup build breakage from no such file

2017-06-16 Thread sean.wang
From: Sean Wang fixup build error from no such file as the following complains from branch v4.12-next/dts64 in linux mediatek tree arch/arm64/boot/dts/mediatek/mt6797.dtsi:15:44: fatal error: dt-bindings/power/mt6797-power.h: No such file or directory #include Fixes: 003f5d0c3462 ("arm64: dts

Re: [PATCH v2] PCI: Add ATS-disable quirk for AMD Stoney GPUs

2017-06-16 Thread Joerg Roedel
Hi Bjorn, On Thu, Jun 15, 2017 at 02:15:45PM -0500, Bjorn Helgaas wrote: > It was marked "superseded" in patchwork and thus off my radar. I > don't remember if I did that or why. I changed it back to "New" so I > won't forget about it. Great! > You mention (May 24) the original bug report. Ca

Re: [PATCH v3 7/7] asm-generic, x86: add comments for atomic instrumentation

2017-06-16 Thread Andrey Ryabinin
On 06/06/2017 01:11 PM, Dmitry Vyukov wrote: > The comments are factored out from the code changes to make them > easier to read. Add them separately to explain some non-obvious > aspects. > > Signed-off-by: Dmitry Vyukov > Cc: Mark Rutland > Cc: Peter Zijlstra > Cc: Will Deacon > Cc: Andrew M

Re: [PATCH 1/2 v2] perf intel-pt/bts: remove unused SAMPLE_SIZE defines and bts priv array

2017-06-16 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 16, 2017 at 11:23:39AM -0500, Kim Phillips escreveu: > These defines were probably dragged in from sampling support in earlier > patches. They can be put back when needed. Applied. Ah, please capitalize the first word after the : in the summary, i.e.: [PATCH 1/2 v2] perf intel-pt/

[GIT PULL] ARM: at91: DT for 4.13

2017-06-16 Thread Alexandre Belloni
Arnd, Olof, Here is the DT pull request, switching most platform the the new EBI and NAND bindings. The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/l

Re: [PATCH] perf unwind: Limit warnings when asked for not supported unwind

2017-06-16 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 16, 2017 at 02:12:53PM +0200, Jiri Olsa escreveu: > Ingo reported following warning flooding the report out: > > unwind: target platform=x86 is not supported > > We trigger this warning when the dwarf unwinder is asked to > process architecture which wasn't compiled in, like when yo

[PATCH 1/2 v2] perf intel-pt/bts: remove unused SAMPLE_SIZE defines and bts priv array

2017-06-16 Thread Kim Phillips
These defines were probably dragged in from sampling support in earlier patches. They can be put back when needed. Acked-by: Adrian Hunter Signed-off-by: Kim Phillips --- v2: addressed Ingo's comment by populating changelog with Adrian's explanation of why they were unused tools/perf/arch/x86

Re: [PATCH v1 1/2] perf report: Check for fused instruction pair

2017-06-16 Thread Arnaldo Carvalho de Melo
Em Wed, Jun 14, 2017 at 10:53:40AM +0800, Jin Yao escreveu: > Macro fusion merges two instructions to a single micro-op. Intel > core platform performs this hardware optimization under limited > circumstances. For example, CMP + JCC can be "fused" and executed > /retired together. While with sampli

Re: [PATCH v2 3/4] ARM: dts: exynos: Fix the active of reset gpios from rinato dts

2017-06-16 Thread Krzysztof Kozlowski
On Thu, Jun 15, 2017 at 07:03:29PM +0900, Hoegeun Kwon wrote: > This reset gpios is active low, therefore fix from active high to low. > > Signed-off-by: Hoegeun Kwon > --- > arch/arm/boot/dts/exynos3250-rinato.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, applied this

Re: [RFC PATCH 2/3] remoteproc: imx_rproc: add a NXP/Freescale imx rproc driver

2017-06-16 Thread Suman Anna
On 06/15/2017 02:01 PM, Suman Anna wrote: > Hi Oleksij, > > On 06/14/2017 03:48 PM, Oleksij Rempel wrote: >> From: Oleksij Rempel >> >> this driver was tested on NXP imx7d but should work on >> imx6sx as well. >> It will upload firmware to OCRAM, which shared memory between >> Cortex A7 and Corte

[GIT PULL] ARM: at91: SoC for 4.13

2017-06-16 Thread Alexandre Belloni
Hi, Arnd, Olof, Our now unusually large update for AT91 SoCs, introducing surpport for three new families of SoCs, cortex M7 based and a new deep suspend mode for sama5d2. The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700)

Re: [PATCH] usb: host: ehci: workaround PME bug on AMD EHCI controller

2017-06-16 Thread Kai-Heng Feng
On Fri, Jun 16, 2017 at 11:07 AM, Kai-Heng Feng wrote: > On Thu, Jun 15, 2017 at 10:12 PM, Alan Stern > wrote: >> Those documents refer to a hardware bug with a workaround in the BIOS. >> Have you checked to see if your BIOS is up to date? > > Yes, it's up to date. > Alan, I re-sent a patch but

Re: [PATCH v1 0/2] perf report: Implement visual marker for macro fusion in annotate

2017-06-16 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 16, 2017 at 01:16:55PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Jun 14, 2017 at 10:53:39AM +0800, Jin Yao escreveu: > > Macro fusion merges two instructions to a single micro-op. Intel > > core platform performs this hardware optimization under limited > > circumstances. For

Re: xgetbv nondeterminism

2017-06-16 Thread H.J. Lu
On Fri, Jun 16, 2017 at 9:01 AM, Andy Lutomirski wrote: > On Thu, Jun 15, 2017 at 9:34 PM, H.J. Lu wrote: >> On Thu, Jun 15, 2017 at 8:05 PM, Andy Lutomirski wrote: >>> On Thu, Jun 15, 2017 at 7:17 PM, H.J. Lu wrote: On Thu, Jun 15, 2017 at 4:28 PM, Andy Lutomirski wrote: > On Thu, Ju

Re: [PATCH v1 0/2] perf report: Implement visual marker for macro fusion in annotate

2017-06-16 Thread Arnaldo Carvalho de Melo
Em Wed, Jun 14, 2017 at 10:53:39AM +0800, Jin Yao escreveu: > Macro fusion merges two instructions to a single micro-op. Intel > core platform performs this hardware optimization under limited > circumstances. For example, CMP + JCC can be "fused" and executed > /retired together. While with sampli

[PATCH] x86: fix lower bound of crash kernel low reservation

2017-06-16 Thread Jiri Bohac
Commit 0212f9159694 (x86: Add Crash kernel low reservation) introduced reserve_crashkernel_low. This is used to reserve crash kernel memory either if crashkernel=size,low is given on the command line or if the region reserved by reserve_crashkernel is entirely above 4G. reserve_crashkernel_low tri

Re: [RFC PATCH 1/3] atmel-hlcdc: add support for 8-bit color lookup table mode

2017-06-16 Thread Boris Brezillon
Hi Peter, On Fri, 16 Jun 2017 17:54:04 +0200 Peter Rosin wrote: > On 2017-06-16 12:01, Boris Brezillon wrote: > > Hi Peter, > > > > On Fri, 16 Jun 2017 11:12:25 +0200 > > Peter Rosin wrote: > > > >> All layers of chips support this, the only variable is the base address > >> of the lookup t

Re: [PATCH RFC 2/3] samples/bpf: Add define __EMITTING_BPF__ when building BPF

2017-06-16 Thread David Miller
From: Daniel Borkmann Date: Fri, 16 Jun 2017 12:24:06 +0200 > On 06/16/2017 12:35 AM, David Daney wrote: >> ... this allows gating of inline assembly code that causes llvm to >> fail when emitting BPF. >> >> Signed-off-by: David Daney > > I don't have a better idea at the moment, perhaps there

Re: [PATCH 2/2] perf coresight: Remove superfluous check before use

2017-06-16 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 16, 2017 at 08:31:25AM -0600, Mathieu Poirier escreveu: > On Thu, Jun 15, 2017 at 12:55:21PM -0500, Kim Phillips wrote: > > cs_etm_evsel is guaranteed to be set at this point in the function. > > > > Acked-by: Mathieu Poirier Thanks, applied. - Arnaldo

Re: [PATCH 2/2] perf report: report module before querying isactivation in dwfl unwind

2017-06-16 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 02, 2017 at 12:25:08PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, Jun 02, 2017 at 04:37:53PM +0200, Milian Wolff escreveu: > > The PC returned by dwfl_frame_pc may map into a not-yet-reported > > module. We have to report it before we continue unwinding. But when > > we query f

Re: [PATCH 0/5] perf: add support for capturing skid IP

2017-06-16 Thread Andi Kleen
On Thu, Jun 15, 2017 at 11:52:07PM -0700, Stephane Eranian wrote: > Andi, > > On Thu, Jun 15, 2017 at 4:18 PM, Andi Kleen wrote: > >> Looking at this approach, the user interface is straightforward, > >> implementation in the x86 code is a bit more hairy because of the way > >> the branch_stack i

Re: [PATCH v3 6/7] asm-generic: add KASAN instrumentation to atomic operations

2017-06-16 Thread Andrey Ryabinin
On 06/06/2017 01:11 PM, Dmitry Vyukov wrote: > KASAN uses compiler instrumentation to intercept all memory accesses. > But it does not see memory accesses done in assembly code. > One notable user of assembly code is atomic operations. Frequently, > for example, an atomic reference decrement is t

[PATCH 0/8] Add STM32 LPTimer: PWM, trigger and counter

2017-06-16 Thread Fabrice Gasnier
This series adds support for Low Power Timer that can be found on some STM32 devices. STM32 LPTimer (LPTIM) is a 16-bit timer that provides several functionalities. This series adds support for following features: - PWM output (with programmable prescaler, configurable polarity) - Trigger source f

Re: xgetbv nondeterminism

2017-06-16 Thread Andy Lutomirski
On Thu, Jun 15, 2017 at 9:34 PM, H.J. Lu wrote: > On Thu, Jun 15, 2017 at 8:05 PM, Andy Lutomirski wrote: >> On Thu, Jun 15, 2017 at 7:17 PM, H.J. Lu wrote: >>> On Thu, Jun 15, 2017 at 4:28 PM, Andy Lutomirski wrote: On Thu, Jun 15, 2017 at 4:11 PM, H.J. Lu wrote: > It is used for laz

[PATCH 3/8] dt-bindings: pwm: Add STM32 LPTimer PWM binding

2017-06-16 Thread Fabrice Gasnier
Add documentation for STMicroelectronics STM32 Low Power Timer PWM binding. Signed-off-by: Fabrice Gasnier --- .../devicetree/bindings/pwm/pwm-stm32-lp.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-stm32-lp.t

Re: [PATCH v4 1/2] ip_tunnel: fix potential issue in ip_tunnel_rcv

2017-06-16 Thread David Miller
From: Haishuang Yan Date: Thu, 15 Jun 2017 10:29:29 +0800 > When ip_tunnel_rcv fails, the tun_dst won't be freed, so call > dst_release to free it in error code path. > > Fixes: 2e15ea390e6f ("ip_gre: Add support to collect tunnel metadata.") > Acked-by: Eric Dumazet > Acked-by: Pravin B Shelar

Re: [PATCH v4 2/2] ip6_tunnel: fix potential issue in __ip6_tnl_rcv

2017-06-16 Thread David Miller
From: Haishuang Yan Date: Thu, 15 Jun 2017 10:29:30 +0800 > When __ip6_tnl_rcv fails, the tun_dst won't be freed, so call > dst_release to free it in error code path. > > Fixes: 8d79266bc48c ("ip6_tunnel: add collect_md mode to IPv6 tunnels") > CC: Alexei Starovoitov > Tested-by: Zhang Shengju

[PATCH 7/8] dt-bindings: iio: Add STM32 LPTimer quadrature encoder and counter

2017-06-16 Thread Fabrice Gasnier
Add documentation for STMicroelectronics STM32 Low Power Timer quadrature encoder and counter binding. Signed-off-by: Fabrice Gasnier --- .../bindings/iio/counter/stm32-lptimer-cnt.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree

Re: [PATCH] selftests: lib: Skip tests on missing test modules

2017-06-16 Thread Shuah Khan
On 06/16/2017 09:10 AM, Shuah Khan wrote: > Hi Sumit, > > On 06/15/2017 11:29 PM, Sumit Semwal wrote: >> With older kernels, printf.sh and bitmap.sh fail because they can't find >> the respective test modules they are looking for. >> >> Add the skip portion on missing the respective test_XXX modul

[PATCH 5/8] dt-bindings: iio: Add STM32 LPTimer trigger binding

2017-06-16 Thread Fabrice Gasnier
Add documentation for STMicroelectronics STM32 Low Power Timer trigger binding. Signed-off-by: Fabrice Gasnier --- .../bindings/iio/timer/stm32-lptimer-trigger.txt| 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/timer/stm

[PATCH 4/8] pwm: Add STM32 LPTimer PWM driver

2017-06-16 Thread Fabrice Gasnier
Add support for single PWM channel on Low Power Timer, that can be found on some STM32 platforms. Signed-off-by: Fabrice Gasnier --- drivers/pwm/Kconfig| 10 +++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-stm32-lp.c | 216 + 3 files c

[PATCH 6/8] iio: trigger: Add STM32 LPTimer trigger driver

2017-06-16 Thread Fabrice Gasnier
Add support for LPTIMx_OUT triggers that can be found on some STM32 devices. These triggers can be used then by ADC or DAC. Typical usage is to configure LPTimer as PWM output (via pwm-stm32-lp) and have synchronised analog conversions with these triggers. Signed-off-by: Fabrice Gasnier --- driv

[PATCH 8/8] iio: counter: Add support for STM32 LPTimer

2017-06-16 Thread Fabrice Gasnier
Add support for STM32 Low Power Timer, that can be used as counter or quadrature encoder. Signed-off-by: Fabrice Gasnier --- .../ABI/testing/sysfs-bus-iio-lptimer-stm32| 57 +++ drivers/iio/counter/Kconfig| 9 + drivers/iio/counter/Makefile

[PATCH 2/8] mfd: Add STM32 LPTimer driver

2017-06-16 Thread Fabrice Gasnier
STM32 Low Power Timer hardware block can be used for: - PWM generation - IIO trigger (in sync with PWM) - IIO quadrature encoder counter PWM and IIO timer configuration are mixed in the same registers so we need a multi fonction driver to be able to share those registers. Signed-off-by: Fabrice Ga

[PATCH 1/8] dt-bindings: mfd: Add STM32 LPTimer binding

2017-06-16 Thread Fabrice Gasnier
Add documentation for STMicroelectronics STM32 Low Power Timer binding. Signed-off-by: Fabrice Gasnier --- .../devicetree/bindings/mfd/stm32-lptimer.txt | 51 ++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/stm32-lptimer.txt

Re: [PATCH v2 2/4] [media] platform: Add Synopsys Designware HDMI RX Controller Driver

2017-06-16 Thread Hans Verkuil
On 06/16/2017 05:52 PM, Jose Abreu wrote: Hi Hans, On 16-06-2017 14:44, Hans Verkuil wrote: + /* CEC */ + dw_dev->cec_adap = cec_allocate_adapter(&dw_hdmi_cec_adap_ops, + dw_dev, dev_name(dev), CEC_CAP_TRANSMIT | + CEC_CAP_PHYS_ADDR

Re: [PATCH v2 03/11] tty: kbd: reduce stack size with KASAN

2017-06-16 Thread Samuel Thibault
Arnd Bergmann, on ven. 16 juin 2017 17:41:47 +0200, wrote: > The problem are the 'ch' and 'flag' variables that are passed into > tty_insert_flip_char by value, and from there into > tty_insert_flip_string_flags by reference. In this case, kasan tries > to detect whether tty_insert_flip_string_fla

Re: [PATCHv2 3/3] mm: Use updated pmdp_invalidate() inteface to track dirty/accessed bits

2017-06-16 Thread Aneesh Kumar K.V
On Friday 16 June 2017 06:51 PM, Kirill A. Shutemov wrote: On Fri, Jun 16, 2017 at 05:01:30PM +0530, Aneesh Kumar K.V wrote: "Kirill A. Shutemov" writes: This patch uses modifed pmdp_invalidate(), that return previous value of pmd, to transfer dirty and accessed bits. Signed-off-by: Kirill

Re: [PATCH 07/27] VFS: Differentiate mount flags (MS_*) from internal superblock flags [ver #5]

2017-06-16 Thread David Howells
Christoph Hellwig wrote: > (1) Add a new SB field that is like s_flags but for the new flags, Do we really need to do that? The SB_* flags are conumeric with the MS_* flags they replace. David

Re: [RFC PATCH 1/3] atmel-hlcdc: add support for 8-bit color lookup table mode

2017-06-16 Thread Peter Rosin
On 2017-06-16 12:01, Boris Brezillon wrote: > Hi Peter, > > On Fri, 16 Jun 2017 11:12:25 +0200 > Peter Rosin wrote: > >> All layers of chips support this, the only variable is the base address >> of the lookup table in the register map. >> >> Signed-off-by: Peter Rosin >> --- >> drivers/gpu/dr

Re: [PATCH v3 5/7] kasan: allow kasan_check_read/write() to accept pointers to volatiles

2017-06-16 Thread Andrey Ryabinin
On 06/06/2017 01:11 PM, Dmitry Vyukov wrote: > Currently kasan_check_read/write() accept 'const void*', make them > accept 'const volatile void*'. This is required for instrumentation > of atomic operations and there is just no reason to not allow that. > > Signed-off-by: Dmitry Vyukov > Cc: Ma

Re: [PATCH v2 2/4] [media] platform: Add Synopsys Designware HDMI RX Controller Driver

2017-06-16 Thread Jose Abreu
Hi Hans, On 16-06-2017 14:44, Hans Verkuil wrote: > >>> >>> + /* CEC */ + dw_dev->cec_adap = cec_allocate_adapter(&dw_hdmi_cec_adap_ops, + dw_dev, dev_name(dev), CEC_CAP_TRANSMIT | + CEC_CAP_PHYS_ADDR | CEC_CAP_LOG_ADDRS, >>> Add CEC_CAP_RC

<    1   2   3   4   5   6   7   8   >