[PATCH V4 09/45] btrfs: avoid access to .bi_vcnt directly

2017-12-18 Thread Ming Lei
BTRFS uses bio->bi_vcnt to figure out page numbers, this way becomes not correct once we start to enable multipage bvec. So use bio_nr_pages() to do that instead. Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba Cc: linux-bt...@vger.kernel.org Acked-by: David Sterba Signed-off-by: Ming Lei -

Re: [PATCH/trivial] samsung-laptop: Grammar s/are can/can/

2017-12-18 Thread Andy Shevchenko
On Thu, Nov 30, 2017 at 3:32 PM, Geert Uytterhoeven wrote: > Signed-off-by: Geert Uytterhoeven Applied to my review and testing queue, thanks! > --- > Documentation/ABI/testing/sysfs-driver-samsung-laptop | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/AB

[PATCH V4 11/45] dm-crypt: don't clear bvec->bv_page in crypt_free_buffer_pages()

2017-12-18 Thread Ming Lei
The bio is always freed after running crypt_free_buffer_pages(), so it isn't necessary to clear the bv->bv_page. Cc: Mike Snitzer Cc:dm-de...@redhat.com Signed-off-by: Ming Lei --- drivers/md/dm-crypt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/md/dm-crypt.c b/drivers/md/dm-cry

[PATCH V4 12/45] blk-merge: compute bio->bi_seg_front_size efficiently

2017-12-18 Thread Ming Lei
It is enough to check and compute bio->bi_seg_front_size just after the 1st segment is found, but current code checks that for each bvec, which is inefficient. This patch follows the way in __blk_recalc_rq_segments() for computing bio->bi_seg_front_size, and it is more efficient and code becomes

[PATCH V4 13/45] block: blk-merge: try to make front segments in full size

2017-12-18 Thread Ming Lei
When merging one bvec into segment, if the bvec is too big to merge, current policy is to move the whole bvec into another new segment. This patchset changes the policy into trying to maximize size of front segments, that means in above situation, part of bvec is merged into current segment, and t

[PATCH V4 14/45] block: blk-merge: remove unnecessary check

2017-12-18 Thread Ming Lei
In this case, 'sectors' can't be zero at all, so remove the check and let the bio be splitted. Reviewed-by: Christoph Hellwig Signed-off-by: Ming Lei --- block/blk-merge.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/block/blk-merge.c b/block/blk-merge.c index 42ceb89b

[PATCH V4 15/45] block: rename bio_for_each_segment* with bio_for_each_page*

2017-12-18 Thread Ming Lei
It is a tree-wide mechanical replacement since both bio_for_each_segment() and bio_for_each_segment_all() never returns real segment at all, and both just return one page per bvec and deceive us for long time, so fix their names. This is a pre-patch for supporting multipage bvec. Once multipage bv

[PATCH V4 16/45] block: rename rq_for_each_segment as rq_for_each_page

2017-12-18 Thread Ming Lei
rq_for_each_segment() still deceives us since this helper only returns one page in each bvec, so fixes its name. Signed-off-by: Ming Lei --- Documentation/block/biodoc.txt | 6 +++--- block/blk-core.c | 2 +- drivers/block/floppy.c | 4 ++-- drivers/block/loop.c

[PATCH V4 17/45] block: rename bio_segments() with bio_pages()

2017-12-18 Thread Ming Lei
bio_segments() never returns count of actual segment, just like original bio_for_each_segment(), so rename it as bio_pages(). Signed-off-by: Ming Lei --- block/bio.c| 2 +- block/blk-merge.c | 2 +- drivers/block/loop.c | 4 ++-- drivers/md/

[PATCH V4 18/45] block: introduce multipage page bvec helpers

2017-12-18 Thread Ming Lei
This patch introduces helpers of 'bvec_iter_segment_*' for multipage bvec(segment) support. The introduced interfaces treate one bvec as real multipage segment, for example, .bv_len is the total length of the multipage segment. The existed helpers of bvec_iter_* are interfaces for supporting curr

Re: [Xen-devel] [PATCH V3 1/2] Drivers/PCI: Export pcie_has_flr() interface

2017-12-18 Thread Christoph Hellwig
On Fri, Dec 15, 2017 at 12:18:02PM -0600, Bjorn Helgaas wrote: > I think Christoph volunteered to do some restructuring, but I don't > know his timeframe. If you can, I would probably wait for that > because there's so much overlap here. I'll have some time over the holidays. If you need it more

[PATCH V4 20/45] block: use bio_for_each_segment() to compute segments count

2017-12-18 Thread Ming Lei
Firstly it is more efficient to use bio_for_each_segment() in both blk_bio_segment_split() and __blk_recalc_rq_segments() to compute how many segments there are in the bio. Secondaly once bio_for_each_segment() is used, the bvec may need to be splitted because its length can be very longer than ma

Re: [PATCH v2] x86-64/Xen: eliminate W+X mappings

2017-12-18 Thread Ingo Molnar
* Jan Beulich wrote: > A few thousand such pages are usually left around due to the re-use of > L1 tables having been provided by the hypervisor (Dom0) or tool stack > (DomU). Set NX in the direct map variant, which needs to be done in L2 > due to the dual use of the re-used L1s. > > For x86_co

[PATCH V4 21/45] block: use bio_for_each_segment() to map sg

2017-12-18 Thread Ming Lei
It is more efficient to use bio_for_each_segment() to map sg, meantime we have to consider splitting multipage bvec as done in blk_bio_segment_split(). Signed-off-by: Ming Lei --- block/blk-merge.c | 72 +++ 1 file changed, 52 insertions(+), 20

