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 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: [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

[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

[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

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 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 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 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 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] 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,

[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 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

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 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

[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

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

[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] 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]

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

[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 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

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 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. >

[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

[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 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

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

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] 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 -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: [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

[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

[PATCH v4 2/3] dt-bindings: i2c: Add Mediatek MT8183 i2c binding

2019-02-20 Thread Qii Wang
Add MT8183 i2c binding to binding file. Compare to MT2712 i2c controller, MT8183 has different registers, offsets, and clock. Signed-off-by: Qii Wang --- Documentation/devicetree/bindings/i2c/i2c-mtk.txt |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

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

2019-02-20 Thread Dan Carpenter
On Wed, Feb 20, 2019 at 12:32:02PM +, 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

Re: BUG: assuming atomic context at kernel/seccomp.c:LINE

2019-02-20 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:abf446c90405 Add linux-next specific files for 20190220 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=101e7fb0c0 kernel config: https://syzkaller.appspot.com/x/.config?x

[PATCH v2,0/7] Add Mediatek thermal dirver for mt8183

2019-02-20 Thread michael.kao
This patchset supports for mt8183 chip to mtk_thermal.c. MT8183 has six temperature sensors and two thermal controllers. It has different calibration coefficent with past project, and doesn't need to select bank. As a result, we add the common architecture for scalability. change in v2: 1.Add fix

Re: [PATCH 1/3] iio: light: Add driver for ap3216c

2019-02-20 Thread Jonathan Cameron
On Mon, 18 Feb 2019 14:35:51 -0500 Sven Van Asbroeck wrote: > Hi Jonathan, > > Thanks again for your clear and extensive feedback ! > > On Mon, Feb 18, 2019 at 10:16 AM Jonathan Cameron > wrote: > > > > I suspect that would break lots of devices if it happened, but > > fair enough that

[PATCH v2,3/7] thermal: mediatek: add calibration item

2019-02-20 Thread michael.kao
From: Michael Kao Add calibration item in thermal_data to support the project with different calibration coefficient. Signed-off-by: Michael Kao --- drivers/thermal/mtk_thermal.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git

[PATCH v2,5/7] thermal: mediatek: add flag for bank selection

2019-02-20 Thread michael.kao
From: Michael Kao For past ic designs, the thermal controller should select banks before reading the thermal sensor. And the new ic design architecture removes this mechanism. Signed-off-by: Michael Kao --- drivers/thermal/mtk_thermal.c | 20 ++-- 1 file changed, 14

[PATCH v2,6/7] dt-bindings: thermal: add binding document for mt8183 thermal controller

2019-02-20 Thread michael.kao
From: Michael Kao This patch adds binding document for mt8183 thermal controller. Signed-off-by: Michael Kao --- Documentation/devicetree/bindings/thermal/mediatek-thermal.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/thermal/mediatek-thermal.txt

[PATCH v2,1/7] thermal: mediatek: fix register index error

2019-02-20 Thread michael.kao
From: Michael Kao The index of msr and adcpnp should match the sensor which belongs to the selected bank in the for loop. Fixes: b7cf0053738c ("thermal: Add Mediatek thermal driver for mt2701.") Signed-off-by: Michael Kao --- drivers/thermal/mtk_thermal.c | 6 -- 1 file changed, 4

[PATCH v2,7/7] thermal: mediatek: add support for MT8183

2019-02-20 Thread michael.kao
From: Michael Kao MT8183 has two built-in thermal controllers with total six thermal sensors. And it doesn't have bank, so doesn't need to select bank. This patch adds support for mt8183. Signed-off-by: Michael Kao --- drivers/thermal/mtk_thermal.c | 99

[PATCH v2,2/7] thermal: mediatek: add common index of vts settings.

2019-02-20 Thread michael.kao
From: Michael Kao Each project has different number of vts settings. For the MT2701 just have to set three vts, but the original code flow add five unnecessary vts. Add common index of vts settings for scalablity, and reduce the setting of unnecessary vts. Signed-off-by: Michael Kao ---

[PATCH v2,4/7] thermal: mediatek: add thermal controller offset

2019-02-20 Thread michael.kao
From: Michael Kao One thermal controller can read four sensors at most, so we need to add controller_offset for the project with more than four sensors to reuse the same register settings. Signed-off-by: Michael Kao --- drivers/thermal/mtk_thermal.c | 79

Re: [PATCH] cpufreq: kyro: Reduce frame-size of qcom_cpufreq_kryo_probe()

2019-02-20 Thread Arnd Bergmann
On Wed, Feb 20, 2019 at 12:14 PM Viresh Kumar wrote: > > With the introduction of commit 846a415bf440 ("arm64: default NR_CPUS to > 256"), we have started getting following compilation warning: > > qcom-cpufreq-kryo.c:168:1: warning: the frame size of 2160 bytes is larger > than 2048 bytes

[PATCH 5/6] perf tools: Increase debug leve for cpu_map__snprint verbose output

2019-02-20 Thread Jiri Olsa
So it does not screw up single -v verbose output. Link: http://lkml.kernel.org/n/tip-4ucm1kfmy1xwp9w8xohdz...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/cpumap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/util/cpumap.c

[PATCH 3/6] perf script: Allow +- operator for type specific fields option

2019-02-20 Thread Jiri Olsa
Adding support to add/remove fields for specific event types in -F option. It's now possible to use '+-' after event type, like: # cat > test.c #include int main(void) { printf("Hello world\n"); while(1) {} } ^D # gcc -g -o test test.c # perf probe -x test 'test.c:5'

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

2019-02-20 Thread 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 a/arch/arm/configs/milbeaut_m10v_defconfig > >> b/arch/arm/configs/milbeaut_m10v_defconfig > >> new file

[PATCH 1/6] perf tools: Don't report zero period samples for slave events

2019-02-20 Thread Jiri Olsa
There's no reason to deliver sample for zero period. It means there was no value for slave event since its last group leader sample. Link: http://lkml.kernel.org/n/tip-d5he0papol5dhwvfq33es...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/session.c | 7 +++ 1 file changed, 7

[PATCH 0/6] perf tools: Assorted fixes

2019-02-20 Thread Jiri Olsa
hi, sending assorted general fixes that queued up in my other branches. Also available in here: https://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git perf/fixes thanks, jirka --- Jiri Olsa (6): perf tools: Don't report zero period samples for slave events perf tools:

[PATCH 6/6] perf tools: Make rm_rf to remove single file

2019-02-20 Thread Jiri Olsa
Let rm_rf remove file if it's provided by path. Cc: Alexey Budankov Link: http://lkml.kernel.org/n/tip-whhp3ej5795l9dc86xfyy...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/util.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git

[PATCH 4/6] perf tools: Add missing new line into pr_debug call

2019-02-20 Thread Jiri Olsa
Adding missing new line into pr_debug call in perf_event__synthesize_bpf_events function, so the error message does not screw the verbose output. Link: http://lkml.kernel.org/n/tip-z9h6x8v1mef0iqsfx6m28...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/bpf-event.c | 2 +- 1 file

[PATCH 2/6] perf tools: Force sample_type for slave events

2019-02-20 Thread Jiri Olsa
Forcing sample_type setup for slave events in group leader sessions. We don't get sample for slave events, we make them when delivering group leader sample. Set the slave event to follow the master sample_type to ease up report. Link:

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Måns Rullgård
"Rafael J. Wysocki" writes: > On Wed, Feb 20, 2019 at 1:12 PM Måns Rullgård wrote: >> >> Johan Hovold writes: >> >> > On Wed, Feb 20, 2019 at 11:35:06AM +, Mans Rullgard wrote: >> >> If the provided fwnode is an OF node, set dev.of_node as well. >> >> >> >> Some drivers are just shims that

Re: [PATCH v2 1/3] arm64: mm: use appropriate ctors for page tables

2019-02-20 Thread Matthew Wilcox
On Wed, Feb 20, 2019 at 03:57:59PM +0530, Anshuman Khandual wrote: > On 02/20/2019 03:58 AM, Yu Zhao wrote: > > On Tue, Feb 19, 2019 at 11:47:12AM +0530, Anshuman Khandual wrote: > >> On 02/19/2019 11:02 AM, Yu Zhao wrote: > >>> On Tue, Feb 19, 2019 at 09:51:01AM +0530, Anshuman Khandual wrote: >

[PATCH 0/3] usb: gadget: atmel: support USB suspend/resume

2019-02-20 Thread Jonas Bonn
This patch series hooks up proper support for USB suspend and resume to the Atmel UDC. Jonas Bonn (3): usb: gadget: atmel_usba_udc: simplify setting of interrupt-enabled mask usb: gadget: atmel: support USB suspend usb: gadget: atmel: tie wake lock to running clock

[PATCH 1/3] usb: gadget: atmel_usba_udc: simplify setting of interrupt-enabled mask

2019-02-20 Thread Jonas Bonn
This patch adds set and clear functions for enabling/disabling interrupts. This simplifies the implementation a bit as the masking of previously set bits doesn't need to be so explicit. Signed-off-by: Jonas Bonn CC: Cristian Birsan CC: Felipe Balbi CC: Greg Kroah-Hartman CC: Nicolas Ferre

[PATCH 3/3] usb: gadget: atmel: tie wake lock to running clock

2019-02-20 Thread Jonas Bonn
If the USB device is connected to a host, the CPU cannot be suspended or else the USB device appears to be disconnected from the host's point of view. Only after a "USB suspend" state has been entered (as set by the host) or the host is disconnected can the system safely be suspended: in both

[PATCH 2/3] usb: gadget: atmel: support USB suspend

2019-02-20 Thread Jonas Bonn
This patch adds support for USB suspend to the Atmel UDC. When suspended, the UDC clock can be stopped, resulting in some power savings. The "wake up" interrupt will fire irregardless of whether the clock is running or not, allowing the UDC clock to be restarted when the USB master wants to wake

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Rafael J. Wysocki
On Wed, Feb 20, 2019 at 1:12 PM Måns Rullgård wrote: > > Johan Hovold writes: > > > On Wed, Feb 20, 2019 at 11:35:06AM +, Mans Rullgard wrote: > >> If the provided fwnode is an OF node, set dev.of_node as well. > >> > >> Some drivers are just shims that create extra "glue" devices with the >

Re: [PATCH] printk: Pass caller information to log_store().

2019-02-20 Thread Petr Mladek
On Sat 2019-02-16 19:59:33, Tetsuo Handa wrote: > When thread1 called printk() which did not end with '\n', and then thread2 > called printk() which ends with '\n' before thread1 calls pr_cont(), the > partial content saved into "struct cont" is flushed by thread2 despite the > partial content was

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

2019-02-20 Thread YueHaibing
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 read_extent_buffer(). Also there is an extra cast. This patch

Re: linux-next: Tree for Feb 20

2019-02-20 Thread Mimi Zohar
> Fixes for this have already been proposed, and should appear in -next shortly > > The EFI one is here > https://mail.google.com/mail/u/0/#label/linux-efi/FMfcgxwBVgrQRjglPkWRqRqVclGgVDnB > > Not sure about the IMA one, Mimi should be able to comment ...      I've already commented on the

Re: [PATCH] iio: mma8452: mark expected switch fall-through

2019-02-20 Thread Jonathan Cameron
On Mon, 11 Feb 2019 16:23:18 -0600 "Gustavo A. R. Silva" wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch > cases where we are expecting to fall through. > > This patch fixes the following warning: > > drivers/iio/accel/mma8452.c: In function ‘mma8452_probe’: >

Re: [PATCH v2 1/2] drivers: provide devm_platform_ioremap_resource()

2019-02-20 Thread Greg Kroah-Hartman
On Wed, Feb 20, 2019 at 12:21:26PM +0100, Bartosz Golaszewski wrote: > śr., 20 lut 2019 o 12:16 Greg Kroah-Hartman > napisał(a): > > > > On Wed, Feb 20, 2019 at 12:12:39PM +0100, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > There are currently 1200+ instances of using

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

2019-02-20 Thread Heikki Krogerus
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) correctly also exists > with writes. > > As

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Måns Rullgård
Johan Hovold writes: > On Wed, Feb 20, 2019 at 11:35:06AM +, Mans Rullgard wrote: >> If the provided fwnode is an OF node, set dev.of_node as well. >> >> Some drivers are just shims that create extra "glue" devices with the >> DT device as parent and have the real driver bind to these. In

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

2019-02-20 Thread Lucas Stach
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 wrote: > > > > From: Marco Felsch

Re: [PATCH v2] iio/gyro/bmg160: Use millidegrees for temperature scale

2019-02-20 Thread Jonathan Cameron
On Wed, 13 Feb 2019 08:41:47 +0100 Mike Looijmans wrote: > Standard unit for temperature is millidegrees Celcius, whereas this driver > was reporting in degrees. Fix the scale factor in the driver. > > Signed-off-by: Mike Looijmans Applied to the fixes-togreg branch of iio.git and marked for

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

2019-02-20 Thread Mans Rullgard
This adds pinctrl settings for various missing uart options. Signed-off-by: Mans Rullgard --- Changed in v2: - add /omit-if-no-ref/ tags to new nodes --- arch/arm/boot/dts/sun7i-a20.dtsi | 54 1 file changed, 54 insertions(+) diff --git

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

2019-02-20 Thread Peter Ujfalusi
Hi Sam, On 20/02/2019 13.52, Sam Ravnborg wrote: > Hi Peter. > > On Wed, Feb 20, 2019 at 12:39:11PM +0200, Peter Ujfalusi wrote: >> Hi Sam, >> >> On 15/02/2019 20.07, Sam Ravnborg wrote: +#include +#include +#include +#include + +#include >>> Please do not use

Re: [PATCH v2 0/2] drivers: new helper for ioremapping memory resources

2019-02-20 Thread Andy Shevchenko
On Wed, Feb 20, 2019 at 12:12:38PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > There are currently 1200+ instances of using platform_get_resource() > and devm_ioremap_resource() together in the kernel tree. It's a minor > redundancy, but consolidation is always good. > >

[PATCH] staging: octeon-usb: fix misspelled "re-enable"

2019-02-20 Thread Sumit Pundir
Fixes misspelled "re-enable" in comment. Reported by checkpatch.pl Signed-off-by: Sumit Pundir --- drivers/staging/octeon-usb/octeon-hcd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/octeon-usb/octeon-hcd.h b/drivers/staging/octeon-usb/octeon-hcd.h index

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

2019-02-20 Thread Anson Huang
Update i.MX SCU resource ID table according to latest system controller firmware. Latest system controller firmware removes below resources which are never be used: IMX_SC_R_DC_0_CAPTURE0 IMX_SC_R_DC_0_CAPTURE1 IMX_SC_R_DC_0_INTEGRAL0 IMX_SC_R_DC_0_INTEGRAL1

Re: [PATCH v3] iio: adc: ti-ads7950: add GPIO support

2019-02-20 Thread Jonathan Cameron
On Wed, 13 Feb 2019 09:10:53 +0100 David Lechner wrote: > On 2/12/19 9:57 PM, justinpo...@gmail.com wrote: > > From: Justin Chen > > > > The ADS79XX has GPIO pins that can be used. Add support for the GPIO > > pins using the GPIO chip framework. > > > > Signed-off-by: Justin Chen > > --- >

Re: [PATCH v3 7/9] s390: ap: implement PAPQ AQIC interception in kernel

2019-02-20 Thread Halil Pasic
On Thu, 14 Feb 2019 14:51:07 +0100 Pierre Morel wrote: > We register the AP PQAP instruction hook during the open > of the mediated device. And unregister it on release. > > In the AP PQAP instruction hook, if we receive a demand to > enable IRQs, > - we retrieve the vfio_ap_queue based on the

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Måns Rullgård
Mans Rullgard writes: > If the provided fwnode is an OF node, set dev.of_node as well. > > Some drivers are just shims that create extra "glue" devices with the > DT device as parent and have the real driver bind to these. In these > cases, the glue device needs to get a reference to the

Re: [PATCH v2 2/2] staging: iio: frequency: ad9834: Move phase and scale to standard iio attribute

2019-02-20 Thread Jonathan Cameron
On Thu, 14 Feb 2019 18:41:30 +0200 Beniamin Bia wrote: > The custom phase and scale attributes were moved to standard iio types. > > Signed-off-by: Beniamin Bia Hi, This hits the same fundamental questions of ABI as the FSK elements in the previous patch, just now for Phase Shift Keying.

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

2019-02-20 Thread Sam Ravnborg
Hi Peter. On Wed, Feb 20, 2019 at 12:39:11PM +0200, Peter Ujfalusi wrote: > Hi Sam, > > On 15/02/2019 20.07, Sam Ravnborg wrote: > >> +#include > >> +#include > >> +#include > >> +#include > >> + > >> +#include > > Please do not use drmP.h in new drivers - we try to get rid of this file. >

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Johan Hovold
On Wed, Feb 20, 2019 at 11:35:06AM +, Mans Rullgard wrote: > If the provided fwnode is an OF node, set dev.of_node as well. > > Some drivers are just shims that create extra "glue" devices with the > DT device as parent and have the real driver bind to these. In these > cases, the glue

Re: [PATCH v2 1/2] staging: iio: frequency: ad9834: Move frequency to standard iio types

2019-02-20 Thread Jonathan Cameron
On Thu, 14 Feb 2019 18:41:29 +0200 Beniamin Bia wrote: > Frequency attribute is added with a standard type from iio framework > instead of custom attribute. This is a small step towards removing any > unnecessary custom attribute. Ad9834 will diverge from ad9833 in the > future, that is why we

[PATCH 1/7] clk: at91: allow configuring peripheral PCR layout

2019-02-20 Thread Alexandre Belloni
The PCR register actually changed layout for each SoC. By chance, this didn't have impact on sama5d[2-4] support but since sama5d3, PID is seven bits wide and sama5d4 and sama5d2 don't have DIV. For the DT backward compatibility, keep the layout as is. Signed-off-by: Alexandre Belloni ---

Re: [PATCH v2 04/26] mm: allow VM_FAULT_RETRY for multiple times

2019-02-20 Thread Peter Xu
On Wed, Feb 13, 2019 at 11:34:44AM +0800, Peter Xu wrote: > On Tue, Feb 12, 2019 at 10:56:10AM +0800, Peter Xu wrote: > > [...] > > > @@ -1351,7 +1351,7 @@ EXPORT_SYMBOL_GPL(__lock_page_killable); > > int __lock_page_or_retry(struct page *page, struct mm_struct *mm, > >

[PATCH 5/7] clk: at91: add sam9x60 PLL driver

2019-02-20 Thread Alexandre Belloni
The PLLs on the sam9x60 (PLLA and USB PLL) use a different register set and programming model than the previous SoCs. Signed-off-by: Alexandre Belloni --- drivers/clk/at91/Makefile | 1 + drivers/clk/at91/clk-sam9x60-pll.c | 329 + drivers/clk/at91/pmc.h

[PATCH 4/7] clk: at91: master: Add sam9x60 support

2019-02-20 Thread Alexandre Belloni
The sam9x60 cpu clock is located at a different offset but is otherwise similar to the master clock. Signed-off-by: Alexandre Belloni --- drivers/clk/at91/clk-master.c | 8 +--- drivers/clk/at91/pmc.h| 1 + include/linux/clk/at91_pmc.h | 2 ++ 3 files changed, 8 insertions(+), 3

[PATCH 6/7] dt-bindings: clk: at91: add bindings for SAM9X60 pmc

2019-02-20 Thread Alexandre Belloni
Add SAM9X60 PMC compatible string. Cc: Rob Herring Signed-off-by: Alexandre Belloni --- Documentation/devicetree/bindings/clock/at91-clock.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/clock/at91-clock.txt

[PATCH V4 4/4] irq: imx: irqsteer: add multi output interrupts support

2019-02-20 Thread Aisheng Dong
One irqsteer channel can support up to 8 output interrupts. Cc: Marc Zyngier Cc: Lucas Stach Cc: Shawn Guo Reviewed-by: Lucas Stach Signed-off-by: Dong Aisheng --- ChangeLog: v3->v4: * no changes v2->v3: * add error check for imx_irqsteer_get_hwirq_base * use DIV_ROUND_UP * merge 'hwirq

[PATCH V4 1/4] dt-binding: irq: imx-irqsteer: use irq number instead of group number

2019-02-20 Thread Aisheng Dong
Not all 64 interrupts may be used in one group. e.g. most irqsteer in imx8qxp and imx8qm subsystems supports only 32 interrupts. As the IP integration parameters are Channel number and interrupts number, let's use fsl,irqs-num to represents how many interrupts supported by this irqsteer channel.

[PATCH V4 2/4] dt-bindings: irq: imx-irqsteer: add multi output interrupts support

2019-02-20 Thread Aisheng Dong
One irqsteer channel can support up to 8 output interrupts. Cc: Marc Zyngier Cc: Rob Herring Cc: Shawn Guo Cc: devicet...@vger.kernel.org Reviewed-by: Lucas Stach Signed-off-by: Dong Aisheng --- ChangeLog: v3->v4: * no changes v2->v3: * fix a typo v1->v2: * remove one unnecessary note.

[PATCH V4 0/4] irq: imx-irqsteer: add 32 interrupts chan and multi outputs support

2019-02-20 Thread Aisheng Dong
Not all 64 interrupts may be used in one group. e.g. most irqsteer in imx8qxp and imx8qm subsystems supports only 32 interrupts. And one irqsteer channel can support up to 8 output interrupts. This patch series aims to support 32 interrupts chan and multi output interrupts. Tested on: iMX8QXP

[PATCH V4 3/4] irq: imx-irqsteer: change to use reg_num instead of irq_group

2019-02-20 Thread Aisheng Dong
One group can manage 64 interrupts by using two registers (e.g. STATUS/SET). However, the integrated irqsteer may support only 32 interrupts which needs only one register in a group. But the current driver assume there's a mininum of two registers in a group which result in a wrong register map

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

2019-02-20 Thread William Kucharski
> 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 extra parameter to pte_hole(). > When the depth isn't

<    4   5   6   7   8   9   10   11   12   >