Re: Regression due to "Workaround for uPD72020x USB3 chips"

2018-05-02 Thread Domenico Andreoli
On Wed, May 02, 2018 at 10:22:05AM +0200, Ard Biesheuvel wrote: > On 2 May 2018 at 10:06, Domenico Andreoli wrote: > > Dear all, > > > > my home machine stopped to boot starting from kernel version 4.12.7. > > > > The last message I read is about resetting some USB3 bus. It's 100% > > reproducib

Re: [PATCH 0/5] kernel hacking: GCC optimization for debug experience (-Og)

2018-05-02 Thread Du, Changbin
On Wed, May 02, 2018 at 09:33:15AM +0200, Ingo Molnar wrote: > > * changbin...@intel.com wrote: > > > Comparison of system performance: a bit drop. > > > > w/o CONFIG_DEBUG_EXPERIENCE > > $ time make -j4 > > real6m43.619s > > user19m5.160s > > sys 2m20.287s > >

[PATCH][media-next] media: davinci_vpfe: fix memory leaks of params

2018-05-02 Thread Colin King
From: Colin Ian King There are memory leaks of params; when copy_to_user fails and also the exit via the label 'error'. Fix this by kfree'ing params in error exit path and jumping to this on the copy_to_user failure path. Detected by CoverityScan, CID#1467966 ("Resource leak") Fixes: da43b6cca

Re: [PATCH v2] mtd: onenand: omap2: Disable DMA for HIGHMEM buffers

2018-05-02 Thread Boris Brezillon
On Wed, 2 May 2018 10:06:36 +0200 Ladislav Michl wrote: > Hi Boris, > > (and apologies for delay) > > On Fri, Apr 20, 2018 at 10:01:34PM +0200, Boris Brezillon wrote: > > Hi Ladislav, > > > > On Mon, 16 Apr 2018 08:52:59 +0200 > > Ladislav Michl wrote: > > > > > dma_map_single doesn't get

Re: [PATCH 03/18] thermal: exynos: always check for critical trip points existence

2018-05-02 Thread Bartlomiej Zolnierkiewicz
On Tuesday, May 01, 2018 11:00:18 AM Daniel Lezcano wrote: > On Mon, Apr 30, 2018 at 05:24:15PM +0200, Bartlomiej Zolnierkiewicz wrote: > > On Monday, April 30, 2018 04:44:50 PM Daniel Lezcano wrote: > > > On Thu, Apr 26, 2018 at 01:51:18PM +0200, Bartlomiej Zolnierkiewicz wrote: > > > > * Check fo

Re: [PATCH v4 6/6] arm64: dts: ls208xa: comply with the iommu map binding for fsl_mc

2018-05-02 Thread Laurentiu Tudor
Hi Nipun, On 04/30/2018 09:27 AM, Nipun Gupta wrote: > fsl-mc bus support the new iommu-map property. Comply to this binding > for fsl_mc bus. > > Signed-off-by: Nipun Gupta This looks good to me, so: Reviewed-By: Laurentiu Tudor --- Best Regards, Laurentiu > --- > arch/arm64/boot/dts/free

Re: [PATCH net-next] modules: allow modprobe load regular elf binaries

2018-05-02 Thread Jesper Dangaard Brouer
On Tue, 6 Mar 2018 15:42:41 -0800 Chris Mason wrote: > On 6 Mar 2018, at 11:12, Linus Torvalds wrote: > [...] > > > > I do *not* want this to be a magical way to hide things. > > Especially early on, this makes a lot of sense. But I wanted to plug > bps and the hopefully growing set of bpf

[PATCH] scsi: mptfusion: fix spelling mistake: "initators" -> "initiators"

2018-05-02 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in text string Signed-off-by: Colin Ian King --- drivers/message/fusion/mptbase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index 51eb1b027963..72e

Re: [PATCH] net/xfrm: Fix lookups for states with spi == 0

2018-05-02 Thread Herbert Xu
On Wed, May 02, 2018 at 03:02:20AM +0100, Dmitry Safonov wrote: > It seems to be a valid use case to add xfrm state without > Security Parameter Indexes (SPI) value associated: > ip xfrm state add src $src dst $dst proto $proto mode $mode sel src $src dst > $dst $algo > > The bad thing is that it

Re: [PATCH 2/2] arm64/mm: add speculative page fault

2018-05-02 Thread Laurent Dufour
On 02/05/2018 09:54, Ganesh Mahendran wrote: > This patch enables the speculative page fault on the arm64 > architecture. > > I completed spf porting in 4.9. From the test result, > we can see app launching time improved by about 10% in average. > For the apps which have more than 50 threads, 15%

non-blocking connect for kernel SCTP sockets

2018-05-02 Thread Michal Kubecek
Hello, while investigating a bug, we noticed that DLM tries to connect an SCTP socket in non-blocking mode using result = sock->ops->connect(sock, (struct sockaddr *)&daddr, addr_len, O_NONBLOCK); which does not work. The reason is that inet_dgram_conn

Re: [PATCH] input/psmouse: Don't hold the mutex while calling ->disconnect

2018-05-02 Thread Daniel Vetter
On Mon, Apr 30, 2018 at 11:17 PM, Dmitry Torokhov wrote: > Hi Daniel, > > On Mon, Apr 30, 2018 at 09:56:49PM +0200, Daniel Vetter wrote: >> At least trackpoint_disconnect wants to remove some sysfs files, and >> we can't remove sysfs files while holding psmouse_mutex: >> >> ===

Re: [v4.17-rcx] Lost IBPB, IBRS_FW support for spectre_v2 mitigation.

