[PATCH] mmc: renesas_sdhi: Do not use platform_get_irq() to count interrupts

2019-10-01 Thread Geert Uytterhoeven
As platform_get_irq() now prints an error when the interrupt does not exist, counting interrupts by looping until failure causes the printing of scary messages like: renesas_sdhi_internal_dmac ee14.sd: IRQ index 1 not found Fix this by using the platform_irq_count() helper to avoid

[PATCH] pinctrl: sh-pfc: Do not use platform_get_irq() to count interrupts

2019-10-01 Thread Geert Uytterhoeven
As platform_get_irq() now prints an error when the interrupt does not exist, counting interrupts by looping until failure causes the printing of scary messages like: sh-pfc e606.pin-controller: IRQ index 0 not found Fix this by using the platform_irq_count() helper instead. Fixes:

Re: [PATCHv9 2/3] arm64: dts: qcom: msm8998: Add Coresight support

2019-10-01 Thread Sai Prakash Ranjan
On 2019-10-01 11:01, Jeffrey Hugo wrote: On Tue, Oct 1, 2019 at 11:52 AM Sai Prakash Ranjan wrote: Haan then likely it's the firmware issue. We should probably disable coresight in soc dtsi and enable only for MTP. For now you can add a status=disabled for all coresight nodes in msm8998.dtsi

[PATCH 3/5] leds: flash: Remove extern from the header file

2019-10-01 Thread Dan Murphy
extern is implied and is not needed in the header file. Remove the extern keyword and re-align the code. Signed-off-by: Dan Murphy --- include/linux/led-class-flash.h | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/include/linux/led-class-flash.h

[PATCH 2/5] leds: flash: Convert non extended registration to inline

2019-10-01 Thread Dan Murphy
Convert the #define non-extended registration API to an inline function. Signed-off-by: Dan Murphy --- include/linux/led-class-flash.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/linux/led-class-flash.h b/include/linux/led-class-flash.h index

[PATCH 4/5] leds: flash: Add devm_* functions to the flash class

2019-10-01 Thread Dan Murphy
Add the missing device managed API for registration and unregistration for the LED flash class. Signed-off-by: Dan Murphy --- drivers/leds/led-class-flash.c | 50 + include/linux/led-class-flash.h | 14 + 2 files changed, 64 insertions(+) diff --git

[PATCH 5/5] leds: lm3601x: Convert class registration to device managed

2019-10-01 Thread Dan Murphy
Convert LED flash class registration to device managed class registration API. Signed-off-by: Dan Murphy --- drivers/leds/leds-lm3601x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/leds/leds-lm3601x.c b/drivers/leds/leds-lm3601x.c index

[PATCH 1/5] leds: Kconfig: Be consistent with the usage of "LED"

2019-10-01 Thread Dan Murphy
Update the Kconfig to be consistent in the case of using "LED" in the Kconfig. LED is an acronym and should be capitalized. Signed-off-by: Dan Murphy --- drivers/leds/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig

Re: [PATCHv9 2/3] arm64: dts: qcom: msm8998: Add Coresight support

2019-10-01 Thread Jeffrey Hugo
On Tue, Oct 1, 2019 at 11:52 AM Sai Prakash Ranjan wrote: > > On 2019-10-01 10:14, Jeffrey Hugo wrote: > > On Tue, Oct 1, 2019 at 11:04 AM Sai Prakash Ranjan > > wrote: > >> > >> On 2019-10-01 09:13, Jeffrey Hugo wrote: > >> > Sai, > >> > > >> > This patch breaks boot on the 835 laptops.

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-10-01 Thread Nick Desaulniers
On Tue, Oct 1, 2019 at 10:55 AM Russell King - ARM Linux admin wrote: > > On Tue, Oct 01, 2019 at 10:44:43AM -0700, Nick Desaulniers wrote: > > I apologize; I don't mean to be difficult. I would just like to avoid > > surprises when code written with the assumption that it will be > > inlined is

Applied "spi: lpspi: fix memory leak in fsl_lpspi_probe" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: lpspi: fix memory leak in fsl_lpspi_probe has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "spi: gpio: prevent memory leak in spi_gpio_probe" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: gpio: prevent memory leak in spi_gpio_probe has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and

Applied "spi: spi-fsl-qspi: Introduce variable to fix different invalid master Id" to the spi tree

