[PATCH 23/42] md/raid: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has md use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/md/bitmap.c | 2 +- drivers/md/dm-raid.c | 5 +++-- drivers/md/md.c | 11 +

[PATCH 10/12] MIPS: mm: Be more explicit about PTE mode bit handling

2016-04-15 Thread Paul Burton
The XPA case in iPTE_SW or's in software mode bits to the pte_low value (which is what actually ends up in the high 32 bits of EntryLo...). It does this presuming that only bits in the upper 16 bits of the 32 bit pte_low value will be set. Make this assumption explicit with a BUG_ON. A similar ass

[PATCH 16/42] nilfs: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has nilfs use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- fs/nilfs2/segbuf.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff

[PATCH 04/42] fs: have submit_bh users pass in op and flags separately

2016-04-15 Thread mchristi
From: Mike Christie This has submit_bh users pass in the operation and flags separately, so submit_bh_wbc can setup bio->bi_op and bio-bi_rw on the bio that is submitted. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/md/bitmap.c

[PATCH 29/42] block: prepare elevator to use REQ_OPs.

2016-04-15 Thread mchristi
From: Mike Christie This patch converts the elevator code to use separate variables for the operation and flags, and to check request->op for the REQ_OP. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- block/blk-core.c | 2 +- block/cfq-io

[PATCH 36/42] ide cd: do not set REQ_WRITE on requests.

2016-04-15 Thread mchristi
From: Mike Christie The block layer will set the correct READ/WRITE operation flags/fields when creating a request, so there is not need for drivers to set the REQ_WRITE flag. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/ide/ide-cd_ioct

Re: [PATCH 00/10] perf tools: Use SIGUSR2 control data dumpping

2016-04-15 Thread Jiri Olsa
On Wed, Apr 13, 2016 at 08:21:03AM +, Wang Nan wrote: > This patch set is a preparation to support overwritable ring buffer. > However, even without the kernel side core patch [1] is accept this > patch set is still useful. > > With this patch set, perf switches output when receiving SIGUSR2.

[PATCH 42/42] block, drivers, fs: rename REQ_FLUSH to REQ_PREFLUSH

2016-04-15 Thread mchristi
From: Mike Christie To avoid confusion between REQ_OP_FLUSH, which is handled by request_fn drivers, and upper layers requesting the block layer perform a flush sequence along with possibly a WRITE, this patch renames REQ_FLUSH to REQ_PREFLUSH. Signed-off-by: Mike Christie Reviewed-by: Christop

[PATCH 39/42] block: shrink bio/request fields

2016-04-15 Thread mchristi
From: Mike Christie bi_op only needed to be a int for temp compat reasons, so this patch shrinks it to u8. There is no need for bi_rw to be so large now, so that is reduced to a unsigned int and bi_ioprio is just put in its own field. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig

Re: [PATCH] staging: fsl-mc: bus: Drop warning

2016-04-15 Thread Matthias Brugger
On 15/04/16 00:57, Stuart Yoder wrote: -Original Message- From: Matthias Brugger [mailto:mbrug...@suse.com] Sent: Thursday, April 14, 2016 4:24 PM To: german.riv...@freescale.com; gre...@linuxfoundation.org Cc: Stuart Yoder ; Scott Wood ; ag...@suse.de; linux- ker...@vger.kernel.org

[PATCH 40/42] block, drivers: add REQ_OP_FLUSH operation

2016-04-15 Thread mchristi
From: Mike Christie This adds a REQ_OP_FLUSH operation that is sent to request_fn based drivers by the block layer's flush code, instead of sending requests with the request->cmd_flags REQ_FLUSH bit set. For the following 3 flush related patches, I have not tested every driver. I have only teste

[PATCH 41/42] block: do not use REQ_FLUSH for tracking flush support

2016-04-15 Thread mchristi
From: Mike Christie The last patch added a REQ_OP_FLUSH for request_fn drivers and the next patch renames REQ_FLUSH to REQ_PREFLUSH which will be used by file systems and make_request_fn drivers so they can send a write/flush combo. This patch drops xen's use of REQ_FLUSH to track if it supports

[PATCH 38/42] block, fs: remove old REQ definitions.

2016-04-15 Thread mchristi
From: Mike Christie We no longer use REQ_WRITE. REQ_WRITE_SAME and REQ_DISCARD, so this patch removes them. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- include/linux/blk_types.h | 21 ++--- include/linux/fs.h | 21 ++

[PATCH 35/42] blktrace: get op from req->op/bio->bi_op

2016-04-15 Thread mchristi
From: Mike Christie The bio and request structs now store the operation in bio->bi_op/request->op. This patch has blktrace use that field instead of bi_rw/cmd_flags. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- include/linux/blktrace_api.h |

Re: [PATCH 00/10] perf tools: Use SIGUSR2 control data dumpping

