[PATCH 4.9 02/63] serial: 8250_pci: Add MKS Tenta SCOM-0800 and SCOM-0801 cards

2017-03-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Ian Abbott commit 1c9c858e2ff8ae8024a3d75d2ed080063af43754 upstream. The MKS Instruments SCOM-0800 and SCOM-0801 cards (originally by Tenta Technologies) are 3U CompactPCI serial cards with 4 a

[PATCH 4.9 09/63] s390/chsc: Add exception handler for CHSC instruction

2017-03-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Peter Oberparleiter commit 77759137248f34864a8f7a58bbcebfcf1047504a upstream. Prevent kernel crashes due to unhandled exceptions raised by the CHSC instruction which may for example be triggere

[PATCH 4.9 06/63] s390/qdio: clear DSCI prior to scanning multiple input queues

2017-03-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Julian Wiedmann commit 1e4a382fdc0ba8d1a85b758c0811de3a3631085e upstream. For devices with multiple input queues, tiqdio_call_inq_handlers() iterates over all input queues and clears the device

Re: [PATCH] futex: move debug_rt_mutex_free_waiter() further down

2017-03-13 Thread Peter Zijlstra
On Wed, Mar 08, 2017 at 04:29:02PM +0100, Sebastian Andrzej Siewior wrote: > kernel/futex.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/futex.c b/kernel/futex.c > index 00ec4a01d3f5..73abfe0da4d0 100644 > --- a/kernel/futex.c > +++ b/kernel/futex.c > @@ -3046,

[PATCH 4.9 04/63] KVM: VMX: use correct vmcs_read/write for guest segment selector/base

2017-03-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Chao Peng commit 96794e4ed4d758272c486e1529e431efb7045265 upstream. Guest segment selector is 16 bit field and guest segment base is natural width field. Fix two incorrect invocations according

[PATCH 4.9 13/63] net: mvpp2: fix DMA address calculation in mvpp2_txq_inc_put()

