Re: [V3, 2/2] powerpc/drivers: Add driver for operator panel on FSP machines

2016-06-20 Thread Suraj Jitindar Singh
On Thu, 16 Jun 2016 20:22:39 +1000 (AEST) Michael Ellerman wrote: > On Thu, 2016-28-04 at 07:02:38 UTC, Suraj Jitindar Singh wrote: > > Implement new character device driver to allow access from user > > space to the 2x16 character operator panel display present on IBM > > Power Systems machines

Re: [RESEND PATCH v2 1/4] PCI: Ignore resource_alignment if PCI_PROBE_ONLY was set\\

2016-06-20 Thread Bjorn Helgaas
On Thu, Jun 02, 2016 at 01:46:48PM +0800, Yongji Xie wrote: > The resource_alignment will releases memory resources allocated > by firmware so that kernel can reassign new resources later on. > But this will cause the problem that no resources can be > allocated by kernel if PCI_PROBE_ONLY was set,

Re: [PATCH v2 4/5] ASoC: tpa6130a2: Add DAPM support

2016-06-20 Thread Sebastian Reichel
Hi Helen, On Mon, Jun 20, 2016 at 04:06:10PM -0300, Helen Koike wrote: > I added these changes above and kept your tested-by and reviewed-by, could > you please confirm that I can keep them? As I changed more things then you > suggested. The changes look fine to me, the new patchset works on N900

[PATCH 6/6] IMA: Demonstration code for kexec buffer passing.

2016-06-20 Thread Thiago Jung Bauermann
This shows how kernel code can use the kexec buffer passing mechanism to pass information to the next kernel. This patch is not intended to be committed. Signed-off-by: Thiago Jung Bauermann --- include/linux/ima.h | 11 + kernel/kexec_file.c | 4 ++ sec

[PATCH v4] usb: ohci-at91: Forcibly suspend ports while USB suspend

2016-06-20 Thread Wenyou Yang
In order to save power consumption, as a workaround, forcibly suspend the USB PORTA/B/C via setting the SUSPEND_A/B/C bits of OHCI Interrupt Configuration Register in the SFR while OHCI USB suspend. This suspend operation must be done before the USB clock is disabled, resume after the USB clock is

Re: [PATCH v2 5/5] ASoC: tpa6130a2: Remove goto err_gpio

2016-06-20 Thread Sebastian Reichel
Hi, On Mon, Jun 20, 2016 at 02:12:33PM -0300, Helen Koike wrote: > Replace goto err_gpio by return ret > > Signed-off-by: Helen Koike Tested-By: Sebastian Reichel Reviewed-By: Sebastian Reichel -- Sebastian signature.asc Description: PGP signature

Re: [PATCH v2 13/15] clk: sunxi-ng: Add N-K-M-P factor clock

