Re: [PATCH 2/2] serdev: ttyport: add missing open() error handling

2017-10-18 Thread Johan Hovold
On Tue, Oct 17, 2017 at 11:08:53AM -0500, Rob Herring wrote: > On Mon, Oct 16, 2017 at 8:06 AM, Johan Hovold wrote: > > Add missing error handling for tty-driver open() which may fail (e.g. if > > resource allocation fails or if a port is being disconnected). > > > > Note that close() must be call

[PATCH v10 00/20] simplify crypto wait for async op

2017-10-18 Thread Gilad Ben-Yossef
Many users of kernel async. crypto services have a pattern of starting an async. crypto op and than using a completion to wait for it to end. This patch set simplifies this common use case in two ways: First, by separating the return codes of the case where a request is queued to a backlog due to

[PATCH v10 03/20] net: use -ENOSPC for transient busy indication

2017-10-18 Thread Gilad Ben-Yossef
Replace -EBUSY with -ENOSPC when handling transient busy indication in the absence of backlog. Signed-off-by: Gilad Ben-Yossef --- Please squash this patch with the previous one when merging upstream. net/ipv4/ah4.c | 2 +- net/ipv4/esp4.c | 2 +- net/ipv6/ah6.c | 2 +- net/ipv6/esp6.c | 2

[PATCH v10 06/20] crypto: introduce crypto wait for async op

2017-10-18 Thread Gilad Ben-Yossef
Invoking a possibly async. crypto op and waiting for completion while correctly handling backlog processing is a common task in the crypto API implementation and outside users of it. This patch adds a generic implementation for doing so in preparation for using it across the board instead of hand

[PATCH v10 05/20] crypto: marvell/cesa: remove redundant backlog checks on EBUSY

2017-10-18 Thread Gilad Ben-Yossef
Now that -EBUSY return code only indicates backlog queueing we can safely remove the now redundant check for the CRYPTO_TFM_REQ_MAY_BACKLOG flag when -EBUSY is returned. Signed-off-by: Gilad Ben-Yossef Acked-by: Boris Brezillon --- drivers/crypto/marvell/cesa.c | 3 +-- drivers/crypto/marvell/c

[PATCH v10 02/20] crypto: ccp: use -ENOSPC for transient busy indication

2017-10-18 Thread Gilad Ben-Yossef
Replace -EBUSY with -ENOSPC when reporting transient busy indication in the absence of backlog. Signed-off-by: Gilad Ben-Yossef Reviewed-by: Gary R Hook --- Please squash this patch with the previous one when merging upstream. drivers/crypto/ccp/ccp-crypto-main.c | 8 +++- drivers/crypto

[PATCH v10 01/20] crypto: change transient busy return code to -ENOSPC

2017-10-18 Thread Gilad Ben-Yossef
The crypto API was using the -EBUSY return value to indicate both a hard failure to submit a crypto operation into a transformation provider when the latter was busy and the backlog mechanism was not enabled as well as a notification that the operation was queued into the backlog when the backlog m

[PATCH v10 08/20] crypto: move pub key to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
public_key_verify_signature() is starting an async crypto op and waiting for it to complete. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/asymmetric_keys/public_key.c | 28 1 file changed, 4 insertions(+), 24 deletions(-) d

[PATCH v10 09/20] crypto: move drbg to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
DRBG is starting an async. crypto op and waiting for it complete. Move it over to generic code doing the same. The code now also passes CRYPTO_TFM_REQ_MAY_SLEEP flag indicating crypto request memory allocation may use GFP_KERNEL which should be perfectly fine as the code is obviously sleeping for

[PATCH v10 07/20] crypto: move algif to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
algif starts several async crypto ops and waits for their completion. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/af_alg.c | 27 --- crypto/algif_aead.c | 8 crypto/algif_hash.c | 30 ++-

[PATCH v10 10/20] crypto: move gcm to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
gcm is starting an async. crypto op and waiting for it complete. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/gcm.c | 32 ++-- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/crypto/gcm.c b/crypto/gcm.c index 8

[PATCH v10 11/20] crypto: move testmgr to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
testmgr is starting async. crypto ops and waiting for them to complete. Move it over to generic code doing the same. This also provides a test of the generic crypto async. wait code. Signed-off-by: Gilad Ben-Yossef --- crypto/testmgr.c | 204 ++---

[PATCH v10 13/20] dm: move dm-verity to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
dm-verity is starting async. crypto ops and waiting for them to complete. Move it over to generic code doing the same. This also avoids a future potential data coruption bug created by the use of wait_for_completion_interruptible() without dealing correctly with an interrupt aborting the wait prio

[PATCH v10 04/20] crypto: remove redundant backlog checks on EBUSY

2017-10-18 Thread Gilad Ben-Yossef
Now that -EBUSY return code only indicates backlog queueing we can safely remove the now redundant check for the CRYPTO_TFM_REQ_MAY_BACKLOG flag when -EBUSY is returned. Signed-off-by: Gilad Ben-Yossef --- crypto/ahash.c| 12 +++- crypto/cts.c | 6 ++ crypto/lrw.c

