[PATCH] x86/fpu: Fix invalid FPU ptrace state after execve

2016-11-16 Thread Yu-cheng Yu
Robert O'Callahan reported that after an execve PTRACE_GETREGSET NT_X86_XSTATE continues to return the pre-exec register values until the exec'ed task modifies FPU state. The test code is at https://bugzilla.redhat.com/attachment.cgi?id=1164286. What is happening is when eagerfpu is enabled, fpu_

Re: [PATCH] libfc: fix seconds_since_last_reset miscalculation

2016-11-16 Thread Arnd Bergmann
On Tuesday, November 15, 2016 4:05:31 PM CET Johannes Thumshirn wrote: > On Tue, Nov 15, 2016 at 02:50:17PM +, Bart Van Assche wrote: > > On Tue, 2016-11-15 at 10:18 +0100, Johannes Thumshirn wrote: > > > On Tue, Nov 08, 2016 at 03:04:43PM +, Bart Van Assche wrote: > > > > I think the above

Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options

2016-11-16 Thread Florian Fainelli
On 11/16/2016 07:38 AM, Jerome Brunet wrote: > On Wed, 2016-11-16 at 16:06 +0100, Andrew Lunn wrote: >> On Wed, Nov 16, 2016 at 03:51:30PM +0100, Jerome Brunet wrote: >>> >>> On Wed, 2016-11-16 at 14:23 +0100, Andrew Lunn wrote: > > > There two kind of PHYs supporting eee, the one

Re: [PATCH 4/4] Update device tree Synopsys DW DMAC documentation

2016-11-16 Thread Eugeniy Paltsev
Hi Andy, On Wed, 2016-11-16 at 17:10 +0200, Andy Shevchenko wrote: > Overall, since we are going to expose some properties to the Device > Tree > I would really think twice about naming. Better if we reuse something > existing already. > > So, what I can see is > > dmacap,private > dmacap,memcpy

[PATCH] xen/gntdev: Use mempolicy instead of VM_IO flag to avoid NUMA balancing

2016-11-16 Thread Boris Ostrovsky
Commit 9c17d96500f7 ("xen/gntdev: Grant maps should not be subject to NUMA balancing") set VM_IO flag to prevent grant maps from being subjected to NUMA balancing. It was discovered recently this this flag may cause page allocation failures with the following stack: check_vma_flags __get_user_pag

Re: [PATCH net 1/3] net: phy: realtek: add eee advertisement disable options

2016-11-16 Thread Anand Moon
Hi Jerome. On 15 November 2016 at 19:59, Jerome Brunet wrote: > On some platforms, energy efficient ethernet with rtl8211 devices is > causing issue, like throughput drop or broken link. > > This was reported on the OdroidC2 (DWMAC + RTL8211F). While the issue root > cause is not fully understoo

Re: [PATCH 2/2] soc: fsl: fix section mismatch build warnings