2019-10-01 Thread Mark Brown
The patch spi: spi-fsl-qspi: Introduce variable to fix different invalid master Id has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.5 All being well this means that it will be integrated into the linux-next tree (usually sometime

Re: [PATCH v4 03/11] mm/gup: Applies counting method to monitor gup_pgd_range

2019-10-01 Thread Leonardo Bras
On Mon, 2019-09-30 at 14:51 -0700, John Hubbard wrote: > On 9/27/19 4:40 PM, Leonardo Bras wrote: > > As decribed, gup_pgd_range is a lockless pagetable walk. So, in order to > > monitor against THP split/collapse with the couting method, it's necessary > > s/couting/counting/ > Thanks, fixed

Applied "regulator: lochnagar: Add on_off_delay for VDDCORE" to the regulator tree

2019-10-01 Thread Mark Brown
The patch regulator: lochnagar: Add on_off_delay for VDDCORE has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.4 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next

Applied "regulator: pfuze100-regulator: Variable "val" in pfuze100_regulator_probe() could be uninitialized" to the regulator tree

2019-10-01 Thread Mark Brown
The patch regulator: pfuze100-regulator: Variable "val" in pfuze100_regulator_probe() could be uninitialized has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.4 All being well this means that it will be integrated into

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-10-01 Thread Russell King - ARM Linux admin
On Tue, Oct 01, 2019 at 10:44:43AM -0700, Nick Desaulniers wrote: > I apologize; I don't mean to be difficult. I would just like to avoid > surprises when code written with the assumption that it will be > inlined is not. It sounds like we found one issue in arm32 and one in > arm64 related to

[PATCH] tas2770: fix platform_no_drv_owner.cocci warnings

2019-10-01 Thread kbuild test robot
From: kbuild test robot sound/soc/codecs/tas2770.c:796:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Fixes: 1a476abc723e ("tas2770: add tas2770 smart PA

Re: [PATCH] ASoC: atmel: fix atmel_ssc_set_audio link failure

2019-10-01 Thread Mark Brown
On Tue, Oct 01, 2019 at 04:20:55PM +0200, Arnd Bergmann wrote: > The ssc audio driver can call into both pdc and dma backends. With the > latest rework, the logic to do this in a safe way avoiding link errors > was removed, bringing back link errors that were fixed long ago in commit >

Re: [PATCH] mm/thp: make set_huge_zero_page() return void

2019-10-01 Thread Ralph Campbell
On 10/1/19 4:52 AM, Kirill A. Shutemov wrote: On Mon, Sep 30, 2019 at 12:55:28PM -0700, Ralph Campbell wrote: The return value from set_huge_zero_page() is never checked so simplify the code by making it return void. Signed-off-by: Ralph Campbell --- mm/huge_memory.c | 6 ++ 1 file

Re: [PATCHv9 2/3] arm64: dts: qcom: msm8998: Add Coresight support

2019-10-01 Thread Sai Prakash Ranjan
On 2019-10-01 10:14, Jeffrey Hugo wrote: On Tue, Oct 1, 2019 at 11:04 AM Sai Prakash Ranjan wrote: On 2019-10-01 09:13, Jeffrey Hugo wrote: > Sai, > > This patch breaks boot on the 835 laptops. However, I haven't seen > the same issue on the MTP. I wonder, is coresight expected to work >

[PATCH] char/random: Add a newline at the end of the file

2019-10-01 Thread Borislav Petkov
On Tue, Oct 01, 2019 at 10:14:40AM -0700, Linus Torvalds wrote: > The previous state of the file didn't have that 0xa at the end, so you get > that > > > -EXPORT_SYMBOL_GPL(add_bootloader_randomness); > \ No newline at end of file > +EXPORT_SYMBOL_GPL(add_bootloader_randomness); > >

Re: INFO: task hung in nbd_ioctl

2019-10-01 Thread Mike Christie
On 09/30/2019 05:39 PM, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:bb2aee77 Add linux-next specific files for 20190926 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=13385ca360 > kernel config:

Re: [PATCH bpf 0/2] selftests/bpf: test_progs: don't leak fd in bpf

2019-10-01 Thread Stanislav Fomichev
On 10/01, Brian Vazquez wrote: > This patch series fixes some fd leaks in tcp_rtt and > test_sockopt_inherit bpf prof_tests. Thanks! For the series: Reviewed-by: Stanislav Fomichev > Brian Vazquez (2): > selftests/bpf: test_progs: don't leak server_fd in tcp_rtt > selftests/bpf: test_progs:

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-10-01 Thread Valentin Schneider
On 19/09/2019 08:33, Vincent Guittot wrote: [...] > @@ -8283,69 +8363,133 @@ static inline void update_sd_lb_stats(struct lb_env > *env, struct sd_lb_stats *sd > */ > static inline void calculate_imbalance(struct lb_env *env, struct > sd_lb_stats *sds) > { > - unsigned long max_pull,

Re: [PATCH] scatterlist: Validate page before calling PageSlab()

2019-10-01 Thread Alan Mikhak
On Tue, Oct 1, 2019 at 10:44 AM Jason Gunthorpe wrote: > > On Tue, Oct 01, 2019 at 10:26:38AM -0700, Alan Mikhak wrote: > > > > > Cost of adding page structs to a large PCI I/O address range can be > > > > quite substantial. Allowing PCI I/O pages without page structs may be > > > > desirable.

Re: [PATCH v1 1/3] xen/balloon: Drop __balloon_append()

2019-10-01 Thread Boris Ostrovsky
On 10/1/19 5:01 AM, David Hildenbrand wrote: > Let's simply use balloon_append() directly. > > Cc: Boris Ostrovsky > Cc: Juergen Gross > Cc: Stefano Stabellini > Signed-off-by: David Hildenbrand For the series (and your earlier patch) Reviewed-by: Boris Ostrovsky

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-10-01 Thread Nick Desaulniers
On Tue, Oct 1, 2019 at 10:01 AM Will Deacon wrote: > > On Tue, Oct 01, 2019 at 09:32:25AM -0700, Nick Desaulniers wrote: > > On Tue, Oct 1, 2019 at 2:28 AM Will Deacon wrote: > > > On Mon, Sep 30, 2019 at 02:50:10PM -0700, Nick Desaulniers wrote: > > > > In this case, if there's a known codegen

Re: [PATCH] scatterlist: Validate page before calling PageSlab()

2019-10-01 Thread Jason Gunthorpe
On Tue, Oct 01, 2019 at 10:26:38AM -0700, Alan Mikhak wrote: > > > Cost of adding page structs to a large PCI I/O address range can be > > > quite substantial. Allowing PCI I/O pages without page structs may be > > > desirable. Perhaps it is worth considering this cost. > > > > This is generally

[PATCH] clk: Don't cache errors from clk_ops::get_phase()

2019-10-01 Thread Stephen Boyd
We don't check for errors from clk_ops::get_phase() before storing away the result into the clk_core::phase member. This can lead to some fairly confusing debugfs information if these ops do return an error. Let's skip the store when this op fails to fix this. While we're here, move the locking

[tip: x86/microcode] x86/microcode/intel: Issue the revision updated message only on the BSP

2019-10-01 Thread tip-bot2 for Borislav Petkov
The following commit has been merged into the x86/microcode branch of tip: Commit-ID: 811ae8ba6dca6b91a3ceccf9d40b98818cc4f400 Gitweb: https://git.kernel.org/tip/811ae8ba6dca6b91a3ceccf9d40b98818cc4f400 Author:Borislav Petkov AuthorDate:Sat, 24 Aug 2019 10:01:53 +02:00

[tip: x86/microcode] x86/microcode: Update late microcode in parallel

2019-10-01 Thread tip-bot2 for Ashok Raj
The following commit has been merged into the x86/microcode branch of tip: Commit-ID: 93946a33b5693a6bbcf917a170198ff4afaa7a31 Gitweb: https://git.kernel.org/tip/93946a33b5693a6bbcf917a170198ff4afaa7a31 Author:Ashok Raj AuthorDate:Thu, 22 Aug 2019 23:43:47 +03:00

Re: [PATCH v1] PM / Domains: Add tracepoints

2019-10-01 Thread Matthias Kaehlcke
On Tue, Oct 01, 2019 at 01:03:43PM -0400, Steven Rostedt wrote: > On Tue, 1 Oct 2019 09:35:42 -0700 > Matthias Kaehlcke wrote: > > > How about this instead: > > > > Add tracepoints for genpd_power_on, genpd_power_off and > > genpd_set_performance_state. The tracepoints can help with > >

Re: [PATCH] regulator: Document "regulator-boot-on" binding more thoroughly

2019-10-01 Thread Mark Brown
On Thu, Sep 26, 2019 at 12:41:18PM -0700, Douglas Anderson wrote: > -description: bootloader/firmware enabled regulator > +description: bootloader/firmware enabled regulator. > + It's expected that this regulator was left on by the bootloader. > + If the bootloader didn't leave

[PATCH 3/3] tools/memory-model/Documentation: Add plain accesses and data races to explanation.txt

2019-10-01 Thread Alan Stern
This patch updates the Linux Kernel Memory Model's explanation.txt file by adding a section devoted to the model's handling of plain accesses and data-race detection. Signed-off-by: Alan Stern --- tools/memory-model/Documentation/explanation.txt | 539 ++- 1 file changed,

[PATCH 2/3] tools/memory-model/Documentation: Put redefinition of rcu-fence into explanation.txt

2019-10-01 Thread Alan Stern
This patch updates the Linux Kernel Memory Model's explanation.txt file to incorporate the introduction of the rcu-order relation and the redefinition of rcu-fence made by commit 15aa25cbf0cc ("tools/memory-model: Change definition of rcu-fence"). Signed-off-by: Alan Stern ---

[PATCH 1/3] tools/memory-model/Documentation: Fix typos in explanation.txt

2019-10-01 Thread Alan Stern
This patch fixes a few minor typos and improves word usage in a few places in the Linux Kernel Memory Model's explanation.txt file. Signed-off-by: Alan Stern --- tools/memory-model/Documentation/explanation.txt | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) Index:

Re: [PATCH] xen/xenbus: fix self-deadlock after killing user process

2019-10-01 Thread Boris Ostrovsky
On 10/1/19 11:03 AM, Juergen Gross wrote: > In case a user process using xenbus has open transactions and is killed > e.g. via ctrl-C the following cleanup of the allocated resources might > result in a deadlock due to trying to end a transaction in the xenbus > worker thread: > > [ 2551.474706]

Re: [PATCH] ARM: xen: unexport HYPERVISOR_platform_op function

2019-10-01 Thread Stefano Stabellini
On Fri, 6 Sep 2019, Arnd Bergmann wrote: > HYPERVISOR_platform_op() is an inline function and should not > be exported. Since commit 15bfc2348d54 ("modpost: check for > static EXPORT_SYMBOL* functions"), this causes a warning: > > WARNING: "HYPERVISOR_platform_op" [vmlinux] is a static

[PATCH bpf 2/2] selftests/bpf: test_progs: don't leak server_fd in test_sockopt_inherit

2019-10-01 Thread Brian Vazquez
server_fd needs to be close if pthread can't be created. Fixes: e3e02e1d9c24 ("selftests/bpf: test_progs: convert test_sockopt_inherit") Cc: Stanislav Fomichev Signed-off-by: Brian Vazquez --- tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH bpf 1/2] selftests/bpf: test_progs: don't leak server_fd in tcp_rtt

2019-10-01 Thread Brian Vazquez
server_fd needs to be closed if pthread can't be created. Fixes: 8a03222f508b ("selftests/bpf: test_progs: fix client/server race in tcp_rtt") Cc: Stanislav Fomichev Signed-off-by: Brian Vazquez --- tools/testing/selftests/bpf/prog_tests/tcp_rtt.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH bpf 0/2] selftests/bpf: test_progs: don't leak fd in bpf

2019-10-01 Thread Brian Vazquez
This patch series fixes some fd leaks in tcp_rtt and test_sockopt_inherit bpf prof_tests. Brian Vazquez (2): selftests/bpf: test_progs: don't leak server_fd in tcp_rtt selftests/bpf: test_progs: don't leak server_fd in test_sockopt_inherit

Re: [PATCH v2] fs: affs: fix a memory leak in affs_remount

2019-10-01 Thread Navid Emamdoost
Hi Markus, thanks for your suggestions for improving the quality of the patch. At the moment I prefer first get a confirmation from contributors about the leak and then work on any possible improvements for the patch. Thanks, Navid. On Tue, Oct 1, 2019 at 3:31 AM Markus Elfring wrote: > > > The

Re: [PATCH v2] spi: gpio: prevent memory leak in spi_gpio_probe

2019-10-01 Thread Navid Emamdoost
Hi Markus, thanks for your suggestions for improving the quality of the patch. At the moment I prefer first get a confirmation from contributors about the leak and then work on any possible improvements for the patch. Thanks, Navid. On Tue, Oct 1, 2019 at 4:11 AM Markus Elfring wrote: > > > …

[PATCH] nvmem: imx: scu: fix dependency in Kconfig

2019-10-01 Thread Srinivas Kandagatla
Fix below error by adding HAVE_ARM_SMCCC dependency in Kconfig ERROR: "__arm_smccc_smc" [drivers/nvmem/nvmem-imx-ocotp-scu.ko] undefined! Reported-by: kbuild test robot Signed-off-by: Srinivas Kandagatla --- drivers/nvmem/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCHv9 2/3] arm64: dts: qcom: msm8998: Add Coresight support

2019-10-01 Thread Suzuki K Poulose
On 01/10/2019 18:14, Jeffrey Hugo wrote: On Tue, Oct 1, 2019 at 11:04 AM Sai Prakash Ranjan wrote: On 2019-10-01 09:13, Jeffrey Hugo wrote: Sai, This patch breaks boot on the 835 laptops. However, I haven't seen the same issue on the MTP. I wonder, is coresight expected to work with

Re: [PATCH 1/7] ASoC: amd: No need PCI-MSI interrupts

2019-10-01 Thread Mark Brown
On Tue, Oct 01, 2019 at 05:23:43PM +, Deucher, Alexander wrote: > > ACP-PCI controller driver does not depends msi interrupts. > > So removed msi related pci functions which have no use and does not impact > > on existing functionality. > In general, however, aren't MSIs preferred to legacy

[PATCH v3] mm: emit tracepoint when RSS changes

2019-10-01 Thread Joel Fernandes (Google)
Useful to track how RSS is changing per TGID to detect spikes in RSS and memory hogs. Several Android teams have been using this patch in various kernel trees for half a year now. Many reported to me it is really useful so I'm posting it upstream. Initial patch developed by Tim Murray. Changes I

Re: [PATCH net v2] net: ag71xx: fix mdio subnode support

2019-10-01 Thread David Miller
From: Andrew Lunn Date: Tue, 1 Oct 2019 18:43:40 +0200 > On Tue, Oct 01, 2019 at 09:03:20AM -0700, David Miller wrote: >> From: Oleksij Rempel >> Date: Tue, 1 Oct 2019 08:41:47 +0200 >> >> > @@ -571,7 +571,9 @@ static int ag71xx_mdio_probe(struct ag71xx *ag) >> >msleep(200); >> >

bad changes to object building recently

2019-10-01 Thread David Miller
I don't know what has caused this but I am hitting two big problems which are severely effecting my daily workflow: 1) Something is grinding like crazy when just building a single object like "make path/to/foo.o", it looks like make is churning on lots of work. This used to be

Re: [PATCH] scatterlist: Validate page before calling PageSlab()

2019-10-01 Thread Alan Mikhak
On Tue, Oct 1, 2019 at 10:12 AM Jason Gunthorpe wrote: > > On Tue, Oct 01, 2019 at 10:09:48AM -0700, Alan Mikhak wrote: > > On Tue, Oct 1, 2019 at 5:16 AM Jason Gunthorpe wrote: > > > > > > On Mon, Sep 30, 2019 at 04:22:35PM -0700, Alan Mikhak wrote: > > > > From: Alan Mikhak > > > > > > > >

Re: x86/random: Speculation to the rescue

2019-10-01 Thread Linus Torvalds
On Tue, Oct 1, 2019 at 9:15 AM Ahmed S. Darwish wrote: > > To test the quality of the new jitter code, I added a small patch on > top to disable all other sources of randomness except the new jitter > entropy code, [1] and made quick tests on the quality of getrandom(0). You also need to make

RE: [PATCH 1/7] ASoC: amd: No need PCI-MSI interrupts

2019-10-01 Thread Deucher, Alexander
> -Original Message- > From: Ravulapati Vishnu vardhan rao > > Sent: Monday, September 30, 2019 8:58 PM > Cc: Deucher, Alexander ; RAVULAPATI, > VISHNU VARDHAN RAO ; Liam > Girdwood ; Mark Brown ; > Jaroslav Kysela ; Takashi Iwai ; > Mukunda, Vijendar ; Maruthi Srinivas > Bayyavarapu ;

Re: x86/random: Speculation to the rescue

2019-10-01 Thread Ahmed S. Darwish
On Tue, Oct 01, 2019 at 09:37:39AM -0700, Kees Cook wrote: > On Tue, Oct 01, 2019 at 06:15:02PM +0200, Ahmed S. Darwish wrote: > > On Sat, Sep 28, 2019 at 04:53:52PM -0700, Linus Torvalds wrote: > > > Ahmed - would you be willing to test this on your problem case (with > > > the ext4 optimization

Re: x86/random: Speculation to the rescue

2019-10-01 Thread Linus Torvalds
On Tue, Oct 1, 2019 at 6:51 AM Borislav Petkov wrote: > > So when I add this by hand and do git diff, it adds a second hunk: You and me both. We both have editors that always add line-endings, and right now that file doesn't have a newline at the end of the file thanks to commit 428826f5358c

Re: [PATCH v3 1/5] arm64: vdso32: Introduce COMPAT_CC_IS_GCC

2019-10-01 Thread Will Deacon
On Tue, Oct 01, 2019 at 10:12:59AM -0700, Nick Desaulniers wrote: > On Tue, Oct 1, 2019 at 10:08 AM Will Deacon wrote: > > > > On Tue, Oct 01, 2019 at 09:59:43AM -0700, Nick Desaulniers wrote: > > > On Tue, Oct 1, 2019 at 9:47 AM Will Deacon wrote: > > > > > > > > On Tue, Oct 01, 2019 at

Re: [PATCHv9 2/3] arm64: dts: qcom: msm8998: Add Coresight support

2019-10-01 Thread Jeffrey Hugo
On Tue, Oct 1, 2019 at 11:04 AM Sai Prakash Ranjan wrote: > > On 2019-10-01 09:13, Jeffrey Hugo wrote: > > Sai, > > > > This patch breaks boot on the 835 laptops. However, I haven't seen > > the same issue on the MTP. I wonder, is coresight expected to work > > with production fused devices? I

Re: [PATCH v2 net 0/9] net: stmmac: Fixes for -net

2019-10-01 Thread David Miller
From: Jose Abreu Date: Mon, 30 Sep 2019 10:19:04 +0200 > Misc fixes for -net tree. More info in commit logs. > > v2 is just a rebase of v1 against -net and we added a new patch (09/09) to > fix RSS feature. Series applied, thanks.

Re: [PATCH v3 1/5] arm64: vdso32: Introduce COMPAT_CC_IS_GCC

2019-10-01 Thread Nick Desaulniers
On Tue, Oct 1, 2019 at 10:08 AM Will Deacon wrote: > > On Tue, Oct 01, 2019 at 09:59:43AM -0700, Nick Desaulniers wrote: > > On Tue, Oct 1, 2019 at 9:47 AM Will Deacon wrote: > > > > > > On Tue, Oct 01, 2019 at 04:30:56PM +0100, Catalin Marinas wrote: > > > > In the long run, I wouldn't mandate

Re: [PATCH v3 08/10] sched/fair: use utilization to select misfit task

2019-10-01 Thread Valentin Schneider
On 19/09/2019 08:33, Vincent Guittot wrote: > utilization is used to detect a misfit task but the load is then used to > select the task on the CPU which can lead to select a small task with > high weight instead of the task that triggered the misfit migration. > > Signed-off-by: Vincent Guittot

Re: [PATCH] Partially revert "compiler: enable CONFIG_OPTIMIZE_INLINING forcibly"

2019-10-01 Thread Will Deacon
On Tue, Oct 01, 2019 at 09:21:21AM -0700, Nick Desaulniers wrote: > > So you'd prefer I do something like the diff below? > > Yes, I find that diff preferable. Use __always_inline only when absolutely > necessary. Even then, it sounds like this is a workaround for one compiler, > so it should

Re: [PATCH] scatterlist: Validate page before calling PageSlab()

2019-10-01 Thread Jason Gunthorpe
On Tue, Oct 01, 2019 at 10:09:48AM -0700, Alan Mikhak wrote: > On Tue, Oct 1, 2019 at 5:16 AM Jason Gunthorpe wrote: > > > > On Mon, Sep 30, 2019 at 04:22:35PM -0700, Alan Mikhak wrote: > > > From: Alan Mikhak > > > > > > Modify sg_miter_stop() to validate the page pointer > > > before calling

Re: [PATCH v3 03/10] sched/fair: remove meaningless imbalance calculation

2019-10-01 Thread Valentin Schneider
On 19/09/2019 08:33, Vincent Guittot wrote: > clean up load_balance and remove meaningless calculation and fields before > adding new algorithm. > > Signed-off-by: Vincent Guittot We'll probably want to squash the removal of fix_small_imbalance() in the actual rework (patch 04) to not make this

Re: [PATCH v3 02/10] sched/fair: rename sum_nr_running to sum_h_nr_running

2019-10-01 Thread Valentin Schneider
On 19/09/2019 08:33, Vincent Guittot wrote: > Rename sum_nr_running to sum_h_nr_running because it effectively tracks > cfs->h_nr_running so we can use sum_nr_running to track rq->nr_running > when needed. > > There is no functional changes. > > Signed-off-by: Vincent Guittot Reviewed-by:

Re: [PATCH] scatterlist: Validate page before calling PageSlab()

2019-10-01 Thread Alan Mikhak
On Tue, Oct 1, 2019 at 5:16 AM Jason Gunthorpe wrote: > > On Mon, Sep 30, 2019 at 04:22:35PM -0700, Alan Mikhak wrote: > > From: Alan Mikhak > > > > Modify sg_miter_stop() to validate the page pointer > > before calling PageSlab(). This check prevents a crash > > that will occur if PageSlab()

Re: [PATCH 2/2] mtd: rawnand: use bounce buffer when vmalloced data buf detected

2019-10-01 Thread Kamal Dasu
I was testing with UBI/UBIFS where vmalloced data buffers can be passed to the nand_base and then o the controller driver. Probably applies to older kernel 4.1. Can the Patch1/2 be accepted or you want me to send it separately by removing the nand_base changes ?. Kamal Kamal On Mon, Sep 30,

Re: [PATCH v3 1/5] arm64: vdso32: Introduce COMPAT_CC_IS_GCC

2019-10-01 Thread Will Deacon
On Tue, Oct 01, 2019 at 09:59:43AM -0700, Nick Desaulniers wrote: > On Tue, Oct 1, 2019 at 9:47 AM Will Deacon wrote: > > > > On Tue, Oct 01, 2019 at 04:30:56PM +0100, Catalin Marinas wrote: > > > In the long run, I wouldn't mandate CROSS_COMPILE_COMPAT to always be > > > set for the compat vDSO

RE: [RFC PATCH 17/22] thunderbolt: Add initial support for USB4

2019-10-01 Thread Mario.Limonciello
> @@ -322,9 +398,21 @@ static int tb_switch_nvm_add(struct tb_switch *sw) > u32 val; > int ret; > > - if (!sw->dma_port) > + if (!nvm_readable(sw)) > return 0; > > + /* > + * The NVM format of non-Intel hardware is not known so > + * currently

[PATCH AUTOSEL 5.3 08/71] 9p: avoid attaching writeback_fid on mmap with type PRIVATE

2019-10-01 Thread Sasha Levin
From: Chengguang Xu [ Upstream commit c87a37ebd40b889178664c2c09cc187334146292 ] Currently on mmap cache policy, we always attach writeback_fid whether mmap type is SHARED or PRIVATE. However, in the use case of kata-container which combines 9p(Guest OS) with overlayfs(Host OS), this behavior

[PATCH AUTOSEL 5.3 07/71] 9p: Transport error uninitialized

2019-10-01 Thread Sasha Levin
From: Lu Shuaibing [ Upstream commit 0ce772fe79b68f83df40f07f28207b292785c677 ] The p9_tag_alloc() does not initialize the transport error t_err field. The struct p9_req_t *req is allocated and stored in a struct p9_client variable. The field t_err is never initialized before p9_conn_cancel()

Re: [PATCHv9 2/3] arm64: dts: qcom: msm8998: Add Coresight support

2019-10-01 Thread Sai Prakash Ranjan
On 2019-10-01 09:13, Jeffrey Hugo wrote: Sai, This patch breaks boot on the 835 laptops. However, I haven't seen the same issue on the MTP. I wonder, is coresight expected to work with production fused devices? I wonder if thats the difference between the laptop and MTP that is causing the

[PATCH AUTOSEL 5.3 02/71] ima: always return negative code for error

2019-10-01 Thread Sasha Levin
From: Sascha Hauer [ Upstream commit f5e1040196dbfe14c77ce3dfe3b7b08d2d961e88 ] integrity_kernel_read() returns the number of bytes read. If this is a short read then this positive value is returned from ima_calc_file_hash_atfm(). Currently this is only indirectly called from

Re: [PATCH 1/2] i2c: pxa: migrate to new i2c_slave APIs

2019-10-01 Thread Patrick Williams
Thanks for the review Andy. On Tue, Oct 01, 2019 at 07:29:13PM +0300, Andy Shevchenko wrote: > > > On Tue, Oct 01, 2019 at 10:59:59AM -0500, Patrick Williams wrote: > There are quite a few people in the Cc list. I'm not sure they all are > interested in this. I deliberately dropped few names,

[PATCH AUTOSEL 5.3 03/71] ima: fix freeing ongoing ahash_request

2019-10-01 Thread Sasha Levin
From: Sascha Hauer [ Upstream commit 4ece3125f21b1d42b84896c5646dbf0e878464e1 ] integrity_kernel_read() can fail in which case we forward to call ahash_request_free() on a currently running request. We have to wait for its completion before we can free the request. This was observed by

Re: [PATCH v2] ARM: add __always_inline to functions called from __get_user_check()

2019-10-01 Thread Nick Desaulniers
On Tue, Oct 1, 2019 at 1:37 AM Masahiro Yamada wrote: > > KernelCI reports that bcm2835_defconfig is no longer booting since > commit ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING > forcibly") (https://lkml.org/lkml/2019/9/26/825). > > I also received a regression report from Nicolas

[PATCH AUTOSEL 5.3 14/71] ceph: reconnect connection if session hang in opening state

2019-10-01 Thread Sasha Levin
From: Erqi Chen [ Upstream commit 71a228bc8d65900179e37ac309e678f8c523f133 ] If client mds session is evicted in CEPH_MDS_SESSION_OPENING state, mds won't send session msg to client, and delayed_work skip CEPH_MDS_SESSION_OPENING state session, the session hang forever. Allow

[PATCH AUTOSEL 5.3 13/71] ceph: fetch cap_gen under spinlock in ceph_add_cap

2019-10-01 Thread Sasha Levin
From: Jeff Layton [ Upstream commit 606d102327a45a49d293557527802ee7fbfd7af1 ] It's protected by the s_gen_ttl_lock, so we should fetch under it and ensure that we're using the same generation in both places. Signed-off-by: Jeff Layton Reviewed-by: "Yan, Zheng" Signed-off-by: Ilya Dryomov

[PATCH AUTOSEL 5.3 09/71] 9p/cache.c: Fix memory leak in v9fs_cache_session_get_cookie

2019-10-01 Thread Sasha Levin
From: Bharath Vedartham [ Upstream commit 962a991c5de18452d6c429d99f3039387cf5cbb0 ] v9fs_cache_session_get_cookie assigns a random cachetag to v9ses->cachetag, if the cachetag is not assigned previously. v9fs_random_cachetag allocates memory to v9ses->cachetag with kmalloc and uses scnprintf

Re: [PATCH] net: dsa: rtl8366rb: add missing of_node_put after calling of_get_child_by_name

2019-10-01 Thread David Miller
From: Wen Yang Date: Sun, 29 Sep 2019 15:00:47 +0800 > of_node_put needs to be called when the device node which is got > from of_get_child_by_name finished using. > irq_domain_add_linear() also calls of_node_get() to increase refcount, > so irq_domain will not be affected when it is released. >

[PATCH AUTOSEL 5.3 12/71] ceph: fix directories inode i_blkbits initialization

2019-10-01 Thread Sasha Levin
From: Luis Henriques [ Upstream commit 750670341a24cb714e624e0fd7da30900ad93752 ] When filling an inode with info from the MDS, i_blkbits is being initialized using fl_stripe_unit, which contains the stripe unit in bytes. Unfortunately, this doesn't make sense for directories as they have

Re: [PATCH v1] PM / Domains: Add tracepoints

2019-10-01 Thread Steven Rostedt
On Tue, 1 Oct 2019 09:35:42 -0700 Matthias Kaehlcke wrote: > How about this instead: > > Add tracepoints for genpd_power_on, genpd_power_off and > genpd_set_performance_state. The tracepoints can help with > understanding power domain behavior of a given device, which > may be

[PATCH AUTOSEL 5.3 17/71] watchdog: aspeed: Add support for AST2600

2019-10-01 Thread Sasha Levin
From: Ryan Chen [ Upstream commit b3528b4874480818e38e4da019d655413c233e6a ] The ast2600 can be supported by the same code as the ast2500. Signed-off-by: Ryan Chen Signed-off-by: Joel Stanley Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20190819051738.17370-3-j...@jms.id.au

[PATCH AUTOSEL 5.3 24/71] net/sched: act_sample: don't push mac header on ip6gre ingress

2019-10-01 Thread Sasha Levin
From: Davide Caratti [ Upstream commit 92974a1d006ad8b30d53047c70974c9e065eb7df ] current 'sample' action doesn't push the mac header of ingress packets if they are received by a layer 3 tunnel (like gre or sit); but it forgot to check for gre over ipv6, so the following script: # tc q a dev

[PATCH AUTOSEL 5.3 16/71] SUNRPC: RPC level errors should always set task->tk_rpc_status

2019-10-01 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 714fbc73888f59321854e7f6c2f224213923bcad ] Ensure that we set task->tk_rpc_status for all RPC level errors so that the caller can distinguish between those and server reply status errors. Signed-off-by: Trond Myklebust Signed-off-by: Anna Schumaker

[PATCH AUTOSEL 5.3 15/71] rbd: fix response length parameter for encoded strings

2019-10-01 Thread Sasha Levin
From: Dongsheng Yang [ Upstream commit 5435d2069503e2aa89c34a94154f4f2fa4a0c9c4 ] rbd_dev_image_id() allocates space for length but passes a smaller value to rbd_obj_method_sync(). rbd_dev_v2_object_prefix() doesn't allocate space for length. Fix both to be consistent. Signed-off-by:

[PATCH AUTOSEL 5.3 27/71] usbnet: ignore endpoints with invalid wMaxPacketSize

2019-10-01 Thread Sasha Levin
From: Bjørn Mork [ Upstream commit 8d3d7c2029c1b360f1a6b0a2fca470b57eb575c0 ] Endpoints with zero wMaxPacketSize are not usable for transferring data. Ignore such endpoints when looking for valid in, out and status pipes, to make the drivers more robust against invalid and meaningless

[PATCH AUTOSEL 5.3 21/71] perf probe: Fix to clear tev->nargs in clear_probe_trace_event()

2019-10-01 Thread Sasha Levin
From: Masami Hiramatsu [ Upstream commit 9e6124d9d635957b56717f85219a88701617253f ] Since add_probe_trace_event() can reuse tf->tevs[i] after calling clear_probe_trace_event(), this can make perf-probe crash if the 1st attempt of probe event finding fails to find an event argument, and the 2nd

[PATCH AUTOSEL 5.3 33/71] thermal: Fix use-after-free when unregistering thermal zone device

2019-10-01 Thread Sasha Levin
From: Ido Schimmel [ Upstream commit 1851799e1d2978f68eea5d9dff322e121dcf59c1 ] thermal_zone_device_unregister() cancels the delayed work that polls the thermal zone, but it does not wait for it to finish. This is racy with respect to the freeing of the thermal zone device, which can result in

[PATCH AUTOSEL 5.3 32/71] ntb: point to right memory window index

2019-10-01 Thread Sasha Levin
From: Sanjay R Mehta [ Upstream commit ae89339b08f3fe02457ec9edd512ddc3d246d0f8 ] second parameter of ntb_peer_mw_get_addr is pointing to wrong memory window index by passing "peer gidx" instead of "local gidx". For ex, "local gidx" value is '0' and "peer gidx" value is '1', then on peer side

[PATCH AUTOSEL 5.3 22/71] pNFS: Ensure we do clear the return-on-close layout stateid on fatal errors

2019-10-01 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 9c47b18cf722184f32148784189fca945a7d0561 ] IF the server rejected our layout return with a state error such as NFS4ERR_BAD_STATEID, or even a stale inode error, then we do want to clear out all the remaining layout segments and mark that stateid as

Re: [PATCH] net: mscc: ocelot: add missing of_node_put after calling of_get_child_by_name

2019-10-01 Thread David Miller
From: Wen Yang Date: Sun, 29 Sep 2019 14:54:24 +0800 > of_node_put needs to be called when the device node which is got > from of_get_child_by_name finished using. > In both cases of success and failure, we need to release 'ports', > so clean up the code using goto. > > fixes: a556c76adc05

[PATCH AUTOSEL 5.3 23/71] SUNRPC: Don't try to parse incomplete RPC messages

2019-10-01 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 9ba828861c56a21d211d5d10f5643774b1ea330d ] If the copy of the RPC reply into our buffers did not complete, and we could end up with a truncated message. In that case, just resend the call. Fixes: a0584ee9aed80 ("SUNRPC: Use struct xdr_stream when

[PATCH AUTOSEL 5.3 31/71] x86/purgatory: Disable the stackleak GCC plugin for the purgatory

2019-10-01 Thread Sasha Levin
From: Arvind Sankar [ Upstream commit ca14c996afe7228ff9b480cf225211cc17212688 ] Since commit: b059f801a937 ("x86/purgatory: Use CFLAGS_REMOVE rather than reset KBUILD_CFLAGS") kexec breaks if GCC_PLUGIN_STACKLEAK=y is enabled, as the purgatory contains undefined references to

[PATCH AUTOSEL 5.3 26/71] cdc_ncm: fix divide-by-zero caused by invalid wMaxPacketSize

2019-10-01 Thread Sasha Levin
From: Bjørn Mork [ Upstream commit 3fe4b3351301660653a2bc73f2226da0ebd2b95e ] Endpoints with zero wMaxPacketSize are not usable for transferring data. Ignore such endpoints when looking for valid in, out and status pipes, to make the driver more robust against invalid and meaningless

[PATCH AUTOSEL 5.3 30/71] selftests/seccomp: fix build on older kernels

2019-10-01 Thread Sasha Levin
From: Tycho Andersen [ Upstream commit 88282297fff00796e81f5e67734a6afdfb31fbc4 ] The seccomp selftest goes to some length to build against older kernel headers, viz. all the #ifdefs at the beginning of the file. Commit 201766a20e30 ("ptrace: add PTRACE_GET_SYSCALL_INFO request") introduces

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-10-01 Thread Will Deacon
On Tue, Oct 01, 2019 at 09:32:25AM -0700, Nick Desaulniers wrote: > On Tue, Oct 1, 2019 at 2:28 AM Will Deacon wrote: > > On Mon, Sep 30, 2019 at 02:50:10PM -0700, Nick Desaulniers wrote: > > > In this case, if there's a known codegen bug in a particular compiler > > > or certain versions of it,

[PATCH AUTOSEL 5.3 45/71] sched/membarrier: Call sync_core only before usermode for same mm

2019-10-01 Thread Sasha Levin
From: Mathieu Desnoyers [ Upstream commit 2840cf02fae627860156737e83326df354ee4ec6 ] When the prev and next task's mm change, switch_mm() provides the core serializing guarantees before returning to usermode. The only case where an explicit core serialization is needed is when the scheduler

[PATCH AUTOSEL 5.3 38/71] net/mlx5e: Fix traffic duplication in ethtool steering

2019-10-01 Thread Sasha Levin
From: Saeed Mahameed [ Upstream commit d22fcc806b84b9818de08b32e494f3c05dd236c7 ] Before this patch, when adding multiple ethtool steering rules with identical classification, the driver used to append the new destination to the already existing hw rule, which caused the hw to forward the

[PATCH 2/2] i2c: slave-eeprom: support additional models

2019-10-01 Thread Patrick Williams
Add support for emulating the following EEPROMs: * 24c01 - 1024 bit * 24c128 - 128k bit * 24c256 - 256k bit * 24c512 - 512k bit The flag bits in the device id were shifted up 1 bit to make room for saving the 24c512's size. 24c512 uses the full 16-bit address space of a 2-byte

[PATCH AUTOSEL 5.3 42/71] arcnet: provide a buffer big enough to actually receive packets

2019-10-01 Thread Sasha Levin
From: Uwe Kleine-König [ Upstream commit 02a07046834e64970f3bcd87a422ac2b0adb80de ] struct archdr is only big enough to hold the header of various types of arcnet packets. So to provide enough space to hold the data read from hardware provide a buffer large enough to hold a packet with maximal

<    1   2   3   4   5   6   7   8   9   10   >