[PATCH 09/17] arm64: arch_timer: Allows a CPU-specific erratum to only affect a subset of CPUs

2017-03-06 Thread Marc Zyngier
Instead of applying a CPU-specific workaround to all CPUs in the system, allow it to only affect a subset of them (typical big-little case). This is done by turning the erratum pointer into a per-CPU variable. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/arch_timer.h | 31 +++

[PATCH 10/17] arm64: Add CNTVCT_EL0 trap handler

2017-03-06 Thread Marc Zyngier
Since people seem to make a point in breaking the userspace visible counter, we have no choice but to trap the access. Add the required handler. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/esr.h | 2 ++ arch/arm64/kernel/traps.c| 14 ++ 2 files changed, 16 insertions(

[PATCH 16/17] arm64: arch_timer: Allow erratum matching with ACPI OEM information

2017-03-06 Thread Marc Zyngier
Just as we're able to identify a broken platform using some DT information, let's enable a way to spot the offenders with ACPI. The difference is that we can only match on some OEM info instead of implementation-specific properties. So in order to avoid the insane multiplication of errata structur

[PATCH v10 2/2] media: i2c: Add support for OV5647 sensor.

2017-03-06 Thread Ramiro Oliveira
The OV5647 sensor from Omnivision supports up to 2592x1944 @ 15 fps, RAW 8 and RAW 10 output formats, and MIPI CSI-2 interface. The driver adds support for 640x480 RAW 8. Signed-off-by: Ramiro Oliveira --- MAINTAINERS| 7 + drivers/media/i2c/Kconfig | 11 + drivers/media/i2c

[PATCH 17/17] arm64: arch_timer: Add HISILICON_ERRATUM_161010101 ACPI matching data

2017-03-06 Thread Marc Zyngier
In order to deal with ACPI enabled platforms suffering from the HISILICON_ERRATUM_161010101, let's add the required OEM data that allow the workaround to be enabled. Signed-off-by: Marc Zyngier --- drivers/clocksource/arm_arch_timer.c | 29 + 1 file changed, 29 insert

Warning on boot on SAMA5D2 with Linux 4.11-rc1

2017-03-06 Thread Romain Izard
Hello, While looking for another issue, I tried Linux 4.11-rc1 on a SAMA5D2 Xplained board. The boot log contains the following warning: [0.10] [ cut here ] [0.10] WARNING: CPU: 0 PID: 1 at ../kernel/time/sched_clock.c:180 sched_clock_register+0x44/0x1e4 [

Re: [PATCH] locking/rwsem: fix down_write_killable for CONFIG_RWSEM_GENERIC_SPINLOCK

2017-03-06 Thread Peter Zijlstra
On Mon, Mar 06, 2017 at 09:59:57AM +0100, Niklas Cassel wrote: > Peter, any comment on this? > > You fixed the rwsem implementation that is used by default for x86, > however the rwsem implementation used by default on mips, sparc32, > and many other archs is still affected, hence this patch. >

[PATCH 11/17] arm64: arch_timer: Move clocksource_counter and co around

2017-03-06 Thread Marc Zyngier
In order to access clocksource_counter from the errata handling code, move it (together with the related structures and functions) towards the top of the file. Signed-off-by: Marc Zyngier --- drivers/clocksource/arm_arch_timer.c | 62 ++-- 1 file changed, 31 inser

[PATCH 15/17] arm64: arch_timer: Workaround for Cortex-A73 erratum 858921

2017-03-06 Thread Marc Zyngier
Cortex-A73 (all versions) counter read can return a wrong value when the counter crosses a 32bit boundary. The workaround involves performing the read twice, and to return one or the other depending on whether a transition has taken place. Signed-off-by: Marc Zyngier --- Documentation/arm64/sil

[PATCH 12/17] arm64: arch_timer: Enable CNTVCT_EL0 trap if workaround is enabled

2017-03-06 Thread Marc Zyngier
Userspace being allowed to use read CNTVCT_EL0 anytime (and not only in the VDSO), we need to enable trapping whenever a cntvct workaround is enabled on a given CPU. Signed-off-by: Marc Zyngier --- drivers/clocksource/arm_arch_timer.c | 42 +--- 1 file changed, 30

[PATCH 13/17] arm64: cpu_errata: Allow an erratum to be match for all revisions of a core

2017-03-06 Thread Marc Zyngier
Some minor erratum may not be fixed in further revisions of a core, leading to a situation where the workaround needs to be updated each time an updated core is released. Introduce a MIDR_ALL_VERSIONS match helper that will work for all versions of that MIDR, once and for all. Signed-off-by: Marc

[PATCH 08/17] arm64: arch_timer: Make workaround methods optional

2017-03-06 Thread Marc Zyngier
Not all errata need to workaround all access types. Allow them to be optional. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/arch_timer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/arch_timer.h b/arch/arm64/include/asm/arch_timer.h i

[PATCH 07/17] arm64: arch_timer: Rework the set_next_event workarounds

2017-03-06 Thread Marc Zyngier
The way we work around errata affecting set_next_event is not very nice, at it imposes this workaround on errata that do not need it. Add new workaround hooks and let the existing workarounds use them. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/arch_timer.h | 4 drivers/clock

[PATCH 05/17] arm64: arch_timer: Move arch_timer_reg_read/write around

2017-03-06 Thread Marc Zyngier
As we're about to move things around, let's start with the low level read/write functions. This allows us to use these functions in the errata handling code without having to use forward declaration of static functions. Signed-off-by: Marc Zyngier --- drivers/clocksource/arm_arch_timer.c | 124 +

[PATCH 04/17] arm64: arch_timer: Add erratum handler for CPU-specific capability

2017-03-06 Thread Marc Zyngier
Should we ever have a workaround for an erratum that is detected using a capability and affecting a particular CPU, it'd be nice to have a way to probe them directly. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/arch_timer.h | 1 + drivers/clocksource/arm_arch_timer.c | 28 ++

[PATCH 01/17] arm64: arch_timer: Add infrastructure for multiple erratum detection methods

2017-03-06 Thread Marc Zyngier
We're currently stuck with DT when it comes to handling errata, which is pretty restrictive. In order to make things more flexible, let's introduce an infrastructure that could support alternative discovery methods. No change in functionnality. Signed-off-by: Marc Zyngier --- arch/arm64/include/

Re: [PATCH 07/26] brcmsmac: reduce stack size with KASAN

2017-03-06 Thread Arnd Bergmann
On Mon, Mar 6, 2017 at 12:16 PM, Arnd Bergmann wrote: > On Mon, Mar 6, 2017 at 12:02 PM, Arend Van Spriel > wrote: >> On 6-3-2017 11:38, Arnd Bergmann wrote: >>> On Mon, Mar 6, 2017 at 10:16 AM, Arend Van Spriel >>> wrote: >> Given the amount of local variables maybe just tag the functions with

[PATCH 03/17] arm64: Allow checking of a CPU-local erratum

2017-03-06 Thread Marc Zyngier
this_cpu_has_cap() only checks the feature array, and not the errata one. In order to be able to check for a CPU-local erratum, allow it to inspect the latter as well. This is consistent with cpus_have_cap()'s behaviour, which includes errata already. Signed-off-by: Marc Zyngier --- arch/arm64/

[PATCH 02/17] arm64: arch_timer: Add erratum handler for globally defined capability

2017-03-06 Thread Marc Zyngier
Should we ever have a workaround for an erratum that is detected using a capability (and affecting the whole system), it'd be nice to have a way to probe them directly. Signed-off-by: Marc Zyngier --- arch/arm64/include/asm/arch_timer.h | 1 + drivers/clocksource/arm_arch_timer.c | 14

[PATCH 06/17] arm64: arch_timer: Get rid of erratum_workaround_set_sne

2017-03-06 Thread Marc Zyngier
Let's move the handling of workarounds affecting set_next_event to the affected function, instead of overwriding the pointers as an afterthough. Yes, this is an extra indirection on the erratum handling path, but the HW is busted anyway. This will allow for some more flexibility later. Signed-off

[PATCH 00/17] clocksource/arch_timer: Errara workaround infrastructure rework

2017-03-06 Thread Marc Zyngier
It has recently become obvious that a number of arm64 systems have been blessed with a set of timers that are slightly less than perfect, and require a bit of hand-holding. We already have a bunch of errata-specific code to deal with this, but as we're adding more potential detection methods (DT, A

Re: [PATCH] hwmon: (dell-smm) Add Dell XPS 15 9560 into DMI list

2017-03-06 Thread Jean Delvare
Hi Vasile, On Sat, 4 Mar 2017 22:58:26 +0100, Vasile Dumitrescu wrote: > ok, but how? I am on Debian, and I never in my life compiled a kernel... > > What would I need to do? If your Debian system has a kernel >= 3.13 and you are somewhat familiar with compiling from sources, you could give a t

Re: [PATCH v2 03/22] PCI: endpoint: Introduce configfs entry for configuring EP functions

2017-03-06 Thread Kishon Vijay Abraham I
Hi, On Friday 17 February 2017 10:34 PM, Christoph Hellwig wrote: > On Fri, Feb 17, 2017 at 03:20:23PM +0530, Kishon Vijay Abraham I wrote: >> Introduce a new configfs entry to configure the EP function (like >> configuring the standard configuration header entries) and to >> bind the EP function

[PATCH 5/5] drm/amdgpu: resize VRAM BAR for CPU access

2017-03-06 Thread Christian König
From: Christian König Try to resize BAR0 to let CPU access all of VRAM. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu.h| 1 + drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 29 + drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 8 +---

[PATCH 3/5] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 30h-3fh) Processors

2017-03-06 Thread Christian König
From: Christian König Most BIOS don't enable this because of compatibility reasons. Manually enable a 64bit BAR of 64GB size so that we have enough room for PCI devices. Signed-off-by: Christian König --- arch/x86/pci/fixup.c | 53 1 file c

[PATCH 4/5] drm/amdgpu: fix printing the doorbell BAR info

2017-03-06 Thread Christian König
From: Christian König The address is 64bit, not 32bit. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c inde

Re: [PATCH v3 0/3] Add support for MyGica T230C DVB-T2 stick

2017-03-06 Thread Mauro Carvalho Chehab
Em Sat, 4 Mar 2017 03:23:42 +0200 Antti Palosaari escreveu: > On 03/03/2017 08:35 PM, Brüns, Stefan wrote: > > On Fr, 2017-02-17 at 01:55 +0100, Stefan Brüns wrote: > >> The required command sequence for the new tuner (Si2141) was traced > >> from the > >> current Windows driver and verified wi

[PATCH 2/5] PCI: add functionality for resizing resources

2017-03-06 Thread Christian König
From: Christian König This allows device drivers to request resizing their BARs. The function only tries to reprogram the windows of the bridge directly above the requesting device and only the BAR of the same type (usually mem, 64bit, prefetchable). This is done to make sure not to disturb othe

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

2017-03-06 Thread Christian König
From: Christian König Just the defines and helper functions to read the possible sizes of a BAR and update it's size. See https://pcisig.com/sites/default/files/specification_documents/ECN_Resizable-BAR_24Apr2008.pdf. v2: provide read helper as well Signed-off-by: Christian König --- driver

Re: PPro arch_cpu_idle: NMI watchdog: Watchdog detected hard LOCKUP on cpu 1

2017-03-06 Thread Meelis Roos
> On Sun, Mar 05, 2017 at 10:48:50PM +0200, Meelis Roos wrote: > > Added some CC-s because of bisect find. Whole context should be still > > here. > > > > > > > > > > This is on my trusty IBM PC365, dual Pentium Pro. 4.10 worked > > > > > > > > fine, > > > > > > > > 4.10.0-09686-g9e314890292c a

Re: [PATCH 0/3] mm/fs: get PG_error out of the writeback reporting business

2017-03-06 Thread Jeff Layton
On Mon, 2017-03-06 at 14:06 +1100, NeilBrown wrote: > On Sun, Mar 05 2017, Jeff Layton wrote: > > > I recently did some work to wire up -ENOSPC handling in ceph, and found > > I could get back -EIO errors in some cases when I should have instead > > gotten -ENOSPC. The problem was that the ceph wr

Re: [PATCH v5 02/11] phy: exynos-ufs: add UFS PHY driver for EXYNOS SoC

2017-03-06 Thread Alim Akhtar
Hi Kishon On 03/01/2017 10:07 AM, Kishon Vijay Abraham I wrote: > Hi, > > On Tuesday 28 February 2017 01:51 PM, Alim Akhtar wrote: >> Hi Kishon, >> >> On 02/28/2017 09:04 AM, Kishon Vijay Abraham I wrote: >>> Hi, >>> >>> On Monday 27 February 2017 07:40 PM, Alim Akhtar wrote: Hi Kishon,

Re: [RFC PATCH 2/2] mtd: devices: m25p80: Enable spi-nor bounce buffer support

2017-03-06 Thread Vignesh R
On Thursday 02 March 2017 07:59 PM, Boris Brezillon wrote: > On Thu, 2 Mar 2017 19:24:43 +0530 > Vignesh R wrote: > >> > Not really, I am debugging another issue with UBIFS on DRA74 EVM (ARM > cortex-a15) wherein pages allocated by vmalloc are in highmem region > that are n

Re: [PATCH v4] x86/mce: Don't participate in rendezvous process once nmi_shootdown_cpus() was made

2017-03-06 Thread Borislav Petkov
On Thu, Feb 23, 2017 at 09:36:52PM +0800, Xunlei Pang wrote: > We met an issue for kdump: after kdump kernel boots up, > and there comes a broadcasted mce in first kernel, the > other cpus remaining in first kernel will enter the old > mce handler of first kernel, then timeout and panic due > to MC

Re: [PATCH 7/8] Revert "ext4: avoid deadlocks in the writeback path by using sb_getblk_gfp"

2017-03-06 Thread Michal Hocko
On Tue 17-01-17 08:54:50, Michal Hocko wrote: > On Mon 16-01-17 22:01:18, Theodore Ts'o wrote: > > On Fri, Jan 06, 2017 at 03:11:06PM +0100, Michal Hocko wrote: > > > From: Michal Hocko > > > > > > This reverts commit c45653c341f5c8a0ce19c8f0ad4678640849cb86 because > > > sb_getblk_gfp is not rea

Re: [PATCH 4/5] drm/amdgpu: fix printing the doorbell BAR info

2017-03-06 Thread Andy Shevchenko
On Mon, Mar 6, 2017 at 1:40 PM, Christian König wrote: > From: Christian König > > The address is 64bit, not 32bit. > > Signed-off-by: Christian König > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/

[PATCH v3] KVM: nVMX: reset nested_run_pending if the vCPU is going to be reset

2017-03-06 Thread Wanpeng Li
From: Wanpeng Li Reported by syzkaller: WARNING: CPU: 1 PID: 27742 at arch/x86/kvm/vmx.c:11029 nested_vmx_vmexit+0x5c35/0x74d0 arch/x86/kvm/vmx.c:11029 CPU: 1 PID: 27742 Comm: a.out Not tainted 4.10.0+ #229 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2

Re: [regression] Re: 4.11-rc0, thinkpad x220: GPU hang

2017-03-06 Thread Chris Wilson
On Mon, Mar 06, 2017 at 11:15:28AM +, Chris Wilson wrote: > On Mon, Mar 06, 2017 at 12:01:51AM +0100, Pavel Machek wrote: > > Hi! > > > > > > mplayer stopped working after a while. Dmesg says: > > > > > > > > [ 3000.266533] cdc_ether 2-1.2:1.0 usb0: register 'cdc_ether' at > > > > Now I'm pr

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

2017-03-06 Thread Christian König
Sorry I've hit enter to soon. This set of patches tries to implement support for resizeable BARs including an example of how the AMD GFX device driver can make use of it to gain full CPU access to the VRAM on the hardware. Patch #1 is just the second version of the basic RBAR support I've sen

Re: [PATCH 5/5] drm/amdgpu: resize VRAM BAR for CPU access

2017-03-06 Thread Andy Shevchenko
On Mon, Mar 6, 2017 at 1:40 PM, Christian König wrote: > From: Christian König > > Try to resize BAR0 to let CPU access all of VRAM. > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c > @@ -616,6 +616,35 @@ void amdgpu_gtt_location(struct amdgpu

Re: [RFC 05/11] mm: make the try_to_munlock void function

2017-03-06 Thread Anshuman Khandual
On 03/06/2017 07:39 AM, Minchan Kim wrote: > On Fri, Mar 03, 2017 at 05:13:54PM +0530, Anshuman Khandual wrote: >> On 03/02/2017 12:09 PM, Minchan Kim wrote: >>> try_to_munlock returns SWAP_MLOCK if the one of VMAs mapped >>> the page has VM_LOCKED flag. In that time, VM set PG_mlocked to >>> the p

Re: perf: use-after-free in perf_release

2017-03-06 Thread Peter Zijlstra
On Mon, Mar 06, 2017 at 10:57:07AM +0100, Dmitry Vyukov wrote: > Hello, > > I've got the following use-after-free report while running syzkaller > fuzzer on 86292b33d4b79ee03e2f43ea0381ef85f077c760. Note that the task > is freed right in copy_process due to some error, but it's referenced > by ano

Re: [PATCH v2] KVM: nVMX: reset nested_run_pending if the vCPU is going to be reset

2017-03-06 Thread Wanpeng Li
2017-03-06 18:40 GMT+08:00 David Hildenbrand : > Am 05.03.2017 um 23:17 schrieb Wanpeng Li: >> Reported by syzkaller: >> >> WARNING: CPU: 1 PID: 27742 at arch/x86/kvm/vmx.c:11029 >> nested_vmx_vmexit+0x5c35/0x74d0 arch/x86/kvm/vmx.c:11029 >> CPU: 1 PID: 27742 Comm: a.out Not tainted 4.1

Re: [PATCH v2] HID: Add quirk driver for NTI USB-SUN adapter

2017-03-06 Thread Jiri Kosina
On Wed, 1 Feb 2017, Jonathan Tomer wrote: > These adapters allow pre-USB Sun keyboards to be connected to USB-only > machines, but include the wrong maximum keycode in their report > descriptor, making most of the keys present on Sun keyboards but not > 101-key PC keyboards nonfunctional. > > Thi

Re: [PATCH v2 1/2] drm: bridge: dw-hdmi: Take input format from plat_data

2017-03-06 Thread Jose Abreu
Hi Neil, On 06-03-2017 10:41, Neil Armstrong wrote: > On 03/03/2017 06:22 PM, Jose Abreu wrote: >> Hi Neil, >> >> >> On 03-03-2017 16:42, Neil Armstrong wrote: >>> Sure, I was meaning the *input* format the controller receives from the >>> pixel encoder, I'm quite sure the format is strict. >>> >

Re: [regression] Re: 4.11-rc0, thinkpad x220: GPU hang

2017-03-06 Thread Pavel Machek
On Mon 2017-03-06 11:15:28, Chris Wilson wrote: > On Mon, Mar 06, 2017 at 12:01:51AM +0100, Pavel Machek wrote: > > Hi! > > > > > > mplayer stopped working after a while. Dmesg says: > > > > > > > > [ 3000.266533] cdc_ether 2-1.2:1.0 usb0: register 'cdc_ether' at > > > > Now I'm pretty sure it i

Re: [PATCH v2 05/15] HID: logitech-hidpp: forward device info in power_supply

2017-03-06 Thread Jiri Kosina
On Tue, 7 Feb 2017, Benjamin Tissoires wrote: > > > +   case POWER_SUPPLY_PROP_MANUFACTURER: > > > +   val->strval = "Logitech, Inc."; > > > > I don't like this change. I'd prefer the concatenated manufacturer and > > model strings leading to user-friendly strings,

Re: perf: use-after-free in perf_release

2017-03-06 Thread Dmitry Vyukov
On Mon, Mar 6, 2017 at 1:13 PM, Peter Zijlstra wrote: > On Mon, Mar 06, 2017 at 10:57:07AM +0100, Dmitry Vyukov wrote: >> Hello, >> >> I've got the following use-after-free report while running syzkaller >> fuzzer on 86292b33d4b79ee03e2f43ea0381ef85f077c760. Note that the task >> is freed right in

[PATCH v2 0/2] xilinx_dma: Add external reset control

2017-03-06 Thread Ramiro Oliveira
This patchset adds support for controlling an external reset line. Since this reset line is optional it won't break compatibility. v2: - Re-order headers - Remove deprecated function - Remove reset naming Ramiro Oliveira (2): dma: xilinx: Edit device tree bindings documentation dma: xilinx

[PATCH v2 1/2] dma: xilinx: Edit device tree bindings documentation

2017-03-06 Thread Ramiro Oliveira
Add reset property documentation for Xilinx DMA Signed-off-by: Ramiro Oliveira --- Documentation/devicetree/bindings/dma/xilinx/xilinx_dma.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/xilinx/xilinx_dma.txt b/Documentation/devicetree/bindings/dm

[PATCH v2 2/2] dma: xilinx: Add reset support

2017-03-06 Thread Ramiro Oliveira
Add a DT property to control an optional external reset line Signed-off-by: Ramiro Oliveira --- drivers/dma/xilinx/xilinx_dma.c | 24 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c index 5c

Re: [PATCH 4/5] drm/amdgpu: fix printing the doorbell BAR info

2017-03-06 Thread Christian König
Am 06.03.2017 um 13:00 schrieb Andy Shevchenko: On Mon, Mar 6, 2017 at 1:40 PM, Christian König wrote: From: Christian König The address is 64bit, not 32bit. Signed-off-by: Christian König --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

Re: [PATCH v2 0/2] Propagate fallback bit for cbc and ctr

2017-03-06 Thread Marcelo Cerri
Hi Herbert, Any thoughts on this? On Mon, Feb 27, 2017 at 09:38:24AM -0300, Marcelo Henrique Cerri wrote: > Hi Hebert, > > For v2: > > - fixed the memory leakage in cbc. > - included crypto/algapi.h in crypto/cbc.c for crypto_requires_off(); > - ERR_CAST instead PTR_ERR in ctr. > - Also propaga

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

2017-03-06 Thread Andy Shevchenko
On Mon, Mar 6, 2017 at 1:40 PM, Christian König wrote: > From: Christian König > > Just the defines and helper functions to read the possible sizes of a BAR and > update it's size. > > See > https://pcisig.com/sites/default/files/specification_documents/ECN_Resizable-BAR_24Apr2008.pdf. > > v2: p

Re: perf: use-after-free in perf_release

2017-03-06 Thread Peter Zijlstra
On Mon, Mar 06, 2017 at 01:17:42PM +0100, Dmitry Vyukov wrote: > On Mon, Mar 6, 2017 at 1:13 PM, Peter Zijlstra wrote: > > On Mon, Mar 06, 2017 at 10:57:07AM +0100, Dmitry Vyukov wrote: > >> Hello, > >> > >> I've got the following use-after-free report while running syzkaller > >> fuzzer on 86292b

Re: [regression] Re: 4.11-rc0, thinkpad x220: GPU hang

2017-03-06 Thread Chris Wilson
On Mon, Mar 06, 2017 at 01:10:48PM +0100, Pavel Machek wrote: > On Mon 2017-03-06 11:15:28, Chris Wilson wrote: > > On Mon, Mar 06, 2017 at 12:01:51AM +0100, Pavel Machek wrote: > > > Hi! > > > > > > > > mplayer stopped working after a while. Dmesg says: > > > > > > > > > > [ 3000.266533] cdc_eth

Re: [PATCH v9 3/3] iio: adc: add support for Allwinner SoCs ADC

2017-03-06 Thread Quentin Schulz
Hi Jonathan, On 06/02/2017 19:35, Jonathan Cameron wrote: > On 06/02/17 07:37, Quentin Schulz wrote: >> Hi Jonathan, >> >> On 14/01/2017 20:28, Jonathan Cameron wrote: >>> >>> >>> On 14 January 2017 19:19:58 GMT+00:00, Quentin Schulz >>> wrote: Hi Jonathan, On 08/01/2017 12:17, Jo

[PATCH] dma: xilinx: Make Xilinx VDMA support ARC

2017-03-06 Thread Ramiro Oliveira
Add option in Kconfig to use Xilinx VDMA in ARC processors. Signed-off-by: Ramiro Oliveira --- drivers/dma/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index 263495d0adbd..b6b6c0581ad7 100644 --- a/drivers/dma/Kconfig +++ b

Re: [PATCH v2 05/15] HID: logitech-hidpp: forward device info in power_supply

2017-03-06 Thread Bastien Nocera
On Mon, 2017-03-06 at 13:18 +0100, Jiri Kosina wrote: > On Tue, 7 Feb 2017, Benjamin Tissoires wrote: > > > > > +   case POWER_SUPPLY_PROP_MANUFACTURER: > > > > +   val->strval = "Logitech, Inc."; > > > > > > I don't like this change. I'd prefer the concatenated >

Re: [PATCH] HID: get rid of HID_QUIRK_NO_INIT_REPORTS

2017-03-06 Thread Jiri Kosina
On Thu, 5 Jan 2017, Benjamin Tissoires wrote: > For case 1, the hiddev documentation provides an ioctl to do the > init manually. A solution could be to retrieve the requested report > when EVIOCGUSAGE is called, in the same way hidraw does. I would be > tempted to not change the behavior and hope

Re: [PATCH v3] KVM: nVMX: reset nested_run_pending if the vCPU is going to be reset

2017-03-06 Thread David Hildenbrand
Am 06.03.2017 um 13:03 schrieb Wanpeng Li: > From: Wanpeng Li > > Reported by syzkaller: > > WARNING: CPU: 1 PID: 27742 at arch/x86/kvm/vmx.c:11029 > nested_vmx_vmexit+0x5c35/0x74d0 arch/x86/kvm/vmx.c:11029 > CPU: 1 PID: 27742 Comm: a.out Not tainted 4.10.0+ #229 > Hardware name:

Re: [PATCH 5/5] drm/amdgpu: resize VRAM BAR for CPU access

2017-03-06 Thread Christian König
Am 06.03.2017 um 13:06 schrieb Andy Shevchenko: On Mon, Mar 6, 2017 at 1:40 PM, Christian König wrote: From: Christian König Try to resize BAR0 to let CPU access all of VRAM. --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -616,6 +616,35 @@

Re: [PATCH 3/3] cpufreq: schedutil: remove redundant code from sugov_next_freq_shared()

2017-03-06 Thread Rafael J. Wysocki
On Mon, Mar 6, 2017 at 5:45 AM, Viresh Kumar wrote: > On 04-03-17, 01:11, Rafael J. Wysocki wrote: >> So one idea is that if SCHED_CPUFREQ_RT_DL is set in flags, we don't even >> need to start the loop which is quite a cost to simply notice that there's >> nothing to do. > > Hmm. Isn't the probabi

Re: [PATCH] mac80211: Use setup_timer instead of init_timer

2017-03-06 Thread Jiri Slaby
On 03/06/2017, 01:25 PM, Johannes Berg wrote: > On Fri, 2017-03-03 at 13:45 +0100, Jiri Slaby wrote: >> From: Ondřej Lysoněk >> >> Use setup_timer() and setup_deferrable_timer() to set the data and >> function timer fields. It makes the code cleaner and will allow for >> easier change of the timer

Re: [PATCH] mac80211: Use setup_timer instead of init_timer

2017-03-06 Thread Johannes Berg
> Not really. This is one of assignments for students I lead, so this > is done by hand every end of winter semester (Note the From line.) You really should teach them about coccinelle then :-) > > Care to send a patch for that one too? > > I am just a forwarder, he received this request too, s

Re: perf: use-after-free in perf_release

2017-03-06 Thread Dmitry Vyukov
On Mon, Mar 6, 2017 at 1:23 PM, Peter Zijlstra wrote: > On Mon, Mar 06, 2017 at 01:17:42PM +0100, Dmitry Vyukov wrote: >> On Mon, Mar 6, 2017 at 1:13 PM, Peter Zijlstra wrote: >> > On Mon, Mar 06, 2017 at 10:57:07AM +0100, Dmitry Vyukov wrote: >> >> Hello, >> >> >> >> I've got the following use-a

Re: [PATCH v2 1/2] drm: bridge: dw-hdmi: Take input format from plat_data

2017-03-06 Thread Neil Armstrong
On 03/06/2017 01:17 PM, Jose Abreu wrote: > Hi Neil, > > > On 06-03-2017 10:41, Neil Armstrong wrote: >> On 03/03/2017 06:22 PM, Jose Abreu wrote: >>> Hi Neil, >>> >>> >>> On 03-03-2017 16:42, Neil Armstrong wrote: Sure, I was meaning the *input* format the controller receives from the

Re: [PATCH 1/4] net: thunderx: Fix IOMMU translation faults

2017-03-06 Thread Robin Murphy
On 04/03/17 05:54, Sunil Kovvuri wrote: > On Fri, Mar 3, 2017 at 11:26 PM, David Miller wrote: >> From: sunil.kovv...@gmail.com >> Date: Fri, 3 Mar 2017 16:17:47 +0530 >> >>> @@ -1643,6 +1650,9 @@ static int nicvf_probe(struct pci_dev *pdev, const >>> struct pci_device_id *ent) >>> if (!pa

[RFC][PATCH 4/4] printk: enable printk offloading

2017-03-06 Thread Sergey Senozhatsky
Initialize the kernel printing thread and enable printk() offloading. Signed-off-by: Sergey Senozhatsky --- kernel/printk/printk.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 6e00073a7331..601a9ef6db89 100644 ---

Re: perf: use-after-free in perf_release

2017-03-06 Thread Peter Zijlstra
On Mon, Mar 06, 2017 at 01:27:41PM +0100, Dmitry Vyukov wrote: > I think you will also need the attached patch. It seems that it was > found due to it. Going to send it out soon. Yuck, that's nasty. Although I don't see an alternative there. You might also want to do the bitops, they suffer the

Re: [PATCH v5 1/2] devicetree: i2c-hid: Add regulator support

2017-03-06 Thread Jiri Kosina
On Thu, 9 Feb 2017, Brian Norris wrote: > From: Caesar Wang > > Document a "vdd-supply" and an initialization delay. Can be used for > powering on/off a HID. > > Signed-off-by: Caesar Wang > Cc: Rob Herring > Cc: Jiri Kosina > Cc: linux-in...@vger.kernel.org > Signed-off-by: Brian Norris >

Re: [PATCH v2] HID: Add quirk driver for NTI USB-SUN adapter

2017-03-06 Thread Jiri Kosina
On Mon, 6 Mar 2017, Jiri Kosina wrote: > > These adapters allow pre-USB Sun keyboards to be connected to USB-only > > machines, but include the wrong maximum keycode in their report > > descriptor, making most of the keys present on Sun keyboards but not > > 101-key PC keyboards nonfunctional. > >

Re: [PATCH] Staging: media: platform: bcm2835 - Style fix

2017-03-06 Thread Greg KH
On Sun, Mar 05, 2017 at 10:43:19AM +1300, Derek Robson wrote: > On Sat, Mar 04, 2017 at 02:57:22PM +0300, Dan Carpenter wrote: > > Copy a patch prefix that everyone else has been using: > > > > git log --oneline drivers/staging/media/platform/bcm2835/ > > > > The subject is too vague as well. >

[RFC][PATCH 1/4] printk: introduce printing kernel thread

2017-03-06 Thread Sergey Senozhatsky
printk() is quite complex internally and, basically, it does two slightly independent things: a) adds a new message to a kernel log buffer (log_store()) b) prints kernel log messages to serial consoles (console_unlock()) while (a) is guaranteed to be executed by printk(), (b) is not, for a varie