[PATCH V4 22/45] block: introduce segment_last_page()

2017-12-18 Thread Ming Lei
BTRFS and guard_bio_eod() need to get the last page from one segment, so introduce this helper to make them happy. Signed-off-by: Ming Lei --- include/linux/bvec.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/include/linux/bvec.h b/include/linux/bvec.h index 84c395

[PATCH V4 23/45] fs/buffer.c: use bvec iterator to truncate the bio

2017-12-18 Thread Ming Lei
Once multipage bvec is enabled, the last bvec may include more than one page, this patch use segment_last_page() to truncate the bio. Signed-off-by: Ming Lei --- fs/buffer.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/buffer.c b/fs/buffer.c index 8b26295a56fe..83fa

[PATCH V4 19/45] block: introduce bio_for_each_segment()

2017-12-18 Thread Ming Lei
This helper is used to iterate multipage bvec for bio spliting/merge, and it is required in bio_clone_bioset() too, so introduce it. Signed-off-by: Ming Lei --- include/linux/bio.h | 34 +++--- include/linux/bvec.h | 36 2 files c

[PATCH V4 24/45] btrfs: use segment_last_page to get bio's last page

2017-12-18 Thread Ming Lei
Preparing for supporting multipage bvec. Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba Cc: linux-bt...@vger.kernel.org Signed-off-by: Ming Lei --- fs/btrfs/compression.c | 5 - fs/btrfs/extent_io.c | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fs/btrfs/com

[PATCH V4 25/45] block: implement bio_pages_all() via bio_for_each_page_all()

2017-12-18 Thread Ming Lei
As multipage bvec will be enabled soon, bio->bi_vcnt isn't same with page count in the bio any more, so use bio_for_each_page_all() to compute the number. Signed-off-by: Ming Lei --- include/linux/bio.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/include/linux/bio.

[PATCH V4 26/45] block: introduce bio_segments()

2017-12-18 Thread Ming Lei
There are still cases in which we need to use bio_segments() for get the number of segment, so introduce it. Signed-off-by: Ming Lei --- include/linux/bio.h | 25 - 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/include/linux/bio.h b/include/linux/bio.h in

[PATCH V4 27/45] block: introduce rq_for_each_segment()

2017-12-18 Thread Ming Lei
There are still cases in which rq_for_each_segment() is required, for example, loop. Signed-off-by: Ming Lei --- include/linux/blkdev.h | 4 1 file changed, 4 insertions(+) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index ecc1a24bb5a2..99c65889fd4f 100644 --- a/include/li

[PATCH V4 28/45] block: loop: pass segments to iov_iter

2017-12-18 Thread Ming Lei
iov_iter is implemented with bvec itererator, so it is safe to pass segment to it, and this way is much more efficient than passing one page in each bvec. Signed-off-by: Ming Lei --- drivers/block/loop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/block/loop

[PATCH V4 33/45] fs: conver to bio_for_each_page_all2

2017-12-18 Thread Ming Lei
bio_for_each_page_all() can't be used any more after multipage bvec is enabled, so we have to convert to bio_for_each_page_all2(). Signed-off-by: Ming Lei --- fs/block_dev.c | 6 -- fs/crypto/bio.c | 3 ++- fs/direct-io.c | 4 +++- fs/iomap.c | 3 ++- fs/mpage.c | 3 ++- 5 files

Re: [trivial PATCH] treewide: Align function definition open/close braces

2017-12-18 Thread Andy Shevchenko
On Mon, Dec 18, 2017 at 2:28 AM, Joe Perches wrote: > Some functions definitions have either the initial open brace and/or > the closing brace outside of column 1. > > Move those braces to column 1. > > This allows various function analyzers like gnu complexity to work > properly for these modifie

[PATCH V4 29/45] block: bio: introduce bio_for_each_page_all2 and bio_for_each_segment_all

2017-12-18 Thread Ming Lei
This patch introduces bio_for_each_page_all2(), which is for replacing bio_for_each_page_all() in case that the returned bvec has to be single page bvec. Given the interface type has to be changed for passing one local iterator variable of 'bvec_iter_all', and doing all changes in one single patch

[PATCH V4 31/45] block: convert to bio_for_each_page_all2()

2017-12-18 Thread Ming Lei
We have to convert to bio_for_each_page_all2() for iterating page by page. bio_for_each_page_all() can't be used any more after multipage bvec is enabled. Signed-off-by: Ming Lei --- block/bio.c | 18 -- block/blk-zoned.c | 5 +++-- block/bounce.c | 6 -- in

[PATCH V4 32/45] md/dm/bcache: conver to bio_for_each_page_all2 and bio_for_each_segment

2017-12-18 Thread Ming Lei
In bch_bio_alloc_pages(), bio_for_each_segment() is fine because this helper can only be used on a freshly new bio. For other cases, we conver to bio_for_each_page_all2() since they needn't to update bvec table. bio_for_each_page_all() can't be used any more after multipage bvec is enabled, so we

[PATCH V4 35/45] ext4: conver to bio_for_each_page_all2

2017-12-18 Thread Ming Lei
bio_for_each_page_all() can't be used any more after multipage bvec is enabled, so we have to convert to bio_for_each_page_all2(). Signed-off-by: Ming Lei --- fs/ext4/page-io.c | 3 ++- fs/ext4/readpage.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/ext4/page-io.c

[PATCH V4 37/45] xfs: conver to bio_for_each_page_all2