2016-04-15 Thread Wangnan (F)
On 2016/4/15 18:40, Jiri Olsa wrote: On Wed, Apr 13, 2016 at 08:21:03AM +, Wang Nan wrote: This patch set is a preparation to support overwritable ring buffer. However, even without the kernel side core patch [1] is accept this patch set is still useful. With this patch set, perf switches

[PATCH 1/3] [RFC] Save dump_root into pid_namespace

2016-04-15 Thread Zhao Lei
In current system, when we set core_pattern to a pipe, both pipe program and program's output are in host's filesystem. But when we set core_pattern to a file, the container will write dump into container's filesystem. Reason of above different is: In pipe_mode dump_pattern setting, the process wh

[PATCH 0/3] [RFC] Write dump into container's filesystem for pipe_type core_pattern

2016-04-15 Thread Zhao Lei
In current system, when we set core_pattern to a pipe, both pipe program and program's output are in host's filesystem. But when we set core_pattern to a file, the container will write dump into container's filesystem. For example, when we set following core_pattern: # echo "|/my_dump_pipe %s %c

[PATCH 2/3] [RFC] Make dump_pipe thread possilbe to select the rootfs

2016-04-15 Thread Zhao Lei
To make the dump_pipe thread run in container's filesystem, we need to make it possible to select its fs_root from fork. Then the dump_pipe thread will exec user_defined pipe program in container's fs_root, and the problem will also write dumpdata into the same fs_root. Signed-off-by: Zhao Lei -

[PATCH 37/42] block, fs, drivers: do use bi_rw/cmd_flags for REQ_OPs.

2016-04-15 Thread mchristi
From: Mike Christie We no longer use the bio->bi_rw and request->cmd_flags field for REQ_OPs: REQ_WRITE, REQ_DISCARD, REQ_WRITE_SAME, so this patch stops checking for them in bi_rw/cmd_flags and also removes the related compat code. v2: 1. Remove compat code in __get_request. Signed-off-by: Mi

Re: [PATCH 41/42] block: do not use REQ_FLUSH for tracking flush support

2016-04-15 Thread Juergen Gross
On 15/04/16 12:40, mchri...@redhat.com wrote: > From: Mike Christie > > The last patch added a REQ_OP_FLUSH for request_fn drivers > and the next patch renames REQ_FLUSH to REQ_PREFLUSH which > will be used by file systems and make_request_fn drivers so > they can send a write/flush combo. > > T

[PATCH] ARM: uniphier: correct the call order of of_node_put()

2016-04-15 Thread Masahiro Yamada
Put nodes after of_address_to_resource() in case the nodes might be released while parsing in them. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/platsmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-uniphier/platsmp.c b/arch/arm/mach-uniphi

[PATCH 3/3] [RFC] Write dump into container's filesystem for pipe_type core_pattern

2016-04-15 Thread Zhao Lei
In current system, when we set core_pattern to a pipe, both pipe program and program's output are in host's filesystem. But when we set core_pattern to a file, the container will write dump into container's filesystem. For example, when we set following core_pattern: # echo "|/my_dump_pipe %s %c

[PATCH 34/42] drivers: set request op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has the block drivers use the request->op for REQ_OP operations and cmd_flags for rq_flag_bits. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/block/loop.c | 6 +++--- drivers/block/mtip32xx/mt

[PATCH 30/42] blkg_rwstat: separate op from flags

2016-04-15 Thread mchristi
From: Mike Christie The bio and request operation and flags are going to be separate definitions, so we cannot pass them in as a bitmap. This patch converts the blkg_rwstat code and its caller, cfq, to pass in the values separately. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig R

Re: [PATCH v4 2/7] dt-bindings: Add bindings for phy-da8xx-usb

2016-04-15 Thread Sergei Shtylyov
Hello. On 4/14/2016 9:35 PM, David Lechner wrote: Device tree binding for new phy-da8xx-usb driver. Signed-off-by: David Lechner Acked-by: Rob Herring --- v4 changes: * swapped order of usb20 and usb11 to be in logical order of reg address. .../devicetree/bindings/phy/phy-da8xx-usb.txt

[PATCH] block: loop: fix filesystem corruption in case of aio/dio

2016-04-15 Thread Ming Lei
Starting from commit e36f620428(block: split bios to max possible length), block core starts to split bio in the middle of bvec. Unfortunately loop dio/aio doesn't consider this situation, and always treat 'iter.iov_offset' as zero. Then filesystem corruption is observed. This patch figures out t

[PATCH 33/42] block: convert rq_data_dir helper to use REQ_OPs

2016-04-15 Thread mchristi
From: Mike Christie The request->op field is now always setup up with a REQ_OP. This patch has the rq_data_dir helper convert the operation to a WRITE or READ direction based on that. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- include/linux/b

Re: [PATCH 02/10] perf tools: Add perf_data_file__switch() helper