Re: [PATCH] x86, kasan: add KASAN checks to atomic operations

2017-03-06 Thread Dmitry Vyukov
On Mon, Mar 6, 2017 at 1:42 PM, Dmitry Vyukov wrote: > KASAN uses compiler instrumentation to intercept all memory accesses. > But it does not see memory accesses done in assembly code. > One notable user of assembly code is atomic operations. Frequently, > for example, an atomic reference decreme

[RFC][PATCH 0/4] printk: introduce printing kernel thread

2017-03-06 Thread Sergey Senozhatsky
Hello, RFC This patch set adds a printk() kernel thread which lets us to print kernel messages to the console from a non-atomic/schedule-able context, avoiding different sort of lockups, stalls, etc. The patch set is in [RFC] stage - it may contain ugly and dumb ideas. The reaso

[PATCH] x86, kasan: add KASAN checks to atomic operations

2017-03-06 Thread Dmitry Vyukov
KASAN uses compiler instrumentation to intercept all memory accesses. But it does not see memory accesses done in assembly code. One notable user of assembly code is atomic operations. Frequently, for example, an atomic reference decrement is the last access to an object and a good candidate for a

Re: [PATCH 1/2] staging/vc04_services: initialize cache line size properly

2017-03-06 Thread Greg Kroah-Hartman
On Wed, Mar 01, 2017 at 05:59:38PM -0800, Michael Zoran wrote: > Hi Arnd, > > I submitted a change which is in Linux-next now that makes the whole > CACHE_LINE_SIZE macro meaningless. It now always reads the size from > the DT and errors out with -ENODEV if the property is missing. > > I was goi