2017-12-18 Thread Ming Lei
bio_for_each_page_all() can't be used any more after multipage bvec is enabled, so we have to convert to bio_for_each_page_all2(). Given bvec can't be changed under bio_for_each_page_all2(), this patch marks the bvec parameter as 'const' for xfs_finish_page_writeback(). Signed-off-by: Ming Lei -

Re: [PATCH] ext4: delayed inode update for the consistency of file size after a crash

2017-12-18 Thread Christoph Hellwig
> that update of the timestamp and i_size needs to be moved to an I/O > completion handler. We do this already to convert unwritten requests > to be written in fs/ext4/page_io.c. See ext4_put_io_end_defer() in > fs/ext4/page_io.c; if we need to convert unwritten extents the > EXT4_IO_END_UNWRITTE

[PATCH V4 38/45] exofs: conver to bio_for_each_page_all2

2017-12-18 Thread Ming Lei
bio_for_each_page_all() can't be used any more after multipage bvec is enabled, so we have to convert to bio_for_each_page_all2(). Signed-off-by: Ming Lei --- fs/exofs/ore.c | 3 ++- fs/exofs/ore_raid.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/exofs/ore.c b

[PATCH V4 36/45] f2fs: conver to bio_for_each_page_all2

2017-12-18 Thread Ming Lei
bio_for_each_page_all() can't be used any more after multipage bvec is enabled, so we have to convert to bio_for_each_page_all2(). Signed-off-by: Ming Lei --- fs/f2fs/data.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index c404bd8

[PATCH V4 39/45] gfs2: conver to bio_for_each_page_all2

2017-12-18 Thread Ming Lei
bio_for_each_page_all() can't be used any more after multipage bvec is enabled, so we have to convert to bio_for_each_page_all2(). Given bvec can't be changed inside bio_for_each_page_all2(), this patch marks the bvec parameter as 'const' for gfs2_end_log_write_bh(). Signed-off-by: Ming Lei ---

[PATCH V4 40/45] block: kill bio_for_each_page_all()

2017-12-18 Thread Ming Lei
No one uses it any more, so kill it and we can reuse this helper name. Signed-off-by: Ming Lei --- include/linux/bio.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/linux/bio.h b/include/linux/bio.h index 899db6701f0d..05027f0df83f 100644 --- a/include/linux/

[PATCH V4 41/45] block: rename bio_for_each_page_all2 as bio_for_each_page_all

2017-12-18 Thread Ming Lei
Now bio_for_each_page_all() is gone, we can reuse the name to iterate bio page by page, which is done via bio_for_each_page_all2() now. Signed-off-by: Ming Lei --- block/bio.c | 14 +++--- block/blk-zoned.c | 4 ++-- block/bounce.c| 4 ++-- drivers/md/

[PATCH V4 42/45] block: enable multipage bvecs

2017-12-18 Thread Ming Lei
This patch pulls the trigger for multipage bvecs. Now any request queue which supports queue cluster will see multipage bvecs. Signed-off-by: Ming Lei --- block/bio.c | 13 + 1 file changed, 13 insertions(+) diff --git a/block/bio.c b/block/bio.c index e82e4c815dbb..34af328681a8 10

[PATCH V4 45/45] block: document usage of bio iterator helpers

2017-12-18 Thread Ming Lei
Now multipage bvec is supported, and some helpers may return page by page, and some may return segment by segment, this patch documents the usage for helping us use them correctly. Signed-off-by: Ming Lei --- Documentation/block/biovecs.txt | 32 1 file changed,

[PATCH V4 43/45] block: bio: pass segments to bio if bio_add_page() is bypassed

2017-12-18 Thread Ming Lei
Under some situations, such as block direct I/O, we can't use bio_add_page() for merging pages into multipage bvec, so a new function is implemented for converting page array into one segment array, then these cases can benefit from multipage bvec too. Signed-off-by: Ming Lei --- block/bio.c | 5

Re: [RFC v2 2/2] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2017-12-18 Thread Pavel Machek
On Mon 2017-12-18 11:40:59, Enric Balletbo Serra wrote: > Hi Pavel, > > 2017-12-15 21:57 GMT+01:00 Pavel Machek : > > Hi! > > > >> Yes, I think that how you describe luminance and lightness is right, > >> and sounds good improve the doc. > >> > >> To be clear the correction table for PWM values ca

[PATCH V4 44/45] block: always define BIO_MAX_PAGES as 256

2017-12-18 Thread Ming Lei
Now multipage bvec can cover CONFIG_THP_SWAP, so we don't need to increase BIO_MAX_PAGES for it. Signed-off-by: Ming Lei --- include/linux/bio.h | 8 1 file changed, 8 deletions(-) diff --git a/include/linux/bio.h b/include/linux/bio.h index 5c5cd34c9fa3..2bf1e96c5157 100644 --- a/incl

Re: [PATCH] x86/pti: Add pti= cmdline option and documentation

2017-12-18 Thread Ingo Molnar
* Will Deacon wrote: > But I would still like to avoid divergence on the name. Please rename it to 'PTI' to sync the naming with x86. Thanks, Ingo

[PATCH V4 34/45] btrfs: conver to bio_for_each_page_all2

