RE: [PATCH v2] Add driver to force WMI Thunderbolt controller power status

2017-09-08 Thread Mario.Limonciello
> -Original Message- > From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > Sent: Friday, September 8, 2017 3:07 AM > To: Limonciello, Mario > Cc: dvh...@infradead.org; LKML ; > platform-driver- > x...@vger.kernel.org; Richard Hughes ; Yehezkel Bernat > > Subject: Re: [PATCH

[PATCH v3] tpm-dev-common: Reject too short writes

2017-09-08 Thread Alexander Steffen
tpm_transmit() does not offer an explicit interface to indicate the number of valid bytes in the communication buffer. Instead, it relies on the commandSize field in the TPM header that is encoded within the buffer. Therefore, ensure that a) enough data has been written to the buffer, so that the c

[PATCH v3] Add driver to force WMI Thunderbolt controller power status

2017-09-08 Thread Mario Limonciello
Current implementations of Intel Thunderbolt controllers will go into a low power mode when not in use. Many machines containing these controllers also have a GPIO wired up that can force the controller awake. This is offered via a ACPI-WMI interface intended to be manipulated by a userspace util

[PATCH] rsi: fix a dereference on adapter before it has been null checked

2017-09-08 Thread Colin King
From: Colin Ian King The assignment of dev is dereferencing adapter before adapter has been null checked, potentially leading to a null pointer dereference. Fix this by simply moving the assignment of dev to a later point after the sanity null check of adapter. Detected by CoverityScan CID#13983

Re: [PATCH 1/2] xfs: always use DAX if mount option is used

2017-09-08 Thread Ross Zwisler
On Fri, Sep 08, 2017 at 12:20:28AM -0700, Christoph Hellwig wrote: > On Thu, Sep 07, 2017 at 03:08:31PM -0600, Ross Zwisler wrote: > > Before support for the per-inode DAX flag was disabled the XFS the code had > > an issue where the user couldn't reliably tell whether or not DAX was being > > used

Re: [PATCH net-next v2 02/10] net: dsa: debugfs: add tree

2017-09-08 Thread Greg Kroah-Hartman
On Fri, Sep 08, 2017 at 10:57:29AM -0400, Vivien Didelot wrote: > Hi Greg, > > You wrote: > > > > Can I ask for a quick review of this patch as well? It's the one adding > > > the boilerplate for a single debugfs file, and I'm pretty sure it can be > > > reduced somehow. > > > > I don't see a pa

Re: [Outreachy kernel] [PATCH] Staging: media: imx: Prefer using BIT macro

