Re: [PATCH] debugfs: Add debugfs_create_ulong()

2015-10-09 Thread Stephen Boyd
On 10/09, Viresh Kumar wrote: > @@ -87,6 +89,8 @@ struct dentry *debugfs_create_x32(const char *name, umode_t > mode, > struct dentry *parent, u32 *value); > struct dentry *debugfs_create_x64(const char *name, umode_t mode, > struct

Re: [PATCH] trace: stop critical timings before idle loop on idle=poll

2015-10-09 Thread Steven Rostedt
On Thu, 8 Oct 2015 15:36:06 -0300 Daniel Bristot de Oliveira wrote: > When using idle=poll, the preemptoff tracer is always showing the idle > task as the culprit for long latencies. That happens because critical > timings are not stopped before idle loop. This patch stops critical > timings

Re: [PATCH v7 06/60] sparc/PCI: Keep resource idx order with bridge register number

2015-10-09 Thread Khalid Aziz
On Thu, 2015-10-08 at 14:38 -0700, Yinghai Lu wrote: > On one system found strang "no compatible bridge window" warning > > PCI: Claiming :00:01.0: Resource 14: 00020001..000200010fff > [10220c] > PCI: Claiming :01:00.0: Resource 1: 00020001..00020001 >

Re: [PATCH 3/4] arm64: Juno: Add support for the PCIe host bridge on Juno R1

2015-10-09 Thread Liviu Dudau
On Fri, Oct 09, 2015 at 05:32:52PM +0100, Mark Rutland wrote: > On Fri, Oct 09, 2015 at 05:09:10PM +0100, Liviu Dudau wrote: > > On Fri, Oct 09, 2015 at 05:49:18PM +0200, Arnd Bergmann wrote: > > > On Friday 09 October 2015 16:44:08 Mark Rutland wrote: > > > > On Fri, Oct 09, 2015 at 03:11:07PM

Re: [PATCH] clk: add support for Sigma Designs SMP86xx/87xx clocks

2015-10-09 Thread Marc Gonzalez
On 09/10/2015 14:35, Mans Rullgard wrote: > This adds support for most of the clocks in the Sigma Designs > SMP86xx (tango3) and SMP87xx (tango4) chips. > > Signed-off-by: Mans Rullgard > --- > I'm sending this now to avoid the maintainers wasting more time reviewing > the woefully incomplete

Re: [PATCH v2 3/3] stop_machine: change cpu_stop_queue_two_works() to rely on stopper->enabled

2015-10-09 Thread Oleg Nesterov
On 10/09, Peter Zijlstra wrote: > > I stuck that on top.. Yes, exactly! Plus I'll send another (minor) cleanup on top of this if everything goes right. > I'll have a closer look at the 7 patches later > when I might be more coherent (mad head-ache atm.) Thanks! Hmm... but please please see

Re: [PATCH 3/3] sched: start stopper early

2015-10-09 Thread Oleg Nesterov
On 10/09, Oleg Nesterov wrote: > > From: Peter Zijlstra Peter, I tried to compromise you. > case CPU_ONLINE: > + stop_machine_unpark(cpu); > /* >* At this point a starting CPU has marked itself as online via >* set_cpu_online().

Re: [PATCHv2] arm: perf: Add event descriptions

2015-10-09 Thread Drew Richardson
On Fri, Oct 09, 2015 at 11:13:38AM +0100, Will Deacon wrote: > On Wed, Oct 07, 2015 at 11:28:18AM -0700, Drew Richardson wrote: > > Add additional information about the ARM architected hardware events > > to make counters self describing. This makes the hardware PMUs easier > > to use as perf list

Re: [RFC PATCH v6 2/3] arm64: fix a migrating irq bug when hotplug cpu

2015-10-09 Thread Catalin Marinas
On Thu, Sep 24, 2015 at 05:32:14PM +0800, Yang Yingliang wrote: > When cpu is disabled, all irqs will be migratged to another cpu. > In some cases, a new affinity is different, the old affinity need > to be updated and if irq_set_affinity's return value is IRQ_SET_MASK_OK_DONE, > the old affinity

[PATCH v2 3/5] of: Add vendor prefix for PLDA.

2015-10-09 Thread Liviu Dudau
Use "plda" as vendor prefix for PLDA. Signed-off-by: Liviu Dudau --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index

[PATCH v2 0/5] arm64: Juno: Add support for PCIe on R1 board

2015-10-09 Thread Liviu Dudau
Changes in v2 vs v1: - Add plda as OF vendor prefix - Add more specific compatible values to the Juno R1 DT Juno R1 board has a working PCIe host bridge that can be enabled and configured by the firmware and made use of by Linux. For UEFI, the Linaro releases contain firmware that configure

[PATCH v2 4/5] arm64: Juno: Add support for the PCIe host bridge on Juno R1

2015-10-09 Thread Liviu Dudau
Juno R1 board sports a functional PCIe host bridge that is compliant with the SBSA standard found [1] here. With the right firmware that initialises the XpressRICH3 controller one can use the generic Host Bridge driver to use the PCIe hardware. Signed-off-by: Liviu Dudau [1]

[PATCH v2 5/5] arm64: defconfig: Enable PCI generic host bridge by default

2015-10-09 Thread Liviu Dudau
Now that pci-host-generic can be used under arm64, enable it by default so that SBSA compliant systems can use it. Cc: Will Deacon Cc: Catalin Marinas Signed-off-by: Liviu Dudau --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig

[PATCH v2 2/5] PCI: Add quirk for PLDA's XpressRICH3 host bridge class.

2015-10-09 Thread Liviu Dudau
The XpressRICH3 host bridge at power up has an unassigned class on some of ARM Ltd boards, add a quirk to correct that. Signed-off-by: Liviu Dudau --- drivers/pci/quirks.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index

Re: [PATCH v2 3/5] of: Add vendor prefix for PLDA.

2015-10-09 Thread Mark Rutland
On Fri, Oct 09, 2015 at 05:57:27PM +0100, Liviu Dudau wrote: > Use "plda" as vendor prefix for PLDA. > > Signed-off-by: Liviu Dudau Having looked on PLDA's website it seems "PLDA" is their preferred name, and I can't find any suffix used, so this looks fine to me: Acked-by: Mark Rutland

[PATCH v2 1/5] pci: Add PLDA's XpressRICH3 PCIe host bridge PCI ID

2015-10-09 Thread Liviu Dudau
From: Andrew Murray Signed-off-by: Liviu Dudau --- include/linux/pci_ids.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index d9ba49c..1542b2b 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1319,6 +1319,9 @@

[PATCH] blk-mq: remove unused blk_mq_clone_flush_request prototype

2015-10-09 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- block/blk-mq.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/blk-mq.h b/block/blk-mq.h index f4fea79..b44dce1 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -29,8 +29,6 @@ void __blk_mq_complete_request(struct request *rq); void

Re: [PATCH 3.2 035/107] PCI: Add dev_flags bit to access VPD through function 0

2015-10-09 Thread Rustad, Mark D
Ben Hutchings wrote: > They're bit masks, not bit numbers, both in 3.2 and upstream. In > mainline, bits 3-7 have already been assigned to other flags. I don't > see the need to renumber or write the value differently when > backporting. No problem. I just saw the different representations

Re: [v3 PATCH] arm64: replace read_lock to rcu lock in call_break_hook

2015-10-09 Thread Steven Rostedt
On Fri, 9 Oct 2015 10:05:50 +0100 Will Deacon wrote: > > Looks more plausible to me. Does it look OK to you, Steven? > > This is already in mainline as a fix, so please shout loudly if you think > it's broken (it looked ok to me and didn't cause any regressions in my > testing). Looks good to

Re: [PATCH v2 4/5] arm64: Juno: Add support for the PCIe host bridge on Juno R1

2015-10-09 Thread Mark Rutland
On Fri, Oct 09, 2015 at 05:57:28PM +0100, Liviu Dudau wrote: > Juno R1 board sports a functional PCIe host bridge that is > compliant with the SBSA standard found [1] here. With the right > firmware that initialises the XpressRICH3 controller one can > use the generic Host Bridge driver to use the

Re: [PATCH v2 3/5] of: Add vendor prefix for PLDA.

2015-10-09 Thread Liviu Dudau
On Fri, Oct 09, 2015 at 05:59:29PM +0100, Mark Rutland wrote: > On Fri, Oct 09, 2015 at 05:57:27PM +0100, Liviu Dudau wrote: > > Use "plda" as vendor prefix for PLDA. > > > > Signed-off-by: Liviu Dudau > > Having looked on PLDA's website it seems "PLDA" is their preferred name, > and I can't

[PATCH] x86/entry/64/compat: Document sysenter_fix_flags's reason for existence

2015-10-09 Thread Borislav Petkov
From: Borislav Petkov Date: Fri, 9 Oct 2015 19:04:09 +0200 Subject: [PATCH] x86/entry/64/compat: Document sysenter_fix_flags's reason for existence The code under the label can normally be inline, without the jumping back and forth but the latter is an optimization. Document that.

[PATCH V2] debugfs: Add debugfs_create_ulong()

2015-10-09 Thread Viresh Kumar
Add debugfs_create_ulong() for the users of type 'unsigned long'. These will be 32 bits long on a 32 bit machine and 64 bits long on a 64 bit machine. Signed-off-by: Viresh Kumar --- V1->V2: - Fix missing debugfs_create_xlong() routine, was left in the repository. fs/debugfs/file.c |

Re: [PATCH 3/3] fpga manager: Adding FPGA Manager support for Xilinx Zynq 7000

2015-10-09 Thread Moritz Fischer
Hi Josh, thanks for the review! On Fri, Oct 9, 2015 at 6:33 PM, Josh Cartwright wrote: > Hey Moritz- > > On Fri, Oct 09, 2015 at 12:45:07AM +0200, Moritz Fischer wrote: >> This commit adds FPGA Manager support for the Xilinx Zynq chip. >> The code heavily borrows from the xdevcfg driver in

Re: [PATCH] blk-mq: remove unused blk_mq_clone_flush_request prototype

2015-10-09 Thread Jens Axboe
On 10/09/2015 10:57 AM, Christoph Hellwig wrote: Signed-off-by: Christoph Hellwig --- block/blk-mq.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/blk-mq.h b/block/blk-mq.h index f4fea79..b44dce1 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -29,8 +29,6 @@ void

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

2015-10-09 Thread Paul E. McKenney
On Fri, Oct 09, 2015 at 10:40:39AM +0100, Will Deacon wrote: > On Fri, Oct 09, 2015 at 10:31:38AM +0200, Peter Zijlstra wrote: > > On Thu, Oct 08, 2015 at 02:44:39PM -0700, Paul E. McKenney wrote: > > > On Thu, Oct 08, 2015 at 01:16:38PM +0200, Peter Zijlstra wrote: > > > > On Thu, Oct 08, 2015 at

RE: [PATCH 6/6] staging: comedi: don't use mutex when polling file

2015-10-09 Thread Hartley Sweeten
On Friday, October 09, 2015 4:27 AM, Ian Abbott wrote: > The main mutex in a comedi device can get held for quite a while when > processing comedi instructions, so for performance reasons, the "read" > and "write" file operations do not use it; they use use the > `attach_lock` rwsemaphore to

RE: [PATCH 0/6] staging: comedi: fix some minor issues with file poll op

2015-10-09 Thread Hartley Sweeten
On Friday, October 09, 2015 4:27 AM, Ian Abbott wrote: > A few changes for the "poll" file operation to avoid poll-waiting on the > same subdevice for both read and write (patch 1), avoid allocating write > buffer space unnecessarily and possibly inappropriately (patch 4), > consider whether any

Re: [PATCH v2] tty: fix stall caused by missing memory barrier in drivers/tty/n_tty.c

2015-10-09 Thread Peter Hurley
On 10/02/2015 04:27 AM, Kosuke Tatsukawa wrote: > My colleague ran into a program stall on a x86_64 server, where > n_tty_read() was waiting for data even if there was data in the buffer > in the pty. kernel stack for the stuck process looks like below. > #0 [88303d107b58] __schedule at

Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs

2015-10-09 Thread Alexei Starovoitov
On 10/9/15 4:45 AM, Hannes Frederic Sowa wrote: Afaics this problem hasn't even be solved in perf so far, tracepoints hit independent of the namespace currently. yes and that's exactly what we're trying to solve. The "demux+worker bpf programs" proposal is a work-in-progress solution to get

Re: [PATCH 1/2] net/fsl_pq_mdio: check TBI address for consistency with mapped range

2015-10-09 Thread kbuild test robot
Hi Gerlando, [auto build test WARNING on net/master -- if it's inappropriate base, please ignore] config: powerpc-tqm8541_defconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross

Re: [PATCH v4 3/6] iommu: add ARM short descriptor page table allocator.

2015-10-09 Thread Robin Murphy
On 09/10/15 16:57, Will Deacon wrote: On Tue, Sep 22, 2015 at 03:12:47PM +0100, Yong Wu wrote: I would like to show you a problem I met, The recursion here may lead to stack overflow while we test FHD video decode. From the log, I get the internal variable in the error case: the

[GIT PULL] Btrfs

2015-10-09 Thread Chris Mason
Hi Linus, I have a few fixes in my for-linus-4.3 branch: git://git.kernel.org/pub/scm/linux/kernel/git/mason/linux-btrfs.git for-linus-4.3 These are small and assorted. Neil's is the oldest, I dropped the ball thinking he was going to send it in. Filipe Manana (3) commits (+26/-12):

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

2015-10-09 Thread Paul E. McKenney
On Fri, Oct 09, 2015 at 10:51:29AM +0100, Will Deacon wrote: > Hi Paul, > > On Thu, Oct 08, 2015 at 03:17:16PM -0700, Paul E. McKenney wrote: > > On Thu, Oct 08, 2015 at 01:59:38PM +0100, Will Deacon wrote: > > > I thought Paul was talking about something like this case: > > > > > > CPU A

[PATCH] namei: results of d_is_negative() should be checked after dentry revalidation

2015-10-09 Thread Trond Myklebust
Leandro Awa writes: After switching to version 4.1.6, our parallelized and distributed workflows now fail consistently with errors of the form: T34: ./regex.c:39:22: error: config.h: No such file or directory >From our 'git bisect' testing, the following commit appears to be the possible cause

Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs

2015-10-09 Thread Daniel Borkmann
On 10/09/2015 07:30 PM, Alexei Starovoitov wrote: ... Openstack use case is different. There it will be prog_type_sched_cls that can mangle packets, change skb metadata, etc under TC framework. These are not suitable for all users and this patch leaves them root-only. If you're proposing to add

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

2015-10-09 Thread Paul E. McKenney
On Fri, Oct 09, 2015 at 01:25:54PM +0200, Peter Zijlstra wrote: > On Fri, Oct 09, 2015 at 10:51:29AM +0100, Will Deacon wrote: > > > The corresponding litmus tests are below. > > > > How do people feel about including these in memory-barriers.txt? I find > > them considerably easier to read than

Re: [PATCH 15/44] kdbus: Simplify bitwise expression in kdbus_meta_get_mask()

2015-10-09 Thread Sergei Zviagintsev
Hi David, On Thu, Oct 08, 2015 at 04:24:30PM +0200, David Herrmann wrote: > Hi > > On Thu, Oct 8, 2015 at 1:31 PM, Sergei Zviagintsev wrote: > > Replace the expression with more concise and readable equivalent. It can > > be proven by opening parentheses: > > > > r & ~((p | i) & r) == r &

Re: [PATCH v2 4/5] arm64: Juno: Add support for the PCIe host bridge on Juno R1

2015-10-09 Thread Rob Herring
On Fri, Oct 9, 2015 at 12:04 PM, Mark Rutland wrote: > On Fri, Oct 09, 2015 at 05:57:28PM +0100, Liviu Dudau wrote: >> Juno R1 board sports a functional PCIe host bridge that is >> compliant with the SBSA standard found [1] here. With the right >> firmware that initialises the XpressRICH3

Re: [PATCH 18/44] kdbus: Add var initialization to kdbus_conn_entry_insert()

2015-10-09 Thread Sergei Zviagintsev
Hi, On Thu, Oct 08, 2015 at 04:28:29PM +0200, David Herrmann wrote: > Hi > > On Thu, Oct 8, 2015 at 1:31 PM, Sergei Zviagintsev wrote: > > Assign zero to `ret' in the beginning of function instead of doing it > > in the end. > > > > Signed-off-by: Sergei Zviagintsev > > --- > >

Re: arm/arm64: GICv2 driver does not have irq_disable implemented

2015-10-09 Thread Thomas Gleixner
On Fri, 9 Oct 2015, Duc Dang wrote: > Hi Thomas, Marc, Jason and All, > > In APM ARM64 X-Gene Enet controller driver, we use disable_irq_nosync to > disable interrupt before calling __napi_schedule to schedule packet handler > to process the Tx/Rx packets. Which is wrong to begin with. Disable

Re: [PATCH v2 1/2] devicetree: add binding for generic mmio clocksource

2015-10-09 Thread Rob Herring
+Stephen who has worked on this code. On Fri, Oct 9, 2015 at 11:19 AM, Måns Rullgård wrote: > Måns Rullgård writes: > >> Rob Herring writes: >> >>> On Wed, Oct 7, 2015 at 11:47 AM, Måns Rullgård wrote: What would be a proper way to select a sched_clock source? I realise it's a

[PATCH RFC V2 3/3] Input: goodix - update dt bindings documentation (axis swapping/inversion)

2015-10-09 Thread Karsten Merker
The goodix touchscreen driver has gained support for the optional touchscreen-inverted-x, touchscreen-inverted-y and touchscreen-swapped-x-y properties as described in Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt. Document these properties in the goodix bindings

[PATCH RFC V2 2/3] Input: goodix - use "inverted_[xy]" flags instead of "rotated_screen"

2015-10-09 Thread Karsten Merker
The goodix touchscreen driver uses a "rotated_screen" flag for systems on which the touchscreen is mounted rotated by 180 degrees with respect to the display. With the addition of support for the dt properties "touchscreen-inverted-x" and "touchscreen-inverted-y", a separate "rotated_screen" flag

[PATCH RFC V2 1/3] Input: goodix - add dt axis swapping and axis inversion support

2015-10-09 Thread Karsten Merker
Implement support for the following device-tree properties in the goodix touchscreen driver: - touchscreen-inverted-x: X axis is inverted (boolean) - touchscreen-inverted-y: Y axis is inverted (boolean) - touchscreen-swapped-x-y: X and Y axis are swapped (boolean) These are necessary on

[PATCH 2/2] clk: tegra: delete unneeded of_node_put

2015-10-09 Thread Julia Lawall
for_each_child_of_node performs an of_node_put on each iteration, so putting an of_node_put before a continue results in a double put. The semantic match that finds this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; iterator name

Re: [PATCH v2 net-next 1/3] bpf: enable non-root eBPF programs

2015-10-09 Thread Alexei Starovoitov
On 10/9/15 10:45 AM, Daniel Borkmann wrote: On 10/09/2015 07:30 PM, Alexei Starovoitov wrote: ... Openstack use case is different. There it will be prog_type_sched_cls that can mangle packets, change skb metadata, etc under TC framework. These are not suitable for all users and this patch

[PATCH RFC V2 0/3] Input: goodix - add axis swapping and axis inversion support

2015-10-09 Thread Karsten Merker
Hello, this is v2 of my "Input: goodix - add axis swapping and axis inversion support" patchset. The goodix touchscreen driver has gained device-tree support in kernel 4.1, but doesn't currently support the touchscreen-swapped-x-y, touchscreen-inverted-x and touchscreen-inverted-y properties. On

[PATCH 1/2] memory: tegra: delete unneeded of_node_put

2015-10-09 Thread Julia Lawall
for_each_child_of_node performs an of_node_put on each iteration, so putting an of_node_put before a continue results in a double put. The semantic match that finds this problem is as follows (http://coccinelle.lip6.fr): // @@ expression root,e; local idexpression child; iterator name

[PATCH 0/2] delete unneeded of_node_put

2015-10-09 Thread Julia Lawall
for_each_child_of_node performs an of_node_put on each iteration, so putting an of_node_put before a continue results in a double put. --- var/julia/linuxcopy/drivers/clk/tegra/clk-emc.c |4 +--- var/julia/linuxcopy/drivers/memory/tegra/mc.c |4 +---

Re: [PATCH 02/10] clk: nsp: add clock support for Broadcom Northstar Plus SoC

2015-10-09 Thread Jon Mason
On Fri, Oct 09, 2015 at 12:37:46AM -0700, Stephen Boyd wrote: > On 10/02, Jon Mason wrote: > > diff --git a/drivers/clk/bcm/clk-nsp.c b/drivers/clk/bcm/clk-nsp.c > > new file mode 100644 > > index 000..708961a > > --- /dev/null > > +++ b/drivers/clk/bcm/clk-nsp.c > > @@ -0,0 +1,139 @@ > > +/*

Re: [PATCH v5 1/4] Docs: dt: Add PCI MSI map bindings

2015-10-09 Thread Rob Herring
On Fri, Oct 9, 2015 at 11:12 AM, David Daney wrote: > On 10/09/2015 06:20 AM, Rob Herring wrote: >> >> On Thu, Oct 8, 2015 at 5:10 PM, David Daney wrote: >>> >>> From: Mark Rutland >>> >>> Currently msi-parent is used by a few bindings to describe the >>> relationship between a PCI root complex

Re: [PATCH 05/10] clk: iproc: Add PLL base write function

2015-10-09 Thread Jon Mason
On Fri, Oct 09, 2015 at 12:03:57AM -0700, Stephen Boyd wrote: > On 10/02, Jon Mason wrote: > > diff --git a/drivers/clk/bcm/clk-iproc-pll.c > > b/drivers/clk/bcm/clk-iproc-pll.c > > index e029ab3..a4602aa 100644 > > --- a/drivers/clk/bcm/clk-iproc-pll.c > > +++ b/drivers/clk/bcm/clk-iproc-pll.c >

Re: [PATCH 21/44] kdbus: Cleanup tests in kdbus_cmd_send()

2015-10-09 Thread Sergei Zviagintsev
On Thu, Oct 08, 2015 at 04:30:59PM +0200, David Herrmann wrote: > Hi > > On Thu, Oct 8, 2015 at 1:31 PM, Sergei Zviagintsev wrote: > > Rearrange tests a little to make them look cleaner. > > What's wrong with 'else if'? Less verbose constructions are easier for our brain to accept :) Moreover,

Re: [PATCH 05/44] kdbus: Add comment on merging free pool slices

2015-10-09 Thread Sergei Zviagintsev
Hi, On Thu, Oct 08, 2015 at 03:50:46PM +0200, David Herrmann wrote: > Hi > > On Thu, Oct 8, 2015 at 1:31 PM, Sergei Zviagintsev wrote: > > Add comment on why we remove the same slice from free slices tree and > > then add it back again when merging the slice to be released with > > previous

Re: [PATCH V6] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-10-09 Thread Yasuaki Ishimatsu
Hi Tang, On Fri, 9 Oct 2015 15:59:38 +0800 Tang Chen wrote: > Hi, > > I don't mean to offend, but I really think it is not necessary to do this. > > hot-added memory will be added to ZONE_NORMAL by default. You can > modify it when you online memory. I think it is enough for users. But we

Re: [PATCH 23/44] kdbus: Cleanup kdbus_conn_call()

2015-10-09 Thread Sergei Zviagintsev
On Thu, Oct 08, 2015 at 04:32:47PM +0200, David Herrmann wrote: > Hi > > On Thu, Oct 8, 2015 at 1:31 PM, Sergei Zviagintsev wrote: > > Do not initialize `wait' and `name' as values are assigned to them at > > first use: `wait' gets its value from kdbus_reply_find(), `name' is set > > by

[PATCH 1/1] perf,tools: fix core dump caused by per-socket/core system-wide stat

2015-10-09 Thread kan . liang
From: Kan Liang Perf will core dump if --per-socket/core -a are applied for perf stat. The root cause is that cpu_map__build_map set refcnt of evlist's cpu_map to 1. It should set refcnt for the newly created cpu_map, not evlist's cpu_map. Here is the example: perf stat -e cycles --per-socket

Re: [PATCH 3/3] fpga manager: Adding FPGA Manager support for Xilinx Zynq 7000

2015-10-09 Thread Greg KH
On Fri, Oct 09, 2015 at 07:09:15PM +0100, atull wrote: > On Thu, 8 Oct 2015, Moritz Fischer wrote: > > > --- /dev/null > > +++ b/drivers/fpga/zynq-fpga.c > > @@ -0,0 +1,478 @@ > > +/* > > + * Copyright (c) 2011-2015 Xilinx Inc. > > + * Copyright (c) 2015, National Instruments Corp. > > + * > > +

[PATCH] staging: wilc1000: typo in WILC1000_DYNAMICALLY_ALLOCATE_MEMROY

2015-10-09 Thread Stanislav Kholmanskikh
Looking at the code, it seems that "MEMROY" in the config option name is a typo. It should be "MEMORY" instead. Changed the config option name accordingly. Signed-off-by: Stanislav Kholmanskikh --- drivers/staging/wilc1000/Kconfig | 2 +- drivers/staging/wilc1000/Makefile | 2 +- 2 files

Re: [PATCH v4 3/6] iommu: add ARM short descriptor page table allocator.

2015-10-09 Thread Will Deacon
On Fri, Oct 09, 2015 at 06:41:51PM +0100, Robin Murphy wrote: > On 09/10/15 16:57, Will Deacon wrote: > >On Tue, Sep 22, 2015 at 03:12:47PM +0100, Yong Wu wrote: > >> I would like to show you a problem I met, The recursion here may > >>lead to stack overflow while we test FHD video decode. >

Re: [RFC v2 2/6] PM / Domains: prepare for devices that might register a power state

2015-10-09 Thread Lina Iyer
On Fri, Oct 09 2015 at 03:39 -0600, Marc Titinger wrote: On 08/10/2015 18:11, Lina Iyer wrote: Hi Marc, Thanks for rebasing on top of my latest series. On Tue, Oct 06 2015 at 08:27 -0600, Marc Titinger wrote: Devices may register an intermediate retention state into the domain upon I may

Re: [PATCH] staging: wilc1000: typo in WILC1000_DYNAMICALLY_ALLOCATE_MEMROY

2015-10-09 Thread Dan Carpenter
On Fri, Oct 09, 2015 at 09:19:07PM +0300, Stanislav Kholmanskikh wrote: > Looking at the code, it seems that "MEMROY" in the config option > name is a typo. It should be "MEMORY" instead. > > Changed the config option name accordingly. > > Signed-off-by: Stanislav Kholmanskikh Just delete it

Re: [PATCH 3/3] fpga manager: Adding FPGA Manager support for Xilinx Zynq 7000

2015-10-09 Thread atull
On Thu, 8 Oct 2015, Moritz Fischer wrote: > --- /dev/null > +++ b/drivers/fpga/zynq-fpga.c > @@ -0,0 +1,478 @@ > +/* > + * Copyright (c) 2011-2015 Xilinx Inc. > + * Copyright (c) 2015, National Instruments Corp. > + * > + * FPGA Manager Driver for Xilinx Zynq, heavily based on xdevcfg driver > +

Re: [PATCH 3/3] fpga manager: Adding FPGA Manager support for Xilinx Zynq 7000

2015-10-09 Thread atull
On Fri, 9 Oct 2015, Greg KH wrote: > On Fri, Oct 09, 2015 at 07:09:15PM +0100, atull wrote: > > On Thu, 8 Oct 2015, Moritz Fischer wrote: > > > > > --- /dev/null > > > +++ b/drivers/fpga/zynq-fpga.c > > > @@ -0,0 +1,478 @@ > > > +/* > > > + * Copyright (c) 2011-2015 Xilinx Inc. > > > + *

Re: [PATCH] Introduces generic __list_splice_init_rcu();

2015-10-09 Thread Paul E. McKenney
On Thu, Oct 08, 2015 at 04:02:19PM -0400, Mimi Zohar wrote: > On Tue, 2015-10-06 at 11:37 -0700, Paul E. McKenney wrote: > > On Sun, Sep 27, 2015 at 06:10:28PM +0300, Petko Manolov wrote: > > > __list_splice_init_rcu() can be used to splice lists forming both stack > > > and > > > queue

Re: [PATCH 04/10] ARM: dts: enable clock support for BCM5301X

2015-10-09 Thread Jon Mason
On Fri, Oct 09, 2015 at 12:35:40AM -0700, Stephen Boyd wrote: > On 10/02, Jon Mason wrote: > > Replace current device tree dummy clocks with real clock support for > > Broadcom Northstar SoCs. > > > > Signed-off-by: Jon Mason > > --- > > I'd rather not take any dts changes through clk tree.

Re: [PATCH] ARM: hisilicon: DT: Drop console= and earlyprintk bootargs parameter

2015-10-09 Thread Arnd Bergmann
On Friday 09 October 2015 17:10:36 Wei Xu wrote: > Replace console with stdout-path so that we don't have to put the > console on the kernel command line. > > Remove earlyprintk to allow the kernel to boot on a system even > if DEBUG_LL is configured for another system. > > Signed-off-by: Wei Xu

Re: [PATCH v2 4/4] spi: spi-coldfire-qspi: enable RuntimePM before registering to the core

2015-10-09 Thread Wolfram Sang
On Fri, Oct 09, 2015 at 10:39:27AM +0100, Wolfram Sang wrote: > From: Wolfram Sang > > The core may register clients attached to this master which may use > funtionality from the master. So, RuntimePM must be enabled before, otherwise > this will fail. > > Signed-off-by: Wolfram Sang V2 adds

[PATCH] tracefs, debugfs: fix refcount imbalance in start_creating

2015-10-09 Thread Daniel Borkmann
In tracefs' start_creating(), we pin the file system to safely access its root. When we failed to create a file, we unpin the file system via failed_creating() to release the mount count and eventually the reference of the vfsmount. However, when we run into an error during lookup_one_len() when

Re: [PATCH] netfilter: turn NF_HOOK into an inline function

2015-10-09 Thread Eric W. Biederman
Arnd Bergmann writes: > On Friday 09 October 2015 21:03:57 kbuild test robot wrote: >> ^1da177e Linus Torvalds2005-04-16 818 cb->rt_flags &= ~DN_RT_F_IE; >> ^1da177e Linus Torvalds2005-04-16 819 if (rt->rt_flags & >> RTCF_DOREDIRECT) >> ^1da177e Linus Torvalds2005-04-16

RE: [PATCHv3 00/56] perf stat: Add scripting support

2015-10-09 Thread Liang, Kan
> > > > > > > 3. I think you have already handled new record type for perf stat record. > > But the "unhandled!" message still show in the perf report -D. > > > > 0x598 [0x30]: PERF_RECORD_STAT > > ... id 22385, cpu 0, thread 0 > > ... value 1752, enabled 501473097, running 501473097 > > :

Re: [PATCH v2 2/5] PCI: Add quirk for PLDA's XpressRICH3 host bridge class.

2015-10-09 Thread Arnd Bergmann
On Friday 09 October 2015 17:57:26 Liviu Dudau wrote: > +/* > + * The PLDA's XpressRICH3 doesn't describe itself as a bridge. This is > required > + * for correct/normal enumeration. > + */ > +static void xr3pci_quirk_class(struct pci_dev *pdev) > +{ > + pdev->class = PCI_CLASS_BRIDGE_PCI

Re: [PATCH 24/44] kdbus: Cleanup kdbus_conn_unicast()

2015-10-09 Thread Sergei Zviagintsev
On Thu, Oct 08, 2015 at 04:34:27PM +0200, David Herrmann wrote: > Hi > > On Thu, Oct 8, 2015 at 1:31 PM, Sergei Zviagintsev wrote: > > Do not initialize `name' and `ret' as values are assigned to them at > > the first use by kdbus_pin_dst(). Simplify handling of > > kdbus_conn_entry_insert()

[PATCH] powerpc/mm: use memblock_is_memory

2015-10-09 Thread Alexander Kuleshov
The provides memblock_is_memory() function that tries to find a given physical address in the memblock.memory.regions. Let's use this function instead of direct coding of the same functionality. Signed-off-by: Alexander Kuleshov --- arch/powerpc/mm/mem.c | 6 ++ 1 file changed, 2

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

2015-10-09 Thread Will Deacon
On Fri, Oct 09, 2015 at 10:43:27AM -0700, Paul E. McKenney wrote: > On Fri, Oct 09, 2015 at 10:51:29AM +0100, Will Deacon wrote: > > How do people feel about including these in memory-barriers.txt? I find > > them considerably easier to read than our current kernel code + list of > > possible

[PATCH] checkpatch: Improve tests for fixes:, long lines and stack dumps in commit log

2015-10-09 Thread Joe Perches
Including BUG and stack dumps in commit logs makes checkpatch produce some false positive warning messages. checkpatch has multiple types of false positives: o Commit message lines > 75 chars o Stack dump address are mistaken for git commit IDs o Link: and Fixes: lines are allowed to be > 75

Re: [PATCH] netfilter: turn NF_HOOK into an inline function

2015-10-09 Thread Eric W. Biederman
Arnd Bergmann writes: > A recent change to the dst_output handling caused a new warning > when the call to NF_HOOK() is the only used of a local variable > passed as 'dev', and CONFIG_NETFILTER is disabled: > > net/ipv6/ip6_output.c: In function 'ip6_output': > net/ipv6/ip6_output.c:135:21:

Re: [PATCH] Introduces generic __list_splice_init_rcu();

2015-10-09 Thread Paul E. McKenney
On Fri, Oct 09, 2015 at 11:26:38AM -0700, Paul E. McKenney wrote: > On Thu, Oct 08, 2015 at 04:02:19PM -0400, Mimi Zohar wrote: > > On Tue, 2015-10-06 at 11:37 -0700, Paul E. McKenney wrote: > > > On Sun, Sep 27, 2015 at 06:10:28PM +0300, Petko Manolov wrote: > > > > __list_splice_init_rcu() can

[RFC PATCH 0/2] VFIO no-iommu

2015-10-09 Thread Alex Williamson
Recent patches for UIO have been attempting to add MSI/X support, which unfortunately implies DMA support, which users have been enabling anyway, but was never intended for UIO. VFIO on the other hand expects an IOMMU to provide isolation of devices, but provides a much more complete device

[RFC PATCH 1/2] vfio: Move vfio.c vfio_core.c

2015-10-09 Thread Alex Williamson
This allows us to more easily create a "vfio" module that includes multiple files. No code change, rename and Makefile update only. Signed-off-by: Alex Williamson --- drivers/vfio/Makefile|1 drivers/vfio/vfio.c | 1640 --

[RFC PATCH 2/2] vfio: Include no-iommu mode

2015-10-09 Thread Alex Williamson
There is really no way to safely give a user full access to a PCI without an IOMMU to protect the host from errant DMA. There is also no way to provide DMA translation, for use cases such as devices assignment to virtual machines. However, there are still those users that want userspace drivers

Re: [PATCH 25/44] kdbus: Cleanup kdbus_cmd_conn_info()

2015-10-09 Thread Sergei Zviagintsev
Hi, On Thu, Oct 08, 2015 at 04:38:11PM +0200, David Herrmann wrote: > Hi > > On Thu, Oct 8, 2015 at 1:31 PM, Sergei Zviagintsev wrote: > > - Move `entry' and `owner' to the scope where they are used. Drop > >redundand initialization of `entry'. Use conditional operator to set > >the

Re: [PATCH 26/44] kdbus: Cleanup kdbus_pin_dst()

2015-10-09 Thread Sergei Zviagintsev
Hi, On Thu, Oct 08, 2015 at 04:40:33PM +0200, David Herrmann wrote: > Hi > > On Thu, Oct 8, 2015 at 1:31 PM, Sergei Zviagintsev wrote: > > - Reduce scope of `owner' var to the block where it is actually used. > >Use conditional operator to set its value. > > > > - Drop initialization of

Re: [PATCH v2 1/2] devicetree: add binding for generic mmio clocksource

2015-10-09 Thread Stephen Boyd
On 10/09, Rob Herring wrote: > +Stephen who has worked on this code. > > On Fri, Oct 9, 2015 at 11:19 AM, Måns Rullgård wrote: > > Måns Rullgård writes: > > > >> Rob Herring writes: > >> > >>> On Wed, Oct 7, 2015 at 11:47 AM, Måns Rullgård wrote: > What would be a proper way to select a

[PATCH v2] netfilter: turn NF_HOOK into an inline function

2015-10-09 Thread Arnd Bergmann
A recent change to the dst_output handling caused a new warning when the call to NF_HOOK() is the only used of a local variable passed as 'dev', and CONFIG_NETFILTER is disabled: net/ipv6/ip6_output.c: In function 'ip6_output': net/ipv6/ip6_output.c:135:21: warning: unused variable 'dev'

Re: [PATCH 31/44] kdbus: Cleanup kdbus_conn_move_messages()

2015-10-09 Thread Sergei Zviagintsev
Hi, On Thu, Oct 08, 2015 at 04:50:31PM +0200, David Herrmann wrote: > Hi > > On Thu, Oct 8, 2015 at 1:32 PM, Sergei Zviagintsev wrote: > > - Move `r' and `ret' to scopes where they are used. Drop redundant > >initialization of `ret'. > > > > - Initialize `bus' on declaration. > > > > -

Re: [PATCH 38/44] kdbus: Fix error path in kdbus_user_lookup()

2015-10-09 Thread Sergei Zviagintsev
Hi David, On Thu, Oct 08, 2015 at 05:06:57PM +0200, David Herrmann wrote: > Hi > > On Thu, Oct 8, 2015 at 1:32 PM, Sergei Zviagintsev wrote: > > If idr_alloc() fails, we shouldn't call idr_remove() as latter produces > > warning when called on non-allocated ids. Split cleanup code into three >

Re: [PATCH 43/44] kdbus: Give up on failed fd allocation

2015-10-09 Thread Sergei Zviagintsev
Hi, On Thu, Oct 08, 2015 at 05:14:24PM +0200, David Herrmann wrote: > Hi > > On Thu, Oct 8, 2015 at 1:32 PM, Sergei Zviagintsev wrote: > > If we failed to allocate a file descriptor, do not try to do it again on > > the next iteration. There are few chances that we will have success, and > > we

RE: [PATCH][RFC] mm: Introduce kernelcore=reliable option

2015-10-09 Thread Luck, Tony
> I understand if the mirrored regions are always at the start of the zone > today, but is that somehow guaranteed going forward on all future hardware? > > I think it's important to at least consider what we would do if DMA32 > turned out to be non-reliable. Current hardware can map one mirrored

RE: [PATCH] [v4] x86, suspend: Save/restore extra MSR registers for suspend

2015-10-09 Thread Doug Smythies
Note: This reply is more for general information than anything else. Since Yu's original e-mail I have searched all forums and bug reports that I would find in an attempt to gain knowledge as to the extent of Clock Modulation becoming enabled issues. It is common, but particularly with some

Re: [PATCH] nvme: fix 32-bit build warning

2015-10-09 Thread Arnd Bergmann
On Friday 09 October 2015 07:42:21 Christoph Hellwig wrote: > On Tue, Oct 06, 2015 at 10:37:11PM +0200, Arnd Bergmann wrote: > > Compiling the nvme driver on 32-bit warns about a cast from a __u64 > > variable to a pointer: > > > > drivers/block/nvme-core.c: In function 'nvme_submit_io': > >

Re: crazy idea: big percpu lock (Re: task isolation)

2015-10-09 Thread Andy Lutomirski
On Fri, Oct 9, 2015 at 2:27 AM, Thomas Gleixner wrote: > On Thu, 8 Oct 2015, Andy Lutomirski wrote: >> I want to propose a new primitive that might go a long way toward >> solving this issue. The new primitive would be called the "big percpu >> lock". > > It took us 15+ years to get rid of the

[PATCH v2] nvme: fix 32-bit build warning

2015-10-09 Thread Arnd Bergmann
>From 877a323df080bda54a71e26ecf20b4244b31a180 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Tue, 6 Oct 2015 22:29:48 +0200 Subject: [PATCH] nvme: fix 32-bit build warning Compiling the nvme driver on 32-bit warns about a cast from a __u64 variable to a pointer: drivers/block/nvme-core.c:

Re: [PATCH] x86/entry/64/compat: Document sysenter_fix_flags's reason for existence

2015-10-09 Thread Andy Lutomirski
On Fri, Oct 9, 2015 at 10:08 AM, Borislav Petkov wrote: > From: Borislav Petkov > Date: Fri, 9 Oct 2015 19:04:09 +0200 > Subject: [PATCH] x86/entry/64/compat: Document sysenter_fix_flags's reason for > existence > > The code under the label can normally be inline, without the jumping > back and

Re: [PATCH V6] mm: memory hot-add: memory can not be added to movable zone defaultly

2015-10-09 Thread kbuild test robot
Hi Changsheng, [auto build test ERROR on v4.3-rc4 -- if it's inappropriate base, please ignore] config: x86_64-randconfig-s1-10100137 (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=x86_64 All errors (new ones prefixed by >>): >>

Re: [PATCH v2 14/36] x86/entry/64/compat: Disable SYSENTER and SYSCALL32 entries

2015-10-09 Thread Andy Lutomirski
On Oct 8, 2015 8:40 AM, "Borislav Petkov" wrote: > > On Mon, Oct 05, 2015 at 05:48:02PM -0700, Andy Lutomirski wrote: > > We've disabled the vDSO helpers to call them, so turn off the > > entries entirely (temporarily) in preparation for cleaning them up. > > > > Signed-off-by: Andy Lutomirski >

Re: [RFT 0/3] usb: usb3503: Fix probing on Arndale board (missing phy)

2015-10-09 Thread Kevin Hilman
at board. Please test it and say if the usb3503 deferred probe > works fine and the issue is solved. FYI... I built this series on top of next-20151009 and using exynos_defconfig. I booted it on my arndale, and I still don't see the networking come up. Full boot log attached. Kevin Conn

Re: [RFC PATCH 1/2] vfio: Move vfio.c vfio_core.c

2015-10-09 Thread Greg KH
On Fri, Oct 09, 2015 at 12:41:03PM -0600, Alex Williamson wrote: > This allows us to more easily create a "vfio" module that includes > multiple files. No code change, rename and Makefile update only. > > Signed-off-by: Alex Williamson > --- > drivers/vfio/Makefile|1 >

e1000e: hard system lockup on Linux 4.2

2015-10-09 Thread Jason A. Donenfeld
Hi Jeffrey & Raanan & Yanirx, I have a Thinkpad W530 with a 82579LM inside of it, which uses the e1000e driver. Every few hours, my system does a hard lockup, and I am unable to do anything at all with it except power it off. There isn't a panic or oops, as nothing is written to /sys/fs/pstore

<    9   10   11   12   13   14   15   16   17   >