2017-12-18 Thread Ming Lei
bio_for_each_page_all() can't be used any more after multipage bvec is enabled, so we have to convert to bio_for_each_page_all2(). Signed-off-by: Ming Lei --- fs/btrfs/compression.c | 3 ++- fs/btrfs/disk-io.c | 3 ++- fs/btrfs/extent_io.c | 9 ++--- fs/btrfs/inode.c | 6 --

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-18 Thread Sergey Senozhatsky
On (12/18/17 19:36), Sergey Senozhatsky wrote: [..] > it takes call_console_drivers() 0.01+ of a second to print some of > the messages [I think we can ignore raw_spin_lock(&console_owner_lock) > and fully blame call_console_drivers()]. so vprintk_emit() seems to be > gazillion times faster and i_d

[PATCH v2] ARM: dts: sun8i: h3: nanopi-m1-plus: fix missing ethernet 0 in aliases

2017-12-18 Thread Philipp Rossak
This patch fixes a missing ethernet 0 alisas in the devicetree on the Nanopi M1 Plus. Signed-off-by: Philipp Rossak --- arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts b/arch/arm/boot/dts/sun8i-h3-na

[PATCH V4 30/45] block: deal with dirtying pages for multipage bvec

2017-12-18 Thread Ming Lei
In bio_check_pages_dirty(), bvec->bv_page is used as flag for marking if the page has been dirtied & released, and if no, it will be dirtied in deferred workqueue. With multipage bvec, we can't do that any more, so change the logic into checking all pages in one mp bvec, and only release all these

Re: [BISECTED] tpm CLKRUN breaks PS/2 keyboard and touchpad on Braswell system

2017-12-18 Thread Javier Martinez Canillas
On 12/18/2017 01:22 PM, Javier Martinez Canillas wrote: [snip] > > James, > > Can you please test the following (untested) patch on top of the other two > mentioned patches to see if it makes a difference for you? > I should had tried to at least compile the patch :) Updated patch below: >F

[PATCH V4 10/45] btrfs: avoid to access bvec table directly for a cloned bio

2017-12-18 Thread Ming Lei
Commit 17347cec15f919901c90(Btrfs: change how we iterate bios in endio) mentioned that for dio the submitted bio may be fast cloned, we can't access the bvec table directly for a cloned bio, so use bio_get_first_bvec() to retrieve the 1st bvec. Cc: Chris Mason Cc: Josef Bacik Cc: David Sterba C

Re: [PATCH v2 5/5] RDMA/core: Add runchecks.cfg for drivers/infiniband/core

2017-12-18 Thread Knut Omang
On Mon, 2017-12-18 at 10:02 +0200, Leon Romanovsky wrote: > On Sat, Dec 16, 2017 at 03:42:30PM +0100, Knut Omang wrote: > > Add a runchecks.cfg to drivers/infiniband/core > > to start "reining in" future checker errors, > > and making it easier to selectively clean up existing > > issues. > > > >

[PATCH v3 3/7] typec: tcpm: Add SDB header for Status message handling

2017-12-18 Thread Adam Thomson
This commit adds a header providing definitions for handling Status messages. Currently the header only focuses on handling incoming Status messages. Signed-off-by: Adam Thomson --- include/linux/usb/pd_ext_sdb.h | 31 +++ 1 file changed, 31 insertions(+) create mode

Re: [PATCH v2] platform/x86: Add driver for GPD pocket custom fan controller

2017-12-18 Thread Andy Shevchenko
On Tue, Dec 12, 2017 at 6:40 PM, Hans de Goede wrote: > Add a driver for the GPD pocket device's custom fan controller, which > gets controlled through 2 GPIOs listed in a FAN02501 ACPI device. > Applied to my review and testing queue, thanks! > Cc: James > Suggested-by: James > Signed-off-by:

[PATCH v3 1/7] typec: tcpm: Add PD Rev 3.0 definitions to PD header

2017-12-18 Thread Adam Thomson
This commit adds definitions for PD Rev 3.0 messages, including APDO PPS and extended message support for TCPM. Signed-off-by: Adam Thomson --- include/linux/usb/pd.h | 187 + 1 file changed, 175 insertions(+), 12 deletions(-) diff --git a/include

Re: [PATCH v5 7/9] arm64: Topology, rename cluster_id

2017-12-18 Thread Morten Rasmussen
On Fri, Dec 15, 2017 at 10:36:35AM -0600, Jeremy Linton wrote: > Hi, > > On 12/13/2017 12:02 PM, Lorenzo Pieralisi wrote: > >[+Morten, Dietmar] > > > >$SUBJECT should be: > > > >arm64: topology: rename cluster_id > > Sure.. > > > > >On Fri, Dec 01, 2017 at 04:23:28PM -0600, Jeremy Linton wrote:

[PATCH v3 0/7] typec: tcpm: Add sink side support for PPS

2017-12-18 Thread Adam Thomson
This patch set adds sink side support for the PPS feature introduced in the USB PD 3.0 specification. The source PPS supply is represented using the Power Supply framework to provide access and control APIs for dealing with it's operating voltage and current, and switching between a standard PDO a

[PATCH v3 6/7] typec: tcpm: Represent source supply through power_supply class

2017-12-18 Thread Adam Thomson
This commit adds a power_supply class instance to represent a PD source's voltage and current properties. This provides an interface for reading these properties from user-space or other drivers. For PPS enabled Sources, this also provides write access to set the current and voltage and allows for

[PATCH v3 7/7] typec: tcpm: Add support for sink PPS related messages

2017-12-18 Thread Adam Thomson
This commit adds sink side support for Get_Status, Status, Get_PPS_Status and PPS_Status handling. As there's the potential for a partner to respond with Not_Supported handling of this message is also added. Sending of Not_Supported is added is added to handle messages received but not yet handled.

[PATCH v3 4/7] typec: tcpm: Add core support for sink side PPS

