[PATCH] spi: dt-bindings: Convert spi-sifive binding to json-schema

2019-09-10 Thread Pragnesh Patel
Convert the spi-sifive binding to DT schema format. Signed-off-by: Pragnesh Patel --- .../devicetree/bindings/spi/spi-sifive.txt | 37 -- .../devicetree/bindings/spi/spi-sifive.yaml| 86 ++ 2 files changed, 86 insertions(+), 37 deletions(-) delete mod

Re: [PATCH] serial/sifive: select SERIAL_EARLYCON

2019-09-10 Thread Christoph Hellwig
On Tue, Sep 10, 2019 at 08:57:37AM +0200, Andreas Schwab wrote: > On Sep 10 2019, Christoph Hellwig wrote: > > > The sifive serial driver implements earlycon support, > > It should probably be documented in admin-guide/kernel-parameters.txt. How so? Wіth OF and a stdout path you just set early

Re: [alsa-devel] [PATCH] ASoC: SOF: Intel: work around snd_hdac_aligned_read link failure

2019-09-10 Thread Takashi Iwai
On Mon, 09 Sep 2019 22:51:23 +0200, Arnd Bergmann wrote: > > On Mon, Sep 9, 2019 at 10:39 PM Pierre-Louis Bossart > wrote: > > > > On 9/9/19 2:51 PM, Arnd Bergmann wrote: > > > When CONFIG_SND_HDA_ALIGNED_MMIO is selected by another driver > > > (i.e. Tegra) that selects CONFIG_SND_HDA_CORE as a

Re: [PATCH v2 06/14] dmaengine: ti: Add cppi5 header for UDMA

