Re: [PATCH 1/2] MIPS: MSA: bugfix - disable MSA during thread switch correctly

2015-05-22 Thread Leonid Yegoshin
On 05/22/2015 02:38 AM, Ralf Baechle wrote: Just move the call to finish_arch_switch(). It might be a problem later, then a correct MSA partiton starts working. It should be tight to saving MSA registers in that case. Your rewrite also dropped the if (cpu_has_msa) condition from

[PATCH v3 2/2] mtd: nand: Add support for Arasan Nand Flash Controller

2015-05-22 Thread Punnaiah Choudary Kalluri
Added the basic driver for Arasan Nand Flash Controller used in Zynq UltraScale+ MPSoC. It supports only Hw Ecc and upto 24bit correction. Signed-off-by: Punnaiah Choudary Kalluri --- Chnages in v3: - Removed unused variables - Avoided busy loop and used jifies based implementation - Fixed

Re: [PATCH v7 6/7] clk: hi6220: Clock driver support for Hisilicon hi6220 SoC

2015-05-22 Thread Stephen Boyd
On 05/22/15 11:30, Brent Wang wrote: > Hello Stephen, > > 2015-05-22 13:20 GMT+08:00 Bintian : >> >>> >>> Is pl011 the uart device? Does it have a node in DT somewhere? If it >>> does, then we could put the assigned-parents properties in that node so >>> that when the pl011 probes the uart1 clock

Re: [PATCH net] ipv4: fill in table id when replacing a route

2015-05-22 Thread David Miller
From: Michal Kubecek Date: Fri, 22 May 2015 13:40:09 +0200 (CEST) > When replacing an IPv4 route, tb_id member of the new fib_alias > structure is not set in the replace code path so that the new route is > ignored. > > Fixes: 0ddcf43d5d4a ("ipv4: FIB Local/MAIN table collapse") > >

[PATCH 1/6] staging:lustre:remove useless libcfs_sock_release

2015-05-22 Thread James Simmons
There is no reason to have a one line exported function libcfs_sock_release. Instead we can call sock_release directly. Signed-off-by: James Simmons --- .../staging/lustre/include/linux/libcfs/libcfs.h |1 - .../staging/lustre/lnet/klnds/socklnd/socklnd.c|2 +-

[PATCH 2/6] staging:lustre:remove useless libcfs_sock_abort_accept

2015-05-22 Thread James Simmons
Another one of those silly one line wrappers which is not needed. Replace libcfs_sock_abort_accept wrapper with a direct call to wake_up_all on the lnet_acceptor_state sock. Signed-off-by: James Simmons --- .../staging/lustre/include/linux/libcfs/libcfs.h |1 -

[PATCH 4/6] staging:lustre: use available kernel wrappers in lib-socket.c

2015-05-22 Thread James Simmons
Instead of handling calls to struct proto ourselves we can use equivalent kernel wrappers. No wrapper exist for unlocked ioctl handling so we create one here for our use. I expect some day that function will be integrated into sock.c. Signed-off-by: James Simmons ---

[PATCH 6/6] staging:lustre: Update license and copyright for lib-socket.c

2015-05-22 Thread James Simmons
Point to the right place for GNU license. Update Intel copyright. Signed-off-by: James Simmons --- drivers/staging/lustre/lnet/lnet/lib-socket.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/lib-socket.c

[PATCH 5/6] staging:lustre: style cleanups for lib-socket.c

2015-05-22 Thread James Simmons
Handle all the style issues reported by checkpatch.pl. Remove general white spaces, spaces in function calls, etc. Signed-off-by: James Simmons --- .../staging/lustre/lnet/klnds/socklnd/socklnd.c|4 +- drivers/staging/lustre/lnet/lnet/lib-socket.c | 210 +--- 2

[PATCH 3/6] staging:lustre: rename tcpip handling functions to lnet_* prefix

2015-05-22 Thread James Simmons
With all the TCPIP handling done in the lnet layer we should rename all the functions with the prefix lnet_*. One other change done was changing the remove argument of lnet_sock_getaddr from a int to a bool. Signed-off-by: James Simmons --- .../staging/lustre/include/linux/libcfs/libcfs.h |

[PATCH 0/6] staging:lustre: remove tcpip abstraction from libcfs

2015-05-22 Thread James Simmons
Since libcfs no longer builds for user land we can move the TCPIP abstraction that exist to the LNET layer which is the only place that uses it. Also the migrated code will use native linux kernel APIs directly instead of with wrappers. Signed-off-by: James Simmons Intel-bug-id:

Re: [PATCH v7 6/7] clk: hi6220: Clock driver support for Hisilicon hi6220 SoC

