[PATCH v3 11/51] x86/dumpstack: remove unnecessary stack pointer arguments

2016-08-12 Thread Josh Poimboeuf
When calling show_stack_log_lvl() or dump_trace() with a regs argument, providing a stack pointer or frame pointer is redundant. Reviewed-by: Andy Lutomirski Signed-off-by: Josh Poimboeuf d --- arch/x86/kernel/dumpstack.c| 2 +- arch/x86/kernel/dumpstack_32.c | 2 +- arch/x86/kernel/dumpstac

[PATCH v4 1/2] gpio: add bindings for Technologic I2C-FPGA gpio controller

2016-08-12 Thread Lucile Quirion
Device tree binding documentation for Technologic's I2C-FPGA GPIO controller. Signed-off-by: Lucile Quirion --- .../devicetree/bindings/gpio/gpio-ts4900.txt | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-ts4900.

[PATCH v4 2/2] gpio: add Technologic I2C-FPGA gpio support

2016-08-12 Thread Lucile Quirion
This driver is generic and aims to support all Technologic Systems's boards embedding FPGA GPIOs with an I2C interface. This driver supports TS-4900, TS-7970, TS-7990 and TS-4100 series. Signed-off-by: Lucile Quirion --- drivers/gpio/Kconfig | 7 ++ drivers/gpio/Makefile | 1 + d

[PATCH v4 0/2] Technologic I2C-FPGA gpio support

2016-08-12 Thread Lucile Quirion
This driver aims to support all Technologic Systems's boards embedding FPGA GPIOs with an I2C interface. Changes in v2: - convert from bool to tristate Changes in v3: - use regmap abstraction to read/write from I2C - use devm_gpiochip_add_data() - implement ts4900_gpio_get_direction() functio

Re: [PATCH v3 51/51] x86/mm: convert arch_within_stack_frames() to use the new unwinder

2016-08-12 Thread Josh Poimboeuf
On Fri, Aug 12, 2016 at 09:29:10AM -0500, Josh Poimboeuf wrote: > Convert arch_within_stack_frames() to use the new unwinder. > > Boot tested with CONFIG_HARDENED_USERCOPY. > > Signed-off-by: Josh Poimboeuf > --- > arch/x86/lib/usercopy.c | 25 +++-- > 1 file changed, 19 ins

Re: [PATCH 3/3] ARM: dts: imx6q-evi: Fix onboard hub reset line

2016-08-12 Thread Joshua Clayton
Hi Peter, On 08/11/2016 08:11 PM, Peter Chen wrote: > On Thu, Aug 11, 2016 at 09:40:32AM -0700, Joshua Clayton wrote: >> Previously the onboard hub was made to work by treating its >> reset gpio as a regulator enable. >> Get rid of that kludge now that pwseq has added reset gpio support >> Move pi

Re: [PATCH v3 0/3] i2c: designware: improve performance for transfers

2016-08-12 Thread Christian Ruppert
On 29.07.2016 00:03, Lucas De Marchi wrote: > This can be considered a v3 of "i2c: designware: do not disable adapter after > transfer". Differences are: > > - Now there's a first patch that does not depend on IC_TAR being > dynamically > enabled/disabled: it just doesn't wait for the s

[v.1] power:reset:hisi-reboot :- Unmap a region obtained by remap.

2016-08-12 Thread Arvind Yadav
iounmap frees the mapping when failed to find reboot-offset property and cannot register restart handler. Signed-off-by: Arvind Yadav --- drivers/power/reset/hisi-reboot.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/power/reset/hisi-reboot.c b/drivers/power/r

Re: [PATCH v2 1/8] firmware: add new extensible firmware API - sysdata_file_request*()

2016-08-12 Thread Luis R. Rodriguez
On Thu, Aug 11, 2016 at 02:15:31PM -0700, Bjorn Andersson wrote: > On Thu, Jun 16, 2016 at 4:59 PM, Luis R. Rodriguez wrote: > > The firmware API has evolved over the years slowly, as it > > grows we extend it by adding new routines or at times we extend > > existing routines with more or less arg

Re: [PATCH RESEND v2 3/3] ehci-platform: add the max clock number to 4

2016-08-12 Thread Alan Stern
On Fri, 12 Aug 2016, Icenowy Zheng wrote: > Allwinner A64 EHCI requires 4 clocks to be enabled. > > Signed-off-by: Icenowy Zheng > --- > drivers/usb/host/ehci-platform.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/usb/host/ehci-platform.c > b/drivers/usb/h

Re: [PATCH] UBIFS: fix assertion in layout_in_gaps()

2016-08-12 Thread Artem Bityutskiy
On Fri, 2016-08-12 at 15:26 +0200, Vincent Stehlé wrote: > An assertion in layout_in_gaps() verifies that the gap_lebs pointer > is > below the maximum bound. When computing this maximum bound the > idx_lebs > count is multiplied by sizeof(int), while C pointers arithmetic does > take > into accoun

Re: Correct modules for Bay Trail MAX98090 soc?

2016-08-12 Thread Laura Abbott
On 08/12/2016 04:49 AM, Mark Brown wrote: On Fri, Aug 12, 2016 at 06:37:11AM -0500, Pierre-Louis Bossart wrote: On 8/12/16 4:53 AM, Mark Brown wrote: On Thu, Aug 11, 2016 at 06:31:27PM -0500, Pierre-Louis Bossart wrote: If you remove support for all other baytrail options this driver should

Re: [PATCH] time,virt: resync steal time when guest & host lose sync