2019-09-10 Thread Grygorii Strashko
On 09/09/2019 13:59, Peter Ujfalusi wrote: On 08/09/2019 17.25, Vinod Koul wrote: On 30-07-19, 12:34, Peter Ujfalusi wrote: +/** + * Descriptor header, present in all types of descriptors + */ +struct cppi5_desc_hdr_t { + u32 pkt_info0; /* Packet info word 0 (n/a in Buffer desc) */

Re: [PATCH] driver core: ensure a device has valid node id in device_add()

2019-09-10 Thread Yunsheng Lin
On 2019/9/10 2:50, Michal Hocko wrote: > On Mon 09-09-19 14:04:23, Yunsheng Lin wrote: >> Currently a device does not belong to any of the numa nodes >> (dev->numa_node is NUMA_NO_NODE) when the node id is neither >> specified by fw nor by virtual device layer and the device has >> no parent device

Re: [PATCH] mm: add dummy can_do_mlock() helper

2019-09-10 Thread Michal Hocko
On Mon 09-09-19 22:41:40, Arnd Bergmann wrote: > On kernels without CONFIG_MMU, we get a link error for the siw > driver: > > drivers/infiniband/sw/siw/siw_mem.o: In function `siw_umem_get': > siw_mem.c:(.text+0x4c8): undefined reference to `can_do_mlock' > > This is probably not the only driver

Re: [PATCH] driver core: ensure a device has valid node id in device_add()

2019-09-10 Thread Michal Hocko
On Tue 10-09-19 14:43:32, Yunsheng Lin wrote: > On 2019/9/9 17:53, Greg KH wrote: [...] > > But as we do not know the node, can we cause more harm by randomly > > picking one (i.e. putting it all in node 0)? > If we do not pick node 0 for device with invalid node, then caller need > to check the no

[PATCH v7 3/7] rtc: mt6397: improvements of rtc driver

2019-09-10 Thread Frank Wunderlich
From: Josef Friedl - use regmap_read_poll_timeout to drop while-loop - use devm-api to drop remove-callback Suggested-by: Alexandre Belloni Signed-off-by: Josef Friedl Signed-off-by: Frank Wunderlich Acked-by: Alexandre Belloni --- changes since v6: none changes since v5: none changes since

[PATCH v7 2/7] rtc: mt6397: move some common definitions into rtc.h

2019-09-10 Thread Frank Wunderlich
From: Josef Friedl move code to separate header-file to reuse definitions later in poweroff-driver (drivers/power/reset/mt6323-poweroff.c) Suggested-by: Frank Wunderlich Signed-off-by: Josef Friedl Signed-off-by: Frank Wunderlich Acked-by: Alexandre Belloni Acked-for-MFD-by: Lee Jones --- c

[PATCH v7 0/7] implement poweroff for mt6323 / bpi-r2

2019-09-10 Thread Frank Wunderlich
mainline-driver does not support mt6323 this series makes some cleanup to mt6397-rtc-driver, adds mt6323 and implement power-controller on it. tested on bananapi-r2 Original Patch from Josef Friedl changes since v6: - rebased on 5.3-rc8 - post only 7 Patches because 6 are alread

[PATCH v7 5/7] power: reset: add driver for mt6323 poweroff

2019-09-10 Thread Frank Wunderlich
From: Josef Friedl add poweroff driver for mt6323 and make Makefile and Kconfig-Entries Suggested-by: Frank Wunderlich Signed-off-by: Josef Friedl Signed-off-by: Frank Wunderlich Acked-by: Sebastian Reichel --- changes since v6: none changes since v5: split out mfd/mt6397/core.h changes sinc

[PATCH v7 7/7] arm: dts: mt6323: add keys, power-controller, rtc and codec

2019-09-10 Thread Frank Wunderlich
From: Josef Friedl support poweroff and power-related keys on bpi-r2 Suggested-by: Frank Wunderlich Signed-off-by: Josef Friedl Signed-off-by: Frank Wunderlich --- changes since v6: none changes since v5: none changes since v4: none changes since v3: none changes since v2: none (=v2 part 7) -

[PATCH v7 4/7] rtc: mt6397: add compatible for mt6323

2019-09-10 Thread Frank Wunderlich
From: Josef Friedl use mt6397 rtc driver also for mt6323 but with different base/size see "mfd: mt6323: add mt6323 rtc+pwrc" Signed-off-by: Josef Friedl Signed-off-by: Frank Wunderlich Acked-by: Alexandre Belloni --- changes since v6: none changes since v5: none changes since v4: none changes

[PATCH v7 6/7] MAINTAINERS: add Mediatek shutdown drivers

2019-09-10 Thread Frank Wunderlich
From: Josef Friedl add Section in MAINTAINERS file for poweroff driver Signed-off-by: Josef Friedl Signed-off-by: Frank Wunderlich Acked-by: Sebastian Reichel --- changes since v6: none changes since v5: none changes since v4: none changes since v3: moved SOB changes since v2: none (=v2 part

[PATCH v7 1/7] dt-bindings: rtc: mediatek: add missing mt6397 rtc

2019-09-10 Thread Frank Wunderlich
From: Josef Friedl add missing devicetree-binding document for mt6397 rtc in later patch driver is extended with mt6323 chip Suggested-By: Alexandre Belloni Signed-off-by: Josef Friedl Signed-off-by: Frank Wunderlich Reviewed-by: Rob Herring --- changes since v6: none changes since v5: none

Re: [PATCH net 0/2] fix memory leak for sctp_do_bind

2019-09-10 Thread Neil Horman
On Tue, Sep 10, 2019 at 03:13:41PM +0800, Mao Wenan wrote: > First patch is to do cleanup, remove redundant assignment, > second patch is to fix memory leak for sctp_do_bind if failed > to bind address. > > Mao Wenan (2): > sctp: remove redundant assignment when call sctp_get_port_local > sctp

Re: mtd raw nand denali.c broken for Intel/Altera Cyclone V

2019-09-10 Thread Masahiro Yamada
On Fri, Sep 6, 2019 at 9:39 PM Tim Sander wrote: > > Hi > > I have noticed that there multiple breakages piling up for the denali nand > driver on the Intel/Altera Cyclone V. Unfortunately i had no time to track the > mainline kernel closely. So the breakage seems to pile up. I am a little > disap

Re: [PATCH] driver core: ensure a device has valid node id in device_add()

2019-09-10 Thread Michal Hocko
Our emails crossed, sorry about that. On Tue 10-09-19 15:08:20, Yunsheng Lin wrote: > On 2019/9/10 2:50, Michal Hocko wrote: > > On Mon 09-09-19 14:04:23, Yunsheng Lin wrote: [...] > >> Even if a device's numa node is not specified, the device really > >> does belong to a node. > > > > What does

Re: [PATCH v2 10/14] dmaengine: ti: New driver for K3 UDMA - split#3: alloc/free chan_resources

2019-09-10 Thread Grygorii Strashko
On 30/07/2019 12:34, Peter Ujfalusi wrote: Split patch for review containing: channel rsource allocation and free functions. DMA driver for Texas Instruments K3 NAVSS Unified DMA – Peripheral Root Complex (UDMA-P) The UDMA-P is intended to perform similar (but significantly upgraded) functio

Re: [PATCH v2 08/14] dmaengine: ti: New driver for K3 UDMA - split#1: defines, structs, io func

2019-09-10 Thread Grygorii Strashko
On 30/07/2019 12:34, Peter Ujfalusi wrote: Split patch for review containing: defines, structs, io and low level functions and interrupt callbacks. DMA driver for Texas Instruments K3 NAVSS Unified DMA – Peripheral Root Complex (UDMA-P) The UDMA-P is intended to perform similar (but signific

Re: [RFC PATCH untested] vhost: block speculation of translated descriptors

2019-09-10 Thread Jason Wang
On 2019/9/10 下午2:48, Michael S. Tsirkin wrote: On Tue, Sep 10, 2019 at 09:52:10AM +0800, Jason Wang wrote: On 2019/9/9 下午10:45, Michael S. Tsirkin wrote: On Mon, Sep 09, 2019 at 03:19:55PM +0800, Jason Wang wrote: On 2019/9/8 下午7:05, Michael S. Tsirkin wrote: iovec addresses coming from vho

[PATCHv4] MIPS: JZ4780: DTS: Add I2C nodes

2019-09-10 Thread Alexandre GRIVEAUX
Add the devicetree nodes for the I2C core of the JZ4780 SoC, disabled by default. Signed-off-by: Alexandre GRIVEAUX --- arch/mips/boot/dts/ingenic/jz4780.dtsi | 86 ++ 1 file changed, 86 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi b/arch/mips/boot/

Re: [LKP] [mm, memcg] 1e577f970f: will-it-scale.per_process_ops -7.2% regression

2019-09-10 Thread Michal Hocko
On Tue 10-09-19 15:08:41, Huang, Ying wrote: > Michal Hocko writes: > > > On Mon 09-09-19 10:15:44, kernel test robot wrote: > >> Greeting, > >> > >> FYI, we noticed a -7.2% regression of will-it-scale.per_process_ops due to > >> commit: > > > > What is the memcg setup for this test? > > Excep

Re: [PATCH] mm: add dummy can_do_mlock() helper

2019-09-10 Thread Arnd Bergmann
On Tue, Sep 10, 2019 at 9:10 AM Michal Hocko wrote: > but IB on nonMMU? Whut? Is there any HW that actually supports this? > Just wondering... Probably not, but I can't think of a good reason to completely disable it in Kconfig. Almost everything can be built without MMU at the moment, but the s

Re: [PATCH 2/2] mm: Add a bounds check in devm_memremap_pages()

2019-09-10 Thread David Hildenbrand
On 10.09.19 04:52, Alastair D'Silva wrote: > From: Alastair D'Silva > > The call to check_hotplug_memory_addressable() validates that the memory > is fully addressable. > > Without this call, it is possible that we may remap pages that is > not physically addressable, resulting in bogus section

Re: [PATCH] net/ibmvnic: Fix missing { in __ibmvnic_reset

2019-09-10 Thread David Miller
From: Michal Suchanek Date: Mon, 9 Sep 2019 22:44:51 +0200 > Commit 1c2977c09499 ("net/ibmvnic: free reset work of removed device from > queue") > adds a } without corresponding { causing build break. > > Fixes: 1c2977c09499 ("net/ibmvnic: free reset work of removed device from > queue") > Si

Re: [PATCH 1/2] memory_hotplug: Add a bounds check to check_hotplug_memory_range()

2019-09-10 Thread David Hildenbrand
On 10.09.19 04:52, Alastair D'Silva wrote: > From: Alastair D'Silva > > On PowerPC, the address ranges allocated to OpenCAPI LPC memory > are allocated from firmware. These address ranges may be higher > than what older kernels permit, as we increased the maximum > permissable address in commit 4

Re: [PATCH] arm64: fix unreachable code issue with cmpxchg

2019-09-10 Thread Will Deacon
On Mon, Sep 09, 2019 at 10:21:35PM +0200, Arnd Bergmann wrote: > On arm64 build with clang, sometimes the __cmpxchg_mb is not inlined > when CONFIG_OPTIMIZE_INLINING is set. Hmm. Given that CONFIG_OPTIMIZE_INLINING has also been shown to break assignment of local 'register' variables on GCC, perha

Re: [PATCH 1/2] memory_hotplug: Add a bounds check to check_hotplug_memory_range()

2019-09-10 Thread David Hildenbrand
On 10.09.19 04:52, Alastair D'Silva wrote: > From: Alastair D'Silva > > On PowerPC, the address ranges allocated to OpenCAPI LPC memory > are allocated from firmware. These address ranges may be higher > than what older kernels permit, as we increased the maximum > permissable address in commit 4

Re: [PATCH] reset: uniphier-glue: Add Pro5 USB3 support

2019-09-10 Thread Philipp Zabel
Hi Kunihiko, On Tue, 2019-09-10 at 10:55 +0900, Kunihiko Hayashi wrote: > Pro5 SoC has same scheme of USB3 reset as Pro4, so the data for Pro5 is > equivalent to Pro4. > > Signed-off-by: Kunihiko Hayashi If it is exactly the same, you could keep using the same compatible: > --- > Documentatio

Re: [PATCH v2 10/14] dmaengine: ti: New driver for K3 UDMA - split#3: alloc/free chan_resources

2019-09-10 Thread Peter Ujfalusi
On 10/09/2019 10.25, Grygorii Strashko wrote: > > > On 30/07/2019 12:34, Peter Ujfalusi wrote: >> Split patch for review containing: channel rsource allocation and free >> functions. >> >> DMA driver for >> Texas Instruments K3 NAVSS Unified DMA – Peripheral Root Complex (UDMA-P) >> >> The UDM

Re: [alsa-devel] [PATCH] ASoC: SOF: Intel: work around snd_hdac_aligned_read link failure

2019-09-10 Thread Arnd Bergmann
On Tue, Sep 10, 2019 at 9:06 AM Takashi Iwai wrote: > On Mon, 09 Sep 2019 22:51:23 +0200, Arnd Bergmann wrote: > > > > On Mon, Sep 9, 2019 at 10:39 PM Pierre-Louis Bossart > > wrote: > > > > > > On 9/9/19 2:51 PM, Arnd Bergmann wrote: > > > > When CONFIG_SND_HDA_ALIGNED_MMIO is selected by anothe

[PATCH] thermal-generic-adc: Silent error message for EPROBE_DEFER

2019-09-10 Thread Hsin-Yi Wang
If devm_iio_channel_get() or devm_thermal_zone_of_sensor_register() fail with EPROBE_DEFER, we shouldn't print an error message, as the device will be probed again later. Signed-off-by: Hsin-Yi Wang --- drivers/thermal/thermal-generic-adc.c | 9 ++--- 1 file changed, 6 insertions(+), 3 delet

Re: [PATCH v3 1/2] ethtool: implement Energy Detect Powerdown support via phy-tunable

2019-09-10 Thread Michal Kubecek
On Mon, Sep 09, 2019 at 04:12:50PM +0300, Alexandru Ardelean wrote: > The `phy_tunable_id` has been named `ETHTOOL_PHY_EDPD` since it looks like > this feature is common across other PHYs (like EEE), and defining > `ETHTOOL_PHY_ENERGY_DETECT_POWER_DOWN` seems too long. > > The way EDPD works, is t

Re: [PATCH] FBTFT: fb_agm1264k: usleep_range is preferred over udelay

2019-09-10 Thread Geert Uytterhoeven
Hi Sreeram, On Tue, Sep 10, 2019 at 2:25 AM Sreeram Veluthakkal wrote: > On Mon, Sep 09, 2019 at 10:56:25AM +0100, Greg KH wrote: > > On Sun, Sep 08, 2019 at 08:26:05PM -0500, Sreeram Veluthakkal wrote: > > > This patch fixes the issue: > > > FILE: drivers/staging/fbtft/fb_agm1264k-fl.c:88: > > >

Re: [PATCH] arm64: fix unreachable code issue with cmpxchg

2019-09-10 Thread Arnd Bergmann
On Tue, Sep 10, 2019 at 9:46 AM Will Deacon wrote: > > On Mon, Sep 09, 2019 at 10:21:35PM +0200, Arnd Bergmann wrote: > > On arm64 build with clang, sometimes the __cmpxchg_mb is not inlined > > when CONFIG_OPTIMIZE_INLINING is set. > > Hmm. Given that CONFIG_OPTIMIZE_INLINING has also been shown

Re: [PATCH v3 2/2] dwc: PCI: intel: Intel PCIe RC controller driver

2019-09-10 Thread Dilip Kota
[Got delivery failure mail; so re-sending the mail] Hi Andrew Murray, Please find my response inline. On 9/9/2019 4:31 PM, Andrew Murray wrote: On Mon, Sep 09, 2019 at 02:51:03PM +0800, Dilip Kota wrote: On 9/6/2019 7:20 PM, Andrew Murray wrote: On Fri, Sep 06, 2019 at 06:58:11PM +0800, Dili

Re: [PATCH] tcp: fix tcp_disconnect() not clear tp->fastopen_rsk sometimes

2019-09-10 Thread David Miller
From: chunguo feng Date: Fri, 6 Sep 2019 17:34:29 +0800 > From: fengchunguo > > This patch avoids fastopen_rsk not be cleared every times, then occur > the below BUG_ON: > tcp_v4_destroy_sock > ->BUG_ON(tp->fastopen_rsk); > > When playback some videos from netwrok,used tcp_disconnect co

drivers/video/fbdev/fsl-diu-fb.c:1287:3: note: in expansion of macro 'dev_warn'

2019-09-10 Thread kbuild test robot
tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git master head: 56037cadf60461b4a2996b4d8f0057c4d343c17c commit: a035d552a93bb9ef6048733bb9f2a0dc857ff869 Makefile: Globally enable fall-through warning date: 7 weeks ago config: powerpc-mpc512x_defconfig (attac

Re: [PATCH] net/mlx5: reduce stack usage in FW tracer

2019-09-10 Thread Arnd Bergmann
On Mon, Sep 9, 2019 at 11:53 PM Saeed Mahameed wrote: > On Mon, 2019-09-09 at 22:18 +0200, Arnd Bergmann wrote: > > To do this right, a better approach may be to just rely on ftrace, > > storing > > the (pointer to the) format string and the arguments in the buffer > > without > > creating a stri

答复: [PATCH v1 3/4] x86/mce: Add Zhaoxin CMCI support

2019-09-10 Thread Tony W Wang-oc
On Mon, 9 Sep 2019, kbuild test robot wrote: >Hi Tony, > >I love your patch! Yet something to improve: Glad to hear, thanks. > >[auto build test ERROR on linus/master] >[cannot apply to v5.3-rc8 next-20190904] >[if your patch is applied to the wrong git tree, please drop us a note to help >impro

Re: [PATCH] serial/sifive: select SERIAL_EARLYCON

2019-09-10 Thread Andreas Schwab
On Sep 10 2019, Christoph Hellwig wrote: > On Tue, Sep 10, 2019 at 08:57:37AM +0200, Andreas Schwab wrote: >> On Sep 10 2019, Christoph Hellwig wrote: >> >> > The sifive serial driver implements earlycon support, >> >> It should probably be documented in admin-guide/kernel-parameters.txt. > >

[PATCH v2 1/4] x86/mce: Add Zhaoxin MCE support

2019-09-10 Thread Tony W Wang-oc
All Zhaoxin newer CPUs support MCE that compatible with Intel's "Machine-Check Architecture", so add support for Zhaoxin MCE in mce/core.c. Signed-off-by: Tony W Wang-oc --- arch/x86/kernel/cpu/mce/core.c | 30 -- 1 file changed, 24 insertions(+), 6 deletions(-) diff

[RFC PATCH 0/4] mdev based hardware virtio offloading support

2019-09-10 Thread Jason Wang
Hi all: There are hardware that can do virtio datapath offloading while having its own control path. This path tries to implement a mdev based unified API to support using kernel virtio driver to drive those devices. This is done by introducing a new mdev transport for virtio (virtio_mdev) and reg

[PATCH v2 2/4] x86/mce: Make 4 functions non-static

2019-09-10 Thread Tony W Wang-oc
These functions are declared static and cannot be used in others .c source file. this commit removes the static attribute and adds the declaration to the header for these functions. Signed-off-by: Tony W Wang-oc --- arch/x86/kernel/cpu/mce/intel.c| 8 arch/x86/kernel/cpu/mce/interna

[PATCH v2 4/4] x86/mce: Add Zhaoxin LMCE support

2019-09-10 Thread Tony W Wang-oc
Zhaoxin newer CPUs support LMCE that compatible with Intel's "Machine-Check Architecture", so add support for Zhaoxin LMCE in mce/core.c. Signed-off-by: Tony W Wang-oc --- v1->v2: - Fix redefinition of "mce_zhaoxin_feature_clear" arch/x86/include/asm/mce.h | 2 ++ arch/x86/kernel/cpu/mce/

[PATCH v2 3/4] x86/mce: Add Zhaoxin CMCI support

2019-09-10 Thread Tony W Wang-oc
All Zhaoxin newer CPUs support CMCI that compatible with Intel's "Machine-Check Architecture", so add support for Zhaoxin CMCI in mce/core.c and mce/intel.c. Signed-off-by: Tony W Wang-oc --- v1->v2: - Fix redefinition of "mce_zhaoxin_feature_init" arch/x86/include/asm/mce.h | 6 ++

[RFC PATCH 3/4] virtio: introudce a mdev based transport

2019-09-10 Thread Jason Wang
This path introduces a new mdev transport for virtio. This is used to use kernel virtio driver to drive the mediated device that is capable of populating virtqueue directly. A new virtio-mdev driver will be registered to the mdev bus, when a new virtio-mdev device is probed, it will register the d

[RFC PATCH 2/4] mdev: introduce helper to set per device dma ops

2019-09-10 Thread Jason Wang
This patch introduces mdev_set_dma_ops() which allows parent to set per device DMA ops. This help for the kernel driver to setup a correct DMA mappings. Signed-off-by: Jason Wang --- drivers/vfio/mdev/mdev_core.c | 7 +++ include/linux/mdev.h | 2 ++ 2 files changed, 9 insertions(+)

Re: [alsa-devel] [PATCH] ASoC: SOF: Intel: work around snd_hdac_aligned_read link failure

2019-09-10 Thread Takashi Iwai
On Tue, 10 Sep 2019 09:52:13 +0200, Arnd Bergmann wrote: > > On Tue, Sep 10, 2019 at 9:06 AM Takashi Iwai wrote: > > On Mon, 09 Sep 2019 22:51:23 +0200, Arnd Bergmann wrote: > > > > > > On Mon, Sep 9, 2019 at 10:39 PM Pierre-Louis Bossart > > > wrote: > > > > > > > > On 9/9/19 2:51 PM, Arnd Berg

[RFC PATCH 1/4] vringh: fix copy direction of vringh_iov_push_kern()

2019-09-10 Thread Jason Wang
We want to copy from iov to buf, so the direction was wrong. Signed-off-by: Jason Wang --- drivers/vhost/vringh.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/vhost/vringh.c b/drivers/vhost/vringh.c index 08ad0d1f0476..a0a2d74967ef 100644 --- a/drivers/vhost

[RFC PATCH 4/4] docs: Sample driver to demonstrate how to implement virtio-mdev framework

2019-09-10 Thread Jason Wang
This sample driver creates mdev device that simulate virtio net device over virtio mdev transport. The device is implemented through vringh and workqueue. Signed-off-by: Jason Wang --- samples/Kconfig| 7 + samples/vfio-mdev/Makefile | 1 + samples/vfio-mdev/mvnet.c | 766 ++

[PATCH] gpiolib: don't clear FLAG_IS_OUT when emulating open-drain/open-source

2019-09-10 Thread Bartosz Golaszewski
From: Bartosz Golaszewski When emulating open-drain/open-source by not actively driving the output lines - we're simply changing their mode to input. This is wrong as it will then make it impossible to change the value of such line - it's now considered to actually be in input mode. If we want to

[PATCH] ras: debugfs: Fix warning: no previous prototype

2019-09-10 Thread tiantao6
fixed the fellow warning when building with warnings enabled (W=1) drivers/ras/debugfs.c:8:5: warning: no previous prototype for ‘ras_userspace_consumers’ [-Wmissing-prototypes] int ras_userspace_consumers(void) drivers/ras/debugfs.c:38:12: warning: no previous prototype for ‘ras_add_daemon_trace

RE: [alsa-devel] [PATCH] ASoC: bdw-rt5677: channel constraint support

2019-09-10 Thread Lu, Brent
> -Original Message- > From: Pierre-Louis Bossart [mailto:pierre-louis.boss...@linux.intel.com] > Sent: Tuesday, September 10, 2019 1:53 AM > To: Lu, Brent ; alsa-de...@alsa-project.org > Cc: Rojewski, Cezary ; > kuninori.morimoto...@renesas.com; linux-kernel@vger.kernel.org; > yang@lin

Re: [PATCH] net/mlx4_en: ethtool: make array modes static const, makes object smaller

2019-09-10 Thread David Miller
From: Colin King Date: Fri, 6 Sep 2019 12:53:48 +0100 > From: Colin Ian King > > Don't populate the array modes on the stack but instead make it > static const. Makes the object code smaller by 303 bytes. > > Before: >text data bss dec hex filename > 51240

Re: [RFC PATCH 1/2] dt-bindings: pwm: Convert PWM bindings to json-schema

2019-09-10 Thread Rob Herring
On Mon, Sep 9, 2019 at 7:35 PM Krzysztof Kozlowski wrote: > > Convert generic PWM bindings to DT schema format using json-schema. The > consumer bindings are split to separate file. > > Signed-off-by: Krzysztof Kozlowski > --- > .../devicetree/bindings/clock/pwm-clock.txt | 2 +- > .../bindi

Re: [PATCH v2 3/3] dt-bindings: regulator: add regulator-fixed-clock binding

2019-09-10 Thread Rob Herring
On Tue, Sep 10, 2019 at 7:21 AM Philippe Schenker wrote: > > This adds the documentation to the compatible regulator-fixed-clock. > This binding is a special binding of regulator-fixed and adds the > ability to add a clock to regulator-fixed, so the regulator can be > enabled and disabled with tha

Re: dma_mmap_fault discussion

2019-09-10 Thread VMware
On 9/6/19 9:20 AM, Christoph Hellwig wrote: On Fri, Sep 06, 2019 at 09:10:08AM +0200, Thomas Hellström (VMware) wrote: It's definitely possible. I was just wondering whether it was necessary, but it seems like it. Yepp. I've pushed a new version out (even hotter off the press) that doesn't req

Re: [PATCH] bpf: validate bpf_func when BPF_JIT is enabled

2019-09-10 Thread Yonghong Song
On 9/9/19 11:32 PM, Sami Tolvanen wrote: > With CONFIG_BPF_JIT, the kernel makes indirect calls to dynamically > generated code. This change adds basic sanity checking to ensure > we are jumping to a valid location, which narrows down the attack > surface on the stored pointer. This also prepares

Re: [PATCH] ras: debugfs: Fix warning: no previous prototype

2019-09-10 Thread Borislav Petkov
On Tue, Sep 10, 2019 at 04:22:19PM +0800, tiantao6 wrote: > fixed the fellow warning when building with warnings enabled (W=1) "fellow"? > > drivers/ras/debugfs.c:8:5: warning: no previous prototype for > ‘ras_userspace_consumers’ [-Wmissing-prototypes] > int ras_userspace_consumers(void) > > d

Re: [PATCH] mm: add dummy can_do_mlock() helper

2019-09-10 Thread Jason Gunthorpe
On Tue, Sep 10, 2019 at 09:10:30AM +0200, Michal Hocko wrote: > On Mon 09-09-19 22:41:40, Arnd Bergmann wrote: > > On kernels without CONFIG_MMU, we get a link error for the siw > > driver: > > > > drivers/infiniband/sw/siw/siw_mem.o: In function `siw_umem_get': > > siw_mem.c:(.text+0x4c8): undefi

[PATCH net] net: sonic: replace dev_kfree_skb in sonic_send_packet

2019-09-10 Thread Mao Wenan
sonic_send_packet will be processed in irq or none irq context, so it would better use dev_kfree_skb_any instead of dev_kfree_skb. Fixes: d9fb9f384292 ("*sonic/natsemi/ns83829: Move the National Semi-conductor drivers") Signed-off-by: Mao Wenan --- drivers/net/ethernet/natsemi/sonic.c | 2 +- 1

Re: [PATCH] media: imx7-mipi-csis: make array 'registers' static const, makes object smaller

2019-09-10 Thread Rui Miguel Silva
Hi Colin, Thanks for the patch. On Fri 06 Sep 2019 at 16:08, Colin King wrote: > From: Colin Ian King > > Don't populate the array 'registers' on the stack but instead make it > static const. Makes the object code smaller by 10 bytes. > > > Before: >text data bss dec hex

Re: [RFC PATCH 1/2] dt-bindings: pwm: Convert PWM bindings to json-schema

2019-09-10 Thread Krzysztof Kozlowski
On Tue, 10 Sep 2019 at 10:33, Rob Herring wrote: > > On Mon, Sep 9, 2019 at 7:35 PM Krzysztof Kozlowski wrote: > > > > Convert generic PWM bindings to DT schema format using json-schema. The > > consumer bindings are split to separate file. > > > > Signed-off-by: Krzysztof Kozlowski > > --- > >

[PATCH v6 08/12] lib/vsprintf: Remove support for %pF and %pf in favour of %pS and %ps

2019-09-10 Thread Sakari Ailus
%pS and %ps are now the preferred conversion specifiers to print function names. The functionality is equivalent; remove the old, deprecated %pF and %pf support. Depends-on: commit 2d44d165e939 ("scsi: lpfc: Convert existing %pf users to %ps") Signed-off-by: Sakari Ailus Reviewed-by: Andy Shevch

[PATCH v6 11/12] lib/vsprintf: Add %pfw conversion specifier for printing fwnode names

2019-09-10 Thread Sakari Ailus
Add support for %pfw conversion specifier (with "f" and "P" modifiers) to support printing full path of the node, including its name ("f") and only the node's name ("P") in the printk family of functions. The two flags have equivalent functionality to existing %pOF with the same two modifiers ("f"

[PATCH v6 03/12] software node: Make argument to to_software_node const

2019-09-10 Thread Sakari Ailus
to_software_node() does not need to modify the fwnode_handle it operates on; therefore make it const. This allows passing a const fwnode_handle to to_software_node(). Signed-off-by: Sakari Ailus Reviewed-by: Andy Shevchenko Reviewed-by: Heikki Krogerus --- drivers/base/swnode.c| 4 ++-- in

[PATCH v6 09/12] lib/vsprintf: Make use of fwnode API to obtain node names and separators

2019-09-10 Thread Sakari Ailus
Instead of implementing our own means of discovering parent nodes, node names or counting how many parents a node has, use the newly added functions in the fwnode API to obtain that information. Signed-off-by: Sakari Ailus Reviewed-by: Andy Shevchenko Reviewed-by: Petr Mladek --- lib/vsprintf.

[PATCH v6 04/12] device property: Move fwnode_get_parent() up

2019-09-10 Thread Sakari Ailus
Move fwnode_get_parent() above fwnode_get_next_parent(), making the order the same as in the header file. Signed-off-by: Sakari Ailus Reviewed-by: Andy Shevchenko --- drivers/base/property.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers

[PATCH v6 02/12] software node: Get reference to parent swnode in get_parent op

2019-09-10 Thread Sakari Ailus
The software_node_get_parent() returned a pointer to the parent swnode, but did not take a reference to it, leading the caller to put a reference that was not taken. Take that reference now. Fixes: 59abd83672f7 ("drivers: base: Introducing software nodes to the firmware node framework") Signed-of

[PATCH v6 00/12] Device property improvements, add %pfw format specifier

2019-09-10 Thread Sakari Ailus
Hi all, This set adds functionality into the device property API (counting a node's parents as well as obtaining its name) in order to support printing fwnode names using a new conversion specifier "%pfw". The names that are produced are equivalent to its OF counterpart "%pOF" on OF systems for th

[PATCH v6 10/12] lib/vsprintf: OF nodes are first and foremost, struct device_nodes

2019-09-10 Thread Sakari Ailus
Factor out static kobject_string() function that simply calls device_node_string(), and thus remove references to kobjects (as these are struct device_node). Signed-off-by: Sakari Ailus Reviewed-by: Andy Shevchenko Reviewed-by: Petr Mladek --- lib/vsprintf.c | 16 1 file chang

[PATCH v6 01/12] tools lib traceevent: Convert remaining %p[fF] users to %p[sS]

2019-09-10 Thread Sakari Ailus
There are no in-kernel %p[fF] users left. Convert the traceevent tool, too, to align with the kernel. Signed-off-by: Sakari Ailus Cc: Steven Rostedt Cc: Arnaldo Carvalho de Melo Cc: Tzvetomir Stoyanov Cc: linux-trace-de...@vger.kernel.org Cc: Jiri Olsa Cc: Namhyung Kim --- .../Documentation

[PATCH v6 06/12] device property: Add fwnode_get_name for returning the name of a node

2019-09-10 Thread Sakari Ailus
The fwnode framework did not have means to obtain the name of a node. Add that now, in form of the fwnode_get_name() function and a corresponding get_name fwnode op. OF and ACPI support is included. Signed-off-by: Sakari Ailus Acked-by: Rob Herring (for OF) Reviewed-by: Andy Shevchenko --- dri

[PATCH v6 05/12] device property: Add functions for accessing node's parents

2019-09-10 Thread Sakari Ailus
Add two convenience functions for accessing node's parents: fwnode_count_parents() returns the number of parent nodes a given node has. fwnode_get_nth_parent() returns node's parent at a given distance from the node itself. Signed-off-by: Sakari Ailus Reviewed-by: Andy Shevchenko --- drivers/b

[PATCH v6 07/12] device property: Add a function to obtain a node's prefix

2019-09-10 Thread Sakari Ailus
The prefix is used for printing purpose before a node, and it also works as a separator between two nodes. Signed-off-by: Sakari Ailus Acked-by: Rob Herring (for OF) Reviewed-by: Andy Shevchenko --- drivers/acpi/property.c | 22 ++ drivers/base/property.c | 12 +++

[PATCH v6 12/12] lib/test_printf: Add tests for %pfw printk modifier

2019-09-10 Thread Sakari Ailus
Add a test for the %pfw printk modifier using software nodes. Signed-off-by: Sakari Ailus Reviewed-by: Andy Shevchenko --- lib/test_printf.c | 32 1 file changed, 32 insertions(+) diff --git a/lib/test_printf.c b/lib/test_printf.c index 944eb50f38625..bb6a7d334

Re: [PATCH 0/4] gpio: API boundary cleanups

2019-09-10 Thread Bartosz Golaszewski
pt., 6 wrz 2019 o 10:45 Geert Uytterhoeven napisał(a): > > Hi Linus, Bartosz, > > This patch series contains various API boundary cleanups for gpiolib: > - The first two patches make two functions private, > - The last two patches switch the remaining gpiolib exported functions > f

Re: [GIT PULL] compiler-attributes for v5.3-rc8

2019-09-10 Thread Sedat Dilek
On Sat, Sep 7, 2019 at 1:59 PM Miguel Ojeda wrote: > > On Sat, Sep 7, 2019 at 7:50 AM Sedat Dilek wrote: > > > > The compiler-attribute patchset sit for some weeks in linux-next, so I > > have not seen any complains. > > It has been there only since Monday (cleanly), not weeks. > Sorry, I was n

Re: [PATCH v2 7/7] bug: Move WARN_ON() "cut here" into exception handler

2019-09-10 Thread Kees Cook
On Tue, Sep 10, 2019 at 01:05:39AM +0900, Sergey Senozhatsky wrote: > On (08/20/19 09:47), Kees Cook wrote: > [..] > > @@ -181,6 +181,15 @@ enum bug_trap_type report_bug(unsigned long bugaddr, > > struct pt_regs *regs) > > } > > } > > > > + /* > > +* BUG() and WARN_ON() fam

Re: [PATCH 0/4] gpio: API boundary cleanups

2019-09-10 Thread Geert Uytterhoeven
Hi Bartosz, On Tue, Sep 10, 2019 at 10:51 AM Bartosz Golaszewski wrote: > pt., 6 wrz 2019 o 10:45 Geert Uytterhoeven > napisał(a): > > This patch series contains various API boundary cleanups for gpiolib: > > - The first two patches make two functions private, > > - The last two patches swi

[PATCH net-next 1/7] net: hns3: add ethtool_ops.set_channels support for HNS3 VF driver

2019-09-10 Thread Huazhong Tan
From: Guangbin Huang This patch adds ethtool_ops.set_channels support for HNS3 VF driver, and updates related TQP information and RSS information, to support modification of VF TQP number, and uses current rss_size instead of max_rss_size to initialize RSS. Also, fixes a format error in hclgevf_

[PATCH net-next 3/7] net: hns3: fix shaper parameter algorithm

2019-09-10 Thread Huazhong Tan
From: Yonglong Liu Currently when hns3 driver configures the tm shaper to limit bandwidth below 20Mbit using the parameters calculated by hclge_shaper_para_calc(), the actual bandwidth limited by tm hardware module is not accurate enough, for example, 1.28 Mbit when the user is configuring 1 Mbit

[PATCH net-next 5/7] net: hns3: modify some logs format

2019-09-10 Thread Huazhong Tan
From: Guangbin Huang The pfc_en and pfc_map need to be displayed in hexadecimal notation, printing dma address should use %pad, and the end of printed string needs to be add "\n". This patch modifies them. Signed-off-by: Guangbin Huang Signed-off-by: Huazhong Tan --- drivers/net/ethernet/his

[PATCH net-next 0/7] net: hns3: add a feature & bugfixes & cleanups

2019-09-10 Thread Huazhong Tan
This patch-set includes a VF feature, bugfixes and cleanups for the HNS3 ethernet controller driver. [patch 01/07] adds ethtool_ops.set_channels support for HNS3 VF driver [patch 02/07] adds a recovery for setting channel fail. [patch 03/07] fixes an error related to shaper parameter algorithm.

[PATCH net-next 2/7] net: hns3: revert to old channel when setting new channel num fail

2019-09-10 Thread Huazhong Tan
From: Peng Li After setting new channel num, it needs free old ring memory and allocate new ring memory. If there is no enough memory and allocate new ring memory fail, the ring may initialize fail. To make sure the network interface can work normally, driver should revert the channel to the old

[PATCH net-next 7/7] net: hns3: add some DFX info for reset issue

2019-09-10 Thread Huazhong Tan
This patch adds more information for reset DFX. Also, adds some cleanups to reset info, move reset_fail_cnt into struct hclge_rst_stats, and modifies some print formats. Signed-off-by: Huazhong Tan --- .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 32 -- .../ethernet/h

Re: [PATCH v2 07/27] drm/dp_mst: Add sideband down request tracing + selftests

2019-09-10 Thread Jani Nikula
On Tue, 03 Sep 2019, Lyude Paul wrote: > Unfortunately the DP MST helpers do not have much in the way of > debugging utilities. So, let's add some! > > This adds basic debugging output for down sideband requests that we send > from the driver, so that we can actually discern what's happening when

[PATCH net-next 6/7] net: hns3: check NULL pointer before use

2019-09-10 Thread Huazhong Tan
From: Guangbin Huang This patch checks ops->set_default_reset_request whether is NULL before using it in function hns3_slot_reset. Signed-off-by: Guangbin Huang Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH net-next 4/7] net: hns3: fix port setting handle for fibre port

2019-09-10 Thread Huazhong Tan
From: Guangbin Huang For hardware doesn't support use specified speed and duplex to negotiate, it's unnecessary to check and modify the port speed and duplex for fibre port when autoneg is on. Fixes: 22f48e24a23d ("net: hns3: add autoneg and change speed support for fibre port") Signed-off-by:

Re: [PATCH v2] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-09-10 Thread Catalin Marinas
On Mon, Sep 09, 2019 at 02:27:12PM -0700, Matthew Wilcox wrote: > On Fri, Sep 06, 2019 at 09:57:47PM +0800, Jia He wrote: > > + if (!pte_young(vmf->orig_pte)) { > > + entry = pte_mkyoung(vmf->orig_pte); > > + if (ptep_set_access_flags(vmf->vma, vmf->add

Re: [PATCH 6/6] arm64: dts: khadas-vim3: add commented support for PCIe

2019-09-10 Thread Marc Zyngier
On Mon, 09 Sep 2019 18:50:42 +0100, Neil Armstrong wrote: > > Hi Marc, > > Le 09/09/2019 à 18:37, Marc Zyngier a écrit : > > On Sun, 08 Sep 2019 14:42:58 +0100, > > Neil Armstrong wrote: > >> > >> The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential > >> lines using a FUSB340TMX U

Re: [PATCH 2/5] clk: qcom: apcs-msm8916: get parent clock names from DT

2019-09-10 Thread Stephen Boyd
Quoting Jorge Ramirez-Ortiz, Linaro (2019-09-09 09:54:08) > On 09/09/19 09:17:03, Stephen Boyd wrote: > > But now the binding is different for the same compatible. I'd prefer we > > keep using devm_clk_get() and use a device pointer here and reorder the > > map and parent arrays instead. The clocks

Re: [PATCH 6/6] arm64: dts: khadas-vim3: add commented support for PCIe

2019-09-10 Thread Neil Armstrong
On 10/09/2019 11:12, Marc Zyngier wrote: > On Mon, 09 Sep 2019 18:50:42 +0100, > Neil Armstrong wrote: >> >> Hi Marc, >> >> Le 09/09/2019 à 18:37, Marc Zyngier a écrit : >>> On Sun, 08 Sep 2019 14:42:58 +0100, >>> Neil Armstrong wrote: The VIM3 on-board MCU can mux the PCIe/USB3.0 shar

Re: [PATCH v2] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-09-10 Thread Catalin Marinas
On Fri, Sep 06, 2019 at 07:57:42AM -0700, Matthew Wilcox wrote: > On Fri, Sep 06, 2019 at 09:57:47PM +0800, Jia He wrote: > > * This really shouldn't fail, because the page is there > > * in the page tables. But it might just be unreadable, > > * in which case

Re: [GIT PULL] compiler-attributes for v5.3-rc8

2019-09-10 Thread Miguel Ojeda
On Tue, Sep 10, 2019 at 10:58 AM Sedat Dilek wrote: > > Sorry, I was not precise enough and didn't remember correctly. > > I have re-tested with Linux v5.3-rc8. All OK. No worries at all! I just wanted to clarify it :) Thanks a lot for confirming it works. Cheers, Miguel

Re: [PATCH v2 7/7] bug: Move WARN_ON() "cut here" into exception handler

2019-09-10 Thread Sergey Senozhatsky
On (09/10/19 01:59), Kees Cook wrote: > On Tue, Sep 10, 2019 at 01:05:39AM +0900, Sergey Senozhatsky wrote: > > On (08/20/19 09:47), Kees Cook wrote: > > [..] > > > + /* > > > + * BUG() and WARN_ON() families don't print a custom debug message > > > + * before triggering the exception handler, so

Re: [PATCH] mm: avoid slub allocation while holding list_lock

2019-09-10 Thread Kirill A. Shutemov
On Mon, Sep 09, 2019 at 03:39:38PM -0600, Yu Zhao wrote: > On Tue, Sep 10, 2019 at 05:57:22AM +0900, Tetsuo Handa wrote: > > On 2019/09/10 1:00, Kirill A. Shutemov wrote: > > > On Mon, Sep 09, 2019 at 12:10:16AM -0600, Yu Zhao wrote: > > >> If we are already under list_lock, don't call kmalloc(). O

[PATCH v3 02/15] powerpc/32: Add EXCEPTION_PROLOG_0 in head_32.h

2019-09-10 Thread Christophe Leroy
This patch creates a macro for the very first part of exception prolog, this will help when implementing CONFIG_VMAP_STACK Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/head_32.S | 4 +--- arch/powerpc/kernel/head_32.h | 9 ++--- arch/powerpc/kernel/head_8xx.S | 9 ++--- 3 fi

  1   2   3   4   5   6   7   8   9   >