2015-05-22 Thread Brent Wang
Hello Stephen, 2015-05-22 13:20 GMT+08:00 Bintian : > Hello Stephen, > > > On 2015/5/22 2:00, Stephen Boyd wrote: >> >> On 05/20/15 20:57, Bintian wrote: >>> >>> > > + > +static void __init hi6220_clk_sys_init(struct device_node *np) > +{ > +struct hisi_clock_data

[PATCH v4 07/11] md/raid5: split bio for chunk_aligned_read

2015-05-22 Thread Ming Lin
If a read request fits entirely in a chunk, it will be passed directly to the underlying device (providing it hasn't failed of course). If it doesn't fit, the slightly less efficient path that uses the stripe_cache is used. Requests that get to the stripe cache are always completely split up as

[PATCH v4 01/11] block: make generic_make_request handle arbitrarily sized bios

2015-05-22 Thread Ming Lin
From: Kent Overstreet The way the block layer is currently written, it goes to great lengths to avoid having to split bios; upper layer code (such as bio_add_page()) checks what the underlying device can handle and tries to always create bios that don't need to be split. But this approach

[PATCH v4 05/11] block: remove split code in blkdev_issue_discard

2015-05-22 Thread Ming Lin
The split code in blkdev_issue_discard() can go away now that any driver that cares does the split. Signed-off-by: Ming Lin --- block/blk-lib.c | 73 +++-- 1 file changed, 14 insertions(+), 59 deletions(-) diff --git a/block/blk-lib.c

Re: [PATCH v2 5/5] ARM: qcom: Add Qualcomm APQ8084 SoC

2015-05-22 Thread Stephen Boyd
On 05/04/15 05:42, Stanimir Varbanov wrote: > This adds Snapdragon 805 ARM-based SoC as multiplatform > compatible platform. > > Signed-off-by: Stanimir Varbanov > --- > arch/arm/mach-qcom/Kconfig |7 +++ > 1 files changed, 7 insertions(+), 0 deletions(-) > > diff --git

[PATCH v4 03/11] bcache: remove driver private bio splitting code

2015-05-22 Thread Ming Lin
From: Kent Overstreet The bcache driver has always accepted arbitrarily large bios and split them internally. Now that every driver must accept arbitrarily large bios this code isn't nessecary anymore. Cc: linux-bca...@vger.kernel.org Signed-off-by: Kent Overstreet [dpark: add more

[PATCH v4 06/11] md/raid5: get rid of bio_fits_rdev()

2015-05-22 Thread Ming Lin
From: Kent Overstreet Remove bio_fits_rdev() completely, because ->merge_bvec_fn() has now gone. There's no point in calling bio_fits_rdev() only for ensuring aligned read from rdev. Cc: Neil Brown Cc: linux-r...@vger.kernel.org Signed-off-by: Kent Overstreet [dpark: add more description in

Re: [RFC v1] tree-wide: remove "select FW_LOADER" uses

2015-05-22 Thread Luis R. Rodriguez
On Fri, May 22, 2015 at 10:57:11AM -0700, Dmitry Torokhov wrote: > On Fri, May 22, 2015 at 10:43:12AM -0700, Luis R. Rodriguez wrote: > > On Fri, May 22, 2015 at 1:44 AM, Takashi Iwai wrote: > > > At Fri, 22 May 2015 10:17:48 +0200, > > > Paul Bolle wrote: > > >> > > >> On Fri, 2015-05-22 at

[PATCH v4 08/11] block: kill merge_bvec_fn() completely

2015-05-22 Thread Ming Lin
From: Kent Overstreet As generic_make_request() is now able to handle arbitrarily sized bios, it's no longer necessary for each individual block driver to define its own ->merge_bvec_fn() callback. Remove every invocation completely. Cc: Jens Axboe Cc: Lars Ellenberg Cc:

[PATCH v4 0/2] socfpga: support suspend to ram

2015-05-22 Thread Alan Tull
Support suspend to ram on socfpga. * allocate space in ocram using sram driver. * Add a function in ocram to place DDR in self-refresh and suspend. * SDRAM ECC is mutually exclusive with using ocram for suspend, so disable SDRAM ECC if socfpga suspend is enabled. * Add a device

[PATCH v4 09/11] fs: use helper bio_add_page() instead of open coding on bi_io_vec

2015-05-22 Thread Ming Lin
From: Kent Overstreet Call pre-defined helper bio_add_page() instead of open coding for iterating through bi_io_vec[]. Doing that, it's possible to make some parts in filesystems and mm/page_io.c simpler than before. Acked-by: Dave Kleikamp Cc: Christoph Hellwig Cc: Al Viro Cc:

[GIT PULL] CRIS changes for -next

2015-05-22 Thread Rabin Vincent
Hi Jesper, Here are the CRIS patches previously posted to the lists. It's based on your for-next branch. Please pull. Thanks. /Rabin The following changes since commit 45f49276cd8a96d17575699e2d5f5a839a7d9fbf: CRISv32: allow CONFIG_DEBUG_BUGVERBOSE (2015-05-17 21:12:04 +0200) are

[PATCH v3 1/2] mtd: arasan: Add device tree binding documentation

2015-05-22 Thread Punnaiah Choudary Kalluri
This patch adds the dts binding document for arasan nand flash controller. Signed-off-by: Punnaiah Choudary Kalluri --- Changes in v3: - None Changes in v2: - None --- .../devicetree/bindings/mtd/arasan_nfc.txt | 27 1 files changed, 27 insertions(+), 0

[PATCH v4 10/11] block: remove bio_get_nr_vecs()

2015-05-22 Thread Ming Lin
From: Kent Overstreet We can always fill up the bio now, no need to estimate the possible size based on queue parameters. Signed-off-by: Kent Overstreet [hch: rebased and wrote a changelog] Signed-off-by: Christoph Hellwig Signed-off-by: Ming Lin --- block/bio.c| 23

[PATCH v4 11/11] Documentation: update notes in biovecs about arbitrarily sized bios

2015-05-22 Thread Ming Lin
From: Dongsu Park Update block/biovecs.txt so that it includes a note on what kind of effects arbitrarily sized bios would bring to the block layer. Also fix a trivial typo, bio_iter_iovec. Cc: Christoph Hellwig Cc: Kent Overstreet Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org

[PATCH v4 02/11] block: simplify bio_add_page()

2015-05-22 Thread Ming Lin
From: Kent Overstreet Since generic_make_request() can now handle arbitrary size bios, all we have to do is make sure the bvec array doesn't overflow. __bio_add_page() doesn't need to call ->merge_bvec_fn(), where we can get rid of unnecessary code paths. Removing the call to ->merge_bvec_fn()

[PATCH v4 04/11] btrfs: remove bio splitting and merge_bvec_fn() calls

2015-05-22 Thread Ming Lin
From: Kent Overstreet Btrfs has been doing bio splitting from btrfs_map_bio(), by checking device limits as well as calling ->merge_bvec_fn() etc. That is not necessary any more, because generic_make_request() is now able to handle arbitrarily sized bios. So clean up unnecessary code paths. Cc:

[PATCH v4 00/11] simplify block layer based on immutable biovecs

2015-05-22 Thread Ming Lin
v4: - rebase on top of 4.1-rc4 - use BIO_POOL_SIZE instead of number 4 for bioset_create() - call blk_queue_split() in blk_mq_make_request() - call blk_queue_split() in zram_make_request() - add patch "block: remove bio_get_nr_vecs()" - remove split code in blkdev_issue_discard() -

Re: [PATCH] NVMe: Avoid interrupt disable during queue init.

2015-05-22 Thread Parav Pandit
On Fri, May 22, 2015 at 11:17 PM, Keith Busch wrote: > On Fri, 22 May 2015, Parav Pandit wrote: >> >> I agree to it that nvmeq won't be null after mb(); That alone is not >> sufficient. >> >> What I have proposed in previous email is, >> >> Converting, >> >> struct nvme_queue *nvmeq =

Re: Filesystem corruption MD (imsm) Raid0 via 2 SSD's + discard

2015-05-22 Thread Holger Kiehl
On Thu, 21 May 2015, NeilBrown wrote: On Thu, 21 May 2015 06:44:27 + (UTC) Holger Kiehl wrote: On Thu, 21 May 2015, NeilBrown wrote: On Thu, 21 May 2015 01:32:13 +0500 Roman Mamedov wrote: On Wed, 20 May 2015 20:12:31 + (UTC) Holger Kiehl wrote: The kernel I was running

Re: net/unix: sk_socket can disappear when state is unlocked

2015-05-22 Thread Hannes Frederic Sowa
On Fri, May 22, 2015, at 18:24, Mark Salyzyn wrote: > On 05/22/2015 08:35 AM, Hannes Frederic Sowa wrote: > > I still wonder if we need to actually recheck the condition and not > > simply break out of unix_stream_data_wait: > > > > We return to the unix_stream_recvmsg loop and recheck the > >

Re: [PATCH 7/7] mips: pistachio: Allow to enable the external timer based clocksource

2015-05-22 Thread Ezequiel Garcia
On 05/22/2015 01:58 PM, James Hartley wrote: > > >> -Original Message- >> From: abres...@google.com [mailto:abres...@google.com] On Behalf Of >> Andrew Bresticker >> Sent: 22 May 2015 17:50 >> To: Ezequiel Garcia >> Cc: linux-kernel@vger.kernel.org; Linux-MIPS; Daniel Lezcano; >>

Re: [PATCH 2/4] perf: jevents: Program to convert JSON file to C style file

2015-05-22 Thread Sukadev Bhattiprolu
Andi Kleen [a...@linux.intel.com] wrote: | > pmu-events.c depends only on JSON files relevant to the arch perf is | > being built on and there could be several JSON files per arch. So it | > would complicate the Makefiles. | | Could just use a wildcard dependency on */$(ARCH)/*.json Sure, but

Re: [PATCH 6/9] clk: pistachio: Propagate rate changes in the MIPS PLL clock sub-tree

2015-05-22 Thread Andrew Bresticker
On Fri, May 22, 2015 at 10:52 AM, Ezequiel Garcia wrote: > > > On 05/22/2015 02:42 PM, Andrew Bresticker wrote: >> On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia >> wrote: >>> This commit passes CLK_SET_RATE_PARENT to the "mips_div", >>> "mips_internal_div", and "mips_pll_mux" clocks. This

[GIT PULL] Block fixes for 4.1-rc

2015-05-22 Thread Jens Axboe
Hi Linus, Three small fixes that have been picked up the last few weeks. Specifically: - Fix a memory corruption issue in NVMe with malignant user constructed request. From Christoph. - Kill (now) unused blk_queue_bio(), dm was changed to not need this anymore. From Mike Snitzer. - Always

Re: [PATCH v2 2/5] phy: qcom: Add Qualcomm PCIe PHY

2015-05-22 Thread Bjorn Helgaas
[+cc Jingoo, Pratyush] On Fri, May 22, 2015 at 11:25 AM, Stanimir Varbanov wrote: > On 05/20/2015 04:23 PM, Bjorn Helgaas wrote: >> On Wed, May 20, 2015 at 8:08 AM, Kishon Vijay Abraham I >> wrote: >>> Hi Bjorn, >>> >>> >>> On Wednesday 20 May 2015 04:11 AM, Bjorn Helgaas wrote: On

Re: [PATCH soc] ARM: use ARM_SINGLE_ARMV7M for ARMv7-M platforms

2015-05-22 Thread Russell King - ARM Linux
On Fri, May 22, 2015 at 06:28:16PM +0200, Stefan Agner wrote: > On 2015-05-22 17:56, Daniel Thompson wrote: > > On 22/05/15 16:29, Maxime Coquelin wrote: > >> 2015-05-22 16:50 GMT+02:00 Arnd Bergmann : > >>> [one small request as I have four armv7-m folks on Cc already: > >>> could one of you

[PATCHv1 0/2] Adding driver for Xilinx LogiCORE IP mailbox.

2015-05-22 Thread Moritz Fischer
This patchset adds mailbox framework integration for the Xilinx LogiCORE IP mailbox. The Xilinx LogiCORE IP mailbox is a fpga softcore that allows interprocessor communication between AXI4 stream / memory mapped processors. Changes from v0: - - Several stylistic issues -

[PATCHv1 1/2] dts: Adding docs for Xilinx LogiCORE IP mailbox driver.

2015-05-22 Thread Moritz Fischer
Signed-off-by: Moritz Fischer --- .../bindings/mailbox/xilinx-mailbox.txt | 40 1 file changed, 40 insertions(+) diff --git a/Documentation/devicetree/bindings/mailbox/xilinx-mailbox.txt b/Documentation/devicetree/bindings/mailbox/xilinx-mailbox.txt new file mode

[PATCHv1 2/2] mailbox: Adding driver for Xilinx LogiCORE IP mailbox.

2015-05-22 Thread Moritz Fischer
The Xilinx LogiCORE IP mailbox is a FPGA core that allows for interprocessor communication via AXI4 memory mapped / AXI4 stream interfaces. It is single channel per core and allows for transmit and receive. Signed-off-by: Moritz Fischer --- MAINTAINERS | 7 +

Re: [PATCH 2/4] perf: jevents: Program to convert JSON file to C style file

2015-05-22 Thread Andi Kleen
> pmu-events.c depends only on JSON files relevant to the arch perf is > being built on and there could be several JSON files per arch. So it > would complicate the Makefiles. Could just use a wildcard dependency on */$(ARCH)/*.json Also it would be good to move the generated file into the

Re: [PATCH 9/9] clk: pistachio: Correct critical clock list

2015-05-22 Thread Ezequiel Garcia
On 05/22/2015 02:56 PM, Andrew Bresticker wrote: > On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia > wrote: >> From: Damien Horsley >> >> Correct the critical clock list. The current one is wrong, and may >> fail under some circumstances. >> >> Signed-off-by: Damien Horsley >> Signed-off-by:

Re: [RFC v1] tree-wide: remove "select FW_LOADER" uses

2015-05-22 Thread Dmitry Torokhov
On Fri, May 22, 2015 at 10:43:12AM -0700, Luis R. Rodriguez wrote: > On Fri, May 22, 2015 at 1:44 AM, Takashi Iwai wrote: > > At Fri, 22 May 2015 10:17:48 +0200, > > Paul Bolle wrote: > >> > >> On Fri, 2015-05-22 at 09:11 +0200, Geert Uytterhoeven wrote: > >> > On Fri, May 22, 2015 at 8:53 AM,

Re: [PATCH soc] ARM: use ARM_SINGLE_ARMV7M for ARMv7-M platforms

2015-05-22 Thread Russell King - ARM Linux
On Fri, May 22, 2015 at 05:29:20PM +0200, Maxime Coquelin wrote: > 2015-05-22 16:50 GMT+02:00 Arnd Bergmann : > > [one small request as I have four armv7-m folks on Cc already: > > could one of you try to fix the warning that I get with every > > single build:

Re: [PATCH 9/9] clk: pistachio: Correct critical clock list

2015-05-22 Thread Andrew Bresticker
On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia wrote: > From: Damien Horsley > > Correct the critical clock list. The current one is wrong, and may > fail under some circumstances. > > Signed-off-by: Damien Horsley > Signed-off-by: Ezequiel Garcia The commit message could be more

Re: [PATCH 6/9] clk: pistachio: Propagate rate changes in the MIPS PLL clock sub-tree

2015-05-22 Thread Ezequiel Garcia
On 05/22/2015 02:42 PM, Andrew Bresticker wrote: > On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia > wrote: >> This commit passes CLK_SET_RATE_PARENT to the "mips_div", >> "mips_internal_div", and "mips_pll_mux" clocks. This flag is needed for the >> "mips" clock to propagate rate changes up

Re: [fuse-devel] fuse_get_context() and namespaces

2015-05-22 Thread Eric W. Biederman
Seth Forshee writes: > On Fri, May 22, 2015 at 04:23:55PM +0200, Miklos Szeredi wrote: >> On Sat, May 2, 2015 at 5:56 PM, wrote: >> > >> > 3.10.0-229 form Scientific Linux and native 4.0.1-1 (from elrepo). >> > SL 7.1 on the host and SL 6.6 on the LXC guest. At least in 3.10 >> > the

Re: [PATCH v3 01/11] block: make generic_make_request handle arbitrarily sized bios

2015-05-22 Thread Ming Lin
On Mon, May 18, 2015 at 9:52 AM, Jeff Moyer wrote: > >> +static struct bio *blk_bio_segment_split(struct request_queue *q, >> + struct bio *bio, >> + struct bio_set *bs) >> +{ > > Funny name for a function that also merges

Re: [PATCH 8/9] clk: pistachio: Add sanity checks on PLL configuration

2015-05-22 Thread Andrew Bresticker
On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia wrote: > From: Kevin Cernekee > > When setting the PLL rates, check that: > > - VCO is within range > - PFD is within range > - PLL is disabled when postdiv is changed > - postdiv2 <= postdiv1 > > Signed-off-by: Kevin Cernekee >

Re: [PATCH 7/9] clk: pistachio: Add a rate table for the MIPS PLL

2015-05-22 Thread Ezequiel Garcia
On 05/22/2015 02:45 PM, Andrew Bresticker wrote: > On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia > wrote: >> This commit adds a rate parameter table, which makes it possible for >> the MIPS PLL to support rate change. >> >> Signed-off-by: Govindraj Raja >> Signed-off-by: Ezequiel Garcia >>

Re: [PATCH] NVMe: Avoid interrupt disable during queue init.

2015-05-22 Thread Keith Busch
On Fri, 22 May 2015, Parav Pandit wrote: I agree to it that nvmeq won't be null after mb(); That alone is not sufficient. What I have proposed in previous email is, Converting, struct nvme_queue *nvmeq = dev->queues[i]; if (!nvmeq) continue; spin_lock_irq(nvmeq->q_lock); to replace with,

Re: [PATCH 7/9] clk: pistachio: Add a rate table for the MIPS PLL

2015-05-22 Thread Andrew Bresticker
On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia wrote: > This commit adds a rate parameter table, which makes it possible for > the MIPS PLL to support rate change. > > Signed-off-by: Govindraj Raja > Signed-off-by: Ezequiel Garcia > --- > drivers/clk/pistachio/clk-pistachio.c | 12

[PATCH] staging: comedi: comedi_isadma.h: make self-reliant

2015-05-22 Thread Ian Abbott
The Comedi "comedi_isadma.h" header is included by the source for the "comedi_isadma" helper module and other modules that use it. It does not compile cleanly when it is the first header file included. It uses the `dma_addr_t` type, so include to declare it. (Also, that indirectly takes care

Re: [RFC v1] tree-wide: remove "select FW_LOADER" uses

2015-05-22 Thread Luis R. Rodriguez
On Fri, May 22, 2015 at 1:44 AM, Takashi Iwai wrote: > At Fri, 22 May 2015 10:17:48 +0200, > Paul Bolle wrote: >> >> On Fri, 2015-05-22 at 09:11 +0200, Geert Uytterhoeven wrote: >> > On Fri, May 22, 2015 at 8:53 AM, Borislav Petkov wrote: >> > > One thing I forgot last night: what about

Re: [PATCH 6/9] clk: pistachio: Propagate rate changes in the MIPS PLL clock sub-tree

2015-05-22 Thread Andrew Bresticker
On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia wrote: > This commit passes CLK_SET_RATE_PARENT to the "mips_div", > "mips_internal_div", and "mips_pll_mux" clocks. This flag is needed for the > "mips" clock to propagate rate changes up to the "mips_pll" root clock. > > Signed-off-by: Govindraj

Re: [fuse-devel] fuse_get_context() and namespaces

2015-05-22 Thread Eric W. Biederman
Miklos Szeredi writes: > On Sat, May 2, 2015 at 5:56 PM, wrote: >> >> 3.10.0-229 form Scientific Linux and native 4.0.1-1 (from elrepo). >> SL 7.1 on the host and SL 6.6 on the LXC guest. At least in 3.10 >> the 499dcf2024092e5cce41d05599a5b51d1f92031a is present. >> Steps to reproduce: >> >>

Re: [PATCH] NVMe: Avoid interrupt disable during queue init.

2015-05-22 Thread Parav Pandit
On Fri, May 22, 2015 at 10:37 PM, Keith Busch wrote: > On Fri, 22 May 2015, Parav Pandit wrote: >> >> On Fri, May 22, 2015 at 9:53 PM, Keith Busch >> wrote: >>> >>> A memory barrier before incrementing the dev->queue_count (and assigning >>> the pointer in the array before that) should address

Re: [PATCH 2/4] perf: jevents: Program to convert JSON file to C style file

2015-05-22 Thread Jiri Olsa
On Fri, May 22, 2015 at 08:58:22AM -0700, Sukadev Bhattiprolu wrote: SNIP > | > | there's no concetion (yet) in the new build system to trigger > | another binery build as a dependency for object file.. I'd > | rather do this the framework way, please check attached patch > | > | also

[PATCH] staging: comedi: comedi_8254.h: make self-reliant

2015-05-22 Thread Ian Abbott
The Comedi "comedi_8254.h" header file is included by various Comedi drivers with timer/counters based on the 8254 chip. The drivers do not compile cleanly if this header file is included first. It uses pointers to the `struct comedi_device`, `struct comedi_subdevice`, and `struct comedi_insn`

Re: Compilers and RCU readers: Once more unto the breach!

2015-05-22 Thread Will Deacon
Hi Paul, On Thu, May 21, 2015 at 09:02:12PM +0100, Paul E. McKenney wrote: > On Thu, May 21, 2015 at 08:24:22PM +0100, Will Deacon wrote: > > On Wed, May 20, 2015 at 07:16:06PM +0100, Paul E. McKenney wrote: > > > On to #5: > > > > > > r1 = atomic_load_explicit(, memory_order_consume); > > >

Re: perf, tools: Event files for Intel x86

2015-05-22 Thread Jiri Olsa
On Fri, May 22, 2015 at 05:20:11PM +0200, Andi Kleen wrote: > > > Currently only core events are included, not uncore. > > > > hum, not sure how you guys want to handle this, but it'd be nice > > to have all the bits in one place.. Could one of you guys please > > arrange branch with all this? >

Re: [PATCH 05/15] irqchip: mips-gic: register IRQ domain with MIPS_GIC_IRQ_BASE

2015-05-22 Thread Jason Cooper
On Fri, May 22, 2015 at 04:51:04PM +0100, Paul Burton wrote: > On Malta, some IRQs are still referenced by hardcoded numbers relative > to MIPS_GIC_IRQ_BASE. When gic_init is called to register the GIC > without using device tree the irqbase argument allows this base to be > used. When the GIC is

Re: [RFC PATCH v3 32/37] perf bpf: Parse probe points of eBPF programs during preparation

2015-05-22 Thread Jiri Olsa
On Sun, May 17, 2015 at 10:56:57AM +, Wang Nan wrote: SNIP > + if (pev) > + clear_perf_probe_event(pev); > + return err; > +} > + > int bpf_prepare_load(const char *filename) > { > struct bpf_object *obj; > @@ -81,6 +150,8 @@ int bpf_prepare_load(const char

Re: [PATCH 2/4] perf: jevents: Program to convert JSON file to C style file

2015-05-22 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: | On Tue, May 19, 2015 at 05:02:08PM -0700, Sukadev Bhattiprolu wrote: | | SNIP | | > +int main(int argc, char *argv[]) | > +{ | > + int rc; | > + int flags; | | SNIP | | > + | > + rc = uname(); | > + if (rc < 0) { | > + printf("%s: uname()

Re: [RFC PATCH v3 30/37] perf bpf: Add bpf-loader and open ELF object files

2015-05-22 Thread Jiri Olsa
On Sun, May 17, 2015 at 10:56:55AM +, Wang Nan wrote: SNIP > +#define DEFINE_PRINT_FN(name, level) \ > +static int libbpf_##name(const char *fmt, ...) \ > +{\ > + va_list args; \ > + int ret;

Re: [RFC PATCH v3 09/37] bpf tools: Open eBPF object file and do basic validation

2015-05-22 Thread Jiri Olsa
On Sun, May 17, 2015 at 10:56:34AM +, Wang Nan wrote: SNIP > + obj->path); > + err = -EINVAL; > + goto errout; > + } > + ep = >elf.ehdr; > + > + if ((ep->e_type != ET_REL) || (ep->e_machine != 0)) { > +

Re: [RFC PATCH v3 28/37] perf tools: Make perf depend on libbpf

2015-05-22 Thread Jiri Olsa
On Sun, May 17, 2015 at 10:56:53AM +, Wang Nan wrote: SNIP > else >TE_PATH=$(TRACE_EVENT_DIR) >LIB_PATH=$(LIB_DIR) > + BPF_PATH=$(BPF_DIR) > endif > > LIBTRACEEVENT = $(TE_PATH)libtraceevent.a > @@ -174,6 +177,9 @@ export LIBTRACEEVENT > LIBAPI = $(LIB_PATH)libapi.a > export

Re: [RFC PATCH v3 20/37] bpf tools: Add bpf.c/h for common bpf operations

2015-05-22 Thread Jiri Olsa
On Sun, May 17, 2015 at 10:56:45AM +, Wang Nan wrote: SNIP > diff --git a/tools/lib/bpf/bpf.h b/tools/lib/bpf/bpf.h > new file mode 100644 > index 000..1e9a53b > --- /dev/null > +++ b/tools/lib/bpf/bpf.h > @@ -0,0 +1,17 @@ > +/* > + * common eBPF ELF operations. > + * > + * Copyright (C)

Re: [RFC PATCH v3 21/37] bpf tools: Create eBPF maps defined in an object file

2015-05-22 Thread Jiri Olsa
On Sun, May 17, 2015 at 10:56:46AM +, Wang Nan wrote: SNIP > + i * sizeof(struct bpf_map_def)); > + > + if (obj->needs_swap) { > + def.type= bswap_32(def.type); > + def.key_size=

Re: [RFC PATCH v3 08/37] bpf tools: Define basic interface

2015-05-22 Thread Jiri Olsa
On Mon, May 18, 2015 at 10:57:36AM -0700, Alexei Starovoitov wrote: > On 5/17/15 3:56 AM, Wang Nan wrote: > >bpf_open_object() and bpf_close_object() are open and close function of > >eBPF object files. 'struct bpf_object' will be handler of one object > >file. Its internal structure is hide to

[PATCH] vTPM: set virtual device before passing to ibmvtpm_reset_crq

2015-05-22 Thread Hon Ching(Vicky) Lo
tpm_ibmvtpm_probe() calls ibmvtpm_reset_crq(ibmvtpm) without having yet set the virtual device in the ibmvtpm structure. So in ibmvtpm_reset_crq, the phype call contains empty unit addresses, ibmvtpm->vdev->unit_address. Signed-off-by: Hon Ching(Vicky) Lo Signed-off-by: Joy Latten ---

Re: [RFC PATCH v3 09/37] bpf tools: Open eBPF object file and do basic validation

2015-05-22 Thread Jiri Olsa
On Sun, May 17, 2015 at 10:56:34AM +, Wang Nan wrote: SNIP > + > +void bpf_close_object(struct bpf_object *obj) > +{ > + if (!obj) > + return; > + > + bpf_obj_clear_elf(obj); > + > + if (obj->path) > + free(obj->path); you're safe calling free with NULL,

[PATCH] KVM: x86: preserve x2APIC LDR on INIT

2015-05-22 Thread Radim Krčmář
Logical x2APIC stops working if we rewrite it with zeros. The best references are SDM April 2015: 10.12.10.1 Logical Destination Mode in x2APIC Mode [...], the LDR are initialized by hardware based on the value of x2APIC ID upon x2APIC state transitions. and SDM April 2015: 10.12.10.2

[PATCH] cpufreq:cpufreq - Fix for two typos in two comments.

2015-05-22 Thread Shailendra Verma
Signed-off-by: Shailendra Verma --- drivers/cpufreq/cpufreq.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index 8ae655c..b4c7e0f 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -178,7

[PATCH 3/6] staging: comedi: amplc_dio200.c: reformat copyright comment

2015-05-22 Thread Ian Abbott
Reformat the copyright comment at the top of the file to use the preferred block comment style. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/amplc_dio200.c | 37 ++- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git

[PATCH 1/6] staging: comedi: amplc_dio200.h: reformat copyright comment

2015-05-22 Thread Ian Abbott
Reformat the copyright comment at the top of the file to use the preferred block comment style. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/amplc_dio200.h | 40 +-- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git

[PATCH 4/6] staging: comedi: amplc_dio200_common.c: reformat copyright comment

2015-05-22 Thread Ian Abbott
Reformat the copyright comment at the top of the file to use the preferred block comment style. Signed-off-by: Ian Abbott --- .../staging/comedi/drivers/amplc_dio200_common.c | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git

[PATCH 5/6] staging: comedi: amplc_dio200_common.c: fix up brace style

2015-05-22 Thread Ian Abbott
Use braces when the single statement following an `if` (or `else`) spans more than one line (including any preceding comments). Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/amplc_dio200_common.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git

[PATCH 6/6] staging: comedi: amplc_dio200_pci.c: reformat copyright comment

2015-05-22 Thread Ian Abbott
Reformat the copyright comment at the top of the file to use the preferred block comment style. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/amplc_dio200_pci.c | 35 --- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git

[PATCH 2/6] staging: comedi: amplc_dio200.h: make self-reliant

2015-05-22 Thread Ian Abbott
The Comedi "amplc_dio200.h" header file included by drivers for Amplicon DIO200 series cards does not compile cleanly when it is the first header included by the ".c" file. It uses `struct comedi_device *` in the parameter lists of some function prototypes, so just declare `struct comedi_device`

[PATCH 0/6] staging: comedi: amplc_dio200*: minor source cleanups

2015-05-22 Thread Ian Abbott
A few coding style cleanups for the Comedi amplc_dio200* modules, and to make the "amplc_dio200.h" header file self-reliant. 1) staging: comedi: amplc_dio200.h: reformat copyright comment 2) staging: comedi: amplc_dio200.h: make self-reliant 3) staging: comedi: amplc_dio200.c: reformat copyright

Re: [PATCH] mm: meminit: Finish initialisation of struct pages before basic setup

2015-05-22 Thread Waiman Long
On 05/22/2015 05:33 AM, Mel Gorman wrote: On Fri, May 22, 2015 at 02:30:01PM +0800, Daniel J Blueman wrote: On Thu, May 14, 2015 at 6:03 PM, Daniel J Blueman wrote: On Thu, May 14, 2015 at 12:31 AM, Mel Gorman wrote: On Wed, May 13, 2015 at 10:53:33AM -0500, nzimmer wrote: I am just

Re: [PATCH v1 0/7] perf/x86/intel/pt: Fixes and cleanups

2015-05-22 Thread Alexander Shishkin
Alexander Shishkin writes: > Hi Peter and Ingo, Hi again, I didn't notice that you've already applied the previous batch to your queue, apologies for that. The two new patches in this series are: > perf: Disallow sparse AUX allocations for non-SG PMUs in overwrite > mode and >

Re: [RFC v3 PATCH 04/10] mm/hugetlb: expose hugetlb fault mutex for use by fallocate

2015-05-22 Thread Mike Kravetz
On 05/22/2015 10:01 AM, Davidlohr Bueso wrote: On Thu, 2015-05-21 at 08:47 -0700, Mike Kravetz wrote: +/* + * Interfaces to the fault mutex routines for use by hugetlbfs + * fallocate code. Faults must be synchronized with page adds or + * deletes by fallocate. fallocate only deals with

Re: [RFC v3 PATCH 06/10] hugetlbfs: truncate_hugepages() takes a range of pages

2015-05-22 Thread Mike Kravetz
On 05/22/2015 01:08 AM, Naoya Horiguchi wrote: > On Thu, May 21, 2015 at 08:47:40AM -0700, Mike Kravetz wrote: >> Modify truncate_hugepages() to take a range of pages (start, end) >> instead of simply start. If an end value of -1 is passed, the >> current "truncate" functionality is maintained.

Re: [PATCH 5/9] clk: pistachio: Add a MUX_F macro to pass clk_flags

2015-05-22 Thread Andrew Bresticker
On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia wrote: > As preparation work to support MIPS PLL rate change propagation, this > commit adds a MUX_F macro to pass clk_flags. > > Signed-off-by: Govindraj Raja > Signed-off-by: Ezequiel Garcia > --- a/drivers/clk/pistachio/clk.h > +++

Re: [PATCH] tty: remove platform_sysrq_reset_seq

2015-05-22 Thread Dmitry Torokhov
On Thu, May 21, 2015 at 11:11:28AM +0200, Arnd Bergmann wrote: > The platform_sysrq_reset_seq code was intended as a way for an embedded > platform to provide its own sysrq sequence at compile time. After over > two years, nobody has started using it in an upstream kernel, and > the platforms that

Re: [PATCH] NVMe: Avoid interrupt disable during queue init.

2015-05-22 Thread Keith Busch
On Fri, 22 May 2015, Parav Pandit wrote: On Fri, May 22, 2015 at 9:53 PM, Keith Busch wrote: A memory barrier before incrementing the dev->queue_count (and assigning the pointer in the array before that) should address this concern. Sure. mb() will solve the publisher side problem. RCU is

Re: [PATCH 4/9] clk: pistachio: Extend DIV_F to pass clk_flags as well

2015-05-22 Thread Andrew Bresticker
On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia wrote: > As preparation work to support MIPS PLL rate change propagation, this > commit extends the DIV_F macro to pass clk_flags in addition to div_flags. > > Signed-off-by: Govindraj Raja > Signed-off-by: Ezequiel Garcia Reviewed-by: Andrew

Re: [PATCH v6 1/6] arm64: Add HAVE_REGS_AND_STACK_ACCESS_API feature

2015-05-22 Thread David Long
On 05/21/15 13:55, Catalin Marinas wrote: On Wed, May 20, 2015 at 11:29:24PM -0400, David Long wrote: On 05/20/15 09:39, Catalin Marinas wrote: On Mon, Apr 20, 2015 at 04:19:42PM -0400, David Long wrote: diff --git a/arch/arm64/include/uapi/asm/ptrace.h b/arch/arm64/include/uapi/asm/ptrace.h

Re: [PATCH 3/9] clk: pistachio: Implement PLL rate adjustment

2015-05-22 Thread Andrew Bresticker
On Thu, May 21, 2015 at 4:57 PM, Ezequiel Garcia wrote: > This commit implements small rate changes to the fractional PLL. > This is done using the PLL frac parameter. The .set_rate function > first finds the parameters associated to the closest nominal rate. > > Then the new rate is set, using

Re: [RFC v3 PATCH 04/10] mm/hugetlb: expose hugetlb fault mutex for use by fallocate

2015-05-22 Thread Davidlohr Bueso
On Thu, 2015-05-21 at 08:47 -0700, Mike Kravetz wrote: > +/* > + * Interfaces to the fault mutex routines for use by hugetlbfs > + * fallocate code. Faults must be synchronized with page adds or > + * deletes by fallocate. fallocate only deals with shared mappings. > + */ > +u32

RE: [PATCH 7/7] mips: pistachio: Allow to enable the external timer based clocksource

2015-05-22 Thread James Hartley
> -Original Message- > From: abres...@google.com [mailto:abres...@google.com] On Behalf Of > Andrew Bresticker > Sent: 22 May 2015 17:50 > To: Ezequiel Garcia > Cc: linux-kernel@vger.kernel.org; Linux-MIPS; Daniel Lezcano; > devicet...@vger.kernel.org; James Hartley; James Hogan; Thomas

Re: [PATCH v6 3/6] arm64: Kprobes with single stepping support

2015-05-22 Thread David Long
On 05/22/15 12:54, Catalin Marinas wrote: On Fri, May 22, 2015 at 11:49:37AM -0400, William Cohen wrote: On 05/22/2015 07:00 AM, Catalin Marinas wrote: Any plans to post an updated version with the "unexpected single-step error" fixed? The only place this issue with the "unexpected

Re: [PATCH 3/7] clocksource: mips-gic: Split clocksource and clockevent initialization

2015-05-22 Thread Andrew Bresticker
On Thu, May 21, 2015 at 3:25 PM, Ezequiel Garcia wrote: > > > On 05/21/2015 07:24 PM, Andrew Bresticker wrote: >> On Thu, May 21, 2015 at 2:37 PM, Ezequiel Garcia >> wrote: >>> This is preparation work for the introduction of clockevent frequency >>> update with a clock notifier. This is only

Re: [PATCH v6 3/6] arm64: Kprobes with single stepping support

2015-05-22 Thread Catalin Marinas
On Fri, May 22, 2015 at 11:49:37AM -0400, William Cohen wrote: > On 05/22/2015 07:00 AM, Catalin Marinas wrote: > > Any plans to post an updated version with the "unexpected single-step > > error" fixed? > > The only place this issue with the "unexpected single-step error" has > been observed is

Re: [RFC v3 PATCH 04/10] mm/hugetlb: expose hugetlb fault mutex for use by fallocate

2015-05-22 Thread Mike Kravetz
On 05/21/2015 11:23 PM, Naoya Horiguchi wrote: > On Thu, May 21, 2015 at 08:47:38AM -0700, Mike Kravetz wrote: >> hugetlb page faults are currently synchronized by the table of >> mutexes (htlb_fault_mutex_table). fallocate code will need to >> synchronize with the page fault code when it

Re: Crash in crc32_le during kmemleak_scan()

2015-05-22 Thread Catalin Marinas
Hi Vignesh, Thanks for testing this. On Thu, May 21, 2015 at 06:45:17AM +0100, vigne...@codeaurora.org wrote: > diff --git a/mm/kmemleak.c b/mm/kmemleak.c > index 5ec8b71..4455bb8 100644 > --- a/mm/kmemleak.c > +++ b/mm/kmemleak.c > @@ -959,7 +959,7 @@ void __ref kmemleak_free(const void *ptr) >

Re: [PATCH 7/7] mips: pistachio: Allow to enable the external timer based clocksource

2015-05-22 Thread Andrew Bresticker
On Thu, May 21, 2015 at 2:43 PM, Ezequiel Garcia wrote: > This commit introduces a new config, so the user can choose to enable > the General Purpose Timer based clocksource. This option is required > to have CPUFreq support. > > Signed-off-by: Ezequiel Garcia > --- > arch/mips/Kconfig

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