2018-05-02 Thread Thomas Gleixner
On Wed, 2 May 2018, Jörg Otte wrote: > With revert: > > jojo@fichte:~$ dmesg | grep -i -e spec -e micro -e "Linux version" > > [0.00] microcode: microcode updated early to revision 0x24, > date = 2018-01-21 > [0.00] Linux version 4.17.0-rc3-revert-1-gcb1069f > (jojo@fichte) (g

Re: [PATCH 1/2] arm64/mm: define ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT

2018-05-02 Thread Laurent Dufour
On 02/05/2018 09:54, Ganesh Mahendran wrote: > Set ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT for arm64. This > enables Speculative Page Fault handler. > > Signed-off-by: Ganesh Mahendran > --- > This patch is on top of Laurent's v10 spf > --- > arch/arm64/Kconfig | 1 + > 1 file changed, 1 insertion(

Re: [PATCH] drm: omapdrm: silence unititialized variable warning

2018-05-02 Thread Tomi Valkeinen
Hi, On 18/04/18 17:29, Dan Carpenter wrote: > Smatch complains that "area_free" could be used without being > initialized. This code is several years old and premusably works fine > so this can't be a very serious bug. But it's easy enough to silence > the warning. If "area_free" is false at th

Re: [PATCH v2 01/12] dt-bindings: cpufreq: mediatek: use - instead of _ in examples

2018-05-02 Thread Matthias Brugger
On 04/11/2018 10:53 AM, sean.w...@mediatek.com wrote: > From: Sean Wang > > It should be good that no use "_" is in examples. Consequently, > those nodes in certain files which have an inappropriate name containing > "_" are all being replaced with "-". > > Signed-off-by: Sean Wang > Cc: "Rafa

[PATCH v2] w1: mxc_w1: Enable clock before calling clk_get_rate() on it

2018-05-02 Thread Stefan Potyra
According to the API, you may only call clk_get_rate() after actually enabling it. Found by Linux Driver Verification project (linuxtesting.org). Fixes: a5fd9139f74c ("w1: add 1-wire master driver for i.MX27 / i.MX31") Signed-off-by: Stefan Potyra --- drivers/w1/masters/mxc_w1.c | 20 ++

Re: [PATCH] net: stmmac: Avoid VLA usage

2018-05-02 Thread Jose Abreu
Hi Kees, On 01-05-2018 22:01, Kees Cook wrote: > In the quest to remove all stack VLAs from the kernel[1], this switches > the "status" stack buffer to use the existing small (8) upper bound on > how many queues can be checked for DMA, and adds a sanity-check just to > make sure it doesn't operate

Re: [PATCH 50/61] thermal: simplify getting .drvdata

2018-05-02 Thread Shawn Guo
On Thu, Apr 19, 2018 at 04:06:20PM +0200, Wolfram Sang wrote: > We should get drvdata from struct device directly. Going via > platform_device is an unneeded step back and forth. > > Signed-off-by: Wolfram Sang > --- > > Build tested only. buildbot is happy. Please apply individually. > > driv

Re: [PATCH] Enable clock before calling clk_get_rate() on it.

2018-05-02 Thread Stefan Potyra
Hi Evgeniy, On Mon, Apr 30, 2018 at 06:02:57PM +0300, Evgeniy Polyakov wrote: > Hi Stefan > > Nice catch, thank you! > > 19.04.2018, 16:02, "Stefan Potyra" : > > According to the API, you may only call clk_get_rate() after actually > > enabling it. > > > > Found by Linux Driver Verification proj

Re: [PATCH v3 1/4] tpm: Add explicit endianness cast

2018-05-02 Thread Thiebaud Weksteen
On Tue, May 1, 2018 at 1:49 PM Jarkko Sakkinen < jarkko.sakki...@linux.intel.com> wrote: > On Wed, Apr 25, 2018 at 03:26:41PM +0200, Thiebaud Weksteen wrote: > > Signed-off-by: Thiebaud Weksteen > > --- > > drivers/char/tpm/tpm_eventlog_of.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 delet

Re: [PATCH RFC 2/4] mmc: sdhci-msm: Add and use voltage regulator related APIs

2018-05-02 Thread Ulf Hansson
On 1 May 2018 at 12:39, Vijay Viswanath wrote: > From: Asutosh Das > > Some platforms require that the voltage switching happen only after > the register write occurs and controller is ready for the switch. When > the controller is ready, it will inform through power irq. > > Add voltage regulato

Re: [RFC][PATCH] memcg: Replace mm->owner with mm->memcg

2018-05-02 Thread Michal Hocko
[CC johannes and Tejun as well. I am sorry but my backlog is so huge I will not get to this week.] On Tue 01-05-18 12:35:16, Eric W. Biederman wrote: > Recently it was reported that mm_update_next_owner could get into > cases where it was executing it's fallback for_each_process part of > the loop

re: media: rcar-vin: add group allocator functions

2018-05-02 Thread Colin Ian King
Hi there, Static analysis with CoverityScan picked up an explicit null pointer dereference in the the following commit: commit 3bb4c3bc85bf77a76c921671800bde2e1bf82a88 Author: Niklas Söderlund Date: Sat Apr 14 07:57:18 2018 -0400 media: rcar-vin: add group allocator functions in: +stati

Re: [RFC PATCH for 4.18 00/14] Restartable Sequences

2018-05-02 Thread Peter Zijlstra
On Wed, May 02, 2018 at 03:53:47AM +, Daniel Colascione wrote: > The usual approach to "better" is an "adaptive mutex". Such a thing, when > it attempts to acquire a lock another thread owns, spins for some number of > iterations, then falls back to futex. I guess that's a little better than >

Re: [PATCH v2] staging: greybus: Use gpio_is_valid()

2018-05-02 Thread Johan Hovold
On Sat, Apr 28, 2018 at 10:05:39AM +0530, Arvind Yadav wrote: > Replace the manual validity checks for the GPIO with the > gpio_is_valid(). > > Signed-off-by: Arvind Yadav > --- > chnage in v2 : > Returning invalid gpio as error instead of -ENODEV. > > drivers/staging/greybus/arche

Re: [PATCH] staging: wilc1000: fix infinite loop and out-of-bounds access

2018-05-02 Thread Dan Carpenter
We're mainly discussing readability, right? To me when people use "int" that tells me as a reader that we don't need to think about the type. It's going to be a small number. Say you have data which the user can control, then it's super important to focus on the data types. We don't focus on it

Re: [PATCH 0/6] use memcpy_mcsafe() for copy_to_iter()

2018-05-02 Thread Borislav Petkov
On Tue, May 01, 2018 at 07:25:57PM -0700, Dan Williams wrote: > Right, but the only way to make MCE non-fatal is to teach the machine > check handler about recoverable conditions. This patch teaches the > machine check handler how to recover copy_to_iter() errors. Yeah, about that: maybe we talked

Re: [PATCH] arm: dts: am437x-sk-evm: add wilink8 support

2018-05-02 Thread Sekhar Nori
On Tuesday 01 May 2018 12:54 PM, Eyal Reizer wrote: > enable mmc3 used for wlan and uart1 used for bluetooth > configure the gpios used for wlan and bluetooth controls > add fixed voltage regulator used for wlan power control > > Signed-off-by: Eyal Reizer ARM should be capitalized in subject li

Re: [PATCH RFC 1/4] mmc: host: Register changes for sdcc V5

2018-05-02 Thread Ulf Hansson
On 1 May 2018 at 12:39, Vijay Viswanath wrote: > From: Sayali Lokhande > > For SDCC version 5.0.0, MCI registers are removed from SDCC > interface and some registers are moved to HC. This change is > to support MCI register removal for msmfalcon. New compatible > string "qcom,sdhci-msm-v5" is add

Re: [Xen-devel] [PATCH 4/4] xen/PVH: Remove reserved entry in PVH GDT

2018-05-02 Thread Jan Beulich
>>> On 01.05.18 at 14:34, wrote: > On 05/01/2018 04:00 AM, Roger Pau Monné wrote: >> On Mon, Apr 30, 2018 at 12:23:39PM -0400, Boris Ostrovsky wrote: >>> And without it we can't use _BOOT_XX macros any longer so define new ones. >> >> Not being that familiar with Linux internals I'm not sure I se

Re: [PATCH v2 21/27] coresight: Convert driver messages to dev_dbg

2018-05-02 Thread Robert Walker
On 02/05/18 04:55, Kim Phillips wrote: On Tue, 1 May 2018 10:10:51 +0100 Suzuki K Poulose wrote: Convert component enable/disable messages from dev_info to dev_dbg. This is required to prevent LOCKDEP splats when operating in perf mode where we could be called with locks held to enable a cores

Re: [PATCH V2 0/6] Memory bandwidth allocation software controller(mba_sc)

2018-05-02 Thread Thomas Gleixner
On Mon, 30 Apr 2018, Shivappa Vikas wrote: > I have sent a new version trying to address your feedback. Made this > more cleaner also. Would be great if you could let me know any feedback. It's on my todo list ...

Re: [PATCH v8 11/13] arm64: topology: enable ACPI/PPTT based CPU topology

2018-05-02 Thread Rafael J. Wysocki
On Tue, May 1, 2018 at 4:46 PM, Sudeep Holla wrote: > > > On 26/04/18 00:31, Jeremy Linton wrote: >> Propagate the topology information from the PPTT tree to the >> cpu_topology array. We can get the thread id and core_id by assuming >> certain levels of the PPTT tree correspond to those concepts.

Re: [PATCH v3 2/2] nvmem: Add RAVE SP EEPROM driver

2018-05-02 Thread Srinivas Kandagatla
On 01/05/18 19:35, Andrey Smirnov wrote: On Tue, May 1, 2018 at 8:33 AM, Srinivas Kandagatla wrote: On 01/05/18 06:29, Andrey Smirnov wrote: +// SPDX-License-Identifier: GPL-2.0+ ... +MODULE_LICENSE("GPL"); I think this should be MODULE_LICENSE("GPL v2"); With that change the two

Re: [PATCH 04/10] vfio: ccw: replace IO_REQ event with SSCH_REQ event

2018-05-02 Thread Cornelia Huck
On Wed, 2 May 2018 15:46:22 +0800 Dong Jia Shi wrote: > * Cornelia Huck [2018-04-30 17:33:05 +0200]: > > > On Thu, 26 Apr 2018 15:48:06 +0800 > > Dong Jia Shi wrote: > > > > > * Dong Jia Shi [2018-04-26 15:30:54 +0800]: > > > > > > [...] > > > > > > > > @@ -179,7 +160,7 @@ static int f

Re: Regression due to "Workaround for uPD72020x USB3 chips"

2018-05-02 Thread Ard Biesheuvel
On 2 May 2018 at 10:06, Domenico Andreoli wrote: > Dear all, > > my home machine stopped to boot starting from kernel version 4.12.7. > > The last message I read is about resetting some USB3 bus. It's 100% > reproducible also with any recent kernel up to 4.17.0-rc3. > > I bisected down to the fo

Re: [Regression] PCI / PM: Simplify device wakeup settings code

2018-05-02 Thread Rafael J. Wysocki
On Tue, May 1, 2018 at 9:55 PM, Bjorn Helgaas wrote: > On Tue, May 01, 2018 at 10:34:29AM +0200, Rafael J. Wysocki wrote: >> On Mon, Apr 30, 2018 at 4:22 PM, Joseph Salisbury >> wrote: >> > On 04/16/2018 11:58 AM, Rafael J. Wysocki wrote: >> >> On Mon, Apr 16, 2018 at 5:31 PM, Joseph Salisbury >>

Re: [PATCH v1] kthread/smpboot: Serialize kthread parking against wakeup

2018-05-02 Thread Peter Zijlstra
On Wed, May 02, 2018 at 10:45:52AM +0530, Kohli, Gaurav wrote: > On 5/1/2018 6:49 PM, Peter Zijlstra wrote: > > - complete(&kthread->parked), which we can do inside schedule(); this > > solves the problem because then kthread_park() will not return early > > and the task really is blocke

Re: [Xen-devel] [PATCH 4/4] xen/PVH: Remove reserved entry in PVH GDT

2018-05-02 Thread Jan Beulich
>>> On 30.04.18 at 18:23, wrote: > And without it we can't use _BOOT_XX macros any longer so define new ones. Ah, here we go. Perhaps this should be moved earlier in the series? Assuming you really want to go this route in the first place, taking Roger's comment into consideration. Jan

[PATCH] dt-bindings: Add vendor prefix for Avnet, Inc.

2018-05-02 Thread Michal Simek
"Avnet, Inc. is one of the world's largest distributors of electronic components and embedded solutions." - Wikipedia.org Website: www.avnet.com Signed-off-by: Michal Simek --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentati

Re: [PATCH 4/7] dt-bindings: gnss: add u-blox binding

2018-05-02 Thread Johan Hovold
On Tue, May 01, 2018 at 09:05:42AM -0500, Rob Herring wrote: > On Thu, Apr 26, 2018 at 4:10 AM, Johan Hovold wrote: > > On Wed, Apr 25, 2018 at 01:16:58PM -0500, Rob Herring wrote: > >> On Tue, Apr 24, 2018 at 11:34 AM, Johan Hovold wrote: > >> > Add binding for u-blox GNSS receivers. > >> > > >>

Re: [PATCH v5 1/3] mmc: dw_mmc-bluefield: Add driver extension

2018-05-02 Thread Jaehoon Chung
Hi, On 05/02/2018 03:19 AM, Liming Sun wrote: > This commit adds extension to the dw_mmc driver for Mellanox BlueField > SoC. It updates the UHS_REG_EXT register to bring up the eMMC card on > this SoC. Could you heck Shawn's comments? And add the minor comment. > > Cc: sta...@kernel.org > Sign

Re: [Xen-devel] [PATCH 3/4] xen/PVH: Set up GS segment for stack canary

2018-05-02 Thread Jan Beulich
>>> On 30.04.18 at 18:23, wrote: > --- a/arch/x86/xen/xen-pvh.S > +++ b/arch/x86/xen/xen-pvh.S > @@ -54,6 +54,9 @@ > * charge of setting up it's own stack, GDT and IDT. > */ > > +#define PVH_GDT_ENTRY_CANARY4 > +#define PVH_CANARY_SEL (PVH_GDT_ENTRY_CANARY * 8) I can only advis

Re: [PATCH v3] module: Fix display of wrong module .text address

2018-05-02 Thread Thomas-Mich Richter
On 05/02/2018 04:20 AM, Kees Cook wrote: > On Wed, Apr 18, 2018 at 12:14 AM, Thomas Richter > wrote: >> Reading file /proc/modules shows the correct address: >> [root@s35lp76 ~]# cat /proc/modules | egrep '^qeth_l2' >> qeth_l2 94208 1 - Live 0x03ff80401000 >> >> and reading file /sys/module/q

Re: [PATCH 0/4] Add STM32 timers to stm32mp157c

2018-05-02 Thread Alexandre Torgue
Hi Fabrice, On 04/17/2018 03:45 PM, Fabrice Gasnier wrote: This series adds support for STM32 timers to stm32mp157c. These timers can act PWM, trigger and/or encoder. Populate stm32mp157c SOC and ed1/ev1 boards. Fabrice Gasnier (4): ARM: dts: stm32: add timers support to stm32mp157c ARM:

Regression due to "Workaround for uPD72020x USB3 chips"

2018-05-02 Thread Domenico Andreoli
Dear all, my home machine stopped to boot starting from kernel version 4.12.7. The last message I read is about resetting some USB3 bus. It's 100% reproducible also with any recent kernel up to 4.17.0-rc3. I bisected down to the following commit: commit 0e1f0eaed6c20db41ff61e024b361ee3ec9d686

Re: [Ksummit-discuss] bug-introducing patches

2018-05-02 Thread Daniel Vetter
On Tue, May 1, 2018 at 11:15 PM, Mark Brown wrote: > On Tue, May 01, 2018 at 04:54:48PM -0400, Theodore Y. Ts'o wrote: >> I do think it's about AUTOSEL, because when I'm dealing with a >> regression, I want to get it fixed fast. Because the alternative is >> the merge-window commit getting revert

Re: [PATCH v8 22/24] mm: Speculative page fault handler return VMA

2018-05-02 Thread Ganesh Mahendran
2018-03-29 15:50 GMT+08:00 Laurent Dufour : > On 29/03/2018 05:06, Ganesh Mahendran wrote: >> 2018-03-29 10:26 GMT+08:00 Ganesh Mahendran : >>> Hi, Laurent >>> >>> 2018-02-16 23:25 GMT+08:00 Laurent Dufour : When the speculative page fault handler is returning VM_RETRY, there is a chance

Re: recent patch "x86/acpi: Prevent X2APIC id 0xffffffff from being accounted"

2018-05-02 Thread Dou Liyang
Hi Jan, At 05/02/2018 02:39 PM, Jan Beulich wrote: On 02.05.18 at 03:56, wrote: At 04/27/2018 08:09 PM, Jan Beulich wrote: I'm afraid I don't understand: Limiting the number of disabled CPUs is certainly desirable when those can never be used, but why would you want to do this when they might

Re: [PATCH 1/2] Fix FSL NAND driver to read all ONFI parameter pages

2018-05-02 Thread Miquel Raynal
Hi Jane, On Tue, 1 May 2018 05:01:23 +, "Wan, Jane (Nokia - US/Sunnyvale)" wrote: > Hi Miquèl and Boris, > > Thank you for your response and feedback. I've modified the fix based on > your comments. > Please see the updated patch file at the end of this message (also in > attachment).

Re: [PATCH v2 1/2] drm/ttm: Only allocate huge pages with new flag TTM_PAGE_FLAG_TRANSHUGE

2018-05-02 Thread Michel Dänzer
On 2018-04-29 01:56 AM, Ilia Mirkin wrote: > On Sat, Apr 28, 2018 at 7:02 PM, Michel Dänzer wrote: >> >> Unfortunately, there was an swiotlb regression (not directly related to >> Christian's work) shortly after this fix, also in 4.16-rc1, which is now >> fixed in 4.17-rc1 and will be backported t

Re: [PATCH v2] mtd: onenand: omap2: Disable DMA for HIGHMEM buffers

2018-05-02 Thread Ladislav Michl
Hi Boris, (and apologies for delay) On Fri, Apr 20, 2018 at 10:01:34PM +0200, Boris Brezillon wrote: > Hi Ladislav, > > On Mon, 16 Apr 2018 08:52:59 +0200 > Ladislav Michl wrote: > > > dma_map_single doesn't get the proper DMA address for vmalloced area, > > That's not true, it returns the ri

Re: [Xen-devel] [PATCH 2/4] xen/PVH: Use proper CS selector in long mode

2018-05-02 Thread Jan Beulich
>>> On 30.04.18 at 18:23, wrote: > Signed-off-by: Boris Ostrovsky Reviewed-by: Jan Beulich But to understand why things have been working nevertheless it would have been nice if the commit message wasn't empty, but instead said something like "The two happen to be identical on 64-bit." Jan

Re: [RFC V3 PATCH 1/8] vhost: move get_rx_bufs to vhost.c

2018-05-02 Thread Tiwei Bie
On Mon, Apr 23, 2018 at 01:34:53PM +0800, Jason Wang wrote: > Move get_rx_bufs() to vhost.c and rename it to > vhost_get_rx_bufs(). This helps to hide vring internal layout from A small typo. Based on the code change in this patch, it seems that this function is renamed to vhost_get_bufs(). Thank

Re: [PATCH] fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers

2018-05-02 Thread Mathieu Malaterre
On Fri, Apr 6, 2018 at 9:52 PM, Mathieu Malaterre wrote: > This helps initramfs builders and other tools to find the full > dependencies of a module. Replaced by: https://github.com/torvalds/linux/commit/7ef79ad521367 > Debian on powerpc (ppc32) still uses yaboot as default boot loader. Using a

[PATCH v2] watchdog: sp805: add restart handler

2018-05-02 Thread Jongsung Kim
Add restart handler for SP805 watchdog so that the driver can be used to reboot the system. Signed-off-by: Jongsung Kim Cc: Guenter Roeck --- drivers/watchdog/sp805_wdt.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt

Re: [Xen-devel] [PATCH 1/4] xen/PVH: Replace GDT_ENTRY with explicit constant

2018-05-02 Thread Jan Beulich
>>> On 30.04.18 at 18:23, wrote: > Latest binutils release (2.29.1) will no longer allow proper computation > of GDT entries on 32-bits, with warning: > > arch/x86/xen/xen-pvh.S: Assembler messages: > arch/x86/xen/xen-pvh.S:150: Warning: shift count out of range (32 is not > between 0 and 31) >

Re: [PATCH v2 0/5] ALSA: xen-front: Add Xen para-virtualized frontend driver

2018-05-02 Thread Oleksandr Andrushchenko
Gentle reminder... I think that Xen side comments are already there and still I miss some input from ALSA community on patch #5. Thank you, Oleksandr On 04/16/2018 09:24 AM, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko Please note: this patch series depends on [3]. This p

Re: [PATCH 1/7] gnss: add GNSS receiver subsystem

2018-05-02 Thread Johan Hovold
On Sun, Apr 29, 2018 at 03:35:11PM +0200, Greg Kroah-Hartman wrote: > I'll wait for the next resend of this series to review it again and > consider merging it. Thanks, I'll send a v2 sometime next week. Johan

Re: [PATCH 2/2] clk: qcom: Add video clock controller driver for SDM845

2018-05-02 Thread Nischal, Amit
On 5/2/2018 3:11 AM, Stephen Boyd wrote: Quoting Amit Nischal (2018-04-24 06:32:51) Add support for the video clock controller found on SDM845 based devices. This would allow video drivers to probe and control their clocks. Signed-off-by: Amit Nischal Driver looks small and good. Only conce

[PATCH 2/2] arm64/mm: add speculative page fault

2018-05-02 Thread Ganesh Mahendran
This patch enables the speculative page fault on the arm64 architecture. I completed spf porting in 4.9. From the test result, we can see app launching time improved by about 10% in average. For the apps which have more than 50 threads, 15% or even more improvement can be got. Signed-off-by: Gane

Re: [PATCH] watchdog: sp805: add restart handler

2018-05-02 Thread Jongsung Kim
On 04/30/2018 08:18 PM, Guenter Roeck wrote: > On 04/29/2018 11:44 PM, Jongsung Kim wrote: >> Add restart handler for SP805 watchdog so that the driver can be >> used to reboot the system. >> >> Signed-off-by: Jongsung Kim >> --- >>   drivers/watchdog/sp805_wdt.c | 19 +++ >>   1 fi

[PATCH 1/2] arm64/mm: define ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT

2018-05-02 Thread Ganesh Mahendran
Set ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT for arm64. This enables Speculative Page Fault handler. Signed-off-by: Ganesh Mahendran --- This patch is on top of Laurent's v10 spf --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index

[PATCH 1/2] arm64/mm: define ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT

2018-05-02 Thread Ganesh Mahendran
Set ARCH_SUPPORTS_SPECULATIVE_PAGE_FAULT for arm64. This enables Speculative Page Fault handler. Signed-off-by: Ganesh Mahendran --- This patch is on top of Laurent's v10 spf --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index

[PATCH] doc: botching-up-ioctls: Make it clearer why structs must be padded

2018-05-02 Thread Daniel Vetter
This came up in discussions when reviewing drm patches. Cc: Eric Anholt Cc: linux-...@vger.kernel.org Cc: Jonathan Corbet Signed-off-by: Daniel Vetter -- Aside: I wonder whether we shouldn't move this to some other place and rst-ify it? Any good suggestions? -Daniel --- Documentation/ioctl/b

Re: [PATCH] ARM: dts: at91: sama5d4ek: use canonical compatible for touchscreen

2018-05-02 Thread Alexandre Belloni
On 01/05/2018 15:48:33-0700, Dmitry Torokhov wrote: > The canonical compatible string is "atmel,maxtouch", let's use it. Also, > change the node name to be "touchscreen" rather than driver name. > > Signed-off-by: Dmitry Torokhov > --- > arch/arm/boot/dts/at91-sama5d4ek.dts | 4 ++-- > 1 file ch

[PATCH v2 3/3] ARM: dts: stm32: Add ADC support to stm32mp157c

2018-05-02 Thread Fabrice Gasnier
stm32mp157c has an ADC block with two physical ADCs. Signed-off-by: Fabrice Gasnier --- arch/arm/boot/dts/stm32mp157c.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi b/arch/arm/boot/dts/stm32mp157c.dtsi index bc3eddc.

Re: [PATCH v3] sh: mm: Fix unprotected access to struct device

2018-05-02 Thread jacopo mondi
Hi again Christoph, The gentle ping actually applies to this version of the patch. Sorry for the confusion. Thanks j On Wed, Apr 18, 2018 at 11:42:35AM +0200, Jacopo Mondi wrote: > With commit ce88313069c36eef80f21fd7 ("arch/sh: make the DMA mapping > operations observe dev->dma_pfn_offse

[PATCH v2 1/3] dt-bindings: iio: stm32-adc: add support for STM32MP1

2018-05-02 Thread Fabrice Gasnier
Document support for STM32MP1 ADC. It's quite similar to STM32H7 ADC. Introduce "st,stm32mp1-adc" compatible to handle variants of this hardware such as vregready flag, interrupts, clock rate. Signed-off-by: Fabrice Gasnier --- Changes in v2: - Update dt-bindings following Rob's remark: STM32MP1

[PATCH v2 2/3] iio: adc: stm32-adc: add support for STM32MP1

2018-05-02 Thread Fabrice Gasnier
Add support for STM32MP1 ADC. It's quite similar to STM32H7 ADC. Introduce new compatible to handle variants of this hardware such as vregready flag, trigger list, interrupts, clock rate. Signed-off-by: Fabrice Gasnier --- drivers/iio/adc/stm32-adc-core.c | 66 +--

[PATCH v2 0/3] Add support for STM32MP1 ADC

2018-05-02 Thread Fabrice Gasnier
Add support for STM32MP1 Analog to Digital Converter variant. It's quite similar to STM32H7 ADC and re-use most of existing driver. --- Changes in v2: - Update dt-bindings following Rob's remark: STM32MP1 ADC has two interrupt lines Fabrice Gasnier (3): dt-bindings: iio: stm32-adc: add suppor

Re: [PATCH 1/2] dt-bindings: clock: Introduce QCOM Video clock bindings

2018-05-02 Thread Amit Nischal
On 2018-05-01 19:20, Rob Herring wrote: On Tue, Apr 24, 2018 at 07:02:50PM +0530, Amit Nischal wrote: Add device tree bindings for video clock controller for Qualcomm Technology Inc's SoCs. Signed-off-by: Amit Nischal --- .../devicetree/bindings/clock/qcom,videocc.txt | 18 ++

Re: [PATCH v6 1/3] clk: qcom: Configure the RCGs to a safe source as needed

2018-05-02 Thread Stephen Boyd
Quoting Amit Nischal (2018-04-30 09:20:08) > diff --git a/drivers/clk/qcom/clk-rcg.h b/drivers/clk/qcom/clk-rcg.h > index 2a7489a..f795b3e 100644 > --- a/drivers/clk/qcom/clk-rcg.h > +++ b/drivers/clk/qcom/clk-rcg.h > @@ -1,5 +1,5 @@ > /* > - * Copyright (c) 2013, The Linux Foundation. All rights

Re: [alsa-devel] [PATCH v4 3/3] ALSA: hda: Disabled unused audio controller for Dell platforms with Switchable Graphics

2018-05-02 Thread Lukas Wunner
On Thu, Apr 26, 2018 at 03:52:08PM +0800, Kai Heng Feng wrote: > > On Apr 25, 2018, at 5:13 AM, Lukas Wunner wrote: > > On Mon, Apr 23, 2018 at 04:18:35PM +0800, Kai Heng Feng wrote: > > > That's because the audio device got runtime suspended by the graphics. > > > > > > In this case, if we really

Re: [PATCH] v3d: fixup for submit alignment and check for zero flags in other ioctls.

2018-05-02 Thread Daniel Vetter
On Tue, May 01, 2018 at 10:58:45AM -0700, Eric Anholt wrote: > Signed-off-by: Eric Anholt > --- > > airlied + danvet: this is the last change I think we need before I can > merge v3d with your acks. Sending as a diff so you don't have to look > at the whole thing again. Look good? Hm I thought

Re: [v4.17-rcx] Lost IBPB, IBRS_FW support for spectre_v2 mitigation.

2018-05-02 Thread Jörg Otte
2018-05-01 22:14 GMT+02:00 Linus Torvalds : > On Tue, May 1, 2018 at 5:59 AM Thomas Gleixner wrote: > >> Then I really have no idea how reverting the patch you pointed out would >> fix it. > > So I do think that the original patch is buggy. > > What I think *may* be going on is: > > - first we d

RE: [PATCH v6 01/11] perf/x86/intel/pt: Move Intel-PT MSR bit definitions to a public header

2018-05-02 Thread Kang, Luwei
> > Intel Processor Trace virtualization enabling in guest need to use > > these MSR bits, so move them to public header msr-index.h. > > Introduce RTIT_CTL_FABRIC_EN and sync the definitions to latest spec. > > You forgot to Cc the maintainers. > > Also, this patch does 2 things, I think we have

[PATCH 2/3] drm/rockchip: lvds: avoid duplicating drm_bridge_attach

2018-05-02 Thread Peter Rosin
drm_bridge_attach takes care of these assignments, so there is no need to open-code them a second time. Signed-off-by: Peter Rosin --- drivers/gpu/drm/rockchip/rockchip_lvds.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_lvds.c b/drivers/gpu/drm/rockchi

[PATCH 3/3] drm/exynos: hdmi: avoid duplicating drm_bridge_attach

2018-05-02 Thread Peter Rosin
drm_bridge_attach takes care of these assignments, so there is no need to open-code them a second time. Signed-off-by: Peter Rosin --- drivers/gpu/drm/exynos/exynos_hdmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_h

Re: [PATCH] sh: mm: Fix unprotected access to struct device

2018-05-02 Thread jacopo mondi
Hi Christoph, On Fri, Apr 20, 2018 at 11:59:13AM +0200, Geert Uytterhoeven wrote: > Hi Christoph, > > On Fri, Apr 20, 2018 at 10:31 AM, Christoph Hellwig > wrote: > > On Wed, Apr 18, 2018 at 03:13:14PM +0200, jacopo mondi wrote: > >> As long as it goes for arch/sh, the only user of dma_alloc_coh

[PATCH 1/3] drm/sti: do not remove the drm_bridge that was never added

2018-05-02 Thread Peter Rosin
The more natural approach would perhaps be to add an drm_bridge_add, but there are several other bridges that never call drm_bridge_add. Just removing the drm_bridge_remove is the easier fix. Signed-off-by: Peter Rosin --- drivers/gpu/drm/sti/sti_hda.c | 1 - drivers/gpu/drm/sti/sti_hdmi.c | 1

[PATCH 0/3] drm: fix some bridge api misunderstandings

2018-05-02 Thread Peter Rosin
Hi! While looking at various drm bridge users, I came across these issues. Cheers, Peter Peter Rosin (3): drm/sti: do not remove the drm_bridge that was never added drm/rockchip: lvds: avoid duplicating drm_bridge_attach drm/exynos: hdmi: avoid duplicating drm_bridge_attach drivers/gpu/d

Re: [PATCH v3 0/6] KVM: x86: hyperv: PV TLB flush for Windows guests

2018-05-02 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > > Qemu (and other userspaces) need to enable CPUID feature bits to make > Windows aware the feature is supported. I'll post Qemu enablement patch > separately. Radim, Paolo, I'd like to send Qemu feature enablement patch for this feature but before I do that I'd like

Re: [PATCH] clk: imx6ul: fix periph clk2 clock mux selection

2018-05-02 Thread Shawn Guo
Add linux-imx list, in case NXP friends have a comment. On Wed, Apr 18, 2018 at 02:52:54PM +0200, Stefan Agner wrote: > According to the data sheet the 3rd choice is the bypass clock > of pll2. This should not have any effect in practice as this > selection is not used currently. > > Signed-off-b

Re: [PATCH 26/28] venus: implementing multi-stream support

2018-05-02 Thread Vikash Garodia
Hello Stanimir, On 2018-04-24 18:14, Stanimir Varbanov wrote: This is implementing a multi-stream decoder support. The multi stream gives an option to use the secondary decoder output with different raw format (or the same in case of crop). Signed-off-by: Stanimir Varbanov --- drivers/media/p

Re: [PATCH] clk: imx6ull: use OSC clock during AXI rate change

2018-05-02 Thread Shawn Guo
Hi Jacky, Do you see this problem on i.MX6 ULL? What's your take on Stefan's fix? Shawn On Wed, Apr 18, 2018 at 02:49:08PM +0200, Stefan Agner wrote: > On i.MX6 ULL using PLL3 seems to cause a freeze when setting > the parent to IMX6UL_CLK_PLL3_USB_OTG. This only seems to appear > since commit

Re: [PATCH v2] KVM: x86: VMX: hyper-v: Enlightened MSR-Bitmap support

2018-05-02 Thread Vitaly Kuznetsov
Vitaly Kuznetsov writes: > Enlightened MSR-Bitmap is a natural extension of Enlightened VMCS: > Hyper-V Top Level Functional Specification states: > > "The L1 hypervisor may collaborate with the L0 hypervisor to make MSR > accesses more efficient. It can enable enlightened MSR bitmaps by setting

Re: possible deadlock in blkdev_reread_part

2018-05-02 Thread Dmitry Vyukov
/\/\/\/\/\/\On Fri, Apr 20, 2018 at 4:06 PM, Tetsuo Handa wrote: > Tetsuo Handa wrote: >> Eric Biggers wrote: >> > It seems that ->bd_mutex is held while opening and closing block devices, >> > which >> > should rank it above both ->lo_ctl_mutex and loop_index_mutex (see >> > lo_open() and >> >

general protection fault in lo_ioctl (2)

2018-05-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:fff75eb2a08c Merge tag 'errseq-v4.17' of git://git.kernel.o... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?id=5301511529693184 kernel config: https://syzkaller.appspot.com/x/.config?id=64935577

Re: [PATCH 0/5] kernel hacking: GCC optimization for debug experience (-Og)

2018-05-02 Thread Ingo Molnar
* changbin...@intel.com wrote: > Comparison of system performance: a bit drop. > > w/o CONFIG_DEBUG_EXPERIENCE > $ time make -j4 > real6m43.619s > user19m5.160s > sys 2m20.287s > > w/ CONFIG_DEBUG_EXPERIENCE > $ time make -j4 > real6m55.054s >

Re: [RFC v3 4/5] virtio_ring: add event idx support in packed ring

2018-05-02 Thread Tiwei Bie
On Wed, May 02, 2018 at 10:51:06AM +0800, Jason Wang wrote: > On 2018年04月25日 13:15, Tiwei Bie wrote: > > This commit introduces the event idx support in packed > > ring. This feature is temporarily disabled, because the > > implementation in this patch may not work as expected, > > and some further

[PATCH 1/1] vfio: ccw: fix error return in vfio_ccw_sch_event

2018-05-02 Thread Dong Jia Shi
If device has not been registered, or there is a pending work, we should reschedule a sch_event call again. Signed-off-by: Dong Jia Shi --- drivers/s390/cio/vfio_ccw_drv.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/s390/cio/vfio_ccw_drv.c b/drivers/s390/cio/v

Re: [PATCH v2 6/9] drm/panel: Add Netron DY E231732

2018-05-02 Thread Paul Kocialkowski
Hi, Le vendredi 09 septembre 2016 à 16:35 +0200, Maxime Ripard a écrit : > On Wed, Sep 07, 2016 at 12:01:56AM +0800, Chen-Yu Tsai wrote: > > Hi, > > > > On Tue, Sep 6, 2016 at 10:46 PM, Maxime Ripard > > wrote: > > > The E231732 is a 7" panel with a resolution of 800x480. > > > > From what I co

Re: [PATCH v6 3/3] clk: qcom: Add Global Clock controller (GCC) driver for SDM845

2018-05-02 Thread Stephen Boyd
Quoting Amit Nischal (2018-04-30 09:20:10) > --- > .../devicetree/bindings/clock/qcom,gcc.txt |1 + > drivers/clk/qcom/Kconfig | 10 +- > drivers/clk/qcom/Makefile |1 + > drivers/clk/qcom/gcc-sdm845.c | 3480

Re: [PATCH] USB: serial: option: adding support for ublox R410M

2018-05-02 Thread Johan Hovold
On Thu, Apr 26, 2018 at 02:12:32PM -0500, Dan Williams wrote: > On Thu, 2018-04-26 at 18:29 +0200, Johan Hovold wrote: > > On Thu, Apr 26, 2018 at 11:22:25PM +0700, Lars Melin wrote: > > > On 4/26/2018 23:12, Johan Hovold wrote: > > > > On Thu, Apr 26, 2018 at 06:40:46PM +0700, Lars Melin wrote: >

Re: [PATCH] efi/capsule-loader: Don't output reset log when header flags is not set

2018-05-02 Thread Ard Biesheuvel
On 2 May 2018 at 03:29, Yang, Shunyong wrote: > Hi, Ard, > > On Tue, 2018-05-01 at 11:54 +0200, Ard Biesheuvel wrote: >> On 25 April 2018 at 05:10, Shunyong Yang > com> wrote: >> > >> > It means firmware attempts to immediately process or launch the >> > capsule >> > when flags in capsule header i

Re: [PATCH v2] inode: debugfs_create_dir uses mode permission from parent

2018-05-02 Thread Thomas-Mich Richter
On 04/27/2018 04:58 PM, Kees Cook wrote: > On Fri, Apr 27, 2018 at 6:49 AM, Greg KH wrote: >> I'm going to add Kees and the kernel-hardning list here, as I'd like >> their opinions for the patch below. >> >> Kees, do you have any problems with this patch? I know you worked on >> making debugfs mo

Re: Build regressions/improvements in v4.17-rc3

2018-05-02 Thread Geert Uytterhoeven
On Tue, May 1, 2018 at 8:14 PM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.17-rc3[1] to v4.17-rc2[3], the summaries are: > - build errors: +3/-0 + error: core.c: undefined reference to `of_find_regulator_by_node': => .text+0xa4d) i386-randconfig More context: drivers/regulator

[PATCH] mailbox: arm_mhu: add support for mhuv2

2018-05-02 Thread Samarth Parikh
Hi Jassi, I am resending the patch for review, in case you have missed my previous patch. Can you please go through it and let me know your thoughts on the same? ARM has launched a next version of MHU i.e. MHUv2 with its latest subsystems. The main change is that the MHUv2 is now a distributed IP

<    5   6   7   8   9   10   11   >