2016-06-20 Thread Stephen Boyd
On 06/07, Maxime Ripard wrote: > diff --git a/drivers/clk/sunxi-ng/ccu_nkmp.c b/drivers/clk/sunxi-ng/ccu_nkmp.c > new file mode 100644 > index ..9f2b98e19dc9 > --- /dev/null > +++ b/drivers/clk/sunxi-ng/ccu_nkmp.c > @@ -0,0 +1,167 @@ > +/* > + * Copyright (C) 2016 Maxime Ripard > + * Ma

Re: [PATCH v2 3/5] ASoC: tpa6130a2: Use snd soc volsw functions

2016-06-20 Thread Sebastian Reichel
Hi, On Mon, Jun 20, 2016 at 02:12:31PM -0300, Helen Koike wrote: > Use snd_soc_{info,get,put}_volsw instead of custom volume functions > > Signed-off-by: Lars-Peter Clausen > [koike: port for upstream] > Signed-off-by: Helen Koike > [On N900] > Tested-By: Sebastian Reichel Reviewed-By: Sebast

Re: [PATCH v2 2/5] ASoC: tap6130a2: Use regmap

2016-06-20 Thread Sebastian Reichel
Hi, On Mon, Jun 20, 2016 at 02:12:30PM -0300, Helen Koike wrote: > Use regmap instead of open-coding IO access and caching > > Signed-off-by: Lars-Peter Clausen > [koike: port for upstream] > Signed-off-by: Helen Koike > [On N900] > Tested-By: Sebastian Reichel Reviewed-By: Sebastian Reichel

RE: [PATCH] Input: elan_i2c - +200 ms delay before setting to ABS mode

2016-06-20 Thread 廖崇榮
Hi Dmitry, The modification from Chris is a special case. Because the Touchpad FW is a little different from normal one, It cause problem in Asus's OBE test. That's why Elan's driver use work-around to solve the problem. It's not tested by other touchpad. Let me discuss with internal FW team to

Re: linux-next: build warnings after merge of the pci tree

2016-06-20 Thread Bjorn Helgaas
On Mon, Jun 20, 2016 at 8:08 PM, Stephen Rothwell wrote: > Hi Bjorn, > > On Mon, 20 Jun 2016 14:11:36 -0500 Bjorn Helgaas wrote: >> >> On Mon, Jun 20, 2016 at 11:52:13AM +1000, Stephen Rothwell wrote: >> > Hi Bjorn, >> > >> > After merging the pci tree, today's linux-next build (arm >> > multi_v7

Re: [PATCH v8 2/8] perf evlist: Introduce aux evlist

2016-06-20 Thread Wangnan (F)
On 2016/6/21 4:36, Arnaldo Carvalho de Melo wrote: Em Mon, Jun 20, 2016 at 10:47:19AM +, Wang Nan escreveu: An auxiliary evlist is created by perf_evlist__new_aux() using an existing evlist as its parent. An auxiliary evlist can have its own 'struct perf_mmap', but can't have any other dat

Re: [PATCH 1/3] clk: Add new function of_clk_is_provider()

2016-06-20 Thread Stephen Boyd
(Please don't top post) On 06/20, Ricardo Ribalda Delgado wrote: > Hi Stephen > > When the device tree is populated or when an overlay is added, all its > nodes have the flag OF_POPULATED set. The flag is enabled recursively > in > of_platform_bus_create->of_platform_device_create_pdata() > So we

linux-next: manual merge of the net-next tree with the arm-soc tree

2016-06-20 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got conflicts in: arch/arm64/boot/dts/broadcom/ns2-svk.dts arch/arm64/boot/dts/broadcom/ns2.dtsi between commits: 97b1504a30b3 ("arm64: dts: enable pinctrl for Broadcom NS2 SoC") 5dcc9c7618df ("arm64: dts: NS2: Add CCI-400 PMU suppor

Re: [PATCH] clk: correct comments for __clk_determine_rate

2016-06-20 Thread Stephen Boyd
On 06/13, Peng Fan wrote: > Correct comments for __clk_determine_rate. > > Signed-off-by: Peng Fan > Cc: Michael Turquette > Cc: Stephen Boyd > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: ktime_get_ts64() splat during resume

2016-06-20 Thread Rafael J. Wysocki
On Tuesday, June 21, 2016 02:05:59 AM Rafael J. Wysocki wrote: > On Monday, June 20, 2016 11:15:18 PM Rafael J. Wysocki wrote: > > On Mon, Jun 20, 2016 at 8:29 PM, Linus Torvalds > > wrote: > > > On Mon, Jun 20, 2016 at 7:38 AM, Rafael J. Wysocki > > > wrote: > > >> > > >> Overall, we seem to be

Re: [PATCH V2 resend] libata:fix kernel panic when hotplug

2016-06-20 Thread Martin K. Petersen
> "Tejun" == Tejun Heo writes: >> In fact,we don't need libata to deal with hotplug in sas environment. >> So we can't run ata hotplug task when ata port is sas host. Tejun> Martin, can you please confirm whether the above is true. If so, Tejun> I'll route the patch through libata w/ stable

Re: [PATCH 1/3] clk: mdm9615: Add support for MDM9615 Clock Controllers

2016-06-20 Thread Stephen Boyd
On 06/17, Neil Armstrong wrote: > In order to support the Qualcomm MDM9615 SoC, add support for > the Global and LPASS Clock Controllers. > > Signed-off-by: Neil Armstrong > --- > drivers/clk/qcom/Kconfig | 17 + > drivers/clk/qcom/Makefile |2 + > drivers/clk/qcom/gcc-mdm9615.c

Re: [PATCH v2 04/15] clk: sunxi-ng: Add fixed factor clock support

2016-06-20 Thread Stephen Boyd
On 06/07, Maxime Ripard wrote: > + > +#include > + > +#include "ccu_common.h" > + > +struct ccu_fixed_factor { > + u16 div; > + u16 mult; > + > + struct ccu_common common; Does this use the common structure although we have no usage for th

Re: [PATCH 2/2] scsi: wd7000: print sector number as 64-bit

2016-06-20 Thread Martin K. Petersen
> "Arnd" == Arnd Bergmann writes: As sector_t can be 32-bit wide, this adds a cast to 'u64' and prints that with the correct format. The change to use no_printk() [...] + dprintk("wd7000_biosparam: dev=%s, size=%lld, ", + bdevname(bdev, b), (s64)capacity); s64? Why not

Re: linux-next: build warnings after merge of the pci tree

2016-06-20 Thread Stephen Rothwell
Hi Bjorn, On Mon, 20 Jun 2016 14:11:36 -0500 Bjorn Helgaas wrote: > > On Mon, Jun 20, 2016 at 11:52:13AM +1000, Stephen Rothwell wrote: > > Hi Bjorn, > > > > After merging the pci tree, today's linux-next build (arm > > multi_v7_defconfig) produced these warnings: > > > > drivers/pci/host/pci-h

Re: [PATCH v3] gpio: add Intel WhiskeyCove GPIO driver

2016-06-20 Thread Andy Shevchenko
On Mon, Jun 20, 2016 at 9:02 PM, Bin Gao wrote: > This patch introduces a separate GPIO driver for Intel WhiskeyCove PMIC. > This driver is based on gpio-crystalcove.c. My comments below. > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > index cebcb40..ac74299 100644 > --- a/drivers/g

Re: [PATCH 3/5] lockdep: Apply bit_spin_lock lockdep to zram

2016-06-20 Thread Byungchul Park
On Tue, Jun 21, 2016 at 12:36:19AM +0900, Sergey Senozhatsky wrote: > > Hello, > > just for information Thank you for informing it. > > there was a proposal from -rt people to use normal spinlocks > for table's entries, rather that bitspinlock. I had a patch > some time ago, will obtain some p

Re: [RESEND][PATCH] clk: fixed-factor: set CLK_SET_RATE_PARENT

2016-06-20 Thread Stephen Boyd
On 06/13, Jongsung Kim wrote: > Without CLK_SET_RATE_PARENT-flag set, clk_factor_round_rate() just > returns the current frequency. A fixed-factor-clock initialzed via > of_fixed_factor_clk_set() (ie, by device-tree) can't have the flag > set. It can be problematic when the parent of a fixed-factor

Re: [PATCH 0/5] Input: alps - cleanup

2016-06-20 Thread Dmitry Torokhov
Hi Pali, On Mon, Jun 06, 2016 at 01:23:56PM +0200, Pali Rohár wrote: > This patch series cleanup usage of alps_model_data table. > > Pali Rohár (5): > Input: alps - move ALPS_PROTO_V6 out of alps_model_data table > Input: alps - move ALPS_PROTO_V4 out of alps_model_data table > Input: alps

Re: [PATCH 1/1] clk: Remove unused variable

2016-06-20 Thread Stephen Boyd
On 06/07, Lee Jones wrote: > Signed-off-by: Lee Jones > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v3] mm/compaction: remove unnecessary order check in direct compact path

2016-06-20 Thread David Rientjes
On Thu, 16 Jun 2016, Ganesh Mahendran wrote: > diff --git a/mm/compaction.c b/mm/compaction.c > index fbb7b38..dcfaf57 100644 > --- a/mm/compaction.c > +++ b/mm/compaction.c > @@ -1686,12 +1686,16 @@ enum compact_result try_to_compact_pages(gfp_t > gfp_mask, unsigned int order, > > *conte

Re: [PATCH 2/2] arm64: dts: mediatek: add mt6755 support

2016-06-20 Thread Mars Cheng
On Mon, 2016-06-20 at 19:09 +0200, Matthias Brugger wrote: > >>> + uart_clk: dummy26m { > >>> + compatible = "fixed-clock"; > >>> + clock-frequency = <2600>; > >>> + #clock-cells = <0>; > >>> + }; > >>> + > >> > >> We can do that, but I would prefer to see the clock dri

Re: [PATCH] mmc: core: add auto bkops support

2016-06-20 Thread Jaehoon Chung
On 06/20/2016 10:33 PM, Alex Lemberg wrote: > Hi Shawn, > > […] > + +static int mmc_stop_auto_bkops(struct mmc_card *card) +{ + int err = 0; + + if (!card->ext_csd.auto_bkops_en) + return 0; + >>> >>> Shouldn’t the BKOPS_STATUS be checked prior t

Re: [PATCH v2 2/2] clk: vt8500: rework wm8650_find_pll_bits()

2016-06-20 Thread Stephen Boyd
On 06/08, Roman Volkov wrote: > From: Roman Volkov > > PLL clock on WM8650 is calculated in the following way: > > M * parent [O1] => / P [O2] => / D [O3] > > Where O2 is 600MHz >= (M * parent) / P >= 300MHz. > > Current algorithm does not met this requirement, so that the > function may retur

Re: [PATCH v2 1/2] clk: vt8500: fix gcc-4.9 warnings

2016-06-20 Thread Stephen Boyd
On 06/08, Roman Volkov wrote: > From: Arnd Bergmann > > This fixes some false positive warnings we get with older compiler > versions: > > clk-vt8500.c: In function ‘wm8650_find_pll_bits’: > clk-vt8500.c:430:12: ‘best_div2’ may be used uninitialized in this function > clk-vt8500.c:429:12: ‘best_

Re: [v4] powerpc: spinlock: Fix spin_unlock_wait()

2016-06-20 Thread Michael Ellerman
On Fri, 2016-10-06 at 03:51:28 UTC, Boqun Feng wrote: > There is an ordering issue with spin_unlock_wait() on powerpc, because > the spin_lock primitive is an ACQUIRE and an ACQUIRE is only ordering > the load part of the operation with memory operations following it. ... > > Suggested-by: "Paul E

Re: [PATCH 1/8] arm64: dts: db820c: add basic board support

2016-06-20 Thread Stephen Boyd
On 06/20/2016 01:01 PM, Srinivas Kandagatla wrote: > This patch adds apq8096 db820c basic support with serial port. > > Signed-off-by: Srinivas Kandagatla > --- > arch/arm64/boot/dts/qcom/Makefile| 2 +- > arch/arm64/boot/dts/qcom/apq8096-db820c.dts | 21 + > arch/ar

Re: [PATCH 1/2] ipc/sem.c: Fix complex_count vs. simple op race

2016-06-20 Thread Davidlohr Bueso
On Sat, 18 Jun 2016, Manfred Spraul wrote: diff --git a/include/linux/sem.h b/include/linux/sem.h index 976ce3a..d0efd6e 100644 --- a/include/linux/sem.h +++ b/include/linux/sem.h @@ -21,6 +21,7 @@ struct sem_array { struct list_headlist_id;/* undo requests on this array

Re: [PATCH 2/8] tty: serial: fsl_lpuart: support suspend/resume

2016-06-20 Thread Stephen Boyd
On 06/13, Stefan Agner wrote: > > > On June 13, 2016 5:18:19 PM PDT, Bhhuvanchandra DV > wrote: > >Hi Shawn, > > > >On 06/11/2016 02:03 PM, Shawn Guo wrote: > > > >> On Thu, Jun 09, 2016 at 08:40:33PM +0530, Bhuvanchandra DV wrote: > >>> From: Stefan Agner > >>> > >>> In order to allow wake su

Re: [PATCH v4 2/5] clockevents: Add timed freeze

2016-06-20 Thread dbasehore .
On Thu, Jun 9, 2016 at 3:43 PM, Thomas Gleixner wrote: > On Thu, 9 Jun 2016, dbaseh...@chromium.org wrote: >> >> +/* >> + * Clockevent device may run during freeze >> + */ >> +# define CLOCK_EVT_FEAT_FREEZE 0x000100 > > This is a bad name and a horrible comment. The device does not f

