[PATCH 03/10] arm64: dts: meson-gxbb-wetek: enable SARADC

2019-05-27 Thread Neil Armstrong
From: Christian Hewitt Enable SARADC on Wetek Boards. Signed-off-by: Christian Hewitt Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-wetek.dtsi b/arch

[PATCH 08/10] arm64: dts: meson-gxbb-vega-s95: enable SARADC

2019-05-27 Thread Neil Armstrong
Add SARARC node and associated regulator to support reading the ADC inputs on the Vega S95 Suggested-by: Christian Hewitt Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/

[PATCH 10/10] arm64: dts: meson-gxbb-vega-s95: add ethernet PHY interrupt

2019-05-27 Thread Neil Armstrong
Add the external ethernet PHY interrupt on the Vega S95 board. Suggested-by: Christian Hewitt Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arc

Re: [PATCH 1/4] ecryptfs: remove unnessesary null check in ecryptfs_keyring_auth_tok_for_sig

2019-05-27 Thread YueHaibing
Pls ignore this, will fix patch title On 2019/5/27 21:15, YueHaibing wrote: > request_key and ecryptfs_get_encrypted_key never > return a NULL pointer, so no need do a null check. > > Signed-off-by: YueHaibing > --- > fs/ecryptfs/keystore.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletio

Re: 5.2-rc1 on droid4: spi crash

2019-05-27 Thread Noralf Trønnes
Den 2019-05-27 07:53, skrev Tony Lindgren: Hi, * Sebastian Reichel [190523 09:33]: Hi, On Thu, May 23, 2019 at 11:09:26AM +0200, Pavel Machek wrote: > This was greeting me overnight... I don't yet know how reproducible it > is, it happened once so far. Please pipe the stacktrace into ./sc

[PATCH 04/10] arm64: dts: meson-gxbb-wetek: enable bluetooth

2019-05-27 Thread Neil Armstrong
From: Christian Hewitt This enables Bluetooth support for the following models: AP6335 in the WeTek Hub rev1 - BCM4335C0.hcd AP6255 in the WeTek Hub rev2 - BCM4345C0.hcd AP6330 in the WeTek Play 2 - BCM4330B1.hcd Signed-off-by: Christian Hewitt Signed-off-by: Neil Armstrong --- arch/arm64/bo

[PATCH 07/10] arm64: dts: meson-gxbb-vega-s95: enable CEC

2019-05-27 Thread Neil Armstrong
Add CEC nodes to support CEC communication on Vega S95 Suggested-by: Christian Hewitt Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/ar

[PATCH 01/10] arm64: dts: meson-gxm-khadas-vim2: fix gpio-keys-polled node

2019-05-27 Thread Neil Armstrong
From: Christian Hewitt Fix DTC warnings: meson-gxm-khadas-vim2.dtb: Warning (avoid_unnecessary_addr_size): /gpio-keys-polled: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property Fixes: b8b74dda3908 ("ARM64: dts: meson-gxm: Add support for Khadas VIM2") Sug

[PATCH 05/10] arm64: dts: meson-gxbb-vega-s95: fix regulators

2019-05-27 Thread Neil Armstrong
Align the regulator names with other GXBB SoCS for upcoming SARADC support and SDIO/SDCard fixes. Also fix how regulators are passed to MMC controllers & USB. Suggested-by: Christian Hewitt Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 34 ---

Re: [PATCH v7 1/3] dt-bindings: i2c: extend existing opencore bindings.

2019-05-27 Thread Sagar Kadam
Hi Rob, On Sat, May 25, 2019 at 2:10 AM Rob Herring wrote: > > On Wed, May 22, 2019 at 02:29:32PM +0530, Sagar Shrikant Kadam wrote: > > Reformatted compatibility strings to one valid combination on > > each line. > > Add FU540-C000 specific device tree bindings to already available > > i2-ocores

Re: [PATCH] sched/fair: fix variable "done" set but not used

2019-05-27 Thread Valentin Schneider
On 27/05/2019 01:53, Qian Cai wrote: [...] >> For some reason I can't get this warning to fire on my end (arm64 defconfig >> + all the NO_HZ stuff set to nope + GCC 8.1). However I do think there are >> things we could improve here. > > I like your approach more if it works. The warning can be rep

Re: [PATCH] dmaengine: use to_platform_device()

2019-05-27 Thread Vinod Koul
Hi Weitao, On 27-05-19, 21:10, Weitao Hou wrote: > Hi,Vinod > Need I add the stm32 driver tag and resend v2 patch? Please do not top post! As below says, the patch is applied and I corrected the tag and added stm32 while applying, so no change or v2 required. > Vinod Koul 于2019年5月27日周一 下午2

Re: [PATCH -mm] mm, swap: Simplify total_swapcache_pages() with get_swap_device()

2019-05-27 Thread Andrea Parri
> But where do I find get_swap_device() and put_swap_device()? I do not > see them in current mainline. You should see them in the -mm tree: https://ozlabs.org/~akpm/mmots/broken-out/mm-swap-fix-race-between-swapoff-and-some-swap-operations.patch or http://git.cmpxchg.org/cgit.cgi/linux-

Re: 5.2-rc1 on droid4: spi crash