2017-03-13 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Petazzoni commit 239a3b663647869330955ec59caac0100ef9b60a upstream. When TX descriptors are filled in, the buffer DMA address is split between the tx_desc->buf_phys_addr field (high-orde

[PATCH 4.4 08/36] s390/dcssblk: fix device size calculation in dcssblk_direct_access()

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Gerald Schaefer commit a63f53e34db8b49675448d03ae324f6c5bc04fe6 upstream. Since commit dd22f551 "block: Change direct_access calling convention", the device size calculation in dcssblk_direct_a

[PATCH 4.4 07/36] s390/qdio: clear DSCI prior to scanning multiple input queues

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Julian Wiedmann commit 1e4a382fdc0ba8d1a85b758c0811de3a3631085e upstream. For devices with multiple input queues, tiqdio_call_inq_handlers() iterates over all input queues and clears the device

[PATCH 4.4 04/36] KVM: s390: Disable dirty log retrieval for UCONTROL guests

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Janosch Frank commit e1e8a9624f7ba8ead4f056ff558ed070e86fa747 upstream. User controlled KVM guests do not support the dirty log, as they have no single gmap that we can check for changes. As t

[PATCH 4.4 35/36] fat: fix using uninitialized fields of fat_inode/fsinfo_inode

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: OGAWA Hirofumi commit c0d0e351285161a515396b7b1ee53ec9ffd97e3c upstream. Recently fallocate patch was merged and it uses MSDOS_I(inode)->mmu_private at fat_evict_inode(). However, fat_inode/fs

[PATCH 4.4 36/36] drivers: hv: Turn off write permission on the hypercall page

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: K. Y. Srinivasan commit 372b1e91343e657a7cc5e2e2bcecd5140ac28119 upstream. The hypercall page only needs to be executable but currently it is setup to be writable as well. Fix the issue. Signe

[PATCH 4.4 34/36] libceph: use BUG() instead of BUG_ON(1)

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit d24cdcd3e40a6825135498e11c20c7976b9bf545 upstream. I ran into this compile warning, which is the result of BUG_ON(1) not always leading to the compiler treating the code pa

[PATCH 4.4 32/36] fakelb: fix schedule while atomic

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Alexander Aring commit bdca1fd9a6df745857e23c6056494b7fe062b4e6 upstream. This patch changes the spinlock to mutex for the available fakelb phy list. When holding the spinlock the ieee802154_un

[PATCH 4.4 26/36] drm/ast: Fix test for VGA enabled

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Y.C. Chen commit 905f21a49d388de3e99438235f3301cabf0c0ef4 upstream. The test to see if VGA was already enabled is doing an unnecessary second test from a register that may or may not have been

[PATCH 4.4 31/36] drm/atomic: fix an error code in mode_fixup()

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit f9ad86e42d0303eeb8e0d41bb208153022ebd9d2 upstream. Having "ret" be a bool type works for everything except ret = funcs->atomic_check(). The other functions all return zero

[PATCH 4.4 24/36] mac80211: flush delayed work when entering suspend

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Matt Chen commit a9e9200d8661c1a0be8c39f93deb383dc940de35 upstream. The issue was found when entering suspend and resume. It triggers a warning in: mac80211/key.c: ieee80211_enable_keys() ... W

[BUG] [PowerPC] Kernel Oops when booting Linux mainline

2017-03-13 Thread Abdul Haleem
Hi, Mainline boot is broken on PowerPC bare metal with below traces: Machine Type : Power 8 Bare metal [ OK ] Mounted Debug File System. [ OK ] Started Nameserver information manager. [ OK ] Started LVM2 metadata daemon. Unable to handle kernel paging request for data at address 0x30079

Re: WTH is going on with memory hotplug sysf interface

2017-03-13 Thread Michal Hocko
On Fri 10-03-17 12:39:27, Yasuaki Ishimatsu wrote: > On 03/10/2017 08:58 AM, Michal Hocko wrote: [...] > >OK so I did with -m 2G,slots=4,maxmem=4G -numa node,mem=1G -numa node,mem=1G > >which generated > >[...] > >[0.00] ACPI: SRAT: Node 0 PXM 0 [mem 0x-0x0009] > >[0.00

[PATCH 4.4 23/36] xtensa: move parse_tag_fdt out of #ifdef CONFIG_BLK_DEV_INITRD

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Max Filippov commit 4ab18701c66552944188dbcd0ce0012729baab84 upstream. FDT tag parsing is not related to whether BLK_DEV_INITRD is configured or not, move it out of the corresponding #ifdef/#en

[PATCH 4.4 15/36] IB/IPoIB: Add destination address when re-queue packet

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Erez Shitrit commit 2b0841766a898aba84630fb723989a77a9d3b4e6 upstream. When sending packet to destination that was not resolved yet via path query, the driver keeps the skb and tries to re-send

[PATCH] tpm: Add sysfs interface to show TPM family version

2017-03-13 Thread Meng.Li
From: Limeng So far, there is not a sysfs interface for user space code to check the TPM family version(TPM1.x or TPM2). So, add a file named description in /sys/class/tpm/tpmX/ to show it. Signed-off-by: Meng Li --- drivers/char/tpm/tpm-chip.c | 70 ++

[PATCH 4.4 20/36] target: Fix NULL dereference during LUN lookup + active I/O shutdown

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit bd4e2d2907fa23a11d46217064ecf80470ddae10 upstream. When transport_clear_lun_ref() is shutting down a se_lun via configfs with new I/O in-flight, it's possible to trigg

[PATCH 4.4 21/36] nlm: Ensure callback code also checks that the files match

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Trond Myklebust commit 251af29c320d86071664f02c76f0d063a19fefdf upstream. It is not sufficient to just check that the lock pids match when granting a callback, we also need to ensure that we're

[PATCH 4.4 22/36] pwm: pca9685: Fix period change with same duty cycle

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Clemens Gruber commit 8d254a340efb12b40c4c1ff25a48a4f48f7bbd6b upstream. When first implementing support for changing the output frequency, an optimization was added to continue the PWM after c

Re: WTH is going on with memory hotplug sysf interface (was: Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks)

2017-03-13 Thread Michal Hocko
On Fri 10-03-17 13:00:37, Reza Arbab wrote: > On Fri, Mar 10, 2017 at 04:53:33PM +0100, Michal Hocko wrote: > >OK, so while I was playing with this setup some more I probably got why > >this is done this way. All new memblocks are added to the zone Normal > >where they are accounted as spanned but

[PATCH 4.4 17/36] IB/srp: Fix race conditions related to task management

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Bart Van Assche commit 0a6fdbdeb1c25e31763c1fb333fa2723a7d2aba6 upstream. Avoid that srp_process_rsp() overwrites the status information in ch if the SRP target response timed out and processin

[PATCH 4.4 19/36] ceph: remove req from unsafe list when unregistering it

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Jeff Layton commit df963ea8a082d31521a120e8e31a29ad8a1dc215 upstream. There's no reason a request should ever be on a s_unsafe list but not in the request tree. Link: http://tracker.ceph.com/i

[PATCH v2] extcon: int3496: Set the id pin to direction-input if necessary

2017-03-13 Thread Hans de Goede
With the new more strict ACPI gpio code the dsdt's IoRestriction flags are honored on gpiod_get, but in some dsdt's it is wrong, so explicitly call gpiod_direction_input on the id gpio if necessary. This fixes the following errors when the int3496 code is used together with the new more strict ACP

[PATCH 4.4 13/36] mnt: Tuck mounts under others instead of creating shadow/side mounts.

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Eric W. Biederman commit 1064f874abc0d05eeed8993815f584d847b72486 upstream. Ever since mount propagation was introduced in cases where a mount in propagated to parent mount mountpoint pair that

[PATCH 4.4 12/36] net: mvpp2: fix DMA address calculation in mvpp2_txq_inc_put()

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Petazzoni commit 239a3b663647869330955ec59caac0100ef9b60a upstream. When TX descriptors are filled in, the buffer DMA address is split between the tx_desc->buf_phys_addr field (high-orde

[PATCH 4.4 10/36] s390: make setup_randomness work

2017-03-13 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Heiko Carstens commit da8fd820f389a0e29080b14c61bf5cf1d8ef5ca1 upstream. Commit bcfcbb6bae64 ("s390: add system information as device randomness") intended to add some virtual machine specific

Re: [PATCH] [media] atmel-isc: fix off-by-one comparison and out of bounds read issue

2017-03-13 Thread Hans Verkuil
On 03/13/2017 06:53 AM, Wu, Songjun wrote: > > > On 3/9/2017 18:57, Hans Verkuil wrote: >> Hi Songjun, >> >> On 08/03/17 03:25, Wu, Songjun wrote: >>> Hi Colin, >>> >>> Thank you for your comment. >>> It is a bug, will be fixed in the next patch. >> >> Do you mean that you will provide a new patc

Re: [PATCH -v5 14/14] futex: futex_unlock_pi() determinism

2017-03-13 Thread Peter Zijlstra
On Tue, Mar 07, 2017 at 03:31:50PM +0100, Thomas Gleixner wrote: > On Sat, 4 Mar 2017, Peter Zijlstra wrote: > > > The problem with returning -EAGAIN when the waiter state mismatches is > > that it becomes very hard to proof a bounded execution time on the > > operation. And seeing that this is a

RE: [PATCH] net: usb: r8152: use new api ethtool_{get|set}_link_ksettings

2017-03-13 Thread Hayes Wang
Philippe Reynes [mailto:trem...@gmail.com] > Sent: Monday, March 13, 2017 5:42 AM > Subject: [PATCH] net: usb: r8152: use new api ethtool_{get|set}_link_ksettings > > The ethtool api {get|set}_settings is deprecated. > We move this driver to new api {get|set}_link_ksettings. > > As I don't have t

Re: [PATCH] drm: dw_hdmi: Gate audio sampler clock from the enablement functions

2017-03-13 Thread Neil Armstrong
On 03/10/2017 10:35 AM, Romain Perier wrote: > Currently, the audio sampler clock is enabled from dw_hdmi_setup() at > step E. and is kept enabled for later use. This clock should be enabled > and disabled along with the actual audio stream and not always on (that > is bad for PM). Futhermore, this

Re: [PATCH v3 0/3] Bind RMI4 over SMBus from PS/2

2017-03-13 Thread Benjamin Tissoires
Hi, On Mar 11 2017 or thereabouts, Calvin Walton wrote: > Hi, > > On Wed, 2017-03-08 at 16:24 +0100, Benjamin Tissoires wrote: > > Hi Dmitry, > > > > This is mostly a resend of the PS/2-SMBus binding (last 3 patches of > > now 3 years > > of trial and errors). > > I integrated both warnings rais

Re: [PATCH v5 00/39] i.MX Media Driver

2017-03-13 Thread Russell King - ARM Linux
On Mon, Mar 13, 2017 at 08:16:25AM +, Russell King - ARM Linux wrote: > On Sun, Mar 12, 2017 at 09:26:41PM -0700, Steve Longerbeam wrote: > > On 03/12/2017 01:22 PM, Russell King - ARM Linux wrote: > > >What I had was this patch for your v3. I never got to testing your > > >v4 because of the L

Re: [PATCH v2 11/21] x86/xen: split off smp_pv.c

2017-03-13 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > Basically, smp.c is renamed to smp_pv.c and some code moved out to common > smp.c. struct xen_common_irq delcaration ended up in smp.h. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gross Juergen

Re: [PATCH] [media] atmel-isc: fix off-by-one comparison and out of bounds read issue

2017-03-13 Thread Wu, Songjun
On 3/13/2017 17:25, Hans Verkuil wrote: On 03/13/2017 06:53 AM, Wu, Songjun wrote: On 3/9/2017 18:57, Hans Verkuil wrote: Hi Songjun, On 08/03/17 03:25, Wu, Songjun wrote: Hi Colin, Thank you for your comment. It is a bug, will be fixed in the next patch. Do you mean that you will prov

Re: [PATCH v2 12/21] x86/xen: split off mmu_hvm.c

2017-03-13 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > Move PVHVM related code to mmu_hvm.c. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gross Juergen

RE: Bad DT binding (hisi-pcie-almost-ecam)

2017-03-13 Thread Gabriele Paoloni
Hi Geert [...] > > { > > - .compatible = "hisilicon,pcie-almost-ecam", > > + .compatible = "hisilicon,pcie-almost-ecam-hip06", > > Shouldn't that be "hisilicon,hip06-pcie-almost-ecam"? > > > + .data = (void *) &hisi_pcie_platform_ops, > > + }, > > +

Re: [PATCH v2 13/21] x86/xen: split off mmu_pv.c

2017-03-13 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > Basically, mmu.c is renamed to mmu_pv.c and some code moved out to common > mmu.c. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gross Juergen

Re: [PATCH v2 16/21] x86/xen: define startup_xen for XEN PV only

2017-03-13 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > startup_xen references PV-only code, decorate it with #ifdef CONFIG_XEN_PV > to make PV-free builds possible. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gross Juergen

Re: Synaptics RMI4 touchpad regression in 4.11-rc1

2017-03-13 Thread Thorsten Leemhuis
Lo! On 12.03.2017 02:55, Cameron Gutman wrote: > > Beginning in 4.11-rc1, it looks like RMI4 is binding to my XPS 13 9343's > Synaptics touchpad and dropping some errors into dmesg. Here are the > messages that seem RMI-related: > > rmi4_f34 rmi4-00.fn34: rmi_f34v7_probe: Unrecognized bootloader v

Re: [PATCH] drm: dw_hdmi: Gate audio sampler clock from the enablement functions

2017-03-13 Thread Russell King - ARM Linux
On Mon, Mar 13, 2017 at 10:27:08AM +0100, Neil Armstrong wrote: > On 03/10/2017 10:35 AM, Romain Perier wrote: > > Currently, the audio sampler clock is enabled from dw_hdmi_setup() at > > step E. and is kept enabled for later use. This clock should be enabled > > and disabled along with the actual

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

2017-03-13 Thread Jon Hunter
Hi Rafael, Kevin, Ulf, Looks like there is still some interest/needs in/for this. Any thoughts on how we can move this forward? Cheers Jon On 28/02/17 15:29, Geert Uytterhoeven wrote: > Hi Jon, > > On Tue, Feb 28, 2017 at 4:18 PM, Jon Hunter wrote: >> On 20/09/16 11:28, Jon Hunter wrote: >>> T

RE: [PATCH] phy: rcar-gen3-usb2: fix implementation for runtime PM

2017-03-13 Thread Yoshihiro Shimoda
Hello! > -Original Message- > From: Sergei Shtylyov > Sent: Monday, March 13, 2017 6:04 PM > > Hello! > > On 3/13/2017 9:24 AM, Yoshihiro Shimoda wrote: > > > This patch fixes an issue that this driver doesn't take care of the runtime > > PM. This code assumed that devm_phy_create() cal

Re: [PATCHv6 4/5] x86/mm: check in_compat_syscall() instead TIF_ADDR32 for mmap(MAP_32BIT)

2017-03-13 Thread Thomas Gleixner
On Mon, 6 Mar 2017, Dmitry Safonov wrote: > Result of mmap() calls with MAP_32BIT flag at this moment depends > on thread flag TIF_ADDR32, which is set during exec() for 32-bit apps. > It's broken as the behavior of mmap() shouldn't depend on exec-ed > application's bitness. Instead, it should che

RE: {RFC PATCH v1 v4.11-rc1 1/1} acpi: apei: common handler in ghes for HW errors notified via hed(PNP0C33) driver

2017-03-13 Thread Shiju Jose
Hi Peter, Thanks for the comments. > -Original Message- > From: James Morse [mailto:james.mo...@arm.com] > Sent: 10 March 2017 17:16 > To: Shiju Jose > Cc: catalin.mari...@arm.com; will.dea...@arm.com; > tbai...@codeaurora.org; zjzh...@codeaurora.org; marc.zyng...@arm.com; > xuwei (O); Ga

[PATCH v2] phy: rcar-gen3-usb2: fix implementation for runtime PM

2017-03-13 Thread Yoshihiro Shimoda
This patch fixes an issue that this driver doesn't take care of the runtime PM. This code assumed that devm_phy_create() called pm_runtime_enable(dev), but it misunderstood the dev_phy_create()'s specification. This driver should call its own pm_runtime_pm() before dev_phy_create(). Fixes: f3b5a8d

[PATCH] [linux-next] x86/smpboot: Remove duplicate inclusion of asm/reammode.h

2017-03-13 Thread Masanari Iida
This patch remove duplicate asm/realmode.h in smpboot.c Confirm successfully compile after remove the line. Signed-off-by: Masanari Iida # Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message abo

Re: [PATCH 1/5] PCI: add resizeable BAR infrastructure v2

2017-03-13 Thread Christian König
Am 06.03.2017 um 13:20 schrieb Andy Shevchenko: On Mon, Mar 6, 2017 at 1:40 PM, Christian König wrote: + for (i = 0; i < nbars; ++i, pos += 8) { 8 is defined somewhere in the spec? (Yes, I understand that is just 64 bits shift) Yes, it is defined in the spec, see "Figure 7-x1 Resizable

Re: [PATCH v2 17/21] x86/xen: create stubs for HVM-only builds in page.h

2017-03-13 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > __pfn_to_mfn() is only used from PV code (mmu_pv.c, p2m.c) and from > page.h where all functions calling it check for > xen_feature(XENFEAT_auto_translated_physmap) first so we can replace > it with any stub to make build happy. > > set_foreign_p2m_mapp

Re: [PATCH v7] mm: Add memory allocation watchdog kernel thread.

2017-03-13 Thread Michal Hocko
On Sat 11-03-17 10:46:58, Tetsuo Handa wrote: > Michal Hocko wrote: > > So, we have means to debug these issues. Some of them are rather coarse > > and your watchdog can collect much more and maybe give us a clue much > > quicker but we still have to judge whether all this is really needed > > beca

Re: [PATCH v2 18/21] xen/balloon: decorate PV-only parts with #ifdef CONFIG_XEN_PV

2017-03-13 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > Balloon driver uses several PV-only concepts (xen_start_info, > xen_extra_mem,..) and it seems the simpliest solution to make HVM-only > build happy is to decorate these parts with #ifdefs. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gros

Re: [PATCH 1/1] HID: clamp input to logical range if no null state

2017-03-13 Thread Benjamin Tissoires
On Mar 12 2017 or thereabouts, Tomasz Kramkowski wrote: > On Thu, Mar 09, 2017 at 09:16:06AM +0100, Benjamin Tissoires wrote: > > We have a "clamp()" function in the kernel that does the job directly > > and which is more readable. Also, this makes testing the out of range > > values twice. > > >

Re: [PATCH v2 19/21] xen: create xen_create/destroy_contiguous_region() stubs for PVHVM only builds

2017-03-13 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > xen_create_contiguous_region()/xen_create_contiguous_region() are PV-only, > they both contain xen_feature(XENFEAT_auto_translated_physmap) check and > bail in the very beginning. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gross Juerg

Re: [PATCH v2 20/21] x86/xen: enable PVHVM-only builds

2017-03-13 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > Now everything is in place and we can move PV-only code under > CONFIG_XEN_PV. CONFIG_XEN_PV_SMP is created to support the change. > > Signed-off-by: Vitaly Kuznetsov Reviewed-by: Juergen Gross Juergen

Re: NFS corruption, fixed by echo 1 > /proc/sys/vm/drop_caches -- next debugging steps?

2017-03-13 Thread James Hogan
On Sun, Mar 12, 2017 at 06:43:47PM -0700, Matt Turner wrote: > On a Broadcom BCM91250a MIPS system I can reliably trigger NFS > corruption on the first file read. > > To demonstrate, I downloaded five identical copies of the gcc-5.4.0 > source tarball. On the NFS server, they hash to the same valu

Re: [PATCH v2 21/21] x86/xen: rename some PV-only functions in smp_pv.c

2017-03-13 Thread Juergen Gross
On 02/03/17 18:53, Vitaly Kuznetsov wrote: > After code split between PV and HVM some functions in xen_smp_ops have > xen_pv_ prefix and some only xen_ which makes them look like they're > common for both PV and HVM while they're not. Rename all the rest to > have xen_pv_ prefix. > > Signed-off-by

Re: [PATCH] hid: cp2112: select GPIOLIB_IRQCHIP instead of depending on it

2017-03-13 Thread Benjamin Tissoires
On Mar 12 2017 or thereabouts, Bartosz Golaszewski wrote: > GPIOLIB_IRQCHIP is not visible to user, so we can't depend on it. > > Depend on GPIOLIB but select GPIOLIB_IRQCHIP. > > Signed-off-by: Bartosz Golaszewski > --- Makes sense. Good catch Acked-by: Benjamin Tissoires > drivers/hid/Kco

[PATCH] x86/mce: Handle broadcasted MCE gracefully with kexec

2017-03-13 Thread Borislav Petkov
From: Xunlei Pang When we are about to kexec a crash kernel and right then and there a broadcasted MCE fires while we're still in the first kernel and while the other CPUs remain in a holding pattern, the #MC handler of the first kernel will timeout and then panic due to never completing MCE sync

Re: [RFC] mm/compaction: ignore block suitable after check large free page

2017-03-13 Thread Vlastimil Babka
On 03/10/2017 10:53 AM, Yisheng Xie wrote: > Hi Vlastimil, > > Thanks for comment. > On 2017/3/10 15:30, Vlastimil Babka wrote: >> On 03/10/2017 05:20 AM, Yisheng Xie wrote: >>> If the migrate target is a large free page and we ignore suitable, >>> it may not good for defrag. So move the ignore bl

Re: [PATCH v5 21/39] UAPI: Add media UAPI Kbuild file

2017-03-13 Thread Hans Verkuil
On 03/11/2017 07:20 PM, Steve Longerbeam wrote: > > > On 03/11/2017 05:49 AM, Sakari Ailus wrote: >> Hi Steve, >> >> On Thu, Mar 09, 2017 at 08:53:01PM -0800, Steve Longerbeam wrote: >>> Add an empty UAPI Kbuild file for media UAPI headers. >>> >>> Signed-off-by: Steve Longerbeam >> >> The exist

Re: [PATCH] [linux-next] x86/smpboot: Remove duplicate inclusion of asm/reammode.h

2017-03-13 Thread Thomas Gleixner
Masanari, On Mon, 13 Mar 2017, Masanari Iida wrote: > Subject : [PATCH] [linux-next] x86/smpboot: Remove duplicate inclusion of > asm/reammode.h The "linux-next" tag is pointless. The duplicate include is in Linus tree as well, so this is not linux-next specific at all. Please be more

Re: kvm/arm64: use-after-free in kvm_vm_ioctl/vmacache_update

2017-03-13 Thread Marc Zyngier
On 10/03/17 18:37, Suzuki K Poulose wrote: > On 10/03/17 15:50, Andrey Konovalov wrote: >> On Fri, Mar 10, 2017 at 2:38 PM, Andrey Konovalov >> wrote: >>> Hi, >>> >>> I've got the following error report while fuzzing the kernel with syzkaller. >>> >>> On linux-next commit 56b8bad5e066c23e8fa273ef

Re: [PATCH] mm: move pcp and lru-pcp drainging into single wq

2017-03-13 Thread Michal Hocko
On Fri 10-03-17 17:31:56, Yang Li wrote: > On Tue, Mar 7, 2017 at 7:17 AM, Michal Hocko wrote: > > From: Michal Hocko > > > > We currently have 2 specific WQ_RECLAIM workqueues in the mm code. > > vmstat_wq for updating pcp stats and lru_add_drain_wq dedicated to drain > > per cpu lru caches. Thi

Re: [PATCHv6 4/5] x86/mm: check in_compat_syscall() instead TIF_ADDR32 for mmap(MAP_32BIT)

2017-03-13 Thread Dmitry Safonov
On 03/13/2017 12:39 PM, Thomas Gleixner wrote: On Mon, 6 Mar 2017, Dmitry Safonov wrote: Result of mmap() calls with MAP_32BIT flag at this moment depends on thread flag TIF_ADDR32, which is set during exec() for 32-bit apps. It's broken as the behavior of mmap() shouldn't depend on exec-ed app

Re: [PATCH v2 12/23] MAINTAINERS: Add file patterns for media device tree bindings

2017-03-13 Thread Mauro Carvalho Chehab
Em Mon, 13 Mar 2017 08:43:52 +0100 Geert Uytterhoeven escreveu: > Hi Mauro, > > On Mon, Mar 13, 2017 at 2:02 AM, Mauro Carvalho Chehab > wrote: > > Em Sun, 12 Mar 2017 14:16:56 +0100 > > Geert Uytterhoeven escreveu: > > > >> Submitters of device tree binding documentation may forget to CC >

Re: futex: use-after-free in futex_wait_requeue_pi

2017-03-13 Thread Sebastian Andrzej Siewior
On 2017-03-13 09:06:20 [+0100], Peter Zijlstra wrote: > On Fri, Mar 10, 2017 at 07:10:30PM +0100, Dmitry Vyukov wrote: > > The following program triggers use-after-free in futex_wait_requeue_pi: > > https://gist.githubusercontent.com/dvyukov/42e596153263793b75ad587c8d0626b0/raw/35461a6c1b0a4163a671

Re: [PATCH v5 15/39] [media] v4l2: add a frame interval error event

2017-03-13 Thread Hans Verkuil
On 03/11/2017 07:14 PM, Steve Longerbeam wrote: > > > On 03/11/2017 03:39 AM, Hans Verkuil wrote: >> On 10/03/17 19:37, Steve Longerbeam wrote: >>> Hi Hans, >>> >>> On 03/10/2017 04:03 AM, Hans Verkuil wrote: On 10/03/17 05:52, Steve Longerbeam wrote: > Add a new FRAME_INTERVAL_ERROR eve

Re: futex: use-after-free in futex_wait_requeue_pi

2017-03-13 Thread Dmitry Vyukov
On Mon, Mar 13, 2017 at 11:02 AM, Sebastian Andrzej Siewior wrote: > On 2017-03-13 09:06:20 [+0100], Peter Zijlstra wrote: >> On Fri, Mar 10, 2017 at 07:10:30PM +0100, Dmitry Vyukov wrote: >> > The following program triggers use-after-free in futex_wait_requeue_pi: >> > https://gist.githubusercont

5-level pagetable patches break ppc64le

2017-03-13 Thread Anton Blanchard
Hi, My ppc64le boot tests stopped working as of commit c2febafc6773 ("mm: convert generic code to 5-level paging") We hang part way during boot, just before bringing up the network. I haven't had a chance to narrow it down yet. Anton

[PATCH V3 0/5] thermal: minor cleanup/fixes

2017-03-13 Thread Viresh Kumar
Hi, This series contains minor fixes/cleanups for thermal cooling drivers. V2->V3: - Added Acks from Rui - Resending as it was getting ignored until now :( V1->V2: - s/dev_warn/dev_err (Rafael) - Two new patches to make similar (^^) change at other places Viresh Kumar (5): thermal: devfreq:

Re: [RFC v3 5/5] sched/{core,cpufreq_schedutil}: add capacity clamping for RT/DL tasks

2017-03-13 Thread Joel Fernandes (Google)
Hi Patrick, On Tue, Feb 28, 2017 at 6:38 AM, Patrick Bellasi wrote: > Currently schedutil enforce a maximum OPP when RT/DL tasks are RUNNABLE. > Such a mandatory policy can be made more tunable from userspace thus > allowing for example to define a reasonable max capacity (i.e. > frequency) which

[PATCH V3 1/5] thermal: devfreq: Simplify expression

2017-03-13 Thread Viresh Kumar
There is no need to check for IS_ERR() as we are looking for a very particular error value here. Drop the first check. Reported-by: Dan Carpenter Signed-off-by: Viresh Kumar Acked-by: Zhang Rui --- drivers/thermal/devfreq_cooling.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH V3 2/5] thermal: devfreq_cooling: Replace dev_warn with dev_err

2017-03-13 Thread Viresh Kumar
There isn't much the user can do on seeing this warning, as the hardware is actually okay. dev_err suits much better here. Signed-off-by: Viresh Kumar Acked-by: Zhang Rui --- drivers/thermal/devfreq_cooling.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ther

[PATCH V3 4/5] thermal: cpu_cooling: Replace dev_warn with dev_err

2017-03-13 Thread Viresh Kumar
There isn't much the user can do on seeing these warnings, as the hardware is actually okay. dev_err suits much better here. Signed-off-by: Viresh Kumar Acked-by: Zhang Rui --- drivers/thermal/cpu_cooling.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH V3 3/5] thermal: devfreq: Check OPP for errors

2017-03-13 Thread Viresh Kumar
It is possible for dev_pm_opp_find_freq_exact() to return errors. It was all fine earlier as dev_pm_opp_get_voltage() had a check within it to check for invalid OPPs, but dev_pm_opp_put() doesn't have any similar checks and the callers need to make sure OPP is valid before calling them. Also updat

[PATCH V3 5/5] thermal: cpu_cooling: Check OPP for errors

2017-03-13 Thread Viresh Kumar
It is possible for dev_pm_opp_find_freq_exact() to return errors. It was all fine earlier as dev_pm_opp_get_voltage() had a check within it to check for invalid OPPs, but dev_pm_opp_put() doesn't have any similar checks and the callers need to make sure OPP is valid before calling them. Also updat

[PATCH] lockdep: call trace_hardirqs_off after clearing hardirqs_enabled

2017-03-13 Thread Qi Hou
The current order of calls within trace_hardirqs_off() would provoke an "unannotated irqs-off" WARNING. This warning was reported by check_flags() when it found that the hardirqs has been disabled but the irq-flags state, hardirqs_enabled, has not been cleared. Check_flags() is called via trace_h

Re: Build regressions/improvements in v4.11-rc2

2017-03-13 Thread Geert Uytterhoeven
On Mon, Mar 13, 2017 at 9:43 AM, Geert Uytterhoeven wrote: > JFYI, when comparing v4.11-rc2[1] to v4.11-rc1[3], the summaries are: > - build errors: +6/-13 + /home/kisskb/slave/src/arch/openrisc/include/asm/atomic.h: Error: /home/kisskb/slave/src/arch/openrisc/include/asm/atomic.h:69: unknown

Re: tty: panic in tty_ldisc_restore

2017-03-13 Thread Dmitry Vyukov
On Thu, Feb 2, 2017 at 7:23 PM, Greg Kroah-Hartman wrote: > On Thu, Feb 02, 2017 at 07:03:41PM +0100, Dmitry Vyukov wrote: >> On Thu, Feb 2, 2017 at 6:55 PM, Greg Kroah-Hartman >> wrote: >> > On Thu, Feb 02, 2017 at 06:48:48PM +0100, Dmitry Vyukov wrote: >> >> Hello, >> >> >> >> Syzkaller fuzzer

Re: [PATCH] [media] atmel-isc: fix off-by-one comparison and out of bounds read issue

2017-03-13 Thread Hans Verkuil
On 03/13/2017 10:32 AM, Wu, Songjun wrote: > > > On 3/13/2017 17:25, Hans Verkuil wrote: >> On 03/13/2017 06:53 AM, Wu, Songjun wrote: >>> >>> >>> On 3/9/2017 18:57, Hans Verkuil wrote: Hi Songjun, On 08/03/17 03:25, Wu, Songjun wrote: > Hi Colin, > > Thank you for your

Re: [PATCH] drm: virtio: fix kmem_cache_alloc error check

2017-03-13 Thread Daniel Vetter
On Mon, Mar 13, 2017 at 09:22:26AM +0100, Gerd Hoffmann wrote: > kmem_cache_alloc returns NULL on error, not ERR_PTR. > > Fixes: f5985bf9cadd4e3ed8d5d9a9cbbb2e39cdb81cd9 > Reported-by: Jiri Slaby > Signed-off-by: Gerd Hoffmann I guess we should have smatch integrated into 0day to catch these ..

Re: [PATCH v2 1/9] i2c: export i2c_client_type structure

2017-03-13 Thread Benjamin Tissoires
On Mar 10 2017 or thereabouts, Dmitry Torokhov wrote: > i2c bus has 2 different types of device belonging to the same bus and > bus notifiers use device type to distinguish between adapters and clients. > Previously we only had i2c_adapter_type exported, which made code wanting > to work with i2c_c

Re: [PATCH v2] statx: optimize copy of struct statx to userspace

2017-03-13 Thread Florian Weimer
On 03/13/2017 05:34 AM, Andreas Dilger wrote: Not that it is a huge deal either way, but I'd think it is harder for the compiler to optimize across a function call boundary like memset() vs. a struct initialization in the same function where it can see that all but a few of the fields are being o

Re: [PATCH 2/2] fpga: Add support for Xilinx LogiCORE PR Decoupler

2017-03-13 Thread Michal Simek
Hi Moritz, On 10.3.2017 23:42, Moritz Fischer wrote: > On Fri, Mar 10, 2017 at 1:30 PM, Moritz Fischer wrote: >> This adds support for the Xilinx LogiCORE PR Decoupler >> soft-ip that does decoupling of PR regions in the FPGA >> fabric during partial reconfiguration. >> >> Signed-off-by: Moritz F

[PATCH] Constantly reseed nonblocking_pool during initialization

2017-03-13 Thread Stephan Müller
Hi Ted, The issue fixed by the patch below is visible in all kernels between 3.13 and 4.7. The patch is developed against 4.7.0. It is tested against 4.4.53. If you concur, I would recommend to send it to stable. ---8<--- The nonblocking_pool is reseeded after the expiry of random_min_urandom_

[PATCH v2] staging: fbtft: Allows bpp to be set from dt

2017-03-13 Thread Radoslaw Pietrzyk
Allows bpp to be set from dt Signed-off-by: Radoslaw Pietrzyk --- drivers/staging/fbtft/fbtft-core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c index 7c8af29..cb0c10d 100644 --- a/drivers/staging/fbtft/fbtft-core

Re: [PATCH 1/2] doc: Add bindings document for Xilinx LogiCore PR Decoupler

2017-03-13 Thread Michal Simek
On 10.3.2017 22:30, Moritz Fischer wrote: > This adds the binding documentation for the Xilinx LogiCORE PR > Decoupler soft core. > > Signed-off-by: Moritz Fischer > Cc: Michal Simek > Cc: Sören Brinkmann > Cc: linux-kernel@vger.kernel.org > Cc: devicet...@vger.kernel.org > --- > .../bindings/

Re: [PATCH v2] extcon: int3496: Set the id pin to direction-input if necessary

2017-03-13 Thread Chanwoo Choi
Hi, On 2017년 03월 13일 17:40, Hans de Goede wrote: > With the new more strict ACPI gpio code the dsdt's IoRestriction > flags are honored on gpiod_get, but in some dsdt's it is wrong, > so explicitly call gpiod_direction_input on the id gpio if > necessary. > > This fixes the following errors when

Re: WTH is going on with memory hotplug sysf interface (was: Re: [RFC PATCH] mm, hotplug: get rid of auto_online_blocks)

2017-03-13 Thread Igor Mammedov
On Fri, 10 Mar 2017 14:58:07 +0100 Michal Hocko wrote: > Let's CC people touching this logic. A short summary is that onlining > memory via udev is currently unusable for online_movable because blocks > are added from lower addresses while movable blocks are allowed from > last blocks. More below

Re: [PATCH v2 6/9] Input: psmouse - add support for SMBus companions

2017-03-13 Thread Benjamin Tissoires
On Mar 10 2017 or thereabouts, Dmitry Torokhov wrote: > From: Benjamin Tissoires > > This provides glue between PS/2 devices that enumerate the RMI4 devices > and Elan touchpads to the RMI4 (or Elan) SMBus driver. > > The SMBus devices keep their PS/2 connection alive. If the initialization > pr

Re: [PATCH] platform/x86: intel-hid: do not set parents of input devices explicitly

2017-03-13 Thread Alex Hung
On 2017-03-09 05:36 PM, Michał Kępień wrote: devm_input_allocate_device() already causes the supplied struct device to be set as the parent of the input device, so doing it again is redundant. Signed-off-by: Michał Kępień --- This patch needs my recent intel-hid cleanup series to apply cleanly.

Re: [PATCH] usb-core: Add MS_INTR_BINTERVAL USB quirk

2017-03-13 Thread Dave Mielke
[quoted lines by Alan Stern on 2017/03/12 at 21:40 -0400] >No, I was wondering why an HID device would run at high speed. Both >you and Samuel implied that this was because it was a USB-2 device. >But that is not an adequate answer, because it is perfectly valid for a >USB-2 device to run at f

[PATCH] iommu/arm-smmu: Print message when Cavium erratum 27704 was detected

2017-03-13 Thread Robert Richter
Firmware is responsible for properly enabling smmu workarounds. Print a message for better diagnostics when Cavium erratum 27704 was detected. Signed-off-by: Robert Richter --- drivers/iommu/arm-smmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/a

Re: [PATCH V3 0/7] PM / Domains: Implement domain performance states

2017-03-13 Thread Viresh Kumar
On 10-03-17, 12:38, Kevin Hilman wrote: > Why limit it to just voltage levels. > > As I suggested earlier, I think this should use OPPs. Remember that a > PM domain is not limited to a hardware power domain, but is just a > grouping mechanism for devices that share some PM properties. As > menti

Re: Kbuild maintainership

2017-03-13 Thread Michal Marek
On 2017-03-11 06:45, Masahiro Yamada wrote: > Hi Michal, > > 2017-03-10 19:15 GMT+09:00 Michal Marek : >> On 2017-03-10 10:17, Stephen Rothwell wrote: >>> I assume that I will get a request to change the kbuild-current and >>> kbuilt trees in linux-next soon. In the meantime, should I remove the

Re: [Intel-gfx] The i915 stable patch marking is totally broken

2017-03-13 Thread Jani Nikula
On Mon, 13 Mar 2017, Daniel Vetter wrote: > Our cherry-pick sha1 work exactly like yours: They don't make sense > when you only look at the tree a patch has been cherry-picked _to_, > since they're the sha1 from the tree they've been cherry-picked > _from_. When you clone a fresh copy of your stab

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