[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

[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

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

[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

答复: [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.

Re: [PATCH v2 25/40] tracing: Add support for dynamic tracepoints

2017-09-08 Thread Tom Zanussi
Hi Steve, On Thu, 2017-09-07 at 18:02 -0400, Steven Rostedt wrote: > On Tue, 5 Sep 2017 16:57:37 -0500 > Tom Zanussi wrote: > > > The tracepoint infrastructure assumes statically-defined tracepoints > > and uses static_keys for tracepoint enablement. In order to

Re: [PATCH] net: bonding: Fix transmit load balancing in balance-alb mode if specified by sysfs

2017-09-08 Thread Kosuke Tatsukawa
Hi, > On 08/09/17 13:10, Nikolay Aleksandrov wrote: >> On 08/09/17 05:06, Kosuke Tatsukawa wrote: >>> Hi, >>> On 7.09.2017 01:47, Kosuke Tatsukawa wrote: > Commit cbf5ecb30560 ("net: bonding: Fix transmit load balancing in > balance-alb mode") tried to fix transmit dynamic load

Re: [PATCH v5 10/10] net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs

2017-09-08 Thread Andrew Lunn
> > Do you know why the reset times out/fails? > > > > Because there are nothing connected to it. That should not be an issue. A read should just return 0x. And it should return 0x fast. The timing of the MDIO protocol is fixed. A read or a write takes a fixed number of cycles,

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

2017-09-08 Thread Alexander.Steffen
> On Wed, Sep 06, 2017 at 02:19:28PM +, > alexander.stef...@infineon.com wrote: > > > On Wed, Sep 06, 2017 at 03:42:33PM +0300, Jarkko Sakkinen wrote: > > > > On Mon, Sep 04, 2017 at 07:36:42PM +0200, Alexander Steffen wrote: > > > > > tpm_transmit() does not offer an explicit interface to

[PATCH v6] staging: pi433: Fixes minor typo errors

2017-09-08 Thread Harsha Sharma
Fixes checkpatch warning -- "occured" and "succesfully" are misspelled Signed-off-by: Harsha Sharma --- Changes in v6: -Added changes from other versions Changes in v5: -Signed-off properly with correct author name in .gitconfig Changes in v4: -Correct the format

[GIT PULL] First batch of KVM changes for v4.14

2017-09-08 Thread Radim Krčmář
Linus, there is going to be a simple merge conflict between ea2800ddb20d ("kvm/x86: Avoid clearing the C-bit in rsvd_bits()") and d6321d493319 ("KVM: x86: generalize guest_cpuid_has_ helpers"). It should be resolved as in next and I've also pasted the resolution at the bottom. Outside of kvm

Re: [PATCH net-next 2/3] net: ethernet: socionext: add AVE ethernet driver

2017-09-08 Thread Masahiro Yamada
2017-09-08 22:02 GMT+09:00 Kunihiko Hayashi : > diff --git a/drivers/net/ethernet/socionext/Kconfig > b/drivers/net/ethernet/socionext/Kconfig > new file mode 100644 > index 000..788f26f > --- /dev/null > +++ b/drivers/net/ethernet/socionext/Kconfig > @@ -0,0

Re: [PATCH v5] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Greg KH
On Fri, Sep 08, 2017 at 02:35:03PM +, Jeffrey Chu wrote: > Add CYPRESS_VID vid and CYPRESS_WICED_BT_USB and CYPRESS_WICED_WL_USB > device IDs to ftdi_sio driver > > Signed-off-by: Jeffrey Chu > --- > drivers/usb/serial/ftdi_sio.c | 2 ++ >

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

2017-09-08 Thread Vivien Didelot
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 patch here :( Oops, you weren't originally in Cc. Please find the patch below. >

Re: [PATCH v2] tracing: Ignore mmiotrace from kernel commandline

2017-09-08 Thread Ziqian SUN (Zamir)
> On Wed, 30 Aug 2017 12:19:30 +0800 > "Ziqian SUN (Zamir)" wrote: > > > From: "Ziqian SUN (Zamir)" > > > > The mmiotrace tracer cannot be enabled with ftrace=mmiotrace in > > kernel commandline. With this patch, a trace_noboot_tracer_list > > is implemented

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

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

[PATCH][V2] drm/vc4: clean up error handling on devm_kzalloc failure

2017-09-08 Thread Colin King
From: Colin Ian King The current error handling when devm_kzalloc fails performs a non-null check on connector which is redundant because connector is null at that failure point. Once this is removed, make the failure path into a trivial -ENOMEM return to clean up the

[PATCH V3] thermal/drivers/step_wise: Fix temperature regulation misbehavior

2017-09-08 Thread Daniel Lezcano
There is a particular situation when the cooling device is cpufreq and the heat dissipation is not efficient enough where the temperature increases little by little until reaching the critical threshold and leading to a SoC reset. The behavior is reproducible on a hikey6220 with bad heat

[PATCH] drm/amdkfd: check for null dev to avoid a null pointer dereference

2017-09-08 Thread Colin King
From: Colin Ian King The call to kfd_device_by_id can potentially return null, so check that dev is null and return with -EINVAL to avoid a null pointer dereference. Detected by CoverityScan CID#1454629 ("Dereference null return value") Fixes: 5d71dbc3a588

Re: [PATCH v5 1/3] perf config: Check not only section->from_system_config but also item's

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Thu, Sep 07, 2017 at 12:18:45PM +0900, Taeung Song escreveu: > Currently only section->from_system_config is being checked multiple times. > items->from_system_config should be also checked, so fix it. Reworded the cset log as: perf config: Check not only section->from_system_config but

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

2017-09-08 Thread Tejun Heo
On Fri, Sep 08, 2017 at 07:38:46AM -0700, Tejun Heo wrote: > On Fri, Sep 08, 2017 at 07:35:37AM -0700, Tejun Heo wrote: > > * It's a bit weird to associate a kthread with a css without being > > specific. If what's needed is a generic association (this kthread > > is temporarily servicing

Re: [PATCH] Staging: media: omap4iss: Use WARN_ON() instead of BUG_ON().

2017-09-08 Thread Srishti Sharma
On Fri, Sep 8, 2017 at 8:08 PM, Dan Carpenter wrote: > On Fri, Sep 08, 2017 at 07:38:18PM +0530, Srishti Sharma wrote: >> Use WARN_ON() instead of BUG_ON() to avoid crashing the kernel. >> >> Signed-off-by: Srishti Sharma >> --- >>

Re: [PATCH v4 2/6] irqdomain: clear trigger type in irq_domain_push_irq()

2017-09-08 Thread Masahiro Yamada
Hi Marc, 2017-09-07 21:25 GMT+09:00 Marc Zyngier : > On 07/09/17 12:41, Masahiro Yamada wrote: >> Prior to the addition of irq_domain_push_irq(), the hierarchy >> IRQ domain always allocates IRQs from the outer-most domain. >> Each irqchip usually calls

Re: [PATCH v4 6/6] gpio: uniphier: add UniPhier GPIO controller driver

2017-09-08 Thread Masahiro Yamada
Hi Rob, 2017-09-08 4:41 GMT+09:00 Rob Herring : > On Thu, Sep 7, 2017 at 6:42 AM, Masahiro Yamada > wrote: >> This GPIO controller device is used on UniPhier SoCs. >> >> It also serves as an interrupt controller, but interrupt signals are >>

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;

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

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 > >

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

[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

[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

[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

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

[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

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.

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

[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

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.

[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

[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

Re: [Outreachy kernel] [PATCH] Staging: media: omap4iss: Use WARN_ON() instead of BUG_ON().

2017-09-08 Thread Srishti Sharma
On Fri, Sep 8, 2017 at 7:40 PM, Julia Lawall wrote: > > > On Fri, 8 Sep 2017, Srishti Sharma wrote: > >> Use WARN_ON() instead of BUG_ON() to avoid crashing the kernel. >> >> Signed-off-by: Srishti Sharma >> --- >>

[PATCH v5] usb: serial: add vid:pid for Cypress WICED dev board

2017-09-08 Thread Jeffrey Chu
Add CYPRESS_VID vid and CYPRESS_WICED_BT_USB and CYPRESS_WICED_WL_USB device IDs to ftdi_sio driver Signed-off-by: Jeffrey Chu --- drivers/usb/serial/ftdi_sio.c | 2 ++ drivers/usb/serial/ftdi_sio_ids.h | 7 +++ 2 files changed, 9 insertions(+) diff --git

Re: [PATCH 2/3] block: make blkcg aware of kthread stored original cgroup info

2017-09-08 Thread Tejun Heo
Hello, On Wed, Sep 06, 2017 at 07:00:52PM -0700, Shaohua Li wrote: > From: Shaohua Li > > Several blkcg APIs are deprecated. After removing them, bio_blkcg is the > only API to get cgroup info for a bio. If bio_blkcg finds current task > is a kthread and has original css recorded,

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:18:27AM -0400, Vivien Didelot wrote: > Hi Greg, > > 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 patch here :( > Also more important,

[PATCH] can: check for null sk before deferencing it via the call to sock_net

2017-09-08 Thread Colin King
From: Colin Ian King The assignment of net via call sock_net will dereference sk. This is performed before a sanity null check on sk, so there could be a potential null dereference on the sock_net call if sk is null. Fix this by assigning net after the sk null check.

[GIT PULL] tracing: Updates for 4.14

2017-09-08 Thread Steven Rostedt
Linus, Nothing new in development for this release. These are mostly fixes that were found during development of changes for the next merge window and fixes that were sent to me late in the last cycle. Please pull the latest trace-v4.14 tree, which can be found at:

Re: [PATCH] iommu/dma: limit the IOVA allocated to dma-ranges region

2017-09-08 Thread Robin Murphy
On 05/09/17 18:35, Krishna Reddy wrote: > Robin, >>> Why? IOVA allocation is already constrained as much as it should be - if >>> the device's DMA mask is wrong that's another problem, and this isn't the >>> right place to fix it. > > This is because of following reasons. > 1. Many of the HW

Re: [PATCH v2] ARM: dts: Add initial Pistachio i.mx6q board support.

2017-09-08 Thread Fabio Estevam
On Fri, Sep 8, 2017 at 2:14 AM, Wig Cheng wrote: > From: YuanCheng Cheng > > Working items: > > - 800/433 MHz (CPU/DDR3) > - 2GB of RAM (DDR3) > - 4GB of NAND FLASH > - 1T1R WiFi 2.4 GHz > - Power management support > - 1x 10/100/1000 Mbps Ethernet WAN port

Re: [PATCH RFC] Update documentation for KSZ DSA drivers so that new drivers can be added

2017-09-08 Thread Andrew Lunn
On Fri, Sep 08, 2017 at 04:32:35PM +0300, Maxim Uvarov wrote: > 2017-09-08 0:54 GMT+03:00 Andrew Lunn : > >> -- compatible: For external switch chips, compatible string must be > >> exactly one > >> - of: "microchip,ksz9477" > >> +- compatible: Should be "microchip,ksz9477" for

Re: [PATCH] block: tolerate tracing of NULL bio

2017-09-08 Thread Jens Axboe
On 09/07/2017 06:36 PM, Greg Thelen wrote: > __get_request() can call trace_block_getrq() with bio=NULL which causes > block_get_rq::TP_fast_assign() to deref a NULL pointer and panic. > > Syzkaller fuzzer panics with > linux-next (1d53d908b79d7870d89063062584eead4cf83448): > kasan: GPF could

Re: [PATCH] drm/vc4: clean up error handling on devm_kzalloc failure

2017-09-08 Thread Eric Engestrom
On Friday, 2017-09-08 14:17:04 +0100, Colin King wrote: > From: Colin Ian King > > The current error handling on devm_kzalloc failures performs a non-null > check on connector. Thss check is redundant because connector is null > at that failure point. With this check

[PATCH] IB/rxe: check for allocation failure on elem

2017-09-08 Thread Colin King
From: Colin Ian King The allocation for elem may fail (especially because we're using GFP_ATOMIC) so best to check for a null return. This fixes a potential null pointer dereference when assigning elem->pool. Detected by CoverityScan CID#1357507 ("Dereference null

Re: [PATCH v6 03/11] mm, x86: Add support for eXclusive Page Frame Ownership (XPFO)

2017-09-08 Thread Tycho Andersen
On Fri, Sep 08, 2017 at 12:51:40AM -0700, Christoph Hellwig wrote: > > +#include > > > > #include > > > > @@ -55,24 +56,34 @@ static inline struct page *kmap_to_page(void *addr) > > #ifndef ARCH_HAS_KMAP > > static inline void *kmap(struct page *page) > > { > > + void *kaddr; > > + > >

Re: [PATCH v4 0/6] irqdomain, gpio: expand irq_domain_push_irq() for DT use and use it for GPIO

2017-09-08 Thread Masahiro Yamada
Hi Marc. 2017-09-07 21:39 GMT+09:00 Marc Zyngier : >> I think there is a possibility where a device tries to get IRQ >> after irq_domain_create_hierarchy(), but before irq_domain_push_irq(). >> >> priv->domain = irq_domain_create_hierarchy(...) >> if

[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

[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.

[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

[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 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

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

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. > >

[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

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

[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

[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

[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.

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

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

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

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

2017-09-08 Thread Randy Dunlap
^ Signed-off-by: Randy Dunlap <rdun...@infradead.org> Cc: Vishal Verma <vishal.l.ve...@intel.com> 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 +++ lin

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

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

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

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

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 >

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

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 / > >

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

2017-09-08 Thread Vineet Gupta
On 09/08/2017 10:14 AM, Eugeniy Paltsev wrote: 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

[PATCH v2] staging: typec: tcpm: Comparison to NULL pointer

2017-09-08 Thread Harsha Sharma
Makes code more concise and readable Signed-off-by: Harsha Sharma --- Change in v2: -Change in subject -Change in log message drivers/staging/typec/tcpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/typec/tcpm.c

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

2017-09-08 Thread Zi Yan
I checked. __pmd() works. BTW, my sparc32 fix was added in linux-next on August 11th and __pmd() is there, too. This means __pmd() + my fix has survived for almost a month in linux-next. It should be good. -- Best Regards Yan Zi On 7 Sep 2017, at 23:43, Stephen Rothwell wrote: > Hi all, > > On

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

2017-09-08 Thread Tejun Heo
Hello, Shaohua. On Fri, Sep 08, 2017 at 10:07:15AM -0700, Shaohua Li wrote: > > The fact that we're forwarding explicitly in loop still bothers me a > > bit. Can you please elaborate why we don't want to do this > > generically through aio? > > I think we must forward in loop, because each cmd

RE: [PATCH RFC 3/5] Add KSZ8795 switch driver

2017-09-08 Thread Tristram.Ha
> -Original Message- > From: Pavel Machek [mailto:pa...@ucw.cz] > Sent: Friday, September 08, 2017 2:19 AM > To: Tristram Ha - C24268 > Cc: and...@lunn.ch; muva...@gmail.com; nathan.leigh.con...@gmail.com; > vivien.dide...@savoirfairelinux.com; f.faine...@gmail.com; >

[PATCH v3 03/20] mm: Introduce pte_spinlock for FAULT_FLAG_SPECULATIVE

2017-09-08 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

[PATCH v3 05/20] mm: Protect VMA modifications using VMA sequence count

2017-09-08 Thread Laurent Dufour
The VMA sequence count has been introduced to allow fast detection of VMA modification when running a page fault handler without holding the mmap_sem. This patch provides protection against the VMA modification done in : - madvise() - mremap() - mpol_rebind_policy()

[PATCH v3 04/20] mm: VMA sequence count

2017-09-08 Thread Laurent Dufour
From: Peter Zijlstra Wrap the VMA modifications (vma_adjust/unmap_page_range) with sequence counts such that we can easily test if a VMA is changed. The unmap_page_range() one allows us to make assumptions about page-tables; when we find the seqcount hasn't changed we can

[PATCH v3 06/20] mm: RCU free VMAs

2017-09-08 Thread Laurent Dufour
From: Peter Zijlstra Manage the VMAs with SRCU such that we can do a lockless VMA lookup. We put the fput(vma->vm_file) in the SRCU callback, this keeps files valid during speculative faults, this is possible due to the delayed fput work by Al Viro -- do we need

Re: [PATCH 2/3] perf tools: Open perf.data with O_CLOEXEC flag

2017-09-08 Thread Arnaldo Carvalho de Melo
Em Fri, Sep 08, 2017 at 10:46:20AM +0200, Jiri Olsa escreveu: > Do not carry the perf.data file descriptor into > the workload process and close it when perf > executes the workload. Fails in some systems with: util/data.c: In function 'open_file_write': util/data.c:99: error: 'O_CLOEXEC'

Re: [PATCH v3 1/3] arm64/ras: support sea error recovery

2017-09-08 Thread James Morse
Hi Xie XiuQi, (Sorry a few versions of this went past before I caught up with it) On 07/09/17 08:45, Xie XiuQi wrote: > With ARM v8.2 RAS Extension, SEA are usually triggered when memory errors > are consumed. In some cases, if the error address is in a clean page or a > read-only page, there is

Re: [PATCH RFC 3/5] Add KSZ8795 switch driver

2017-09-08 Thread Andrew Lunn
> > > @@ -0,0 +1,2066 @@ > > > +/* > > > + * Microchip KSZ8795 switch driver > > > + * > > > + * Copyright (C) 2017 Microchip Technology Inc. > > > + * Tristram Ha > > > + * > > > + * Permission to use, copy, modify, and/or distribute this software for > > > any

[PATCH v2 1/2] ARM: dts: k2g: Add USB instances

2017-09-08 Thread Franklin S Cooper Jr
From: Vitaly Andrianov Add nodes for both USB instances supported by 66AK2G. Signed-off-by: Franklin S Cooper Jr --- arch/arm/boot/dts/keystone-k2g.dtsi | 56 + 1 file changed, 56 insertions(+) diff --git

[PATCH] ARC: HSDK: DTS: Temporary fix of sdio ciu frequency

2017-09-08 Thread Eugeniy Paltsev
DW sdio controller has external ciu clock devider controlled via register in SDIO IP. Due to its unexpected default value (it should devide by 1 but it devides by 8) SDIO IP uses wrong ciu clock and works unstable (see STAR 9001204800) So add temporary fix and change clock frequency from

[PATCH v2 0/2] ARM: dts: keystone-k2g-evm: Add USB nodes and enable USB on K2G EVM

2017-09-08 Thread Franklin S Cooper Jr
Add USB nodes to 66AK2G dtsi. Also enable the two USB nodes that are on the K2G EVM. Roger Quadros (1): ARM: dts: k2g-evm: Enable USB 0 and 1 Vitaly Andrianov (1): ARM: dts: k2g: Add USB instances arch/arm/boot/dts/keystone-k2g-evm.dts | 26

Re: [PATCH v2 31/40] tracing: Allow whitespace to surround hist trigger filter

2017-09-08 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:43 -0500 Tom Zanussi wrote: > The existing code only allows for one space before and after the 'if' > specifying the filter for a hist trigger. Add code to make that more > permissive as far as whitespace goes. > > Signed-off-by: Tom

Re: [PATCH v2 33/40] tracing: Add hist trigger support for variable reference aliases

2017-09-08 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:45 -0500 Tom Zanussi wrote: > Add support for alias=$somevar where alias can be used as > onmatch($alias). This change log is very lacking. What exactly is the purpose of alias? Sounds like the variable is going undercover. -- Steve > >

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

2017-09-08 Thread Greg KH
On Fri, Sep 08, 2017 at 06:57:57PM +0200, Takashi Iwai wrote: > 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

Re: [PATCH 1/2] staging: typec: tcpm: Validate source and sink caps

2017-09-08 Thread Greg Kroah-Hartman
On Fri, Sep 08, 2017 at 10:29:52AM -0700, Badhri Jagan Sridharan wrote: > On Fri, Sep 8, 2017 at 2:45 AM, Greg Kroah-Hartman > wrote: > > On Thu, Sep 07, 2017 at 06:22:13PM -0700, Badhri Jagan Sridharan wrote: > >> The source and sink caps should follow the following

Re: [PATCH net-next 2/3] net: ethernet: socionext: add AVE ethernet driver

2017-09-08 Thread Florian Fainelli
On 09/08/2017 06:02 AM, Kunihiko Hayashi wrote: > The UniPhier platform from Socionext provides the AVE ethernet > controller that includes MAC and MDIO bus supporting RGMII/RMII > modes. The controller is named AVE. > > Signed-off-by: Kunihiko Hayashi >

Re: [PATCH v2 35/40] tracing: Reverse the order event_mutex/trace_types_lock are taken

2017-09-08 Thread Steven Rostedt
On Tue, 5 Sep 2017 16:57:47 -0500 Tom Zanussi wrote: > Change the order event_mutex and trace_types_lock are taken, to avoid > circular dependencies and lockdep spew. > > Changing the order shouldn't matter to any current code, but does to > anything that takes the

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