2019-05-27 Thread Tony Lindgren
* Noralf Trønnes [190527 13:16]: > > > Den 2019-05-27 07:53, skrev Tony Lindgren: > > Hi, > > > > * Sebastian Reichel [190523 09:33]: > > > Hi, > > > > > > On Thu, May 23, 2019 at 11:09:26AM +0200, Pavel Machek wrote: > > > > This was greeting me overnight... I don't yet know how reproducible

Re: [PATCH 7/7] sched/fair: Rename weighted_cpuload() to cpu_load()

2019-05-27 Thread Vincent Guittot
On Mon, 27 May 2019 at 08:21, Dietmar Eggemann wrote: > > This is done to align the per cpu (i.e. per rq) load with the util > counterpart (cpu_util(int cpu)). The term 'weighted' is not needed > since there is no 'unweighted' load to distinguish it from. > > Signed-off-by: Dietmar Eggemann > ---

[PATCH -next] ecryptfs: remove unnessesary null check in ecryptfs_keyring_auth_tok_for_sig

2019-05-27 Thread YueHaibing
request_key and ecryptfs_get_encrypted_key never return a NULL pointer, so no need do a null check. Signed-off-by: YueHaibing --- fs/ecryptfs/keystore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ecryptfs/keystore.c b/fs/ecryptfs/keystore.c index 95662fd46b1d..a1a

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-27 Thread Jarkko Sakkinen
On Thu, May 23, 2019 at 07:17:52AM -0700, Sean Christopherson wrote: > 1. Do nothing. Userspace would essentially be required to mmap() the > enclave after EINIT, which is ugly but not breaking since userspace > could mmap() the enclave with a placeholder VMA prior to building > t

Re: [PATCH 1/1] eventfd new tag EFD_VPOLL: generate epoll events

2019-05-27 Thread Renzo Davoli
On Mon, May 27, 2019 at 09:33:32AM +0200, Greg KH wrote: > On Sun, May 26, 2019 at 04:25:21PM +0200, Renzo Davoli wrote: > > This patch implements an extension of eventfd to define file descriptors > > whose I/O events can be generated at user level. These file descriptors > > trigger notification

Re: [PATCH] binfmt_flat: make load_flat_shared_library() work

2019-05-27 Thread Jann Horn
On Sat, May 25, 2019 at 11:43 PM Andrew Morton wrote: > On Fri, 24 May 2019 22:18:17 +0200 Jann Horn wrote: > > load_flat_shared_library() is broken: It only calls load_flat_file() if > > prepare_binprm() returns zero, but prepare_binprm() returns the number of > > bytes read - so this only happe

[PATCH v2 02/10] ARM: dts: meson6-atv1200: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
While the text specifies "of the GPL or the X11 license" the actual license text matches the MIT license as specified at [0] [0] https://spdx.org/licenses/MIT.html Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/meson6-atv1200.dts | 44 +--- 1 file changed, 1 inserti

[PATCH v2 01/10] ARM: dts: meson: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
While the text specifies "of the GPL or the X11 license" the actual license text matches the MIT license as specified at [0] [0] https://spdx.org/licenses/MIT.html Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/meson.dtsi | 44 +--- 1 file changed, 1 inserti

[PATCH v2 08/10] ARM: dts: meson8b: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
While the text specifies "of the GPL or the X11 license" the actual license text matches the MIT license as specified at [0] [0] https://spdx.org/licenses/MIT.html Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/meson8b.dtsi | 42 +- 1 file changed, 1 inserti

[PATCH v2 09/10] ARM: debug: meson.S: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- arch/arm/include/debug/meson.S | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/include/debug/meson.S b/arch/arm/include/debug/meson.S index 1bae99bf6f11..df158693a327 100644 --- a/arch/arm/include/debug/meson.S +++ b/arch/arm/incl

[PATCH v2 04/10] ARM: dts: meson8-minix-neo-x8: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
While the text specifies "of the GPL or the X11 license" the actual license text matches the MIT license as specified at [0] [0] https://spdx.org/licenses/MIT.html Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/meson8-minix-neo-x8.dts | 39 +-- 1 file changed, 1 inserti

[PATCH v2 03/10] ARM: dts: meson6: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
While the text specifies "of the GPL or the X11 license" the actual license text matches the MIT license as specified at [0] [0] https://spdx.org/licenses/MIT.html Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/meson6.dtsi | 44 +-- 1 file changed, 1 inserti

[PATCH v2 00/10] ARM: meson: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
Update the SPDX Licence identifier for the Amlogic DT and mach-meson files. Changes since v1: - Use MIT instead of X11 in DT, and precise it in commit logs Neil Armstrong (10): ARM: dts: meson: update with SPDX Licence identifier ARM: dts: meson6-atv1200: update with SPDX Licence identifier

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-27 Thread Jarkko Sakkinen
On Mon, May 27, 2019 at 04:34:31PM +0300, Jarkko Sakkinen wrote: > On Thu, May 23, 2019 at 07:17:52AM -0700, Sean Christopherson wrote: > > 1. Do nothing. Userspace would essentially be required to mmap() the > > enclave after EINIT, which is ugly but not breaking since userspace > > c