2016-04-15 Thread Jiri Olsa
On Wed, Apr 13, 2016 at 08:21:05AM +, Wang Nan wrote: > perf_data_file__switch() closes current output file, renames it, then > open a new one to continue recording. It will be used by perf record > to split output into multiple perf.data files. > > Signed-off-by: Wang Nan > Signed-off-by: He

[PATCH 32/42] block: convert is_sync helpers to use REQ_OPs.

2016-04-15 Thread mchristi
From: Mike Christie This patch converts the is_sync helpers to use separate variables for the operation and flags. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- block/blk-core.c | 6 +++--- block/blk-mq.c | 8 block/cfq-io

Re: [PATCH v6 00/17] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms

2016-04-15 Thread Roger Quadros
On 15/04/16 13:09, Boris Brezillon wrote: > Hi Roger, > > On Fri, 15 Apr 2016 12:34:04 +0300 > Roger Quadros wrote: > >> Tony & Boris, >> >> On 14/04/16 00:25, Tony Lindgren wrote: >>> * Roger Quadros [160407 03:10]: Hi, As this series has cross dependency between omap and mtd su

Re: [PATCH v6 07/12] usb: otg: add OTG/dual-role core

2016-04-15 Thread Roger Quadros
On 15/04/16 12:59, Yoshihiro Shimoda wrote: > Hi, > >> From: Roger Quadros >> Sent: Thursday, April 14, 2016 8:32 PM >> >> On 14/04/16 14:15, Yoshihiro Shimoda wrote: >>> Hi, >>> > < snip > > @@ -865,7 +867,8 @@ int usb_otg_register_hcd(struct usb_hcd *hcd, > unsigned int irqnum, >

Re: ping Re: [PATCH] perf script: Add stackcollapse.py script

2016-04-15 Thread Jiri Olsa
On Fri, Apr 15, 2016 at 07:20:48AM +0200, Paolo Bonzini wrote: > On 12/04/2016 15:26, Paolo Bonzini wrote: > > Add stackcollapse.py script as an example of parsing call chains, and > > also of using optparse to access command line options. > > > > The flame graph tools include a set of scripts tha

[PATCH 31/42] block: convert merge/insert code to check for REQ_OPs.

2016-04-15 Thread mchristi
From: Mike Christie This patch converts the block layer merging code to use separate variables for the operation and flags, and to check request->op for the REQ_OP. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- block/blk-core.c | 2 +- bl

[PATCH 26/42] block: copy bio op to request op

2016-04-15 Thread mchristi
From: Mike Christie The bio users should now always be setting up the bio->bi_op. This patch has us copy that to the struct request op field. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- block/blk-core.c | 2 ++ 1 file changed, 2 insertions(+)

[PATCH 28/42] block: prepare mq request creation to use REQ_OPs

2016-04-15 Thread mchristi
From: Mike Christie This patch modifies the blk mq request creation code to use separate variables for the operation and flags, because in the the next patches the struct request users will be converted like was done for bios. request->op will be used for the REQ_OP and request->cmd_flags for the

Re: [PATCH v6 07/12] usb: otg: add OTG/dual-role core

2016-04-15 Thread Roger Quadros
On 15/04/16 12:25, Peter Chen wrote: > On Tue, Apr 05, 2016 at 05:05:12PM +0300, Roger Quadros wrote: >> + * usb_otg_register() - Register the OTG/dual-role device to OTG core >> + * @dev: OTG/dual-role controller device. >> + * @config: OTG configuration. >> + * >> + * Registers the OTG/dual-role

[PATCH 27/42] block: prepare request creation/destruction code to use REQ_OPs

2016-04-15 Thread mchristi
From: Mike Christie This patch prepares *_get_request/*_put_request and freed_request, to use separate variables for the operation and flags. In the next patches the struct request users will be converted like was done for bios. request->op will be used for the REQ_OP and request->cmd_flags for t

Re: [PATCH] mmc: reduce nesting and join error strings into one line

2016-04-15 Thread Ulf Hansson
On 15 April 2016 at 12:14, Masahiro Yamada wrote: > 2016-04-15 18:36 GMT+09:00 Ulf Hansson : >> On 15 April 2016 at 11:30, Masahiro Yamada >> wrote: >>> 2016-04-15 18:26 GMT+09:00 Ulf Hansson : On 15 April 2016 at 11:01, Masahiro Yamada wrote: > Hi Ulf, > > No interest in t

[PATCH] powerpc/dts: fix rcpm compatible string

2016-04-15 Thread Chenhui Zhao
For T1040, T1042, T1023, and T1024, they should use the compatible string "fsl,qoriq-rcpm-2.1". Signed-off-by: Chenhui Zhao --- arch/powerpc/boot/dts/fsl/t1023si-post.dtsi | 2 +- arch/powerpc/boot/dts/fsl/t1040si-post.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/a

[PATCH 22/42] drbd: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has drbd use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Lars and Philip, I might have split this patch up a little weird. The block layer has compat so you can set either bi_rw or bi_op. This patch handles setting up the bio in drbd. I then converted al

[PATCH 25/42] target: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has the target modules use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke Acked-by: Nicholas Bellinger --- drivers/target/target_core_iblock.c | 30 +++

[PATCH 24/42] xen: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has the xen block driver use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/block/xen-blkback/blkback.c | 29 + 1 file chang

[PATCH v2] mm/vmalloc: Keep a separate lazy-free list

2016-04-15 Thread Chris Wilson
When mixing lots of vmallocs and set_memory_*() (which calls vm_unmap_aliases()) I encountered situations where the performance degraded severely due to the walking of the entire vmap_area list each invocation. One simple improvement is to add the lazily freed vmap_area to a separate lockless free

[PATCH 20/42] dm: pass dm stats data dir instead of bi_rw

2016-04-15 Thread mchristi
From: Mike Christie It looks like dm stats cares about the data direction (READ vs WRITE) and does not need the bio/request flags. Commands like REQ_FLUSH, REQ_DISCARD and REQ_WRITE_SAME are currently always set with REQ_WRITE, so the extra check for REQ_DISCARD in dm_stats_account_io is not need

Re: ping Re: [PATCH] perf script: Add stackcollapse.py script

2016-04-15 Thread Paolo Bonzini
On 15/04/2016 12:57, Jiri Olsa wrote: >>> > > +# Input may be created and processed using: >>> > > +# >>> > > +# perf record -a -g -F 99 sleep 60 >>> > > +# perf script report stackcollapse > out.stacks-folded >>> > > +# >>> > > +# (perf script record stackcollapse works too). > IIRC Namhyung a

[PATCH 21/42] bcache: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has bcache use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/md/bcache/btree.c | 2 ++ drivers/md/bcache/debug.c | 2 ++ drivers/md/bcache/io

[PATCH 12/42] gfs2: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has gfs2 use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- fs/gfs2/log.c| 8 fs/gfs2/lops.c | 12 +++- fs/gfs2/lops.h |

[PATCH 11/42] f2fs: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has f2fs use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- fs/f2fs/checkpoint.c| 10 ++ fs/f2fs/data.c | 33 --

Re: [PATCH 7/7] pinctrl: tegra: Add driver to configure voltage and power state of io pads

2016-04-15 Thread Linus Walleij
On Fri, Apr 15, 2016 at 11:55 AM, Laxman Dewangan wrote: > On Friday 15 April 2016 02:55 PM, Linus Walleij wrote: >> If the pin could actually set a voltage level it would have a regulator. >> I don't believe that. I think it is selecting one of two rails which >> could theoretically hold two tot

[PATCH 18/42] pm: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has the pm code use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- kernel/power/swap.c | 31 +++ 1 file changed, 19 insertions(+), 1

Re: [PATCH] mm/vmalloc: Keep a separate lazy-free list

2016-04-15 Thread Chris Wilson
On Thu, Apr 14, 2016 at 04:44:48PM +0200, Roman Peniaev wrote: > On Thu, Apr 14, 2016 at 3:49 PM, Chris Wilson > wrote: > > On Thu, Apr 14, 2016 at 03:13:26PM +0200, Roman Peniaev wrote: > >> Hi, Chris. > >> > >> Is it made on purpose not to drop VM_LAZY_FREE flag in > >> __purge_vmap_area_lazy()

[PATCH 09/42] btrfs: update __btrfs_map_block for bi_op transition

2016-04-15 Thread mchristi
From: Mike Christie We no longer pass in a bitmap of rq_flag_bits bits to __btrfs_map_block. It will always be a REQ_OP, or the btrfs specific REQ_GET_READ_MIRRORS, so this drops the bit tests. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- fs/bt

[PATCH 10/42] btrfs: use bio fields for op and flags

2016-04-15 Thread mchristi
From: Mike Christie The bio bi_op and bi_rw is now setup, so there is no need to pass around the rq_flag_bits bits too. btrfs users should should access the bio. v2: 1. Fix merge_bio issue where instead of removing rw/op argument I passed it in again to the merge_bio related functions. Signed-

[PATCH 13/42] xfs: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has xfs use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke Acked-by: Dave Chinner --- fs/xfs/xfs_aops.c | 3 +-- fs/xfs/xfs_buf.c | 27 +++--

[PATCH 17/42] ocfs2: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has ocfs2 use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- fs/ocfs2/cluster/heartbeat.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) dif

[PATCH 15/42] mpage: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has mpage.c use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- fs/mpage.c | 41 + 1 file changed, 21 insertions(+), 20 d

Re: [PATCH v6 00/17] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms

2016-04-15 Thread Boris Brezillon
On Fri, 15 Apr 2016 13:54:34 +0300 Roger Quadros wrote: > On 15/04/16 13:09, Boris Brezillon wrote: > > Hi Roger, > > > > On Fri, 15 Apr 2016 12:34:04 +0300 > > Roger Quadros wrote: > > > >> Tony & Boris, > >> > >> On 14/04/16 00:25, Tony Lindgren wrote: > >>> * Roger Quadros [160407 03:10]:

[PATCH 14/42] hfsplus: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has hfsplus use bio->bi_op for REQ_OPs and rq_flag_bits to bio->bi_rw. Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- fs/hfsplus/hfsplus_fs.h | 2 +- fs/hfsplus/part_tbl.c | 5 +++-- fs/hfsplus/super.c | 6

[PATCH 11/12] MIPS: mm: Simplify build_update_entries

2016-04-15 Thread Paul Burton
We can simplify build_update_entries by unifying the code for the 36 bit physical addressing with MIPS32 case with the general case, by using pte_off_ variables in all cases & handling the trivial _PAGE_GLOBAL_SHIFT == 0 case in build_convert_pte_to_entrylo. This leaves XPA as the only special case

[PATCH 12/12] MIPS: mm: Don't do MTHC0 if XPA not present

2016-04-15 Thread Paul Burton
From: James Hogan Performing an MTHC0 instruction without XPA being present will trigger a reserved instruction exception, therefore conditionalise the use of this instruction when building TLB handlers (build_update_entries()), and in __update_tlb(). This allows an XPA kernel to run on non XPA

[PATCH 06/42] direct-io: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has the dio code set the bio bi_op to a REQ_OP and bio op_flags to rq_flag_bits. It also begins to convert btrfs's dio_submit_t because of the dio submit_io callout use. In the btrfs_submit_direct change, I OR'd the op and flag back together. It is only temporary.

[PATCH 00/42] v6: separate operations from flags in the bio/request structs

2016-04-15 Thread mchristi
point, we abused them so much we just made cmd_flags 64 bits, so we could add more. The following patches seperate the operation (read, write discard, flush, etc) from cmd_flags/bi_rw. This patchset was made against linux-next from today April 15 (git tag next-20160415). I put a git tree here:

[PATCH 07/42] btrfs: have submit_one_bio users setup bio bi_op

2016-04-15 Thread mchristi
From: Mike Christie This patch has btrfs's submit_one_bio callers set the bio->bi_op to a REQ_OP and the bi_rw to rq_flag_bits. The next patches will continue to convert btrfs, so submit_bio_hook and merge_bio_hook related code will be modified to take only the bio. I did not do it in this patch

[PATCH] mmc: drop unnecessary bit checking

2016-04-15 Thread Masahiro Yamada
This if-block is going to call mmc_card_set_blockaddr(), so mmc_card_blockaddr() right before it is redundant. I am fixing the block comment style while I am here. Signed-off-by: Masahiro Yamada --- drivers/mmc/core/mmc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a

[PATCH 01/42] block/fs/drivers: remove rw argument from submit_bio

2016-04-15 Thread mchristi
From: Mike Christie This has callers of submit_bio/submit_bio_wait set the bio->bi_rw instead of passing it in. This makes that use the same as generic_make_request and how we set the other bio fields. v5: 1. Missed crypto fs submit_bio_wait call. v2: 1. Set bi_rw instead of ORing it. For clon

[PATCH 03/42] block, fs, mm, drivers: set bi_op to REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch converts the simple bi_rw use cases in the block, drivers, mm and fs code to set the bio->bi_op to a REQ_OP. These should be simple one liner cases, so I just did them in one patch. The next patches handle the more complicated cases in a module per patch. v5: 1. A

[PATCH 02/42] block: add REQ_OP definitions and bi_op/op fields

2016-04-15 Thread mchristi
From: Mike Christie The following patches separate the operation (write, read, discard, etc) from the rq_flag_bits flags. This patch adds definitions for request/bio operations, adds fields to the request/bio to set them, and some temporary compat code so the kernel/modules can use either one. In

[PATCH 08/42] btrfs: set bi_op tp REQ_OP

2016-04-15 Thread mchristi
From: Mike Christie This patch has btrfs use the bio bi_op for REQ_OP and bi_rw for rq_flag_bits. v5: - Misset bi_rw to REQ_OP_WRITE in finish_parity_scrub Signed-off-by: Mike Christie Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- fs/btrfs/check-integrity.c | 19 +-

Re: [PATCH 0/5] Live patching for powerpc

2016-04-15 Thread Michael Ellerman
On Thu, 2016-04-14 at 11:41 -0500, Josh Poimboeuf wrote: > On Thu, Apr 14, 2016 at 05:20:29PM +0200, Torsten Duwe wrote: > > On Thu, Apr 14, 2016 at 11:08:02PM +1000, Michael Ellerman wrote: > > > On Thu, 2016-04-14 at 14:57 +0200, Torsten Duwe wrote: > > > > FTR: then I still have a few ppc64 hunk

Re: [PATCH v6 01/24] i2c-mux: add common data for every i2c-mux instance

2016-04-15 Thread Wolfram Sang
> > I'd suggest to rename 'adapters' into 'num_adapters' throughout this > > patch. I think it makes the code a lot easier to understand. > > Hmm, you mean just the variable names, right? And not function names > such as i2c_mux_reserve_(num_)adapters? Yes, only variable names. > > Despite that

[PATCH v3 1/2] spi: pic32-sqi: add binding document for PIC32 Quad-SPI driver.

2016-04-15 Thread Purna Chandra Mandal
Document Device tree bindings for the quad SPI peripheral found on Microchip PIC32 class devices. Signed-off-by: Purna Chandra Mandal Acked-by: Rob Herring Cc: Kumar Gala Cc: Ian Campbell Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Mark Brown --- Changes in v3: - update exmaple,

[PATCH v3 2/2] spi: pic32-sqi: add SPI driver for PIC32 SQI controller.

2016-04-15 Thread Purna Chandra Mandal
This driver implements SPI master interface for Quad SPI controller, specifically for accessing quad SPI flash. It uses descriptor-based DMA transfer mode and supports half-duplex communication for single, dual and quad SPI transactions. Signed-off-by: Purna Chandra Mandal Cc: Mark Brown --- C

Re: [PATCH] arm64: Reduce verbosity on SMP CPU stop

2016-04-15 Thread Will Deacon
On Fri, Apr 15, 2016 at 12:24:36PM +0200, Jan Glauber wrote: > When CPUs are stopped during an abnormal operation like panic > for each CPU a line is printed and the stack trace is dumped. > > This information is only interesting for the aborting CPU > and on systems with many CPUs it only makes i

Re: [RFC PATCH] fs: define a string representation of the kernel_read_file_id enumeration

2016-04-15 Thread Mimi Zohar
On Thu, 2016-04-14 at 15:46 -0700, Kees Cook wrote: > On Thu, Apr 14, 2016 at 1:49 PM, Mimi Zohar wrote: > > (This patch is being posted as an RFC and has not been compiled.) > > > > A string representation of the kernel_read_file_id enumeration is needed > > for displaying messages (eg. pr_info,

Re: [PATCH 00/10] perf tools: Use SIGUSR2 control data dumpping

2016-04-15 Thread Wangnan (F)
On 2016/4/15 18:45, Wangnan (F) wrote: On 2016/4/15 18:40, Jiri Olsa wrote: On Wed, Apr 13, 2016 at 08:21:03AM +, Wang Nan wrote: [SNIP] I did not get 3/10 patch and the patchset did not apply cleanly, git am failed.. would you have it in a branch somewhere? Sorry, you are not in t

[PATCH 2/2] ARM: realview: update defconfig to match new subsystem

2016-04-15 Thread Linus Walleij
Update the RealView defconfig to match the move of the character LCD to the auxdisplay subsystem. Cc: Arnd Bergmann Cc: Robin van der Gracht Cc: Sudip Mukherjee Cc: Paulo Marques Cc: Miguel Ojeda Sandonis Signed-off-by: Linus Walleij --- arch/arm/configs/realview_defconfig | 3 ++- 1 file c

[PATCH 1/2] auxdisplay: move the ARM LCD driver into auxdisplay

2016-04-15 Thread Linus Walleij
This driver most definately belongs in this subsystem. It is a simple hardware block wrapping the Hitachi HD44780 LCD into a system peripheral, and if there is ever going to be shared code amongst LCD drivers, it will happen in this subsystem, so move it. Cc: Arnd Bergmann Cc: Robin van der Grach

Re: [RFC 1/8] dma-buf/fence: add fence_collection fences

2016-04-15 Thread Daniel Vetter
On Fri, Apr 15, 2016 at 11:03 AM, Christian König wrote: > Might be that how amdgpu uses the fence context and sequence number is a bit > questionable, but this will completely break it. You mean it tries to qualesce fences in the same context down to just the last one? That's how it's supposed t

Re: [PATCH v6 00/17] memory: omap-gpmc: mtd: nand: Support GPMC NAND on non-OMAP platforms

2016-04-15 Thread Boris Brezillon
Roger, Tony, On Fri, 15 Apr 2016 13:54:34 +0300 Roger Quadros wrote: > On 15/04/16 13:09, Boris Brezillon wrote: > > Hi Roger, > > > > On Fri, 15 Apr 2016 12:34:04 +0300 > > Roger Quadros wrote: > > > >> Tony & Boris, > >> > >> On 14/04/16 00:25, Tony Lindgren wrote: > >>> * Roger Quadros [1

Re: [PATCH v2] mm/vmalloc: Keep a separate lazy-free list

2016-04-15 Thread Roman Peniaev
On Fri, Apr 15, 2016 at 1:07 PM, Chris Wilson wrote: > When mixing lots of vmallocs and set_memory_*() (which calls > vm_unmap_aliases()) I encountered situations where the performance > degraded severely due to the walking of the entire vmap_area list each > invocation. One simple improvement is

Re: [PATCH v5 1/4] leds: core: add generic support for RGB Color LED's

2016-04-15 Thread Pavel Machek
Hi! > >>How about implementing patterns as a specific typer of triggers? > >>Let's say we have ledtrig-rgb-pattern: > > > >Well, we'd need ledtrig-rgb-pattern-1, ledtrig-rgb-pattern-2, ... , as we > >can have more than one rgb led. But yes. > > Triggers can have many listeners, i.e. led_trigger_e

[PATCH v2 1/1] powerpc/86xx: Set the right interrupt-cells for pcie nodes

2016-04-15 Thread Alessio Igor Bogani
Commit 595207b93fe4 ("powerpc/86xx: Update device tree") removes wrongly #interrupt-cells from pcie nodes. Fix it letting these come back to the right place. Signed-off-by: Alessio Igor Bogani --- v1 -> v2 Move #interrupt-cells on the pcie child-node to avoid 'of_irq_parse_pci() failed with

Re: [PATCH 7/7] pinctrl: tegra: Add driver to configure voltage and power state of io pads

2016-04-15 Thread Laxman Dewangan
On Friday 15 April 2016 04:45 PM, Linus Walleij wrote: On Fri, Apr 15, 2016 at 11:55 AM, Laxman Dewangan wrote: On Friday 15 April 2016 02:55 PM, Linus Walleij wrote: If the pin could actually set a voltage level it would have a regulator. I don't believe that. I think it is selecting one of

Re: [RESEND PATCH v4] clk/axs10x: Add I2S PLL clock driver

2016-04-15 Thread Alexey Brodkin
Hi Stephen, On Mon, 2016-04-11 at 15:03 -0700, sb...@codeaurora.org wrote: > On 04/11, Alexey Brodkin wrote: > > > > On Mon, 2016-04-11 at 11:41 +0100, Jose Abreu wrote: > > > > > > + * warranty of any kind, whether express or implied. > > > + */ > > > + > > > +#include > > > +#include > > > +

Re: [PATCHv2] x86/vdso: add mremap hook to vm_special_mapping

2016-04-15 Thread Dmitry Safonov
On 04/15/2016 12:51 PM, Dmitry Safonov wrote: On 04/15/2016 12:18 PM, Ingo Molnar wrote: * Andy Lutomirski wrote: Instead of ifdef, use the (grossly misnamed) is_ia32_task() helper for this, please. Please also let's do the rename. Does `is_32bit_syscall` sounds right, or shall it be `is_32b

Re: [PATCH 2/2] net-ath9k_htc: Replace a variable initialisation by an assignment in ath9k_htc_set_channel()

2016-04-15 Thread Kalle Valo
Julian Calaby writes: > Hi Kalle, > > On Sat, Jan 2, 2016 at 5:25 AM, SF Markus Elfring > wrote: >> From: Markus Elfring >> Date: Fri, 1 Jan 2016 19:09:32 +0100 >> >> Replace an explicit initialisation for one local variable at the beginning >> by a conditional assignment. >> >> Signed-off-by:

Re: [PATCH v5 2/2] i2c: rk3x: add i2c support for rk3399 soc

2016-04-15 Thread David.Wu
Hi Wolfram, 在 2016/4/15 2:48, Wolfram Sang 写道: + - input-clk-rate : frequency rate of function clock used(in Hz). If omitted, + the default clock rate is used. It is just used at rk3399 soc. Why is this needed? Why don't we simply use the default or calculate the best value somehow? The d

[PATCH] spi: dln2: Pass of_node to spi master

2016-04-15 Thread Crestez Dan Leonard
This allows defining SPI devices connected to a DLN2 using devicetree. This already works for i2c because of a similar patch: 3b10db23: i2c: dln2: set the device tree node of the adapter Signed-off-by: Crestez Dan Leonard --- drivers/spi/spi-dln2.c | 3 +++ 1 file changed, 3 insertions(+) diff

Re: [PATCH v5 2/2] i2c: rk3x: add i2c support for rk3399 soc

2016-04-15 Thread David.Wu
Hi Heiko, 在 2016/4/15 15:31, Heiko Stübner 写道: David, Am Donnerstag, 14. April 2016, 20:48:48 schrieb Wolfram Sang: + - input-clk-rate : frequency rate of function clock used(in Hz). If omitted, + the default clock rate is used. It is just used at rk3399 soc. Why is this needed? Why don'

Re: [PATCH v3 1/1] mfd: intel-lpss: save register context on suspend

2016-04-15 Thread Andy Shevchenko
On Wed, 2016-03-30 at 16:54 +0300, Heikki Krogerus wrote: > Hi, > > On Wed, Mar 30, 2016 at 04:35:46PM +0300, Andy Shevchenko wrote: > > > > From: Heikki Krogerus > > > > All configurations are lost and the registers will have > > default values when the hardware is suspended and resumed, > > s

Re: [PATCH v5 2/2] i2c: rk3x: add i2c support for rk3399 soc

2016-04-15 Thread Heiko Stübner
Hi David, Am Donnerstag, 17. März 2016, 00:57:18 schrieb David Wu: > From: David Wu > > - new method to caculate i2c timings for rk3399: > There was an timing issue about "repeated start" time at the I2C > controller of version0, controller appears to drop SDA at .875x (7/8) > programmed c

[PATCH] mfd: arizona: Update device ordering to allow clean driver removal

2016-04-15 Thread Charles Keepax
Since this commit: commit b9a8a271c38f ("mfd: make mfd_remove_devices() iterate in reverse order") The order in which the MFD children remove has been reversed, as our driver contains some dependencies between the devices we need to make some changes to ensure the driver unloads cleanly. Signed-

Re: [PATCH] spi: dln2: Pass of_node to spi master

2016-04-15 Thread Laurentiu Palcu
On Fri, Apr 15, 2016 at 03:10:52PM +0300, Crestez Dan Leonard wrote: > This allows defining SPI devices connected to a DLN2 using devicetree. > > This already works for i2c because of a similar patch: > 3b10db23: i2c: dln2: set the device tree node of the adapter > > Signed-off-by: Crestez Dan Le

Re: [PATCH 0/5] wireless: ti: Convert specialized logging macros to kernel style

2016-04-15 Thread Kalle Valo
Eliad Peller writes: > On Thu, Mar 31, 2016 at 11:07 AM, Joe Perches wrote: >> On Thu, 2016-03-31 at 10:39 +0300, Kalle Valo wrote: >>> Joe Perches writes: >>> > On Wed, 2016-03-30 at 14:51 +0300, Kalle Valo wrote: >>> > > Joe Perches writes: >>> > > > >>> > > > Using the normal kernel logging

Re: [PATCH 0/5] Live patching for powerpc

2016-04-15 Thread Michael Ellerman
On Thu, 2016-04-14 at 16:34 +0200, Jiri Kosina wrote: > On Thu, 14 Apr 2016, Torsten Duwe wrote: > > > > > > It's unchanged since the version I posted on March 24, with the > > > > > > exception that > > > > > > I've dropped the first patch, which was a testing-only patch. > > > > Confirmed. And

Re: [PATCH 17/19] dm: get rid of superfluous gfp flags

2016-04-15 Thread Mikulas Patocka
On Mon, 11 Apr 2016, Michal Hocko wrote: > From: Michal Hocko > > copy_params seems to be little bit confused about which allocation flags > to use. It enforces GFP_NOIO even though it uses > memalloc_noio_{save,restore} which enforces GFP_NOIO at the page memalloc_noio_{save,restore} is used

Re: [PATCH] libnvdimm, pmem: clarify the write+clear_poison+write flow

2016-04-15 Thread Jeff Moyer
Dan Williams writes: > The ACPI specification does not specify the state of data after a clear > poison operation. Potential future libnvdimm bus implementations for > other architectures also might not specify or disagree on the state of > data after clear poison. Clarify why we write twice.

[PATCH] kernel/futex: handle the case where we got a "late" waiter

2016-04-15 Thread Sebastian Andrzej Siewior
futex_unlock_pi() gets uval before taking the hb lock. Now imagine someone in futex_lock_pi() took the lock. While futex_unlock_pi() waits for the hb lock, the LOCK_PI sets FUTEX_WAITERS and drops the lock. Now, futex_unlock_pi() figures out that there is waiter and invokes wake_futex_pi() with the

Re: [PATCH 1/2] [v4] net: emac: emac gigabit ethernet controller driver

2016-04-15 Thread Rob Herring
On Thu, Apr 14, 2016 at 6:34 PM, Timur Tabi wrote: > Vikram Sethi wrote: >> retval = dma_coerce_mask_and_coherent(&pdev->dev, >> DMA_BIT_MASK(64)); >> if (retval) { >> dev_err(&pdev->dev, "failed to set DMA mask err %d\n", >> retval); >> g

Re: [PATCH] clk: samsung: exynos7: Don't gate CMU_{CCORE, FSYS0} blocks clock

2016-04-15 Thread Alim Akhtar
On 04/14/2016 01:20 PM, Krzysztof Kozlowski wrote: On 04/14/2016 06:42 AM, Alim Akhtar wrote: This patch adds CLK_IS_CRITICAL flag to ACLK_CCORE_133 and ACLK_FSYS0_200 clocks. These clocks are critical for accessing CMU_CCORE and CMU_FSYS0 blocks registers. Let these clocks to be enabled all t

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