[RFC][PATCH 2/4] printk: offload printing from wake_up_klogd_work_func()

2017-03-06 Thread Sergey Senozhatsky
Offload printing of printk_deferred() messages from IRQ context to a schedulable printing kthread, when possible (the same way we do it in vprintk_emit()). Otherwise, console_unlock() can force the printing CPU to spend unbound amount of time flushing kernel messages from IRQ context. Signed-off-b

[RFC][PATCH 3/4] kernel, power: disable printk_kthread in unsafe places

2017-03-06 Thread Sergey Senozhatsky
It's not always possible/safe to wake_up() printk kernel thread. For example, late suspend/early resume may printk() while timekeeping is not initialized yet, so calling into the scheduler may result in recursive warnings. Thus we need printk() to operate in old mode there and attempt to immediatel

Re: [PATCH 0/2] HID: Corsair Scimitar Pro RGB gaming mouse driver and support for other Corsair devices

2017-03-06 Thread Jiri Kosina
On Fri, 10 Feb 2017, Oscar Campos wrote: > Since I have a Corsair Scimitar PRO RGB that does not works on Linux, I > tried to find a solution doing some research but was not able to find any. [ ... snip ... ] > > I created the new mouse driver instead of add code to the already existent > `hid-co

Re: [PATCH 2/2] HID: corsair: Add driver Scimitar Pro RGB gaming mouse 1b1c:1b3e

2017-03-06 Thread Jiri Kosina
On Fri, 10 Feb 2017, Oscar Campos wrote: > This mouse sold by Corsair as Scimitar PRO RGB defines two consecutive > Logical Minimum items in its Application (Consumer.0001) report making > it non parseable. This driver fixes the report descriptor overriding > byte 77 in rdesc from 0x16 (Logical

Re: [PATCH v2 2/2] HID: usbhid: add quirk for innomedia INNEX GENESIS/ATARI adapter

2017-03-06 Thread Jiri Kosina
On Tue, 14 Feb 2017, Tomasz Kramkowski wrote: > The (1292:4745) Innomedia INNEX GENESIS/ATARI adapter needs > HID_QUIRK_MULTI_INPUT to split the device up into two controllers > instead of inputs from both being merged into one. > > Signed-off-by: Tomasz Kramkowski Applied to for-4.12/innomedia

Re: [PATCH v6 1/3] drm_fourcc: Add new P010, P016 video format

2017-03-06 Thread Ville Syrjälä
On Sun, Mar 05, 2017 at 06:00:31PM +0800, Randy Li wrote: > P010 is a planar 4:2:0 YUV with interleaved UV plane, 10 bits > per channel video format. > > P016 is a planar 4:2:0 YUV with interleaved UV plane, 16 bits > per channel video format. > > V3: Added P012 and fixed cpp for P010 > V4: forma

Re: [PATCH 1/4] net: thunderx: Fix IOMMU translation faults

2017-03-06 Thread Sunil Kovvuri
>> >> We are seeing a 0.75Mpps drop with IP forwarding rate due to that. >> Hence I have restricted calling DMA interfaces to only when IOMMU is enabled. > > What's 0.07Mpps as a percentage of baseline? On a correctly configured > coherent arm64 system, in the absence of an IOMMU, dma_map_*() is >

[PATCH] x86/apic: Fix a comment in init_apic_mappings()

2017-03-06 Thread Dou Liyang
The commit c0104d38a740 ("x86, apic: Unify identical register_lapic_address() functions") renames acpi_register_lapic_address to register_lapic_address. But acpi_register_lapic_address remains in a comment, and renaming it to register_lapic_address is not suitable for this comment. Remove acpi_re

Re: [PATCH] mac80211: Use setup_timer instead of init_timer

2017-03-06 Thread Johannes Berg
On Mon, 2017-03-06 at 13:25 +0100, Johannes Berg wrote: > On Fri, 2017-03-03 at 13:45 +0100, Jiri Slaby wrote: > > From: Ondřej Lysoněk > > > > Use setup_timer() and setup_deferrable_timer() to set the data and > > function timer fields. It makes the code cleaner and will allow for > > easier cha

Re: [PATCH] mac80211: Use setup_timer instead of init_timer

2017-03-06 Thread Johannes Berg
On Fri, 2017-03-03 at 13:45 +0100, Jiri Slaby wrote: > From: Ondřej Lysoněk > > Use setup_timer() and setup_deferrable_timer() to set the data and > function timer fields. It makes the code cleaner and will allow for > easier change of the timer struct internals. Btw, I suspect you generated thi

Re: [PATCH] mac80211: Use setup_timer instead of init_timer

2017-03-06 Thread Johannes Berg
On Fri, 2017-03-03 at 13:45 +0100, Jiri Slaby wrote: > From: Ondřej Lysoněk > > Use setup_timer() and setup_deferrable_timer() to set the data and > function timer fields. It makes the code cleaner and will allow for > easier change of the timer struct internals. Applied. johannes

Re: [PATCH] staging: speakup: else is not generally useful after a break or return

2017-03-06 Thread kbuild test robot
Hi Arushi, [auto build test WARNING on staging/staging-testing] [cannot apply to v4.11-rc1 next-20170306] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arushi-Singhal/staging-speakup-else-is

[PATCH 1/3] mtd: spi-nor: Add support for Octal SPI mode.

2017-03-06 Thread Artur Jedrysek
This patch adds support for Octal SPI data reads in SPI NOR framework. Opcodes for programming using octal interface are also present for the sake of completeness, despite not being used. Micron mt35xu512 flash is added as an example chip supporting that mode. Signed-off-by: Artur Jedrysek ---

Re: [PATCH v7 kernel 5/5] This patch contains two parts:

2017-03-06 Thread David Hildenbrand
Am 03.03.2017 um 06:40 schrieb Wei Wang: > From: Liang Li I'd prefer to split this into two parts then and to create proper subjects. If I remember correctly, the general concept was accepted by most reviewers. > > One is to add a new API to mm go get the unused page information. > The virtio

Re: [PATCH] x86, kasan: add KASAN checks to atomic operations

2017-03-06 Thread Peter Zijlstra
On Mon, Mar 06, 2017 at 01:50:47PM +0100, Dmitry Vyukov wrote: > On Mon, Mar 6, 2017 at 1:42 PM, Dmitry Vyukov wrote: > > KASAN uses compiler instrumentation to intercept all memory accesses. > > But it does not see memory accesses done in assembly code. > > One notable user of assembly code is at

Re: [PATCH 1/2] xfs: allow kmem_zalloc_greedy to fail

2017-03-06 Thread Michal Hocko
On Sat 04-03-17 09:54:44, Dave Chinner wrote: > On Thu, Mar 02, 2017 at 04:45:40PM +0100, Michal Hocko wrote: > > From: Michal Hocko > > > > Even though kmem_zalloc_greedy is documented it might fail the current > > code doesn't really implement this properly and loops on the smallest > > allowed

[PATCH 5/7] xfs: use memalloc_nofs_{save,restore} instead of memalloc_noio*

2017-03-06 Thread Michal Hocko
From: Michal Hocko kmem_zalloc_large and _xfs_buf_map_pages use memalloc_noio_{save,restore} API to prevent from reclaim recursion into the fs because vmalloc can invoke unconditional GFP_KERNEL allocations and these functions might be called from the NOFS contexts. The memalloc_noio_save will en

Re: [PATCH v2 1/2] HID: reject input outside logical range only if null state is set

2017-03-06 Thread Jiri Kosina
On Tue, 14 Feb 2017, Tomasz Kramkowski wrote: > From: Valtteri Heikkilä > > This patch fixes an issue in drivers/hid/hid-input.c where USB HID > control null state flag is not checked upon rejecting inputs outside > logical minimum-maximum range. The check should be made according to USB > HID s

Re: [PATCH] pinctrl: samsung: fix segfault when using external interrupts on s3c24xx

2017-03-06 Thread Sergio Prado
Hi Krzysztof, > > This is a regression from commit 8b1bd11c1f8f529057369c5b3702d13fd24e2765. > > Checkpatch should complain here about commit format. > > > > > Tested on FriendlyARM mini2440. > > > > Please add: > Fixes: 8b1bd11c1f8f ("pinctrl: samsung: Add the support the multiple > IORES

[PATCH v2] f2fs: combine nat_bits and free_nid_bitmap cache

2017-03-06 Thread Chao Yu
Both nat_bits cache and free_nid_bitmap cache provide same functionality as a intermediate cache between free nid cache and disk, but with different granularity of indicating free nid range, and different persistence policy. nat_bits cache provides better persistence ability, and free_nid_bitmap pr

[PATCH 4/7] mm: introduce memalloc_nofs_{save,restore} API

2017-03-06 Thread Michal Hocko
From: Michal Hocko GFP_NOFS context is used for the following 5 reasons currently - to prevent from deadlocks when the lock held by the allocation context would be needed during the memory reclaim - to prevent from stack overflows during the reclaim because the

Re: [PATCH v17 2/3] usb: USB Type-C connector class

2017-03-06 Thread Heikki Krogerus
Hi Peter, On Mon, Mar 06, 2017 at 09:15:51AM +0800, Peter Chen wrote: > > > What interface you use when you receive this event to handle > > > dual-role switch? I am wonder if a common dual-role class is > > > needed, then we can have a common user utility. > > > > > > Eg, if "data_role" has chan

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