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

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

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

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

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

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

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

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

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

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

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

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

[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

[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(+)

[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

[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

[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

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

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

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

[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

[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

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

[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

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

[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

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

[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

[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

[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

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

[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

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

[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

[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

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

[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

[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

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

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

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 >

[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

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 >

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

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

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日周一

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

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

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

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

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

[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

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

[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

[PATCH 09/10] arm64: dts: meson-gxbb-vega-s95: fix WiFi/BT module support

2019-05-27 Thread Neil Armstrong
Fix the SDIO WiFi support and add proper Bluetooth support on the Vega S95 board. Suggested-by: Christian Hewitt Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git

[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

[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

[PATCH 00/10] arm64: meson-gx: misc fixes

2019-05-27 Thread Neil Armstrong
This patchset : - Fixes GPIO key DT on Khadas VIM2 board - Fixes regulator naming on Vega S95 board - Enable SARADC on Wetek and Vega S95 boards - Enable/Fix Bluetooth on VIM2, Wetek and Vega S95 boards - Enable CEC & HDMI on Vega S95 board - Adds ethernet PHY interrupt on Vega S95 board

[PATCH 02/10] arm64: dts: meson-gxm-khadas-vim2: fix Bluetooth support

2019-05-27 Thread Neil Armstrong
From: Christian Hewitt - Remove serial1 alias - Add support for uart_A rts/cts - Add bluetooth uart_A subnode qith shutdown gpio Fixes: b8b74dda3908 ("ARM64: dts: meson-gxm: Add support for Khadas VIM2") Signed-off-by: Christian Hewitt Signed-off-by: Neil Armstrong ---

[PATCH 06/10] arm64: dts: meson-gxbb-vega-s95: add HDMI nodes

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

Re: [PATCH v2] mm: mlockall error for flag MCL_ONFAULT

2019-05-27 Thread Vlastimil Babka
On 5/27/19 9:53 AM, Potyra, Stefan wrote: > If mlockall() is called with only MCL_ONFAULT as flag, > it removes any previously applied lockings and does > nothing else. > > This behavior is counter-intuitive and doesn't match the > Linux man page. > > For mlockall(): > > EINVAL Unknown

[PATCH 1/4] 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

Re: [PATCH 1/1] ARM: dts: meson8b: mxq: improve support for the TRONFY MXQ S805

2019-05-27 Thread hex dump
On Fri, May 24, 2019 at 8:19 PM Martin Blumenstingl wrote: > > The TRONFY MXQ comes with either 1GB or 2GB RAM. > > Both variants share (like most boards based on Amlogic reference > designs): > - 10/100 PHY (IC Plus IP101GR) with GPIOH_4 being the reset line and > GPIOH_3 the interrupt line >

[PATCH] platform/x86: intel_pmc_core: transform Pkg C-state residency from TSC ticks into microseconds

2019-05-27 Thread Harry Pan
Refer to the Intel SDM Vol.4, the package C-state residency counters of modern IA micro-architecture are all ticking in TSC frequency, hence we can apply simple math to transform the ticks into microseconds. i.e., residency (ms) = count / tsc_khz residency (us) = count / tsc_khz * 1000 This also

Re: 5.1.0-next-20190520 -- emacs segfaults on 32-bit machine Re: 5.2-rc0.8: emacs segfaults?! x220, with 32-bit userland

2019-05-27 Thread Sebastian Andrzej Siewior
On 2019-05-27 15:03:17 [+0200], Pavel Machek wrote: > > could you please send me (offlist) your .config? Also, what kind of > > userland do you run? Something like Debian stable? > > Yep, debian stable. Since we had a little bit of development recently, could you please check if

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

2019-05-27 Thread Gen Zhang
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/mailbox/tegra-hsp.c index 11fc9fd..b613c46 100644 ---

Re: 5.1.0-next-20190520 -- emacs segfaults on 32-bit machine Re: 5.2-rc0.8: emacs segfaults?! x220, with 32-bit userland

2019-05-27 Thread Pavel Machek
On Thu 2019-05-23 16:50:36, Sebastian Andrzej Siewior wrote: > On 2019-05-23 10:37:24 [+0200], Pavel Machek wrote: > > Hi! > Hi, > > > > I did not notice any new crashes. > > > > New crash now; different machine, way -next kernel... and I even have > > a backtrace. > > could you please send me

Re: 5.1.0-next-20190520 -- emacs segfaults on 32-bit machine Re: 5.2-rc0.8: emacs segfaults?! x220, with 32-bit userland

2019-05-27 Thread Pavel Machek
On Thu 2019-05-23 16:50:36, Sebastian Andrzej Siewior wrote: > On 2019-05-23 10:37:24 [+0200], Pavel Machek wrote: > > Hi! > Hi, > > > > I did not notice any new crashes. > > > > New crash now; different machine, way -next kernel... and I even have > > a backtrace. > > could you please send me

[PATCH v2] arm64: dts: meson-g12a-x96-max: Add Gigabit Ethernet Support

2019-05-27 Thread Neil Armstrong
Enable the network interface of the X96 Mac using an external Realtek RTL8211F gigabit PHY, needing the same broken-eee properties as the previous Amlogic SoC generations. Signed-off-by: Neil Armstrong --- Changes since v1: - Fixed eth_rmii_pins into eth_pins

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

2019-05-27 Thread Steven Rostedt
On Mon, 27 May 2019 11:38:42 +0200 "Uladzislau Rezki (Sony)" wrote: > 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

[PATCH v2 1/4] iio: adc: ad7606: Move oversampling and scale options to chip info

2019-05-27 Thread Beniamin Bia
The device dependent options which are going to be different for devices which will be supported in the future by this driver, were moved in chip info for a more generic driver. This patch allows supporting more devices by the driver. Also, it is an intermediate step of adding support for ad7616

[PATCH v2 4/4] iio: adc: ad7606: Add debug mode for ad7616

2019-05-27 Thread Beniamin Bia
Support for register access was added for spi devices. Signed-off-by: Beniamin Bia Acked-by: Jonathan Cameron --- Changes in v2: -nothing changed drivers/iio/adc/ad7606.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/iio/adc/ad7606.c

[PATCH v2 3/4] iio: adc: ad7606: Add support for software mode for ad7616

2019-05-27 Thread Beniamin Bia
Support for ad7616 running in software was added. In order to activate the software mode, HW_RNGSEL pins must be pulled low. Oversampling and input ranges are now configured in corresponding registers. Ad7616 has multiple scale options when it is configured in software mode. Also, in order to

[PATCH v2 2/4] iio: adc: ad7606: Add software configuration

2019-05-27 Thread Beniamin Bia
Because this driver will support multiple configurations for software, the software configuration was made generic. Signed-off-by: Beniamin Bia Acked-by: Jonathan Cameron --- Changes in v2: -nothing changed drivers/iio/adc/ad7606.c | 40 +---

[PATCH v2] arm64: dts: meson: g12a: Add hwrng node

2019-05-27 Thread Neil Armstrong
The Amlogic G12A has the hwrng module at the end of an unknown "EFUSE" bus. The hwrng is not enabled on the vendor G12A DTs, but is enabled on next generation SM1 SoC family sharing the exact same memory mapping. Let's add the "EFUSE" bus and the hwrng node. This hwrng has been checked with the

Re: Issue with Broadcom wireless in 5.2rc1 (was Re: [PATCH] mmc: sdhci: queue work after sdhci_defer_done())

2019-05-27 Thread Brian Masney
On Mon, May 27, 2019 at 03:08:07PM +0300, Adrian Hunter wrote: > On 27/05/19 12:37 PM, Brian Masney wrote: > > On Sun, May 26, 2019 at 03:58:19PM -0400, Brian Masney wrote: > >> I attached a patch that shows how I was able to determine what had > >> already claimed the host. > > On Mon, May 27,

Re: [PATCH v2 5/7] dmaengine: sun6i: Add support for H6 DMA

2019-05-27 Thread Maxime Ripard
On Sun, May 26, 2019 at 09:12:36PM +0200, Clément Péron wrote: > Hi Maxime, > > On Sun, 26 May 2019 at 20:34, Maxime Ripard wrote: > > > > On Sat, May 25, 2019 at 06:38:17PM +0200, Clément Péron wrote: > > > From: Jernej Skrabec > > > > > > H6 DMA has more than 32 supported DRQs, which means

Re: [RFC PATCH 5/6] x86/mm/tlb: Flush remote and local TLBs concurrently

2019-05-27 Thread Paolo Bonzini
On 27/05/19 14:32, Peter Zijlstra wrote: > On Mon, May 27, 2019 at 12:21:59PM +0200, Paolo Bonzini wrote: >> On 27/05/19 11:47, Peter Zijlstra wrote: > >>> --- a/arch/x86/kernel/kvm.c >>> +++ b/arch/x86/kernel/kvm.c >>> @@ -580,7 +580,7 @@ static void __init kvm_apf_trap_init(voi >>> >>>

Re: [PATCHv2 4/4] printk: make sure we always print console disabled message

2019-05-27 Thread Petr Mladek
On Thu 2019-05-23 15:59:47, Sergey Senozhatsky wrote: > On (05/15/19 16:47), Petr Mladek wrote: > > On Fri 2019-04-26 14:44:45, Sergey Senozhatsky wrote: > > > > > > Forgot to mention that the series is still in RFC phase. > > > > > > > > > On (04/26/19 14:33), Sergey Senozhatsky wrote: > > >

Re: [RFC 7/7] mm: madvise support MADV_ANONYMOUS_FILTER and MADV_FILE_FILTER

2019-05-27 Thread Michal Hocko
On Mon 27-05-19 16:58:11, Minchan Kim wrote: > On Tue, May 21, 2019 at 08:26:28AM +0200, Michal Hocko wrote: > > On Tue 21-05-19 11:55:33, Minchan Kim wrote: > > > On Mon, May 20, 2019 at 11:28:01AM +0200, Michal Hocko wrote: > > > > [cc linux-api] > > > > > > > > On Mon 20-05-19 12:52:54,

[PATCH v2 1/3] dt-bindings: mmc: meson-gx: add dram-access-quirk property

2019-05-27 Thread Neil Armstrong
On the Amlogic G12A SoC family, (only) the SDIO controller has a bug which makes any DRAM access from the MMC controller fail. Add the amlogic,dram-access-quirk property so signal this particular controller has this bug and needs a quirk to work properly. Reviewed-by: Martin Blumenstingl

[PATCH v2 0/3] mmc: meson-gx: add dram-access-quirk support

2019-05-27 Thread Neil Armstrong
On the Amlogic G12A SoC family, (only) the SDIO controller fails to access the data from DRAM, leading to a broken controller. Add the amlogic,ddr-access-quirk property so signal this particular controller has this bug and needs a quirk to work properly. But each MMC controller has 1,5KiB of

[PATCH v2 2/3] mmc: meson-gx: add dram-access-quirk

2019-05-27 Thread Neil Armstrong
On the Amlogic G12A SoC family, (only) the SDIO controller fails to access the data from DRAM, leading to a broken controller. But each MMC controller has 1,5KiB of SRAM after the registers, that can be used as bounce buffer to avoid direct DRAM access from the integrated DMAs (this SRAM may be

Re: [PATCH v3 2/4] mtd: rawnand: Add Macronix MX25F0A NAND controller

2019-05-27 Thread Miquel Raynal
Hi Mason, masonccy...@mxic.com.tw wrote on Thu, 23 May 2019 16:58:02 +0800: > Hi Miquel, > > > > > > > > > + > > > > > +static void mxic_nand_select_chip(struct nand_chip *chip, int > chipnr) > > > > > > > > _select_target() is preferred now > > > > > > Do you mean I implement

[PATCH v2 3/3] arm64: dts: meson: g12a: add SDIO controller

2019-05-27 Thread Neil Armstrong
From: Jerome Brunet The Amlogic G12A SDIO Controller has a bug preventing direct DDR access, add the port A (SDIO) pinctrl and controller nodes and mark this specific controller with the amlogic,dram-access-quirk property. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong ---

[PATCH v2] mtd: remove unused value for mtdoops

2019-05-27 Thread Weitao Hou
MTD oops 'hdr' header is never used, drop its initialization Signed-off-by: Weitao Hou --- Changes in v2: -fix comment for patch --- drivers/mtd/mtdoops.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c index e078fc41aa61..6ae4b70ebdbb

Re: [PATCH 10/14] pwm: meson: simplify the calculation of the pre-divider and count

2019-05-27 Thread Neil Armstrong
On 26/05/2019 21:41, Uwe Kleine-König wrote: > On Sat, May 25, 2019 at 08:11:29PM +0200, Martin Blumenstingl wrote: >> Replace the loop to calculate the pre-divider and count with two >> separate div64_u64() calculations. This makes the code easier to read >> and improves the precision. >> >> Two

Re: [PATCH 2/2] arch: wire-up clone6() syscall on x86

2019-05-27 Thread Christian Brauner
On Mon, May 27, 2019 at 02:28:33PM +0200, Arnd Bergmann wrote: > On Mon, May 27, 2019 at 12:45 PM Christian Brauner > wrote: > > On Mon, May 27, 2019 at 12:02:37PM +0200, Arnd Bergmann wrote: > > > On Sun, May 26, 2019 at 12:27 PM Christian Brauner > > > wrote: > > > > > > > > Wire up the

Re: [PATCH 14/14] pwm: meson: add documentation to the driver

2019-05-27 Thread Neil Armstrong
On 25/05/2019 20:11, Martin Blumenstingl wrote: > Add a link to the datasheet and a short summary how the hardware works. > The goal is to make it easier for other developers to understand why the > pwm-meson driver is implemented the way it is. > > Suggested-by: Uwe Kleine-König >

Re: [PATCH 13/14] pwm: meson: add support PWM_POLARITY_INVERSED when disabling

2019-05-27 Thread Neil Armstrong
On 25/05/2019 20:11, Martin Blumenstingl wrote: > meson_pwm_apply() has to consider the PWM polarity when disabling the > output. > With enabled=false and polarity=PWM_POLARITY_NORMAL the output needs to > be LOW. The driver already supports this. > With enabled=false and

<    1   2   3   4   5   6   7   8   9   >