[PATCH v3 2/3] x86/signal: Rewire the restart_block() syscall to have a constant nr

2016-06-20 Thread Andy Lutomirski
Suppose a 64-bit task A traces a 32-bit task B. B makes a syscall that uses ERESTART_RESTARTBLOCK and gets a signal. A catches syscall exit, snapshots B's regs, changes the regs, and resumes. Then A restores the snapshot of B's regs. A expects B to resume where it left off when snapshotted, whic

[PATCH v3 1/3] x86/ptrace: Stop setting TS_COMPAT in ptrace code

2016-06-20 Thread Andy Lutomirski
Setting TS_COMPAT in ptrace is wrong: if we happen to do it during syscall entry, then we'll confuse seccomp and audit. (The former isn't a security problem: seccomp is currently entirely insecure if a malicious ptracer is attached.) As a minimal fix, this patch adds a new flag TS_I386_REGS_POKED

[PATCH v3 3/3] x86/ptrace, x86/signal: Remove TS_I386_REGS_POKED

2016-06-20 Thread Andy Lutomirski
System call restart has some oddities wrt ptrace: 1. For whatever reason, the kernel delivers signals and triggers ptrace before handling syscall restart. This means that -ERESTART_RESTARTBLOCK, etc is visible to userspace. We could plausibly get away with changing that, but it seems qu