2017-09-08 Thread Sean Paul
On Fri, Sep 8, 2017 at 11:11 AM, Srishti Sharma wrote: > Use BIT(x) instead of (1< > Signed-off-by: Srishti Sharma > --- > drivers/staging/media/imx/imx-media.h | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/staging/media/imx/imx-media.h > b/dr

[PATCH] MAINTAINERS: Add dri-devel as a mailing list for anything fbdev

2017-09-08 Thread Daniel Vetter
fbdev is in maintenance only, except that it's still used by drm through the drm fbdev emulation, to be able to use fbcon. And people might want to sometimes extend fbcon to enable new features for drm drivers, e.g. Hans' panel orientation work. The problem is that when those patches only touch fb

[PATCH v1 00/10] Various patches for SAMA5D2 backup mode

2017-09-08 Thread Romain Izard
While the core of the backup mode for SAMA5D2 has been integrated in v4.13, it is far from complete. Individual controllers in the chip have drivers that do not support the reset of the registers during suspend, and they need to be adapted to handle it. The first patch uses the clock wakeup code f

[PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode

2017-09-08 Thread Romain Izard
Support the backup mode for platform suspend, by restoring the hardware registers on resume. Signed-off-by: Romain Izard --- drivers/iio/adc/at91-sama5d2_adc.c | 71 -- 1 file changed, 61 insertions(+), 10 deletions(-) diff --git a/drivers/iio/adc/at91-sama5d

[PATCH v1 09/10] atmel_flexcom: Support backup mode

2017-09-08 Thread Romain Izard
The controller used by a flexcom module is configured at boot, and left alone after this. As the configuration will be lost after backup mode, restore the state of the flexcom driver on resume. Signed-off-by: Romain Izard --- drivers/mfd/atmel-flexcom.c | 65 ++---

[PATCH v1 04/10] mtd: nand: atmel: Avoid ECC errors when leaving backup mode

2017-09-08 Thread Romain Izard
During backup mode, the contents of all registers will be cleared as the SoC will be completely powered down. For a product that boots on NAND Flash memory, the bootloader will obviously use the related controller to read the Flash and correct any detected error in the memory, before handling back

[PATCH v1 08/10] pwm: atmel-tcb: Support backup mode

2017-09-08 Thread Romain Izard
Save and restore registers for the PWM on suspend and resume, which makes hibernation and backup modes possible. Signed-off-by: Romain Izard --- drivers/pwm/pwm-atmel-tcb.c | 63 +++-- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/drivers/

[PATCH v1 10/10] tty/serial: atmel: Prevent a warning on suspend

2017-09-08 Thread Romain Izard
The atmel serial port driver reported the following warning on suspend: atmel_usart f802.serial: ttyS1: Unable to drain transmitter As the ATMEL_US_TXEMPTY status bit in ATMEL_US_CSR is always cleared when the transmitter is disabled, we need to know the transmitter's state to return the real

Re: [PATCH v2 28/40] tracing: Add support for 'field variables'

2017-09-08 Thread Tom Zanussi
On Thu, 2017-09-07 at 19:43 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:40 -0500 > Tom Zanussi wrote: > > > Users should be able to directly specify event fields in hist trigger > > 'actions' rather than being forced to explicitly create a variable for > > that purpose. > > > > Add

[PATCH v1 06/10] ehci-atmel: Power down during suspend is normal

2017-09-08 Thread Romain Izard
When an Atmel SoC is suspended with the backup mode, the USB bus will be powered down. As this is expected, do not return an error to the driver core when ehci_resume detects it. Signed-off-by: Romain Izard --- drivers/usb/host/ehci-atmel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[PATCH v1 05/10] mtd: nand: atmel: Report PMECC failures as errors

2017-09-08 Thread Romain Izard
It is not normal for the PMECC to fail when trying to fix ECC errors. Report these cases as errors. Signed-off-by: Romain Izard --- drivers/mtd/nand/atmel/pmecc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel/pmecc.c b/drivers/mtd/nand/atmel/pmecc.

[PATCH v1 01/10] clk: at91: pmc: Wait for clocks when resuming

2017-09-08 Thread Romain Izard
Wait for the syncronization of all clocks when resuming, not only the UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() when interrupts are masked, which is the case in here. Signed-off-by: Romain Izard --- drivers/clk/at91/pmc.c | 24 1 file changed

[PATCH v1 03/10] clk: at91: pmc: Support backup for programmable clocks

2017-09-08 Thread Romain Izard
From: Romain Izard Save and restore the System Clock and Programmable Clock register for the backup use case. Signed-off-by: Romain Izard --- drivers/clk/at91/pmc.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index 07dc2861ad3f..5421

[PATCH v1 02/10] clk: at91: pmc: Save SCSR during suspend

2017-09-08 Thread Romain Izard
The contents of the System Clock Status Register (SCSR) needs to be restored into the System Clock Enable Register (SCER). As the bootloader will restore some clocks by itself, the issue can be missed as only the USB controller, the LCD controller, the Image Sensor controller and the programmable

Re: [PATCH 0/9] add ext4 per-inode DAX flag

2017-09-08 Thread Theodore Ts'o
On Fri, Sep 08, 2017 at 09:25:43AM +1000, Dave Chinner wrote: > > Okay, so other ideas (which you have also probably already though of) > > include: > > > > 1) Just return -EBUSY if anyone tries to change the DAX flag of an inode > > with > > open mappings or any open file handles. > > You have

Re: [PATCH] MAINTAINERS: Add dri-devel as a mailing list for anything fbdev

2017-09-08 Thread Sean Paul
On Fri, Sep 8, 2017 at 11:35 AM, Daniel Vetter wrote: > fbdev is in maintenance only, except that it's still used by drm > through the drm fbdev emulation, to be able to use fbcon. And people > might want to sometimes extend fbcon to enable new features for drm > drivers, e.g. Hans' panel orientat

Re: [PATCH v6 10/11] mm: add a user_virt_to_phys symbol

2017-09-08 Thread Kees Cook
On Fri, Sep 8, 2017 at 12:55 AM, Christoph Hellwig wrote: > On Thu, Sep 07, 2017 at 11:36:08AM -0600, Tycho Andersen wrote: >> We need someting like this for testing XPFO. Since it's architecture >> specific, putting it in the test code is slightly awkward, so let's make it >> an arch-specific sym

Re: [PATCH v2 05/11] mux: Add Intel Cherrytrail USB mux driver

2017-09-08 Thread Peter Rosin
On 2017-09-05 18:42, Hans de Goede wrote: > Intel Cherrytrail SoCs have an internal USB mux for muxing the otg-port > USB data lines between the xHCI host controller and the dwc3 gadget > controller. On some Cherrytrail systems this mux is controlled through > AML code reacting on a GPIO IRQ connec

[PATCH 1/2] mux: add mux_control_get_optional() API

2017-09-08 Thread Peter Rosin
From: Stephen Boyd Sometimes drivers only use muxes under certain scenarios. For example, the chipidea usb controller may be connected to a usb switch on some platforms, and connected directly to a usb port on others. The driver won't know one way or the other though, so add a mux_control_get_opt

[PATCH 2/2] mux: add explicit hook to leave the mux as-is on init/registration

2017-09-08 Thread Peter Rosin
A board may need a mux controller to stay as-is for a while longer, e.g. if setting the normally preferred idle state destroys booting. The mechanism provided here is not perfect in two ways. 1. As soon as the mux controller is registered, some mux consumer can access it and set a state that de

Re: [PATCH v2 04/11] usb: xhci: Add Intel cherrytrail extended cap / otg phy mux handling

2017-09-08 Thread Peter Rosin
On 2017-09-05 18:42, Hans de Goede wrote: > The Intel cherrytrail xhci controller has an extended cap mmio-range > which contains registers to control the muxing to the xhci (host mode) > or the dwc3 (device mode) and vbus-detection for the otg usb-phy. > > Having a mux driver included in the xhci

Re: [PATCH v2 03/11] mux: core: Add usb.h header with MUX_USB_* and and MUX_TYPEC_* state constants

2017-09-08 Thread Peter Rosin
On 2017-09-05 18:42, Hans de Goede wrote: > Add MUX_USB_* and MUX_TYPEC_* state constant defines, which can be used by > USB device/host, resp. Type-C polarity/role/altmode mux drivers and > consumers to ensure that they agree on the meaning of the > mux_control_select() state argument. > > Signed

[PATCH] v4l-ioctl: Fix typo on v4l_print_frmsizeenum

2017-09-08 Thread Ricardo Ribalda Delgado
max_width and max_height are swap with step_width and step_height. Signed-off-by: Ricardo Ribalda Delgado --- Since that this bug has been here for ever. I do not know if we should notify stable or not I have also cut the lines to respect the 80 char limit drivers/media/v4l2-core/v4l2-ioctl.c

pull-request: wireless-drivers 2017-09-08

2017-09-08 Thread Kalle Valo
Hi Dave, few fixes to net tree for 4.14. Note that this pull request contains the iwlwifi fix Linus hopes to have by end of the merge window. Please let me know if there are any problems. Kalle The following changes since commit 8e0deed92406d93ae0365cb8a6134db5721e7aca: tipc: remove unnecessa

Re: [PATCH 3/3] KVM: SVM: Add irqchip_split() checks before enabling AVIC

2017-09-08 Thread Radim Krčmář
2017-09-05 22:39-0500, Suravee Suthikulpanit: > SVM AVIC hardware accelerates guest write to APIC_EOI register > (for edge-trigger interrupt), which means it does not trap to KVM. > > So, only enable SVM AVIC only in split irqchip mode. > (e.g. launching qemu w/ option '-machine kernel_irqchip=spl

Re: [PATCH 1/2] mux: add mux_control_get_optional() API

2017-09-08 Thread Peter Rosin
On 2017-09-08 17:45, Peter Rosin wrote: > From: Stephen Boyd > > Sometimes drivers only use muxes under certain scenarios. For > example, the chipidea usb controller may be connected to a usb > switch on some platforms, and connected directly to a usb port on > others. The driver won't know one w

[PATCH] signal: remove unused variable mask

2017-09-08 Thread Colin King
From: Colin Ian King The variable mask was introduced by an earlier commit and does not seem to be used, so remove it. Fixes gcc warning: kernel/signal.c:3443:19: warning: unused variable ‘mask’ [-Wunused-variable] Fixes: fc271087ebcb ("signal: replace sigset_to_compat() with put_compat_sigset

Re: [PATCH v8] vfio: platform: reset: Add Broadcom FlexRM reset module

2017-09-08 Thread Auger Eric
Hi Anup, On 06/09/2017 13:18, Anup Patel wrote: > This patch adds Broadcom FlexRM low-level reset for > VFIO platform. > > It will do the following: > 1. Disable/Deactivate each FlexRM ring > 2. Flush each FlexRM ring > > The cleanup sequence for FlexRM rings is adapted from > Broadcom FlexRM ma

Re: [PATCH 09/14] arm64: kexec_file: add sha256 digest check in purgatory

2017-09-08 Thread Thiago Jung Bauermann
AKASHI Takahiro writes: > On Fri, Aug 25, 2017 at 11:41:33AM +0100, Mark Rutland wrote: >> On Fri, Aug 25, 2017 at 10:21:06AM +0900, AKASHI Takahiro wrote: >> > On Thu, Aug 24, 2017 at 06:04:40PM +0100, Mark Rutland wrote: >> > > On Thu, Aug 24, 2017 at 05:18:06PM +0900, AKASHI Takahiro wrote: >>

Re: [PATCH 3/3] net: skb_queue_purge(): lock/unlock the list only once

2017-09-08 Thread Eric Dumazet
On Fri, 2017-09-08 at 05:06 +, Michael Witten wrote: > Date: Thu, 7 Sep 2017 20:07:40 + > With this commit, the list's lock is locked/unlocked only once > for the duration of `skb_queue_purge()'. > > Hitherto, the list's lock has been locked/unlocked every time > an item is dequeued; this

Re: [Outreachy kernel] [PATCH] Staging: media: imx: Prefer using BIT macro

2017-09-08 Thread Srishti Sharma
On Fri, Sep 8, 2017 at 8:59 PM, Sean Paul wrote: > On Fri, Sep 8, 2017 at 11:11 AM, Srishti Sharma wrote: >> Use BIT(x) instead of (1<> >> Signed-off-by: Srishti Sharma >> --- >> drivers/staging/media/imx/imx-media.h | 16 >> 1 file changed, 8 insertions(+), 8 deletions(-) >> >

Re: [PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode

2017-09-08 Thread Nicolas Ferre
On 08/09/2017 at 17:36, Romain Izard wrote: > Support the backup mode for platform suspend, by restoring the hardware > registers on resume. > > Signed-off-by: Romain Izard Romain, Thanks for your series: definitively some of your patches need to be integrated (I've merged some of them in our c

[PATCH 4/4] xen: select grant interface version

2017-09-08 Thread Juergen Gross
Based on the maximum page number of the host select either grant v1 or grant v2. For testing purposes add a way to specify the grant interface version via a boot parameter. Signed-off-by: Juergen Gross --- drivers/xen/grant-table.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletio

[PATCH 1/4] xen: re-introduce support for grant v2 interface

2017-09-08 Thread Juergen Gross
The grant v2 support was removed from the kernel with commit 438b33c7145ca8a5131a30c36d8f59bce119a19a ("xen/grant-table: remove support for V2 tables") as the higher memory footprint of v2 grants resulted in less grants being possible for a kernel compared to the v1 grant interface. As machines wi

[PATCH 0/4] xen: grant table interface v2 support

2017-09-08 Thread Juergen Gross
In order to support Linux to run as a pv guest on machines with huge memory (>16TB) the kernel has to support grant table interface v2, as v1 is limited to 32 bit frame numbers. This series re-adds that support (it has been removed in 2015) and restricts usage of v2 to the features of v1 in order

[PATCH 2/4] xen: limit grant v2 interface to the v1 functionality

2017-09-08 Thread Juergen Gross
As there is currently no user for sub-page grants or transient grants remove that functionality. This at once makes it possible to switch from grant v2 to grant v1 without restrictions, as there is no loss of functionality other than the limited frame number width related to the switch. Signed-off

[PATCH 3/4] xen: add grant interface version dependent constants to gnttab_ops

2017-09-08 Thread Juergen Gross
Instead of having multiple variables with constants like grant_table_version or grefs_per_grant_frame add those to struct gnttab_ops and access them just via the gnttab_interface pointer. Signed-off-by: Juergen Gross --- drivers/xen/grant-table.c | 73

Re: [RFC Part2 PATCH v3 02/26] crypto: ccp: Add Platform Security Processor (PSP) device support

2017-09-08 Thread Brijesh Singh
On 09/08/2017 03:40 AM, Borislav Petkov wrote: On Thu, Sep 07, 2017 at 05:19:32PM -0500, Brijesh Singh wrote: At high level, AMD-SP (AMD Secure Processor) (i.e CCP driver) will provide the support for CCP, SEV and TEE FW commands. +--- CCP | AMD-SP --| |

Re: [PATCH 0/2] Two cleanups for Sphinx conf.py

2017-09-08 Thread Jonathan Corbet
On Sun, 3 Sep 2017 16:12:44 -0300 Mauro Carvalho Chehab wrote: > Those patches are just cleanups for Documentation/conf.py. > > The first one removes a package usage directive for a LateX package > that it is not used. > > The second one moves some LaTeX preamble code that it is used only >

Re: [PATCH 1/2] kokr/doc: Update memory-barriers.txt for read-to-write dependencies

2017-09-08 Thread Jonathan Corbet
On Wed, 6 Sep 2017 17:25:30 +0900 SeongJae Park wrote: > This commit applies upstream change, commit 66ce3a4dcb9f ("doc: Update > memory-barriers.txt for read-to-write dependencies") to Korean > translation. I've applied these two. Thanks, jon

Re: mutex_lock issues during poweroff

2017-09-08 Thread Peter Zijlstra
On Fri, Sep 08, 2017 at 04:43:07PM +0200, Maxime Ripard wrote: > What commit happened to be the rewrite? 9d659ae14b54 ("locking/mutex: > Add lock handoff to avoid starvation") ? We backported this one and > 3ca0ff571b09 ("locking/mutex: Rework mutex::owner"), and still can > reproduce the issue. I

RE: [PATCH] x86/idt: Unbreak MS HyperV hypercall vector install

2017-09-08 Thread Haiyang Zhang
> -Original Message- > From: Thomas Gleixner [mailto:t...@linutronix.de] > Sent: Friday, September 8, 2017 4:20 AM > To: LKML > Cc: Stephen Hemminger ; Simon Xiao > ; KY Srinivasan ; Haiyang Zhang > ; Steven Rostedt ; Peter > Zijlstra ; Linus Torvalds foundation.org>; Josh Poimboeuf ; H

Re: Current mainline git (24e700e291d52bd2) hangs when building e.g. perf

2017-09-08 Thread Andy Lutomirski
On Fri, Sep 8, 2017 at 4:30 AM, Markus Trippelsdorf wrote: > On 2017.09.08 at 12:39 +0200, Markus Trippelsdorf wrote: >> On 2017.09.08 at 12:35 +0200, Ingo Molnar wrote: >> > >> > * Markus Trippelsdorf wrote: >> > >> > > On 2017.09.08 at 11:16 +0200, Borislav Petkov wrote: >> > > > On Fri, Sep 08

[patch v8 0/4] JTAG driver introduction

2017-09-08 Thread Oleksandr Shamray
When a need raise up to use JTAG interface for system's devices programming or CPU debugging, usually the user layer application implements jtag protocol by bit-bang or using a proprietary connection to vendor hardware. This method can be slow and not generic. We propose to implement general JTA

Re: [PATCH v8 11/28] x86/insn-eval: Add utility function to identify string instructions

2017-09-08 Thread Borislav Petkov
On Fri, Aug 18, 2017 at 05:27:52PM -0700, Ricardo Neri wrote: > String instructions are special because, in protected mode, the linear > address is always obtained via the ES segment register in operands that > use the (E)DI register; the DS segment register in operands that use > the (E)SI registe

[patch v8 4/4] Documentation: jtag: Add ABI documentation

2017-09-08 Thread Oleksandr Shamray
Added document that describe the ABI for JTAG class drivrer Signed-off-by: Oleksandr Shamray Acked-by: Arnd Bergmann --- v7->v8 v6->v7 Comments pointed by Pavel Machek - Added jtag-cdev documentation to Documentation/ABI/testing folder --- Documentation/ABI/testing/jatg-cdev | 27 +++

[patch v8 3/4] Documentation: jtag: Add bindings for Aspeed SoC 24xx and 25xx families JTAG master driver

2017-09-08 Thread Oleksandr Shamray
It has been tested on Mellanox system with BMC equipped with Aspeed 2520 SoC for programming CPLD devices. Signed-off-by: Oleksandr Shamray Signed-off-by: Jiri Pirko Acked-by: Rob Herring Acked-by: Arnd Bergmann --- v7->v8 Comments pointed by Arnd Bergmann - Change compatible string to ast240

[patch v8 2/4] drivers: jtag: Add Aspeed SoC 24xx and 25xx families JTAG master driver

2017-09-08 Thread Oleksandr Shamray
Driver adds support of Aspeed 2500/2400 series SOC JTAG master controller. Driver implements the following jtag ops: - freq_get; - freq_set; - status_get; - idle; - xfer; It has been tested on Mellanox system with BMC equipped with Aspeed 2520 SoC for programming CPLD devices. Signed-off-by: Ole

[patch v8 1/4] drivers: jtag: Add JTAG core driver

2017-09-08 Thread Oleksandr Shamray
Initial patch for JTAG driver JTAG class driver provide infrastructure to support hardware/software JTAG platform drivers. It provide user layer API interface for flashing and debugging external devices which equipped with JTAG interface using standard transactions. Driver exposes set of IOCTL to

[PATCH] ALSA: msnd: Optimize / harden DSP and MIDI loops

2017-09-08 Thread grygorii tertychnyi
Hi Greg, Could you please apply it for 4.4-stable. This fixes https://nvd.nist.gov/vuln/detail/CVE-2017-9985 Takashi Iwai (1): ALSA: msnd: Optimize / harden DSP and MIDI loops sound/isa/msnd/msnd_midi.c | 30 +++--- sound/isa/msnd/msnd_pinnacle.c | 23 -

[PATCH] ALSA: msnd: Optimize / harden DSP and MIDI loops

2017-09-08 Thread grygorii tertychnyi
From: Takashi Iwai commit 20e2b791796bd68816fa115f12be5320de2b8021 upstream. The ISA msnd drivers have loops fetching the ring-buffer head, tail and size values inside the loops. Such codes are inefficient and fragile. This patch optimizes it, and also adds the sanity check to avoid the endles

Re: [PATCH v11 5/6] target-arm: kvm64: handle SIGBUS signal for synchronous External Abort

2017-09-08 Thread gengdongjiu
Hi peter, Sorry for the late response. > > On 18 August 2017 at 15:23, Dongjiu Geng wrote: > > Add SIGBUS signal handler. In this handler, it checks the exception > > type, translates the host VA which is delivered by host or KVM to > > guest PA, then fills this PA to CPER, finally injects a E

Re: [PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode

2017-09-08 Thread Romain Izard
2017-09-08 18:03 GMT+02:00 Nicolas Ferre : > On 08/09/2017 at 17:36, Romain Izard wrote: >> Support the backup mode for platform suspend, by restoring the hardware >> registers on resume. >> >> Signed-off-by: Romain Izard > > Romain, > > Thanks for your series: definitively some of your patches ne

Re: [PATCH v11 5/6] target-arm: kvm64: handle SIGBUS signal for synchronous External Abort

2017-09-08 Thread Peter Maydell
On 8 September 2017 at 17:17, gengdongjiu wrote: >> >> This code has all just been copied-and-pasted from target/i386/kvm.c. >> Please instead abstract it out properly into a cpu-independent source file. > > > Yes, it copied from x86. > Do you mean abstracting this code to a common folder so that

Re: [PATCH] ALSA: msnd: Optimize / harden DSP and MIDI loops

2017-09-08 Thread Greg KH
On Fri, Sep 08, 2017 at 09:06:25AM -0700, grygorii tertychnyi wrote: > Hi Greg, > > Could you please apply it for 4.4-stable. > This fixes https://nvd.nist.gov/vuln/detail/CVE-2017-9985 Why just 4.4? What about 4.12, 4.9, and any others? thanks, greg k-h

[GIT PULL] Kselftest update for 4.14-rc1

2017-09-08 Thread Shuah Khan
Hi Linus, Please pull the following Kselftest update for 4.14-rc1. This update consists of: -- TAP13 framework API and converting tests to TAP13 continues. A few more tests are converted and kselftest common RUN_TESTS in lib.mk is enhanced to print TAP13 to cover test shell scripts that wo

[GIT PULL] PCI changes for v4.14

2017-09-08 Thread Bjorn Helgaas
PCI changes: - add enhanced Downstream Port Containment support, which prints more details about Root Port Programmed I/O errors (Dongdong Liu) - add Layerscape ls1088a and ls2088a support (Hou Zhiqiang) - add MediaTek MT2712 and MT7622 support (Ryder Lee) - add MediaTek MT2712 and

[PATCH -next] nvdimm: btt.c: fix format string warnings

2017-09-08 Thread Randy Dunlap
Dunlap Cc: Vishal Verma Cc: linux-nvd...@lists.01.org --- drivers/nvdimm/btt.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- linux-next-20170908.orig/drivers/nvdimm/btt.c +++ linux-next-20170908/drivers/nvdimm/btt.c @@ -428,7 +428,7 @@ static int btt_map_init(struct are

Re: [PATCH v2] ARM: dts: exynos: fix incomplete Odroid-XU3/4 thermal-zones definition

2017-09-08 Thread Krzysztof Kozlowski
On Thu, Sep 07, 2017 at 06:10:00PM +0200, Bartlomiej Zolnierkiewicz wrote: > From: Willy Wolff > > Odroid XU3/4 boards have thermal sensors per 4 pairs of A7+A15 > cores but currently there is only one thermal-zone (including > cooling maps) defined (for the first pair of cores - the first > core

[PATCH] media: default for RC_CORE should be n

2017-09-08 Thread Stephen Hemminger
The Linus policy on Kconfig is that the default should be no for all new devices. I.e the user rebuild a new kernel from an old config should not by default get a larger kernel. Fixes: b4c184e506a4 ("[media] media: reorganize the main Kconfig items") Signed-off-by: Stephen Hemminger --- drivers/

答复: [PATCH v11 5/6] target-arm: kvm64: handle SIGBUS signal for synchronous External Abort

2017-09-08 Thread gengdongjiu
[...] > > > > /* > > * xx > > */ > > void kvm_hwpoison_page_add(ram_addr_t ram_addr); > > It should be in the doc-comment format, which begins "/**" and has some > stylization of how you list parameters and so on. Lots of > examples in the existing headers. unde

Re: [PATCH v2 1/3] ASoC: samsung: i2s: Use specific name for i2s dais

2017-09-08 Thread Krzysztof Kozlowski
On Wed, Sep 06, 2017 at 10:04:13AM +0900, Jaechul Lee wrote: > Add specific dais name when components are registered. Component and dai > name will follow their parent dev name, if the name isn't described. In > case of this driver, each dais will have same name like '1144.i2s0' by > fmt_singl

Re: [PATCH v2 2/3] ASoC: samsung: Use 'samsung-i2s' cpu_dai for dai_links

2017-09-08 Thread Krzysztof Kozlowski
On Wed, Sep 06, 2017 at 10:04:14AM +0900, Jaechul Lee wrote: > Add specific cpu_dai_name to dai_link because samsung i2s driver registers > two dais and components. Selecting one of them clearly is needed more > information like cpu_dai_name, of_node. The reason why the dai_links have > to use 'sam

Re: [PATCH v2 3/3] ASoC: samsung: Fix invalid argument when devm_gpiod_get is called

2017-09-08 Thread Krzysztof Kozlowski
On Wed, Sep 06, 2017 at 10:04:15AM +0900, Jaechul Lee wrote: > devm_gpiod_get is called with GPIOF_OUT_INIT_LOW but the function doesn't > allow the parameters. Unluckily, GPIOF_OUT_INIT_LOW is same value as > GPIOD_ASIS and gpio direction isn't set properly. > > Muted stream comes up when I try r

[PATCH] usb,signal,security: only pass the cred, not the secid, to kill_pid_info_as_cred and security_task_kill

2017-09-08 Thread Stephen Smalley
commit d178bc3a708f39cbfefc3fab37032d3f2511b4ec ("user namespace: usb: make usb urbs user namespace aware (v2)") changed kill_pid_info_as_uid to kill_pid_info_as_cred, saving and passing a cred structure instead of uids. Since the secid can be obtained from the cred, drop the secid fields from th

Re: [PATCH 3/3] net: skb_queue_purge(): lock/unlock the list only once

2017-09-08 Thread Stephen Hemminger
On Fri, 08 Sep 2017 05:06:30 - Michael Witten wrote: > Date: Thu, 7 Sep 2017 20:07:40 + > With this commit, the list's lock is locked/unlocked only once > for the duration of `skb_queue_purge()'. > > Hitherto, the list's lock has been locked/unlocked every time > an item is dequeued; thi

Re: [PATCH 1/3] kthread: add a mechanism to store cgroup info

2017-09-08 Thread Shaohua Li
On Fri, Sep 08, 2017 at 07:35:37AM -0700, Tejun Heo wrote: > Hello, > > On Wed, Sep 06, 2017 at 07:00:51PM -0700, Shaohua Li wrote: > > +#ifdef CONFIG_CGROUPS > > +void kthread_set_orig_css(struct cgroup_subsys_state *css); > > +struct cgroup_subsys_state *kthread_get_orig_css(void); > > +void kth

[PATCH] x86/fpu: don't let PTRACE_SETREGSET set xcomp_bv

2017-09-08 Thread Eric Biggers
From: Eric Biggers On x86, userspace can use ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov) to set a task's extended state registers. Registers can be set to any value, but the kernel assumes that the xregs_state itself remains valid in the sense that the CPU can restore it. However, in the

Re: [PATCH] usb,signal,security: only pass the cred, not the secid, to kill_pid_info_as_cred and security_task_kill

2017-09-08 Thread Casey Schaufler
On 9/8/2017 9:40 AM, Stephen Smalley wrote: > commit d178bc3a708f39cbfefc3fab37032d3f2511b4ec ("user namespace: usb: > make usb urbs user namespace aware (v2)") changed kill_pid_info_as_uid > to kill_pid_info_as_cred, saving and passing a cred structure instead of > uids. That's a change I've wan

Re: [PATCH 4.13 00/47] 4.13.1-stable review

2017-09-08 Thread Shuah Khan
On 09/08/2017 07:18 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.13.1 release. > There are 47 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 sh

Re: [PATCH] x86/idt: Unbreak MS HyperV hypercall vector install

2017-09-08 Thread Stephen Hemminger
On Fri, 8 Sep 2017 01:19:52 -0700 "Thomas Gleixner" wrote: > The rework of the IDT setup changed the way how unused system gates are > accounted. At the end of the gate initialization all unused gates in the > system vector area are set to the spurios handler and marked as used for > consistency

Re: [PATCH] ALSA: msnd: Optimize / harden DSP and MIDI loops

2017-09-08 Thread Takashi Iwai
On Fri, 08 Sep 2017 18:06:25 +0200, grygorii tertychnyi wrote: > > Hi Greg, > > Could you please apply it for 4.4-stable. > This fixes https://nvd.nist.gov/vuln/detail/CVE-2017-9985 This vulnerability is just non-issue. You can't get it working practically; it requires a modified hardware of th

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

2017-09-08 Thread Eduardo Valentin
David, On Tue, Aug 22, 2017 at 09:30:30PM -0700, David Miller wrote: > From: Vallish Vaidyeshwara > Date: Wed, 23 Aug 2017 00:10:25 + > > > I am submitting 2 patch series to enable hires timer to timeout > > datagram sockets (AF_UNIX & AF_INET domain) and test code to test > > timeout accura

Re: [PATCH v2 03/11] mux: core: Add usb.h header with MUX_USB_* and and MUX_TYPEC_* state constants

2017-09-08 Thread Hans de Goede
Hi, On 08-09-17 17:47, Peter Rosin wrote: On 2017-09-05 18:42, Hans de Goede wrote: Add MUX_USB_* and MUX_TYPEC_* state constant defines, which can be used by USB device/host, resp. Type-C polarity/role/altmode mux drivers and consumers to ensure that they agree on the meaning of the mux_contro

Re: [PATCH 3/3] block/loop: make loop cgroup aware

2017-09-08 Thread Shaohua Li
On Fri, Sep 08, 2017 at 07:48:09AM -0700, Tejun Heo wrote: > Hello, > > On Wed, Sep 06, 2017 at 07:00:53PM -0700, Shaohua Li wrote: > > diff --git a/drivers/block/loop.c b/drivers/block/loop.c > > index 9d4545f..9850b27 100644 > > --- a/drivers/block/loop.c > > +++ b/drivers/block/loop.c > > @@ -4

Re: [PATCH] x86/idt: Unbreak MS HyperV hypercall vector install

2017-09-08 Thread Thomas Gleixner
On Fri, 8 Sep 2017, Stephen Hemminger wrote: > On Fri, 8 Sep 2017 01:19:52 -0700 > "Thomas Gleixner" wrote: > > > The rework of the IDT setup changed the way how unused system gates are > > accounted. At the end of the gate initialization all unused gates in the > > system vector area are set to

Re: pull-request: wireless-drivers 2017-09-08

2017-09-08 Thread David Miller
From: Kalle Valo Date: Fri, 08 Sep 2017 18:50:01 +0300 > few fixes to net tree for 4.14. Note that this pull request contains the > iwlwifi fix Linus hopes to have by end of the merge window. Please let > me know if there are any problems. Pulled, thanks for following up particularly with the iw

Re: [PATCH] usb,signal,security: only pass the cred, not the secid, to kill_pid_info_as_cred and security_task_kill

2017-09-08 Thread Paul Moore
On Fri, Sep 8, 2017 at 12:40 PM, Stephen Smalley wrote: > commit d178bc3a708f39cbfefc3fab37032d3f2511b4ec ("user namespace: usb: > make usb urbs user namespace aware (v2)") changed kill_pid_info_as_uid > to kill_pid_info_as_cred, saving and passing a cred structure instead of > uids. Since the s

Re: [PATCH] signal: remove unused variable mask

2017-09-08 Thread Al Viro
On Fri, Sep 08, 2017 at 04:56:39PM +0100, Colin King wrote: > From: Colin Ian King > > The variable mask was introduced by an earlier commit and does not seem > to be used, so remove it. Equivalent is already folded into the original commit in my tree; will push out tonight

Re: [PATCH] ARC: AXS10x: Add temporary quirk to reset ethernet IP

2017-09-08 Thread Eugeniy Paltsev
On Wed, 2017-09-06 at 12:54 -0700, Vineet Gupta wrote: > On 09/06/2017 11:21 AM, Eugeniy Paltsev wrote: > > DW ethernet controller on AXS10x hangs sometimes after SW reset, so > > add temporary quirk to reset DW ethernet controller IP core. > > This quirk can be removed after axs10x reset driver >

RE: [PATCH] x86/idt: Unbreak MS HyperV hypercall vector install

2017-09-08 Thread KY Srinivasan
> -Original Message- > From: Thomas Gleixner [mailto:t...@linutronix.de] > Sent: Friday, September 8, 2017 10:09 AM > To: Stephen Hemminger > Cc: LKML ; Stephen Hemminger > ; Simon Xiao ; KY > Srinivasan ; Haiyang Zhang > ; Steven Rostedt ; Peter > Zijlstra ; Linus Torvalds foundation.o

Re: Current mainline git (24e700e291d52bd2) hangs when building e.g. perf

2017-09-08 Thread Markus Trippelsdorf
On 2017.09.08 at 09:12 -0700, Andy Lutomirski wrote: > On Fri, Sep 8, 2017 at 4:30 AM, Markus Trippelsdorf > wrote: > > On 2017.09.08 at 12:39 +0200, Markus Trippelsdorf wrote: > >> On 2017.09.08 at 12:35 +0200, Ingo Molnar wrote: > >> > > >> > * Markus Trippelsdorf wrote: > >> > > >> > > On 2017

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

2017-09-08 Thread David Miller
From: Eduardo Valentin Date: Fri, 8 Sep 2017 10:04:09 -0700 > However, this is a clear, the system call, from the net subsystem, > has changed in behavior across kernel versions. From application / > userspace perspective, changing the system call without clear > documentation or deprecation path

[PATCH v3 1/3] interconnect: Add generic on-chip interconnect API

2017-09-08 Thread Georgi Djakov
This patch introduce a new API to get requirements and configure the interconnect buses across the entire chipset to fit with the current demand. The API is using a consumer/provider-based model, where the providers are the interconnect buses and the consumers could be various drivers. The consume

Re: XFS mounted with 'discard' option - deleting fio test files slow

2017-09-08 Thread Lu, Qian
Adding amazon-linux-ker...@amazon.com On 9/7/17, 11:22 AM, "Lu, Qian" wrote: Hi XFS mailing list, Recently we received a bug report in the XFS filesystem with 'discard' option. I have been able to reproduce this issue. I used XFS filesystem to format NVMe SSD and mounted with 'di

[PATCH v3 0/3] Introduce on-chip interconnect API

2017-09-08 Thread Georgi Djakov
Modern SoCs have multiple processors and various dedicated cores (video, gpu, graphics, modem). These cores are talking to each other and can generate a lot of data flowing through the on-chip interconnects. These interconnect buses could form different topologies such as crossbar, point to point b

[RFC v3 2/3] interconnect: Add basic event tracing

2017-09-08 Thread Georgi Djakov
Add basic tracepoints in interconnect_set() so we can trace the performance and the operations which configure the hardware. Signed-off-by: Georgi Djakov Cc: Steven Rostedt Cc: Ingo Molnar --- drivers/interconnect/interconnect.c | 7 ++ include/trace/events/interconnect.h | 45 +++

[PATCH v3 3/3] interconnect: Add Qualcomm msm8916 interconnect provider driver

2017-09-08 Thread Georgi Djakov
Add driver for the Qualcomm interconnect buses found in msm8916 based platforms. This patch contains only a partial topology to make reviewing easier. Signed-off-by: Georgi Djakov --- drivers/interconnect/Kconfig | 5 + drivers/interconnect/Makefile| 1

Re: WARNING: CPU: 2 PID: 4277 at lib/refcount.c:186

2017-09-08 Thread Cong Wang
(Cc'ing netdev) On Fri, Sep 8, 2017 at 5:59 AM, Shankara Pailoor wrote: > Hi, > > I found a warning while fuzzing with Syzkaller on linux 4.13-rc7 on > x86_64. The full stack trace is below: > > WARNING: CPU: 2 PID: 4277 at lib/refcount.c:186 > refcount_sub_and_test+0x167/0x1b0 lib/refcount.c:186

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

2017-09-08 Thread Linus Torvalds
On Thu, Sep 7, 2017 at 11:18 PM, Masahiro Yamada wrote: > > If CONFIG_MODVERSIONS is enabled, > I notice lots of error messages. > WARNING: EXPORT symbol "finish_open" [vmlinux] version generation > failed, symbol will not be versioned > > So, I think something was broken in scripts/genksyms/. > >

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

2017-09-08 Thread David Woodhouse
On Fri, 2017-09-08 at 10:16 -0700, David Miller wrote: > From: Eduardo Valentin > Date: Fri, 8 Sep 2017 10:04:09 -0700 > > > > > However, this is a clear, the system call, from the net subsystem, > > has changed in behavior across kernel versions. From application / > > userspace perspective, ch

Re: [PATCH v6 05/11] arm64/mm: Add support for XPFO

2017-09-08 Thread Tycho Andersen
On Fri, Sep 08, 2017 at 12:53:47AM -0700, Christoph Hellwig wrote: > > +/* > > + * Lookup the page table entry for a virtual address and return a pointer > > to > > + * the entry. Based on x86 tree. > > + */ > > +static pte_t *lookup_address(unsigned long addr) > > Seems like this should be moved

Re: [PATCH 00/14] Fix wrong %pF and %pS printk format specifier usages

2017-09-08 Thread Luck, Tony
On Fri, Sep 08, 2017 at 03:18:30PM +0900, Sergey Senozhatsky wrote: > if the addr is not in kernel .text, then try dereferencing it and check > if the dereferenced addr is in kernel .text. If it really is a function pointer, then we know that it is safe to dereference. But if it isn't, then maybe

Re: [GIT PULL] Security subsystem updates for 4.14

2017-09-08 Thread Linus Torvalds
On Fri, Sep 8, 2017 at 12:09 AM, Christoph Hellwig wrote: > > But yes, for the init-time integrity_read_file this is incorrect. > It never tripped up, and I explicitly added the lockdep annotations > so that anything would show up, and it's been half a year since > I sent that first RFC patch.. I

<    1   2   3   4   5   6   7   8   >