[PATCH v2 07/10] ARM: dts: meson8b-odroidc1: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
While the text specifies "of the GPL or the X11 license" the actual license text matches the MIT license as specified at [0] [0] https://spdx.org/licenses/MIT.html Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/meson8b-odroidc1.dts | 42 +- 1 file changed, 1 inserti

[PATCH v2 06/10] ARM: dts: meson8b-mxq: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
While the text specifies "of the GPL or the X11 license" the actual license text matches the MIT license as specified at [0] [0] https://spdx.org/licenses/MIT.html Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/meson8b-mxq.dts | 42 +-- 1 file changed, 1 inserti

[PATCH v2 05/10] ARM: dts: meson8: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
While the text specifies "of the GPL or the X11 license" the actual license text matches the MIT license as specified at [0] [0] https://spdx.org/licenses/MIT.html Signed-off-by: Neil Armstrong --- arch/arm/boot/dts/meson8.dtsi | 42 +-- 1 file changed, 1 inserti

[PATCH v2 10/10] ARM: mach-meson: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- arch/arm/mach-meson/meson.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/arch/arm/mach-meson/meson.c b/arch/arm/mach-meson/meson.c index c8d99df32f9b..04ae414d88c9 100644 --- a/arch/arm/mach-meson/meson.c +++ b/arch/arm/mach-me

[PATCH v2] spi: spi-meson-spifc: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- Changes since v1: - Moved to a single C++ comment block drivers/spi/spi-meson-spifc.c | 18 ++ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/spi/spi-meson-spifc.c b/drivers/spi/spi-meson-spifc.c index 616566e793c6..f7fe9b

Testing

2019-05-27 Thread Turritopsis Dohrnii Teo En Ming
Testing -BEGIN EMAIL SIGNATURE- The Gospel for all Targeted Individuals (TIs): [The New York Times] Microwave Weapons Are Prime Suspect in Ills of U.S. Embassy Workers Link: https://www.nytimes.com/2018/09/01/science/sonic-attack-cuba-microwave.html ***

[PATCH v2] iio: adc: meson_saradc: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- Changes since v1: - Used correct GPL-2.0 license drivers/iio/adc/meson_saradc.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c index 510d8b7ef3a0..7b28d045d271 100644 ---

Wow! Microsoft Loves Linux!

2019-05-27 Thread Turritopsis Dohrnii Teo En Ming
Good evening from Singapore, I did a Google search on "Microsoft Loves Linux". Google search URL: https://www.google.com/search?q=microsoft+loves+linux Tons of results show up. Lots of good reads. -BEGIN EMAIL SIGNATURE- The Gospel for all Targeted Individuals (TIs): [The New Y

[PATCH v2] irqchip: irq-meson-gpio: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- Changes since v1: - Use correct GPL-2.0 license drivers/irqchip/irq-meson-gpio.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/irqchip/irq-meson-gpio.c b/drivers/irqchip/irq-meson-gpio.c index 7b531fd075b8..1a6bef48b

[PATCH net-next 1/2] net: stmmac: dwmac-meson: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c index 7fdd1760a74c..5ae474ebaaed 10

[PATCH net-next 0/2] net: stmmac: dwmac-meson: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
Update the SPDX Licence identifier for the Amlogic Meson6 and Meson8 dwmac glue drivers. Neil Armstrong (2): net: stmmac: dwmac-meson: update with SPDX Licence identifier net: stmmac: dwmac-meson8b: update with SPDX Licence identifier drivers/net/ethernet/stmicro/stmmac/dwmac-meson.c | 8 +

[PATCH v2] pwm: rockchip: Use of_clk_get_parent_count()

2019-05-27 Thread Kefeng Wang
Use of_clk_get_parent_count() instead of open coding. Cc: Thierry Reding Cc: Heiko Stuebner Signed-off-by: Kefeng Wang --- v2: - add include drivers/pwm/pwm-rockchip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/pwm-rockchip.c b/drivers/pwm/pwm-rockchi

[PATCH net-next 2/2] net: stmmac: dwmac-meson8b: update with SPDX Licence identifier

2019-05-27 Thread Neil Armstrong
Signed-off-by: Neil Armstrong --- drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c index c5979569fd60..c06295ec1

Re: [PATCH v2 00/10] Allwinner A64/H6 IR support

2019-05-27 Thread Ondřej Jirman
Hi Clément, On Mon, May 27, 2019 at 12:25:26AM +0200, Clément Péron wrote: > Hi, > > A64 IR support series[1] pointed out that an A31 bindings should be > introduced. > > This series introduce the A31 compatible bindings, then switch it on > the already existing board. > > Finally introduce A64

Re: SGX vs LSM (Re: [PATCH v20 00/28] Intel SGX1 support)

2019-05-27 Thread Jarkko Sakkinen
On Thu, May 23, 2019 at 08:38:17AM -0700, Andy Lutomirski wrote: > On Thu, May 23, 2019 at 7:17 AM Sean Christopherson > wrote: > > > > On Thu, May 23, 2019 at 01:26:28PM +0300, Jarkko Sakkinen wrote: > > > On Wed, May 22, 2019 at 07:35:17PM -0700, Sean Christopherson wrote: > > > > But actually,

Re: [PATCH 2/4 RESEND] mfd: madera: Fix bad reference to pinctrl.txt file