[PATCH v3 0/3] ptrace-vs-syscall-restart fixes, v3

2016-06-20 Thread Andy Lutomirski
Now that I have a complete fix and cleanup that I like, here it is. Patch 1 is the same as before except for a config-dependent build fix. This series is a cleanup and fixes at least two bugs: - 64-bit gdb attached to a 32-bit program malfunctions if the user types something like "print foo()

Re: ktime_get_ts64() splat during resume

2016-06-20 Thread Rafael J. Wysocki
On Monday, June 20, 2016 11:15:18 PM Rafael J. Wysocki wrote: > On Mon, Jun 20, 2016 at 8:29 PM, Linus Torvalds > wrote: > > On Mon, Jun 20, 2016 at 7:38 AM, Rafael J. Wysocki > > wrote: > >> > >> Overall, we seem to be heading towards the "really weird" territory here. > > > > So the whole comm

Re: [PATCH 2/2] dt-bindings: qcom: Add MDM9615 bindings

2016-06-20 Thread Stephen Boyd
On 06/17, Neil Armstrong wrote: > Signed-off-by: Neil Armstrong > --- Reviewed-by: Stephen Boyd -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH v2] firmware: qcom: scm: Expose PAS command 10 as reset-controller

2016-06-20 Thread Stephen Boyd
On 06/17, Bjorn Andersson wrote: > PAS command 10 is used to assert and deassert the MSS reset via > TrustZone, expose this as a reset-controller to mimic the direct > access case. > > Cc: Stephen Boyd > Acked-by: Rob Herring > Signed-off-by: Bjorn Andersson > --- Reviewed-by: Stephen Boyd -

Re: [PATCH v2] tty: serial: msm: Don't reconfigure same baud rate

2016-06-20 Thread Stephen Boyd
On 06/16, Bjorn Andersson wrote: > msm_set_termios() is called whenever the tty is opened. Setting the baud > rate requires a full reset of the msm serial block, even when the rate > is unchanged. In the case when the same uart is used as console this > reset will discard any console output data st

Re: x86/tsc: Set X86_FEATURE_TSC_RELIABLE to skip refined calibration

2016-06-20 Thread Bin Gao
On Mon, Jun 20, 2016 at 04:20:26PM -0700, John Stultz wrote: > On Fri, Jun 17, 2016 at 12:48 AM, Thomas Gleixner wrote: > > On Thu, 16 Jun 2016, Bin Gao wrote: > > > >> Unlike PIT based calibration which counts TSC cycles against another timer, > >> MSR or CPUID method has no calibration - it simp

Re: [PATCH RFC V2 3/3] perf script: Add callindent option

2016-06-20 Thread Andi Kleen
On Fri, Jun 17, 2016 at 11:22:56AM +0300, Adrian Hunter wrote: > Based on patches from Andi Kleen. > > When printing PT instruction traces with perf script it is rather useful to > see some indentation for the call tree. This patch adds a new callindent > field to perf script that prints spaces fo

Re: [PATCH 5/7] random: replace non-blocking pool with a Chacha20-based CRNG

2016-06-20 Thread Theodore Ts'o
On Mon, Jun 20, 2016 at 05:49:17PM +0200, Stephan Mueller wrote: > > Is speed everything we should care about? What about: > > - offloading of crypto operation from the CPU In practice CPU offland is not helpful, and in fact, in most cases is harmful, when one is only encrypting a tiny amount of

[PATCH v3 03/13] x86/mm: Remove kernel_unmap_pages_in_pgd() and efi_cleanup_page_tables()

2016-06-20 Thread Andy Lutomirski
kernel_unmap_pages_in_pgd() is dangerous: if a pgd entry in init_mm.pgd were to be cleared, callers would need to ensure that the pgd entry hadn't been propagated to any other pgd. Its only caller was efi_cleanup_page_tables(), and that, in turn, was unused, so just delete both functions. This le

