Re: [PATCH V6 RESEND 0/3] arm64/mm: Enable memory hot remove

2019-07-23 Thread Anshuman Khandual
On 07/23/2019 04:26 PM, Mark Rutland wrote: > Hi Anshuman, Hello Mark, > > On Mon, Jul 15, 2019 at 11:47:47AM +0530, Anshuman Khandual wrote: >> This series enables memory hot remove on arm64 after fixing a memblock >> removal ordering problem in generic try_remove_memory() and a possible >> a

Re: [PATCH v2] sys_prctl(): remove unsigned comparision with less than zero

2019-07-23 Thread Cyrill Gorcunov
On Wed, Jul 24, 2019 at 10:11:48AM +0800, Yang Xu wrote: > Currently, when calling prctl(PR_SET_TIMERSLACK, arg2), arg2 is an > unsigned long value, arg2 will never < 0. Negative judgment is > meaningless, so remove it. > > Fixes: 6976675d9404 ("hrtimer: create a "timer_slack" field in the task >

[PATCH] RDMA/hns: Fix build error

2019-07-23 Thread YueHaibing
If INFINIBAND_HNS_HIP08 is selected and HNS3 is m, but INFINIBAND_HNS is y, building fails: drivers/infiniband/hw/hns/hns_roce_hw_v2.o: In function `hns_roce_hw_v2_exit': hns_roce_hw_v2.c:(.exit.text+0xd): undefined reference to `hnae3_unregister_client' drivers/infiniband/hw/hns/hns_roce_hw_v2.o

Re: [Sound-open-firmware] [PATCH v2 1/5] ASoC: SOF: imx: Add i.MX8 HW support

2019-07-23 Thread Daniel Baluta
On Tue, Jul 23, 2019 at 6:18 PM Pierre-Louis Bossart wrote: > > > > diff --git a/sound/soc/sof/imx/Makefile b/sound/soc/sof/imx/Makefile > > new file mode 100644 > > index ..c69237971da5 > > --- /dev/null > > +++ b/sound/soc/sof/imx/Makefile > > @@ -0,0 +1,7 @@ > > +# SPDX-License-Iden

Re: [PATCH V2 1/2] string: Add stracpy and stracpy_pad mechanisms

2019-07-23 Thread Rasmus Villemoes
On 23/07/2019 17.39, Joe Perches wrote: > On Tue, 2019-07-23 at 16:37 +0200, Rasmus Villemoes wrote: >> On 23/07/2019 15.51, Joe Perches wrote: >>> >>> These mechanisms verify that the dest argument is an array of >>> char or other compatible types like u8 or s8 or equivalent. >> Sorry, but "compat

Re: [PATCH 2/2] mm/hmm: make full use of walk_page_range()

2019-07-23 Thread Christoph Hellwig
On Tue, Jul 23, 2019 at 04:30:16PM -0700, Ralph Campbell wrote: > hmm_range_snapshot() and hmm_range_fault() both call find_vma() and > walk_page_range() in a loop. This is unnecessary duplication since > walk_page_range() calls find_vma() in a loop already. > Simplify hmm_range_snapshot() and hmm_

Re: Warning seen when removing a module using irqdomain framework

2019-07-23 Thread Marc Zyngier
On Tue, 23 Jul 2019 14:52:34 -0700 pher...@codeaurora.org wrote: Hi Prakruthi, > Hi, > > I have been working on a interrupt controller driver that uses tree > based mapping for its domain (irq_domain_add_tree(..)). > If I understand correctly, the clients get a mapping when they call > platform_

Re: [PATCH] arm64: dts: meson: odroid-n2: keep SD card regulator always on

2019-07-23 Thread Neil Armstrong
Hi Anand, On 24/07/2019 07:30, Anand Moon wrote: > Hi All, > > On Mon, 22 Jul 2019 at 12:51, Neil Armstrong wrote: >> >> On 19/07/2019 21:29, Xavier Ruppen wrote: >>> When powering off the Odroid N2, the tflash_vdd regulator is >>> automatically turned off by the kernel. This is a problem >>> wh

Re: [PATCH v2 3/6] pwm: jz4740: Apply configuration atomically

2019-07-23 Thread Uwe Kleine-König
Hello Paul, On Tue, Jul 23, 2019 at 04:46:40PM -0400, Paul Cercueil wrote: > Le lun. 22 juil. 2019 à 15:34, Uwe =?iso-8859-1?q?Kleine-K=F6nig?= > a écrit : > > On Fri, Jun 07, 2019 at 05:44:07PM +0200, Paul Cercueil wrote: > > > -is_enabled = jz4740_timer_is_enabled(pwm->hwpwm); > > > -

Re: [PATCH v12 1/5] can: m_can: Create a m_can platform framework

2019-07-23 Thread Greg KH
On Tue, Jul 23, 2019 at 10:14:14AM -0500, Dan Murphy wrote: > Hello > > On 7/10/19 7:08 AM, Dan Murphy wrote: > > Hello > > > > On 6/17/19 10:09 AM, Dan Murphy wrote: > > > Marc > > > > > > On 6/10/19 11:35 AM, Dan Murphy wrote: > > > > Bump > > > > > > > > On 6/6/19 8:16 AM, Dan Murphy wrote:

Re: [PATCH 5/8] ARM: dts: Drop bogus ahclkr clocks for dra7 mcasp 3 to 8

2019-07-23 Thread Tony Lindgren
* Suman Anna [190723 21:02]: > Hi Tony, > > On 7/23/19 6:28 AM, Tony Lindgren wrote: > > The ahclkr clkctrl clock bit 28 only exists for mcasp 1 and 2 on dra7. > > Otherwise we get the following warning on beagle-x15: ... > > @@ -2962,9 +2958,8 @@ > > ; > >

Re: [alsa-devel] [PATCH 01/10] ASoC: fsl_sai: add of_match data

2019-07-23 Thread Daniel Baluta
On Tue, Jul 23, 2019 at 8:01 PM Mark Brown wrote: > > On Mon, Jul 22, 2019 at 03:48:24PM +0300, Daniel Baluta wrote: > > From: Lucas Stach > > > > New revisions of the SAI IP block have even more differences that need > > be taken into account by the driver. To avoid sprinking compatible > > chec

Re: Reminder: 99 open syzbot bugs in net subsystem

2019-07-23 Thread Eric Dumazet
On 7/24/19 3:38 AM, Eric Biggers wrote: > [This email was generated by a script. Let me know if you have any > suggestions > to make it better, or if you want it re-generated with the latest status.] > > Of the currently open syzbot reports against the upstream kernel, I've > manually > mark

Re: [PATCH v4 2/3] treewide: Remove dev_err() usage after platform_get_irq()

2019-07-23 Thread Greg Kroah-Hartman
On Tue, Jul 23, 2019 at 11:16:23AM -0700, Stephen Boyd wrote: > diff --git a/sound/soc/sunxi/sun4i-i2s.c b/sound/soc/sunxi/sun4i-i2s.c > index 9b2232908b65..40e4e8e03428 100644 > --- a/sound/soc/sunxi/sun4i-i2s.c > +++ b/sound/soc/sunxi/sun4i-i2s.c > @@ -1088,7 +1088,6 @@ static int sun4i_i2s_probe

[PATCH] clk: imx: Remove unused function statement

2019-07-23 Thread Anson . Huang
From: Anson Huang imx_register_uart_clocks_hws() function is NOT implemented at all, remove it. Signed-off-by: Anson Huang --- drivers/clk/imx/clk.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 9995f2a..f7a389a 100644 --- a/drivers/clk/

Re: + mm-oom-avoid-printk-iteration-under-rcu.patch added to -mm tree

2019-07-23 Thread Michal Hocko
[ups, I've cut the Cc list somehow, sorry about that] On Wed 24-07-19 08:27:27, Michal Hocko wrote: > Andrew, > I've had some concerns wrt. this patch - especially the additional > complexity - and I have to say I am not convinced that this is really > needed. Our past experience in this area sugg

Re: [PATCH 14/14] PCI/P2PDMA: Introduce pci_p2pdma_[un]map_resource()

2019-07-23 Thread Christoph Hellwig
> diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c > index baf476039396..20c834cfd2d3 100644 > --- a/drivers/pci/p2pdma.c > +++ b/drivers/pci/p2pdma.c > @@ -874,6 +874,91 @@ void pci_p2pdma_unmap_sg_attrs(struct device *dev, > struct scatterlist *sg, > } > EXPORT_SYMBOL_GPL(pci_p2pdma_un

Re: [PATCH 07/14] PCI/P2PDMA: Add the provider's pci_dev to the dev_pgmap struct

2019-07-23 Thread Christoph Hellwig
On Mon, Jul 22, 2019 at 05:08:52PM -0600, Logan Gunthorpe wrote: > diff --git a/drivers/pci/p2pdma.c b/drivers/pci/p2pdma.c > index 143e11d2a5c3..70c262b7c731 100644 > --- a/drivers/pci/p2pdma.c > +++ b/drivers/pci/p2pdma.c > @@ -168,6 +168,7 @@ int pci_p2pdma_add_resource(struct pci_dev *pdev, int

Re: [PATCH 11/14] PCI/P2PDMA: dma_map P2PDMA map requests that traverse the host bridge

2019-07-23 Thread Christoph Hellwig
> struct dev_pagemap *pgmap = sg_page(sg)->pgmap; > + struct pci_dev *client; > + int dist; > + > + client = find_parent_pci_dev(dev); > + if (WARN_ON_ONCE(!client)) > + return 0; > > + dist = upstream_bridge_distance(pgmap->pci_p2pdma_provider, > +

Re: [PATCH 2/8] ARM: OMAP2+: Remove unconfigured midlemode for am3 lcdc

2019-07-23 Thread Tony Lindgren
* Keerthy [190724 05:50]: > > On 24/07/19 12:33 AM, Suman Anna wrote: > > + Jyri > > > > On 7/23/19 6:28 AM, Tony Lindgren wrote: > > > We currently get a warning for lcdc because of a difference > > > with dts provided configuration compared to the legacy platform > > > data. This is because lc

KASAN: slab-out-of-bounds Read in bpf_int_jit_compile

2019-07-23 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:c6dd78fc Merge branch 'x86-urgent-for-linus' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1760ff8460 kernel config: https://syzkaller.appspot.com/x/.config?x=7937b718ddac333b da

Re: + mm-oom-avoid-printk-iteration-under-rcu.patch added to -mm tree

2019-07-23 Thread Michal Hocko
Andrew, I've had some concerns wrt. this patch - especially the additional complexity - and I have to say I am not convinced that this is really needed. Our past experience in this area suggests that more tricky code leads to different corner cases. So I am really reluctant to add more complexity w

[PATCH REBASE v4 14/14] riscv: Make mmap allocation top-down by default

2019-07-23 Thread Alexandre Ghiti
In order to avoid wasting user address space by using bottom-up mmap allocation scheme, prefer top-down scheme when possible. Before: root@qemuriscv64:~# cat /proc/self/maps 0001-00016000 r-xp fe:00 6389 /bin/cat.coreutils 00016000-00017000 r--p 5000 fe:00 6389 /bin/ca

Re: [PATCH v4 1/2] rtw88: pci: Rearrange the memory usage for skb in RX ISR

2019-07-23 Thread Jian-Hong Pan
Jian-Hong Pan 於 2019年7月11日 週四 下午1:28寫道: > > Jian-Hong Pan 於 2019年7月11日 週四 下午1:25寫道: > > > > Testing with RTL8822BE hardware, when available memory is low, we > > frequently see a kernel panic and system freeze. > > > > First, rtw_pci_rx_isr encounters a memory allocation failure (trimmed): > > >

[PATCH REBASE v4 13/14] mips: Use generic mmap top-down layout and brk randomization

2019-07-23 Thread Alexandre Ghiti
mips uses a top-down layout by default that exactly fits the generic functions, so get rid of arch specific code and use the generic version by selecting ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT. As ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT selects ARCH_HAS_ELF_RANDOMIZE, use the generic version of arch_r

Re: [PATCH v2] RDMA/hns: Fix build error for hip08

2019-07-23 Thread Yuehaibing
Pls drop this, this cannot fix the issue. On 2019/7/24 11:40, YueHaibing wrote: > If INFINIBAND_HNS_HIP08 is selected and HNS3 is m, > but INFINIBAND_HNS is y, building fails: > > drivers/infiniband/hw/hns/hns_roce_hw_v2.o: In function `hns_roce_hw_v2_exit': > hns_roce_hw_v2.c:(.exit.text+0xd):

[PATCH REBASE v4 12/14] mips: Replace arch specific way to determine 32bit task with generic version

2019-07-23 Thread Alexandre Ghiti
Mips uses TASK_IS_32BIT_ADDR to determine if a task is 32bit, but this define is mips specific and other arches do not have it: instead, use !IS_ENABLED(CONFIG_64BIT) || is_compat_task() condition. Signed-off-by: Alexandre Ghiti Reviewed-by: Kees Cook --- arch/mips/mm/mmap.c | 3 ++- 1 file cha

[PATCH REBASE v4 11/14] mips: Adjust brk randomization offset to fit generic version

2019-07-23 Thread Alexandre Ghiti
This commit simply bumps up to 32MB and 1GB the random offset of brk, compared to 8MB and 256MB, for 32bit and 64bit respectively. Suggested-by: Kees Cook Signed-off-by: Alexandre Ghiti Reviewed-by: Kees Cook --- arch/mips/mm/mmap.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-)

[PATCH REBASE v4 10/14] mips: Use STACK_TOP when computing mmap base address

2019-07-23 Thread Alexandre Ghiti
mmap base address must be computed wrt stack top address, using TASK_SIZE is wrong since STACK_TOP and TASK_SIZE are not equivalent. Signed-off-by: Alexandre Ghiti Acked-by: Kees Cook Acked-by: Paul Burton --- arch/mips/mm/mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH REBASE v4 09/14] mips: Properly account for stack randomization and stack guard gap

2019-07-23 Thread Alexandre Ghiti
This commit takes care of stack randomization and stack guard gap when computing mmap base address and checks if the task asked for randomization. This fixes the problem uncovered and not fixed for arm here: https://lkml.kernel.org/r/20170622200033.25714-1-r...@redhat.com Signed-off-by: Alexandre

[PATCH v3] drivers: net: xgene: Remove acpi_has_method() calls

2019-07-23 Thread Kelsey Skunberg
acpi_evaluate_object will already return an error if the needed method does not exist. Remove unnecessary acpi_has_method() calls and check the returned acpi_status for failure instead. Signed-off-by: Kelsey Skunberg --- Changes in v2: - Fixed white space warnings and errors Changes in v

[PATCH REBASE v4 08/14] arm: Use generic mmap top-down layout and brk randomization

2019-07-23 Thread Alexandre Ghiti
arm uses a top-down mmap layout by default that exactly fits the generic functions, so get rid of arch specific code and use the generic version by selecting ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT. As ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT selects ARCH_HAS_ELF_RANDOMIZE, use the generic version of ar

[PATCH net-next v2 5/8] fm10k: Use dev_get_drvdata

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- Changes in v2: - Change pci_set_drvdata to dev_set_drvdata to keep consistency. drivers/net/ethernet/intel/fm10k/fm10k_pci.c | 6 +++--- 1 file changed, 3 insertions(+)

[PATCH net-next v2 4/8] e1000e: Use dev_get_drvdata where possible

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- Changes in v2: - Change pci_set_drvdata to dev_set_drvdata to keep consistency. drivers/net/ethernet/intel/e1000e/netdev.c | 9 - 1 file changed, 4 insertions(+

[PATCH net-next v2 8/8] net: jme: Use dev_get_drvdata

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- Changes in v2: - Change pci_set_drvdata to dev_set_drvdata to keep consistency. drivers/net/ethernet/jme.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-)

[PATCH REBASE v4 07/14] arm: Use STACK_TOP when computing mmap base address

2019-07-23 Thread Alexandre Ghiti
mmap base address must be computed wrt stack top address, using TASK_SIZE is wrong since STACK_TOP and TASK_SIZE are not equivalent. Signed-off-by: Alexandre Ghiti Acked-by: Kees Cook --- arch/arm/mm/mmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mm/mmap

[PATCH net-next v2 7/8] igb: Use dev_get_drvdata where possible

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- Changes in v2: - Change pci_set_drvdata to dev_set_drvdata to keep consistency. drivers/net/ethernet/intel/igb/igb_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH net-next v2 6/8] i40e: Use dev_get_drvdata

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- Changes in v2: - Change pci_set_drvdata to dev_set_drvdata to keep consistency. drivers/net/ethernet/intel/i40e/i40e_main.c | 10 -- 1 file changed, 4 insertion

[PATCH net-next v2 1/8] net: 3com: 3c59x: Use dev_get_drvdata

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- Changes in v2: - Change pci_set_drvdata to dev_set_drvdata to keep consistency. drivers/net/ethernet/3com/3c59x.c | 8 +++- 1 file changed, 3 insertions(+), 5 delet

[PATCH net-next v2 2/8] net: atheros: Use dev_get_drvdata

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- Changes in v2: - Change pci_set_drvdata to dev_set_drvdata to keep consistency. drivers/net/ethernet/atheros/alx/main.c | 8 +++- drivers/net/ethernet/athe

[PATCH REBASE v4 06/14] arm: Properly account for stack randomization and stack guard gap

2019-07-23 Thread Alexandre Ghiti
This commit takes care of stack randomization and stack guard gap when computing mmap base address and checks if the task asked for randomization. This fixes the problem uncovered and not fixed for arm here: https://lkml.kernel.org/r/20170622200033.25714-1-r...@redhat.com Signed-off-by: Alexandre

[PATCH net-next v2 3/8] net: broadcom: Use dev_get_drvdata

2019-07-23 Thread Chuhong Yuan
Instead of using to_pci_dev + pci_get_drvdata, use dev_get_drvdata to make code simpler. Signed-off-by: Chuhong Yuan --- Changes in v2: - Change pci_set_drvdata to dev_set_drvdata to keep consistency. drivers/net/ethernet/broadcom/bnx2.c | 8 +++- drivers/net/ethernet/broadcom/bn

[PATCH net-next v2 0/8] Use dev_get_drvdata where possible

2019-07-23 Thread Chuhong Yuan
These patches use dev_get_drvdata instead of using to_pci_dev + pci_get_drvdata to make code simpler where possible. Changelog: v1 -> v2: - Change pci_set_drvdata to dev_set_drvdata to keep consistency. Chuhong Yuan (8): net: 3com: 3c59x: Use dev_get_drvdata net: atheros: Use dev_get_drvda

[PATCH REBASE v4 05/14] arm64, mm: Make randomization selected by generic topdown mmap layout

2019-07-23 Thread Alexandre Ghiti
This commits selects ARCH_HAS_ELF_RANDOMIZE when an arch uses the generic topdown mmap layout functions so that this security feature is on by default. Note that this commit also removes the possibility for arm64 to have elf randomization and no MMU: without MMU, the security added by randomization

[PATCH REBASE v4 04/14] arm64, mm: Move generic mmap layout functions to mm

2019-07-23 Thread Alexandre Ghiti
arm64 handles top-down mmap layout in a way that can be easily reused by other architectures, so make it available in mm. It then introduces a new config ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT that can be set by other architectures to benefit from those functions. Note that this new config depends o

[PATCH REBASE v4 03/14] arm64: Consider stack randomization for mmap base only when necessary

2019-07-23 Thread Alexandre Ghiti
Do not offset mmap base address because of stack randomization if current task does not want randomization. Note that x86 already implements this behaviour. Signed-off-by: Alexandre Ghiti Acked-by: Catalin Marinas Acked-by: Kees Cook Reviewed-by: Christoph Hellwig --- arch/arm64/mm/mmap.c | 6

[PATCH] ASoC: cs4271: Fix a typo in the CS4171_NR_RATIOS

2019-07-23 Thread Christophe JAILLET
This should be CS4271_NR_RATIOS. Fix it and use it. Signed-off-by: Christophe JAILLET --- sound/soc/codecs/cs4271.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/codecs/cs4271.c b/sound/soc/codecs/cs4271.c index 1d03a1348162..04b86a51e055 100644 --- a/sound/

[PATCH REBASE v4 02/14] arm64: Make use of is_compat_task instead of hardcoding this test

2019-07-23 Thread Alexandre Ghiti
Each architecture has its own way to determine if a task is a compat task, by using is_compat_task in arch_mmap_rnd, it allows more genericity and then it prepares its moving to mm/. Signed-off-by: Alexandre Ghiti Acked-by: Catalin Marinas Acked-by: Kees Cook Reviewed-by: Christoph Hellwig ---

[PATCH REBASE v4 01/14] mm, fs: Move randomize_stack_top from fs to mm

2019-07-23 Thread Alexandre Ghiti
This preparatory commit moves this function so that further introduction of generic topdown mmap layout is contained only in mm/util.c. Signed-off-by: Alexandre Ghiti Reviewed-by: Christoph Hellwig Acked-by: Kees Cook --- fs/binfmt_elf.c| 20 include/linux/mm.h | 2 ++

[PATCH REBASE v4 00/14] Provide generic top-down mmap layout functions

2019-07-23 Thread Alexandre Ghiti
Hi Andrew, This is simply a rebase on top of next-20190719, where I added various Acked/Reviewed-by from Kees and Catalin and a note on commit 08/14 suggested by Kees regarding the removal of STACK_RND_MASK that is safe doing. I would have appreciated a feedback from a mips maintainer but failed

Re: [PATCH v2] drivers: net: xgene: Remove acpi_has_method() calls

2019-07-23 Thread Kelsey Skunberg
On Tue, Jul 23, 2019 at 02:07:39PM -0700, David Miller wrote: > From: David Miller > Date: Tue, 23 Jul 2019 14:06:46 -0700 (PDT) > > > From: Kelsey Skunberg > > Date: Tue, 23 Jul 2019 12:58:11 -0600 > > > >> acpi_evaluate_object will already return an error if the needed method > >> does not ex

Re: linux-next: Fixes tag needs some work in the s390-fixes tree

2019-07-23 Thread Heiko Carstens
Hi Stephen, On Wed, Jul 24, 2019 at 07:42:27AM +1000, Stephen Rothwell wrote: > In commit > 8b515be512a2 ("vfio-ccw: Fix memory leak and don't call cp_free in cp_init") > Fixes tag > Fixes: 812271b910 ("s390/cio: Squash cp_free() and cp_unpin_free()") > - SHA1 should be at least 12 digits lo

Re: [PATCH 0/8] ti-sysc related warning fixes for v5.3-rc cycle

2019-07-23 Thread Keerthy
On 23/07/19 4:58 PM, Tony Lindgren wrote: Hi all, I noticed that with recent ti-sysc driver changes some new warnings have crept in. Mostly they are caused by having different configuration in the dts compared to the legacy platform data. Let's fix these first before we continue dropping the

Re: [PATCH 2/8] ARM: OMAP2+: Remove unconfigured midlemode for am3 lcdc

2019-07-23 Thread Keerthy
On 24/07/19 12:33 AM, Suman Anna wrote: + Jyri On 7/23/19 6:28 AM, Tony Lindgren wrote: We currently get a warning for lcdc because of a difference with dts provided configuration compared to the legacy platform data. This is because lcdc has SYSC_HAS_MIDLEMODE configured in the platform dat

[PATCH] quota: fix condition for resetting time limit in do_set_dqblk()

2019-07-23 Thread Chengguang Xu
We reset time limit when current usage is smaller or equal to soft limit in other place, so follow this rule in do_set_dqblk(). Signed-off-by: Chengguang Xu --- fs/quota/dquot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c index be9c

Re: [PATCH 1/2] mm/hmm: a few more C style and comment clean ups

2019-07-23 Thread Christoph Hellwig
On Tue, Jul 23, 2019 at 11:57:52PM +, Jason Gunthorpe wrote: > diff --git a/mm/hmm.c b/mm/hmm.c > index 16b6731a34db79..3d8cdfb67a6ab8 100644 > --- a/mm/hmm.c > +++ b/mm/hmm.c > @@ -285,8 +285,9 @@ struct hmm_vma_walk { > struct hmm_range*range; > struct dev_pagemap *pg

Re: [PATCH v5 04/13] media: rc: sunxi: Add RXSTA bits definition

2019-07-23 Thread Sean Young
On Tue, Jul 23, 2019 at 09:04:40AM +0200, Maxime Ripard wrote: > Hi Sean, > > On Tue, Jul 23, 2019 at 07:25:57AM +0100, Sean Young wrote: > > On Mon, Jul 15, 2019 at 01:12:45PM +0100, Sean Young wrote: > > > On Sun, Jul 14, 2019 at 04:32:22PM +0200, Clément Péron wrote: > > > > Hi Sean, > > > > >

Re: [PATCH] mt76_init_sband_2g: null check the allocation

2019-07-23 Thread Kalle Valo
Navid Emamdoost writes: > devm_kzalloc may fail and return NULL. So the null check is needed. > > Signed-off-by: Navid Emamdoost > --- > drivers/net/wireless/mediatek/mt7601u/init.c | 3 +++ > 1 file changed, 3 insertions(+) The prefix in the title should be "mt7601u:". https://wireless.wiki.

Re: [PATCH v2] media:dvb-frontends:Remove dvb_pll_devcount and id module parameters.

2019-07-23 Thread Sean Young
On Sat, Jul 20, 2019 at 11:43:02AM +0530, Vandana BN wrote: > Syzbot reported global-out-of-bounds Read in dvb_pll_attach, while > accessing id[dvb_pll_devcount], because dvb_pll_devcount was 65, > that is more than size of 'id' which is DVB_PLL_MAX(64). > > Fix would be to check if DVB_PLL_MAX de

[PATCH] powerpc: Support CMDLINE_EXTEND

2019-07-23 Thread Chris Packham
Device tree aware platforms can make use of CMDLINE_EXTEND to extend the kernel command line provided by the bootloader. This is particularly useful to set parameters for built-in modules that would otherwise be done at module insertion. Add support for this in the powerpc architecture. Signed-off

Re: [PATCH] arm64: dts: meson: odroid-n2: keep SD card regulator always on

2019-07-23 Thread Anand Moon
Hi All, On Mon, 22 Jul 2019 at 12:51, Neil Armstrong wrote: > > On 19/07/2019 21:29, Xavier Ruppen wrote: > > When powering off the Odroid N2, the tflash_vdd regulator is > > automatically turned off by the kernel. This is a problem > > when issuing the "reboot" command while using an SD card. >

[PATCH] ASoC: wm8955: Fix a typo in 'wm8995_pll_factors()' function name

2019-07-23 Thread Christophe JAILLET
This should be 'wm8955_pll_factors()' instead. Fix it and use it. Signed-off-by: Christophe JAILLET --- sound/soc/codecs/wm8955.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c index cd204f79647d..ec82a8fafdf6 100644

Re: [PATCH] powerpc: Wire up clone3 syscall

2019-07-23 Thread Arseny Solokha
Hi, may I also ask to provide ppc_clone3 symbol also for 32-bit powerpc? Otherwise Michael's patch breaks build for me: powerpc-e500v2-linux-gnuspe-ld: arch/powerpc/kernel/systbl.o: in function `sys_call_table': (.rodata+0x6cc): undefined reference to `ppc_clone3' make: *** [Makefile:1060:

Re: [PATCH v2 5/5] arm64: dts: qcom: sdm845-cheza: remove macro from unit name

2019-07-23 Thread Amit Kucheria
On Wed, Jul 24, 2019 at 10:20 AM Vinod Koul wrote: > > Unit address is supposed to be a number, using a macro with hex value is > not recommended, so add the value in unit name. > > arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi:966.16-969.4: Warning > (unit_address_format): /soc@0/spmi@c44/pmic@

Re: [PATCH v2 3/5] arm64: dts: qcom: sdm845: remove unit name for thermal trip points

2019-07-23 Thread Amit Kucheria
On Wed, Jul 24, 2019 at 10:20 AM Vinod Koul wrote: > > The thermal trip points have unit name but no reg property, so we can > remove them > > arch/arm64/boot/dts/qcom/sdm845.dtsi:2824.31-2828.7: Warning > (unit_address_vs_reg): /thermal-zones/cpu0-thermal/trips/trip-point@0: node > has a unit n

Re: [PATCH v2 4/5] arm64: dts: qcom: sdm845: remove macro from unit name

2019-07-23 Thread Amit Kucheria
On Wed, Jul 24, 2019 at 10:20 AM Vinod Koul wrote: > > Unit name is supposed to be a number, using a macro with hex value is > not recommended, so add the value in unit name. > > arch/arm64/boot/dts/qcom/pm8998.dtsi:81.18-84.6: Warning > (unit_address_format): /soc/spmi@c44/pmic@0/adc@3100/ad

[GIT PULL] FPGA Manager fix for 5.3

2019-07-23 Thread Moritz Fischer
The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mdf/linux-fpga.git tags/fixes-for-5.3 for you to fetch changes up to c3aefa0b8f54e8c7

Re: [PATCH V2 1/1] can: sja1000: f81601: add Fintek F81601 support

2019-07-23 Thread Ji-Ze Hong (Peter Hong)
Hi, Saeed Mahameed 於 2019/7/24 上午 05:38 寫道: On Mon, 2019-07-22 at 14:22 +0800, Ji-Ze Hong (Peter Hong) wrote: This patch add support for Fintek PCIE to 2 CAN controller support Signed-off-by: Ji-Ze Hong (Peter Hong) --- Changelog: v2: 1: Fix comment on the spinlock with write access

Re: [LKP] [SUNRPC] 0472e47660: fsmark.app_overhead 16.0% regression

2019-07-23 Thread Xing Zhengjun
On 7/12/2019 2:42 PM, Xing Zhengjun wrote: Hi Trond,     I attached perf-profile part big changes, hope it is useful for analyzing the issue. Ping... In testcase: fsmark on test machine: 40 threads Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz with 384G memory with following parameters:

Great News: National Heart Center Singapore CT Coronary Calcium Score 18 July 2019

2019-07-23 Thread Turritopsis Dohrnii Teo En Ming
Subject: Great News: National Heart Center Singapore CT Coronary Calcium Score 18 July 2019 Good day from Singapore, This is good news for trillions and trillions of years to come! 1. My weight/mass is 123.5 kg (taken on 23 July 2019). 2. My height is 1.79 meters (taken on 23 July 2019). 3. M

[PATCH] taskstats: Fix a typo - taskstsats --> taskstats

2019-07-23 Thread Christophe JAILLET
There is an extra 's' in 'taskstsats', remove it. Signed-off-by: Christophe JAILLET --- kernel/taskstats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/taskstats.c b/kernel/taskstats.c index 13a0f2e6ebc2..30578b139d16 100644 --- a/kernel/taskstats.c +++ b/kernel

Re: [PATCH v2 2/5] arm64: dts: qcom: sdm845: remove unnecessary properties for dsi nodes

2019-07-23 Thread Amit Kucheria
On Wed, Jul 24, 2019 at 10:20 AM Vinod Koul wrote: > > We get a warning about unnecessary properties of > > arch/arm64/boot/dts/qcom/sdm845.dtsi:2211.22-2257.6: Warning > (avoid_unnecessary_addr_size): /soc/mdss@ae0/dsi@ae94000: unnecessary > #address-cells/#size-cells without "ranges" or ch

Re: [PATCH v2 1/5] arm64: dts: qcom: sdm845: Add unit name to soc node

2019-07-23 Thread Amit Kucheria
On Wed, Jul 24, 2019 at 10:20 AM Vinod Koul wrote: > > We get a warning about missing unit name for soc node, so add it. > > arch/arm64/boot/dts/qcom/sdm845.dtsi:623.11-2814.4: Warning > (unit_address_vs_reg): /soc: node has a reg or ranges property, but no unit > name > > Signed-off-by: Vinod K

linux-next: Tree for Jul 24

2019-07-23 Thread Stephen Rothwell
Hi all, Changes since 20190723: The v4l-dvb tree lost its build failure. The keys tree gained a conflict against the afs tree. The devicetree tree gained a conflict against Linus' tree. Non-merge commits (relative to Linus' tree): 1806 1963 files changed, 153894 insertions

[PATCH] media: uvcvideo: Fix a typo in UVC_METATADA_BUF_SIZE

2019-07-23 Thread Christophe JAILLET
It is likely that it should be UVC_METADATA_BUF_SIZE instead. Fix it and use it. Signed-off-by: Christophe JAILLET --- drivers/media/usb/uvc/uvc_metadata.c | 4 ++-- drivers/media/usb/uvc/uvc_queue.c| 2 +- drivers/media/usb/uvc/uvcvideo.h | 2 +- 3 files changed, 4 insertions(+), 4 dele

Re: [PATCH 3/4] locking/lockdep: Reduce space occupied by stack traces

2019-07-23 Thread Eric Biggers
On Mon, Jul 22, 2019 at 11:24:42AM -0700, Bart Van Assche wrote: > Although commit 669de8bda87b ("kernel/workqueue: Use dynamic lockdep keys > for workqueues") unregisters dynamic lockdep keys when a workqueue is > destroyed, a side effect of that commit is that all stack traces > associated with t

[PATCH v2 3/5] arm64: dts: qcom: sdm845: remove unit name for thermal trip points

2019-07-23 Thread Vinod Koul
The thermal trip points have unit name but no reg property, so we can remove them arch/arm64/boot/dts/qcom/sdm845.dtsi:2824.31-2828.7: Warning (unit_address_vs_reg): /thermal-zones/cpu0-thermal/trips/trip-point@0: node has a unit name, but no reg property arch/arm64/boot/dts/qcom/sdm845.dtsi:283

[PATCH v2 5/5] arm64: dts: qcom: sdm845-cheza: remove macro from unit name

2019-07-23 Thread Vinod Koul
Unit address is supposed to be a number, using a macro with hex value is not recommended, so add the value in unit name. arch/arm64/boot/dts/qcom/sdm845-cheza.dtsi:966.16-969.4: Warning (unit_address_format): /soc@0/spmi@c44/pmic@0/adc@3100/adc-chan@0x4d: unit name should not have leading "0

[PATCH v2 4/5] arm64: dts: qcom: sdm845: remove macro from unit name

2019-07-23 Thread Vinod Koul
Unit name is supposed to be a number, using a macro with hex value is not recommended, so add the value in unit name. arch/arm64/boot/dts/qcom/pm8998.dtsi:81.18-84.6: Warning (unit_address_format): /soc/spmi@c44/pmic@0/adc@3100/adc-chan@0x06: unit name should not have leading "0x" arch/arm64

[PATCH v2 0/5] arm64: dts: qcom: sdm845: Fix DTS warnings

2019-07-23 Thread Vinod Koul
So this is an attempt to fix some warns on sdm845 dts. We still have bunch of warnings to fix after this series (duplicate address and node names having underscores etc). Lets get long hanging ones fixed, we can see the warns with W=1 or W=2 Changes since v1: - Fix space after adc node un

[PATCH v2 2/5] arm64: dts: qcom: sdm845: remove unnecessary properties for dsi nodes

2019-07-23 Thread Vinod Koul
We get a warning about unnecessary properties of arch/arm64/boot/dts/qcom/sdm845.dtsi:2211.22-2257.6: Warning (avoid_unnecessary_addr_size): /soc/mdss@ae0/dsi@ae94000: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property arch/arm64/boot/dts/qcom/sdm845.dtsi:2278.22

[PATCH v2 1/5] arm64: dts: qcom: sdm845: Add unit name to soc node

2019-07-23 Thread Vinod Koul
We get a warning about missing unit name for soc node, so add it. arch/arm64/boot/dts/qcom/sdm845.dtsi:623.11-2814.4: Warning (unit_address_vs_reg): /soc: node has a reg or ranges property, but no unit name Signed-off-by: Vinod Koul Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sdm84

Re: linux-next: build warning after merge of the input-current tree

2019-07-23 Thread Kai-Heng Feng
Hi Stephen, at 07:54, Stephen Rothwell wrote: Hi all, After merging the input-current tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/input/mouse/elantech.c: In function 'elantech_use_host_notify': drivers/input/mouse/elantech.c:1843:6: warning: this state

Re: [PATCH AUTOSEL 5.2 039/249] signal/cifs: Fix cifs_put_tcp_session to call send_sig instead of force_sig

2019-07-23 Thread Eric W. Biederman
Steve French writes: > Very easy to see what caused the regression with this global change: > > mount (which launches "cifsd" thread to read the socket) > umount (which kills the "cifsd" thread) > rmmod (rmmod now fails since "cifsd" thread is still active) > > mount launches a thread to read f

Re: WARNING in enqueue_task_dl

2019-07-23 Thread Eric Biggers
On Thu, Feb 07, 2019 at 10:35:04AM +0100, 'Dmitry Vyukov' via syzkaller-bugs wrote: > On Mon, Jan 7, 2019 at 5:19 PM Daniel Bristot de Oliveira > wrote: > > > > On 11/19/18 4:32 PM, Juri Lelli wrote: > > > From 9326fd2b20269cffef7290bdc5b8173460d3c870 Mon Sep 17 00:00:00 2001 > > > From: Juri Lel

[PATCH] net: fix semicolon.cocci warnings

2019-07-23 Thread kbuild test robot
From: kbuild test robot drivers/target/iscsi/cxgbit/cxgbit_target.c:1451:47-48: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: d7840976e391 ("net: Use skb accessors in network drivers") CC: Matthew Wilcox (Oracle) Signed-off-by: kb

Re: [PATCH v6 0/5] soc: qcom: Add SoC info driver

2019-07-23 Thread Vinod Koul
On 24-07-19, 04:05, Vaishali Thakkar wrote: > This patchset adds SoC info driver which can provide information > such as Chip ID, Chip family and serial number about Qualcomm SoCs > to user space via sysfs. Furthermore, it allows userspace to get > information about custom attributes and various im

Re: [PATCH v6 5/5] soc: qcom: socinfo: Expose image information

2019-07-23 Thread Vinod Koul
On 24-07-19, 04:05, Vaishali Thakkar wrote: > The socinfo driver provides information about version of the various > images loaded in the system. Expose this to user space for debugging > purpose. Reviewed-by: Vinod Koul -- ~Vinod

Re: [PATCH v6 4/5] soc: qcom: socinfo: Expose custom attributes

2019-07-23 Thread Vinod Koul
On 24-07-19, 04:05, Vaishali Thakkar wrote: > The Qualcomm socinfo provides a number of additional attributes, > add these to the socinfo driver and expose them via debugfs > functionality. Reviewed-by: Vinod Koul -- ~Vinod

[PATCH 01/12] mm/gup: add make_dirty arg to put_user_pages_dirty_lock()

2019-07-23 Thread john . hubbard
From: John Hubbard Provide more capable variation of put_user_pages_dirty_lock(), and delete put_user_pages_dirty(). This is based on the following: 1. Lots of call sites become simpler if a bool is passed into put_user_page*(), instead of making the call site choose which put_user_page*() varia

Re: [PATCH v6 3/5] soc: qcom: Add socinfo driver

2019-07-23 Thread Vinod Koul
On 24-07-19, 04:05, Vaishali Thakkar wrote: > From: Imran Khan > > The Qualcomm socinfo driver exposes information about the SoC, its > version and its serial number to user space. Reviewed-by: Vinod Koul -- ~Vinod

Re: [PATCH v6 1/5] base: soc: Add serial_number attribute to soc

2019-07-23 Thread Vinod Koul
On 24-07-19, 04:05, Vaishali Thakkar wrote: > From: Bjorn Andersson > > Add new attribute named "serial_number" as a standard interface for > user space to acquire the serial number of the device. > > For ST-Ericsson SoCs this is exposed by the cryptically named "soc_id" > attribute, but this pr

[PATCH] x86/entry/32: pass cr2 to do_async_page_fault

2019-07-23 Thread Matt Mullins
Commit a0d14b8909de ("x86/mm, tracing: Fix CR2 corruption") added the address parameter to do_async_page_fault, but does not pass it from the 32-bit entry point. To plumb it through, factor-out common_exception_read_cr2 in the same fashion as common_exception, and uses it from both page_fault and

[PATCH] x86/crash: remove unnecessary comparison

2019-07-23 Thread Nikolas Nyby
This ret comparison and return are unnecessary as of f296f2634920d205b93d878b48d87bb7e0a4c256 elf_header_exclude_ranges() returns ret in any case, with or without this comparison. Signed-off-by: Nikolas Nyby --- arch/x86/kernel/crash.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x

Re: [PATCH 1/5] arm64: dts: qcom: sdm845: Add unit name to soc node

2019-07-23 Thread Vinod Koul
On 23-07-19, 07:50, Stephen Boyd wrote: > Quoting Vinod Koul (2019-07-22 05:34:18) > > We get a warning about missing unit name for soc node, so add it. > > > > arch/arm64/boot/dts/qcom/sdm845.dtsi:623.11-2814.4: Warning > > (unit_address_vs_reg): /soc: node has a reg or ranges property, but no u

Re: [PATCH] mbcache: Speed up cache entry creation

2019-07-23 Thread Sultan Alsawaf
On Tue, Jul 23, 2019 at 10:56:05AM -0600, Andreas Dilger wrote: > Do you have any kind of performance metrics that show this is an actual > improvement in performance? This would be either macro-level benchmarks > (e.g. fio, but this seems unlikely to show any benefit), or micro-level > measuremen

Re: [PATCH v2] RDMA/hns: Fix build error for hip06

2019-07-23 Thread Yuehaibing
Pls ignore this, I will fix it. On 2019/7/24 11:44, YueHaibing wrote: > If INFINIBAND_HNS_HIP06 is selected and HNS_DSAF > is m, but INFINIBAND_HNS is y, building fails: > > drivers/infiniband/hw/hns/hns_roce_hw_v1.o: In function `hns_roce_v1_reset': > hns_roce_hw_v1.c:(.text+0x39fa): undefined

[PATCH resend v2] lib: scatterlist: Fix to support no mapped sg

2019-07-23 Thread Zhou Wang
In function sg_split, the second sg_calculate_split will return -EINVAL when in_mapped_nents is 0. Indeed there is no need to do second sg_calculate_split and sg_split_mapped when in_mapped_nents is 0, as in_mapped_nents indicates no mapped entry in original sgl. Signed-off-by: Zhou Wang Acked-b

Reminder: 3 open syzbot bugs in isdn subsystem

2019-07-23 Thread Eric Biggers
[This email was generated by a script. Let me know if you have any suggestions to make it better, or if you want it re-generated with the latest status.] Of the currently open syzbot reports against the upstream kernel, I've manually marked 3 of them as possibly being bugs in the isdn subsystem.

[PATCH] net: dsa: Check existence of .port_mdb_add callback before calling it

2019-07-23 Thread Chen-Yu Tsai
From: Chen-Yu Tsai With the recent addition of commit 75dad2520fc3 ("net: dsa: b53: Disable all ports on setup"), users of b53 (BCM53125 on Lamobo R1 in my case) are forced to use the dsa subsystem to enable the switch, instead of having it in the default transparent "forward-to-all" mode. The b

  1   2   3   4   5   6   7   8   9   >