2016-08-12 Thread Rik van Riel
On Fri, 12 Aug 2016 15:09:00 +0800 Wanpeng Li wrote: > 2016-08-12 10:44 GMT+08:00 Rik van Riel : > > If you pass ULONG_MAX as the maxtime argument to > > steal_account_process_time(), does the steal time > > get accounted properly at 75%? > > Yes. I talked with Paolo this morning, and it turn

[PATCH v10 04/11] dmaengine: dw: provide probe(), remove() stubs for users

2016-08-12 Thread Andy Shevchenko
Some users consider DMA optional, thus when driver is not compiled we shouldn't prevent compilation of the users. Add stubs for dw_dma_probe() and dw_dma_remove(). Acked-by: Vinod Koul Signed-off-by: Andy Shevchenko --- include/linux/dma/dw.h | 5 + 1 file changed, 5 insertions(+) diff --g

[PATCH v10 00/11] serial: 8250: split LPSS to 8250_lpss, enable DMA on Quark

2016-08-12 Thread Andy Shevchenko
This is combined series of two things: - split out the Intel LPSS specific driver from 8250_pci into 8250_lpss - enable DMA support on Intel Quark UART The patch has been tested on few Intel SoCs / platforms. In any case I would like to ask Bryan to do independent test. This is targeting serial s

Re: [PATCH v1] x86/power/64: Restore processor state before using per-cpu variables

2016-08-12 Thread Thomas Garnier
On Fri, Aug 12, 2016 at 2:23 AM, Jiri Kosina wrote: > On Fri, 12 Aug 2016, Jiri Kosina wrote: > > That's pretty nasty, as turning LOCKDEP on has sideffects on the code > that'd normally not be expected to be run at all (tracepoint off). > > Oh well. Thanks for the analysis, I didn't got that far

[PATCH v10 06/11] serial: 8250_dma: adjust DMA address of the UART

2016-08-12 Thread Andy Shevchenko
Some UARTs, e.g. one is used in Intel Quark, have a different address base for DMA operations. Introduce an additional field (per RX and TX DMA channels) in struct uart_8250_dma to cover those cases. Reviewed-by: Heikki Krogerus Signed-off-by: Andy Shevchenko --- drivers/tty/serial/8250/8250.h

[PATCH v10 05/11] serial: 8250_dma: switch to new dmaengine_terminate_* API

2016-08-12 Thread Andy Shevchenko
Convert dmaengine_terminate_all() calls to synchronous and asynchronous versions where appropriate. Reviewed-by: Peter Hurley Reviewed-by: Heikki Krogerus Signed-off-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --g

[PATCH v10 11/11] serial: 8250_lpss: enable DMA on Intel Quark UART

2016-08-12 Thread Andy Shevchenko
DMA on Intel Quark SoC is a part of UART IP block. Enable it. Signed-off-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_lpss.c | 83 +++-- 1 file changed, 79 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/8250/8250_lpss.c b/drivers/tty/seria

[PATCH v10 02/11] dmaengine: dw: set polarity of handshake interface

2016-08-12 Thread Andy Shevchenko
Intel Quark UART uses DesignWare DMA IP. Though the DMA IP is connected in such way that handshake interface uses inverted polarity. We have to provide a possibility to set this in the DMA driver when configuring a channel. Introduce a new member of custom slave configuration called 'hs_polarity'

Re: [PATCH v1] x86/power/64: Restore processor state before using per-cpu variables

2016-08-12 Thread Thomas Garnier
On Fri, Aug 12, 2016 at 4:14 AM, Rafael J. Wysocki wrote: > On Fri, Aug 12, 2016 at 7:49 AM, Borislav Petkov wrote: >> On Thu, Aug 11, 2016 at 02:49:29PM -0700, Thomas Garnier wrote: >>> Restore the processor state before calling any other function to ensure >>> per-cpu variables can be used with

[PATCH v10 07/11] serial: 8250: enable AFE on ports where FIFO is 16 bytes

2016-08-12 Thread Andy Shevchenko
Intel Quark has 16550A compatible UART with autoflow feature enabled. It has only 16 bytes of FIFO. Currently serial8250_do_set_termios() prevents to enable autoflow since the minimum requirement of 32 bytes of FIFO size. Drop a FIFO size limitation to allow autoflow control be enabled on such UAR

[PATCH v10 03/11] dmaengine: dw: override LLP support if asked in platform data

2016-08-12 Thread Andy Shevchenko
There are at least two known devices, e.g. DMA controller found on ARC AXS101 SDP board, that have LLP register and no multi block transfer support at the same time. Override autodetection by user provided data. Reported-by: Eugeniy Paltsev Signed-off-by: Andy Shevchenko --- drivers/dma/dw/cor

[PATCH v10 08/11] serial: 8250_lpss: split LPSS driver to separate module

2016-08-12 Thread Andy Shevchenko
The SoCs, such as Intel Braswell, have DesignWare UART IP. Split out the support of such chips to a separate module which also will be used for Intel Quark later. The rationale to have the separate driver to be existing: - Do not contaminate 8250_pci.c anymore with LPSS related quirks - All of the

[PATCH v10 10/11] serial: 8250_lpss: enable MSI for Intel Quark

2016-08-12 Thread Andy Shevchenko
Intel Quark SoC supports MSI for LPSS, in particular for UART. Enable MSI for Intel Quark. Signed-off-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_lpss.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/tty/serial/8250/8250_lpss.c b/drivers/tty/serial/8250/8250_

[PATCH v10 01/11] dmaengine: dw: keep copy of custom slave config in dwc

2016-08-12 Thread Andy Shevchenko
It seems we need to extend custom slave configuration by one more member to support Intel Quart UART. It becomes a burden to manage all members of struct dw_dma_slave one-by-one. Replace set of fields by embedding struct dw_dma_slave into struct dw_dma_chan. Acked-by: Vinod Koul Signed-off-by: A