Re: [6/6] ppc: ebpf/jit: Implement JIT compiler for extended BPF

2016-06-20 Thread Michael Ellerman
On Sun, 2016-06-19 at 23:06 +0530, Naveen N. Rao wrote: > On 2016/06/17 10:53PM, Michael Ellerman wrote: > > On Tue, 2016-07-06 at 13:32:23 UTC, "Naveen N. Rao" wrote: > > > diff --git a/arch/powerpc/net/bpf_jit_comp64.c > > > b/arch/powerpc/net/bpf_jit_comp64.c > > > new file mode 100644 > > > in

[PATCH v3 06/13] fork: Add generic vmalloced stack support

2016-06-20 Thread Andy Lutomirski
If CONFIG_VMAP_STACK is selected, kernel stacks are allocated with vmalloc_node. Signed-off-by: Andy Lutomirski --- arch/Kconfig| 29 + arch/ia64/include/asm/thread_info.h | 2 +- include/linux/sched.h | 15 +++ kernel/fork.c

[PATCH v3 05/13] mm: Fix memcg stack accounting for sub-page stacks

2016-06-20 Thread Andy Lutomirski
We should account for stacks regardless of stack size, and we need to account in sub-page units if THREAD_SIZE < PAGE_SIZE. Change the units to kilobytes and Move it into account_kernel_stack(). Fixes: 12580e4b54ba8 ("mm: memcontrol: report kernel stack usage in cgroup2 memory.stat") Cc: Vladimi

[PATCH v3 08/13] x86/dumpstack: When OOPSing, rewind the stack before do_exit

2016-06-20 Thread Andy Lutomirski
If we call do_exit with a clean stack, we greatly reduce the risk of recursive oopses due to stack overflow in do_exit, and we allow do_exit to work even if we OOPS from an IST stack. The latter gives us a much better chance of surviving long enough after we detect a stack overflow to write out ou

[PATCH v3 07/13] x86/die: Don't try to recover from an OOPS on a non-default stack

2016-06-20 Thread Andy Lutomirski
It's not going to work, because the scheduler will explode if we try to schedule when running on an IST stack or similar. This will matter when we let kernel stack overflows (which are #DF) call die(). Signed-off-by: Andy Lutomirski --- arch/x86/kernel/dumpstack.c | 3 +++ 1 file changed, 3 ins

[PATCH v3 10/13] x86/dumpstack: Try harder to get a call trace on stack overflow

2016-06-20 Thread Andy Lutomirski
If we overflow the stack, print_context_stack will abort. Detect this case and rewind back into the valid part of the stack so that we can trace it. Signed-off-by: Andy Lutomirski --- arch/x86/kernel/dumpstack.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/x8

[PATCH] mm: slab.h: use ilog2() in kmalloc_index()

2016-06-20 Thread Yury Norov
kmalloc_index() uses simple straightforward way to calculate bit position of nearest or equal upper power of 2. This effectively results in generation of 24 episodes of compare-branch instructions in assembler. There is shorter way to calculate this: fls(size - 1). The patch removes hard-coded ca

[PATCH v3 09/13] x86/dumpstack: When dumping stack bytes due to OOPS, start with regs->sp

2016-06-20 Thread Andy Lutomirski
The comment suggests that show_stack(NULL, NULL) should backtrace the current context, but the code doesn't match the comment. If regs are given, start the "Stack:" hexdump at regs->sp. Signed-off-by: Andy Lutomirski --- arch/x86/kernel/dumpstack_32.c | 4 +++- arch/x86/kernel/dumpstack_64.c |

[PATCH v3 11/13] x86/dumpstack/64: Handle faults when printing the "Stack:" part of an OOPS

2016-06-20 Thread Andy Lutomirski
If we overflow the stack into a guard page, we'll recursively fault when trying to dump the contents of the guard page. Use probe_kernel_address so we can recover if this happens. Signed-off-by: Andy Lutomirski --- arch/x86/kernel/dumpstack_64.c | 12 ++-- 1 file changed, 10 insertions(

[PATCH v3 01/13] x86/mm/hotplug: Don't remove PGD entries in remove_pagetable()

2016-06-20 Thread Andy Lutomirski
From: Ingo Molnar So when memory hotplug removes a piece of physical memory from pagetable mappings, it also frees the underlying PGD entry. This complicates PGD management, so don't do this. We can keep the PGD mapped and the PUD table all clear - it's only a single 4K page per 512 GB of memory

[PATCH v3 04/13] mm: Track NR_KERNEL_STACK in KiB instead of number of stacks

2016-06-20 Thread Andy Lutomirski
Currently, NR_KERNEL_STACK tracks the number of kernel stacks in a zone. This only makes sense if each kernel stack exists entirely in one zone, and allowing vmapped stacks could break this assumption. Since frv has THREAD_SIZE < PAGE_SIZE, we need to track kernel stack allocations in a unit that

[PATCH v3 12/13] x86/mm/64: Enable vmapped stacks

2016-06-20 Thread Andy Lutomirski
This allows x86_64 kernels to enable vmapped stacks. There are a couple of interesting bits. First, x86 lazily faults in top-level paging entries for the vmalloc area. This won't work if we get a page fault while trying to access the stack: the CPU will promote it to a double-fault and we'll die

[PATCH v3 13/13] x86/mm: Improve stack-overflow #PF handling