2019-05-27 Thread Mauro Carvalho Chehab
Em Mon, 20 May 2019 10:06:26 +0100 Charles Keepax escreveu: > From: Otto Sabart > > The pinctrl.txt file was converted into reStructuredText and moved into > driver-api folder. This patch updates the broken reference. > > Fixes: 5a9b73832e9e ("pinctrl.txt: move it to the driver-api book") > Si

[PATCH net-next] net: mvpp2: cls: Remove unnessesary check in mvpp2_ethtool_cls_rule_ins

2019-05-27 Thread YueHaibing
Fix smatch warning: drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c:1236 mvpp2_ethtool_cls_rule_ins() warn: unsigned 'info->fs.location' is never less than zero. 'info->fs.location' is u32 type, never less than zero. Signed-off-by: YueHaibing --- drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c

Re: [PATCH] mm/mempolicy: Fix an incorrect rebind node in mpol_rebind_nodemask

2019-05-27 Thread zhong jiang
On 2019/5/27 20:23, Vlastimil Babka wrote: > On 5/25/19 8:28 PM, Andrew Morton wrote: >> (Cc Vlastimil) > Oh dear, 2 years and I forgot all the details about how this works. > >> On Sat, 25 May 2019 15:07:23 +0800 zhong jiang wrote: >> >>> We bind an different node to different vma, Unluckily, >>>

[PATCH -next] drivers: thermal: tsens: Change hw_id type to int in is_sensor_enabled