[PATCH v10 09/11] serial: 8250_lpss: move Quark code from PCI driver

2016-08-12 Thread Andy Shevchenko
Intel Quark has DesignWare UART. Move the code from 8250_pci to 8250_lpss. Reviewed-by: Bryan O'Donoghue Signed-off-by: Andy Shevchenko --- drivers/tty/serial/8250/8250_lpss.c | 11 +++ drivers/tty/serial/8250/8250_pci.c | 15 +-- 2 files changed, 12 insertions(+), 14 delet

Re: [RFC][PATCH 3/4] arm64: dts: hikey: Add hikey support for syscon-reboot-mode

2016-08-12 Thread Bjorn Andersson
On Fri 12 Aug 06:34 PDT 2016, Wei Xu wrote: > Hi All, > > On 10/08/2016 05:58, John Stultz wrote: > > On Tue, Aug 9, 2016 at 9:34 PM, Bjorn Andersson > > wrote: > >> On Mon 08 Aug 16:03 PDT 2016, John Stultz wrote: > >> > >> [..] > >>> diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts

Re: Correct modules for Bay Trail MAX98090 soc?

2016-08-12 Thread Mark Brown
On Fri, Aug 12, 2016 at 08:51:34AM -0700, Laura Abbott wrote: > On 08/12/2016 04:49 AM, Mark Brown wrote: > > That's not really that helpful for a distro kernel (this is for Fedora > > AIUI). > Yes, this is unfortunate as it means that something is going to lose sound > support in Fedora. :( It's

feature detection versus feature selection

2016-08-12 Thread Arnaldo Carvalho de Melo
Hey guys, Now we have this output when building tools with the feature detection mechanisms in tools/build/: Auto-detecting system features: ... dwarf: [ on ] ...dwarf_getlocations: [ OFF ] ... glibc: [ on ] ...

Re: [PATCH] sched: Avoid that __wait_on_bit_lock() hangs

2016-08-12 Thread Oleg Nesterov
On 08/11, Oleg Nesterov wrote: > > I'll send another debugging patch tomorrow, I was a bit busy today. The next > step is obvious, we need to know the caller. Please drop two patches I sent before anf try the new one below. Which kernel version do you use? Oleg. --- diff --git a/include/linux/p

Re: [PATCH] crypto: fix ctx pointer and digest copy in sha256-mb

2016-08-12 Thread Tim Chen
On Fri, 2016-08-12 at 06:24 -0400, Xiaodong Liu wrote: > 1. fix ctx pointer > Use req_ctx which is the ctx for the next job that have > been completed in the lanes instead of the first > completed job rctx, whose completion could have been > called and released. > 2. fix digest copy > Use XMM regis

Re: clocksource_watchdog causing scheduling of timers every second (was [v13] support "task_isolation" mode)

2016-08-12 Thread Paul E. McKenney
On Fri, Aug 12, 2016 at 04:26:13PM +0200, Frederic Weisbecker wrote: > On Fri, Aug 12, 2016 at 09:23:13AM -0500, Christoph Lameter wrote: > > On Thu, 11 Aug 2016, Paul E. McKenney wrote: > > > > > Heh! The only really good idea is for clocks to be reliably in sync. > > > > > > But if they go out

Re: [PATCH] crypto: fix ctx pointer in sha512-mb

2016-08-12 Thread Tim Chen
On Fri, 2016-08-12 at 06:28 -0400, Xiaodong Liu wrote: > Signed-off-by: Xiaodong Liu > --- >  arch/x86/crypto/sha512-mb/sha512_mb.c | 4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/crypto/sha512-mb/sha512_mb.c > b/arch/x86/crypto/sha512-mb/sha512_mb.c > index

Re: [PATCH 2/2] arm: apply more __ro_after_init

2016-08-12 Thread Russell King - ARM Linux
On Thu, Aug 11, 2016 at 05:54:08PM +0200, Arnd Bergmann wrote: > On Thursday, August 11, 2016 12:06:45 AM CEST Russell King - ARM Linux wrote: > > On Wed, Aug 10, 2016 at 09:41:23PM +0200, Arnd Bergmann wrote: > > > It might be better to start by making the fixed mapping readonly, > > > as KASLR do

Re: [PATCH] sched: Avoid that __wait_on_bit_lock() hangs

2016-08-12 Thread Bart Van Assche
On 08/12/2016 09:16 AM, Oleg Nesterov wrote: On 08/11, Oleg Nesterov wrote: Please drop two patches I sent before and try the new one below. Thanks, will do. Which kernel version do you use? Kernel v4.7 with a few ib_srp and dm-mpath backports from kernel v4.8-rc1 and also a few SCSI patch

Re: [PACTH v1] mm, proc: Implement /proc//totmaps

2016-08-12 Thread Robert Foss
On 2016-08-10 02:05 PM, Jann Horn wrote: On Wed, Aug 10, 2016 at 10:45:51AM -0700, Sonny Rao wrote: On Wed, Aug 10, 2016 at 10:37 AM, Jann Horn wrote: On Wed, Aug 10, 2016 at 10:23:53AM -0700, Sonny Rao wrote: On Tue, Aug 9, 2016 at 2:01 PM, Robert Foss wrote: On 2016-08-09 03:24 PM, Ja

Re: [PATCH v3 3/7] clk: rockchip: rk3399: fix incorrect GATE bits for {c, g}pll_aclk_perihp_src