2016-06-20 Thread Andy Lutomirski
If we get a page fault indicating kernel stack overflow, invoke handle_stack_overflow(). To prevent us from overflowing the stack again while handling the overflow (because we are likely to have very little stack space left), call handle_stack_overflow() on the double-fault stack Signed-off-by: A

[PATCH v3 00/13] Virtually mapped stacks with guard pages (x86, core)

2016-06-20 Thread Andy Lutomirski
Since the dawn of time, a kernel stack overflow has been a real PITA to debug, has caused nondeterministic crashes some time after the actual overflow, and has generally been easy to exploit for root. With this series, arches can enable HAVE_ARCH_VMAP_STACK. Arches that enable it (just x86 for no

[PATCH v3 02/13] x86/cpa: In populate_pgd, don't set the pgd entry until it's populated

2016-06-20 Thread Andy Lutomirski
This avoids pointless races in which another CPU or task might see a partially populated global pgd entry. These races should normally be harmless, but, if another CPU propagates the entry via vmalloc_fault and then populate_pgd fails (due to memory allocation failure, for example), this prevents

Re: [PATCH v3 1/7] max8903: adds documentation for device tree bindings.

2016-06-20 Thread Chris Lapa
On 20/06/2016 11:22 PM, Rob Herring wrote: On Fri, Jun 17, 2016 at 03:00:20PM +1000, Chris Lapa wrote: From: Chris Lapa Signed-off-by: Chris Lapa --- .../devicetree/bindings/power/max8903-charger.txt | 25 ++ 1 file changed, 25 insertions(+) create mode 100644 Documenta

Re: [GIT PULL] AVR32 update for 4.7

2016-06-20 Thread Stephen Rothwell
Hi Linus, On Mon, 20 Jun 2016 10:34:52 -0700 Linus Torvalds wrote: > > Come back to me during the next merge window when this is appropriate, > and when it has been in linux-next for a week or two *without* being > rebased for no good reason. That would require that the avr32 tree was actually

Re: [PATCH v3 0/5] i.MX L2-cache code cleanups and performance tweaks

2016-06-20 Thread Arnd Bergmann
On Sunday, June 19, 2016 10:53:13 AM CEST Andrey Smirnov wrote: > One more question, less about your patches than the existing code: > > > > After going through the current users of l2x0_init for board files, > > I noticed that imx35 enables l2x0 for both dts and all the board files > > and has an

Re: [PATCH 5/5] vmlinux.lds.h: replace config_enabled() with IS_ENABLED()

2016-06-20 Thread Masahiro Yamada
2016-06-21 5:45 GMT+09:00 Michal Marek : > Dne 14.6.2016 v 07:58 Masahiro Yamada napsal(a): >> The use of config_enabled() against config options is ambiguous. >> >> Now, IS_ENABLED() is implemented purely with macro expansion, so >> let's replace config_enabled() with IS_ENABLED(). >> >> Signed-of

Re: x86/tsc: Set X86_FEATURE_TSC_RELIABLE to skip refined calibration

2016-06-20 Thread John Stultz
On Fri, Jun 17, 2016 at 12:48 AM, Thomas Gleixner wrote: > On Thu, 16 Jun 2016, Bin Gao wrote: > >> Unlike PIT based calibration which counts TSC cycles against another timer, >> MSR or CPUID method has no calibration - it simply multiplies the known >> frequency of a timer by a ratio. So TSC freq

RE: [PATCH v3 1/5] ACPICA: Namespace: Fix a regression that MLC support triggers dead lock in dynamic table loading

2016-06-20 Thread Zheng, Lv
Hi, Mika > From: Mika Westerberg [mailto:mika.westerb...@linux.intel.com] > Subject: Re: [PATCH v3 1/5] ACPICA: Namespace: Fix a regression that MLC > support triggers dead lock in dynamic table loading > > On Mon, Jun 20, 2016 at 05:07:22PM +0800, Lv Zheng wrote: > > The new MLC approach invokes

Re: [PATCH 1/1] mm/page_ref: introduce page_ref_inc_return

2016-06-20 Thread Andrew Morton
On Mon, 20 Jun 2016 12:38:13 +0200 Christian Borntraeger wrote: > From: David Hildenbrand > > Let's introduce that helper. > > ... > > +static inline int page_ref_inc_return(struct page *page) > +{ > + int ret = atomic_inc_return(&page->_refcount); > + > + if (page_ref_tracepoint_acti

Re: [PATCH 1/2] ipc/sem.c: Fix complex_count vs. simple op race

2016-06-20 Thread Andrew Morton
On Sat, 18 Jun 2016 22:02:21 +0200 Manfred Spraul wrote: > Commit 6d07b68ce16a ("ipc/sem.c: optimize sem_lock()") introduced a race: > > sem_lock has a fast path that allows parallel simple operations. > There are two reasons why a simple operation cannot run in parallel: > - a non-simple opera

[PATCH 3/3] serial: m32r_sio: make it explicitly non-modular

2016-06-20 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/tty/serial/Kconfig:config SERIAL_M32R_SIO drivers/tty/serial/Kconfig: bool "M32R SIO I/F" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, s

RE: [PATCH] fsl mc-bus: Move mc-io destroy to bus remove

2016-06-20 Thread Stuart Yoder
> -Original Message- > From: Bharat Bhushan [mailto:bharat.bhus...@nxp.com] > Sent: Thursday, June 16, 2016 1:52 AM > To: gre...@linuxfoundation.org; Stuart Yoder > Cc: de...@driverdev.osuosl.org; linux-kernel@vger.kernel.org; Bharat Bhushan > > Subject: [PATCH] fsl mc-bus: Move mc-io

[PATCH 1/3] serial: pxa: make it explicitly non-modular

2016-06-20 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/tty/serial/Kconfig:config SERIAL_PXA drivers/tty/serial/Kconfig: bool "PXA serial port support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orpha

[PATCH 2/3] serial: vt8500_serial: make it explicitly non-modular

2016-06-20 Thread Paul Gortmaker
The Kconfig currently controlling compilation of this code is: drivers/tty/serial/Kconfig:config SERIAL_VT8500 drivers/tty/serial/Kconfig: bool "VIA VT8500 on-chip serial port support" ...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is

Re: [PATCH 8/8] arm64: dts: db820c: add support to external sd card.

2016-06-20 Thread kbuild test robot
Hi, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.7-rc4 next-20160620] [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/Srinivas-Kandagatla/arm64-dts-db820c-Add-basic

Re: [PATCH 0/3] nvme: Don't add namespaces for locked drives

2016-06-20 Thread Keith Busch
On Mon, Jun 20, 2016 at 11:21:09AM -0700, Jethro Beekman wrote: > On 20-06-16 08:26, Keith Busch wrote: > > Would this just be a matter of setting req->retries and checking for it in > nvme_req_needs_retry? How does one keep track of the number of tries so far? I just sent a patch out earlier tod

[PATCH v1 1/1] MAINTAINERS: belong Documentation/pinctrl.txt properly

2016-06-20 Thread Andy Shevchenko
I'm pretty sure that Documentation/pinctrl.txt would be better maintained by pinctrl subsystem. Signed-off-by: Andy Shevchenko --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9040236..c59d978 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9088,

Re: [PATCH 0/6] Support DAX for device-mapper dm-linear devices

2016-06-20 Thread Kani, Toshimitsu
On Mon, 2016-06-20 at 15:52 -0400, Mike Snitzer wrote: > On Mon, Jun 20 2016 at  3:40pm -0400, > Mike Snitzer wrote: >   > > > > # dd if=/dev/zero of=/mnt/dax/meh bs=1024K oflag=direct > > [11729.754671] XFS (dm-4): Metadata corruption detected at > > xfs_agf_read_verify+0x70/0x120 [xfs], xfs_agf

[PATCH] staging: lustre: llite: break ll_getxattr_common into 2 functions

2016-06-20 Thread James Simmons
Split the function ll_getxattr_common into two functions. The code used for listing xattrs and ll_getxattr_common is placed into a new function ll_getxattr_list. This allows ll_listxattr to call directly ll_getxattr_list instead of going through ll_getxattr_common. This change is needed for the upc

Re: [PATCH net-next] net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)