2019-05-27 Thread YueHaibing
Sensor hw_id is int type other u32, is_sensor_enabled should use int to compare, this fix smatch warning: drivers/thermal/qcom/tsens-common.c:72 is_sensor_enabled() warn: unsigned 'hw_id' is never less than zero. Fixes: 3e6a8fb33084 ("drivers: thermal: tsens: Add new operation to check if a sen

[PATCH v4 3/3] arm64: dts: meson: Add minimal support for Odroid-N2

2019-05-27 Thread Neil Armstrong
This patch adds basic support for : - Amlogic G12B, which is very similar to G12A - The HardKernel Odroid-N2 based on the S922X SoC The Amlogic G12B SoC is very similar with the G12A SoC, sharing most of the features and architecture, but with these differences : - The first CPU cluster only has 2

[PATCH v4 2/3] dt-bindings: arm: amlogic: add Odroid-N2 binding

2019-05-27 Thread Neil Armstrong
Add compatible for the Amlogic G12B (S922X) SoC based Odroid-N2 SBC from HardKernel. Signed-off-by: Neil Armstrong Reviewed-by: Rob Herring Reviewed-by: Martin Blumenstingl --- Documentation/devicetree/bindings/arm/amlogic.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentatio

[PATCH v4 1/3] dt-bindings: arm: amlogic: add G12B bindings

2019-05-27 Thread Neil Armstrong
Add compatible for the Amlogic G12B SoC, sharing most of the features and architecture with the G12A SoC. Signed-off-by: Neil Armstrong Reviewed-by: Rob Herring Reviewed-by: Martin Blumenstingl --- Documentation/devicetree/bindings/arm/amlogic.yaml | 4 1 file changed, 4 insertions(+) di

[PATCH v4 0/3] arm64: Add initial support for Odroid-N2

2019-05-27 Thread Neil Armstrong
This patchset adds basic support for : - Amlogic G12B, which is very similar to G12A - The HardKernel Odroid-N2 based on the S922X SoC The Amlogic G12B SoC is very similar with the G12A SoC, sharing most of the features and architecture, but with these differences : - The first CPU cluster only ha

Re: [PATCH v3 4/4] mm/vmap: move BUG_ON() check to the unlink_va()

2019-05-27 Thread Uladzislau Rezki
> > Move the BUG_ON()/RB_EMPTY_NODE() check under unlink_va() > > function, it means if an empty node gets freed it is a BUG > > thus is considered as faulty behaviour. > > Can we switch it to a WARN_ON(). We are trying to remove all BUG_ON()s. > If a user wants to crash on warning, there's a sysc

Re: your patch

2019-05-27 Thread Cornelia Huck
On Sun, 26 May 2019 13:44:04 +0200 "Thomas Meyer" wrote: > From tho...@m3y3r.de Sun May 26 00:13:26 2019 > Subject: [PATCH] vfio-pci/nvlink2: Use vma_pages function instead of explicit > computation > To: alex.william...@redhat.com, k...@vger.kernel.org, > linux-kernel@vger.kernel.org > Content

[PATCH] clk: fix a missing-free bug in clk_cpy_name()

2019-05-27 Thread Gen Zhang
In clk_cpy_name(), '*dst_p'('parent->name'and 'parent->fw_name') and 'dst' are allcoted by kstrdup_const(). According to doc: "Strings allocated by kstrdup_const should be freed by kfree_const". So 'parent->name', 'parent->fw_name' and 'dst' should be freed. Signed-off-by: Gen Zhang --- diff -

Re: [PATCH 1/2] vfio: ABI for setting mdev display flip eventfd

2019-05-27 Thread Alex Williamson
On Mon, 27 May 2019 16:43:11 +0800 Tina Zhang wrote: > Add VFIO_DEVICE_SET_GFX_FLIP_EVENTFD ioctl command to set eventfd > based signaling mechanism to deliver vGPU framebuffer page flip > event to userspace. > > Signed-off-by: Tina Zhang > --- > include/uapi/linux/vfio.h | 12 >

Re: [PATCH] tegra-hsp: fix a missing-check bug in tegra_hsp_doorbell_create()

2019-05-27 Thread Thierry Reding
On Mon, May 27, 2019 at 09:04:30PM +0800, Gen Zhang wrote: > In tegra_hsp_doorbell_create(), 'db->name' is allocated by > devm_kstrdup_const(). It returns NULL when fails. So 'db->name' should > be checked. > > Signed-off-by: Gen Zhang > --- > diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/m

Re: [PATCH] random: urandom reads block when CRNG is not initialized.

2019-05-27 Thread Theodore Ts'o
On Mon, May 27, 2019 at 12:26:28PM +, Naveen Nathan wrote: > Adds a compile-time option to ensure urandom reads block until > the cryptographic random number generator (CRNG) is initialized. > > This fixes a long standing security issue, the so called boot-time > entropy hole, where systems (p

Re: [PATCH 6/7] sched/fair: Remove sgs->sum_weighted_load

2019-05-27 Thread Vincent Guittot
On Mon, 27 May 2019 at 08:21, Dietmar Eggemann wrote: > > Since sg_lb_stats::sum_weighted_load is now identical with > sg_lb_stats::group_load remove it and replace its use case > (calculating load per task) with the latter. > > Signed-off-by: Dietmar Eggemann FWIW Acked-by: Vincent Guittot >

Re: [PATCH] drivers/pci/controller: fix warning PTR_ERR_OR_ZERO can be used

2019-05-27 Thread Thierry Reding
On Sat, May 25, 2019 at 02:27:48PM +0530, Hariprasad Kelam wrote: > fix below warnings reported by coccichek > > /drivers/pci/controller/pci-tegra.c:1132:1-3: WARNING: PTR_ERR_OR_ZERO > can be used This has been discussed many times before, but PTR_ERR_OR_ZERO is not liked by everybody. Most of t

Re: [PATCH] tegra-hsp: fix a missing-check bug in tegra_hsp_doorbell_create()

2019-05-27 Thread Gen Zhang
On Mon, May 27, 2019 at 04:05:49PM +0200, Thierry Reding wrote: > On Mon, May 27, 2019 at 09:04:30PM +0800, Gen Zhang wrote: > > In tegra_hsp_doorbell_create(), 'db->name' is allocated by > > devm_kstrdup_const(). It returns NULL when fails. So 'db->name' should > > be checked. > > > > Signed-off

Re: [PATCH] [trivial] perf: Spelling s/EACCESS/EACCES/

2019-05-27 Thread Ingo Molnar
* Geert Uytterhoeven wrote: > The correct spelling is EACCES: > > include/uapi/asm-generic/errno-base.h:#define EACCES 13 /* Permission denied > */ > > Signed-off-by: Geert Uytterhoeven > --- > include/linux/perf_event.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --g

Re: [PATCH RFC] mm/madvise: implement MADV_STOCKPILE (kswapd from user space)

2019-05-27 Thread Michal Hocko
[Cc linux-api. Please always cc this list when proposing a new user visible api. Keeping the rest of the email intact for reference] On Mon 27-05-19 13:05:58, Konstantin Khlebnikov wrote: > Memory cgroup has no background memory reclaimer. Reclaiming after passing > high-limit blocks task because

Re: [PATCH] kernel/hung_task.c: Monitor killed tasks.

2019-05-27 Thread Tetsuo Handa
Andrew, I updated description part. Please carry this patch. -- [PATCH] kernel/hung_task.c: Monitor killed tasks. syzbot's current top report is "no output from test machine" where the userspace process failed to spawn a new test process for 300 seconds for some reason. One of reasons whic

Re: [PATCH 4/3] perf tools: Remove const from thread read accessors

2019-05-27 Thread Arnaldo Carvalho de Melo
Em Mon, May 27, 2019 at 03:11:49PM +0900, Namhyung Kim escreveu: > The namespaces and comm fields of a thread are protected by rwsem and > require write access for it. So it ended up using a cast to remove > the const qualifier. Let's get rid of the const then. Thanks, applied 1/3 and 4/3. - Ar

[PATCH] Input: qt1050 - remove unnecessary comparison of unsigned integer with < 0

2019-05-27 Thread Gustavo A. R. Silva
There is no need to compare button.num with < 0 because such comparison of an unsigned value is always false. Fix this by removing such comparison. Addresses-Coverity-ID: 1445492 ("Unsigned compared against 0") Fixes: cbebf5addec1 ("Input: qt1050 - add Microchip AT42QT1050 support") Signed-off-by

Re: [PATCH RFC] mm/madvise: implement MADV_STOCKPILE (kswapd from user space)

2019-05-27 Thread Michal Hocko
On Mon 27-05-19 16:12:23, Michal Hocko wrote: > [Cc linux-api. Please always cc this list when proposing a new user > visible api. Keeping the rest of the email intact for reference] > > On Mon 27-05-19 13:05:58, Konstantin Khlebnikov wrote: [...] > > This implements manual kswapd-style memory re

Re: [PATCH v7 1/1] iommu: enhance IOMMU dma mode build options

2019-05-27 Thread Joerg Roedel
Hi Zhen Lei, On Mon, May 20, 2019 at 09:59:47PM +0800, Zhen Lei wrote: > arch/ia64/kernel/pci-dma.c| 2 +- > arch/powerpc/platforms/powernv/pci-ioda.c | 3 ++- > arch/s390/pci/pci_dma.c | 2 +- > arch/x86/kernel/pci-dma.c | 7 ++--- > drivers/

[PATCH] scsi: scsi_dh_alua: Fix possible null-ptr-deref

2019-05-27 Thread YueHaibing
If alloc_workqueue fails in alua_init, it should return -ENOMEM, otherwise it will trigger null-ptr-deref while unloading module which calls destroy_workqueue dereference wq->lock like this: BUG: KASAN: null-ptr-deref in __lock_acquire+0x6b4/0x1ee0 Read of size 8 at addr 0080 by task s

Re: [PATCH v3 1/3] thermal: sun8i: add thermal driver for h6

2019-05-27 Thread Ondřej Jirman
Hi Yangtao, On Sat, May 25, 2019 at 02:13:27PM -0400, Yangtao Li wrote: > This patch adds the support for allwinner thermal sensor, within > allwinner SoC. It will register sensors for thermal framework > and use device tree to bind cooling device. > > Signed-off-by: Yangtao Li > --- > MAINTAIN

Re: [PATCH] [trivial] perf: Spelling s/EACCESS/EACCES/

2019-05-27 Thread Geert Uytterhoeven
Hi Ingo, On Mon, May 27, 2019 at 4:12 PM Ingo Molnar wrote: > * Geert Uytterhoeven wrote: > > The correct spelling is EACCES: > > > > include/uapi/asm-generic/errno-base.h:#define EACCES 13 /* Permission > > denied */ > > > > Signed-off-by: Geert Uytterhoeven > > --- a/include/linux/perf_even

Re: [PATCH RFC] mm/madvise: implement MADV_STOCKPILE (kswapd from user space)

2019-05-27 Thread Konstantin Khlebnikov
On 27.05.2019 17:21, Michal Hocko wrote: On Mon 27-05-19 16:12:23, Michal Hocko wrote: [Cc linux-api. Please always cc this list when proposing a new user visible api. Keeping the rest of the email intact for reference] On Mon 27-05-19 13:05:58, Konstantin Khlebnikov wrote: [...] This imple

Re: [PATCH] binfmt_flat: make load_flat_shared_library() work

2019-05-27 Thread Nicolas Pitre
On Mon, 27 May 2019, Jann Horn wrote: > On Sat, May 25, 2019 at 11:43 PM Andrew Morton > wrote: > > On Fri, 24 May 2019 22:18:17 +0200 Jann Horn wrote: > > > load_flat_shared_library() is broken: It only calls load_flat_file() if > > > prepare_binprm() returns zero, but prepare_binprm() returns

[PATCH 3/5] kconfig: add static qualifier to expand_string()

2019-05-27 Thread Masahiro Yamada
Now expand_string() is only used in preprocess.c Signed-off-by: Masahiro Yamada --- scripts/kconfig/lkc_proto.h | 1 - scripts/kconfig/preprocess.c | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/kconfig/lkc_proto.h b/scripts/kconfig/lkc_proto.h index 86c267540c

[PATCH 2/5] kconfig: require the argument of --defconfig

2019-05-27 Thread Masahiro Yamada
Currently, the argument for --defconfig is optional. If the argument is not passed, the hard-coded default arch/$(ARCH)/defconfig is used. It no longer happens in Linux since the last users of the default are gone by the following commits: - Commit f3e20ad67b4c ("s390: move arch/s390/defconfig to

[PATCH 1/5] kconfig: remove always false ifeq ($(KBUILD_DEFCONFIG,) conditional

2019-05-27 Thread Masahiro Yamada
With the following two commits applied, all the arch Makefiles define KBUILD_DEFCONFIG. - Commit f3e20ad67b4c ("s390: move arch/s390/defconfig to arch/s390/configs/defconfig") - Commit 986a13769c4b ("alpha: move arch/alpha/defconfig to arch/alpha/configs/defconfig") The first conditional in

[PATCH resend] fs: VALIDATE_FS_PARSER should default to n

2019-05-27 Thread Geert Uytterhoeven
CONFIG_VALIDATE_FS_PARSER is a debugging tool to check that the parser tables are vaguely sane. It was set to default to 'Y' for the moment to catch errors in upcoming fs conversion development. Make sure it is not enabled by default in the final release of v5.1. Fixes: 31d921c7fb969172 ("vfs: A

[PATCH 5/5] unicore32: rename unicore32_defconfig to defconfig

2019-05-27 Thread Masahiro Yamada
Since the initial support of unicore32, it has always had a single defconfig. Rename it to 'defconfig', which is now the standard name when arch has just a single defconfig file. Signed-off-by: Masahiro Yamada --- arch/unicore32/Makefile | 3 +-- arch/unicore32

Re: [PATCH RFC] mm/madvise: implement MADV_STOCKPILE (kswapd from user space)

2019-05-27 Thread Michal Hocko
On Mon 27-05-19 16:21:56, Michal Hocko wrote: > On Mon 27-05-19 16:12:23, Michal Hocko wrote: > > [Cc linux-api. Please always cc this list when proposing a new user > > visible api. Keeping the rest of the email intact for reference] > > > > On Mon 27-05-19 13:05:58, Konstantin Khlebnikov wrote:

[PATCH] time/tick-broadcast: Fix tick_broadcast_offline() lockdep complaint

2019-05-27 Thread Paul E. McKenney
The TASKS03 and TREE04 rcutorture scenarios produce the following lockdep complaint: WARNING: inconsistent lock state 5.2.0-rc1+ #513 Not tainted inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage. migration/1/14 [HC0[0]:SC0[0]:HE1

Re: [PATCH v6 3/4] media: meson: add v4l2 m2m video decoder driver

2019-05-27 Thread Maxime Jourdan
Hi Hans, On Mon, May 27, 2019 at 12:04 PM Hans Verkuil wrote: > > Hi Maxime, > > First a high-level comment: I think this driver should go to staging. > Once we finalize the stateful decoder spec, and we've updated the > v4l2-compliance test, then this needs to be tested against that and > only if

Re: [PATCH v6 3/4] media: meson: add v4l2 m2m video decoder driver

2019-05-27 Thread Hans Verkuil
On 5/27/19 4:44 PM, Maxime Jourdan wrote: > Hi Hans, > On Mon, May 27, 2019 at 12:04 PM Hans Verkuil wrote: >> >> Hi Maxime, >> >> First a high-level comment: I think this driver should go to staging. >> Once we finalize the stateful decoder spec, and we've updated the >> v4l2-compliance test, the

Build regressions/improvements in v5.2-rc2

2019-05-27 Thread Geert Uytterhoeven
Below is the list of build error/warning regressions/improvements in v5.2-rc2[1] compared to v5.1[2]. Summarized: - build errors: +4/-0 - build warnings: +142/-106 JFYI, when comparing v5.2-rc2[1] to v5.2-rc1[3], the summaries are: - build errors: +0/-0 - build warnings: +99/-57 Note tha

[PATCH v3 0/2] Drivers: hv: Move Hyper-V clock/timer code to separate clocksource driver

2019-05-27 Thread Michael Kelley
This patch series moves Hyper-V clock/timer code to a separate Hyper-V clocksource driver. Previously, Hyper-V clock/timer code and data structures were mixed in with other Hyper-V code in the ISA independent drivers/hv code as well as in arch dependent code. The new Hyper-V clocksource driver is I

Re: [PATCH net-next] net: link_watch: prevent starvation when processing linkwatch wq

2019-05-27 Thread Stephen Hemminger
On Mon, 27 May 2019 09:47:54 +0800 Yunsheng Lin wrote: > When user has configured a large number of virtual netdev, such > as 4K vlans, the carrier on/off operation of the real netdev > will also cause it's virtual netdev's link state to be processed > in linkwatch. Currently, the processing is d

[PATCH v3 1/2] Drivers: hv: Create Hyper-V clocksource driver from existing clockevents code

2019-05-27 Thread Michael Kelley
Clockevents code for Hyper-V synthetic timers is currently mixed in with other Hyper-V code. Move the code to a Hyper-V specific driver in the "clocksource" directory. Update the VMbus driver to call initialization and cleanup routines since the Hyper-V synthetic timers are not independently enumer

Re: [PATCH v2 00/10] Allwinner A64/H6 IR support

2019-05-27 Thread Clément Péron
Hi Ondřej, On Mon, 27 May 2019 at 15:48, Ondřej Jirman wrote: > > Hi Clément, > > On Mon, May 27, 2019 at 12:25:26AM +0200, Clément Péron wrote: > > Hi, > > > > A64 IR support series[1] pointed out that an A31 bindings should be > > introduced. > > > > This series introduce the A31 compatible bin

[PATCH v3 2/2] Drivers: hv: Move Hyper-V clocksource code to new clocksource driver

2019-05-27 Thread Michael Kelley
Code for the Hyper-V specific clocksources is currently mixed in with other Hyper-V code. Move the code to the Hyper-V specific driver in the "clocksource" directory, while separating out ISA dependencies so that the clocksource driver remains ISA independent. Update the Hyper-V initialization code

Re: [PATCH v2] mm/swap: Fix release_pages() when releasing devmap pages

2019-05-27 Thread Michal Hocko
On Fri 24-05-19 10:36:56, ira.we...@intel.com wrote: > From: Ira Weiny > > Device pages can be more than type MEMORY_DEVICE_PUBLIC. > > Handle all device pages within release_pages() > > This was found via code inspection while determining if release_pages() > and the new put_user_pages() could

Re: [PATCH v2 1/2] lockdep: Fix OOO unlock when hlocks need merging

2019-05-27 Thread Peter Zijlstra
On Fri, May 24, 2019 at 11:15:08PM +0300, Imre Deak wrote: > > ww_mutex_lock(&ww_lock_a, &ww_ctx); > > mutex_lock(&lock_c); > > ww_mutex_lock(&ww_lock_b, &ww_ctx); > > mutex_unlock(&lock_c); (*) > triggers the following WARN in __lock_release() when doing the u

Re: [PATCH v2] signal: Adjust error codes according to restore_user_sigmask()

2019-05-27 Thread Oleg Nesterov
Deepa, it seems that we both are saying the same things again and again, and we simply can't understand each other. I'll try to write another email to restart this discussion. Tomorrow, somehow I can't wake up today. And let me repeat, of course I can be wrong. IOW, it is not that I am trying to

Re: [PATCH] scsi: scsi_dh_alua: Fix possible null-ptr-deref

2019-05-27 Thread Bart Van Assche
On 5/27/19 7:22 AM, YueHaibing wrote: > If alloc_workqueue fails in alua_init, it should return > -ENOMEM, otherwise it will trigger null-ptr-deref while > unloading module which calls destroy_workqueue dereference > wq->lock like this: > > BUG: KASAN: null-ptr-deref in __lock_acquire+0x6b4/0x1ee0

Re: [RFC 5/7] mm: introduce external memory hinting API

2019-05-27 Thread Oleg Nesterov
On 05/27, Minchan Kim wrote: > > > another problem is that pid_task(pid) can return a zombie leader, in this > > case > > mm_access() will fail while it shouldn't. > > I'm sorry. I didn't notice that. However, I couldn't understand your point. > Why do you think mm_access shouldn't fail even thoug

Re: [PATCH v2 2/2] lockdep: Fix merging of hlocks with non-zero references

2019-05-27 Thread Peter Zijlstra
On Fri, May 24, 2019 at 11:15:09PM +0300, Imre Deak wrote: > diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c > index 967352d32af1..9e2a4ab6c731 100644 > --- a/kernel/locking/lockdep.c > +++ b/kernel/locking/lockdep.c > @@ -3637,6 +3637,11 @@ print_lock_nested_lock_not_held(struct t

Re: [PATCH] [trivial] perf: Spelling s/EACCESS/EACCES/

2019-05-27 Thread Ingo Molnar
* Geert Uytterhoeven wrote: > Hi Ingo, > > On Mon, May 27, 2019 at 4:12 PM Ingo Molnar wrote: > > * Geert Uytterhoeven wrote: > > > The correct spelling is EACCES: > > > > > > include/uapi/asm-generic/errno-base.h:#define EACCES 13 /* Permission > > > denied */ > > > > > > Signed-off-by: Ge

Re: linux-next: manual merge of the vhost tree with the iommu tree

2019-05-27 Thread Michael S. Tsirkin
On Mon, May 27, 2019 at 11:27:18AM +0200, Joerg Roedel wrote: > On Sun, May 12, 2019 at 01:16:26PM -0400, Michael S. Tsirkin wrote: > > Joerg, what are we doing with these patches? > > It was tested in next with no bad effects. > > I sent an ack - do you want to pick it up? > > Or have me include i

[PATCH v4 0/4] Some cleanups for the KVA/vmalloc

2019-05-27 Thread Uladzislau Rezki (Sony)
Patch [1] removes an unused argument "node" from the __alloc_vmap_area() function and that is it. Patch [2] is not driven by any particular workload that fails or so, it is just better approach to handle one specific split case. Patch [3] some cleanups in merging path. Basically on a first step t

[PATCH v4 1/4] mm/vmap: remove "node" argument

2019-05-27 Thread Uladzislau Rezki (Sony)
Remove unused argument from the __alloc_vmap_area() function. Signed-off-by: Uladzislau Rezki (Sony) --- mm/vmalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c index c42872ed82ac..ea1b65fac599 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c

[PATCH v4 4/4] mm/vmap: switch to WARN_ON() and move it under unlink_va()

2019-05-27 Thread Uladzislau Rezki (Sony)
Trigger a warning if an object that is about to be freed is detached. We used to have a BUG_ON(), but even though it is considered as faulty behaviour that is not a good reason to break a system. Signed-off-by: Uladzislau Rezki (Sony) --- mm/vmalloc.c | 8 +--- 1 file changed, 1 insertion(+)

[PATCH v4 2/4] mm/vmap: preload a CPU with one object for split purpose

2019-05-27 Thread Uladzislau Rezki (Sony)
Refactor the NE_FIT_TYPE split case when it comes to an allocation of one extra object. We need it in order to build a remaining space. Introduce ne_fit_preload()/ne_fit_preload_end() functions for preloading one extra vmap_area object to ensure that we have it available when fit type is NE_FIT_TY

[PATCH] userfaultfd: selftest: fix compiler warning

2019-05-27 Thread Alakesh Haloi
Fixes following compiler warning userfaultfd.c: In function ‘usage’: userfaultfd.c:126:2: warning: format not a string literal and no format arguments [-Wformat-security] fprintf(stderr, examples); Signed-off-by: Alakesh Haloi --- tools/testing/selftests/vm/userfaultfd.c | 2 +- 1 fil

[PATCH v4 3/4] mm/vmap: get rid of one single unlink_va() when merge

2019-05-27 Thread Uladzislau Rezki (Sony)
It does not make sense to try to "unlink" the node that is definitely not linked with a list nor tree. On the first merge step VA just points to the previously disconnected busy area. On the second step, check if the node has been merged and do "unlink" if so, because now it points to an object th

<    1   2   3   4   5   6   7   8   9   >