2016-08-12 Thread Heiko Stübner
Am Dienstag, 2. August 2016, 15:19:57 schrieb Xing Zheng: > Sorry to refer incorrect clock diagram, we double check it that the bits > configuration of the Xpll_aclk_perihp_src need to be fixed: > bit 1 - shows aclk_perihp_cpll_src_en > bit 0 - shows aclk_perihp_gpll_src_en > > Through the testing

Re: staging: ks7010: Replace three printk() calls by pr_err()

2016-08-12 Thread Wolfram Sang
> Nothing what I would find noteworthy for increasing the usage of a function > like "dev_err". > > Are you on "a mission" to improve software around logging calls a bit more? I have two of those cards and I would like to know which one caused an error. dev_err helps with exactly that. signat

Re: [PATCH] time,virt: resync steal time when guest & host lose sync

2016-08-12 Thread Paolo Bonzini
On 10/08/2016 18:52, Rik van Riel wrote: > Paolo, what is your opinion on this issue? > > I can think of all kinds of ways in which guest and host might lose > sync with steal time, from uninitialized values at boot, to guest > pause, followed by save to disk, and reload, to live migration, to..

Re: [PATCH V8 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-08-12 Thread Lorenzo Pieralisi
Hi Tomasz, On Thu, Aug 11, 2016 at 12:06:31PM +0200, Tomasz Nowicki wrote: > IORT shows representation of IO topology for ARM based systems. > It describes how various components are connected together on > parent-child basis e.g. PCI RC -> SMMU -> ITS. Also see IORT spec. > http://infocenter.arm.

Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests

2016-08-12 Thread Boqun Feng
On Fri, Aug 12, 2016 at 01:30:15PM +0800, Boqun Feng wrote: [snip] > > > Besides, do we allow userspace programs do read-only access to the > > > memory objects modified by do_rseq(). If so, we have a problem when > > > there are two writes in a do_rseq()(either in the rseq critical section > > > o

Re: [PATCH v2] block: make sure big bio is splitted into at most 256 bvecs

2016-08-12 Thread Kent Overstreet
On Thu, Aug 11, 2016 at 07:02:53AM -0700, Christoph Hellwig wrote: > Please just fix bcache to not submit bios larger than BIO_MAX_PAGES for > now, until we can support such callers in general and enable common > used code to do so. Christoph, what's wrong with Ming's patch? Leaving bcache aside,

Re: [PATCH 1/2] remoteproc: core: Add rproc OF look-up functions

2016-08-12 Thread Suman Anna
Hi Bjorn, >> On 08/11/2016 02:31 AM, Lee Jones wrote: >>> On Wed, 10 Aug 2016, Suman Anna wrote: >>> On 08/10/2016 04:19 PM, Bjorn Andersson wrote: > On Wed 10 Aug 14:04 PDT 2016, Suman Anna wrote: > >> On 08/10/2016 03:40 PM, Bjorn Andersson wrote: >>> On Wed 10 Aug 12:37 PDT

Re: musb: am3358: having problem with high-speed on usb1 at peripheral

2016-08-12 Thread ayaka
On 08/12/2016 03:40 PM, Greg KH wrote: On Fri, Aug 12, 2016 at 10:23:15AM +0800, ayaka wrote: Hello all: I recently add a support for customize am3358 board using the branch processor-sdk-linux-03.00.00 from Ti git. But I meet a problem with musb at the peripheral mode. Then you are going

Re: [PATCH] drm: edid: HDMI 2.0 HF-VSDB block parsing

2016-08-12 Thread Jose Abreu
Hi Ville, On 12-08-2016 14:46, Ville Syrjälä wrote: > On Wed, Aug 10, 2016 at 04:29:21PM +0100, Jose Abreu wrote: >> Adds parsing for HDMI 2.0 'HDMI Forum Vendor >> Specific Data Block'. This block is present in >> some HDMI 2.0 EDID's and gives information about >> scrambling support, SCDC, 3D V

Re: [PATCH V8 2/8] ACPI: Add new IORT functions to support MSI domain handling

2016-08-12 Thread Lorenzo Pieralisi
On Thu, Aug 11, 2016 at 12:06:32PM +0200, Tomasz Nowicki wrote: [...] > +/** > + * iort_register_domain_token() - register domain token and related ITS ID > + * to the list from where we can get it back later on. > + * @trans_id: ITS ID. > + * @fw_node: Domain token. > + * > + * Returns: 0 on suc

Re: [PATCH] perf symbols: Fix annotation of objects with debuginfo files

2016-08-12 Thread Naveen N. Rao
On 2016/08/12 04:35PM, Anton Blanchard wrote: > From: Anton Blanchard > > Commit 73cdf0c6ea9c ("perf symbols: Record text offset in dso > to calculate objdump address") started storing the offset of > the text section for all DSOs: > >if (elf_section_by_name(elf, &ehdr, &tshdr, ".text",

[PATCH 0/6] powerpc/8xx: implementation of huge pages

2016-08-12 Thread Christophe Leroy
This set provides implementation of huge pages on the 8xx Christophe Leroy (6): powerpc: port 64 bits pgtable_cache to 32 bits powerpc: fix usage of _PAGE_RO in hugepage powerpc/8xx: use r3 to scratch CR in ITLBmiss powerpc/8xx: Move additional DTLBMiss handlers out of exception area pow

[PATCH 2/6] powerpc: fix usage of _PAGE_RO in hugepage

2016-08-12 Thread Christophe Leroy
fixes: a7b9f671f2d14 ("powerpc32: adds handling of _PAGE_RO") Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/book3s/64/pgtable.h | 2 ++ arch/powerpc/mm/hugetlbpage.c| 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/powerpc/include/asm/book3s/64/pgtable.h

[PATCH 4/6] powerpc/8xx: Move additional DTLBMiss handlers out of exception area

2016-08-12 Thread Christophe Leroy
When all options are activated, there is not enough space for the DTLBMiss handlers that handles IMMR area and linear RAM pages in the exception area. So lets move them after .0x2000 Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_8xx.S | 84 +

[PATCH 5/6] powerpc/8xx: make user addr DTLB miss the short path

2016-08-12 Thread Christophe Leroy
User space DTLB miss represent approximatly 90% of TLB misses so make it the shortest path. Also remove an unneccessary double jump in FixupDAR Before this patch, we spend 3.3 TB ticks in the handler for each user address miss and 3.4 TB ticks for each kernel address miss After this patch, we sen

[PATCH 6/6] powerpc/8xx: implementation of huge pages

2016-08-12 Thread Christophe Leroy
The 8xx has 512k and 8M pages. This patch implements hugepages using those sizes. On the 8xx, the size of pages is in the PGD entry, using PS field (bits 28-29): 00 : Small pages (4k or 16k) 01 : 512k pages 10 : reserved 11 : 8M pages The implementation uses a mix of what is used on BOOKS and BOO

[PATCH 1/6] powerpc: port 64 bits pgtable_cache to 32 bits

2016-08-12 Thread Christophe Leroy
Today powerpc64 uses a set of pgtable_caches while powerpc32 uses standard pages when using 4k pages and a single pgtable_cache if using other size pages. In addition powerpc32 uses another cache when handling huge pages. In preparation of implementing huge pages on the 8xx, this patch replaces th

[PATCH 3/6] powerpc/8xx: use r3 to scratch CR in ITLBmiss

2016-08-12 Thread Christophe Leroy
Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_8xx.S | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/arch/powerpc/kernel/head_8xx.S b/arch/powerpc/kernel/head_8xx.S index 43ddaae..708fd43 100644 --- a/arch/powerpc/kernel/head_8xx.S +++ b/ar

perf: fuzzer WARNING event_function_local.constprop

2016-08-12 Thread Vince Weaver
Got this while fuzzing on the Haswell machine. It's relatively repeatable if anyone wants me to chase it down more. It maps to int ret = event_function(&efs); WARN_ON_ONCE(ret); In event_function_local() [166817.446302] [ cut here ] [166817.451347] WARNI

Re: [RESEND PATCH v4] x86/hpet: Reduce HPET counter read contention

2016-08-12 Thread Waiman Long
On 08/11/2016 08:31 PM, Dave Hansen wrote: On 08/11/2016 04:22 PM, Waiman Long wrote: On 08/11/2016 03:32 PM, Dave Hansen wrote: It's a real bummer that this all has to be open-coded. I have to wonder if there were any alternatives that you tried that were simpler. What do you mean by "open-c

Re: [PATCHv5] arm64: Handle el1 synchronous instruction aborts cleanly

2016-08-12 Thread Catalin Marinas
On Tue, Aug 09, 2016 at 06:25:26PM -0700, Laura Abbott wrote: > Executing from a non-executable area gives an ugly message: > > lkdtm: Performing direct entry EXEC_RODATA > lkdtm: attempting ok execution at 084c0e08 > lkdtm: attempting bad execution at 08880700 > Bad mode in Synchr

Re: [PATCH RESEND] MAINTAINERS: add ARM ARCHITECTED TIMER entry

2016-08-12 Thread Catalin Marinas
On Tue, Aug 09, 2016 at 11:03:56AM +0100, Mark Rutland wrote: > The ARM architected timer driver falls under the drivers/clocksource/ > catch-all in MAINTAINERS, and get_maintainers.pl doesn't suggest a > number of people who should be Cc'd. > > The ARM architected timer is a core component of ARM

Re: [PATCHv5] arm64: Handle el1 synchronous instruction aborts cleanly

2016-08-12 Thread Catalin Marinas
On Fri, Aug 12, 2016 at 06:05:09PM +0100, Catalin Marinas wrote: > On Tue, Aug 09, 2016 at 06:25:26PM -0700, Laura Abbott wrote: > > Executing from a non-executable area gives an ugly message: > > > > lkdtm: Performing direct entry EXEC_RODATA > > lkdtm: attempting ok execution at 084c0e08

Re: [RESEND PATCH v4] x86/hpet: Reduce HPET counter read contention

2016-08-12 Thread Dave Hansen
On 08/12/2016 10:01 AM, Waiman Long wrote: > The reason for using a special lock is that I want both sequence number > update and locking to be done together atomically. They can be made > separate as is in the seqlock. However, that will make the code more > complex to make sure that all the threa

Re: perf: WARNING: kernel/events/core.c:4893 perf_mmap_close

2016-08-12 Thread Vince Weaver
On Tue, 9 Aug 2016, Alexander Shishkin wrote: > > Awesome, I'll have a look. Can you tell it it was messing around with > intel_bts driver from the fuzzer log? It's not just my Haswell machine either, my Core2 machine locked up with this (possibly related): [69117.178434] WARNING: CPU: 1 PID

Re: [PATCH] time,virt: resync steal time when guest & host lose sync

2016-08-12 Thread Rik van Riel
On Fri, 2016-08-12 at 18:33 +0200, Paolo Bonzini wrote: > > On 10/08/2016 18:52, Rik van Riel wrote: > > Paolo, what is your opinion on this issue? > > > > I can think of all kinds of ways in which guest and host might lose > > sync with steal time, from uninitialized values at boot, to guest > >

Re: [PATCH 3/4] powerpc/mm: allow memory hotplug into a memoryless node

2016-08-12 Thread Reza Arbab
On Fri, Aug 12, 2016 at 11:50:43AM +1000, Balbir Singh wrote: On 09/08/16 04:27, Reza Arbab wrote: Remove the check which prevents us from hotplugging into an empty node. Do we want to do this only for ibm,hotplug-aperture compatible ranges? We could, but since past discussions and current t

Re: [RESEND PATCH] ARM: tegra: fix erroneous address in dts

2016-08-12 Thread Ralf Ramsauer
On 08/10/2016 10:46 PM, Arnd Bergmann wrote: > On Monday, July 18, 2016 11:58:02 AM CEST Thierry Reding wrote: >> On Mon, Jul 18, 2016 at 11:46:48AM +0200, Ralf Ramsauer wrote: >>> c90bb7b enabled the high speed UARTs of the Jetson TK1. Due to a merge >>> quirk, wrong addresses were introduced. Fix

Re: [PATCH] fs/proc/task_mmu.c: fix mm_access() mode parameter in pagemap_read()

2016-08-12 Thread Levin, Alexander
On 08/12/2016 11:01 AM, Kenny Keslar wrote: > Backport of caaee6234d05a58c5b4d05e7bf766131b810a657 ("ptrace: use fsuid, > fsgid, effective creds for fs access checks") to v4.1 failed to update the > mode parameter in the mm_access() call in pagemap_read() to have one of the > new PTRACE_MODE_*CREDS

Re: [PATCH] exynos-drm: Fix display manager failing to start without IOMMU problem

2016-08-12 Thread Shuah Khan
On 08/10/2016 05:05 PM, Shuah Khan wrote: > On 08/10/2016 04:59 PM, Inki Dae wrote: >> Hi Shuah, >> >> 2016년 08월 11일 02:30에 Shuah Khan 이(가) 쓴 글: >>> Fix exynos_drm_gem_create_ioctl() attempts to allocate non-contiguous GEM >>> memory without IOMMU. In this case, there is no point in attempting to >

Re: [Linux 4.8-rc1 Bisected] Clock on boot Xen HVM guest starts at 31/12/1999

2016-08-12 Thread Alexandre Belloni
Hi, On 12/08/2016 at 19:23:36 +0200, Sander Eikelenboom wrote : > L.S., > > I'm seeing an issue when using a Linux 4.8-rc1 kernel in a Xen HVM guest (PV > guests and dom0 are uneffected). The clock is always set to 31/12/1999 on > boot > of the guest, instead of the system clock time. > > Bis

[Linux 4.8-rc1 Bisected] Clock on boot Xen HVM guest starts at 31/12/1999

2016-08-12 Thread Sander Eikelenboom
L.S., I'm seeing an issue when using a Linux 4.8-rc1 kernel in a Xen HVM guest (PV guests and dom0 are uneffected). The clock is always set to 31/12/1999 on boot of the guest, instead of the system clock time. Bisecting seems to point out commit: 463a86304cae92e10277b47180ac59cf93982e5b char/ge

Re: [PATCH v3 50/51] x86/mm: move arch_within_stack_frames() to usercopy.c

2016-08-12 Thread Kees Cook
On Fri, Aug 12, 2016 at 7:29 AM, Josh Poimboeuf wrote: > When I tried to port arch_within_stack_frames() to use the new unwinder, > I got a nightmare include file "header soup" scenario when unwind.h was > included from thread_info.h. And anyway, I think thread_info.h isn't > really an appropriat

Re: [PATCH v3 51/51] x86/mm: convert arch_within_stack_frames() to use the new unwinder

2016-08-12 Thread Kees Cook
On Fri, Aug 12, 2016 at 8:17 AM, Josh Poimboeuf wrote: > On Fri, Aug 12, 2016 at 09:29:10AM -0500, Josh Poimboeuf wrote: >> Convert arch_within_stack_frames() to use the new unwinder. >> >> Boot tested with CONFIG_HARDENED_USERCOPY. >> >> Signed-off-by: Josh Poimboeuf >> --- >> arch/x86/lib/user

Re: musb: am3358: having problem with high-speed on usb1 at peripheral

2016-08-12 Thread Greg KH
On Sat, Aug 13, 2016 at 12:38:46AM +0800, ayaka wrote: > > > On 08/12/2016 03:40 PM, Greg KH wrote: > > On Fri, Aug 12, 2016 at 10:23:15AM +0800, ayaka wrote: > > > Hello all: > > >I recently add a support for customize am3358 board using the branch > > > processor-sdk-linux-03.00.00 from Ti

Re: [PATCH] ses: Fix racy cleanup of /sys in remove_dev()

2016-08-12 Thread James Bottomley
On Thu, 2016-07-28 at 21:23 -0400, Martin K. Petersen wrote: > > > > > > "Calvin" == Calvin Owens writes: > > > > Any thoughts? Squinting at this more it still seems racy, but a > > > narrow race is surely better than just blatantly freeing > > > everything > > > while the file is still exposed i

Re: [PATCH v1] x86/power/64: Restore processor state before using per-cpu variables

2016-08-12 Thread Borislav Petkov
On Fri, Aug 12, 2016 at 09:03:52AM -0700, Thomas Garnier wrote: > Borislav, let me know once you tested it and I will send a v2 with > acked/tested. Just did 5 s2d runs, back-to-back, with Rafael's linux-next branch. Looks good so far, no hickups. I'll watch it the coming days if there are any cha

[PATCH 2/6] cpu/hotplug: Add multi instance support

2016-08-12 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner This patch adds the ability for a given state to have multiple instances. Until now all states have a single instance and the startup / teardown callback use global variables. A few drivers need to perform a the same callbacks on multiple "instances". Currently we have three

[PATCH 3/6] arm/perf: Use multi instance instead of custom list

2016-08-12 Thread Sebastian Andrzej Siewior
Cc: Will Deacon Cc: Mark Rutland Signed-off-by: Sebastian Andrzej Siewior --- drivers/perf/arm_pmu.c | 44 ++-- include/linux/perf/arm_pmu.h | 2 +- 2 files changed, 19 insertions(+), 27 deletions(-) diff --git a/drivers/perf/arm_pmu.c b/drivers/p

cpu hotplug: add multi instance support

2016-08-12 Thread Sebastian Andrzej Siewior
This series adds the multi instance support for a single hotplug state. We have currently three drivers in tree which have their own list in order to handle their individual instances. There will be probably more of these drivers than less so we try to shift the bits and pieces into the core code.

[PATCH 1/6] cpu/hotplug: Rework callback invocation logic

2016-08-12 Thread Sebastian Andrzej Siewior
From: Thomas Gleixner This is preparation for the following patch. This rework here changes the arguments of cpuhp_invoke_callback(). It passes now `state' and whether `startup' or `teardown' callback should be invoked. The callback then is looked up by the function. The following is a clanup of

Re: [PATCH] exynos-drm: Fix display manager failing to start without IOMMU problem

2016-08-12 Thread Shuah Khan
On 08/12/2016 11:28 AM, Shuah Khan wrote: > On 08/10/2016 05:05 PM, Shuah Khan wrote: >> On 08/10/2016 04:59 PM, Inki Dae wrote: >>> Hi Shuah, >>> >>> 2016년 08월 11일 02:30에 Shuah Khan 이(가) 쓴 글: Fix exynos_drm_gem_create_ioctl() attempts to allocate non-contiguous GEM memory without IOMMU.

[PATCH 6/6] net: virtio-net: Convert to hotplug state machine

2016-08-12 Thread Sebastian Andrzej Siewior
Install the callbacks via the state machine. The driver supports multiple instances and therefore the new cpuhp_state_add_instance_nocalls() infrastrucure is used. The driver currently uses get_online_cpus() to avoid missing a CPU hotplug event while invoking virtnet_set_affinity(). This could be a

[PATCH v2] x86/power/64: Restore processor state before using per-cpu variables

2016-08-12 Thread Thomas Garnier
Restore the processor state before calling any other function to ensure per-cpu variables can be used with KASLR memory randomization. Tracing functions use per-cpu variables (gs based) and one was called just before restoring the processor state fully. It resulted in a double fault when both the

[PATCH 4/6] bus/arm-cci: Use cpu-hp's multi instance support instead custom list

2016-08-12 Thread Sebastian Andrzej Siewior
Cc: Will Deacon Cc: Suzuki K Poulose Cc: Olof Johansson Cc: Mark Rutland Signed-off-by: Sebastian Andrzej Siewior --- drivers/bus/arm-cci.c | 45 ++--- 1 file changed, 18 insertions(+), 27 deletions(-) diff --git a/drivers/bus/arm-cci.c b/drivers/bus/a

[PATCH 5/6] bus/arm-ccn: Use cpu-hp's multi instance support instead custom list

2016-08-12 Thread Sebastian Andrzej Siewior
Cc: Arnd Bergmann Cc: Pawel Moll Cc: Suzuki K Poulose Signed-off-by: Sebastian Andrzej Siewior --- drivers/bus/arm-ccn.c | 52 --- 1 file changed, 20 insertions(+), 32 deletions(-) diff --git a/drivers/bus/arm-ccn.c b/drivers/bus/arm-ccn.c index

Re: [PATCH v3 0/8] Input: synaptics-rmi4: Reimplement functionality from hid-rmi

2016-08-12 Thread Andrew Duggan
Hi Dmitry, I wanted to check on the status of this patch series. It looks like patches 2, 3, 4, and 7 remain outstanding. For the most part all of the patches have either review or ack signoffs. The version 2 of patch 2 was reviewed by Benjamin Tissoires, but not v3. However, the changes betwe

[PATCH v6 1/2] mtd: nand_bbt: Move BBT block selection logic out of write_bbt()

2016-08-12 Thread Kyle Roeschley
From: Boris Brezillon This clarifies the write_bbt() by removing the write label and clarifying the error/exit path. Signed-off-by: Boris Brezillon --- v6: Split functionality of write_bbt out into new functions v5: De-duplicate bad block handling v4: Don't ignore write protection while marki

[PATCH v6 2/2] mtd: nand_bbt: scan for next free bbt block if writing bbt fails

2016-08-12 Thread Kyle Roeschley
If erasing or writing the BBT fails, we should mark the current BBT block as bad and use the BBT descriptor to scan for the next available unused block in the BBT. We should only return a failure if there isn't any space left. Signed-off-by: Kyle Roeschley Signed-off-by: Boris Brezillon Suggeste

Re: [patch 4 14/22] timer: Switch to a non cascading wheel

2016-08-12 Thread Rik van Riel
On Thu, 2016-08-11 at 18:21 +0300, Jouni Malinen wrote: > On Mon, Jul 4, 2016 at 12:50 PM, Thomas Gleixner > wrote: > > The current timer wheel has some drawbacks: > ... > > It looks like this change (commit > 500462a9de657f86edaa102f8ab6bff7f7e43fc2 in linux.git) breaks one of > the automated te

Re: perf: WARNING: kernel/events/core.c:4893 perf_mmap_close

2016-08-12 Thread Alexander Shishkin
Yes, I tracked to a race between unmapping and set_output, trying to come up with a good fix now. On 12 August 2016 at 20:17, Vince Weaver wrote: > > On Tue, 9 Aug 2016, Alexander Shishkin wrote: > >> >> Awesome, I'll have a look. Can you tell it it was messing around with >> intel_bts driver fro

Re: musb: am3358: having problem with high-speed on usb1 at peripheral

2016-08-12 Thread ayaka
On 08/13/2016 01:44 AM, Greg KH wrote: On Sat, Aug 13, 2016 at 12:38:46AM +0800, ayaka wrote: On 08/12/2016 03:40 PM, Greg KH wrote: On Fri, Aug 12, 2016 at 10:23:15AM +0800, ayaka wrote: Hello all: I recently add a support for customize am3358 board using the branch processor-sdk-linux

Re: [LKP] [lkp] [xfs] 68a9f5e700: aim7.jobs-per-min -13.6% regression

2016-08-12 Thread Linus Torvalds
On Thu, Aug 11, 2016 at 8:56 PM, Dave Chinner wrote: > On Thu, Aug 11, 2016 at 07:27:52PM -0700, Linus Torvalds wrote: >> >> I don't recall having ever seen the mapping tree_lock as a contention >> point before, but it's not like I've tried that load either. So it >> might be a regression (going b

Re: [PATCH v3] ARM: VDSO: put RO and RO after init objects into proper sections

2016-08-12 Thread Kees Cook
On Fri, Aug 12, 2016 at 1:12 AM, Jisheng Zhang wrote: > vdso_data_mapping is never modified, so mark it as const. > > vdso_total_pages, vdso_data_page, vdso_text_mapping and cntvct_ok are > initialized by vdso_init(), thereafter are read only. > > The fact that they are read only after init makes

Re: [PATCH 1/2] remoteproc: core: Add rproc OF look-up functions

2016-08-12 Thread Bjorn Andersson
On Fri 12 Aug 09:37 PDT 2016, Suman Anna wrote: > Hi Bjorn, > > >> On 08/11/2016 02:31 AM, Lee Jones wrote: > >>> On Wed, 10 Aug 2016, Suman Anna wrote: > >>> > On 08/10/2016 04:19 PM, Bjorn Andersson wrote: > > On Wed 10 Aug 14:04 PDT 2016, Suman Anna wrote: > > > >> On 08/10/20

[PATCH] ALSA: usb-audio: Add sample rate inquiry quirk for B850V3 CP2114

2016-08-12 Thread Akshay Bhat
From: Ken Lin Avoid getting sample rate on B850V3 CP2114 as it is unsupported and causes noisy "current rate is different from the runtime rate" messages when playback starts. Signed-off-by: Ken Lin Signed-off-by: Akshay Bhat --- sound/usb/quirks.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [RFC PATCH v7 7/7] Restartable sequences: self-tests

2016-08-12 Thread Mathieu Desnoyers
- On Aug 12, 2016, at 12:35 PM, Boqun Feng boqun.f...@gmail.com wrote: > On Fri, Aug 12, 2016 at 01:30:15PM +0800, Boqun Feng wrote: > [snip] >> > > Besides, do we allow userspace programs do read-only access to the >> > > memory objects modified by do_rseq(). If so, we have a problem when >>

Re: [PATCH v2 2/5] arm: dts: apq8064: Add thermal zones, tsens and qfprom nodes

2016-08-12 Thread Rob Herring
On Wed, Aug 10, 2016 at 12:13:56PM +0530, Rajendra Nayak wrote: > TSENS is part of GCC, hence add TSENS properties as part of GCC node. > Also add thermal zones and qfprom nodes. > Update GCC bindings doc to mention the possibility of optional TSENS > properties that can be part of GCC node. > > A

Re: [PATCH v2 0/4] tracing: Add Hardware Latency detector tracer

2016-08-12 Thread Daniel Bristot de Oliveira
On 08/10/2016 10:53 AM, Steven Rostedt wrote: > This adds the PREEMPT_RT hwlat detector as a Linux tracer in mainline. > In the PREEMPT_RT patch set, it is a separate entity that is controlled > by the debugfs file system. I found that it is better suited as a > latency tracer in the tracing direct

[PATCH] time: avoid undefined behaviour in timespec64_add_safe()

2016-08-12 Thread Vegard Nossum
I ran into this: UBSAN: Undefined behaviour in kernel/time/time.c:783:2 signed integer overflow: 5273 + 9223372036854771711 cannot be represented in type 'long int' CPU: 0 PID: 17363 Comm: trinity

Re: [PATCH] arm64: Introduce execute-only page access permissions

2016-08-12 Thread Kees Cook
On Thu, Aug 11, 2016 at 10:44 AM, Catalin Marinas wrote: > The ARMv8 architecture allows execute-only user permissions by clearing > the PTE_UXN and PTE_USER bits. However, the kernel running on a CPU > implementation without User Access Override (ARMv8.2 onwards) can still > access such page, so

Re: [PATCH 1/2] Revert "drm/fb-helper: Reduce READ_ONCE(master) to lockless_dereference"

2016-08-12 Thread Peter Zijlstra
On Thu, Aug 11, 2016 at 11:26:47AM -0700, Paul E. McKenney wrote: > If my upcoming testing of the two changes together pans out, I will > give you a Tested-by -- I am guessing that you don't want to wait > until the next merge window for these changes. I was planning to stuff them in tip/locking/u

drivers/gpu/drm/udl/udl_fb.c:206:2: note: in expansion of macro 'if'

2016-08-12 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 4b9eaf33d83d91430b7ca45d0ebf8241da489c92 commit: c0f0c177b5a9aa6d3791aa497a64a20a297ebc6f drm/udl: make fbdev support really optional date: 4 weeks ago config: x86_64-randconfig-n0-08130055 (attached as .c

<    1   2   3   4   5   6   7   >