Re: [tpmdd-devel] tpm, tpm_tis: fix tpm_tis ACPI detection issue with TPM 2.0

2015-10-21 Thread Jarkko Sakkinen
On Tue, Oct 20, 2015 at 05:58:35PM +0300, Jarkko Sakkinen wrote: > On Tue, Oct 20, 2015 at 01:49:02PM +0200, Andreas Ziegler wrote: > > Hi Jarkko, > > > > your patch "tpm, tpm_tis: fix tpm_tis ACPI detection issue with TPM 2.0" > > showed up as commit 399235dc6e95 in linux-next today (that is, > >

Re: [PATCH v1 07/17] scsi: ufs: separate device and host quirks

2015-10-21 Thread Akinobu Mita
2015-09-13 23:52 GMT+09:00 Yaniv Gardi : > diff --git a/drivers/scsi/ufs/ufs_quirks.c b/drivers/scsi/ufs/ufs_quirks.c > new file mode 100644 > index 000..b649bbf > --- /dev/null > +++ b/drivers/scsi/ufs/ufs_quirks.c > @@ -0,0 +1,101 @@ > +/* > + * Copyright (c) 2013-2015, The Linux Foundation.

Re: [PATCH v5 0/3] RFC: Secure Memory Allocation Framework

2015-10-21 Thread Benjamin Gaignard
2015-10-21 16:34 GMT+02:00 James Morris : > On Wed, 21 Oct 2015, Benjamin Gaignard wrote: > >> >> The outcome of the previous RFC about how do secure data path was the need >> of a secure memory allocator (https://lkml.org/lkml/2015/5/5/551) >> > > Have you addressed all the questions raised by Ala

Re: [GIT PULL] On-demand device probing

2015-10-21 Thread Frank Rowand
On 10/19/2015 5:34 AM, Tomeu Vizoso wrote: > On 18 October 2015 at 21:53, Mark Brown wrote: >> On Sun, Oct 18, 2015 at 12:37:57PM -0700, Greg Kroah-Hartman wrote: >>> On Sun, Oct 18, 2015 at 08:29:31PM +0100, Mark Brown wrote: On Fri, Oct 16, 2015 at 11:57:50PM -0700, Greg Kroah-Hartman wrote

Re: [PATCH v6 05/11] block: remove split code in blkdev_issue_{discard,write_same}

2015-10-21 Thread Mike Snitzer
On Wed, Oct 14 2015 at 9:27am -0400, Christoph Hellwig wrote: > On Tue, Oct 13, 2015 at 10:44:11AM -0700, Ming Lin wrote: > > I just did a quick test with a Samsung 900G NVMe device. > > mkfs.xfs is OK on 4.3-rc5. > > > > What's your device model? I may find a similar one to try. > > This is a

Re: [PATCH v1 08/17] scsi: ufs: split broken LCC quirk

2015-10-21 Thread Akinobu Mita
2015-09-13 23:52 GMT+09:00 Yaniv Gardi : > Currently when UFSHCD_BROKEN_LCC quirk is defined, LCC is getting > disabled on both host and device side but there could be a need > where we don't want to disable the LCC on both side hence this change > splits the quirk in 2 parts one for host and one f

RE: [PATCH v2] barriers: introduce smp_mb__release_acquire and update documentation

2015-10-21 Thread David Laight
From: Paul E. McKenney > Sent: 21 October 2015 00:35 ... > There is also the question of whether the barrier forces ordering > of unrelated stores, everything initially zero and all accesses > READ_ONCE() or WRITE_ONCE(): > > P0 P1 P2 P3 > X = 1;

Re: [PATCH v1 12/17] scsi: ufs: add retry for query descriptors

2015-10-21 Thread Akinobu Mita
2015-09-13 23:52 GMT+09:00 Yaniv Gardi : > Query commands have 100ms timeout and it may timeout if they are > issued in parallel to ongoing read/write SCSI commands, this change > adds the retry (max: 10) in case command timeouts. > > Signed-off-by: Subhash Jadavani > Signed-off-by: Yaniv Gardi >

[PATCH 1/2] cpu hotplug, add CONFIG_PERMANENT_CPU_TOPOLOGY and keep topology directory for lifetime of CPU [v2]

2015-10-21 Thread Prarit Bhargava
The information in /sys/devices/system/cpu/cpuX/topology directory is useful for userspace monitoring applications and in-tree utilities like cpupower & turbostat. When down'ing a CPU the /sys/devices/system/cpu/cpuX/topology directory is removed during the CPU_DEAD hotplug callback in the kernel.

Re: [PATCH] driver core: Disable late probes by default

2015-10-21 Thread Greg Kroah-Hartman
On Wed, Oct 21, 2015 at 05:53:13PM +0200, Tomeu Vizoso wrote: > On 21 October 2015 at 17:14, Greg Kroah-Hartman > wrote: > > On Wed, Oct 21, 2015 at 04:35:58PM +0200, Tomeu Vizoso wrote: > >> On 21 October 2015 at 05:39, Greg Kroah-Hartman > >> wrote: > >> > On Tue, Oct 20, 2015 at 06:17:39PM +02

[PATCH 0/2] Add CONFIG_PERMANENT_CPU_TOPOLOGY [v2]

2015-10-21 Thread Prarit Bhargava
The information in /sys/devices/system/cpu/cpuX/topology directory is useful for userspace monitoring applications and in-tree utilities like cpupower & turbostat. When down'ing a CPU the /sys/devices/system/cpu/cpuX/topology directory is removed during the CPU_DEAD hotplug callback in the kernel.

[PATCH 2/2] base, cpu, remove hotplugable_cpu_attr_groups

2015-10-21 Thread Prarit Bhargava
hotplugable_cpu_attr_groups is not different from common_cpu_attr_groups, and can be removed. This patchset renames common_cpu_attr_groups to cpu_attr_groups. Cc: Greg Kroah-Hartman CC: Thomas Renninger Signed-off-by: Prarit Bhargava --- drivers/base/cpu.c | 16 ++-- 1 file chan

Re: [PATCH v1 14/17] scsi: ufs: tune UniPro parameters to optimize hibern8 exit time

2015-10-21 Thread Akinobu Mita
2015-09-13 23:52 GMT+09:00 Yaniv Gardi : > Optimal values of local UniPro parameters like PA_Hibern8Time & > PA_TActivate can help reduce the hibern8 exit latency. If both host and > device supports UniPro ver1.6 or later, these parameters will be > automatically tuned during link startup itself. B

Re: [PATCH v1 16/17] scsi: ufs: add delay before putting UFS rails in low power modes

2015-10-21 Thread Akinobu Mita
2015-09-13 23:52 GMT+09:00 Yaniv Gardi : > We put the UFS device in sleep state & UFS link in hibern8 state during > runtime suspaned. After this we put all the UFS rails in low power > modes immediately but it seems some devices may still draw more than > sleep current from UFS rails (especially f

[PATCH v14 12/24] x86/reboot: Add ljmp instructions to stacktool whitelist

2015-10-21 Thread Josh Poimboeuf
stacktool reports a false positive warning for the ljmp instruction in machine_real_restart(). Normally, ljmp isn't allowed in a function, but this is a special case where it's jumping into real mode. Add the jumps to a whitelist which tells stacktool to ignore them. Signed-off-by: Josh Poimboeu

[PATCH v14 03/24] x86/asm: Frame pointer macro cleanup

2015-10-21 Thread Josh Poimboeuf
The asm macros for setting up and restoring the frame pointer aren't currently being used. However, they will be needed soon to help asm functions to comply with stacktool. Rename FRAME/ENDFRAME to FRAME_BEGIN/FRAME_END for more symmetry. Also make the code more readable and improve the comments

[PATCH v14 01/24] tools: Fix formatting of the "make -C tools" help message

2015-10-21 Thread Josh Poimboeuf
Align the x86_energy_perf_policy line with the others and restore the original alphabetical sorting. Signed-off-by: Josh Poimboeuf --- tools/Makefile | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index d6f30

[PATCH v14 24/24] x86/stacktool: Ignore head_$(BITS) files.

2015-10-21 Thread Josh Poimboeuf
From: Chris J Arges Tell stacktool to skip validation of head_64, head_32 as they don't affect runtime kernel stack traces. Signed-off-by: Chris J Arges Signed-off-by: Josh Poimboeuf --- arch/x86/kernel/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/Makefile b/ar

Re: [PATCH 1/4] Documentation: tps65086: Add DT bindings for the TPS65086 PMIC

2015-10-21 Thread Mark Brown
On Wed, Oct 21, 2015 at 04:26:59PM +0100, Lee Jones wrote: > On Wed, 21 Oct 2015, Mark Brown wrote: > > On Wed, Oct 21, 2015 at 12:18:32PM +0100, Lee Jones wrote: > > > I didn't say it hasn't been done before, just that I didn't like it > > > for the aforementioned reasons. I can also find 1000's

[PATCH 0/6] ARM: sunxi: Introduce Allwinner H3 support

2015-10-21 Thread Jens Kuske
Hi everyone, This is v3 of my patch series introducing basic kernel support for Allwinner's H3 SoC. It mainly adds basic clocks and pinctrl. It also adds interrupts, timers, watchdog, RTC, dmaengine, MMC and UARTs, which are mostly compatible to those in earlier SoCs like A23 and A31, and can simp

[PATCH 2/6] clk: sunxi: Add H3 clocks support

2015-10-21 Thread Jens Kuske
The H3 clock control unit is similar to the those of other sun8i family members like the A23. It adds a new bus gates clock similar to the simple gates, but with a different parent clock for each single gate. Some of the gates use the new AHB2 clock as parent, whose clock source is muxable between

Re: [PATCH] net: dsa: mv88e6060: Fix false positive lockdep splat

2015-10-21 Thread Andrew Lunn
On Wed, Oct 21, 2015 at 05:37:45PM +0200, Neil Armstrong wrote: > Like the change made for mv88e6xxx, use mutex_lock_nested() to avoid > lockdep to give false positives because of nested MDIO busses. Hi Neil We now have three instances of this, since mdio-mux.c has the same code. Maybe now would

Re: Wiki for automatic reports / fixes

2015-10-21 Thread Luis R. Rodriguez
On Mon, Oct 12, 2015 at 12:55 PM, Luis R. Rodriguez wrote: > On Mon, Oct 5, 2015 at 10:03 AM, Luis R. Rodriguez > wrote: >> On Mon, Oct 5, 2015 at 9:56 AM, Ian Jackson >> wrote: >>> Luis R. Rodriguez writes ("Wiki for automatic reports / fixes"): >>> [...] While discussing expectations an

[PATCH v14 23/24] x86/uaccess: Add stack frame output operand in get_user inline asm

2015-10-21 Thread Josh Poimboeuf
From: Chris J Arges Numerous 'call without frame pointer save/setup' warnings are introduced by stacktool because of functions using the get_user macro. Bad stack traces could occur due to lack of or misplacement of stack frame setup code. This patch forces a stack frame to be created before the

[PATCH v14 15/24] x86/asm/crypto: Move .Lbswap_mask data to .rodata section

2015-10-21 Thread Josh Poimboeuf
stacktool reports the following warning: stacktool: arch/x86/crypto/aesni-intel_asm.o: _aesni_inc_init(): can't find starting instruction stacktool gets confused when it tries to disassemble the following data in the .text section: .Lbswap_mask: .byte 15, 14, 13, 12, 11, 10, 9, 8,

[PATCH v14 16/24] x86/asm/crypto: Move jump_table to .rodata section

2015-10-21 Thread Josh Poimboeuf
stacktool reports the following warning: stacktool: arch/x86/crypto/crc32c-pcl-intel-asm_64.o: crc_pcl()+0x11dd: can't decode instruction It gets confused when trying to decode jump_table data. Move jump_table to the .rodata section which is a more appropriate home for read-only data. Signed

[PATCH v14 22/24] x86/asm/power: Create stack frames in hibernate_asm_64.S

2015-10-21 Thread Josh Poimboeuf
swsusp_arch_suspend() and restore_registers() are callable non-leaf functions which don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Also they aren't annotated as ELF callable functions which can confuse tooling. Create a stack frame for them when CONFIG_FRAME_POINTER is en

[PATCH 1/6] clk: sunxi: Let divs clocks read the base factor clock name from devicetree

2015-10-21 Thread Jens Kuske
Currently, the sunxi clock driver gets the name for the base factor clock of divs clocks from the name field in factors_data. This prevents reusing of the factor clock for clocks with same properties, but different name. This commit makes the divs setup function try to get a name from clock-output

[PATCH v14 18/24] x86/asm/entry: Create stack frames in thunk functions

2015-10-21 Thread Josh Poimboeuf
Thunk functions are callable non-leaf functions that don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Also they aren't annotated as ELF callable functions which can confuse tooling. Create stack frames for them when CONFIG_FRAME_POINTER is enabled and add the ELF function t

[PATCH v14 21/24] x86/asm/efi: Create a stack frame in efi_call()

2015-10-21 Thread Josh Poimboeuf
efi_call() is a callable non-leaf function which doesn't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create a stack frame for it when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf Reviewed-by: Matt Fleming --- arch/x86/platform/efi/efi_stub_64.S | 3 +++

[PATCH v14 20/24] x86/asm: Create stack frames in rwsem functions

2015-10-21 Thread Josh Poimboeuf
rwsem.S has several callable non-leaf functions which don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create stack frames for them when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf --- arch/x86/lib/rwsem.S | 11 ++- 1 file changed, 10 insertions

[PATCH v14 17/24] x86/asm/crypto: Create stack frames in clmul_ghash_mul/update()

2015-10-21 Thread Josh Poimboeuf
clmul_ghash_mul() and clmul_ghash_update() are callable non-leaf functions which don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create stack frames for them when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf Cc: Herbert Xu Cc: David S. Miller --- arch

[PATCH v14 19/24] x86/asm/acpi: Create a stack frame in do_suspend_lowlevel()

2015-10-21 Thread Josh Poimboeuf
do_suspend_lowlevel() is a callable non-leaf function which doesn't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create a stack frame for it when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf Acked-by: Pavel Machek Cc: Rafael J. Wysocki Cc: Len Brown ---

Re: [PATCH] regulator, dt: add dt support for tps6502x regulator

2015-10-21 Thread Mark Brown
On Wed, Oct 21, 2015 at 02:52:51PM +0200, Heiko Schocher wrote: > Am 21.10.2015 um 14:19 schrieb Mark Brown: > >On Mon, Oct 19, 2015 at 08:27:13AM +0200, Heiko Schocher wrote: > >If this file is needed there is something broken, if this file is not > >needed then it is just noise since everything

[PATCH v14 14/24] x86/asm/crypto: Create stack frames in aesni-intel_asm.S

2015-10-21 Thread Josh Poimboeuf
aesni-intel_asm.S has several callable non-leaf functions which don't honor CONFIG_FRAME_POINTER, which can result in bad stack traces. Create stack frames for them when CONFIG_FRAME_POINTER is enabled. Signed-off-by: Josh Poimboeuf Cc: Herbert Xu Cc: David S. Miller Cc: Mathias Krause --- a

[PATCH v14 11/24] x86/amd: Set ELF function type for vide()

2015-10-21 Thread Josh Poimboeuf
vide() is a callable function, but is missing the ELF function type, which confuses tools like stacktool. Properly annotate it to be a callable function. The generated code is unchanged. Signed-off-by: Josh Poimboeuf --- arch/x86/kernel/cpu/amd.c | 5 - 1 file changed, 4 insertions(+), 1 d

[PATCH v14 13/24] x86/xen: Add xen_cpuid() and xen_setup_gdt() to stacktool whitelists

2015-10-21 Thread Josh Poimboeuf
stacktool reports the following false positive warnings: stacktool: arch/x86/xen/enlighten.o: xen_cpuid()+0x41: can't find jump dest instruction at .text+0x108 stacktool: arch/x86/xen/enlighten.o: xen_setup_gdt.constprop.23()+0x2e: kernel entry/exit from callable instruction The first warni

[PATCH v14 09/24] x86/paravirt: Add stack frame dependency to PVOP inline asm calls

2015-10-21 Thread Josh Poimboeuf
If a PVOP call macro is inlined at the beginning of a function, gcc can insert the call instruction before setting up a stack frame, which breaks frame pointer convention if CONFIG_FRAME_POINTER is enabled and can result in a bad stack trace. Force a stack frame to be created if CONFIG_FRAME_POINT

[PATCH 6/6] ARM: dts: sun8i: Add Orange Pi Plus support

2015-10-21 Thread Jens Kuske
The Orange Pi Plus is a SBC based on the Allwinner H3 SoC with 8GB eMMC, multiple USB ports through a USB hub chip, SATA through a USB-SATA bridge, one uSD slot, a 10/100/1000M ethernet port, WiFi, HDMI, headphone jack, IR receiver, a microphone, a CSI connector and a 40-pin GPIO header. Signed-of

[PATCH v14 08/24] x86/xen: Add stack frame dependency to hypercall inline asm calls

2015-10-21 Thread Josh Poimboeuf
If a hypercall is inlined at the beginning of a function, gcc can insert the call instruction before setting up a stack frame, which breaks frame pointer convention if CONFIG_FRAME_POINTER is enabled and can result in a bad stack trace. Force a stack frame to be created if CONFIG_FRAME_POINTER is

[PATCH 4/6] reset: sunxi: Add compatible for Allwinner H3 bus resets

2015-10-21 Thread Jens Kuske
Adding a new compatible allows us to define SoC specific behaviour if necessary, for example forcing a particular device out of reset even if no driver is actually using it. Signed-off-by: Jens Kuske --- Documentation/devicetree/bindings/reset/allwinner,sunxi-clock-reset.txt | 1 + drivers/reset

Re: [PATCH v6 05/11] block: remove split code in blkdev_issue_{discard,write_same}

2015-10-21 Thread Mike Snitzer
On Wed, Oct 21 2015 at 12:02pm -0400, Mike Snitzer wrote: > On Wed, Oct 14 2015 at 9:27am -0400, > Christoph Hellwig wrote: > > > On Tue, Oct 13, 2015 at 10:44:11AM -0700, Ming Lin wrote: > > > I just did a quick test with a Samsung 900G NVMe device. > > > mkfs.xfs is OK on 4.3-rc5. > > > > >

[PATCH v14 10/24] x86/paravirt: Create a stack frame in PV_CALLEE_SAVE_REGS_THUNK

2015-10-21 Thread Josh Poimboeuf
A function created with the PV_CALLEE_SAVE_REGS_THUNK macro doesn't set up a new stack frame before the call instruction, which breaks frame pointer convention if CONFIG_FRAME_POINTER is enabled and can result in a bad stack trace. Also, the thunk functions aren't annotated as ELF callable functio

Re: [PATCH v8 04/14] task_isolation: add initial support

2015-10-21 Thread Frederic Weisbecker
On Tue, Oct 20, 2015 at 04:36:02PM -0400, Chris Metcalf wrote: > diff --git a/kernel/isolation.c b/kernel/isolation.c > new file mode 100644 > index ..9a73235db0bb > --- /dev/null > +++ b/kernel/isolation.c > @@ -0,0 +1,78 @@ > +/* > + * linux/kernel/isolation.c > + * > + * Implementa

[PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI

2015-10-21 Thread Jens Kuske
The Allwinner H3 is a home entertainment system oriented SoC with four Cortex-A7 cores and a Mali-400MP2 GPU. Signed-off-by: Jens Kuske --- arch/arm/boot/dts/sun8i-h3.dtsi | 499 1 file changed, 499 insertions(+) create mode 100644 arch/arm/boot/dts/sun8

Re: [PATCH v4 04/79] drm_mode.h: use __u32 and __u64 from linux/types.h

2015-10-21 Thread Emil Velikov
On 21 October 2015 at 16:18, Alex Deucher wrote: > On Wed, Oct 21, 2015 at 11:09 AM, Emil Velikov > wrote: >> Hi Alex, >> >> On 15 October 2015 at 14:48, Mikko Rapeli wrote: >>> On Thu, Oct 15, 2015 at 09:32:10AM -0400, Alex Deucher wrote: On Thu, Oct 15, 2015 at 1:55 AM, Mikko Rapeli wro

[PATCH v14 04/24] x86/asm: Add C versions of frame pointer macros

2015-10-21 Thread Josh Poimboeuf
Add C versions of the frame pointer macros which can be used to create a stack frame in inline assembly. Signed-off-by: Josh Poimboeuf --- arch/x86/include/asm/frame.h | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/frame.h b/arch/x86/in

[PATCH v14 06/24] x86/stacktool: Add file and directory ignores

2015-10-21 Thread Josh Poimboeuf
Tell stacktool to skip validation of the following code: - boot image - vdso image - kexec purgatory - realmode - efi libstub - scripts/mod They all run outside the kernel's normal mode of operation and they don't affect runtime kernel stack traces, so they're free to skirt the stacktool rules.

[PATCH v14 07/24] x86/stacktool: Add ignore macros

2015-10-21 Thread Josh Poimboeuf
Add new stacktool ignore macros: STACKTOOL_IGNORE_INSN and STACKTOOL_IGNORE_FUNC. These can be used to tell stacktool to skip validation of an instruction or a function, respectively. Signed-off-by: Josh Poimboeuf --- arch/x86/include/asm/stacktool.h | 45 +++

[PATCH v14 00/24] Compile-time stack metadata validation

2015-10-21 Thread Josh Poimboeuf
This is v14 of the compile-time stack metadata validation patch set, along with proposed fixes for many of the warnings it found. It's based on the tip/master branch. v13 can be found here: https://lkml.kernel.org/r/cover.1442935712.git.jpoim...@redhat.com For more information about the motiv

Re: [PATCH] EDAC: Add AMD Seattle SoC EDAC

2015-10-21 Thread Brijesh Singh
On 10/21/2015 05:01 AM, Andre Przywara wrote: > Hi, > > On 21/10/15 10:35, Borislav Petkov wrote: >> On Wed, Oct 21, 2015 at 09:55:43AM +0800, Hanjun Guo wrote: >>> So I think the meaning of those error register is the same, but the way >>> of handle it may different from SoCs, for single bit er

[PATCH v14 02/24] tools: Make list.h self-sufficient

2015-10-21 Thread Josh Poimboeuf
Commit 7f5f873c6a07 added the use of the WRITE_ONCE macro to the kernel version of list.h, which broke the stacktool build because the tools list.h includes the kernel list.h. Avoid this type of situation in the future and make list.h self-sufficient by copying the kernel list.h routines directly

Re: [REPOST PATCH 0/3] dwc2 patches to allow wakeup on Rockchip rk3288

2015-10-21 Thread Doug Anderson
John, On Mon, Jul 6, 2015 at 11:27 AM, Douglas Anderson wrote: > This series of patches, together with > from Chris Zhong and a > dts change allow us to wake up from a USB device on rk3288 boards. > The patches were tested on rk3288-jerry in the chrom

Re: [PATCH v4 10/79] via_drm.h: move struct via_file_private definition to drivers/gpu/drm/via/via_drv.h

2015-10-21 Thread Emil Velikov
On 21 October 2015 at 16:33, Daniel Vetter wrote: > On Wed, Oct 21, 2015 at 03:36:22PM +0100, Emil Velikov wrote: >> On 15 October 2015 at 06:55, Mikko Rapeli wrote: >> > Fixes userspace compile error since list_head is not exported to userspace >> > headers. >> > >> > Suggested by Emil Velikov

Re: [PATCH 1/5] x86, perf: Fix LBR call stack save/restore

2015-10-21 Thread Ingo Molnar
* Peter Zijlstra wrote: > > mask = x86_pmu.lbr_nr - 1; > > - tos = intel_pmu_lbr_tos(); > > + tos = task_ctx->tos; > > for (i = 0; i < tos; i++) { > > lbr_idx = (tos - i) & mask; > > wrmsrl(x86_pmu.lbr_from + lbr_idx, task_ctx->lbr_from[i]); > > @@ -247,6 +247

Re: [PATCH] x86/PCI: Don't alloc pcibios-irq when MSI is enabled

2015-10-21 Thread Bjorn Helgaas
On Fri, Oct 09, 2015 at 12:23:34PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > The pcibios-irq and MSI both use dev->irq to store the IRQ > number. While the MSI code checks for that and frees the > pcibios-irq before overwriting dev->irq, the > pcibios_alloc_irq function does not. > > U

Re: [PATCH 2/4] mfd: tps65086: Add driver for the TPS65086 PMIC

2015-10-21 Thread Andrew F. Davis
On 10/21/2015 03:43 AM, Lee Jones wrote: On Tue, 20 Oct 2015, Andrew F. Davis wrote: On 10/20/2015 05:02 AM, Lee Jones wrote: On Mon, 19 Oct 2015, Andrew F. Davis wrote: On 10/19/2015 04:23 AM, Lee Jones wrote: On Fri, 16 Oct 2015, Andrew F. Davis wrote: Add support for the TPS65912 device

Re: [PATCH v4 04/79] drm_mode.h: use __u32 and __u64 from linux/types.h

2015-10-21 Thread Alex Deucher
On Wed, Oct 21, 2015 at 12:21 PM, Emil Velikov wrote: > On 21 October 2015 at 16:18, Alex Deucher wrote: >> On Wed, Oct 21, 2015 at 11:09 AM, Emil Velikov >> wrote: >>> Hi Alex, >>> >>> On 15 October 2015 at 14:48, Mikko Rapeli wrote: On Thu, Oct 15, 2015 at 09:32:10AM -0400, Alex Deucher

Re: [PATCH 13/16] perf callchain: Switch default to 'graph,0.5,caller'

2015-10-21 Thread Frederic Weisbecker
On Wed, Oct 21, 2015 at 02:21:12AM +, Chandler Carruth wrote: > On Tue, Oct 20, 2015 at 3:06 AM Arnaldo Carvalho de Melo < > arnaldo.m...@gmail.com> wrote: > > > > IMHO changing that order is not a good idea. Unless many users complained > > > about it. > > > > Perhaps there are not that many

Re: [GIT PULL] On-demand device probing

2015-10-21 Thread Mark Brown
On Wed, Oct 21, 2015 at 08:59:51AM -0700, Frank Rowand wrote: > On 10/19/2015 5:34 AM, Tomeu Vizoso wrote: > > To be clear, I was saying that this series should NOT affect total > > boot times much. > I'm confused. If I understood correctly, improving boot time was > the key justification for ac

[PATCH 3/6] pinctrl: sunxi: Add H3 PIO controller support

2015-10-21 Thread Jens Kuske
The H3 uses the same pin controller as previous SoC's from Allwinner. Add support for the pins controlled by the main PIO controller. Signed-off-by: Jens Kuske --- .../bindings/pinctrl/allwinner,sunxi-pinctrl.txt | 1 + drivers/pinctrl/sunxi/Kconfig | 4 + drivers/pinc

[PATCH] mm, slub, kasan: enable user tracking by default with KASAN=y

2015-10-21 Thread Andrey Ryabinin
It's recommended to have slub's user tracking enabled with CONFIG_KASAN, because: a) User tracking disables slab merging which improves detecting out-of-bounds accesses. b) User tracking metadata acts as redzone which also improves detecting out-of-bounds accesses. c) User tracking provides

Re: [PATCH v6 05/11] block: remove split code in blkdev_issue_{discard,write_same}

2015-10-21 Thread Martin K. Petersen
> "Mike" == Mike Snitzer writes: >> That should work for all devices and for dm-thinp (and dm-cache) in >> particular will ensure that all discards that are issued will be a >> multiple of the underlying device's blocksize. Mike> Jeff Moyer pointed out having req_sects be a factor of Mike> d

Re: [PATCH 13/16] perf callchain: Switch default to 'graph,0.5,caller'

2015-10-21 Thread Frederic Weisbecker
On Wed, Oct 21, 2015 at 05:09:08PM +0900, Namhyung Kim wrote: > On Tue, Oct 20, 2015 at 07:21:16PM +0200, Frederic Weisbecker wrote: > > Well, I would prefer to hear from regular users than random twitter > > followers. > > I could be wrong so lets ask some users first. > > Just a question. Do y

Re: [PATCH v3 for-4.4] block: flush queued bios when process blocks to avoid deadlock

2015-10-21 Thread Ming Lei
On Wed, Oct 21, 2015 at 4:03 AM, Mikulas Patocka wrote: > > > On Sun, 18 Oct 2015, Ming Lei wrote: > >> On Thu, Oct 15, 2015 at 4:47 AM, Mike Snitzer wrote: >> > From: Mikulas Patocka >> > >> > The block layer uses per-process bio list to avoid recursion in >> > generic_make_request. When gener

RE: [PATCH v3 0/3] pstore: add pstore unregister

2015-10-21 Thread Luck, Tony
> It'll refuse if we try to unload pstore module. But we can unload > ramoops module. Because we only increase a reference count of pstore > module when the file is opened. We didn't increase ramoops module's > reference count. Thanks. Series applied. I changed: part1: re-worded commit a little

Re: [PATCH 0/3] Add AMBA bus probing support to ACPI

2015-10-21 Thread Al Stone
On 09/30/2015 04:38 AM, Graeme Gregory wrote: > As discussed when Shannon Zhao sent a patch to add platform_device support > to pl061 driver. Russel and other maintainers prefered that ACPI learned > how to create AMBA devices rather than converting/adding platform_device > support to AMBA drivers.

Re: [PATCH 1/3] staging: comedi: make ni_tio_has_gate2_registers return boolean

2015-10-21 Thread Ian Abbott
On 18/10/15 15:35, Geliang Tang wrote: This patch makes ni_tio_has_gate2_registers return boolean, since this function only uses either one or zero as its return value. Signed-off-by: Geliang Tang --- drivers/staging/comedi/drivers/ni_tio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 dele

Re: [PATCH] ARM: keystone: dts: add PCI serdes driver bindings

2015-10-21 Thread santosh.shilim...@oracle.com
On 10/21/15 5:57 AM, WingMan Kwok wrote: This patch adds the serdes phy driver dts bindings for the keystone PCIe host driver. Signed-off-by: WingMan Kwok --- Keep me posted when driver gets merged. I will then pick this up. Regards, Santosh -- To unsubscribe from this list: send the line "un

Re: [PATCH RFC RFT 2/3] clk: clk_put WARNs if user has not disabled clk

2015-10-21 Thread Geert Uytterhoeven
Hi Mike, On Wed, Oct 21, 2015 at 5:50 PM, Michael Turquette wrote: > Quoting Russell King - ARM Linux (2015-10-21 03:59:32) >> On Wed, Oct 21, 2015 at 11:50:07AM +0200, Geert Uytterhoeven wrote: >> > On Tue, Oct 20, 2015 at 2:40 PM, Michael Turquette >> > wrote: >> > > Why not keep the reference

Re: [PATCH v1 1/2] dt-bindings: Sync the dts to this document

2015-10-21 Thread Rob Herring
On Wed, Oct 21, 2015 at 10:45 AM, Caesar Wang wrote: > Hi Rob, > > 在 2015年10月21日 23:18, Rob Herring 写道: >> >> On Tue, Oct 20, 2015 at 9:42 PM, Caesar Wang wrote: >>> >>> Add the OTP gpio state, we need switch the pin to gpio state >>> before the TSADC controller is reset. >>> >>> Signed-off-by: C

[RFC Patch 02/12] IXGBE: Add new mail box event to restore VF status in the PF driver

2015-10-21 Thread Lan Tianyu
This patch is to restore VF status in the PF driver when get event from VF. Signed-off-by: Lan Tianyu --- drivers/net/ethernet/intel/ixgbe/ixgbe.h | 1 + drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.h | 1 + drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 40 ++

[RFC Patch 04/12] IXGBE: Add ixgbe_ping_vf() to notify a specified VF via mailbox msg.

2015-10-21 Thread Lan Tianyu
This patch is to add ixgbe_ping_vf() to notify a specified VF. When migration status is changed, it's necessary to notify VF the change. VF driver will check the migrate status when it gets mailbox msg. Signed-off-by: Lan Tianyu --- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 19 +++

[RFC Patch 01/12] PCI: Add virtfn_index for struct pci_device

2015-10-21 Thread Lan Tianyu
Add "virtfn_index" member in the struct pci_device to record VF sequence of PF. This will be used in the VF sysfs node handle. Signed-off-by: Lan Tianyu --- drivers/pci/iov.c | 1 + include/linux/pci.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c

[RFC Patch 07/12] IXGBEVF: Add new mail box event for migration

2015-10-21 Thread Lan Tianyu
VF status in the PF driver needs to be restored after migration and reset VF hardware. This patch is to add a new event for VF driver to notify PF driver to restore status. Signed-off-by: Lan Tianyu --- drivers/net/ethernet/intel/ixgbevf/mbx.h | 3 +++ drivers/net/ethernet/intel/ixgbevf/vf.c |

[RFC Patch 05/12] IXGBE: Add new sysfs interface of "notify_vf"

2015-10-21 Thread Lan Tianyu
This patch is to add new sysfs interface of "notify_vf" under sysfs directory of VF PCI device for Qemu to notify VF when migration status is changed. Signed-off-by: Lan Tianyu --- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 30 ++ drivers/net/ethernet/intel/ixgbe/ix

[RFC Patch 11/12] IXGBEVF: Migrate VF statistic data

2015-10-21 Thread Lan Tianyu
VF statistic regs are read-only and can't be migrated via writing back directly. Currently, statistic data returned to user space by the driver is not equal to value of statistic regs. VF driver records value of statistic regs as base data when net interface is up or open, calculate increased cou

[RFC Patch 06/12] IXGBEVF: Add self emulation layer

2015-10-21 Thread Lan Tianyu
In order to restore VF function after migration, add self emulation layer to record regs' values during accessing regs. Signed-off-by: Lan Tianyu --- drivers/net/ethernet/intel/ixgbevf/Makefile| 3 ++- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 2 +- .../net/ethernet/intel/ix

[RFC Patch 10/12] IXGBEVF: Add lock to protect tx/rx ring operation

2015-10-21 Thread Lan Tianyu
Ring shifting during restoring VF function maybe race with original ring operation(transmit/receive package). This patch is to add tx/rx lock to protect ring related data. Signed-off-by: Lan Tianyu --- drivers/net/ethernet/intel/ixgbevf/ixgbevf.h | 2 ++ drivers/net/ethernet/intel/ixgbevf/

[RFC Patch 12/12] IXGBEVF: Track dma dirty pages

2015-10-21 Thread Lan Tianyu
Migration relies on tracking dirty page to migrate memory. Hardware can't automatically mark a page as dirty after DMA memory access. VF descriptor rings and data buffers are modified by hardware when receive and transmit data. To track such dirty memory manually, do dummy writes(read a byte and wr

[RFC Patch 08/12] IXGBEVF: Rework code of finding the end transmit desc of package

2015-10-21 Thread Lan Tianyu
When transmit a package, the end transmit desc of package indicates whether package is sent already. Current code records the end desc's pointer in the next_to_watch of struct tx buffer. This code will be broken if shifting desc ring after migration. The pointer will be invalid. This patch is to re

[RFC Patch 00/12] IXGBE: Add live migration support for SRIOV NIC

2015-10-21 Thread Lan Tianyu
This patchset is to propose a new solution to add live migration support for 82599 SRIOV network card. Im our solution, we prefer to put all device specific operation into VF and PF driver and make code in the Qemu more general. VF status migration ==

Re: [PATCH] x86, perf: Use INST_RETIRED.PREC_DIST for cycles:pp on Skylake

2015-10-21 Thread Peter Zijlstra
On Wed, Oct 21, 2015 at 08:26:08AM -0700, Andi Kleen wrote: > So it turns out that UOPS_RETIRED.ALL+pebs only works by accident > on Skylake. It's not in the specification. Accident or not, it works and you've tested it. Might as well keep it. Specs can be updated. Also, even with the SNB 'hickup

[RFC Patch 09/12] IXGBEVF: Add live migration support for VF driver

2015-10-21 Thread Lan Tianyu
To let VF driver in the guest to know migration status, Qemu will fake PCI configure reg 0xF0 and 0xF1 to show migrate status and get ack from VF driver. When migration starts, Qemu will set reg "0xF0" to 1, notify VF driver via triggering mail box msg and wait for VF driver to tell it's ready for

Re: what's in nvdimm.git for v4.4?

2015-10-21 Thread Dan Williams
On Wed, Oct 21, 2015 at 2:08 AM, Jan Kara wrote: > Sorry for replying to this email and not to patch posting directly but I > didn't find the original mail in any of my mailboxes... Forgive me for not including you on the initial posting. I'll add you to that series going forward. > On Tue 20-1

[RFC Patch 03/12] IXGBE: Add sysfs interface for Qemu to migrate VF status in the PF driver

2015-10-21 Thread Lan Tianyu
This patch is to add sysfs interface state_in_pf under sysfs directory of VF PCI device for Qemu to get and put VF status in the PF driver during migration. Signed-off-by: Lan Tianyu --- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c | 156 - 1 file changed, 155 insertion

Re: Alternative approach to solve the deferred probe

2015-10-21 Thread Grygorii Strashko
On 10/21/2015 06:36 PM, Frank Rowand wrote: > On 10/21/2015 1:18 AM, Russell King - ARM Linux wrote: >> On Tue, Oct 20, 2015 at 08:58:19PM -0700, Frank Rowand wrote: >>> On 10/20/2015 8:46 AM, Russell King - ARM Linux wrote: > > < snip > > + static bool driver_deferred_probe_enable =

Re: [PATCH] x86, perf: Use INST_RETIRED.PREC_DIST for cycles:pp on Skylake

2015-10-21 Thread Andi Kleen
On Wed, Oct 21, 2015 at 06:52:52PM +0200, Peter Zijlstra wrote: > On Wed, Oct 21, 2015 at 08:26:08AM -0700, Andi Kleen wrote: > > So it turns out that UOPS_RETIRED.ALL+pebs only works by accident > > on Skylake. It's not in the specification. > > Accident or not, it works and you've tested it. Mig

Re: [PATCH V5 1/1] bpf: control events stored in PERF_EVENT_ARRAY maps trace data output when perf sampling

2015-10-21 Thread Peter Zijlstra
On Wed, Oct 21, 2015 at 11:06:47PM +0800, pi3orama wrote: > > So explain; how does this eBPF stuff work. > > I think I get your point this time, and let me explain the eBPF stuff to you. > > You are aware that BPF programmer can break the system in this way: > > A=get_non_local_perf_event() > pe

Re: [PATCH v10 4/4] USB / PM: Allow USB devices to remain runtime-suspended when sleeping

2015-10-21 Thread Alan Stern
On Wed, 21 Oct 2015, Tomeu Vizoso wrote: > Have dev_pm_ops.prepare return 1 for USB devices and ports so that USB > devices can remain runtime-suspended when the system goes to a sleep > state, if their wakeup state is correct and they have runtime PM enabled. > > Signed-off-by: Tomeu Vizoso > R

Re: [PATCH 00/10] KEYS: Change how keys are determined to be trusted

2015-10-21 Thread Mimi Zohar
ng named .ima_mok for this purpose. Mimi > To make this work, we have to retain sufficient data from the X.509 > certificate that we can then verify the signature at need. > > The patches can be found here also: > > > http://git.kernel.org/cgit/linux/kernel/git/dhowe

Re: [PATCH -next] net: hisilicon: Never build on SPARC

2015-10-21 Thread Guenter Roeck
On 10/21/2015 08:57 AM, Arnd Bergmann wrote: On Wednesday 21 October 2015 08:33:11 David Miller wrote: From: Guenter Roeck Date: Wed, 21 Oct 2015 07:56:18 -0700 @@ -57,6 +57,11 @@ extern int of_dma_get_range(struct device_node *np, u64 *dma_addr, u64 *paddr, u64

Re: [PATCH] TTY, devpts: document pty count limiting

2015-10-21 Thread Greg KH
On Wed, Oct 21, 2015 at 01:08:54PM +0300, Konstantin Khlebnikov wrote: > Logic was changed in kernel 3.4 by commit e9aba5158a80 ("tty: rework pty > count limiting") but still isn't documented. Better late than never. > > Signed-off-by: Konstantin Khlebnikov > --- > Documentation/filesystems/devp

Re: RFC: 32-bit __data_len and REQ_DISCARD+REQ_SECURE

2015-10-21 Thread Grant Grundler
On Wed, Oct 21, 2015 at 2:00 AM, Ulf Hansson wrote: To put a few more numbers on the "chunk size vs perf": 1EG (512KB) -> 44K commands -> ~20 minutes 32EG (16MB) -> 1375 commands -> ~1 minute 128EG (64MB) -> 344 commands -> ~30 seconds 8191EG (~4GB) -> 6 commands ->

Re: [PATCH] mm,vmscan: Use accurate values for zone_reclaimable() checks

2015-10-21 Thread Christoph Lameter
On Wed, 21 Oct 2015, Michal Hocko wrote: > I am not sure how to achieve that. Requiring non-sleeping worker would > work out but do we have enough users to add such an API? > > I would rather see vmstat using dedicated kernel thread(s) for this this > purpose. We have discussed that in the past bu

Re: [PATCH v6 05/11] block: remove split code in blkdev_issue_{discard,write_same}

2015-10-21 Thread Ming Lin
On Wed, 2015-10-21 at 11:33 -0400, Mike Snitzer wrote: > On Wed, Oct 21 2015 at 11:01am -0400, > Ming Lin wrote: > > > On Wed, 2015-10-21 at 09:39 -0400, Jeff Moyer wrote: > > > Christoph Hellwig writes: > > > > > > > Jens, Ming: > > > > > > > > are you fine with the one liner change to get bac

Re: [PATCH 00/10] KEYS: Change how keys are determined to be trusted

2015-10-21 Thread Josh Boyer
On Wed, Oct 21, 2015 at 1:02 PM, Mimi Zohar wrote: > On Wed, 2015-10-21 at 16:13 +0100, David Howells wrote: >> Here's a set of patches that changes how keys are determined to be trusted >> - currently, that's a case of whether a key has KEY_FLAG_TRUSTED set upon >> it. A keyring can then have a

Re: Alternative approach to solve the deferred probe

2015-10-21 Thread Russell King - ARM Linux
On Wed, Oct 21, 2015 at 07:55:29PM +0300, Grygorii Strashko wrote: > On 10/21/2015 06:36 PM, Frank Rowand wrote: > > The above is currently the last point for probe to succeed or defer > > (until possibly, as you mentioned, module loading resolves the defer). > > If a probe defers above, it will de

Re: [PATCH net-next 2/3] bpf: introduce bpf_perf_event_output() helper

2015-10-21 Thread Alexei Starovoitov
On 10/21/15 5:06 AM, Peter Zijlstra wrote: PERF_COUNT_SW_DUMMY = 9, >+ PERF_COUNT_SW_BPF_OUTPUT= 10, > >PERF_COUNT_SW_MAX, /* non-ABI */ > }; Do you really need the new type? Can't you use DUMMY for this? It works fine wit

[PATCH] staging: rtl8188eu: fix misleading indentation

2015-10-21 Thread Luis de Bethencourt
Code is correct, i needs to be moved back by 2 to correct for the last iteration of the while loop, since READ_NEXT_PAIR advances two. Fixing the misleading indentation. Fix a smatch warning: drivers/staging/rtl8188eu/hal/rf_cfg.c:217 rtl88e_phy_config_rf_with_headerfile() warn: curly braces inten

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