[PATCH v4 0/3] add i2c support for mt8183

2019-02-20 Thread Qii Wang
This series are based on 5.0-rc1 and provide three patches to support mt8183 IC. Main changes compared to v3: --remove the patches which have been applied to for-next --remove i2c fallback for i3c controller Main changes compared to v2: --update commit message --add Reviewed-by from Rob

[PATCH v4 1/3] i2c: mediatek: Add offsets array for new i2c registers

2019-02-20 Thread Qii Wang
New i2c registers would have different offsets, so we use different offsets array to distinguish different i2c registers version. Signed-off-by: Qii Wang --- drivers/i2c/busses/i2c-mt65xx.c | 163 +-- 1 file changed, 104 insertions(+), 59 deletions(-) diff

Re: [RFC PATCH net-next v3 10/21] ethtool: provide string sets with GET_STRSET request

2019-02-20 Thread Michal Kubecek
On Tue, Feb 19, 2019 at 06:56:10PM -0800, Jakub Kicinski wrote: > On Mon, 18 Feb 2019 19:22:14 +0100 (CET), Michal Kubecek wrote: > > Requests a contents of one or more string sets, i.e. indexed arrays of > > strings; this information is provided by ETHTOOL_GSSET_INFO and > > ETHTOOL_GSTRINGS

[PATCH v4 3/3] i2c: mediatek: Add i2c support for MediaTek MT8183

2019-02-20 Thread Qii Wang
Add i2c compatible for MT8183. Compare to MT2712 i2c controller, MT8183 has different registers, offsets and clock. Signed-off-by: Qii Wang --- drivers/i2c/busses/i2c-mt65xx.c | 89 --- 1 file changed, 84 insertions(+), 5 deletions(-) diff --git

Re: [PATCH v2 -next] btrfs: Remove unnecessary casts in btrfs_read_root_item

2019-02-20 Thread Qu Wenruo
On 2019/2/20 下午8:32, YueHaibing wrote: > There is a messy cast here: > min_t(int, len, (int)sizeof(*item))); > > min_t() should normally cast to unsigned. It's not possible for > "len" to be negative, but if it were then we definitely > wouldn't want to pass negatives to

Re: [PATCH] powerpc: fix 32-bit KVM-PR lockup and panic with MacOS guest

2019-02-20 Thread Michael Ellerman
Mark Cave-Ayland writes: > On 19/02/2019 04:20, Michael Ellerman wrote: >> Mark Cave-Ayland writes: > unexpectedly removed the MSR_FE0 and MSR_FE1 bits from the bitmask used to > update the MSR of the previous thread in __giveup_fpu() causing a KVM-PR > MacOS > guest to lockup

Re: [PATCH v2 1/2] extcon-intel-cht-wc: Make charger detection co-existed with OTG host mode

2019-02-20 Thread Andy Shevchenko
On Wed, Feb 20, 2019 at 12:24:40AM +0300, Yauhen Kharuzhy wrote: > Whiskey Cove Cherry Trail PMIC requires disabling OTG host mode before > of charger detection procedure. Do this by manipulationg of CHGRCTRL1 > register. > > Source: APCI DSDT code of Lenovo Yoga Book YB1-X91L and open-sourced >

Re: [PATCH 4/4] drm/panel: Add OSD101T2587-53TS driver

2019-02-20 Thread Sam Ravnborg
Hi Peter. Always good to see that feedback input is used. > OK. > > >> + > >> + return 0; > >> +} > >> + > >> +static void osd101t2587_panel_shutdown(struct mipi_dsi_device *dsi) > >> +{ > >> + struct osd101t2587_panel *osd101t2587 = mipi_dsi_get_drvdata(dsi); > >> + > > Maybe call

[PATCH 2/4] kasan, slab: fix conflicts with CONFIG_HARDENED_USERCOPY

2019-02-20 Thread Andrey Konovalov
Similarly to 96fedce2 ("kasan: make tag based mode work with CONFIG_HARDENED_USERCOPY"), we need to reset pointer tags in __check_heap_object() in mm/slab.c before doing any pointer math. Signed-off-by: Andrey Konovalov --- mm/slab.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 3/4] kasan, slab: make freelist stored without tags

2019-02-20 Thread Andrey Konovalov
Similarly to 680c37ae ("kasan, slub: move kasan_poison_slab hook before page_address"), move kasan_poison_slab() before alloc_slabmgmt(), which calls page_address(), to make page_address() return value to be non-tagged. This, combined with calling kasan_reset_tag() for off-slab slab management

[PATCH 4/4] kasan, slab: remove redundant kasan_slab_alloc hooks

2019-02-20 Thread Andrey Konovalov
kasan_slab_alloc() calls in kmem_cache_alloc() and kmem_cache_alloc_node() are redundant as they are already called via slab_alloc/slab_alloc_node()-> slab_post_alloc_hook()->kasan_slab_alloc(). Remove them. Signed-off-by: Andrey Konovalov --- mm/slab.c | 2 -- 1 file changed, 2 deletions(-)

[PATCH 1/4] kasan: prevent tracing of tags.c

2019-02-20 Thread Andrey Konovalov
Similarly to 0d0c8de8 ("kasan: mark file common so ftrace doesn't trace it") add the -pg flag to mm/kasan/tags.c to prevent conflicts with tracing. Reported-by: Qian Cai Signed-off-by: Andrey Konovalov --- mm/kasan/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH 00/10] perf: Multi-die/package support