[PATCH v10 14/20] cifs: move to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
cifs starts an async. crypto op and waits for their completion. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Acked-by: Pavel Shilovsky --- fs/cifs/smb2ops.c | 30 -- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/fs/cif

[PATCH v10 16/20] crypto: tcrypt: move to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
tcrypt starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- crypto/tcrypt.c | 84 + 1 file changed, 25 insertions(+), 59 deletions(-) diff --git

[PATCH v10 15/20] ima: move to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
ima starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Acked-by: Mimi Zohar --- security/integrity/ima/ima_crypto.c | 56 +++-- 1 file changed, 17 insertions(+), 39 deleti

[PATCH v10 17/20] crypto: talitos: move to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
The talitos driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Tested-by: Christophe Leroy --- drivers/crypto/talitos.c | 38 +- 1 file changed, 5 insertions(+)

[PATCH v10 18/20] crypto: qce: move to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
The qce driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/qce/sha.c | 30 -- 1 file changed, 4 insertions(+), 26 deletions(-) diff --git a/drivers/c

[PATCH v10 19/20] crypto: mediatek: move to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
The mediatek driver starts several async crypto ops and waits for their completions. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef Acked-by: Ryder Lee --- drivers/crypto/mediatek/mtk-aes.c | 31 +-- 1 file changed, 5 insertions(+), 26 d

[PATCH v10 20/20] crypto: adapt api sample to use async. op wait

2017-10-18 Thread Gilad Ben-Yossef
The code sample is waiting for an async. crypto op completion. Adapt sample to use the new generic infrastructure to do the same. This also fixes a possible data coruption bug created by the use of wait_for_completion_interruptible() without dealing correctly with an interrupt aborting the wait pr

Re: [PATCH] driver core: Make sure device detached from driver before deleting it

2017-10-18 Thread jeffy
Hi Greg, Thanks for your reply. On 10/18/2017 02:19 PM, Greg Kroah-Hartman wrote: On Wed, Oct 18, 2017 at 01:49:26PM +0800, Jeffy Chen wrote: >There are cases we call device_del() without detaching it from the >driver(e.g. spi core del children devices). Why would you do that? Shouldn't that

[PATCH v10 12/20] fscrypt: move to generic async completion

2017-10-18 Thread Gilad Ben-Yossef
fscrypt starts several async. crypto ops and waiting for them to complete. Move it over to generic code doing the same. Signed-off-by: Gilad Ben-Yossef --- fs/crypto/crypto.c | 28 fs/crypto/fname.c | 36 ++-- fs/cry

Re: [PATCH 3.18 00/19] 3.18.76-stable review

2017-10-18 Thread Greg Kroah-Hartman
On Tue, Oct 17, 2017 at 12:12:51PM -0600, Shuah Khan wrote: > On 10/17/2017 08:40 AM, Greg Kroah-Hartman wrote: > > On Mon, Oct 16, 2017 at 06:11:51PM +0200, Greg Kroah-Hartman wrote: > >> This is the start of the stable review cycle for the 3.18.76 release. > >> There are 19 patches in this series

Re: [PATCH RFC 00/10] Intel EPT-Based Sub-page Write Protection Support.

2017-10-18 Thread Christoph Hellwig
> We introduced 2 ioctls to let user application to set/get subpage write > protection bitmap per gfn, each gfn corresponds to a bitmap. > The user application, qemu, or some other security control daemon. will set > the protection bitmap via this ioctl. > the API defined as: > struct kvm_s

Re: [PATCH 3.18 00/19] 3.18.76-stable review

2017-10-18 Thread Greg Kroah-Hartman
On Wed, Oct 18, 2017 at 05:22:08AM +, Harsh Shandilya wrote: > rc2 compiled and booted on msm8996pro Snapdragon platform, no dmesg > regressions. Build time warning from the alsa patch from rc1 is also > resolved. Ah, thanks for confirming that, and that this release works properly for you. g

RE: [PATCH 9/9] KVM: x86: Disable intercept for Intel processor trace MSRs

2017-10-18 Thread Kang, Luwei
> On October 16, 2017 8:14:11 AM EDT, Luwei Kang wrote: > >From: Chao Peng > > > >Trap for Intel processor trace is none sense. Pass through to guest > >directly. > > > And none of those MSRs can be subverted by the guest? That is none of these > should be filtered / audited first? > Curre

[PATCH] perf util: Fix wrong processing when closing evsel fd