2017-12-18 Thread Adam Thomson
This commit adds code to handle requesting of PPS APDOs. Switching between standard PDOs and APDOs, and re-requesting an APDO to modify operating voltage/current will be triggered by an external call into TCPM. Signed-off-by: Adam Thomson --- drivers/usb/typec/tcpm.c | 533 ++

[PATCH v3 5/7] power: supply: Add 'connected_type' property and supporting code

2017-12-18 Thread Adam Thomson
This commit adds the 'connected_type' property to represent supplies which can report a number of different types of supply based on a connection event. Examples of this already exist in drivers whereby the existing 'type' property is updated, based on an event, to represent what was connected (e.

Re: [PATCH 1/5] media: rc: update sunxi-ir driver to get base clock frequency from devicetree

2017-12-18 Thread Philipp Rossak
Hey Andi, thanks for the feedback. I will fix that in the next version of this patch series! On 18.12.2017 03:44, Andi Shyti wrote: Hi Philipp, just a couple of small nitpicks. + u32 b_clk_freq; [...] + /* Base clock frequency (optional) */ + if (of_property_read_u32(

Re: [PATCH v6] mfd: syscon: Add hardware spinlock support

2017-12-18 Thread Arnd Bergmann
On Mon, Dec 18, 2017 at 7:54 AM, Baolin Wang wrote: > On 15 December 2017 at 21:13, Arnd Bergmann wrote: >> On Fri, Dec 15, 2017 at 11:42 AM, Lee Jones wrote: >> @@ -87,6 +88,30 @@ static struct syscon *of_syscon_register(struct device_node *np) if (ret)

[PATCH v3 2/7] typec: tcpm: Add ADO header for Alert message handling

2017-12-18 Thread Adam Thomson
This commit adds a header providing definitions for handling Alert messages. Currently the header only focuses on handling incoming alerts. Signed-off-by: Adam Thomson --- include/linux/usb/pd_ado.h | 42 ++ 1 file changed, 42 insertions(+) create mode 10

Re: [PATCH 08/19] ext2: convert to new i_version API

2017-12-18 Thread Jan Kara
On Wed 13-12-17 09:20:06, Jeff Layton wrote: > From: Jeff Layton > > Signed-off-by: Jeff Layton Looks good. You can add: Reviwed-by: Jan Kara Honza > --- > fs/ext2/dir.c | 8 > fs/ext2/super.c | 4 ++-- > 2 files ch

Re: [f2fs-dev] [PATCH v2] f2fs: add an ioctl to disable GC for specific file

2017-12-18 Thread Chao Yu
On 2017/12/15 3:50, Jaegeuk Kim wrote: > On 12/12, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2017/12/9 3:37, Jaegeuk Kim wrote: >>> Change log from v1: >>> - fix bug in error handling of ioctl >>> >>> >From b905e03d8aad7d25ecaf9bde05411a68d3d2460e Mon Sep 17 00:00:00 2001 >>> From: Jaegeuk Kim >>>

Re: [PATCH 12/19] ocfs2: convert to new i_version API

2017-12-18 Thread Jan Kara
On Wed 13-12-17 09:20:10, Jeff Layton wrote: > From: Jeff Layton > > Signed-off-by: Jeff Layton Looks good to me. You can add: Reviewed-by: Jan Kara Honza > --- > fs/ocfs2/dir.c | 14 +++--- > fs/ocfs2/inode.c

Re: [PATCH v5 1/2] x86/mm: add a function to check if a pfn is UC/UC-

2017-12-18 Thread Paolo Bonzini
On 08/11/2017 08:56, Haozhong Zhang wrote: > +bool pat_pfn_is_uc_or_uc_minus(unsigned long pfn) > +{ > + enum page_cache_mode cm = lookup_memtype(PFN_PHYS(pfn)); > + > + return cm == _PAGE_CACHE_MODE_UC || cm == _PAGE_CACHE_MODE_UC_MINUS; > +} > +EXPORT_SYMBOL_GPL(pat_pfn_is_uc_or_uc_minus)

Re: [PATCH v5 0/8] omap: dmtimer: Move driver out of plat-omap

2017-12-18 Thread Keerthy
On Monday 18 December 2017 04:46 PM, Ladislav Michl wrote: > Keerthy, > > On Tue, Dec 12, 2017 at 11:42:09AM +0530, Keerthy wrote: >> The series moves dmtimer out of plat-omap to drivers/clocksource. >> The series also does a bunch of changes to pwm-omap-dmtimer code >> to adapt to the driver mi

Re: [PATCH v5 7/8] pwm: pwm-omap-dmtimer: Adapt driver to utilize dmtimer pdata ops

2017-12-18 Thread Keerthy
On Monday 18 December 2017 03:01 PM, Ladislav Michl wrote: > Keerthy, > > On Tue, Dec 12, 2017 at 11:42:16AM +0530, Keerthy wrote: >> Adapt driver to utilize dmtimer pdata ops instead of pdata-quirks. >> >> Signed-off-by: Keerthy >> --- >> >> Changes in v4: >> >> * Switched to dev_get_platdat

Re: [PATCH v2 9/9] ARM: dts: imx7: add Toradex Colibri iMX7D 1GB (eMMC) support

2017-12-18 Thread Stefan Agner
On 2017-12-17 23:55, Philippe Ombredanne wrote: > Fabio, > > On Sun, Dec 17, 2017 at 10:59 PM, Fabio Estevam wrote: >> Hi Stefan, >> >> On Sun, Dec 17, 2017 at 6:37 PM, Stefan Agner wrote: >> >>> --- /dev/null >>> +++ b/arch/arm/boot/dts/imx7d-colibri-emmc-eval-v3.dts >>> @@ -0,0 +1,20 @@ >>> +/

perf record: regression with latest PT fix

2017-12-18 Thread Stephane Eranian
Hi, The following patch: f785657b0fbe perf report: Fix regression when decoding Intel-PT traces is breaking perf report for me. I get no samples reported from perf report when running simple perf record commands: $ perf record -e cycles noploop Reverting the patch fixes the problem. Are you

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-18 Thread Knut Omang
On Sun, 2017-12-17 at 22:00 -0800, Joe Perches wrote: > On Sun, 2017-12-17 at 22:00 -0700, Jason Gunthorpe wrote: > > On Sun, Dec 17, 2017 at 03:14:10AM +0100, Knut Omang wrote: > > > > > > I like the ability to add more checkers and keep then in the main > > > > upstream tree. But adding override

Re: stack traces and zombie tasks

2017-12-18 Thread Miroslav Benes
On Sun, 17 Dec 2017, Josh Poimboeuf wrote: > On Fri, Dec 15, 2017 at 07:51:45AM -0800, Andy Lutomirski wrote: > > On Fri, Dec 15, 2017 at 4:54 AM, Miroslav Benes wrote: > > > Hi, > > > > > > commit 1959a60182f4 ("x86/dumpstack: Pin the target stack when dumping > > > it") slightly changed the beh

Re: [PATCH v4 2/6] dt: bindings: lp8860: Update DT label binding

2017-12-18 Thread Dan Murphy
Rob On 12/15/2017 04:59 PM, Rob Herring wrote: > On Tue, Dec 12, 2017 at 04:01:39PM -0600, Dan Murphy wrote: >> Update the lp8860 label binding to the LED >> standard as documented in >> >> Documentation/devicetree/bindings/leds/common.txt >> >> Signed-off-by: Dan Murphy >> --- >> >> v4 - No chan

Re: [patch V163 28/51] x86/mm/pti: Add functions to clone kernel PMDs

2017-12-18 Thread Peter Zijlstra
On Mon, Dec 18, 2017 at 12:42:43PM +0100, Thomas Gleixner wrote: > @@ -106,6 +111,128 @@ pgd_t __pti_set_user_pgd(pgd_t *pgdp, pg > } > > /* > + * Walk the user copy of the page tables (optionally) trying to allocate > + * page table pages on the way down. > + * > + * Returns a pointer to a P4D

Re: [PATCH] x86: move parse_early_param to earlier code for add_efi_memmap

2017-12-18 Thread Matt Fleming
On Sat, 16 Dec, at 03:06:32PM, Ingo Molnar wrote: > > * Matt Fleming wrote: > > > > x86_init.oem.arch_setup(); > > > @@ -962,6 +959,8 @@ void __init setup_arch(char **cmdline_p) > > > > > > parse_early_param(); > > > > > > + if (efi_enabled(EFI_BOOT)) > > > + efi_memblock_x86_res

[PATCH v3] fsck.f2fs: check and fix i_namelen to avoid double free

2017-12-18 Thread Yunlong Song
Signed-off-by: Yunlong Song --- fsck/fsck.c | 26 +- fsck/fsck.h | 3 ++- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/fsck/fsck.c b/fsck/fsck.c index 2212aa3..b52b6e4 100644 --- a/fsck/fsck.c +++ b/fsck/fsck.c @@ -539,7 +539,7 @@ int fsck_chk_node_blk(

Re: [PATCH v4 2/2] misc: xlnx_vcu: Add Xilinx ZYNQMP VCU logicoreIP init driver

2017-12-18 Thread Michal Simek
On 15.12.2017 14:26, Arnd Bergmann wrote: > In Fri, Dec 15, 2017 at 8:24 AM, Dhaval Shah wrote: >> Xilinx ZYNQMP logicoreIP Init driver is based on the new >> LogiCoreIP design created. This driver provides the processing system >> and programmable logic isolation. Set the frequency based on the c

Re: [PATCH v5 0/8] omap: dmtimer: Move driver out of plat-omap

2017-12-18 Thread Ladislav Michl
On Mon, Dec 18, 2017 at 06:24:42PM +0530, Keerthy wrote: > On Monday 18 December 2017 04:46 PM, Ladislav Michl wrote: > > Keerthy, > > > > On Tue, Dec 12, 2017 at 11:42:09AM +0530, Keerthy wrote: > >> The series moves dmtimer out of plat-omap to drivers/clocksource. > >> The series also does a bun

Re: [RFC v2 1/2] backlight: pwm_bl: linear interpolation between values of brightness-levels

2017-12-18 Thread Daniel Thompson
On Mon, Dec 18, 2017 at 10:47:24AM +0100, Enric Balletbo Serra wrote: > Hi Daniel, > > 2017-12-15 15:40 GMT+01:00 Daniel Thompson : > > On Thu, Nov 16, 2017 at 03:11:50PM +0100, Enric Balletbo i Serra wrote: > >> > >> Setting use-linear-interpolation in the dts will allow you to have linear > >> i

Re: [patch V163 37/51] x86/events/intel/ds: Map debug buffers in fixmap

2017-12-18 Thread Peter Zijlstra
On Mon, Dec 18, 2017 at 12:42:52PM +0100, Thomas Gleixner wrote: > +static u64 ds_update_fixmap(int idx, void *addr, size_t size, pgprot_t prot) > { > + phys_addr_t pa, va; > + size_t msz = 0; > + > + va = __fix_to_virt(idx); > + pa = virt_to_phys(addr); > + for (; msz < size;

Re: [Nouveau] [PATCH] drm/nouveau/imem/nv50: fix incorrect use of refcount API

2017-12-18 Thread Ard Biesheuvel
On 18 December 2017 at 13:16, Pierre Moreau wrote: > Hey Ard, > > It seems that Ben already committed a similar patch to his tree (see [0]). I > do > not know whether he is planning to have it part of a pull request of fixes for > 4.15. > Hi Pierre, Thanks for the reply. If a fix has been queue

Re: AMD erratum 665 on f15h processor?

2017-12-18 Thread Borislav Petkov
+ kvm ML. On Mon, Dec 18, 2017 at 06:01:21AM +0300, Andrew Randrianasulu wrote: > В сообщении от Sunday 17 December 2017 23:52:05 вы написали: > > On Sun, Dec 17, 2017 at 12:04:28PM +0300, Andrew Randrianasulu wrote: > > > Hello! > > > > > > I was trying to investigate why all my old kernels can't

Re: [PATCH v2 10/13] MIPS: mscc: add ocelot dtsi

2017-12-18 Thread PrasannaKumar Muralidharan
Hi Alexandre, On 8 December 2017 at 21:16, Alexandre Belloni wrote: > Add a device tree include file for the Microsemi Ocelot SoC. > > Signed-off-by: Alexandre Belloni > --- > arch/mips/boot/dts/Makefile | 1 + > arch/mips/boot/dts/mscc/Makefile| 4 ++ > arch/mips/boot/dts/mscc/

Re: [PATCH v2 09/13] MIPS: mscc: Add initial support for Microsemi MIPS SoCs

2017-12-18 Thread PrasannaKumar Muralidharan
Hi Alexandre, On 8 December 2017 at 21:16, Alexandre Belloni wrote: > Introduce support for the MIPS based Microsemi Ocelot SoCs. > As the plan is to have all SoCs supported only using device tree, the > mach directory is simply called mscc. > > Signed-off-by: Alexandre Belloni > --- > arch/mip

Re: [PATCH v4.1 2/2] livepatch: force transition to finish

2017-12-18 Thread Miroslav Benes
On Fri, 15 Dec 2017, Jason Baron wrote: > On 11/22/2017 05:29 AM, Miroslav Benes wrote: > > If a task sleeps in a set of patched functions uninterruptedly, it could > > block the whole transition indefinitely. Thus it may be useful to clear > > its TIF_PATCH_PENDING to allow the process to finish

[PATCH v4] fsck.f2fs: check and fix i_namelen to avoid double free

2017-12-18 Thread Yunlong Song
v1 -> v2: use child_info to pass dentry namelen v2 -> v3: check child != NULL to include the F2FS_FT_ORPHAN file type v3 -> v4: fix the i_namelen problem of dump.f2fs Signed-off-by: Yunlong Song --- fsck/fsck.c | 28 +++- fsck/fsck.h | 3 ++- 2 files changed, 25 insertio

Re: [PATCH v2 08/13] power: reset: Add a driver for the Microsemi Ocelot reset

2017-12-18 Thread PrasannaKumar Muralidharan
Hi Alexandre, On 8 December 2017 at 21:16, Alexandre Belloni wrote: > The Microsemi Ocelot SoC has a register allowing to reset the MIPS core. > Unfortunately, the syscon-reboot driver can't be used directly (but almost) > as the reset control may be disabled using another register. > > Cc: Sebas

[tip:sched/urgent] sched/isolation: Enable CONFIG_CPU_ISOLATION=y by default

2017-12-18 Thread tip-bot for Frederic Weisbecker
Commit-ID: 2c43838c99d9d23f17eb2bdadafcb2879cca6995 Gitweb: https://git.kernel.org/tip/2c43838c99d9d23f17eb2bdadafcb2879cca6995 Author: Frederic Weisbecker AuthorDate: Thu, 14 Dec 2017 19:18:26 +0100 Committer: Ingo Molnar CommitDate: Mon, 18 Dec 2017 13:46:42 +0100 sched/isolation: En

[tip:sched/urgent] sched/isolation: Make CONFIG_NO_HZ_FULL select CONFIG_CPU_ISOLATION

2017-12-18 Thread tip-bot for Paul E. McKenney
Commit-ID: bf29cb238dc0656e6564b6a94bb82e11d2129437 Gitweb: https://git.kernel.org/tip/bf29cb238dc0656e6564b6a94bb82e11d2129437 Author: Paul E. McKenney AuthorDate: Thu, 14 Dec 2017 19:18:25 +0100 Committer: Ingo Molnar CommitDate: Mon, 18 Dec 2017 13:46:42 +0100 sched/isolation: Make

[tip:sched/urgent] sched/isolation: Document boot parameters dependency on CONFIG_CPU_ISOLATION=y

2017-12-18 Thread tip-bot for Frederic Weisbecker
Commit-ID: d94d105329e4a8a874853b5bd854b6587c41adda Gitweb: https://git.kernel.org/tip/d94d105329e4a8a874853b5bd854b6587c41adda Author: Frederic Weisbecker AuthorDate: Thu, 14 Dec 2017 19:18:27 +0100 Committer: Ingo Molnar CommitDate: Mon, 18 Dec 2017 13:46:42 +0100 sched/isolation: Do

Re: [patch V163 38/51] x86/mm/64: Make a full PGD-entry size hole in the memory map

2017-12-18 Thread Peter Zijlstra
On Mon, Dec 18, 2017 at 12:42:53PM +0100, Thomas Gleixner wrote: > From: Andy Lutomirski > > Shrink vmalloc space from 16384TiB to 12800TiB to enlarge the hole starting > at 0xff90 to be a full PGD entry. > > A subsequent patch will use this hole for the pagetable isolation LDT > ali

Re: [PATCH v2 11/13] MIPS: mscc: add ocelot PCB123 device tree

2017-12-18 Thread PrasannaKumar Muralidharan
On 8 December 2017 at 21:16, Alexandre Belloni wrote: > Add a device tree for the Microsemi Ocelot PCB123 evaluation board. > > Signed-off-by: Alexandre Belloni > --- > arch/mips/boot/dts/mscc/Makefile | 2 ++ > arch/mips/boot/dts/mscc/ocelot_pcb123.dts | 27 +++

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-18 Thread Petr Mladek
On Mon 2017-12-18 18:36:15, Sergey Senozhatsky wrote: > On (12/15/17 10:08), Petr Mladek wrote: > 1) it opens both soft and hard lockup vectors > >I see *a lot* of cases when CPU that call printk in a loop does not >end up flushing its messages. And the problem seems to be - preemption. >

[RFC PATCH linux-next] CIFS: SMBD: _smbd_get_connection() can be static

2017-12-18 Thread kbuild test robot
Fixes: 07495ff5d9bc ("CIFS: SMBD: Establish SMB Direct connection") Signed-off-by: Fengguang Wu --- smbdirect.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c index 2ecd5c1..62a5c3f 100644 --- a/fs/cifs/smbdirect.c +++ b/fs/cifs/s

Re: [RFC v2 2/2] backlight: pwm_bl: compute brightness of LED linearly to human eye.

2017-12-18 Thread Daniel Thompson
On Mon, Dec 18, 2017 at 11:27:22AM +0100, Enric Balletbo Serra wrote: > Hi Daniel, > > 2017-12-15 15:51 GMT+01:00 Daniel Thompson : > > On Thu, Nov 16, 2017 at 03:11:51PM +0100, Enric Balletbo i Serra wrote: > >> When you want to change the brightness using a PWM signal, one thing you > >> need to

[linux-next:master 5061/5571] fs/cifs/smbdirect.c:1465:24: sparse: symbol '_smbd_get_connection' was not declared. Should it be static?

2017-12-18 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 53600ecfb6004f355bd3551bee180caf4b42d7a7 commit: 07495ff5d9bc753b5cc4cd26c355bf186e865892 [5061/5571] CIFS: SMBD: Establish SMB Direct connection reproduce: # apt-get install sparse git chec

Re: r8169 regression: UDP packets dropped intermittantly

2017-12-18 Thread Holger Hoffstätte
On 12/18/17 06:49, Jonathan Woithe wrote: > Resend to netdev. LKML CCed in case anyone in the wider kernel community > can suggest a way forward. Please CC responses if replying only to LKML. > > It seems that this 4+ year old regression in the r8169 driver (documented in > this thread on netdev

Re: [RFC][PATCHv6 00/12] printk: introduce printing kernel thread

2017-12-18 Thread Sergey Senozhatsky
On (12/18/17 14:31), Petr Mladek wrote: > On Mon 2017-12-18 18:36:15, Sergey Senozhatsky wrote: > > On (12/15/17 10:08), Petr Mladek wrote: > > 1) it opens both soft and hard lockup vectors > > > >I see *a lot* of cases when CPU that call printk in a loop does not > >end up flushing its me

[PATCH] ARM: B15: fix unused label warnings

2017-12-18 Thread Arnd Bergmann
The new conditionally compiled code leaves some labels and one variable unreferenced when CONFIG_HOTPLUG_CPU and CONFIG_PM_SLEEP are disabled: arch/arm/mm/cache-b15-rac.c: In function 'b15_rac_init': arch/arm/mm/cache-b15-rac.c:353:1: error: label 'out_unmap' defined but not used [-Werror=unused-

Re: [PATCH v2 0/5] Support for generalized use of make C={1,2} via a wrapper program

2017-12-18 Thread Knut Omang
On Sun, 2017-12-17 at 22:00 -0700, Jason Gunthorpe wrote: > On Sun, Dec 17, 2017 at 03:14:10AM +0100, Knut Omang wrote: > > > > I like the ability to add more checkers and keep then in the main > > > upstream tree. But adding overrides for specific subsystems goes against > > > the policy that all

Re: [PATCH] ARM: B15: fix unused label warnings

2017-12-18 Thread Russell King - ARM Linux
On Mon, Dec 18, 2017 at 02:41:11PM +0100, Arnd Bergmann wrote: > The new conditionally compiled code leaves some labels and one > variable unreferenced when CONFIG_HOTPLUG_CPU and CONFIG_PM_SLEEP > are disabled: > > arch/arm/mm/cache-b15-rac.c: In function 'b15_rac_init': > arch/arm/mm/cache-b15-r

[PATCH] drm/tegra: fix non-debugfs builds

2017-12-18 Thread Arnd Bergmann
The new debugfs registration fails to build when CONFIG_DEBUGFS is disabled, because the drm_crtc structure is lacking a member in that configuration: drivers/gpu/drm/tegra/dc.c: In function 'tegra_dc_late_register': drivers/gpu/drm/tegra/dc.c:1204:28: error: 'struct drm_crtc' has no member named

  1   2   3   4   5   6   7   8   9   10   >