2019-02-20 Thread Jiri Olsa
On Tue, Feb 19, 2019 at 12:00:01PM -0800, kan.li...@linux.intel.com wrote: > From: Kan Liang > > Add Linux perf support for multi-die/package. The first product with > multi-die is Xeon Cascade Lake-AP (CLX-AP). > The code bases on the top of Len's multi-die/package support. >

Re: [PATCH] ARM: dts: sun7i: add pinctrl for missing uart mux options

2019-02-20 Thread Maxime Ripard
Hi, On Wed, Feb 20, 2019 at 10:59:58AM +, Måns Rullgård wrote: > Maxime Ripard writes: > > > On Wed, Feb 20, 2019 at 04:58:49PM +0800, Chen-Yu Tsai wrote: > >> On Sun, Feb 17, 2019 at 2:21 AM Mans Rullgard wrote: > >> > > >> > This adds pinctrl settings for various missing uart options. >

Re: [PATCH 4.19 01/24] bridge: do not add port to router list when receives query with source 0.0.0.0

2019-02-20 Thread Sebastian Gottschall
*reminder* Am 18.02.2019 um 11:18 schrieb Sebastian Gottschall: Am 17.02.2019 um 17:48 schrieb Greg Kroah-Hartman: On Sun, Feb 17, 2019 at 03:29:22PM +0100, Sebastian Gottschall wrote: according to user reports this patch will cause a serious regression. igmp snooping is not working anymore

Re: [PATCH v2 1/1] s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem

2019-02-20 Thread Halil Pasic
On Wed, 20 Feb 2019 10:27:31 +0100 Cornelia Huck wrote: > On Tue, 19 Feb 2019 22:31:17 +0100 > Pierre Morel wrote: > > > On 19/02/2019 19:52, Tony Krowiak wrote: > > > On 2/18/19 1:08 PM, Pierre Morel wrote: > > >> Libudev relies on having a subsystem link for non-root devices. To > > >>

Re: [PATCHv7] x86/kdump: bugfix, make the behavior of crashkernel=X consistent with kaslr

2019-02-20 Thread Pingfan Liu
On Wed, Feb 20, 2019 at 5:41 PM Dave Young wrote: > > On 02/20/19 at 09:32am, Borislav Petkov wrote: > > On Mon, Feb 18, 2019 at 09:48:20AM +0800, Dave Young wrote: > > > It is ideal if kernel can do it automatically, but I'm not sure if > > > kernel can predict the swiotlb reserved size

[PATCH] vfs: Make __vfs_write() static

2019-02-20 Thread Geert Uytterhoeven
__vfs_write() was unexported, and removed from , but forgotten to be made static. Fixes: eb031849d52e61d2 ("fs: unexport __vfs_read/__vfs_write") Signed-off-by: Geert Uytterhoeven --- fs/read_write.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/read_write.c

Re: [PATCH] slub: fix a crash with SLUB_DEBUG + KASAN_SW_TAGS

2019-02-20 Thread Andrey Konovalov
On Wed, Feb 20, 2019 at 3:03 AM Qian Cai wrote: > > In process_slab(), "p = get_freepointer()" could return a tagged > pointer, but "addr = page_address()" always return a native pointer. As > the result, slab_index() is messed up here, > > return (p - addr) / s->size; > > All other callers of

Re: [RFC PATCH] mm, memory_hotplug: fix off-by-one in is_pageblock_removable