2017-10-18 Thread Jin Yao
In current xyarray code, xyarray__max_x() returns max_y, and xyarray__max_y() returns max_x. It's confusing and for code logic it looks not correct. Error happens when closing evsel fd. Let's see this scenario: 1. Allocate an fd (pseudo-code) --- perf_evsel__alloc_fd(

Re: [PATCH] vmxnet3: Use correct minimum MTU value

2017-10-18 Thread Andrew Lunn
On Tue, Oct 17, 2017 at 04:33:43PM +0200, Mohammed Gamal wrote: > Currently the vmxnet3 driver has a minimum MTU value of 60. Which > goes against the RFC791 spec which specifies it at 68. > > Setting MTU to values between 60 <= MTU <= 67 causes the network > interface to lose its IP, and it fails

Re: [PATCH v4 0/6] perf report/script: Support percent and multiple range in --time option

2017-10-18 Thread Jin, Yao
On 10/5/2017 4:50 PM, Jiri Olsa wrote: On Tue, Oct 03, 2017 at 10:22:32PM +0800, Jin Yao wrote: v4: --- 1. Use perf script time style for timestamp printing. Also add with the printing of sample duration. For example: perf report --header time of first sample : 5276531.323099

[PATCH] perf script: Add option to display guest samples in host

2017-10-18 Thread Mengting Zhang
By default, 'perf script' always exclude guest samples in host. However, for some tracepoint events(e.g. sched_switch), the tracing output lost sched_out samples for vcpu thread if 'perf script' filter guest samples, which is confusing. Therefore, it'd be better to display guest samples together wi

[PATCH] spi: Detach spi device from driver when unregister it

2017-10-18 Thread Jeffy Chen
Make sure spi device detached before unregistering it. Signed-off-by: Jeffy Chen --- drivers/spi/spi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 6e65524cbfd9..9114efb2eb8c 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -648,6 +6

Re: [PATCH] kobject: record and send PREV_SEQNUM with uevents

2017-10-18 Thread Peter Rajnoha
On 10/17/2017 03:26 PM, Greg KH wrote: > On Tue, Oct 17, 2017 at 12:04:41PM +0200, Peter Rajnoha wrote: >> On 10/16/2017 04:49 PM, Greg KH wrote: >>> On Mon, Oct 16, 2017 at 04:00:26PM +0200, Peter Rajnoha wrote: On 10/16/2017 03:55 PM, Greg KH wrote: > On Mon, Oct 16, 2017 at 02:35:44PM +

Re: [Patch v6 3/7] slimbus: qcom: Add Qualcomm Slimbus controller driver

2017-10-18 Thread Bjorn Andersson
On Fri 06 Oct 08:51 PDT 2017, srinivas.kandaga...@linaro.org wrote: > From: Sagar Dharia > > This controller driver programs manager, interface, and framer > devices for Qualcomm's slimbus HW block. > Manager component currently implements logical address setting, > and messaging interface. > In

Re: [PATCH] firmware: meson-sm: use generic compatible

2017-10-18 Thread Jerome Brunet
On Tue, 2017-10-17 at 15:50 -0500, Rob Herring wrote: > On Thu, Oct 12, 2017 at 03:47:43PM +0200, Jerome Brunet wrote: > > The meson secure monitor seems to be compatible with more SoCs than > > initially thought. Let's use the most generic compatible he have in > > DT instead of the gxbb specific

Re: [RESEND PATCH v7 1/1] platform: Add driver for RAVE Supervisory Processor

2017-10-18 Thread Johan Hovold
On Mon, Oct 16, 2017 at 09:45:58AM -0700, Andrey Smirnov wrote: > On Mon, Oct 16, 2017 at 7:14 AM, Johan Hovold wrote: > > On Fri, Oct 13, 2017 at 08:56:00AM -0700, Andrey Smirnov wrote: > >> On Fri, Oct 13, 2017 at 12:27 AM, Johan Hovold wrote: > >> > On Thu, Oct 12, 2017 at 11:13:21PM -0700, An

Re: [lkp-robot] [x86/kconfig] 81d3871900: BUG:unable_to_handle_kernel

2017-10-18 Thread Joonsoo Kim
On Tue, Oct 17, 2017 at 09:50:04AM +0200, Thomas Gleixner wrote: > On Tue, 17 Oct 2017, Joonsoo Kim wrote: > > On Wed, Oct 11, 2017 at 12:01:20PM -0500, Josh Poimboeuf wrote: > > > > Looking at the panic, the code in slob_free() was: > > > > > > > >0: e8 8d f7 ff ff callq 0xfff

Re: [PATCH v9 17/17] tools/wmi: add a sample for dell smbios communication over WMI

2017-10-18 Thread Pali Rohár
On Tuesday 17 October 2017 13:22:01 Mario Limonciello wrote: > diff --git a/tools/wmi/dell-smbios-example.c b/tools/wmi/dell-smbios-example.c > new file mode 100644 > index ..69c4dd9c6056 > --- /dev/null > +++ b/tools/wmi/dell-smbios-example.c > @@ -0,0 +1,214 @@ > +/* > + * Sample app

Re: [PATCH] nvmem: meson: use generic compatible

2017-10-18 Thread Jerome Brunet
On Tue, 2017-10-17 at 15:52 -0500, Rob Herring wrote: > On Fri, Oct 13, 2017 at 09:39:13PM +0200, Jerome Brunet wrote: > > On Fri, 2017-10-13 at 21:14 +0200, Martin Blumenstingl wrote: > > > Hi Jerome, > > > > > > On Thu, Oct 12, 2017 at 5:24 PM, Jerome Brunet > > > wrote: > > > > The meson efuse

Re: [PATCH] driver core: Make sure device detached from driver before deleting it

2017-10-18 Thread Greg Kroah-Hartman
On Wed, Oct 18, 2017 at 03:06:54PM +0800, jeffy wrote: > Hi Greg, > > Thanks for your reply. > > On 10/18/2017 02:19 PM, Greg Kroah-Hartman wrote: > > On Wed, Oct 18, 2017 at 01:49:26PM +0800, Jeffy Chen wrote: > > > >There are cases we call device_del() without detaching it from the > > > >drive

9c2fb296dd ("Makefile: move stackprotector availability out of .."): BUG: kernel hang in early-boot stage, last printk:

2017-10-18 Thread kernel test robot
Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 9c2fb296dde16a1bb81277be7b32cec881fe1153 Author: Kees Cook AuthorDate: Mon Oct 16 20:01:58 2017 +0100 Commit: Mark Brown

[PATCH] mm, page_alloc: simplify hot/cold page handling in rmqueue_bulk()

2017-10-18 Thread Vlastimil Babka
The rmqueue_bulk() function fills an empty pcplist with pages from the free list. It tries to preserve increasing order by pfn to the caller, because it leads to better performance with some I/O controllers, as explained in e084b2d95e48 ("page-allocator: preserve PFN ordering when __GFP_COLD is set

[PATCH v5 0/4] stm32 clocksource driver rework

2017-10-18 Thread Benjamin Gaignard
version 5: - rebase on top of timer/core branch - rework commit message of the first patch version 4: - split patch in 3 parts - convert code to timer_of - only use 32 bits timers - add clocksource support version 3: - fix comments done by Daniel - use timer_of helper functions version 2:

[PATCH v5 2/4] clocksource: stm32: only use 32 bits timers

2017-10-18 Thread Benjamin Gaignard
16 bits hardware are not enough accure to be used. Do no allow them to be probed by tested max counter value. Signed-off-by: Benjamin Gaignard --- drivers/clocksource/timer-stm32.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/drivers/clocksource/ti

[PATCH v5 3/4] clocksource: stm32: add clocksource support

2017-10-18 Thread Benjamin Gaignard
Rework driver code to be able to implement clocksource and clockevent on the same hardware block. Before this patch only the counter of the hardware block was used to generate clock events. Now counter will be used to provide a 32 bits clock source and a comparator will provide clock events. Signe

[PATCH v5 4/4] arm: dts: stm32: remove useless clocksource nodes

2017-10-18 Thread Benjamin Gaignard
16 bits timers aren't accurate enough to be used as clocksource, remove them from stm32f4 and stm32f7 devicetree. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f429.dtsi | 32 arch/arm/boot/dts/stm32f746.dtsi | 32 2

[PATCH v5 1/4] clocksource: stm32: convert driver to timer_of

2017-10-18 Thread Benjamin Gaignard
Convert driver to use timer_of helpers. This allow to remove custom proprietary structure. Increase min delta value because if it is too small it could generate too much interrupts and the system will not be able to catch them all. Signed-off-by: Benjamin Gaignard --- drivers/clocksource/Kconfi

[PATCH 1/2] Squashfs: Let the number of fragments cached configurable

2017-10-18 Thread Qixuan Wu
Currently, squashfs fragments' cache size is only determined by config option CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE. Users have no way to change the value when they get the binary kernel. Now make it be configured during booting or inserting module. Signed-off-by: Qixuan Wu Signed-off-by: Chen Jie

[PATCH 0/2] Make squashfs fragments' cache size more configurable

2017-10-18 Thread Qixuan Wu
Hi All, Currently, squashfs fragments' cache size is only determined by config option CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE. Users have no way to change the value when they get the binary kernel. Now make it be configured when booting or inserting module. Actually, it's better that a config option i

[PATCH 2/2] Documentation/kernel-parameters.txt: Add kernel parameter of squashfs fragments' cache size

2017-10-18 Thread Qixuan Wu
Currently, squashfs fragments' cache size is only determined by config option CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE. Users have no way to change the value when they get the binary kernel. Now make it be configured during booting. Signed-off-by: Qixuan Wu --- Documentation/admin-guide/kernel-parame

Re: [tip:locking/urgent] locking/lockdep: Disable cross-release features for now

2017-10-18 Thread Byungchul Park
On Tue, Oct 17, 2017 at 05:03:40PM +0200, Thomas Gleixner wrote: > On Tue, 17 Oct 2017, Ingo Molnar wrote: > > * Thomas Gleixner wrote: > > > On Tue, 17 Oct 2017, Ingo Molnar wrote: > > > > No, please fix performance. > > > > > > You know very well that with the cross release stuff we have to tak

[PATCH] platform/chrome: cros_ec: Array underflow in show_ec_version()

2017-10-18 Thread Dan Carpenter
msg->data[] is a zero size array so we're putting the NUL terminator one character before the start of the array. Fixes: a841178445bb ("mfd: cros_ec: Use a zero-length array for command data") Signed-off-by: Dan Carpenter diff --git a/drivers/platform/chrome/cros_ec_sysfs.c b/drivers/platform/c

Re: [PATCH] mm/mempolicy: add node_empty check in SYSC_migrate_pages

2017-10-18 Thread Vlastimil Babka
+CC linux-api On 10/18/2017 03:37 AM, Yisheng Xie wrote: > As Xiaojun reported the ltp of migrate_pages01 will failed on ARCH arm64 > system whoes has 4 nodes[0...3], all have memory and CONFIG_NODES_SHIFT=2: > > migrate_pages010 TINFO : test_invalid_nodes > migrate_pages01 14 TFAIL :

[PATCH 1/8] mm, page_alloc: Enable/disable IRQs once when freeing a list of pages

2017-10-18 Thread Mel Gorman
Freeing a list of pages current enables/disables IRQs for each page freed. This patch splits freeing a list of pages into two operations -- preparing the pages for freeing and the actual freeing. This is a tradeoff - we're taking two passes of the list to free in exchange for avoiding multiple enab

[PATCH 8/8] mm: Remove __GFP_COLD

2017-10-18 Thread Mel Gorman
As the page free path makes no distinction between cache hot and cold pages, there is no real useful ordering of pages in the free list that allocation requests can take advantage of. Juding from the users of __GFP_COLD, it is likely that a number of them are the result of copying other sites inste

[PATCH 4/8] mm: Only drain per-cpu pagevecs once per pagevec usage

2017-10-18 Thread Mel Gorman
When a pagevec is initialised on the stack, it is generally used multiple times over a range of pages, looking up entries and then releasing them. On each pagevec_release, the per-cpu deferred LRU pagevecs are drained on the grounds the page being released may be on those queues and the pages may b

[PATCH 0/8] Follow-up for speed up page cache truncation v2

2017-10-18 Thread Mel Gorman
Changelog since v1 o Remove "private" parameter from radix tree callbacks o Rebase on v4.14-rc5 + Jan's v2 series o Acked/Reviews by This series is a follow-on for Jan Kara's series "Speed up page cache truncation" series. We both ended up looking at the same problem but saw different problems bas

[PATCH 3/8] mm, truncate: Remove all exceptional entries from pagevec under one lock

2017-10-18 Thread Mel Gorman
During truncate each entry in a pagevec is checked to see if it is an exceptional entry and if so, the shadow entry is cleaned up. This is potentially expensive as multiple entries for a mapping locks/unlocks the tree lock. This batches the operation such that any exceptional entries removed from

[PATCH 5/8] mm, pagevec: Remove cold parameter for pagevecs

2017-10-18 Thread Mel Gorman
Every pagevec_init user claims the pages being released are false even in cases where it is unlikely the pages are hot. As no one cares about the hotness of pages being released to the allocator, just ditch the parameter. No performance impact is expected as the overhead is marginal. The parameter

[PATCH 6/8] mm: Remove cold parameter for release_pages

2017-10-18 Thread Mel Gorman
All callers of release_pages claim the pages being released are cache hot. As no one cares about the hotness of pages being released to the allocator, just ditch the parameter. No performance impact is expected as the overhead is marginal. The parameter is removed simply because it is a bit stupid

[PATCH 2/8] mm, truncate: Do not check mapping for every page being truncated

2017-10-18 Thread Mel Gorman
During truncation, the mapping has already been checked for shmem and dax so it's known that workingset_update_node is required. This patch avoids the checks on mapping for each page being truncated. In all other cases, a lookup helper is used to determine if workingset_update_node() needs to be ca

[PATCH 7/8] mm, Remove cold parameter from free_hot_cold_page*

2017-10-18 Thread Mel Gorman
Most callers users of free_hot_cold_page claim the pages being released are cache hot. The exception is the page reclaim paths where it is likely that enough pages will be freed in the near future that the per-cpu lists are going to be recycled and the cache hotness information is lost. As no one r

Re: [PATCH 08/10] PCI: dwc: artpec6: add support for endpoint mode

2017-10-18 Thread Kishon Vijay Abraham I
Hi Bjorn, On Tuesday 17 October 2017 05:13 AM, Bjorn Helgaas wrote: > On Fri, Oct 13, 2017 at 06:09:11PM +0200, Niklas Cassel wrote: >> Signed-off-by: Niklas Cassel >> --- >> .../devicetree/bindings/pci/axis,artpec6-pcie.txt | 3 +- >> drivers/pci/dwc/Kconfig| 41

Re: [PATCH] mm, page_alloc: simplify hot/cold page handling in rmqueue_bulk()

2017-10-18 Thread Mel Gorman
On Wed, Oct 18, 2017 at 09:35:28AM +0200, Vlastimil Babka wrote: > The rmqueue_bulk() function fills an empty pcplist with pages from the free > list. It tries to preserve increasing order by pfn to the caller, because it > leads to better performance with some I/O controllers, as explained in > e0

Re: [lkp-robot] [x86/mm] c4c3c3c2d0: will-it-scale.per_process_ops -61.0% regression

2017-10-18 Thread Borislav Petkov
On Wed, Oct 18, 2017 at 09:59:02AM +0800, Ye Xiaolong wrote: > 2017-10-14 23:43:02 ./runtest.py context_switch1 295 process 44 > tasks,processes,processes_idle,threads,threads_idle,linear > 0,0,100,0,100,0 > 44,7723745,22.45,0,0.00,0 > > per_process_ops = 7723745 / 44 = 175540 What is that 772374

Re: [PATCH v5 1/4] clocksource: stm32: convert driver to timer_of

2017-10-18 Thread Julien Thierry
Hi Benjamin, On 18/10/17 08:43, Benjamin Gaignard wrote: Convert driver to use timer_of helpers. This allow to remove custom proprietary structure. Increase min delta value because if it is too small it could generate too much interrupts and the system will not be able to catch them all. Signe

Re: [PATCH] perf util: Fix wrong processing when closing evsel fd

2017-10-18 Thread Jiri Olsa
On Wed, Oct 18, 2017 at 11:11:18PM +0800, Jin Yao wrote: SNIP > This change is introduced by "475fb533fb7d" > ("perf evsel: Fix buffer overflow while freeing events") > > This fix is to let xyarray__max_x() return max_x (ncpus) and > let xyarry__max_y() return max_y (nthreads) > > Signed-off-by

Re: [PATCH 08/10] PCI: dwc: artpec6: add support for endpoint mode

2017-10-18 Thread Niklas Cassel
On 10/18/2017 10:03 AM, Kishon Vijay Abraham I wrote: > Hi Bjorn, > > On Tuesday 17 October 2017 05:13 AM, Bjorn Helgaas wrote: >> On Fri, Oct 13, 2017 at 06:09:11PM +0200, Niklas Cassel wrote: >>> Signed-off-by: Niklas Cassel >>> --- >>> .../devicetree/bindings/pci/axis,artpec6-pcie.txt | 3

Re: Draft manpage explaining kernel lockdown

2017-10-18 Thread Michael Kerrisk (man-pages)
Hi David, On 10/05/2017 01:00 PM, David Howells wrote: > Hi Ard, Michael, > > Attached is a draft for a manual page (kernel_lockdown.7) that I intend to > point at from messages emitted when the kernel prohibits something because the > kernel is in 'lockdown' mode, typically triggered by EFI secu

Re: [PATCH v5 2/4] clocksource: stm32: only use 32 bits timers

2017-10-18 Thread Julien Thierry
On 18/10/17 08:43, Benjamin Gaignard wrote: 16 bits hardware are not enough accure to be used. Do no allow them to be probed by tested max counter value. Signed-off-by: Benjamin Gaignard --- drivers/clocksource/timer-stm32.c | 23 +-- 1 file changed, 9 insertions(+), 14

[GIT PULL] KEYS: Fixes

2017-10-18 Thread David Howells
wo patches that Eric asked me to. Thanks, David --- The following changes since commit 9e66317d3c92ddaab330c125dfe9d06eee268aff: Linux 4.14-rc3 (2017-10-01 14:54:54 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/keys-fixe

Re: n900 in next-20170901

2017-10-18 Thread Joonsoo Kim
On Mon, Sep 25, 2017 at 07:54:37AM -0700, Tony Lindgren wrote: > * Joonsoo Kim [170925 01:06]: > > On Thu, Sep 21, 2017 at 10:28:11AM -0700, Tony Lindgren wrote: > > > * Joonsoo Kim [170914 23:55]: > > > > On Wed, Sep 13, 2017 at 09:31:27AM -0700, Tony Lindgren wrote: > > > > > Yes I disabled CON

[PATCH v6 3/7] soc: mediatek: pwrap: add pwrap_write32 for writing in 32-bit mode

2017-10-18 Thread sean.wang
From: Sean Wang Some regulators such as MediaTek MT6380 also has to be written in 32-bit mode. So the patch adds pwrap_write32, rename old pwrap_write into pwrap_write16 and one additional function pointer is introduced for increasing flexibility allowing the determination which mode is used by t

[PATCH v6 6/7] soc: mediatek: pwrap: add common way for setup CS timing extenstion

2017-10-18 Thread sean.wang
From: Sean Wang Multiple platforms would always use their own way handling CS timing extension on the bus which leads to a little bit code duplication. Therefore, the patch groups the similar logic to handle CS timing extension into the common function which allows the following SoCs have more re

[PATCH v6 7/7] soc: mediatek: pwrap: add support for MT7622 SoC

2017-10-18 Thread sean.wang
From: Chenglin Xu Add the registers, callbacks and data structures required to make the PMIC wrapper work on MT7622. Signed-off-by: Chenglin Xu Signed-off-by: Chen Zhong Signed-off-by: Sean Wang --- drivers/soc/mediatek/mtk-pmic-wrap.c | 170 +++ 1 file change

[PATCH v6 0/7] Add PMIC support to MediaTek MT7622 SoC

2017-10-18 Thread sean.wang
From: Sean Wang Changes since v5: - drop the merged patch - add a patch for common way handling for setup CS timing extension - unify the comment style Changes since v4: - for patch 1/7 and 5/7, add the description about how to bind pmic wrapper with MT6380. - for patch 3/7, add more comments e

[PATCH v6 5/7] soc: mediatek: pwrap: add MediaTek MT6380 as one slave of pwrap

2017-10-18 Thread sean.wang
From: Sean Wang Add MediaTek MT6380 regulator becoming one of PMIC wrapper slave and also add extra new regmap_config of 32-bit mode for MT6380 since old regmap_config of 16-bit mode can't be fit into the need. Signed-off-by: Chenglin Xu Signed-off-by: Chen Zhong Signed-off-by: Sean Wang ---

[PATCH v6 4/7] soc: mediatek: pwrap: refactor pwrap_init for the various PMIC types

2017-10-18 Thread sean.wang
From: Sean Wang pwrap initialization is highly associated with the base SoC and the target PMICs, so slight refactorization is made here for allowing pwrap_init to run on those PMICs with different capability from the previous MediaTek PMICs and the determination for the enablement of the pwrap c

[PATCH] soc: qcom: remove unused label

2017-10-18 Thread Arnd Bergmann
The newly added driver comes with a harmless warning: drivers/soc/qcom/rmtfs_mem.c: In function 'qcom_rmtfs_mem_probe': drivers/soc/qcom/rmtfs_mem.c:211:1: error: label 'remove_cdev' defined but not used [-Werror=unused-label] This removes the unused label to avoid the warning. Fixes: 702baebb8

[PATCH v6 1/7] dt-bindings: arm: mediatek: add MT7622 string to the PMIC wrapper doc

2017-10-18 Thread sean.wang
From: Sean Wang Signed-off-by: Chenglin Xu Signed-off-by: Sean Wang Acked-by: Rob Herring --- Documentation/devicetree/bindings/soc/mediatek/pwrap.txt | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/mediatek/pwrap.txt b/Documenta

[PATCH v2 1/8] mfd: axp20x: Add axp20x-regulator cell for AXP813

2017-10-18 Thread Chen-Yu Tsai
Now that axp20x-regulator supports AXP813, we can add a cell for it to enable it. Signed-off-by: Chen-Yu Tsai Tested-by: Maxime Ripard Acked-by: Maxime Ripard Acked-for-MFD-by: Lee Jones --- drivers/mfd/axp20x.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mfd/axp20x.c b/driv

[PATCH v6 2/7] soc: mediatek: pwrap: add pwrap_read32 for reading in 32-bit mode

2017-10-18 Thread sean.wang
From: Sean Wang Some regulators such as MediaTek MT6380 has to be read in 32-bit mode. So the patch adds pwrap_read32, rename old pwrap_read into pwrap_read16 and one function pointer is introduced for increasing flexibility allowing the determination which mode is used by the pwrap slave detecti

[PATCH v2 7/8] ARM: dts: sun8i: a83t: cubietruck-plus: Enable AP6330 WiFi on mmc1

2017-10-18 Thread Chen-Yu Tsai
The WiFi side of the AP6330 WiFi/BT combo module is connected to mmc1. There are also GPIOs for enable and interrupts. An external clock from the AC100 RTC is also used. Enable WiFi on this board by enabling mmc1 and adding the power sequencing clocks and GPIO, as well as the chip's interrupt line

[PATCH v2 8/8] ARM: dts: sun8i: a83t: bananapi-m3: Enable AP6212 WiFi on mmc1

2017-10-18 Thread Chen-Yu Tsai
The WiFi side of the AP6212 WiFi/BT combo module is connected to mmc1. There are also GPIOs for enable and interrupts. An external clock from the AC100 RTC is also used. Enable WiFi on this board by enabling mmc1 and adding the power sequencing clocks and GPIO, as well as the chip's interrupt line

[PATCH v2 5/8] ARM: dts: sun8i: a83t: allwinner-h8homlet-v2: Add AXP818 regulator nodes

2017-10-18 Thread Chen-Yu Tsai
This patch adds device nodes for all the regulators of the AXP818 PMIC. Sunxi common regulators are removed, and USB VBUS regulators are added. Signed-off-by: Chen-Yu Tsai --- .../boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dts | 147 +++-- 1 file changed, 134 insertions(+), 13 de

[PATCH] mm: mark mm_pgtables_bytes() argument as const

2017-10-18 Thread Arnd Bergmann
The newly introduced mm_pgtables_bytes() function has two definitions with slightly different prototypes. The one used for CONFIG_MMU=n causes a compile-time warning: In file included from include/linux/kernel.h:13:0, from mm/debug.c:8: mm/debug.c: In function 'dump_mm': mm/debug.

Re: [PATCH] driver core: Make sure device detached from driver before deleting it

2017-10-18 Thread jeffy
Hi Greg, On 10/18/2017 03:33 PM, Greg Kroah-Hartman wrote: The SPI core should have some internal housekeeping to do there as well, right? Is this the only bus that gets this "wrong"? hmm, i checked i2c code, it has the same issue: void i2c_unregister_device(struct i2c_client *client) {

[PATCH v2 6/8] ARM: dts: sun8i: a83t: Move mmc1 pinctrl setting to dtsi file

2017-10-18 Thread Chen-Yu Tsai
mmc1 only has 1 possible pinmux setting. Move any settings to the dtsi file and set it by default. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 2 -- arch/arm/boot/dts/sun8i-a83t.dtsi | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/a

[PATCH net-next] net: sched: cls_u32: use hash_ptr() for tc_u_hash

2017-10-18 Thread Arnd Bergmann
After the change to the tp hash, we now get a build warning on 32-bit architectures: net/sched/cls_u32.c: In function 'tc_u_hash': net/sched/cls_u32.c:338:17: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] return hash_64((u64) tp->chain->block, U32_HASH_SHIF

[PATCH v2 0/8] ARM: sun8i: a83t: Enable AXP813/AXP818 regulators

2017-10-18 Thread Chen-Yu Tsai
Hi everyone, This series was originally name "regulator: axp20x: Add support for AXP813/818 regulators". It adds support for the X-Powers AXP813/818 [1] PMICs' regulators. The series is quite straightforward. Changes since v1: - Regulator driver patches were merged and now dropped from the ser

Re: [PATCH 0/3] irq-sim updates for 4.15

2017-10-18 Thread Bartosz Golaszewski
2017-10-05 14:44 GMT+02:00 Bartosz Golaszewski : > I initially submitted patch 2/3 as a standalone, but it turned out > during some development for iio that some additional functionalities > would be useful as well. > > The first patch pulls in slab.h directly instead of relying on the > include fr

[PATCH] perf test shell: trace+probe_libc_inet_pton.sh: be compatible with debian/ubuntu

2017-10-18 Thread Li Zhijian
at debian/ubuntu, libc.so is located at /lib/x86_64-linux-gnu/libc-2.23.so it outputs like when testing: --- PING ::1(::1) 56 data bytes 64 bytes from ::1: icmp_seq=1 ttl=64 time=0.040 ms --- ::1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/av

[PATCH] rcu: do not include rtmutex_common.h unconditionally

2017-10-18 Thread Sebastian Andrzej Siewior
Since commit bcda31a26594 ("rcu: Suppress lockdep false-positive ->boost_mtx complaints") the rtmutex_common.h is included unconditionally. This break CONFIG_FUTEX=n configs which do not have CONFIG_RT_MUTEX enabled which leads to the lack of certain members in task_struct which are accessed in rtm

Re: [PATCH] media: vb2: unify calling of set_page_dirty_lock

2017-10-18 Thread Stanimir Varbanov
On 10/17/2017 05:19 PM, Nicolas Dufresne wrote: > Le mardi 17 octobre 2017 à 13:14 +0300, Sakari Ailus a écrit : >> On Sun, Oct 15, 2017 at 07:09:24PM -0400, Nicolas Dufresne wrote: >>> Le dimanche 15 octobre 2017 à 23:40 +0300, Sakari Ailus a écrit : Hi Nicolas, On Tue, Oct 10, 20

[PATCH v2 4/8] ARM: dts: sun8i: a83t: bananapi-m3: Add AXP813 regulator nodes

2017-10-18 Thread Chen-Yu Tsai
This patch adds device nodes for all the regulators of the AXP813 PMIC. Sunxi common regulators are removed, and USB VBUS regulators are added. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 141 +-- 1 file changed, 132 insertions(+), 9 del

[PATCH v2 3/8] ARM: dts: sun8i: a83t: cubietruck-plus: Add AXP818 regulator nodes

2017-10-18 Thread Chen-Yu Tsai
This patch adds device nodes for all the regulators of the AXP818 PMIC. Sunxi common regulators are removed, and USB VBUS regulators are added. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 167 +-- 1 file changed, 155 insertions(+), 12 de

[PATCH v2 2/8] ARM: dts: sunxi: Add dtsi for AXP81x PMIC

2017-10-18 Thread Chen-Yu Tsai
The AXP81x family of PMIC is used with the Allwinner A83T and H8 SoCs. This includes the AXP813 and AXP818. There is no discernible difference except the labeling. The AXP813 is paired with the A83T, while the AXP818 is paired with the H8. This patch adds a dtsi file for all the common bindings fo

PCIe legacy interrupts blocked on Intel Apollo Lake platforms

2017-10-18 Thread Daniel Drake
[retitling and re-summarizing in hope of attention from Intel] Andy / Rafael, Thomas Gleixner suggested that you might be able to help with a nasty issue related to Intel Apollo Lake platforms - or you can put us in contact with another relevant person at Intel. On Thu, Oct 5, 2017 at 6:13 PM, T

Re: [PATCH] mm, page_alloc: simplify hot/cold page handling in rmqueue_bulk()

2017-10-18 Thread Vlastimil Babka
On 10/18/2017 10:06 AM, Mel Gorman wrote: > On Wed, Oct 18, 2017 at 09:35:28AM +0200, Vlastimil Babka wrote: >> The code for filling the pcplists in order determined by the cold flag also >> seems unnecessarily hard to follow. It's sufficient to either use list_add() >> or list_add_tail(), but the

Re: [PATCH net-next] net: sched: cls_u32: use hash_ptr() for tc_u_hash

2017-10-18 Thread Jiri Pirko
Wed, Oct 18, 2017 at 10:33:37AM CEST, a...@arndb.de wrote: >After the change to the tp hash, we now get a build warning >on 32-bit architectures: > >net/sched/cls_u32.c: In function 'tc_u_hash': >net/sched/cls_u32.c:338:17: error: cast from pointer to integer of different >size [-Werror=pointer-to

  1   2   3   4   5   6   7   8   9   10   >