2016-06-20 Thread Francois Romieu
Netanel Belgazal : [...] > > diff --git a/drivers/net/ethernet/amazon/ena/ena_com.h > > b/drivers/net/ethernet/amazon/ena/ena_com.h > > new file mode 100644 > > index 000..e49ba43 > > --- /dev/null > > [...] > > +static inline void ena_com_update_intr_reg(struct ena_eth_io_intr_reg > > *intr

Re: [PATCH 0/6] Support DAX for device-mapper dm-linear devices

2016-06-20 Thread Mike Snitzer
On Mon, Jun 20 2016 at 5:28pm -0400, Kani, Toshimitsu wrote: > On Mon, 2016-06-20 at 14:01 -0600, Kani, Toshimitsu wrote: > > On Mon, 2016-06-20 at 15:52 -0400, Mike Snitzer wrote: > > > > > > On Mon, Jun 20 2016 at  3:40pm -0400, > > > Mike Snitzer wrote: > > >   >  : > > > > If I don't use X

[patch] mm, compaction: abort free scanner if split fails

2016-06-20 Thread David Rientjes
If the memory compaction free scanner cannot successfully split a free page (only possible due to per-zone low watermark), terminate the free scanner rather than continuing to scan memory needlessly. If the per-zone watermark is insufficient for a free page of order <= cc->order, then terminate

[GIT PULL 00/10] perf/core improvements and fixes

2016-06-20 Thread Arnaldo Carvalho de Melo
ailable in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-core-for-mingo-20160620 for you to fetch changes up to 2a0a7c72702bac1b87cd4d49196a334483386fab: perf script: Add stackcollapse.py script (2016-06-20 17:5

Re: kernel-4.7 bug in Intel sound and/or ACPI

2016-06-20 Thread Sinan Kaya
On 6/20/2016 5:25 PM, Bjorn Helgaas wrote: > [+cc Sinan] > > On Mon, Jun 20, 2016 at 03:02:57AM +0200, Rafael J. Wysocki wrote: >> You should CC the linux-pci too (done now) >> >> On Monday, June 20, 2016 02:35:30 AM Wim Osterholt wrote: >>> L.S. >>> up to vanilla kernel-4.6.2 sound was working fi

[PATCH 02/10] kbuild: List libelf-devel as an alternative

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Jean Delvare On openSUSE, the libelf development files are in package libelf-devel. Signed-off-by: Jean Delvare Acked-by: Josh Poimboeuf Cc: Jiri Olsa Cc: Michal Marek Cc: Peter Zijlstra Cc: linux-kbu...@vger.kernel.org Link: http://lkml.kernel.org/n/tip-s8nyk3pyy2927sd7qp7u4...@git.k

[PATCH 01/10] perf tools: Find vdso with the consider of cross-platform

2016-06-20 Thread Arnaldo Carvalho de Melo
From: He Kuang There's a problem in machine__findnew_vdso(), vdso buildid generated by a 32-bit machine stores it with the name 'vdso', but when processing buildid on a 64-bit machine with the same 'perf.data', perf will search for vdso named as 'vdso32' and get failed. This patch tries to find

[PATCH 06/10] perf tools: Remove --perf-dir and --work-dir

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Completely unused in perf, carried along all this time from the initial copy of git infrastructure, ditch'em. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-wtiln26gyqndprmkl0kds...@git.kernel.o

[PATCH 10/10] perf script: Add stackcollapse.py script

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Paolo Bonzini Add stackcollapse.py script as an example of parsing call chains, and also of using optparse to access command line options. The flame graph tools include a set of scripts that parse output from various tools (including "perf script"), remove the offsets in the function and c

[PATCH 05/10] perf tools: Remove some unused functions

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Probably are there since the beginning, taken from git but never used. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-lr65jeefffjeaywoapps9...@git.kernel.org Signed-off-by: Arnaldo Carvalho de M

[PATCH 07/10] perf llvm: Allow dump llvm output object file using llvm.dump-obj

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Wang Nan Add a 'llvm.dump-obj' config option to enable perf dump BPF object files compiled by LLVM. This option is useful when using BPF objects in embedded platforms. LLVM compiler won't be deployed in these platforms, and currently we don't support dynamic compiling library. Before this

[PATCH 08/10] perf record: Add --dry-run option to check cmdline options

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Wang Nan With '--dry-run', 'perf record' doesn't do reall recording. Combine with llvm.dump-obj option, --dry-run can be used to help compile BPF objects for embedded platform. Signed-off-by: Wang Nan Cc: Alexei Starovoitov Cc: Jiri Olsa Cc: pi3or...@163.com Link: http://lkml.kernel.or

[PATCH 04/10] perf hists: Rename __hists__add_entry to hists__add_entry

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa There's no reason we should suffer the '__' prefix for the base global function. Signed-off-by: Jiri Olsa Cc: David Ahern Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1465928361-2442-12-git-send-email-jo...@kernel.org Signed-off-by: Arnaldo Carvalho de

[PATCH 09/10] perf evsel: Fix write_backwards fallback

2016-06-20 Thread Arnaldo Carvalho de Melo
Commit b90dc17a5d14 "perf evsel: Add overwrite attribute and check write_backward" misunderstood the 'order' should be obeyed in __perf_evsel__open. But the way this was done for attr.write_backwards was buggy, as we need to check features in the inverse order of their introduction to the kernel,

[PATCH 03/10] perf script: Fix documentation of '-f' when it should be '-F'

2016-06-20 Thread Arnaldo Carvalho de Melo
From: Adrian Hunter The documentation for perf script mixes up '-f' and '-F'. Fix it. Signed-off-by: Adrian Hunter Cc: Andi Kleen Cc: Jiri Olsa Link: http://lkml.kernel.org/r/None Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Documentation/perf-script.txt | 20 ++--

[PATCH] leds: Add no-op gpio_led_register_device when LED subsystem is disabled

2016-06-20 Thread Andrew F. Davis
Some systems use 'gpio_led_register_device' to make an in-memory copy of their LED device table so the original can be removed as .init.rodata. When the LED subsystem is not enabled source in the led directory is not built and so this function may be undefined. Fix this here. Signed-off-by: Andrew

[PATCH] selftests/vm: Don't mlockall MCL_CURRENT in on-fault-limit test

2016-06-20 Thread Yannick Brosseau
The default MEMLOCK limit is not big enough to accomodate all the current pages of the test program process, so the test fails at this step. By removing the MCL_CURRENT flag, we allow the mlockall call to succeed. The mmap is twice the size of the current limit, so it will still fail as expected.

Re: [PATCH v2] x86/ptrace: Stop setting TS_COMPAT in ptrace code

2016-06-20 Thread Pedro Alves
On 06/20/2016 08:37 PM, Andy Lutomirski wrote: > On Mon, Jun 20, 2016 at 9:29 AM, Andy Lutomirski wrote: >> Setting TS_COMPAT in ptrace is wrong: if we happen to do it during >> syscall entry, then we'll confuse seccomp and audit. (The former >> isn't a security problem: seccomp is currently enti

[PATCH -tip 00/12] locking/atomics: Add and use inc,dec calls for FETCH-OP flavors

2016-06-20 Thread Davidlohr Bueso
Hi, The series is really straightforward and based on Peter's work that introduces[1] the atomic_fetch_$op machinery. Only patch 1 implements the actual atomic_fetch_{inc,dec} calls based on atomic_fetch_{add,sub}. The rest of the patches really update callers that are doing the ugly - N workaro

Re: [PATCH v3 1/2] media: Driver for Toshiba et8ek8 5MP sensor

2016-06-20 Thread Sakari Ailus
Hi Pali, On Sat, Jun 18, 2016 at 05:37:33PM +0200, Pali Rohár wrote: > On Saturday 18 June 2016 17:22:59 Pavel Machek wrote: > > > +/* > > > + * > > > + * Stingray sensor mode settings for Scooby > > > + * > > > + * > > > + */ > > > > I'd fix it to normal comment style... and possibly remove it.

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