2019-02-20 Thread Michal Hocko
Rong Chen, coudl you double check this indeed fixes the issue for you please? On Mon 18-02-19 19:15:44, Michal Hocko wrote: > From: Michal Hocko > > Rong Chen has reported the following boot crash > [ 40.305212] PGD 0 P4D 0 > [ 40.308255] Oops: [#1] PREEMPT SMP PTI > [ 40.313055]

[PATCHv2] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Nikolaus Voss
Commit 1a2f474d328f handles block _reads_ separately with plain-I2C adapters, but the problem described with regmap-i2c not handling SMBus block transfers (i.e. read and writes) correctly also exists with writes. As workaround, this patch adds a block write function the same way 1a2f474d328f adds

Re: [PATCH] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Nikolaus Voss
Hi, On Wed, 20 Feb 2019, Heikki Krogerus wrote: Hi, On Mon, Sep 10, 2018 at 07:05:01AM +0200, Nikolaus Voss wrote: Commit 1a2f474d328f handles block _reads_ separately with plain-I2C adapters, but the problem described with regmap-i2c not handling SMBus block transfers (i.e. read and writes)

Re: [RFC PATCH net-next v3 13/21] ethtool: provide timestamping information in GET_INFO request

2019-02-20 Thread Michal Kubecek
On Tue, Feb 19, 2019 at 07:00:48PM -0800, Jakub Kicinski wrote: > On Mon, 18 Feb 2019 19:22:29 +0100 (CET), Michal Kubecek wrote: > > Add timestamping information as provided by ETHTOOL_GET_TS_INFO ioctl > > command in GET_INFO reply if ETH_INFO_IM_TSINFO flag is set in the request. > > > > Add

[PATCH 2/3] iommu: Document iommu_ops.iotlb_sync_map()

2019-02-20 Thread Geert Uytterhoeven
Add missing kerneldoc for iommu_ops.iotlb_sync_map(). Fixes: 1d7ae53b152dbc5b ("iommu: Introduce iotlb_sync_map callback") Signed-off-by: Geert Uytterhoeven --- include/linux/iommu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/iommu.h b/include/linux/iommu.h index

[PATCH 1/3] iommu: Fix kerneldoc for iommu_ops.flush_iotlb_all()

2019-02-20 Thread Geert Uytterhoeven
While the API wrapper is called iommu_flush_tlb_all(), the actual iommu_ops method is called .flush_iotlb_all(), not .flush_tlb_all(). Fixes: add02cfdc9bc2987 ("iommu: Introduce Interface for IOMMU TLB Flushing") Signed-off-by: Geert Uytterhoeven --- include/linux/iommu.h | 2 +- 1 file

Firmware files for QCA BT chip wcn3990

2019-02-20 Thread Balakrishna Godavarthi
Hi, The following changes since commit 710963fe53ee3f227556d36839df3858daf6e232: Merge https://github.com/ajaykuee/linux-firmware (2019-02-13 07:42:20 -0500) are available in the Git repository at: https://github.com/bgodavar/qca_bt_wcn3990_fw.git for you to fetch changes up to

[PATCH 3/3] iommu: Document iommu_ops.is_attach_deferred()

2019-02-20 Thread Geert Uytterhoeven
Add missing kerneldoc for iommu_ops.is_attach_deferred(). Fixes: e01d1913b0d08171 ("iommu: Add is_attach_deferred call-back to iommu-ops") Signed-off-by: Geert Uytterhoeven --- include/linux/iommu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/iommu.h

[PATCH 0/3] iommu: Kerneldoc improvements

2019-02-20 Thread Geert Uytterhoeven
Hi Jörg, This series contains a fix for an incorrect kerneldoc parameter, and adds the missing kerneldoc for two recently added IOMMU methods. Thanks! Geert Uytterhoeven (3): iommu: Fix kerneldoc for iommu_ops.flush_iotlb_all() iommu: Document iommu_ops.iotlb_sync_map() iommu:

Re: [PATCH v2 1/8] livepatch: Create and include UAPI headers

2019-02-20 Thread Miroslav Benes
> diff --git a/include/uapi/linux/livepatch.h b/include/uapi/linux/livepatch.h > new file mode 100644 > index ..bc35f85fd859 > --- /dev/null > +++ b/include/uapi/linux/livepatch.h > @@ -0,0 +1,28 @@ > +/* > + * livepatch.h - Kernel Live Patching Core > + * > + * Copyright (C) 2016

[PATCH] iommu: Fix IOMMU debugfs fallout

2019-02-20 Thread Geert Uytterhoeven
A change made in the final version of IOMMU debugfs support replaced the public function iommu_debugfs_new_driver_dir() by the public dentry iommu_debugfs_dir in , but forgot to update both the implementation in iommu-debugfs.c, and the patch description. Fix this by exporting iommu_debugfs_dir,

Re: [PATCH v4 5/6] usb:cdns3 Add Cadence USB3 DRD Driver

2019-02-20 Thread Roger Quadros
Pawel, On 14/02/2019 21:45, Pawel Laszczak wrote: > This patch introduce new Cadence USBSS DRD driver to linux kernel. > > The Cadence USBSS DRD Driver is a highly configurable IP Core whichi > can be instantiated as Dual-Role Device (DRD), Peripheral Only and > Host Only (XHCI)configurations. >

[PATCH v5 1/3] dt-bindings: pwm-stm32-lp: document pinctrl sleep state

2019-02-20 Thread Fabrice Gasnier
Add documentation for pinctrl sleep state on STM32 LPTimer PWM. Signed-off-by: Fabrice Gasnier Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/pwm/pwm-stm32-lp.txt | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

Re: [PATCH 4.19 01/24] bridge: do not add port to router list when receives query with source 0.0.0.0

2019-02-20 Thread Nikolay Aleksandrov
On 20/02/2019 14:48, Sebastian Gottschall wrote: > *reminder* > [snip] >    } >    static void br_ip4_multicast_query(struct net_bridge *br, >>> Is this also a problem in 4.20?  This patch went into 4.20-rc1, so it >>> has been around for a while with no reported issues that I can find.

[PATCH v5 3/3] pwm: core: add consumer device link

2019-02-20 Thread Fabrice Gasnier
Add a device link between the PWM consumer and the PWM provider. This enforces the PWM user to get suspended before the PWM provider. It allows proper synchronization of suspend/resume sequences: the PWM user is responsible for properly stopping PWM, before the provider gets suspended: see [1].

Re: [PATCH v2 2/2] extcon intel-cht-wc: Enable external charger

2019-02-20 Thread Andy Shevchenko
On Wed, Feb 20, 2019 at 12:24:41AM +0300, Yauhen Kharuzhy wrote: > In some configuration external charger "#charge enable" signal is > connected to PMIC. Enable it at device probing to allow charging. > > Save CHGRCTRL0 and CHGDISCTR registers at driver probing and restore > them at driver unbind

[PATCH v5 0/3] Add PM support to STM32 LP Timer drivers

2019-02-20 Thread Fabrice Gasnier
This patch series adds power management support for STM32 LP Timer: - PWM driver - Document the pinctrl states for sleep mode It also adds device link between the PWM consumer and the PWM provider. This allows proper sequencing for suspend/resume (e.g. user will likely do a pwm_disable() before

[PATCH v5 2/3] pwm: stm32-lp: Add power management support

2019-02-20 Thread Fabrice Gasnier
Add suspend/resume PM sleep ops. When going to low power, enforce the PWM channel isn't active. Let the PWM consumers disable it during their own suspend sequence. Only perform a check here, and handle the pinctrl states. See [1]. [1] https://lkml.org/lkml/2019/2/5/770 Signed-off-by: Fabrice

Re: [PATCH 4.19 01/24] bridge: do not add port to router list when receives query with source 0.0.0.0

2019-02-20 Thread Nikolay Aleksandrov
On 20/02/2019 15:09, Nikolay Aleksandrov wrote: > On 20/02/2019 14:48, Sebastian Gottschall wrote: >> *reminder* >> > [snip] >>    } >>    static void br_ip4_multicast_query(struct net_bridge *br, Is this also a problem in 4.20?  This patch went into 4.20-rc1, so it has been

Re: [PATCH v2 1/1] s390: vfio_ap: link the vfio_ap devices to the vfio_ap bus subsystem

2019-02-20 Thread Harald Freudenberger
On 18.02.19 19:08, Pierre Morel wrote: > Libudev relies on having a subsystem link for non-root devices. To > avoid libudev (and potentially other userspace tools) choking on the > matrix device let us introduce a vfio_ap bus and with that the vfio_ap > bus subsytem, and make the matrix device

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-20 Thread Andrea Parri
On Wed, Feb 20, 2019 at 10:26:04AM +0100, Peter Zijlstra wrote: > On Tue, Feb 19, 2019 at 06:01:17PM -0800, Paul E. McKenney wrote: > > On Tue, Feb 19, 2019 at 11:57:37PM +0100, Andrea Parri wrote: > > > Remove this subtle (and, AFAICT, unused) ordering: we can add it back, > > > if necessary, but

Re: [PATCH v3 9/9] ARM: configs: Add Milbeaut M10V defconfig

2019-02-20 Thread Masami Hiramatsu
Hi Arnd, 2019年2月20日(水) 21:28 Arnd Bergmann : > > On Wed, Feb 20, 2019 at 12:27 PM Sugaya, Taichi > wrote: > > > > Hi > > > > On 2019/02/20 18:28, Arnd Bergmann wrote: > > > On Wed, Feb 20, 2019 at 8:44 AM Sugaya Taichi > > > wrote: > > > > > >> diff --git

Re: [PATCH v4 6/6] usb:cdns3 Fix for stuck packets in on-chip OUT buffer.

2019-02-20 Thread Roger Quadros
Pawel, On 20/02/2019 13:18, Pawel Laszczak wrote: > Hi Roger. >> >> On 14/02/2019 21:45, Pawel Laszczak wrote: >>> Controller for OUT endpoints has shared on-chip buffers for all incoming >>> packets, including ep0out. It's FIFO buffer, so packets must be handle >>> by DMA in correct order. If

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-20 Thread Andrea Parri
On Wed, Feb 20, 2019 at 09:57:00AM +, Will Deacon wrote: > On Wed, Feb 20, 2019 at 10:26:04AM +0100, Peter Zijlstra wrote: > > On Tue, Feb 19, 2019 at 06:01:17PM -0800, Paul E. McKenney wrote: > > > On Tue, Feb 19, 2019 at 11:57:37PM +0100, Andrea Parri wrote: > > > > Remove this subtle (and,

Re: [PATCH v5 06/10] irqchip: ti-sci-intr: Add support for Interrupt Router driver

2019-02-20 Thread Lokesh Vutla
Hi Marc, On 18/02/19 9:22 PM, Marc Zyngier wrote: > On Tue, 12 Feb 2019 13:12:33 +0530 > Lokesh Vutla wrote: > >> Texas Instruments' K3 generation SoCs has an IP Interrupt Router >> that does allows for redirection of input interrupts to host >> interrupt controller. Interrupt Router inputs are

Re: [PATCH v3 9/9] ARM: configs: Add Milbeaut M10V defconfig

2019-02-20 Thread Arnd Bergmann
On Wed, Feb 20, 2019 at 2:16 PM Masami Hiramatsu wrote: > 2019年2月20日(水) 21:28 Arnd Bergmann : > > On Wed, Feb 20, 2019 at 12:27 PM Sugaya, Taichi > > wrote: > > > On 2019/02/20 18:28, Arnd Bergmann wrote: > > > > On Wed, Feb 20, 2019 at 8:44 AM Sugaya Taichi > > > > wrote: > > > > > > > >> diff

Re: [PATCH v2 00/15] powerpc/32s: Use BATs/LTLBs for STRICT_KERNEL_RWX

2019-02-20 Thread Michael Ellerman
Christophe Leroy writes: > Le 15/01/2019 à 11:22, Michael Ellerman a écrit : >> Christophe Leroy writes: >>> Le 15/01/2019 à 01:33, Jonathan Neuschäfer a écrit : >> ... - patches 7 to 11 fail to build with this error (really a warning, but arch/powerpc doesn't allow warnings

Re: [PATCH v3 9/9] ARM: configs: Add Milbeaut M10V defconfig

2019-02-20 Thread Masami Hiramatsu
Hi Arnd, 2019年2月20日(水) 22:18 Arnd Bergmann : > > On Wed, Feb 20, 2019 at 2:16 PM Masami Hiramatsu > wrote: > > 2019年2月20日(水) 21:28 Arnd Bergmann : > > > On Wed, Feb 20, 2019 at 12:27 PM Sugaya, Taichi > > > wrote: > > > > On 2019/02/20 18:28, Arnd Bergmann wrote: > > > > > On Wed, Feb 20, 2019

Re: [PATCH 00/10] perf: Multi-die/package support

2019-02-20 Thread Peter Zijlstra
On Wed, Feb 20, 2019 at 01:46:19PM +0100, Jiri Olsa wrote: > On Tue, Feb 19, 2019 at 12:00:01PM -0800, kan.li...@linux.intel.com wrote: > > The code bases on the top of Len's multi-die/package support. > > https://lkml.org/lkml/2019/2/18/1534 > what is based on? I'm getting conflicts when

Re: [RFC PATCH 02/27] containers: Implement containers as kernel objects

2019-02-20 Thread Christian Brauner
On Wed, Feb 20, 2019 at 10:46:24AM +0800, Ian Kent wrote: > On Fri, 2019-02-15 at 16:07 +, David Howells wrote: > > Implement a kernel container object such that it contains the following > > things: > > > > (1) Namespaces. > > > > (2) A root directory. > > > > (3) A set of processes,

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-20 Thread Peter Zijlstra
On Wed, Feb 20, 2019 at 02:14:56PM +0100, Andrea Parri wrote: > On Wed, Feb 20, 2019 at 10:26:04AM +0100, Peter Zijlstra wrote: > > On Tue, Feb 19, 2019 at 06:01:17PM -0800, Paul E. McKenney wrote: > > > On Tue, Feb 19, 2019 at 11:57:37PM +0100, Andrea Parri wrote: > > > > Remove this subtle (and,

[PATCH v3 0/2] i2c: designware: Add support for a bus clock

2019-02-20 Thread Gareth Williams
The Synopsys I2C Controller has a bus clock that some SoCs require to access the registers. This series also details the new clock property in the bindings documentation. v3: - busclk renamed to pclk. - Added comment with dw_i2c_dev struct definition describing pclk. - Added enable rollback of

Re: [PATCH v4 0/8] Support Trusted Foundations firmware on Tegra30

2019-02-20 Thread Dmitry Osipenko
18.02.2019 3:17, Dmitry Osipenko пишет: > Hello, > > This patchset adds support for the Trusted Foundations firmware on > NVIDIA Tegra30. Pretty much all of Tegra30 consumer devices have that > firmware and upstream kernel can't boot on those devices without the > firmware support. Hello Michał,

Re: [PATCHv2] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Heikki Krogerus
On Wed, Feb 20, 2019 at 01:57:30PM +0100, Nikolaus Voss wrote: > Commit 1a2f474d328f handles block _reads_ separately with plain-I2C > adapters, but the problem described with regmap-i2c not handling > SMBus block transfers (i.e. read and writes) correctly also exists > with writes. > > As

[PATCH] KEYS: user: Align the payload buffer

2019-02-20 Thread David Howells
From: Eric Biggers Align the payload of "user" and "logon" keys so that users of the keyrings service can access it as a struct that requires more than 2-byte alignment. fscrypt currently does this which results in the read of fscrypt_key::size being misaligned as it needs 4-byte alignment.

Re: [PATCH 00/10] perf: Multi-die/package support

2019-02-20 Thread Jiri Olsa
On Wed, Feb 20, 2019 at 02:24:13PM +0100, Peter Zijlstra wrote: > On Wed, Feb 20, 2019 at 01:46:19PM +0100, Jiri Olsa wrote: > > On Tue, Feb 19, 2019 at 12:00:01PM -0800, kan.li...@linux.intel.com wrote: > > > > The code bases on the top of Len's multi-die/package support. > > >

Re: [PATCH] KEYS: user: Align the payload buffer

2019-02-20 Thread David Howells
Sent on to James. David

[RFC] percpu: use nr_groups as check condition

2019-02-20 Thread Peng Fan
group_cnt array is defined with NR_CPUS entries, but normally nr_groups will not reach up to NR_CPUS. So there is no issue to the current code. Checking other parts of pcpu_build_alloc_info, use nr_groups as check condition, so make it consistent to use 'group < nr_groups' as for loop check. In

Re: [PATCH v3 3/9] dt-bindings: Add documentation for Milbeaut SoCs

2019-02-20 Thread Rob Herring
On Wed, Feb 20, 2019 at 1:43 AM Sugaya Taichi wrote: > > This adds a DT binding documentation for the M10V and its evaluation > board. > > Signed-off-by: Sugaya Taichi > --- > .../bindings/arm/socionext/milbeaut.yaml | 22 > ++ > 1 file changed, 22 insertions(+) >

Re: [PATCH] powerpc: Move page table dump files in a dedicated subdirectory

2019-02-20 Thread Michael Ellerman
Christophe Leroy writes: > This patch moves the files related to page table dump in a > dedicated subdirectory. > > The purpose is to clean a bit arch/powerpc/mm by regrouping > multiple files handling a dedicated function. > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/Kconfig.debug

Re: [PATCHv2] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Nikolaus Voss
On Wed, 20 Feb 2019, Heikki Krogerus wrote: On Wed, Feb 20, 2019 at 01:57:30PM +0100, Nikolaus Voss wrote: Commit 1a2f474d328f handles block _reads_ separately with plain-I2C adapters, but the problem described with regmap-i2c not handling SMBus block transfers (i.e. read and writes) correctly

[PATCH] kobject: Don't trigger kobject_uevent(KOBJ_REMOVE) twice.

2019-02-20 Thread Tetsuo Handa
syzbot is hitting use-after-free bug in uinput module [1]. This is because kobject_uevent(KOBJ_REMOVE) is called again due to commit 0f4dafc0563c6c49 ("Kobject: auto-cleanup on final unref") after memory allocation fault injection made kobject_uevent(KOBJ_REMOVE) from device_del() from

Re: [PATCH 2/3] iommu: Document iommu_ops.iotlb_sync_map()

2019-02-20 Thread Dmitry Osipenko
20.02.2019 16:00, Geert Uytterhoeven пишет: > Add missing kerneldoc for iommu_ops.iotlb_sync_map(). > > Fixes: 1d7ae53b152dbc5b ("iommu: Introduce iotlb_sync_map callback") > Signed-off-by: Geert Uytterhoeven > --- > include/linux/iommu.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [RFC PATCH] tools/memory-model: Remove (dep ; rfi) from ppo

2019-02-20 Thread Will Deacon
On Wed, Feb 20, 2019 at 02:14:56PM +0100, Andrea Parri wrote: > On Wed, Feb 20, 2019 at 10:26:04AM +0100, Peter Zijlstra wrote: > > On Tue, Feb 19, 2019 at 06:01:17PM -0800, Paul E. McKenney wrote: > > > On Tue, Feb 19, 2019 at 11:57:37PM +0100, Andrea Parri wrote: > > > > Remove this subtle (and,

RE: [PATCH v3 0/2] i2c: designware: Add support for a bus clock

2019-02-20 Thread Gareth Williams
Sorry, the email below was sent prematurely and will be resent shortly. -Gareth > On 20 February 2019 13:26 Gareth Williams wrote: > The Synopsys I2C Controller has a bus clock that some SoCs require to access > the registers. This series also details the new clock property in the bindings >

Re: [PATCH v4] panic: Avoid the extra noise dmesg

2019-02-20 Thread Petr Mladek
On Fri 2019-02-15 13:56:54, Feng Tang wrote: > Hi all, > > On Tue, Dec 11, 2018 at 09:32:30AM +0100, Petr Mladek wrote: > > On Mon 2018-12-10 10:49:22, Kees Cook wrote: > > > On Mon, Dec 10, 2018 at 10:17 AM Steven Rostedt > > > wrote: > > > > > > > > On Fri, 7 Dec 2018 17:51:19 +0800 > > > >

Re: [PATCH v3 1/7] dump_stack: Support adding to the dump stack arch description

2019-02-20 Thread Andrea Parri
> >> > > + * Order the stores above in vsnprintf() vs the store > >> > > of the > >> > > + * space below which joins the two strings. Note this > >> > > doesn't > >> > > + * make the code truly race free because there is no > >> > > barrier on > >> > >

RE: [PATCH] dt-bindings: imx: update scu resource id headfile

2019-02-20 Thread Aisheng Dong
> From: Lucas Stach [mailto:l.st...@pengutronix.de] > Sent: Wednesday, February 20, 2019 8:11 PM > > Am Mittwoch, den 20.02.2019, 11:21 + schrieb Aisheng Dong: > > Hi Marco, > > > > > From: Marco Felsch [mailto:m.fel...@pengutronix.de] > > > Sent: Wednesday, February 20, 2019 6:53 PM > > > >

Re: [PATCH 4/6] lib/test_bitmap: switch test_bitmap_parselist to ktime_get()

2019-02-20 Thread Andy Shevchenko
On Wed, Feb 20, 2019 at 11:37:03AM +0300, Yury Norov wrote: > test_bitmap_parselist currently uses get_cycles which is not > implemented on some platforms, so use ktime_get() instead. This sounds like a fix that should go first in the series. -- With Best Regards, Andy Shevchenko

Re: [PATCH] dt-bindings: imx: update scu resource id headfile

2019-02-20 Thread Marco Felsch
On 19-02-20 13:11, Lucas Stach wrote: > Am Mittwoch, den 20.02.2019, 11:21 + schrieb Aisheng Dong: > > Hi Marco, > > > > > From: Marco Felsch [mailto:m.fel...@pengutronix.de] > > > Sent: Wednesday, February 20, 2019 6:53 PM > > > > > > Hi Aisheng, > > > > > > On 19-02-20 09:49, Aisheng Dong

RE: [PATCH] KEYS: user: Align the payload buffer

2019-02-20 Thread David Laight
From: David Howells > Sent: 20 February 2019 13:32 > > From: Eric Biggers > > Align the payload of "user" and "logon" keys so that users of the > keyrings service can access it as a struct that requires more than > 2-byte alignment. fscrypt currently does this which results in the read > of

Re: [PATCH 4/6] lib/test_bitmap: switch test_bitmap_parselist to ktime_get()

2019-02-20 Thread Andy Shevchenko
On Wed, Feb 20, 2019 at 03:51:01PM +0200, Andy Shevchenko wrote: > On Wed, Feb 20, 2019 at 11:37:03AM +0300, Yury Norov wrote: > > test_bitmap_parselist currently uses get_cycles which is not > > implemented on some platforms, so use ktime_get() instead. > > This sounds like a fix that should go

Re: [PATCH] tools/power turbostat: return the exit status of a command

2019-02-20 Thread David Arcari
ping -- just want to make sure this doesn't get lost. Thanks! On 02/12/2019 09:34 AM, David Arcari wrote: > turbostat failed to return a non-zero exit status even though the > supplied command (turbostat ) failed. Currently when turbostat > forks a command it returns zero instead of the

Re: [PATCH 03/13] mm: Add generic p?d_large() macros

2019-02-20 Thread Steven Price
On 19/02/2019 03:44, Liang, Kan wrote: > > > On 2/18/2019 9:19 AM, Steven Price wrote: >> On 18/02/2019 11:31, Peter Zijlstra wrote: >>> On Fri, Feb 15, 2019 at 05:02:24PM +, Steven Price wrote: From: James Morse Exposing the pud/pgd levels of the page tables to

Re: [PATCH 2/3] PM / devfreq: rockchip-dfi: remove unneeded semicolon

2019-02-20 Thread MyungJoo Ham
On Mon, Feb 18, 2019 at 9:41 AM Chanwoo Choi wrote: > > Hi, > > On 19. 2. 17. 오전 12:18, Yangtao Li wrote: > > The semicolon is unneeded, so remove it. > > > > Signed-off-by: Yangtao Li > > --- > > drivers/devfreq/event/rockchip-dfi.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > >

Re: [PATCH 1/3] PM / devfreq: rk3399_dmc: remove unneeded semicolon

2019-02-20 Thread MyungJoo Ham
On Mon, Feb 18, 2019 at 10:09 AM Chanwoo Choi wrote: > > Hi, > > On 19. 2. 17. 오전 12:18, Yangtao Li wrote: > > The semicolon is unneeded, so remove it. > > > > Signed-off-by: Yangtao Li > > --- > > drivers/devfreq/rk3399_dmc.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > >

Re: [PATCH 1/2 v2] kprobe: Do not use uaccess functions to access kernel memory that can fault

2019-02-20 Thread Jann Horn
On Wed, Feb 20, 2019 at 9:10 AM Masami Hiramatsu wrote: > On Tue, 19 Feb 2019 14:03:30 -0500 > Steven Rostedt wrote: > > > > > Basically, a kprobe is mostly used for debugging what's happening in a > > > > live kernel, to read any address. > > > > > > My point is that "any address" is not

Re: [PATCH v2 0/4] Devicetree updates for Exynos 5260

2019-02-20 Thread Krzysztof Kozlowski
On Tue, 19 Feb 2019 at 14:03, Stuart Menefy wrote: > > These four patches are stand alone updates for the Exynos 5260 device > tree, which do not depend on any other code changes. They either > fix issues or add functionality which is already available > on other Exynos devices. They were

[PATCH 3/9] iio: accel: bmc150: add mount matrix support

2019-02-20 Thread H. Nikolaus Schaller
This patch allows to read a mount-matrix device tree property and report to user-space or in-kernel iio clients. Signed-off-by: H. Nikolaus Schaller --- drivers/iio/accel/bmc150-accel-core.c | 19 +++ 1 file changed, 19 insertions(+) diff --git

[PATCH 9/9] iio: magnetometer: hmc5843: add mount matrix support

2019-02-20 Thread H. Nikolaus Schaller
This patch allows to read a mount-matrix device tree property and report to user-space or in-kernel iio clients. Signed-off-by: H. Nikolaus Schaller --- drivers/iio/magnetometer/hmc5843.h | 1 + drivers/iio/magnetometer/hmc5843_core.c | 14 ++ 2 files changed, 15 insertions(+)

[PATCH 8/9] iio: magnetometer: bmc150: add mount matrix support

2019-02-20 Thread H. Nikolaus Schaller
This patch allows to read a mount-matrix device tree property and report to user-space or in-kernel iio clients. Signed-off-by: H. Nikolaus Schaller --- drivers/iio/magnetometer/bmc150_magn.c | 19 +++ 1 file changed, 19 insertions(+) diff --git

Re: [PATCH] powerpc: Move page table dump files in a dedicated subdirectory

2019-02-20 Thread Christophe Leroy
Le 20/02/2019 à 14:37, Michael Ellerman a écrit : Christophe Leroy writes: This patch moves the files related to page table dump in a dedicated subdirectory. The purpose is to clean a bit arch/powerpc/mm by regrouping multiple files handling a dedicated function. Signed-off-by:

[PATCH 6/9] iio: gyro: bmg160: add mount matrix support

2019-02-20 Thread H. Nikolaus Schaller
This patch allows to read a mount-matrix device tree property and report to user-space or in-kernel iio clients. Signed-off-by: H. Nikolaus Schaller --- drivers/iio/gyro/bmg160_core.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/iio/gyro/bmg160_core.c

[PATCH 7/9] iio: gyro: itg3200: add mount matrix support

2019-02-20 Thread H. Nikolaus Schaller
This patch allows to read a mount-matrix device tree property and report to user-space or in-kernel iio clients. Signed-off-by: H. Nikolaus Schaller --- drivers/iio/gyro/itg3200_core.c | 18 ++ include/linux/iio/gyro/itg3200.h | 1 + 2 files changed, 19 insertions(+) diff

[PATCH 1/9] iio: document bindings for mounting matrices

2019-02-20 Thread H. Nikolaus Schaller
From: Linus Walleij The mounting matrix for sensors was introduced in commit dfc57732ad38 ("iio:core: mounting matrix support") However the device tree bindings are very terse and since this is a widely applicable property, we need a proper binding for it that the other bindings can reference.

[char-misc] mei: hbm: clean the feature flags on link reset

2019-02-20 Thread Tomas Winkler
From: Alexander Usyskin The list of supported functions can be altered upon link reset, clean the flags to allow correct selections of supported features. Cc: v4.19+ Signed-off-by: Alexander Usyskin Signed-off-by: Tomas Winkler --- drivers/misc/mei/hbm.c | 7 +++ 1 file changed, 7

[PATCH 5/9] iio: accel: bma180: convert to devm

2019-02-20 Thread H. Nikolaus Schaller
This simplifies the code a little. Signed-off-by: H. Nikolaus Schaller --- drivers/iio/accel/bma180.c | 56 ++ 1 file changed, 21 insertions(+), 35 deletions(-) diff --git a/drivers/iio/accel/bma180.c b/drivers/iio/accel/bma180.c index

[PATCH 2/9] iio: bindings: clarifications for mount-matrix bindings

2019-02-20 Thread H. Nikolaus Schaller
This adds some clarifications and drawings to make the orientation of the X/Y/Z axis more clear and better prescribe how the values of the matrix are intended to be used. Signed-off-by: H. Nikolaus Schaller --- .../devicetree/bindings/iio/mount-matrix.txt | 60 ++- 1 file

Re: [PATCH] MAINTAINERS: add linux-security-module mailing list to TPM drivers

2019-02-20 Thread Jerry Snitselaar
On Wed Feb 20 19, Jarkko Sakkinen wrote: On Tue, Feb 19, 2019 at 08:58:46PM -0700, Jerry Snitselaar wrote: I've seen requests to add linux-security-module to tpm patch submissions a couple of times recently, so just add the list to MAINTAINERS so get_maintainers.pl will mention it. Cc: Peter

[PATCH 0/9] iio mount matrix - revitalize missing bindings documentation and provide code for bmc150, bmg160, bma180, itg3200, hmc584x

2019-02-20 Thread H. Nikolaus Schaller
This patch series adds the mount-matrix to several iio sensor drivers used in handheld devices. The mount-matrix translates the quite arbitrary orientation of the sensor on some printed circuit board to user-tangible orientation in handheld devices that relates to typical screen orientation.

[PATCH 4/9] iio: accel: bma180: add mount matrix support

2019-02-20 Thread H. Nikolaus Schaller
This patch allows to read a mount-matrix device tree property and report to user-space or in-kernel iio clients. Signed-off-by: H. Nikolaus Schaller --- drivers/iio/accel/bma180.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/iio/accel/bma180.c

Re: [PATCH 2/5] nvmem: sunxi-sid: add support for H5's SID controller

2019-02-20 Thread Frank Lee
HI Maxime and ChenYu, On Mon, Feb 18, 2019 at 4:49 PM Maxime Ripard wrote: > > On Sun, Feb 17, 2019 at 11:23:13AM -0500, Yangtao Li wrote: > > Add support for H5's SID controller. > > > > Signed-off-by: Yangtao Li > > --- > > drivers/nvmem/sunxi_sid.c | 6 ++ > > 1 file changed, 6

Re: [PATCH] KVM: MMU: record maximum physical address width in kvm_mmu_extended_role

2019-02-20 Thread Vitaly Kuznetsov
Yu Zhang writes: > Previously, commit 7dcd57552008 ("x86/kvm/mmu: check if tdp/shadow > MMU reconfiguration is needed") offered some optimization to avoid > the unnecessary reconfiguration. Yet one scenario is broken - when > cpuid changes VM's maximum physical address width, reconfiguration >

Re: [PATCH 1/4] kasan: prevent tracing of tags.c

2019-02-20 Thread Qian Cai
On 2/20/19 7:45 AM, Andrey Konovalov wrote: > Similarly to 0d0c8de8 ("kasan: mark file common so ftrace doesn't trace > it") add the -pg flag to mm/kasan/tags.c to prevent conflicts with > tracing. > > Reported-by: Qian Cai > Signed-off-by: Andrey Konovalov Tested-by: Qian Cai

RE: [PATCH] dt-bindings: imx: update scu resource id headfile

2019-02-20 Thread Aisheng Dong
> From: Marco Felsch [mailto:m.fel...@pengutronix.de] > Sent: Wednesday, February 20, 2019 9:53 PM > > On 19-02-20 13:11, Lucas Stach wrote: > > Am Mittwoch, den 20.02.2019, 11:21 + schrieb Aisheng Dong: > > > Hi Marco, > > > > > > > From: Marco Felsch [mailto:m.fel...@pengutronix.de] > > > >

Re: [PATCH] KEYS: user: Align the payload buffer

2019-02-20 Thread David Howells
David Laight wrote: > I'd make the 'datalen' field 'unsigned int' at the same time. > It will use some of the hole you've made and generate better > code on most arches. Most arches? I though most, if not all, arches had a load-word instruction. Do you want to send me a patch for that? I'd

Re: [PATCH 06/13] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-02-20 Thread Steven Price
On 20/02/2019 11:35, William Kucharski wrote: > > >> On Feb 15, 2019, at 10:02 AM, Steven Price wrote: >> >> The pte_hole() callback is called at multiple levels of the page tables. >> Code dumping the kernel page tables needs to know what at what depth >> the missing entry is. Add this is an

Re: [PATCH v2 2/8] kbuild: Support for Symbols.list creation

2019-02-20 Thread Miroslav Benes
More CCs added. I'd give you lore.kernel.org link for the whole patch set (and cover letter), but the patch set is not archived for some strange reason. On Wed, 30 Jan 2019, Joao Moreira wrote: > For automatic resolution of livepatch relocations, a file called > Symbols.list is used. This file

Re: [PATCH v2 2/4] perf record: implement -z= and --mmap-flush= options

2019-02-20 Thread Alexey Budankov
On 12.02.2019 16:08, Jiri Olsa wrote: > On Mon, Feb 11, 2019 at 11:22:38PM +0300, Alexey Budankov wrote: > > SNIP > >> static int process_synthesized_event(struct perf_tool *tool, >> union perf_event *event, >> struct

Re: [PATCH v2 2/4] perf record: implement -z= and --mmap-flush= options

2019-02-20 Thread Alexey Budankov
On 12.02.2019 16:08, Jiri Olsa wrote: > On Mon, Feb 11, 2019 at 11:22:38PM +0300, Alexey Budankov wrote: > > SNIP > >> diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h >> index d96eccd7d27f..0e14884f28b2 100644 >> --- a/tools/perf/util/session.h >> +++

Re: [PATCHv2] usb: typec: tps6598x: handle block writes separately with plain-I2C adapters

2019-02-20 Thread Heikki Krogerus
On Wed, Feb 20, 2019 at 02:38:47PM +0100, Nikolaus Voss wrote: > On Wed, 20 Feb 2019, Heikki Krogerus wrote: > > On Wed, Feb 20, 2019 at 01:57:30PM +0100, Nikolaus Voss wrote: > > > Commit 1a2f474d328f handles block _reads_ separately with plain-I2C > > > adapters, but the problem described with

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