[PATCH] mfd: pm8xxx: Make elegible for COMPILE_TEST

2017-11-29 Thread Linus Walleij
This should be enabled so that we get full compile coverage of the PM8xxx MFD core with the different subdrivers. Tested on the build servers. Suggested-by: Jonathan Cameron Signed-off-by: Linus Walleij --- drivers/mfd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH] leaking_addresses: add support for 32-bit kernel addresses

2017-11-29 Thread Alexander Kapshuk
On Tue, Nov 28, 2017 at 11:10 PM, Tobin C. Harding wrote: > On Tue, Nov 28, 2017 at 03:16:24PM +0200, Alexander Kapshuk wrote: >> On Tue, Nov 28, 2017 at 8:32 AM, Tobin C. Harding wrote: >> > Currently, leaking_addresses.pl only supports scanning 64 bit >> > architectures. This is due to how the

RE: [PATCH 3/4] dm: convert dm_dev_internal.count from atomic_t to refcount_t

2017-11-29 Thread Reshetova, Elena
> On Tue, Nov 28 2017 at 5:07am -0500, > Reshetova, Elena wrote: > > > > > > On Fri, Nov 24, 2017 at 2:36 AM, Reshetova, Elena > > > wrote: > > > >> On Fri, Oct 20, 2017 at 10:37:38AM +0300, Elena Reshetova wrote: > > > >> > } else if (dd->dm_dev->mode != (mode | dd->dm_dev->mode)) { > > >

RE: [PATCH] i2c: core: decrease reference count of device node in i2c_unregister_device

2017-11-29 Thread Wang, Alan 1. (NSB - CN/Hangzhou)
Hi Wolfram, In my understand, the of_node_put(bus) is to of_get_child_by_name((adap->dev.of_node, "i2c-bus") or of_node_get(adap->dev.of_node). What I said is the children of "bus" increased by "info.of_node = of_node_get(node)" in function of_i2c_register_device. My description in last mail

Re: [Question] does there have another fix for ldisc crash instead of "tty: Fix ldisc crash on reopened tty" ?

2017-11-29 Thread Greg KH
On Wed, Nov 29, 2017 at 03:57:51PM +0800, Tan Xiaojun wrote: > Hi, all, > > I test in a Arm64 fpga board (Hisilicon D06 fpga) with > kernel-stable-4.14.2, then I get a panic log attached in the end. > > I found this problem try to be fixed before by the patch "tty: Fix > ldisc crash

Re: [PATCH 4.4 00/96] 4.4.103-stable review

2017-11-29 Thread Greg Kroah-Hartman
On Tue, Nov 28, 2017 at 11:27:24AM -0700, Nathan Chancellor wrote: > Merged, compiled, and flashed on my Pixel 2 XL and OnePlus 5. No > initial issues noticed in general usage or dmesg. Wonderful, thanks for testing and letting me know. greg k-h

Re: [Lkft-triage] [PATCH 4.14 000/193] 4.14.3-stable review

2017-11-29 Thread Greg Kroah-Hartman
On Tue, Nov 28, 2017 at 11:57:22PM +0530, Naresh Kamboju wrote: > On 28 November 2017 at 15:54, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.14.3 release. > > There are 193 patches in this series, all will be posted as a response > > to this one. If anyon

Re: [PATCH 4.4 00/96] 4.4.103-stable review

2017-11-29 Thread Greg Kroah-Hartman
On Tue, Nov 28, 2017 at 10:56:45PM +0530, Naresh Kamboju wrote: > On 28 November 2017 at 15:52, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.4.103 release. > > There are 96 patches in this series, all will be posted as a response > > to this one. If anyon

Re: [Lkft-triage] [PATCH 4.9 000/138] 4.9.66-stable review

2017-11-29 Thread Greg Kroah-Hartman
On Tue, Nov 28, 2017 at 11:07:01PM +0530, Naresh Kamboju wrote: > On 28 November 2017 at 15:51, Greg Kroah-Hartman > wrote: > > This is the start of the stable review cycle for the 4.9.66 release. > > There are 138 patches in this series, all will be posted as a response > > to this one. If anyon

Re: [PATCH/RFC] RDMA/iwpm: Fix uninitialized error code in iwpm_send_mapinfo()

2017-11-29 Thread Geert Uytterhoeven
Hi Jason, On Wed, Nov 29, 2017 at 12:08 AM, Jason Gunthorpe wrote: > On Thu, Nov 16, 2017 at 11:26:04AM +0100, Geert Uytterhoeven wrote: >> With gcc-4.1.2: >> >> drivers/infiniband/core/iwpm_util.c: In function ‘iwpm_send_mapinfo’: >> drivers/infiniband/core/iwpm_util.c:647: warning: ‘ret

Re: [RFC][PATCH] drm: adv7511/33: Fix adv7511_cec_init() failure handling

2017-11-29 Thread Arnd Bergmann
On Wed, Nov 29, 2017 at 6:05 AM, Archit Taneja wrote: > On 11/29/2017 03:02 AM, John Stultz wrote: >> On Sun, Nov 26, 2017 at 4:56 AM, Archit Taneja >> wrote: >>> Apart from this, we should also move adv7511_cec_init() up in the probe >>> so that it's called before the drm_bridge is registered.

Re: [PATCH] Support TrackStick of Thinkpad L570

2017-11-29 Thread Pali Rohár
On Wednesday 29 November 2017 16:01:05 Masaki Ota wrote: > From: Masaki Ota > - The issue is that Thinkpad L570 TrackStick does not work. Because the main > interface of Thinkpad L570 device is SMBus, so ALPS overlooked PS2 interface > Firmware setting of TrackStick. The detail is that TrackStic

Re: [PATCH 3/5] PCI: cadence: Add host driver for Cadence PCIe controller

2017-11-29 Thread Thomas Petazzoni
Hello, On Tue, 28 Nov 2017 14:41:14 -0600, Bjorn Helgaas wrote: > > + * struct cdns_pcie_rc_data - hardware specific data > > "cdns" is a weird abbreviation for "Cadence", since "Cadence" doesn't > contain an "s". cdns is the official Device Tree binding vendor prefix for Cadence: $ grep Cad

Re: [PATCH] gpio: gpio-stmpe: make various char arrays static const, shrinks object size

2017-11-29 Thread walter harms
Am 28.11.2017 19:23, schrieb Colin King: > From: Colin Ian King > > Don't populate the read-only arrays edge_det_values, rise_values and > fall_values on the stack but instead make them static and constify them. > Makes the object code smaller by over 240 bytes: > > Before: >text

Re: [PATCH] x86/syscalls: Mark expected switch fall-throughs

2017-11-29 Thread Geert Uytterhoeven
Hi Joe, On Wed, Nov 29, 2017 at 2:07 AM, Joe Perches wrote: > On Tue, 2017-11-28 at 14:37 -0600, Gustavo A. R. Silva wrote: >> Quoting Linus Torvalds : >> > On Tue, Nov 28, 2017 at 11:00 AM, Alan Cox >> > wrote: >> > > The notation in question has been standard in tools like lint since the >> >

Re: [PATCH/RFC] RDMA/iwpm: Fix uninitialized error code in iwpm_send_mapinfo()

2017-11-29 Thread Arnd Bergmann
On Wed, Nov 29, 2017 at 9:10 AM, Geert Uytterhoeven wrote: > Hi Jason, > > On Wed, Nov 29, 2017 at 12:08 AM, Jason Gunthorpe wrote: >> On Thu, Nov 16, 2017 at 11:26:04AM +0100, Geert Uytterhoeven wrote: >>> With gcc-4.1.2: >>> >>> drivers/infiniband/core/iwpm_util.c: In function ‘iwpm_send_ma

Re: [RFC PATCH] KVM: x86: Allow Qemu/KVM to use PVH entry point

2017-11-29 Thread Juergen Gross
On 28/11/17 20:34, Maran Wilson wrote: > For certain applications it is desirable to rapidly boot a KVM virtual > machine. In cases where legacy hardware and software support within the > guest is not needed, Qemu should be able to boot directly into the > uncompressed Linux kernel binary without t

RE: [PATCH] PM / runtime: Drop children check from __pm_runtime_set_status()

2017-11-29 Thread Yoshihiro Shimoda
Hi, > From: Ulf Hansson, Sent: Wednesday, November 29, 2017 2:23 AM > > On 28 November 2017 at 13:48, Yoshihiro Shimoda > wrote: > > Hi Geert-san, > > > >> From: Geert Uytterhoeven, Sent: Tuesday, November 28, 2017 7:58 PM > >> > >> Hi Rafael, Shimoda-san, > >> > >> On Sun, Nov 12, 2017 at 1:27

RE: [PATCH v4 00/12] [dt-bindings] [media] Add document file and driver for Sony CXD2880 DVB-T2/T tuner + demodulator

2017-11-29 Thread Takiguchi, Yasunari
Dear Mauro Thanks for your support and reply. I understood current status. We will wait for community's feedback. Regards and Thanks, Takiguchi

RE: [PATCH] PM / runtime: Drop children check from __pm_runtime_set_status()

2017-11-29 Thread Yoshihiro Shimoda
Hi, > From: Alan Stern, Sent: Wednesday, November 29, 2017 12:07 AM > > On Tue, 28 Nov 2017, Yoshihiro Shimoda wrote: > > > Hi Geert-san, > > > > > From: Geert Uytterhoeven, Sent: Tuesday, November 28, 2017 7:58 PM > > > > > > Hi Rafael, Shimoda-san, > > > > > > On Sun, Nov 12, 2017 at 1:27 AM,

Re: [PATCH v2 1/3] scsi: arcmsr: Add driver module parameter msi_enable

2017-11-29 Thread Ching Huang
On Tue, 2017-11-28 at 05:58 -0800, Christoph Hellwig wrote: > On Tue, Nov 28, 2017 at 09:28:44AM +0800, Ching Huang wrote: > > From: Ching Huang > > > > Add module parameter msi_enable to has a chance to disable msi interrupt if > > between controller and system has > > msi INT compatible issue.

Re: [PATCH/RFC] RDMA/iwpm: Fix uninitialized error code in iwpm_send_mapinfo()

2017-11-29 Thread Geert Uytterhoeven
Hi Arnd, On Wed, Nov 29, 2017 at 9:20 AM, Arnd Bergmann wrote: > On Wed, Nov 29, 2017 at 9:10 AM, Geert Uytterhoeven > wrote: >> On Wed, Nov 29, 2017 at 12:08 AM, Jason Gunthorpe wrote: >>> On Thu, Nov 16, 2017 at 11:26:04AM +0100, Geert Uytterhoeven wrote: With gcc-4.1.2: dr

Re: Question to perf annotate handling mov ...(%rip) instructions

2017-11-29 Thread Jiri Olsa
On Tue, Nov 28, 2017 at 11:50:30AM -0300, Arnaldo Carvalho de Melo wrote: SNIP > > Function mov__parse() calls comment__symbol() which contains: > > > >static int comment__symbol(char *raw, char *comment, u64 *addrp, char > > **namep) > >{ > > char *endptr, *name, *t; > > > >

Re: [Question] does there have another fix for ldisc crash instead of "tty: Fix ldisc crash on reopened tty" ?

2017-11-29 Thread Tan Xiaojun
On 2017/11/29 16:02, Greg KH wrote: > On Wed, Nov 29, 2017 at 03:57:51PM +0800, Tan Xiaojun wrote: >> Hi, all, >> >> I test in a Arm64 fpga board (Hisilicon D06 fpga) with >> kernel-stable-4.14.2, then I get a panic log attached in the end. >> >> I found this problem try to be fixed befo

Re: [PATCH] mm: disable `vm.max_map_count' sysctl limit

2017-11-29 Thread Michal Hocko
On Tue 28-11-17 21:14:23, John Hubbard wrote: > On 11/28/2017 12:12 AM, Michal Hocko wrote: > > On Mon 27-11-17 15:26:27, John Hubbard wrote: > > [...] > >> Let me add a belated report, then: we ran into this limit while > >> implementing > >> an early version of Unified Memory[1], back in 2013.

[PATCH] trace/xdp: fix compile warning: ‘struct bpf_map’ declared inside parameter list

2017-11-29 Thread Xie XiuQi
We meet this compile warning, which caused by missing bpf.h in xdp.h. In file included from ./include/trace/events/xdp.h:10:0, from ./include/linux/bpf_trace.h:6, from drivers/net/ethernet/intel/i40e/i40e_txrx.c:29: ./include/trace/events/xdp.h:93:17: warning: ‘st

[PATCH] Support TrackStick of Thinkpad L570

2017-11-29 Thread Masaki Ota
From: Masaki Ota - The issue is that Thinkpad L570 TrackStick does not work. Because the main interface of Thinkpad L570 device is SMBus, so ALPS overlooked PS2 interface Firmware setting of TrackStick. The detail is that TrackStick otp bit is disabled. - Add the code that checks 0xD7 address v

Re: [PATCH v4 1/2] ALSA: pcm: add SNDRV_PCM_FORMAT_{S,U}20

2017-11-29 Thread Takashi Iwai
On Mon, 27 Nov 2017 23:33:29 +0100, Maciej S. Szmigiero wrote: > > This format is similar to existing SNDRV_PCM_FORMAT_{S,U}20_3 that keep > 20-bit PCM samples in 3 bytes, however i.MX6 platform SSI FIFO does not > allow 3-byte accesses (including DMA) so a 4-byte (more conventional) > format is

Re: [PATCH V3 22/29] [media] atomisp: deprecate pci_get_bus_and_slot()

2017-11-29 Thread Sakari Ailus
Hi Sinan, On Mon, Nov 27, 2017 at 11:57:59AM -0500, Sinan Kaya wrote: > diff --git > a/drivers/staging/media/atomisp/platform/intel-mid/intel_mid_pcihelpers.c > b/drivers/staging/media/atomisp/platform/intel-mid/intel_mid_pcihelpers.c > index 4631b1d..51dcef57 100644 > --- a/drivers/staging/medi

[PATCH v2 3/3] ocfs2: nowait aio support

2017-11-29 Thread Gang He
Return -EAGAIN if any of the following checks fail for direct I/O with nowait flag: Can not get the related locks immediately, Blocks are not allocated at the write location, it will trigger block allocation, this will block IO operations. Signed-off-by: Gang He --- fs/ocfs2/dir.c | 2 +

[PATCH v2 0/3] ocfs2: add nowait aio support

2017-11-29 Thread Gang He
As you know, VFS layer has introduced non-block aio flag IOCB_NOWAIT, which informs kernel to bail out if an AIO request will block for reasons such as file allocations, or a writeback triggered, or would block while allocating requests while performing direct I/O. Subsequent, pwritev2/preadv2 also

[PATCH v2 1/3] ocfs2: add ocfs2_try_rw_lock and ocfs2_try_inode_lock

2017-11-29 Thread Gang He
Add ocfs2_try_rw_lock and ocfs2_try_inode_lock functions, which will be used in non-block IO scenarios. Signed-off-by: Gang He --- fs/ocfs2/dlmglue.c | 21 + fs/ocfs2/dlmglue.h | 4 2 files changed, 25 insertions(+) diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c

[PATCH v2 2/3] ocfs2: add ocfs2_overwrite_io function

2017-11-29 Thread Gang He
Add ocfs2_overwrite_io function, which is used to judge if overwrite allocated blocks, otherwise, the write will bring extra block allocation overhead. Signed-off-by: Gang He --- fs/ocfs2/extent_map.c | 41 + fs/ocfs2/extent_map.h | 3 +++ 2 files changed

[PATCH 1/8] hw_breakpoint: Pass bp_type directly as find_slot_idx argument

2017-11-29 Thread Jiri Olsa
Passing bp_type directly as find_slot_idx argument, so we don't need to have whole event to get the breakpoint slot type. It will be used in following changes. Signed-off-by: Jiri Olsa --- kernel/events/hw_breakpoint.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH 7/8] perf/core: fast breakpoint modification via _IOC_MODIFY_ATTRIBUTES.

2017-11-29 Thread Jiri Olsa
From: Milind Chabbi Problem and motivation: Once a breakpoint perf event (PERF_TYPE_BREAKPOINT) is created, there is no flexibility to change the breakpoint type (bp_type), breakpoint address (bp_addr), or breakpoint length (bp_len). The only option is to close the perf event and configure a new

[PATCH 4/8] hw_breakpoint: Factor out __modify_user_hw_breakpoint function

2017-11-29 Thread Jiri Olsa
Moving out the all the functionality without the events disabling/enabling calls, because we want to call another disabling/enabling functions in following change. Signed-off-by: Jiri Olsa --- kernel/events/hw_breakpoint.c | 46 +++ 1 file changed, 29 inse

[PATCH 5/8] hw_breakpoint: Add perf_event_attr fields check in __modify_user_hw_breakpoint

2017-11-29 Thread Jiri Olsa
And rename it to modify_user_hw_breakpoint_check. We are about to use modify_user_hw_breakpoint_check for user space breakpoints modification, we must be very strict to check only the fields we can change have changed. As Peter explained: Suppose someone does: attr = malloc(sizeof(*attr

[PATCH 6/8] perf/core: Move perf_event_attr::sample_max_stack into perf_copy_attr

2017-11-29 Thread Jiri Olsa
Moving sample_max_stack check and setup into perf_copy_attr, so we have all perf_event_attr initial setup in one place and can easily compare attrs in the new ioctl introduced in following change. Signed-off-by: Jiri Olsa --- kernel/events/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 de

[PATCH 8/8] perf tests: Add breakpoint accounting/modify test

2017-11-29 Thread Jiri Olsa
Adding test that: - detects the number of watch/break-points, skip test if any is missing - detects PERF_EVENT_IOC_MODIFY_ATTRIBUTES ioctl, skip test if it's missing - detects if watchpoints and breakpoints share same slots - create all possible watchpoints on cpu 0 - change o

Re: [PATCH/RFC] RDMA/iwpm: Fix uninitialized error code in iwpm_send_mapinfo()

2017-11-29 Thread Arnd Bergmann
On Wed, Nov 29, 2017 at 9:24 AM, Geert Uytterhoeven wrote: > Hi Arnd, > > On Wed, Nov 29, 2017 at 9:20 AM, Arnd Bergmann wrote: >> On Wed, Nov 29, 2017 at 9:10 AM, Geert Uytterhoeven >> wrote: >>> On Wed, Nov 29, 2017 at 12:08 AM, Jason Gunthorpe wrote: On Thu, Nov 16, 2017 at 11:26:04AM +

Re: [PATCH v2 25/35] nds32: Build infrastructure

2017-11-29 Thread Greentime Hu
2017-11-27 22:21 GMT+08:00 Arnd Bergmann : > On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu wrote: > >> diff --git a/arch/nds32/Kconfig.cpu b/arch/nds32/Kconfig.cpu >> new file mode 100644 >> index 000..6b4013f >> --- /dev/null >> +++ b/arch/nds32/Kconfig.cpu >> @@ -0,0 +1,131 @@ >> +comment "P

Re: [PATCH v3] staging: fsl-mc: move bus driver out of staging

2017-11-29 Thread Laurentiu Tudor
Hi Andrew, On 11/28/2017 06:04 PM, Andrew Lunn wrote: > On Tue, Nov 28, 2017 at 05:27:57PM +0200, laurentiu.tu...@nxp.com wrote: >> diff --git a/drivers/staging/fsl-mc/bus/dpmcp.h b/drivers/bus/fsl-mc/dpmcp.h >> similarity index 100% >> rename from drivers/staging/fsl-mc/bus/dpmcp.h >> rename to d

[PATCH 3/8] hw_breakpoint: Add modify_bp_slot function

2017-11-29 Thread Jiri Olsa
Adding modify_bp_slot function to keep slot numbers correct when changing the breakpoint type. Using existing __release_bp_slot/__reserve_bp_slot call sequence to update the slot counts. Signed-off-by: Jiri Olsa --- kernel/events/hw_breakpoint.c | 46 ---

Re: [PATCH v2 04/11] media: rkisp1: add Rockchip MIPI Synopsys DPHY driver

2017-11-29 Thread Jacob Chen
Hi Hans, 2017-11-27 22:15 GMT+08:00 Jose Abreu : > ++ Joao, ++ Luis > > Hi Hans, > > We will take a look into this. Thanks for pointing this out! > > Best Regards, > Jose Miguel Abreu > > On 27-11-2017 12:01, Hans Verkuil wrote: >> I'm CC-ing Jose Abreu from Synopsys to this. Jose, can you or a co

[PATCH 2/8] hw_breakpoint: Pass bp_type argument to __reserve_bp_slot|__release_bp_slot

2017-11-29 Thread Jiri Olsa
Passing bp_type argument to __reserve_bp_slot and __release_bp_slot functions, so we can pass another bp_type than the one defined in bp->attr.bp_type. This will be handy in following change that fixes breakpoint slot counts during its modification. Signed-off-by: Jiri Olsa --- kernel/events/hw_

[PATCHv2 0/8] hw_breakpoint: Breakpoint modification fixes and new modify ioctl

2017-11-29 Thread Jiri Olsa
hi, Milind Chabbi introduced new ioctl interface to change live breakpoint [1]. It allows to change its bp_addr, bp_len and bp_type throught new ioctl for perf breakpoint event. We already have a kernel interface for this via modify_user_hw_breakpoint function. This function however does not upda

Re: linux-next: Signed-off-by missing for commits in the staging tree

2017-11-29 Thread Christian Gromm
On 28.11.2017 20:41, Greg KH wrote: On Tue, Nov 28, 2017 at 08:16:51AM +1100, Stephen Rothwell wrote: Hi Greg, Commits 2525ef557c73 ("staging: most: update driver usage file") e7e3ce04588c ("staging: most: core: fix list traversing") are missing a Signed-off-by from their author. Ugh,

[PATCH RFC 0/4] crypto: engine - Permit to enqueue all async requests

2017-11-29 Thread Corentin Labbe
Hello The current crypto_engine support only ahash and ablkcipher. My first patch which try to add skcipher was Nacked, it will add too many functions and adding other algs(aead, asymetric_key) will make the situation worst. This patchset remove all algs specific stuff and now only process gener

[PATCH RFC 3/4] crypto: virtio: convert to new crypto engine API

2017-11-29 Thread Corentin Labbe
This patch convert the driver to the new crypto engine API. Signed-off-by: Corentin Labbe --- drivers/crypto/virtio/virtio_crypto_algs.c | 15 ++- drivers/crypto/virtio/virtio_crypto_common.h | 2 +- drivers/crypto/virtio/virtio_crypto_core.c | 3 --- 3 files changed, 11 insert

[PATCH RFC 4/4] crypto: stm32: convert to the new crypto engine API

2017-11-29 Thread Corentin Labbe
This patch convert the driver to the new crypto engine API. Signed-off-by: Corentin Labbe --- drivers/crypto/stm32/stm32-hash.c | 22 +++--- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32-hash.c index

[PATCH RFC 2/4] crypto: omap: convert to new crypto engine API

2017-11-29 Thread Corentin Labbe
This patch convert the driver to the new crypto engine API. Signed-off-by: Corentin Labbe --- drivers/crypto/omap-aes.c | 21 +++-- drivers/crypto/omap-aes.h | 3 +++ drivers/crypto/omap-des.c | 24 ++-- 3 files changed, 36 insertions(+), 12 deletions(-) dif

[PATCH RFC 1/4] crypto: engine - Permit to enqueue all async requests

2017-11-29 Thread Corentin Labbe
The crypto engine could actually only enqueue hash and ablkcipher request. This patch permit it to enqueue any type of crypto_async_request. Signed-off-by: Corentin Labbe --- crypto/crypto_engine.c | 188 +++- include/crypto/engine.h | 46 +--

Re: [PATCH] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-11-29 Thread Paolo Bonzini
On 29/11/2017 07:07, Wanpeng Li wrote: > From: Wanpeng Li > > MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored > each time during world switch. Jim from Google pointed out that > when running schbench in L2, vmx_vcpu_run will occupy 4% cpu time, > and the 25% of vmx_vcpu_run c

[PATCH 1/2] usb: mtu3: fix error code for getting extcon device

2017-11-29 Thread Chunfeng Yun
When failing to get extcon device, extcon_get_edev_by_phandle() may return different error codes, but not only -EPROBE_DEFER, so can't always return -EPROBE_DEFER, and fix it. Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_plat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 2/2] usb: mtu3: remove unused micros

2017-11-29 Thread Chunfeng Yun
Remove unused micros of UWK_CTL1_IDDIG_* Signed-off-by: Chunfeng Yun --- drivers/usb/mtu3/mtu3_host.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/mtu3/mtu3_host.c b/drivers/usb/mtu3/mtu3_host.c index d237d7e..7e948c0 100644 --- a/drivers/usb/mtu3/mtu3_host.c +++ b/drivers/u

Re: [RFC PATCH] KVM: x86: Allow Qemu/KVM to use PVH entry point

2017-11-29 Thread Roger Pau Monné
On Wed, Nov 29, 2017 at 09:21:59AM +0100, Juergen Gross wrote: > On 28/11/17 20:34, Maran Wilson wrote: > > For certain applications it is desirable to rapidly boot a KVM virtual > > machine. In cases where legacy hardware and software support within the > > guest is not needed, Qemu should be able

Re: [PATCH] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-11-29 Thread Wanpeng Li
2017-11-29 16:48 GMT+08:00 Paolo Bonzini : > On 29/11/2017 07:07, Wanpeng Li wrote: >> From: Wanpeng Li >> >> MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored >> each time during world switch. Jim from Google pointed out that >> when running schbench in L2, vmx_vcpu_run will occup

Re: [PATCH] vfs: Add PERM_* symbolic helpers for common file mode/permissions

2017-11-29 Thread Michael Ellerman
Ingo Molnar writes: ... > Index: tip/include/linux/stat.h > === > --- tip.orig/include/linux/stat.h > +++ tip/include/linux/stat.h > @@ -6,6 +6,34 @@ > #include > #include > > +/* > + * Human readable symbolic definitions for co

Re: [PATCH] arm64: kaslr: Fix kaslr end boundary of virt addr

2017-11-29 Thread Chen Feng
On 2017/11/29 4:41, Ard Biesheuvel wrote: > On 21 November 2017 at 03:44, Chen Feng wrote: >> With kaslr and kasan enable both, I got the follow issue. >> >> [ 16.130523s]kasan: reg->base = 1, phys_end =1c000,start = >> 4000, end = ffc0 >> [ 16.142517s]__

Re: KASAN: stack-out-of-bounds Read in crypto_chacha20_crypt

2017-11-29 Thread Eric Biggers
On Wed, Nov 29, 2017 at 12:33:01AM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 1ea8d039f9edcfefb20d8ddfe136930f6e551529 > git://git.cmpxchg.org/linux-mmots.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > > Unfo

Re: KASAN: use-after-free Read in crypto_chacha20_crypt

2017-11-29 Thread Eric Biggers
On Tue, Nov 28, 2017 at 07:23:01AM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 1ea8d039f9edcfefb20d8ddfe136930f6e551529 > git://git.cmpxchg.org/linux-mmots.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is attached. > C repro

Re: [PATCH v2 25/35] nds32: Build infrastructure

2017-11-29 Thread Arnd Bergmann
On Wed, Nov 29, 2017 at 9:39 AM, Greentime Hu wrote: > 2017-11-27 22:21 GMT+08:00 Arnd Bergmann : >> On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu wrote: >>> diff --git a/arch/nds32/Kconfig.cpu b/arch/nds32/Kconfig.cpu >>> +config CPU_CACHE_NONALIASING >>> + bool "Non-aliasing cache" >>> +

Re: [RFC PATCH] KVM: x86: Allow Qemu/KVM to use PVH entry point

2017-11-29 Thread Paolo Bonzini
On 28/11/2017 20:34, Maran Wilson wrote: > For certain applications it is desirable to rapidly boot a KVM virtual > machine. In cases where legacy hardware and software support within the > guest is not needed, Qemu should be able to boot directly into the > uncompressed Linux kernel binary without

Re: [PATCH v2] ACPI / PMIC: constify platform_device_id

2017-11-29 Thread Mika Westerberg
On Wed, Nov 29, 2017 at 10:05:02AM +0530, Arvind Yadav wrote: > platform_device_id are not supposed to change at runtime. All functions > working with platform_device_id provided by > work with const platform_device_id. So mark the non-const structs as > const. > > Signed-off-by: Arvind Yadav A

Re: [PATCH] net: stmmac: dwmac-sun8i: fix allwinner,leds-active-low handling

2017-11-29 Thread Corentin Labbe
On Tue, Nov 28, 2017 at 06:38:26PM +0100, Andrew Lunn wrote: > On Tue, Nov 28, 2017 at 05:48:22PM +0100, Corentin Labbe wrote: > > The driver expect "allwinner,leds-active-low" to be in PHY node, but > > the binding doc expect it to be in MAC node. > > > > Since all board DT use it also in MAC nod

Re: [PATCH 1/1] kasan: fix livelock in qlist_move_cache

2017-11-29 Thread Dmitry Vyukov
On Wed, Nov 29, 2017 at 5:54 AM, Zhouyi Zhou wrote: > Hi, > There is new discoveries! > > When I find qlist_move_cache reappear in my environment, > I use kgdb to break into function qlist_move_cache. I found > this function is called because of cgroup release. > > I also find libvirt allocate a

[PATCH v8,1/2] misc: rtsx: Move Realtek Card Reader Driver to misc

2017-11-29 Thread rui_feng
From: Rui Feng Because Realtek card reader drivers are pcie and usb drivers, and they bridge mmc subsystem and memstick subsystem, they are not mfd drivers. Greg and Lee Jones had a discussion about where to put the drivers, the result is that misc is a good place for them, so I move all files to

[PATCH v8,2/2] misc: rtsx: Add support for RTS5260

2017-11-29 Thread rui_feng
From: Rui Feng Add support for new chip rts5260. In order to support rts5260, the definitions of some internal registers and workflow have to be modified and are different from its predecessors and OCP function is added for RTS5260. So we need this patch to ensure RTS5260 can work. Signed-off-by

Re: [PATCH 06/10] drm/tegra: Deliver job completion callback to client

2017-11-29 Thread Mikko Perttunen
On 16.11.2017 18:40, Dmitry Osipenko wrote: On 05.11.2017 14:01, Mikko Perttunen wrote: To allow client drivers to free resources when jobs have completed, deliver job completion callbacks to them. This requires adding reference counting to context objects, as job completion can happen after the

Re: [Ocfs2-devel] [PATCH v2 1/3] ocfs2: add ocfs2_try_rw_lock and ocfs2_try_inode_lock

2017-11-29 Thread piaojun
On 2017/11/29 16:36, Gang He wrote: > Add ocfs2_try_rw_lock and ocfs2_try_inode_lock functions, which > will be used in non-block IO scenarios. > > Signed-off-by: Gang He Reviewed-by: Jun Piao > --- > fs/ocfs2/dlmglue.c | 21 + > fs/ocfs2/dlmglue.h | 4 > 2 files cha

Re: [PATCH v2 25/35] nds32: Build infrastructure

2017-11-29 Thread Geert Uytterhoeven
Hi Arnd, On Wed, Nov 29, 2017 at 9:58 AM, Arnd Bergmann wrote: > On Wed, Nov 29, 2017 at 9:39 AM, Greentime Hu wrote: >> 2017-11-27 22:21 GMT+08:00 Arnd Bergmann : >>> On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu wrote: diff --git a/arch/nds32/Kconfig.cpu b/arch/nds32/Kconfig.cpu +co

Re: [PATCH 10/10] gpu: host1x: Optionally block when acquiring channel

2017-11-29 Thread Mikko Perttunen
On 12.11.2017 13:23, Dmitry Osipenko wrote: On 11.11.2017 00:15, Dmitry Osipenko wrote: On 07.11.2017 18:29, Dmitry Osipenko wrote: On 07.11.2017 16:11, Mikko Perttunen wrote: On 05.11.2017 19:14, Dmitry Osipenko wrote: On 05.11.2017 14:01, Mikko Perttunen wrote: Add an option to host1x_chan

Re: [PATCH] drm/tegra: gem: Use PTR_ERR_OR_ZERO()

2017-11-29 Thread Mikko Perttunen
On 29.11.2017 00:18, Vasyl Gomonovych wrote: Fix ptr_ret.cocci warnings: drivers/gpu/drm/tegra/gem.c:420:1-3: WARNING: PTR_ERR_OR_ZERO can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: scripts/coccinelle/api/ptr_ret.cocci Signed-off-by: Vasyl Gomonovych ---

Re: [PATCH] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-11-29 Thread Paolo Bonzini
On 29/11/2017 09:51, Wanpeng Li wrote: > 2017-11-29 16:48 GMT+08:00 Paolo Bonzini : >> On 29/11/2017 07:07, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored >>> each time during world switch. Jim from Google pointed out that >>> when

Re: [PATCH 1/4] dt-bindings: pinctrl: add bindings for MediaTek MT7622 SoC

2017-11-29 Thread Sean Wang
On Tue, 2017-11-28 at 09:20 -0600, Rob Herring wrote: > On Tue, Nov 28, 2017 at 11:49:59AM +0800, sean.w...@mediatek.com wrote: > > From: Sean Wang > > > > Add devicetree bindings for MediaTek MT7622 pinctrl driver. > > > > Signed-off-by: Sean Wang > > --- > > .../devicetree/bindings/pinctrl/p

Re: Question to perf annotate handling mov ...(%rip) instructions

2017-11-29 Thread Thomas-Mich Richter
On 11/28/2017 03:50 PM, Arnaldo Carvalho de Melo wrote: . >> >> 60b4: 48 8b 05 35 cd 22 00mov 0x22cd35(%rip),%rax # 232df0 >> <__gmon_start__> >> >> Commit 6de783b6f50f7f1db18a3fda0aa34b2e84b5771d ("perf annotate: Resolve >> symbols >> using objdump comment") added t

Re: linux-next: Signed-off-by missing for commits in the staging tree

2017-11-29 Thread Greg KH
On Wed, Nov 29, 2017 at 09:44:44AM +0100, Christian Gromm wrote: > On 28.11.2017 20:41, Greg KH wrote: > > On Tue, Nov 28, 2017 at 08:16:51AM +1100, Stephen Rothwell wrote: > > > Hi Greg, > > > > > > Commits > > > > > >2525ef557c73 ("staging: most: update driver usage file") > > >e7e3ce04

Re: [PATCH] trace/xdp: fix compile warning: ‘struct bpf_map’ declared inside parameter list

2017-11-29 Thread Jesper Dangaard Brouer
On Wed, 29 Nov 2017 16:35:01 +0800 Xie XiuQi wrote: > We meet this compile warning, which caused by missing bpf.h in xdp.h. > > In file included from ./include/trace/events/xdp.h:10:0, > from ./include/linux/bpf_trace.h:6, > from drivers/net/ethernet/intel/i40e/

Re: [FIX] perf tools broken for s/390

2017-11-29 Thread Heiko Carstens
On Tue, Nov 28, 2017 at 11:46:11AM -0300, Arnaldo Carvalho de Melo wrote: > Hi, > > While preparing a pull request to Ingo for this merge window, I > noticed a regression in one of my cross build containers, specifically: > > ubuntu:16.04-x-s390: FAIL > > LINK /tmp/build/perf/plugi

Re: [PATCH] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-11-29 Thread Wanpeng Li
2017-11-29 17:13 GMT+08:00 Paolo Bonzini : > On 29/11/2017 09:51, Wanpeng Li wrote: >> 2017-11-29 16:48 GMT+08:00 Paolo Bonzini : >>> On 29/11/2017 07:07, Wanpeng Li wrote: From: Wanpeng Li MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored each time during world

[PATCH] crypto: skcipher - set walk.iv for zero-length inputs

2017-11-29 Thread Eric Biggers
From: Eric Biggers All the ChaCha20 algorithms as well as the ARM bit-sliced AES-XTS algorithms call skcipher_walk_virt(), then access the IV (walk.iv) before checking whether any bytes need to be processed (walk.nbytes). But if the input is empty, then skcipher_walk_virt() doesn't set the IV, a

Re: [RFC 0/2] of: Add whitelist

2017-11-29 Thread Frank Rowand
On 11/27/17 15:58, Alan Tull wrote: > Here's a proposal for a whitelist to lock down the dynamic device tree. > > For an overlay to be accepted, all of its targets are required to be > on a target node whitelist. > > Currently the only way I have to get on the whitelist is calling a > function to

[PATCH] x86/numa: move setting parse numa node to num_add_memblk

2017-11-29 Thread zhong jiang
Currently, Arm64 and x86 use the common code wehn parsing numa node in a acpi way. The arm64 will set the parsed node in numa_add_memblk, but the x86 is not set in that , then it will result in the repeatly setting. And the parsed node maybe is unreasonable to the system. we would better not set

Re: [PATCH RFC 2/2] mm, hugetlb: do not rely on overcommit limit during migration

2017-11-29 Thread Michal Hocko
What about this on top. I haven't tested this yet though. --- diff --git a/include/linux/hugetlb.h b/include/linux/hugetlb.h index 1b6d7783c717..f5fcd4e355dc 100644 --- a/include/linux/hugetlb.h +++ b/include/linux/hugetlb.h @@ -119,6 +119,7 @@ long hugetlb_unreserve_pages(struct inode *inode, long

Re: [PATCH v3] s390/virtio: add BSD license to virtio-ccw

2017-11-29 Thread Heiko Carstens
On Tue, Nov 28, 2017 at 02:51:19PM +0100, Cornelia Huck wrote: > On Tue, 28 Nov 2017 15:17:52 +0200 > "Michael S. Tsirkin" wrote: > > > The original intent of the virtio header relicensing > > from 2008 was to make sure anyone can implement compatible > > devices/drivers. The virtio-ccw was omitt

Re: linux-next: Signed-off-by missing for commits in the staging tree

2017-11-29 Thread Christian Gromm
On 29.11.2017 10:14, Greg KH wrote: On Wed, Nov 29, 2017 at 09:44:44AM +0100, Christian Gromm wrote: On 28.11.2017 20:41, Greg KH wrote: On Tue, Nov 28, 2017 at 08:16:51AM +1100, Stephen Rothwell wrote: Hi Greg, Commits 2525ef557c73 ("staging: most: update driver usage file") e7e3ce0

Re: [PATCH] PM / runtime: Drop children check from __pm_runtime_set_status()

2017-11-29 Thread Ulf Hansson
On 29 November 2017 at 09:21, Yoshihiro Shimoda wrote: > Hi, > >> From: Ulf Hansson, Sent: Wednesday, November 29, 2017 2:23 AM >> >> On 28 November 2017 at 13:48, Yoshihiro Shimoda >> wrote: >> > Hi Geert-san, >> > >> >> From: Geert Uytterhoeven, Sent: Tuesday, November 28, 2017 7:58 PM >> >> >>

Re: [PATCH] x86/entry/64: Fix native_load_gs_index() SWAPGS handling with IRQ state tracing enabled

2017-11-29 Thread Jarkko Nikula
On 11/29/2017 09:09 AM, Ingo Molnar wrote: * Jarkko Nikula wrote: Hi Suspend-to-ram and resume stopped working on v4.15-rc1 and I bisected it to commit ca37e57bbe0c ("x86/entry/64: Add missing irqflags tracing to native_load_gs_index()"). I noticed it on Intel Kabylake (core) and Apollol

Re: general protection fault in crypto_chacha20_crypt

2017-11-29 Thread Eric Biggers
On Tue, Nov 28, 2017 at 06:22:01AM -0800, syzbot wrote: > Hello, > > syzkaller hit the following crash on > 0c86a6bd85ff0629cd2c5141027fc1c8bb6cde9c > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console ou

Re: [PATCH v2 25/35] nds32: Build infrastructure

2017-11-29 Thread Arnd Bergmann
On Wed, Nov 29, 2017 at 10:10 AM, Geert Uytterhoeven wrote: > Hi Arnd, > > On Wed, Nov 29, 2017 at 9:58 AM, Arnd Bergmann wrote: >> On Wed, Nov 29, 2017 at 9:39 AM, Greentime Hu wrote: >>> 2017-11-27 22:21 GMT+08:00 Arnd Bergmann : On Mon, Nov 27, 2017 at 1:28 PM, Greentime Hu wrote: >

Re: [PATCH] sched/topology: Set SD_PREFER_SIBLING consistently on non-NUMA levels

2017-11-29 Thread Vincent Guittot
Hi Morten, On 27 November 2017 at 18:29, Morten Rasmussen wrote: > SD_PREFER_SIBLING adds an additional bias towards spreading tasks on the > _parent_ sched_domain even if a sched_group isn't overloaded. It is > currently set on: > >1. SMT level to promote spreading to sibling cores rather th

Re: [RFC 1/2] of: overlay: add whitelist

2017-11-29 Thread Frank Rowand
On 11/28/17 14:26, Alan Tull wrote: > On Tue, Nov 28, 2017 at 9:15 AM, Rob Herring wrote: >> On Mon, Nov 27, 2017 at 02:58:03PM -0600, Alan Tull wrote: >>> Add simple whitelist. When an overlay is submitted, if any target in >>> the overlay is not in the whitelist, the overlay is rejected. Drive

Re: [PATCH 00/18] introduce a new tool, valid access checker

2017-11-29 Thread Dmitry Vyukov
On Tue, Nov 28, 2017 at 8:48 AM, wrote: > From: Joonsoo Kim > > Hello, > > This patchset introduces a new tool, valid access checker. > > Vchecker is a dynamic memory error detector. It provides a new debug feature > that can find out an un-intended access to valid area. Valid area here means >

Re: [PATCH] x86/entry/64: Fix native_load_gs_index() SWAPGS handling with IRQ state tracing enabled

2017-11-29 Thread Thomas Gleixner
On Wed, 29 Nov 2017, Jarkko Nikula wrote: > On 11/29/2017 09:09 AM, Ingo Molnar wrote: > > > > * Jarkko Nikula wrote: > > > > > Hi > > > > > > Suspend-to-ram and resume stopped working on v4.15-rc1 and I bisected it > > > to commit ca37e57bbe0c ("x86/entry/64: Add missing irqflags tracing to >

[PATCH v2] KVM: VMX: Cache IA32_DEBUGCTL in memory

2017-11-29 Thread Wanpeng Li
From: Wanpeng Li MSR_IA32_DEBUGCTLMSR is zeroed on VMEXIT, so it is saved/restored each time during world switch. Jim from Google pointed out that when running schbench in L2, vmx_vcpu_run will occupy 4% cpu time, and the 25% of vmx_vcpu_run cpu time is occupied by get_debugctlmsr(). This pat

Re: linux-next: Signed-off-by missing for commits in the staging tree

2017-11-29 Thread Greg KH
On Wed, Nov 29, 2017 at 10:25:10AM +0100, Christian Gromm wrote: > On 29.11.2017 10:14, Greg KH wrote: > > On Wed, Nov 29, 2017 at 09:44:44AM +0100, Christian Gromm wrote: > > > On 28.11.2017 20:41, Greg KH wrote: > > > > On Tue, Nov 28, 2017 at 08:16:51AM +1100, Stephen Rothwell wrote: > > > > > H

Re: [PATCH] arm64: fix missing 'const' qualifiers

2017-11-29 Thread Yury Norov
On Tue, Nov 28, 2017 at 06:33:55PM +, Will Deacon wrote: > On Sat, Nov 25, 2017 at 12:41:27PM +0300, Yury Norov wrote: > > It was discovered during LTO-enabled compilation with gcc/ld.bfd. > > What was discovered? Could you provide a bit more information in the > changelog, please? I'm happy t

[tip:x86/urgent] x86: Make X86_BUG_FXSAVE_LEAK detectable in CPUID on AMD

2017-11-29 Thread tip-bot for Rudolf Marek
Commit-ID: 2b67799bdf25d19690710a88c2bce9127cf3ba6f Gitweb: https://git.kernel.org/tip/2b67799bdf25d19690710a88c2bce9127cf3ba6f Author: Rudolf Marek AuthorDate: Tue, 28 Nov 2017 22:01:06 +0100 Committer: Thomas Gleixner CommitDate: Wed, 29 Nov 2017 10:30:43 +0100 x86: Make X86_BUG_FXSA

[PATCH v5] lib: optimize cpumask_next_and()

2017-11-29 Thread Clement Courbet
> > Note that on Arm (), the new c implementation still outperforms the > > old one that uses c+ the asm implementation of `find_next_bit` [3]. > What is 'c+'? Is it typo? I meant "a mix of C and asm" ~(C + asm). Rephrased. > If you find generic find_bit() on arm faster that asm one, we'd > defin

Re: [PATCH RFC 2/2] mm, hugetlb: do not rely on overcommit limit during migration

2017-11-29 Thread Michal Hocko
On Wed 29-11-17 10:22:34, Michal Hocko wrote: > What about this on top. I haven't tested this yet though. > --- We will need to drop surplus_huge_pages_node handling from the free path obviously as well diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 1be43563e226..756833f9ef8b 100644 --- a/mm/huge

  1   2   3   4   5   6   7   8   9   10   >