2016-11-16 Thread Arnd Bergmann
On Wednesday, November 16, 2016 4:39:27 PM CET Sudeep Holla wrote: > @@ -223,6 +222,7 @@ static struct platform_driver fsl_guts_driver = { > > static int __init fsl_guts_init(void) > { > + machine = of_flat_dt_get_machine_name(); > return platform_driver_register(&fsl_guts_driver)

Re: [PATCH] net: dsa: fix fixed-link-phy device leaks

2016-11-16 Thread Florian Fainelli
On 11/16/2016 06:47 AM, Johan Hovold wrote: > Make sure to drop the reference taken by of_phy_find_device() when > registering and deregistering the fixed-link PHY-device. > > Note that we need to put both references held at deregistration. > > Fixes: 39b0c705195e ("net: dsa: Allow configuration

[PATCH v3 1/1] KVM: ARM64: Fix the issues when guest PMCCFILTR is configured

2016-11-16 Thread Wei Huang
KVM calls kvm_pmu_set_counter_event_type() when PMCCFILTR is configured. But this function can't deals with PMCCFILTR correctly because the evtCount bits of PMCCFILTR, which is reserved 0, conflits with the SW_INCR event type of other PMXEVTYPER registers. To fix it, when eventsel == 0, this functi

Re: [PATCH 2/2] soc: fsl: fix section mismatch build warnings

2016-11-16 Thread Sudeep Holla
On 16/11/16 17:07, Arnd Bergmann wrote: On Wednesday, November 16, 2016 4:39:27 PM CET Sudeep Holla wrote: @@ -223,6 +222,7 @@ static struct platform_driver fsl_guts_driver = { static int __init fsl_guts_init(void) { + machine = of_flat_dt_get_machine_name(); return platform_d

Re: [PATCH v2] net/phy/vitesse: Configure RGMII skew on VSC8601, if needed

2016-11-16 Thread Alex
On 11/16/2016 08:54 AM, Andrew Lunn wrote: On Wed, Nov 16, 2016 at 08:44:30AM -0800, Alex wrote: On 11/16/2016 05:50 AM, Andrew Lunn wrote: On Wed, Nov 16, 2016 at 01:02:33AM -0800, Alexandru Gagniuc wrote: With RGMII, we need a 1.5 to 2ns skew between clock and data lines. The VSC8601 can

Re: [PATCH v3 6/9] mtd: spi-nor: Support R/W for S25FS-S family flash

2016-11-16 Thread Han Xu
On Thu, Sep 15, 2016 at 06:50:55AM +, Krzeminski, Marcin (Nokia - PL/Wroclaw) wrote: > Hello, > > > -Original Message- > > From: linux-mtd [mailto:linux-mtd-boun...@lists.infradead.org] On Behalf > > Of Han Xu > > Sent: Wednesday, September 14, 2016 9:49 PM > > To: Yunhui Cui > > Cc:

Re: [PATCH] net: dsa: fix fixed-link-phy device leaks

2016-11-16 Thread Johan Hovold
On Wed, Nov 16, 2016 at 09:06:26AM -0800, Florian Fainelli wrote: > On 11/16/2016 06:47 AM, Johan Hovold wrote: > > Make sure to drop the reference taken by of_phy_find_device() when > > registering and deregistering the fixed-link PHY-device. > > > > Note that we need to put both references held

Re: [PATCH 1/5] drm/modes: Rewrite the command line parser

2016-11-16 Thread Sean Paul
On Tue, Oct 18, 2016 at 4:29 AM, Maxime Ripard wrote: > Rewrite the command line parser in order to get away from the state machine > parsing the video mode lines. > > Hopefully, this will allow to extend it more easily to support named modes > and / or properties set directly on the command line.

Re: [PATCH V7 1/3] ACPI: Retry IRQ conversion if it failed previously

2016-11-16 Thread Lorenzo Pieralisi
On Tue, Nov 15, 2016 at 12:43:38PM -0500, Agustin Vega-Frias wrote: > Hi Lorenzo, > > On 2016-11-15 10:48, Lorenzo Pieralisi wrote: > >On Sun, Nov 13, 2016 at 04:59:33PM -0500, Agustin Vega-Frias wrote: > >>This allows probe deferral to work properly when a dependent device > >>fails to get a vali

Re: [Xen-devel] [PATCH] xen/gntdev: Use mempolicy instead of VM_IO flag to avoid NUMA balancing

2016-11-16 Thread David Vrabel
On 16/11/16 17:02, Boris Ostrovsky wrote: > Commit 9c17d96500f7 ("xen/gntdev: Grant maps should not be subject to > NUMA balancing") set VM_IO flag to prevent grant maps from being > subjected to NUMA balancing. > > It was discovered recently this this flag may cause page allocation > failures wit

Re: [PATCH 2/5] drm/modes: Support modes names on the command line

2016-11-16 Thread Sean Paul
On Tue, Oct 18, 2016 at 4:29 AM, Maxime Ripard wrote: > The drm subsystem also uses the video= kernel parameter, and in the > documentation refers to the fbdev documentation for that parameter. > > However, that documentation also says that instead of giving the mode using > its resolution we can

Re: [PATCH v4 4/4] ARM: dts: da850: Add the usb otg device nodeg

2016-11-16 Thread Bin Liu
On Wed, Nov 16, 2016 at 12:06:51PM +0530, Sekhar Nori wrote: > On Wednesday 16 November 2016 02:49 AM, Bin Liu wrote: > > On Tue, Nov 15, 2016 at 04:16:02PM +0530, Sekhar Nori wrote: > >> On Thursday 03 November 2016 09:29 PM, Alexandre Bailon wrote: > >>> This adds the device tree node for the usb

[PATCH v4] cpufreq: conservative: Decrease frequency faster when the update deferred

2016-11-16 Thread Stratos Karafotis
Conservative governor changes the CPU frequency in steps. That means that if a CPU runs at max frequency, it will need several sampling periods to return to min frequency when the workload is finished. If the update function that calculates the load and target frequency is deferred, the governor m

[PATCH] hwmon: ltc2990: support all measurement modes

2016-11-16 Thread Tom Levens
Updated ltc2990 driver to support all possible measurement modes that the chip provides. Mode can be set through a device tree attribute or by writing to the "mode" sysfs attribute. Signed-off-by: Tom Levens --- .../devicetree/bindings/hwmon/ltc2990.txt | 15 + Documentation/hwmon/ltc

Re: [PATCH v2] KVM: x86: do not go through vcpu in __get_kvmclock_ns

2016-11-16 Thread Paolo Bonzini
> > - if (vcpu->arch.hv_clock.flags & PVCLOCK_TSC_STABLE_BIT) { > > - u64 tsc = kvm_read_l1_tsc(vcpu, rdtsc()); > > - ns = __pvclock_read_cycles(&vcpu->arch.hv_clock, tsc); > > - } else { > > - ns = ktime_get_boot_ns() + ka->kvmclock_offset; > > - } > > If we a

[PATCH] device-dax: fail all private mapping attempts

2016-11-16 Thread Dan Williams
The device-dax implementation originally tried to be tricky and allow private read-only mappings, but in the process allowed writable MAP_PRIVATE + MAP_NORESERVE mappings. For simplicity and predictability just fail all private mapping attempts since device-dax memory is statically allocated and w

Re: [PATCH 0/3] perf: add support for analyzing events for containers

2016-11-16 Thread Eric W. Biederman
Hari Bathini writes: > On Friday 11 November 2016 01:18 AM, Eric W. Biederman wrote: >> Hari Bathini writes: >> >>> Currently, there is no trivial mechanism to analyze events based on >>> containers. perf -G can be used, but it will not filter events for the >>> containers created after perf is

Re: [PATCH] Support for perf on AMD family17h processors

2016-11-16 Thread Peter Zijlstra
On Wed, Nov 16, 2016 at 11:01:53AM -0600, Janakarajan Natarajan wrote: > This patch enables perf core PMU support for AMD family17h processors. > In family17h, there is no PMC-event constraint. All events, irrespective > of the type, can be measured using any of the performance counters. > Is the

Re: INFO: rcu_sched detected stalls on CPUs/tasks with `kswapd` and `mem_cgroup_shrink_node`

2016-11-16 Thread Paul E. McKenney
On Wed, Nov 16, 2016 at 06:01:19PM +0100, Paul Menzel wrote: > Dear Linux folks, > > > On 11/08/16 19:39, Paul E. McKenney wrote: > >On Tue, Nov 08, 2016 at 06:38:18PM +0100, Paul Menzel wrote: > >>On 11/08/16 18:03, Paul E. McKenney wrote: > >>>On Tue, Nov 08, 2016 at 01:22:28PM +0100, Paul Menz

[PATCH v3] KVM: x86: do not go through vcpu in __get_kvmclock_ns

2016-11-16 Thread Paolo Bonzini
Going through the first VCPU is wrong if you follow a KVM_SET_CLOCK with a KVM_GET_CLOCK immediately after, without letting the VCPU run and call kvm_guest_time_update. To fix this, compute the kvmclock value ourselves, using the master clock (tsc, nsec) pair as the base and the host CPU frequency

Re: [PATCHv2 5/6] arm64: Use __pa_symbol for _end

2016-11-16 Thread Catalin Marinas
On Tue, Nov 15, 2016 at 04:09:07PM -0800, Laura Abbott wrote: > On 11/15/2016 10:35 AM, Catalin Marinas wrote: > > I'm fine with __pa_symbol use entirely from under arch/arm64. But if you > > want to use __pa_symbol, I tried to change most (all?) places where > > necessary, together with making vir

Re: [PATCHC v7 02/10] ima: on soft reboot, restore the measurement list

2016-11-16 Thread Dmitry Kasatkin
On Thu, Nov 10, 2016 at 4:56 PM, Mimi Zohar wrote: > The TPM PCRs are only reset on a hard reboot. In order to validate a > TPM's quote after a soft reboot (eg. kexec -e), the IMA measurement list > of the running kernel must be saved and restored on boot. This patch > restores the measurement l

Re: [PATCH v2 -next] Input: gpio_keys: set input direction explicitly for gpio keys

2016-11-16 Thread Dmitry Torokhov
On Wed, Nov 16, 2016 at 01:42:14PM +, Sudeep Holla wrote: > Commit 700a38b27eef ("Input: gpio_keys - switch to using generic device > properties") switched to use generic device properties for GPIO keys and > commit 5feeca3c1e39 ("Input: gpio_keys - add support for GPIO descriptors") > switched

[RFC 2/3] abi_spec: hooks into syscall to allow pre and post checking

2016-11-16 Thread alexander . levin
This is a simple way to be able to verify syscall parameters before the call to the actual syscall, and also verify the return value after the call. Signed-off-by: Sasha Levin --- include/linux/syscalls.h | 7 ++- kernel/Makefile | 2 ++ kernel/abi_spec.c| 15 +

[RFC 0/3] ABI spec - verification

2016-11-16 Thread alexander . levin
As discussed at plumbers, having a standard spec for the kernel's ABI has quite a few uses and enough people wanted it to get the ball rolling. We agreed that it's desirable to have something that can be used from code rather than just a spec on paper both for validation and allowing other users (

Re: [PATCHC v7 00/10] ima: carry the measurement list across kexec

2016-11-16 Thread Dmitry Kasatkin
On Thu, Nov 10, 2016 at 4:56 PM, Mimi Zohar wrote: > [Posting with abbreviated Cc list.] > > The TPM PCRs are only reset on a hard reboot. In order to validate a > TPM's quote after a soft reboot (eg. kexec -e), the IMA measurement list > of the running kernel must be saved and then restored on t

[RFC 3/3] abi_spec: example spec for open(), placeholder for rest of syscalls

2016-11-16 Thread alexander . levin
Signed-off-by: Sasha Levin --- kernel/abi_spec.c | 441 ++ 1 file changed, 441 insertions(+) diff --git a/kernel/abi_spec.c b/kernel/abi_spec.c index 7933c45..9378a533 100644 --- a/kernel/abi_spec.c +++ b/kernel/abi_spec.c @@ -3,8 +3,52 @@ #in

[RFC 1/3] abi_spec: basic definitions of constraints, args and syscalls

2016-11-16 Thread alexander . levin
This is a very simple definition of the syscall ABI we can build on. The idea is to have a generic description of syscalls, their arguments and return values we can use to audit the kernel's implementation vs the specs. Signed-off-by: Sasha Levin --- include/uapi/linux/abi_spec.h | 58 ++

[PATCH v4] console: Add persistent scrollback buffers for all VGA console

2016-11-16 Thread Manuel Schölling
--- Changes in v4: - Rename from VGACON_SOFT_SCROLLBACK_FOR_EACH_CONSOLE to VGACON_SOFT_SCROLLBACK_PERSISTENT - Split into two patches - Rework documentation - Remove cosmetic changes in comments (postponed) Changes in v3: - Add config option for this feature - Fallback to old scrol

[PATCH v4 1/2] console: Move scrollback data into its own struct

2016-11-16 Thread Manuel Schölling
This refactoring is in preparation for persistent scrollback support for VGA console. Signed-off-by: Manuel Schölling --- drivers/video/console/vgacon.c | 82 +- 1 file changed, 42 insertions(+), 40 deletions(-) diff --git a/drivers/video/console/vgacon.c

[PATCH v4 2/2] console: Add persistent scrollback buffers for all VGA consoles

2016-11-16 Thread Manuel Schölling
Add a scrollback buffers for each VGA console. The benefit is that the scrollback history is not flushed when switching between consoles but is persistent. The buffers are allocated on demand when a new console is opened. This breaks tools like clear_console that rely on flushing the scrollback hi

[PATCH v5] mailbox: Add Tegra HSP driver

2016-11-16 Thread Thierry Reding
From: Thierry Reding This driver exposes a mailbox interface for interprocessor communication using the Hardware Synchronization Primitives (HSP) module's doorbell mechanism. There are multiple HSP instances and they provide additional features such as shared mailboxes, shared and arbitrated sema

Re: [PATCH v2 -next] Input: gpio_keys: set input direction explicitly for gpio keys

2016-11-16 Thread Sudeep Holla
On 16/11/16 17:36, Dmitry Torokhov wrote: On Wed, Nov 16, 2016 at 01:42:14PM +, Sudeep Holla wrote: Commit 700a38b27eef ("Input: gpio_keys - switch to using generic device properties") switched to use generic device properties for GPIO keys and commit 5feeca3c1e39 ("Input: gpio_keys - add

[PATCHv2 perf/core 0/2] libbpf: Synchronize implementations

2016-11-16 Thread Joe Stringer
Update tools/lib/bpf to provide more functionality and improve interoperation with other tools that generate and use eBPF code: * The kernel uapi headers are a bit newer than the version in the tools/ directory; synchronize those. * samples/bpf/libbpf* has a bit more functionality than tools/lib/

[PATCHv2 perf/core 2/2] tools lib bpf: Sync with samples/bpf/libbpf

2016-11-16 Thread Joe Stringer
Extend the tools/ version of libbpf to include all of the functionality provided in the samples/bpf version. Signed-off-by: Joe Stringer --- v2: Don't shift non-bpf changes across. Various type cleanups, removal of extraneous declarations --- tools/lib/bpf/bpf.c| 107

Boot failures in -next due to 'ARM: dts: imx: Remove skeleton.dtsi'

2016-11-16 Thread Guenter Roeck
qemu-arm-next/builds/571/steps/qemubuildcommand/logs/stdio Boot log for imx25-pdk: qemu-system-arm: findnode_nofail Couldn't find node /chosen: FDT_ERR_NOTFOUND Boot log for sabrelite: [0.00] Booting Linux on physical CPU 0x0 [0.00] Linux version 4.9.0-rc5-next-20161116 (gro...@jupit

Re: [PATCH v3 6/9] mtd: spi-nor: Support R/W for S25FS-S family flash

2016-11-16 Thread Jagan Teki
On Thu, Aug 18, 2016 at 1:08 PM, Yunhui Cui wrote: > From: Yunhui Cui > > With the physical sectors combination, S25FS-S family flash > requires some special operations for read/write functions. > > Signed-off-by: Yunhui Cui > --- > drivers/mtd/spi-nor/spi-nor.c | 56 >

[PATCHv2 perf/core 1/2] tools lib bpf: Sync {tools,}/include/uapi/linux/bpf.h

2016-11-16 Thread Joe Stringer
The tools version of this header is out of date; update it to the latest version from the kernel headers. Signed-off-by: Joe Stringer --- v2: No change. --- tools/include/uapi/linux/bpf.h | 51 ++ 1 file changed, 51 insertions(+) diff --git a/tools/includ

Re: [PATCH v3] console: Add persistent scrollback buffers for all VGA consoles

2016-11-16 Thread Manuel Schölling
Hi, I finally found the time to rework the patches, but there are a few things I want to discuss: > > This breaks tools like clear_console that rely on flushing the > > scrollback history by switching back and forth between consoles > > which is why this feature is disabled by default. > > Use th

Re: [PATCH/RFC] mm: don't cap request size based on read-ahead setting

2016-11-16 Thread Johannes Weiner
On Tue, Nov 15, 2016 at 03:41:58PM -0700, Jens Axboe wrote: > On 11/15/2016 03:27 PM, Johannes Weiner wrote: > > Hi Jens, > > > > On Thu, Nov 10, 2016 at 10:00:37AM -0700, Jens Axboe wrote: > > > Hi, > > > > > > We ran into a funky issue, where someone doing 256K buffered reads saw > > > 128K req

[PATCH v2] xen/gntdev: Use mempolicy instead of VM_IO flag to avoid NUMA balancing

2016-11-16 Thread Boris Ostrovsky
Commit 9c17d96500f7 ("xen/gntdev: Grant maps should not be subject to NUMA balancing") set VM_IO flag to prevent grant maps from being subjected to NUMA balancing. It was discovered recently that this flag causes get_user_pages() to always fail with -EFAULT. check_vma_flags __get_user_pages __get

Re: [PATCH v4 2/2] mailbox: Add Tegra HSP driver

2016-11-16 Thread Thierry Reding
On Wed, Nov 16, 2016 at 09:00:19PM +0530, Jassi Brar wrote: > On Wed, Nov 16, 2016 at 8:38 PM, Thierry Reding > wrote: > > On Wed, Nov 16, 2016 at 10:58:07AM +0530, Jassi Brar wrote: > >> On Tue, Nov 15, 2016 at 9:18 PM, Thierry Reding > >> wrote: > >> > >> > >> > + > >> > +struct tegra_hsp_

Re: [RFC 0/3] ABI spec - verification

2016-11-16 Thread Thomas Gleixner
On Wed, 16 Nov 2016, alexander.le...@verizon.com wrote: Cc'ed Nicholas McGuire > As discussed at plumbers, having a standard spec for the kernel's ABI has > quite a few uses and enough people wanted it to get the ball rolling. > > We agreed that it's desirable to have something that can be used

[tip:irq/core] genirq/affinity: Take reserved vectors into account when spreading irqs

2016-11-16 Thread tip-bot for Christoph Hellwig
Commit-ID: bfe130773862bb3a02cdc4d4c2169f7f0210a46b Gitweb: http://git.kernel.org/tip/bfe130773862bb3a02cdc4d4c2169f7f0210a46b Author: Christoph Hellwig AuthorDate: Tue, 15 Nov 2016 10:12:58 +0100 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 18:44:01 +0100 genirq/affinity: T

[PATCH V2 0/2] ARM: bcm2835: Fix names for the Raspberry Pi GPIO lines

2016-11-16 Thread Stefan Wahren
This patch series should fix and extend the patch V4 "ARM: bcm2835: Add names for the Raspberry Pi GPIO lines" from Linus Walleij and Eric Anholt. Changes in V2: - fix URL to firmware DT blob - drop dtsi file since Model A+ and Zero aren't identical Stefan Wahren (2): ARM: bcm2835: Fix name

[PATCH V2 1/2] ARM: bcm2835: Fix names for the Raspberry Pi GPIO lines

2016-11-16 Thread Stefan Wahren
There are some differences between the schematics and the official firmware DTS [1]. So based on these additional information the following has been changed: * use consistent "CAM_GPIO1" for camera LED * use consistent "CAM_GPIO0" for camera shutdown * add "USB_LIMIT" for USB current limit (0=600m

[PATCH V2 2/2] ARM: bcm2835: Add names for the RPi Zero GPIO lines

2016-11-16 Thread Stefan Wahren
This adds the GPIO names for the Raspberry Pi Zero. The GPIO lines of the RPi Zero are almost identical to the Model A+ except: * GPIO 35, 38, 40 and 45 are not connected * Status LED is active low Signed-off-by: Stefan Wahren --- arch/arm/boot/dts/bcm2835-rpi-zero.dts | 65 ++

Re: [PATCH] x86/fpu: Fix invalid FPU ptrace state after execve

2016-11-16 Thread Borislav Petkov
On Wed, Nov 16, 2016 at 08:56:36AM -0800, Yu-cheng Yu wrote: > Robert O'Callahan reported that after an execve PTRACE_GETREGSET > NT_X86_XSTATE continues to return the pre-exec register values > until the exec'ed task modifies FPU state. The test code is at > https://bugzilla.redhat.com/attachment

Re: [RFC 01/14] SoundWire: Add SoundWire bus driver documentation

2016-11-16 Thread Mark Brown
On Tue, Nov 15, 2016 at 07:59:14PM +0530, Vinod Koul wrote: > On Mon, Nov 14, 2016 at 02:15:48PM +, Charles Keepax wrote: > > slaves register to that. This also has the nice property that its > > easy to create devices that sit behind other buses, for example > > here we might want a SoundWire

Re: Regression: Failed boots bisected to 4cd13c21b207 "softirq: Let ksoftirqd do its job"

2016-11-16 Thread Brian Starkey
Hi Eric, On Wed, Nov 16, 2016 at 07:52:42AM -0800, Eric Dumazet wrote: On Wed, Nov 16, 2016 at 5:55 AM, Brian Starkey wrote: Hi, I'm running an ARM FVP (virtual platform - simluated hardware), which is failing to reach a login prompt due to extremely slow progress during boot. systemd gives u

Re: [PATCH] clocksource_cyc2ns: avoid overflowing 64 bits

2016-11-16 Thread John Stultz
On Wed, Nov 16, 2016 at 8:57 AM, Chris Metcalf wrote: > For large values of "mult" and long uptimes, the intermediate > result of "cycles * mult" can overflow 64 bits. For example, > the tile platform uses this helper function; for a 1.2 GHz clock, > we have mult = 853, and after 208.5 days, we o

[PATCH 0/9] KEYS: Blacklisting & UEFI database load

2016-11-16 Thread David Howells
Here are two sets of patches. Firstly, the first three patches provide a blacklist, making the following changes: (1) Add a new key type, blacklist, that is a slimline key that just contains a blacklisted hash and a note saying what it applies to. (2) Add a system keyring, .blacklist, th

Re: [PATCH 2/2] pci: Don't set RCB bit in LNKCTL if the upstream bridge hasn't

2016-11-16 Thread Bjorn Helgaas
Hi Johannes, On Wed, Nov 02, 2016 at 04:35:52PM -0600, Johannes Thumshirn wrote: > The Read Completion Boundary (RCB) bit must only be set on a device or > endpoint if it is set on the root complex. I propose the following slightly modified patch. The interesting difference is that your patch on

[PATCH 8/9] MODSIGN: Import certificates from UEFI Secure Boot

2016-11-16 Thread David Howells
From: Josh Boyer Secure Boot stores a list of allowed certificates in the 'db' variable. This imports those certificates into the system trusted keyring. This allows for a third party signing certificate to be used in conjunction with signed modules. By importing the public certificate into the

[PATCH 7/9] efi: Add an EFI signature blob parser

2016-11-16 Thread David Howells
From: Dave Howells Add a function to parse an EFI signature blob looking for elements of interest. A list is made up of a series of sublists, where all the elements in a sublist are of the same type, but sublists can be of different types. For each sublist encountered, the function pointed to b

[PATCH 9/9] MODSIGN: Allow the "db" UEFI variable to be suppressed

2016-11-16 Thread David Howells
From: Josh Boyer If a user tells shim to not use the certs/hashes in the UEFI db variable for verification purposes, shim will set a UEFI variable called MokIgnoreDB. Have the uefi import code look for this and ignore the db variable if it is found. Signed-off-by: Josh Boyer Signed-off-by: Dav

[PATCH 6/9] efi: Add EFI signature data types

2016-11-16 Thread David Howells
From: Dave Howells Add the data types that are used for containing hashes, keys and certificates for cryptographic verification along with their corresponding type GUIDs. Signed-off-by: David Howells --- include/linux/efi.h | 24 1 file changed, 24 insertions(+) di

Re: [PATCH] net: dsa: fix fixed-link-phy device leaks

2016-11-16 Thread Florian Fainelli
On 11/16/2016 09:11 AM, Johan Hovold wrote: > On Wed, Nov 16, 2016 at 09:06:26AM -0800, Florian Fainelli wrote: >> On 11/16/2016 06:47 AM, Johan Hovold wrote: >>> Make sure to drop the reference taken by of_phy_find_device() when >>> registering and deregistering the fixed-link PHY-device. >>> >>>

Re: [PATCH v3] KVM: x86: do not go through vcpu in __get_kvmclock_ns

2016-11-16 Thread Radim Krčmář
2016-11-16 18:31+0100, Paolo Bonzini: > Going through the first VCPU is wrong if you follow a KVM_SET_CLOCK with > a KVM_GET_CLOCK immediately after, without letting the VCPU run and > call kvm_guest_time_update. > > To fix this, compute the kvmclock value ourselves, using the master > clock (tsc,

Re: [PATCH v2] KVM: x86: do not go through vcpu in __get_kvmclock_ns

2016-11-16 Thread Radim Krčmář
2016-11-16 12:27-0500, Paolo Bonzini: >> > + if (!ka->use_master_clock) >> > + return ktime_get_boot_ns() + ka->kvmclock_offset; >> > >> > - return ns; >> > + hv_clock.tsc_timestamp = ka->master_cycle_now; >> > + hv_clock.system_time = ka->master_kernel_ns + ka->kvmclock_offset; >> >

Re: [PATCH 4/4] Update device tree Synopsys DW DMAC documentation

2016-11-16 Thread Rob Herring
On Wed, Nov 16, 2016 at 12:08 PM, Andy Shevchenko wrote: > On Wed, 2016-11-16 at 17:01 +, Eugeniy Paltsev wrote: >> On Wed, 2016-11-16 at 17:10 +0200, Andy Shevchenko wrote: >> > Overall, since we are going to expose some properties to the Device >> > Tree >> > I would really think twice about

[PATCH 5/9] efi: Add SHIM and image security database GUID definitions

2016-11-16 Thread David Howells
Add the definitions for shim and image security database, both of which are used widely in various Linux distros. Signed-off-by: Josh Boyer Signed-off-by: David Howells --- include/linux/efi.h |3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/efi.h b/include/linux/efi.h i

[PATCH 3/9] PKCS#7: Handle blacklisted certificates

2016-11-16 Thread David Howells
PKCS#7: Handle certificates that are blacklisted when verifying the chain of trust on the signatures on a PKCS#7 message. Signed-off-by: David Howells --- crypto/asymmetric_keys/pkcs7_parser.h |1 + crypto/asymmetric_keys/pkcs7_verify.c | 32 2 files chang

Re: [PATCH 4/4] Update device tree Synopsys DW DMAC documentation

2016-11-16 Thread Andy Shevchenko
On Wed, 2016-11-16 at 17:01 +, Eugeniy Paltsev wrote: > On Wed, 2016-11-16 at 17:10 +0200, Andy Shevchenko wrote: > > Overall, since we are going to expose some properties to the Device > > Tree > > I would really think twice about naming. Better if we reuse > > something > > existing already.

Re: [PATCH v3 0/2] arm64: Support systems without FP/ASIMD

2016-11-16 Thread Catalin Marinas
On Tue, Nov 08, 2016 at 01:56:19PM +, Suzuki K. Poulose wrote: > This series adds supports to the kernel and KVM hyp to handle > systems without FP/ASIMD properly. At the moment the kernel > doesn't check if the FP unit is available before accessing > the registers (e.g during context switch).

[PATCH 2/9] X.509: Allow X.509 certs to be blacklisted

2016-11-16 Thread David Howells
Allow X.509 certs to be blacklisted based on their TBSCertificate hash. This is convenient since we have to determine this anyway to be able to check the signature on an X.509 certificate. This is also what UEFI uses in its blacklist. If a certificate built into the kernel is blacklisted, somethi

[PATCH 1/9] KEYS: Add a system blacklist keyring

2016-11-16 Thread David Howells
Add the following: (1) A new system keyring that is used to store information about blacklisted certificates and signatures. (2) A new key type (called 'blacklist') that is used to store a blacklisted hash in its description as a hex string. The key accepts no payload. (3) The

[PATCH 4/9] KEYS: Allow unrestricted boot-time addition of keys to secondary keyring

2016-11-16 Thread David Howells
Allow keys to be added to the system secondary certificates keyring during kernel initialisation in an unrestricted fashion. Such keys are implicitly trusted and don't have their trust chains checked on link. This allows keys in the UEFI database to be added in secure boot mode for the purposes o

[PATCH] platform/chrome : Add myself as Maintainer

2016-11-16 Thread Benson Leung
I'll be taking over maintainership of platform/chrome from Olof, so let's add me to the list of maintainers. Signed-off-by: Benson Leung --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2a58eea..5e77b1e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH 2/2] selftests/x86: Add test_vdso to test getcpu

2016-11-16 Thread Andy Lutomirski
I'll eventually add tests for more vdso functions here. Signed-off-by: Andy Lutomirski --- tools/testing/selftests/x86/Makefile| 2 +- tools/testing/selftests/x86/test_vdso.c | 123 2 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 tools

[PATCH 1/2] x86/vdso: Use RDPID in preference to LSL when available

2016-11-16 Thread Andy Lutomirski
RDPID is a new instruction that reads MSR_TSC_AUX quickly. This should be considerably faster than reading the GDT. Add a cpufeature for it and use it from __vdso_getcpu when available. Tested-by: Megha Dey Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/

[PATCH 0/2] x86/vdso: RDPID support and a test

2016-11-16 Thread Andy Lutomirski
RDPID is a new instruction in unspecified future Intel processors (sigh) that returns MSR_TSC_AUX. This will finally let the vDSO stop using LSL. Patch 1 is the meat and patch 2 is the test. Megha has kindly tested them for me, since I don't own an unspecified Intel processor :) Andy Lutomirski

mlx4 BUG_ON in probe path

2016-11-16 Thread Bjorn Helgaas
Hi Yishai, Johannes has been working on an mlx4 initialization problem on an IBM x3850 X6. The underlying problem is a PCI core issue -- we're setting RCB in the Mellanox device, which means it thinks it can generate 128-byte Completions, even though the Root Port above it can't handle them. Tha

Re: [PATCH v2 0/5] net: thunderx: Miscellaneous fixes

2016-11-16 Thread David Miller
From: sunil.kovv...@gmail.com Date: Tue, 15 Nov 2016 17:35:56 +0530 > This patchset includes fixes for incorrect LMAC credits, > unreliable driver statistics, memory leak upon interface > down e.t.c > > Changes from v1: > - As suggested replaced bit shifting with BIT() macro > in the patch 'Fix

Re: [PATCH V7 1/3] ACPI: Retry IRQ conversion if it failed previously

2016-11-16 Thread Agustin Vega-Frias
Hi Lorenzo, On 2016-11-16 12:18, Lorenzo Pieralisi wrote: On Tue, Nov 15, 2016 at 12:43:38PM -0500, Agustin Vega-Frias wrote: Hi Lorenzo, On 2016-11-15 10:48, Lorenzo Pieralisi wrote: >On Sun, Nov 13, 2016 at 04:59:33PM -0500, Agustin Vega-Frias wrote: >>This allows probe deferral to work prop

Re: perf: fuzzer KASAN perf_callchain_store on amd

2016-11-16 Thread Vince Weaver
On Wed, 16 Nov 2016, Dmitry Vyukov wrote: > On Wed, Nov 16, 2016 at 5:33 PM, Vince Weaver > wrote: > > > > [118725.787218] [] ? save_stack+0x33/0xa6 > > [118725.793967] [] ? save_stack+0x33/0xa6 > > [118725.800690] [] ? save_stack+0x33/0xa6 > > [118725.807393] [] ? save_stack+0x33/0xa6 > > .

Re: [PATCH v2 -next] Input: gpio_keys: set input direction explicitly for gpio keys

2016-11-16 Thread Dmitry Torokhov
On Wed, Nov 16, 2016 at 05:42:15PM +, Sudeep Holla wrote: > > > On 16/11/16 17:36, Dmitry Torokhov wrote: > >On Wed, Nov 16, 2016 at 01:42:14PM +, Sudeep Holla wrote: > >>Commit 700a38b27eef ("Input: gpio_keys - switch to using generic device > >>properties") switched to use generic devic

[PATCH] Support for perf on AMD family17h processors

2016-11-16 Thread Janakarajan Natarajan
This patch enables perf core PMU support for AMD family17h processors. In family17h, there is no PMC-event constraint. All events, irrespective of the type, can be measured using any of the performance counters. Signed-off-by: Janakarajan Natarajan --- arch/x86/events/amd/core.c | 15 +++

Re: [PATCH] platform/chrome : Add myself as Maintainer

2016-11-16 Thread Guenter Roeck
On Wed, Nov 16, 2016 at 10:19:25AM -0800, Benson Leung wrote: > I'll be taking over maintainership of platform/chrome from Olof, > so let's add me to the list of maintainers. > > Signed-off-by: Benson Leung Acked-by: Guenter Roeck > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) >

[PATCH v3 -next] Input: gpio_keys: set input direction explicitly for gpio keys

2016-11-16 Thread Sudeep Holla
Commit 700a38b27eef ("Input: gpio_keys - switch to using generic device properties") switched to use generic device properties for GPIO keys and commit 5feeca3c1e39 ("Input: gpio_keys - add support for GPIO descriptors") switched from legacy GPIO numbers to GPIO descriptors. Previously devm_gpio_r

Re: [PATCH v2 -next] Input: gpio_keys: set input direction explicitly for gpio keys

2016-11-16 Thread Sudeep Holla
On 16/11/16 18:34, Dmitry Torokhov wrote: On Wed, Nov 16, 2016 at 05:42:15PM +, Sudeep Holla wrote: On 16/11/16 17:36, Dmitry Torokhov wrote: On Wed, Nov 16, 2016 at 01:42:14PM +, Sudeep Holla wrote: Commit 700a38b27eef ("Input: gpio_keys - switch to using generic device properties

Re: [PATCH] mm: don't cap request size based on read-ahead setting

2016-11-16 Thread Jens Axboe
On 11/16/2016 08:12 AM, Jens Axboe wrote: On 11/16/2016 12:17 AM, Hillf Danton wrote: On Wednesday, November 16, 2016 12:31 PM Jens Axboe wrote: @@ -369,10 +369,25 @@ ondemand_readahead(struct address_space *mapping, bool hit_readahead_marker, pgoff_t offset, unsigned

[PATCH] input: raydium_i2c_ts: fix spelling mistake in dev_err message

2016-11-16 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake "failied" to "failed" in dev_err message. Signed-off-by: Colin Ian King --- drivers/input/touchscreen/raydium_i2c_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/raydium_i2c_ts.c b/drivers/

Re: [PATCH] pstore: fix warning about conditional locking

2016-11-16 Thread Joel Fernandes
Hi Arnd, On Wed, Nov 16, 2016 at 7:15 AM, Arnd Bergmann wrote: > gcc cannot prove that "prz->flags" remains constant over the > function, so it warns that we might restore flags that have > never been saved: > > fs/pstore/ram_core.c: In function ‘buffer_size_add’: > include/linux/spinlock.h:246:3

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-16 Thread Kees Cook
On Wed, Nov 16, 2016 at 12:31 AM, Ingo Molnar wrote: > > * Kees Cook wrote: > >> On Tue, Nov 15, 2016 at 11:16 AM, Peter Zijlstra >> wrote: >> > >> > >> > On 15 November 2016 19:06:28 CET, Kees Cook wrote: >> > >> >>I'll want to modify this in the future; I have a config already doing >> >>"Bu

Re: Boot failures in -next due to 'ARM: dts: imx: Remove skeleton.dtsi'

2016-11-16 Thread Fabio Estevam
Interesting. I am not able to reproduce the boot failure and also do not see it reported at kernelci.org: https://kernelci.org/soc/imx/job/next/kernel/next-20161115/ nor at Olof's autobooter: http://arm-soc.lixom.net/bootlogs/next/next-20161116/wandboard-arm-multi_v7_defconfig.html Not sur

Re: [PATCH] Support for perf on AMD family17h processors

2016-11-16 Thread Borislav Petkov
On Wed, Nov 16, 2016 at 11:01:53AM -0600, Janakarajan Natarajan wrote: > This patch enables perf core PMU support for AMD family17h processors. > In family17h, there is no PMC-event constraint. All events, irrespective > of the type, can be measured using any of the performance counters. > > Signe

Re: Boot failures in -next due to 'ARM: dts: imx: Remove skeleton.dtsi'

2016-11-16 Thread Mark Rutland
no longer have a /chosen node. We should add one to the relevant dts{i,} files, with stdout-path and so on. > Boot log for sabrelite: > > [0.00] Booting Linux on physical CPU 0x0 > [0.00] Linux version 4.9.0-rc5-next-20161116 > (gro...@jupiter.roeck-us.net) (gcc ve

Re: [PATCH/RFC] mm: don't cap request size based on read-ahead setting

2016-11-16 Thread Jens Axboe
On 11/16/2016 10:44 AM, Johannes Weiner wrote: On Tue, Nov 15, 2016 at 03:41:58PM -0700, Jens Axboe wrote: On 11/15/2016 03:27 PM, Johannes Weiner wrote: Hi Jens, On Thu, Nov 10, 2016 at 10:00:37AM -0700, Jens Axboe wrote: Hi, We ran into a funky issue, where someone doing 256K buffered read

Re: Regression: Failed boots bisected to 4cd13c21b207 "softirq: Let ksoftirqd do its job"

2016-11-16 Thread Eric Dumazet
On Wed, Nov 16, 2016 at 10:01 AM, Brian Starkey wrote: > > The smc91x driver does seem to have some trickiness around softirqs. > I'm not familiar with net drivers, but I'll see if I can figure > anything out there. Oh this code looks ugly :( Do you have CONFIG_SMP=y or not ?

Re: [v5,1/5] soc: qcom: smem_state: Fix include for ERR_PTR()

2016-11-16 Thread Kalle Valo
Bjorn Andersson wrote: > The correct include file for getting errno constants and ERR_PTR() is > linux/err.h, rather than linux/errno.h, so fix the include. > > Fixes: e8b123e60084 ("soc: qcom: smem_state: Add stubs for disabled > smem_state") > Acked-by: Andy Gross > Signed-off-by: Bjorn Ander

Re: [RFC][PATCH 7/7] kref: Implement using refcount_t

2016-11-16 Thread Kees Cook
On Wed, Nov 16, 2016 at 2:15 AM, Peter Zijlstra wrote: > On Wed, Nov 16, 2016 at 09:31:55AM +0100, Ingo Molnar wrote: >> >> * Kees Cook wrote: >> >> > On Tue, Nov 15, 2016 at 11:16 AM, Peter Zijlstra >> > wrote: >> > > >> > > >> > > On 15 November 2016 19:06:28 CET, Kees Cook >> > > wrote: >>

[PATCH] mmc: dw_mmc: fix spelling mistake in dev_dbg message

2016-11-16 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake "desciptor" to "descriptor" in dev_dbg message. Signed-off-by: Colin Ian King --- drivers/mmc/host/dw_mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index a

Re: [RFC][PATCH 2/7] kref: Add kref_read()

2016-11-16 Thread Kees Cook
On Wed, Nov 16, 2016 at 2:09 AM, Peter Zijlstra wrote: > On Tue, Nov 15, 2016 at 12:53:35PM -0800, Kees Cook wrote: >> >> What should we do about things like this (bpf_prog_put() and callbacks >> from kernel/bpf/syscall.c): >> >> >> static void bpf_prog_uncharge_memlock(struct bpf_prog *prog) >> {

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