[PATCH net 1/4] net: dp83869: Fix OF_MDIO config check

2020-06-05 Thread Dan Murphy
When CONFIG_OF_MDIO is set to be a module the code block is not compiled. Use the IS_ENABLED macro that checks for both built in as well as module. Fixes: 01db923e83779 ("net: phy: dp83869: Add TI dp83869 phy") Signed-off-by: Dan Murphy --- drivers/net/phy/dp83869.c | 2 +- 1 file changed, 1

[PATCH net 0/4] Fixes for OF_MDIO flag

2020-06-05 Thread Dan Murphy
Hello There are some residual drivers that check the CONFIG_OF_MDIO flag using the if defs. Using this check does not work when the OF_MDIO is configured as a module. Using the IS_ENABLED macro checks if the flag is declared as built-in or as a module. Dan Dan Murphy (4): net: dp83869: Fix

[PATCH net 4/4] net: mscc: Fix OF_MDIO config check

2020-06-05 Thread Dan Murphy
When CONFIG_OF_MDIO is set to be a module the code block is not compiled. Use the IS_ENABLED macro that checks for both built in as well as module. Fixes: 4f58e6dceb0e4 ("net: phy: Cleanup the Edge-Rate feature in Microsemi PHYs.") Signed-off-by: Dan Murphy --- drivers/net/phy/mscc/mscc.h

[PATCH net 2/4] net: dp83867: Fix OF_MDIO config check

2020-06-05 Thread Dan Murphy
When CONFIG_OF_MDIO is set to be a module the code block is not compiled. Use the IS_ENABLED macro that checks for both built in as well as module. Fixes: 2a10154abcb75 ("net: phy: dp83867: Add TI dp83867 phy") Signed-off-by: Dan Murphy --- drivers/net/phy/dp83867.c | 2 +- 1 file changed, 1

Re: [PATCH 1/3] dma-direct: provide the ability to reserve per-numa CMA

2020-06-05 Thread kernel test robot
Hi Barry, I love your patch! Perhaps something to improve: [auto build test WARNING on arm64/for-next/core] [also build test WARNING on linus/master v5.7] [cannot apply to next-20200605] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we

Re: [PATCH v5 13/13] perf record: introduce --ctl-fd[-ack] options

2020-06-05 Thread Jiri Olsa
On Fri, Jun 05, 2020 at 04:15:52PM +0300, Alexey Budankov wrote: > > On 05.06.2020 13:51, Jiri Olsa wrote: > > On Tue, Jun 02, 2020 at 04:43:58PM +0300, Adrian Hunter wrote: > >> On 2/06/20 12:12 pm, Alexey Budankov wrote: > >>> > >>> On 02.06.2020 11:32, Alexey Budankov wrote: > > On

Re: general protection fault in start_creating

2020-06-05 Thread Paolo Bonzini
On 05/06/20 15:38, Vitaly Kuznetsov wrote: > > I think what happens here is one thread does kvm_vm_ioctl_create_vcpu() > and another tries to delete the VM. The problem was probably present > even before the commit as both kvm_create_vcpu_debugfs() and > kvm_destroy_vm_debugfs() happen outside of

Good day,

2020-06-05 Thread Mr.Ahmed Muzashah
Good Day, Please accept my apologies for writing you a surprise letter.I am Mr. Ahmed Muzashah, account Manager with an investment bank here in Burkina Faso.I have a very important business I want to discuss with you.There is a draft account opened in my firm by a long-time client of our bank.I

Re: [PATCH v4 04/11] watchdog: add support for sl28cpld watchdog

2020-06-05 Thread Guenter Roeck
On 6/5/20 3:50 AM, Andy Shevchenko wrote: > On Fri, Jun 5, 2020 at 1:24 PM Michael Walle wrote: >> Am 2020-06-05 10:14, schrieb Andy Shevchenko: >>> On Fri, Jun 5, 2020 at 12:14 AM Michael Walle wrote: > > ... > +static bool nowayout = WATCHDOG_NOWAYOUT; +module_param(nowayout, bool,

Re: [GIT PULL] afs: Improvements for v5.8

2020-06-05 Thread Al Viro
On Thu, Jun 04, 2020 at 05:58:19PM +0100, David Howells wrote: > Hi Linus, > > Is it too late to put in a pull request for AFS changes? Apologies - I was > holding off and hoping that I could get Al to review the changes I made to > the core VFS change commit (first in the series) in response to

Re: [PATCH v5 0/8] drm: rcar-du: Add Color Management Module (CMM)

2020-06-05 Thread Jacopo Mondi
Hi Eugeniu On Fri, Jun 05, 2020 at 03:41:24PM +0200, Eugeniu Rosca wrote: > Hi Jacopo, > > On Fri, Jun 05, 2020 at 03:29:00PM +0200, Jacopo Mondi wrote: > > On Wed, May 27, 2020 at 09:15:55AM +0200, Eugeniu Rosca wrote: > > > Could you kindly share the cross compilation steps for your kmsxx fork?

Re: [PATCH v2] spi: bcm2835: Enable shared interrupt support

2020-06-05 Thread Robin Murphy
On 2020-06-05 14:20, Mark Brown wrote: On Fri, Jun 05, 2020 at 12:34:36PM +0100, Robin Murphy wrote: On 2020-06-04 22:28, Florian Fainelli wrote: For the BCM2835 case which is deemed performance critical, we would like to continue using an interrupt handler which does not have the extra

Re: [PATCH v5 0/8] drm: rcar-du: Add Color Management Module (CMM)

2020-06-05 Thread Eugeniu Rosca
Hi Jacopo, On Fri, Jun 05, 2020 at 03:29:00PM +0200, Jacopo Mondi wrote: > On Wed, May 27, 2020 at 09:15:55AM +0200, Eugeniu Rosca wrote: > > Could you kindly share the cross compilation steps for your kmsxx fork? > > I usually build it on the target :) Interesting approach. With ARM getting

Re: general protection fault in start_creating

2020-06-05 Thread Vitaly Kuznetsov
syzbot writes: > syzbot has found a reproducer for the following crash on: > > HEAD commit:cb8e59cc Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=170f49de10 > kernel config:

Re: [PATCH] regulator: do not balance 'boot-on' coupled regulators without constraints

2020-06-05 Thread Marek Szyprowski
Hi Mark, On 05.06.2020 12:20, Mark Brown wrote: > On Fri, Jun 05, 2020 at 08:37:24AM +0200, Marek Szyprowski wrote: > >> Balancing of the 'boot-on' coupled regulators must wait until the clients >> set their constraints, otherwise the balancing code might change the > No, this is not what boot-on

Re: [RFC][PATCH 7/7] sched: Replace rq::wake_list

2020-06-05 Thread Guenter Roeck
On 6/5/20 1:10 AM, Peter Zijlstra wrote: > On Thu, Jun 04, 2020 at 07:18:37AM -0700, Guenter Roeck wrote: >> On Tue, May 26, 2020 at 06:11:04PM +0200, Peter Zijlstra wrote: > >>> + BUILD_BUG_ON(offsetof(struct task_struct, wake_entry_type) - >>> offsetof(struct task_struct, wake_entry) != >>>

[PATCH v9 11/14] dmaengine: imx-sdma: remove ERR009165 on i.mx6ul

2020-06-05 Thread Robin Gong
ECSPI issue fixed from i.mx6ul at hardware level, no need ERR009165 anymore on those chips such as i.mx8mq. Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git

[PATCH v9 13/14] dmaengine: imx-sdma: fix ecspi1 rx dma not work on i.mx8mm

2020-06-05 Thread Robin Gong
Because the number of ecspi1 rx event on i.mx8mm is 0, the condition check ignore such special case without dma channel enabled, which caused ecspi1 rx works failed. Actually, no need to check event_id0/event_id1 and replace checking 'event_id1' with 'DMA_DEV_TO_DEV', so that configure event_id1

[PATCH v9 12/14] dma: imx-sdma: add i.mx6ul compatible name

2020-06-05 Thread Robin Gong
Add i.mx6ul compatible name in binding doc. Signed-off-by: Robin Gong Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/dma/fsl-imx-sdma.txt

[PATCH v9 14/14] dmaengine: imx-sdma: add uart rom script

2020-06-05 Thread Robin Gong
For the compatibility of NXP internal legacy kernel before 4.19 which is based on uart ram script and upstreaming kernel based on uart rom script, add both uart ram/rom script in latest sdma firmware. By default uart rom script used. Besides, add two multi-fifo scripts for SAI/PDM on i.mx8m/8mm

[PATCH v9 08/14] spi: imx: fix ERR009165

2020-06-05 Thread Robin Gong
Change to XCH mode even in dma mode, please refer to the below errata: https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf Signed-off-by: Robin Gong Acked-by: Mark Brown --- drivers/spi/spi-imx.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/spi/spi-imx.c

[PATCH v9 09/14] spi: imx: remove ERR009165 workaround on i.mx6ul

2020-06-05 Thread Robin Gong
ERR009165 fixed on i.mx6ul/6ull/6sll. All other i.mx6/7 and i.mx8m/8mm still need this errata. Please refer to nxp official errata document from https://www.nxp.com/ . For removing workaround on those chips. Add new i.mx6ul type. Signed-off-by: Robin Gong Acked-by: Mark Brown ---

[PATCH v9 10/14] spi: imx: add new i.mx6ul compatible name in binding doc

2020-06-05 Thread Robin Gong
ERR009165 fixed from i.mx6ul, add its compatible name in binding doc. Signed-off-by: Robin Gong Acked-by: Mark Brown Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/spi/fsl-imx-cspi.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH v9 07/14] dmaengine: imx-sdma: add mcu_2_ecspi script

2020-06-05 Thread Robin Gong
Add mcu_2_ecspi script to fix ecspi errata ERR009165. Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 4440ddb..db4132f 100644 --- a/drivers/dma/imx-sdma.c +++

[PATCH v9 06/14] spi: imx: add dma_sync_sg_for_device after fallback from dma

2020-06-05 Thread Robin Gong
In case dma transfer failed and fallback to pio, tx_buf/rx_buf need to be taken care cache since they have already been maintained by spi.c Fixes: bcd8e7761ec9("spi: imx: fallback to PIO if dma setup failure") Signed-off-by: Robin Gong Reported-by: Matthias Schiffer Link:

[PATCH v9 05/14] spi: imx: fallback to PIO if dma setup failure

2020-06-05 Thread Robin Gong
Fallback to PIO in case dma setup failed. For example, sdma firmware not updated but ERR009165 workaroud added in kernel. Signed-off-by: Robin Gong Acked-by: Sascha Hauer --- drivers/spi/spi-imx.c | 31 +++ 1 file changed, 27 insertions(+), 4 deletions(-) diff

[PATCH v9 02/14] Revert "ARM: dts: imx6: Use correct SDMA script for SPI cores"

2020-06-05 Thread Robin Gong
There are two ways for SDMA accessing SPBA devices: one is SDMA->AIPS ->SPBA(masterA port), another is SDMA->SPBA(masterC port). Please refer to the 'Figure 58-1. i.MX 6Dual/6Quad SPBA connectivity' of i.mx6DQ Reference Manual. SDMA provide the corresponding app_2_mcu/mcu_2_app and

Re: [PATCH v2] ACPI: Drop rcu usage for MMIO mappings

2020-06-05 Thread Rafael J. Wysocki
On Fri, May 8, 2020 at 1:55 AM Dan Williams wrote: > > Recently a performance problem was reported for a process invoking a > non-trival ASL program. The method call in this case ends up > repetitively triggering a call path like: > > acpi_ex_store > acpi_ex_store_object_to_node >

[PATCH v9 00/14] add ecspi ERR009165 for i.mx6/7 soc family

2020-06-05 Thread Robin Gong
There is ecspi ERR009165 on i.mx6/7 soc family, which cause FIFO transfer to be send twice in DMA mode. Please get more information from: https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf. The workaround is adding new sdma ram script which works in XCH mode as PIO inside sdma instead of SMC mode,

[PATCH v9 03/14] Revert "dmaengine: imx-sdma: refine to load context only once"

2020-06-05 Thread Robin Gong
This reverts commit ad0d92d7ba6aecbe2705907c38ff8d8be4da1e9c, because in spi-imx case, burst length may be changed dynamically. Signed-off-by: Robin Gong Acked-by: Sascha Hauer --- drivers/dma/imx-sdma.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/dma/imx-sdma.c

[PATCH v9 04/14] dmaengine: imx-sdma: remove duplicated sdma_load_context

2020-06-05 Thread Robin Gong
Since sdma_transfer_init() will do sdma_load_context before any sdma transfer, no need once more in sdma_config_channel(). Signed-off-by: Robin Gong Acked-by: Vinod Koul --- drivers/dma/imx-sdma.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/dma/imx-sdma.c

[PATCH v9 01/14] Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core"

2020-06-05 Thread Robin Gong
There are two ways for SDMA accessing SPBA devices: one is SDMA->AIPS ->SPBA(masterA port), another is SDMA->SPBA(masterC port). Please refer to the 'Figure 58-1. i.MX 6Dual/6Quad SPBA connectivity' of i.mx6DQ Reference Manual. SDMA provide the corresponding app_2_mcu/mcu_2_app and

[PATCH] dma-fence: basic lockdep annotations

2020-06-05 Thread Daniel Vetter
Design is similar to the lockdep annotations for workers, but with some twists: - We use a read-lock for the execution/worker/completion side, so that this explicit annotation can be more liberally sprinkled around. With read locks lockdep isn't going to complain if the read-side isn't

Re: [PATCH 1/2] sched/uclamp: Add a new sysctl to control RT default boost value

2020-06-05 Thread Patrick Bellasi
On Fri, Jun 05, 2020 at 13:32:04 +0200, Qais Yousef wrote... > On 06/05/20 09:55, Patrick Bellasi wrote: >> On Wed, Jun 03, 2020 at 18:52:00 +0200, Qais Yousef >> wrote... [...] >> > diff --git a/kernel/sched/core.c b/kernel/sched/core.c >> > index 0464569f26a7..9f48090eb926 100644 >> >

Re: [PATCH RESEND] lib: fix bitmap_parse() on 64-bit big endian archs

2020-06-05 Thread Andy Shevchenko
On Tue, Jun 02, 2020 at 12:24:31PM +0200, Alexander Gordeev wrote: > On Mon, May 18, 2020 at 01:50:59PM +0200, Alexander Gordeev wrote: > > On Mon, May 18, 2020 at 02:33:43PM +0300, Andy Shevchenko wrote: > > > On Mon, May 18, 2020 at 1:40 PM Alexander Gordeev > > > wrote: > > > > > > > > Commit

Re: [PATCH v5 0/8] drm: rcar-du: Add Color Management Module (CMM)

2020-06-05 Thread Jacopo Mondi
Hello Eugeniu, sorry for the late reply On Wed, May 27, 2020 at 09:15:55AM +0200, Eugeniu Rosca wrote: > Hi Jacopo, > > On Tue, Oct 15, 2019 at 12:46:13PM +0200, Jacopo Mondi wrote: > 8<--- > > > * Testing > > I have tested by injecting a color inversion LUT table and > >

Re: [PATCH -tip v3 1/2] kcov: Make runtime functions noinstr-compatible

2020-06-05 Thread Andrey Konovalov
On Fri, Jun 5, 2020 at 2:04 PM Peter Zijlstra wrote: > > On Fri, Jun 05, 2020 at 12:57:15PM +0200, Dmitry Vyukov wrote: > > On Fri, Jun 5, 2020 at 10:28 AM Marco Elver wrote: > > > > > > While we lack a compiler attribute to add to noinstr that would disable > > > KCOV, make the KCOV runtime

Re: kprobes string reading broken on s390

2020-06-05 Thread Christoph Hellwig
Yes, this looks correct. You probably want to write a small changelog and add a Fixes tag, though. On Fri, Jun 05, 2020 at 01:05:34PM +0200, Sven Schnelle wrote: > Hi Christoph, > > with the latest linux-next i noticed that some tests in the > ftrace test suites are failing on s390, namely: >

Re: [PATCH v4 11/11] module: Make module_enable_ro() static again

2020-06-05 Thread Guenter Roeck
On Wed, Apr 29, 2020 at 10:24:53AM -0500, Josh Poimboeuf wrote: > Now that module_enable_ro() has no more external users, make it static > again. > > Suggested-by: Jessica Yu > Signed-off-by: Josh Poimboeuf > Acked-by: Miroslav Benes Apparently this patch made it into the upstream kernel on

Re: block: Fix use-after-free in blkdev_get()

2020-06-05 Thread Markus Elfring
> Maintainers generally do change commit messages to improve them, > if needed. You have got a documented choice here. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=435faf5c218a47fd6258187f62d9bb1009717896#n468 Regards,

[RFC PATCH 4/4] kprobes: Allow the kprobes blacklist to be compiled independently

2020-06-05 Thread Daniel Thompson
IMPORTANT: As menitoned in the covering letter, this series in an RFC and this patch, in particular, is acknowledged as needing more work. In particular I haven't trimmed uneccessary #includes after splitting out the code and may also have missed some places where an an architecture

[RFC PATCH 1/4] kgdb: Honour the kprobe blacklist when setting breakpoints

2020-06-05 Thread Daniel Thompson
Currently kgdb has absolutely no safety rails in place to discourage or prevent a user from placing a breakpoint in dangerous places such as the debugger's own trap entry/exit and other places where it is not safe to take synchronous traps. Modify the default implementation of

[RFC PATCH 2/4] kgdb: Use the kprobe blacklist to limit single stepping

2020-06-05 Thread Daniel Thompson
If we are running in a part of the kernel that dislikes breakpoint debugging then it is very unlikely to be safe to single step. Add some safety rails to prevent stepping through anything on the kprobe blacklist. As part of this kdb_ss() will no longer set the DOING_SS flags when it requests a

[RFC PATCH 3/4] kgdb: Add NOKPROBE labels on the trap handler functions

2020-06-05 Thread Daniel Thompson
Currently kgdb honours the kprobe blacklist but doesn't place its own trap handling code on the list. Add macros to discourage attempting to use kgdb to debug itself. These changes do not make it impossible to provoke recursive trapping since they do not cover all the calls that can be made on

[RFC PATCH 0/4] kgdb: Honour the kprobe blacklist when setting breakpoints

2020-06-05 Thread Daniel Thompson
kgdb has traditionally adopted a no safety rails approach to breakpoint placement. If the debugger is commanded to place a breakpoint at an address then it will do so even if that breakpoint results in kgdb becoming inoperable. A stop-the-world debugger with memory peek/poke does intrinsically

Re: [PATCH] dt-bindings: irqchip: renesas-rza1-irqc: Convert to json-schema

2020-06-05 Thread Niklas Söderlund
Hi Geert, Thanks for your work. On 2020-05-28 15:28:53 +0200, Geert Uytterhoeven wrote: > Convert the Renesas RZ/A1 Interrupt Controller Device Tree binding > documentation to json-schema. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Niklas Söderlund > --- > Validation depends on

Re: [PATCH v2] spi: bcm2835: Enable shared interrupt support

2020-06-05 Thread Mark Brown
On Fri, Jun 05, 2020 at 12:34:36PM +0100, Robin Murphy wrote: > On 2020-06-04 22:28, Florian Fainelli wrote: > > For the BCM2835 case which is deemed performance critical, we would like > > to continue using an interrupt handler which does not have the extra > > comparison on BCM2835_SPI_CS_INTR.

Re: stress-ng --hrtimers hangs system

2020-06-05 Thread Vladimir Oltean
Hi Kurt, On Fri, 5 Jun 2020 at 15:57, Kurt Kanzenbach wrote: > > Hi Vladimir, > > On Fri Jun 05 2020, Vladimir Oltean wrote: > > Hi, > > > > I was testing stress-ng on an ARM64 box and I found that it can be killed > > instantaneously with a --hrtimers 1 test: > >

Re: [net] a6211caa63: dmesg.UBSAN:signed-integer-overflow_in_arch/x86/include/asm/atomic.h

2020-06-05 Thread Eric Dumazet
On Fri, Jun 5, 2020 at 1:10 AM kernel test robot wrote: > > Greeting, > > FYI, we noticed the following commit (built with gcc-4.9): > > commit: a6211caa634da39d861a47437ffcda8b38ef421b ("net: revert "net: get rid > of an signed integer overflow in ip_idents_reserve()"") >

Re: [PATCH] mfd: mfd-core: Don't overwrite the dma_mask of the child device

2020-06-05 Thread Andy Shevchenko
On Thu, Jun 04, 2020 at 11:30:37PM +0200, Michael Walle wrote: > Commit cdfee5623290 ("driver core: initialize a default DMA mask for > platform device") initialize the DMA of a platform device. But if the > parent doesn't have a dma_mask set, for example if it's an I2C device, > the dma_mask of

Re: [PATCH v4 06/11] gpio: add support for the sl28cpld GPIO controller

2020-06-05 Thread Andy Shevchenko
On Fri, Jun 05, 2020 at 02:42:53PM +0200, Michael Walle wrote: > Am 2020-06-05 14:00, schrieb Andy Shevchenko: > > On Fri, Jun 5, 2020 at 12:14 AM Michael Walle wrote: > > > + return devm_regmap_add_irq_chip_np(dev, dev_of_node(dev), > > > regmap, > > > > It seems regmap needs to be

Re: [PATCH v5 13/13] perf record: introduce --ctl-fd[-ack] options

2020-06-05 Thread Alexey Budankov
On 05.06.2020 13:51, Jiri Olsa wrote: > On Tue, Jun 02, 2020 at 04:43:58PM +0300, Adrian Hunter wrote: >> On 2/06/20 12:12 pm, Alexey Budankov wrote: >>> >>> On 02.06.2020 11:32, Alexey Budankov wrote: On 02.06.2020 2:37, Andi Kleen wrote: >>> or a pathname, or including also the

Re: BUG: kernel NULL pointer dereference from check_preempt_wakeup()

2020-06-05 Thread Peter Zijlstra
On Thu, Jun 04, 2020 at 03:54:45PM -0700, Paul E. McKenney wrote: > BUG: kernel NULL pointer dereference, address: 0150 > #PF: supervisor read access in kernel mode > #PF: error_code(0x) - not-present page > PGD 0 P4D 0 > Oops: [#1] PREEMPT SMP PTI > CPU: 9 PID: 196 Comm:

Re: slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-05 Thread Rafael J. Wysocki
On Fri, Jun 5, 2020 at 2:48 PM Vegard Nossum wrote: > > On 2020-06-05 11:36, Vegard Nossum wrote: > > > > On 2020-06-05 11:11, Vlastimil Babka wrote: > >> On 6/4/20 8:46 PM, Vlastimil Babka wrote: > >>> On 6/4/20 7:57 PM, Kees Cook wrote: > On Thu, Jun 04, 2020 at 07:20:18PM +0200, Vegard

Re: block: Fix use-after-free in blkdev_get()

2020-06-05 Thread Markus Elfring
> Your feedback is unhelpful Do you find proposed spelling corrections useful? > and you show no signs of changing it in response to the people > who are telling you that it's unhelpful. Other adjustments can occasionally be more challenging besides the usual communication challenges.

Re: [PATCH v3 20/25] clk: bcm: rpi: Add an enum for the firmware clocks

2020-06-05 Thread Nicolas Saenz Julienne
Hi Maxime, On Fri, 2020-06-05 at 14:04 +0200, Nicolas Saenz Julienne wrote: > On Wed, 2020-05-27 at 17:45 +0200, Maxime Ripard wrote: > > While the firmware allows us to discover the available clocks, we need to > > discriminate those clocks to only register the ones meaningful to Linux. > > The

arch/m68k/include/asm/mcfmmu.h:102:20: sparse: void static inline mmu_write( ... )

2020-06-05 Thread kernel test robot
-randconfig-s031-20200605 (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.0 reproduce: # apt-get install sparse # sparse version: v0.6.1-246-g41f651b4-dirty git checkout 6863f5643dd717376c2fdc85a47a00f9d738a834 # save the attached .config to linux build tree

Re: [PATCH v2 1/4] selftests/livepatch: simplify test-klp-callbacks busy target tests

2020-06-05 Thread Miroslav Benes
On Wed, 3 Jun 2020, Yannick Cote wrote: > From: Joe Lawrence > > The test-klp-callbacks script includes a few tests which rely on kernel > task timings that may not always execute as expected under system load. > These may generate out of sequence kernel log messages that result in > test

[PATCH v4 2/3] media: stm32-dcmi: Set minimum cpufreq requirement

2020-06-05 Thread Benjamin Gaignard
Before start streaming set cpufreq minimum frequency requirement. The cpufreq governor will adapt the frequencies and we will have no latency for handling interrupts. The frequency requirement is retrieved from the device-tree node. Signed-off-by: Benjamin Gaignard --- version 4: - simplify irq

[PATCH v4 3/3] ARM: dts: stm32: Set DCMI frequency requirement for stm32mp15x

2020-06-05 Thread Benjamin Gaignard
Make sure that CPUs will at least run at 650Mhz when streaming sensor frames. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32mp151.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi index

[PATCH v4 1/3] dt-bindings: media: stm32-dcmi: Add DCMI min frequency property

2020-06-05 Thread Benjamin Gaignard
Document st,stm32-dcmi-min-frequency property which is used to request CPUs minimum frequency when streaming frames. Signed-off-by: Benjamin Gaignard --- Documentation/devicetree/bindings/media/st,stm32-dcmi.yaml | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v4 0/3] DCMI set minimum cpufreq requirement

2020-06-05 Thread Benjamin Gaignard
This series allow to STM32 camera interface (DCMI) to require a minimum frequency to the CPUs before start streaming frames from the sensor. The minimum frequency requirement is provided in the devide-tree node. Setting a minimum frequency for the CPUs is needed to ensure a quick handling of the

Re: block: Fix use-after-free in blkdev_get()

2020-06-05 Thread Jens Axboe
On 6/5/20 7:01 AM, Markus Elfring wrote: >>> The details can vary also for my suggestions. >>> Would you point any more disagreements out on concrete items? >> >> That's exactly the problem with many of your comments. >> They're vague to the point of unintelligibility. > > Was is so vague about

Re: block: Fix use-after-free in blkdev_get()

2020-06-05 Thread Markus Elfring
>> The details can vary also for my suggestions. >> Would you point any more disagreements out on concrete items? > > That's exactly the problem with many of your comments. > They're vague to the point of unintelligibility. Was is so vague about possibilities which I point out for patch reviews

Re: block: Fix use-after-free in blkdev_get()

2020-06-05 Thread Markus Elfring
>> The details can vary also for my suggestions. >> Would you point any more disagreements out on concrete items? > > That's exactly the problem with many of your comments. > They're vague to the point of unintelligibility. Was is so vague about possibilities which I point out for patch reviews

[PATCH net] net: ethernet: mvneta: fix MVNETA_SKB_HEADROOM alignment

2020-06-05 Thread Alexander Lobakin
Commit ca23cb0bc50f ("mvneta: MVNETA_SKB_HEADROOM set last 3 bits to zero") added headroom alignment check against 8. Hovewer (if we imagine that NET_SKB_PAD or XDP_PACKET_HEADROOM is not aligned to cacheline size), it actually aligns headroom down, while skb/xdp_buff headroom should be *at least*

Re: [PATCH v2 3/4] selftests/livepatch: more verification in test-klp-shadow-vars

2020-06-05 Thread Petr Mladek
On Wed 2020-06-03 14:20:57, Yannick Cote wrote: > This change makes the test feel more familiar with narrowing to a > typical usage by operating on a number of identical structure instances > and populating the same two new shadow variables symmetrically while > keeping the same testing and

Re: [PATCH v2 1/4] selftests/livepatch: simplify test-klp-callbacks busy target tests

2020-06-05 Thread Petr Mladek
On Wed 2020-06-03 14:20:55, Yannick Cote wrote: > From: Joe Lawrence > > The test-klp-callbacks script includes a few tests which rely on kernel > task timings that may not always execute as expected under system load. > These may generate out of sequence kernel log messages that result in >

Re: stress-ng --hrtimers hangs system

2020-06-05 Thread Kurt Kanzenbach
Hi Vladimir, On Fri Jun 05 2020, Vladimir Oltean wrote: > Hi, > > I was testing stress-ng on an ARM64 box and I found that it can be killed > instantaneously with a --hrtimers 1 test: > https://github.com/ColinIanKing/stress-ng/blob/master/stress-hrtimers.c > The console shell locks up

[PATCH 2/2] mmc: mediatek: do not hide address in msdc_request_timeout()

2020-06-05 Thread Frank Lee
From: Yangtao Li Using %px to show the actual address in msdc_request_timeout() to help us to debug issue. Signed-off-by: Yangtao Li Signed-off-by: Frank Lee --- drivers/mmc/host/mtk-sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/mtk-sd.c

[PATCH 1/2] mmc: sunxi-mmc: do not hide address in sunxi_mmc_irq()

2020-06-05 Thread Frank Lee
From: Yangtao Li Using %px to show the actual address in sunxi_mmc_irq() to help us to debug issue. Signed-off-by: Yangtao Li Signed-off-by: Frank Lee --- drivers/mmc/host/sunxi-mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sunxi-mmc.c

Re: block: Fix use-after-free in blkdev_get()

2020-06-05 Thread Matthew Wilcox
On Fri, Jun 05, 2020 at 02:47:00PM +0200, Markus Elfring wrote: > >> Some developers found parts of my reviews helpful, didn't they? > > > > Overall you are a net negative to kernel development. > > Which concrete items do you like less here? Your feedback is unhelpful and you show no signs of

Re: [PATCH] iommu/mediatek: Use totalram_pages to setup enable_4GB

2020-06-05 Thread David Hildenbrand
On 04.06.20 17:27, David Hildenbrand wrote: > On 04.06.20 17:06, Christoph Hellwig wrote: >> On Thu, Jun 04, 2020 at 01:32:40PM +0200, David Hildenbrand wrote: >>> Just a thought: If memory hotplug is applicable as well, you might >>> either want to always assume data->enable_4GB, or handle memory

Re: [PATCH v2 10/10] ARM: dts: r8a7742-iwg21d-q7: Add support for iWave G21D-Q7 board based on RZ/G1H

2020-06-05 Thread Geert Uytterhoeven
Hi Prabhakar, On Sun, May 3, 2020 at 11:47 PM Lad Prabhakar wrote: > Add support for iWave RainboW-G21D-Qseven board based on RZ/G1H. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > > --- /dev/null > +++ b/arch/arm/boot/dts/r8a7742-iwg21d-q7.dts > @@ -0,0 +1,37 @@ >

Re: [PATCH v3 22/25] clk: bcm: rpi: Give firmware clocks a name

2020-06-05 Thread Nicolas Saenz Julienne
On Wed, 2020-05-27 at 17:45 +0200, Maxime Ripard wrote: > We've registered the firmware clocks using their ID as name, but it's much > more convenient to register them using their proper name. Since the > firmware doesn't provide it, we have to duplicate it. > > Signed-off-by: Maxime Ripard >

Re: [PATCH] iomap: Handle I/O errors gracefully in page_mkwrite

2020-06-05 Thread Matthew Wilcox
On Fri, Jun 05, 2020 at 01:07:58PM +1000, Dave Chinner wrote: > On Thu, Jun 04, 2020 at 07:24:51PM -0700, Matthew Wilcox wrote: > > On Fri, Jun 05, 2020 at 10:31:59AM +1000, Dave Chinner wrote: > > > On Thu, Jun 04, 2020 at 04:50:50PM -0700, Matthew Wilcox wrote: > > > > > Sure, but that's not

Re: slub freelist issue / BUG: unable to handle page fault for address: 000000003ffe0018

2020-06-05 Thread Vegard Nossum
On 2020-06-05 11:36, Vegard Nossum wrote: On 2020-06-05 11:11, Vlastimil Babka wrote: On 6/4/20 8:46 PM, Vlastimil Babka wrote: On 6/4/20 7:57 PM, Kees Cook wrote: On Thu, Jun 04, 2020 at 07:20:18PM +0200, Vegard Nossum wrote: On 2020-06-04 19:18, Vlastimil Babka wrote: On 6/4/20 7:14 PM,

Re: block: Fix use-after-free in blkdev_get()

2020-06-05 Thread Markus Elfring
>> Some developers found parts of my reviews helpful, didn't they? > > Overall you are a net negative to kernel development. Which concrete items do you like less here? > Please change how you contribute. I am curious to find the details out which might hinder progress in desirable directions

Re: [PATCH] io_uring: use kvfree() in io_sqe_buffer_register()

2020-06-05 Thread Jens Axboe
On 6/5/20 3:32 AM, Denis Efremov wrote: > Use kvfree() to free the pages and vmas, since they are allocated by > kvmalloc_array() in a loop. Applied, thanks. -- Jens Axboe

Re: [PATCH v3 21/25] clk: bcm: rpi: Discover the firmware clocks

2020-06-05 Thread Nicolas Saenz Julienne
Hi Maxime, On Wed, 2020-05-27 at 17:45 +0200, Maxime Ripard wrote: > The RaspberryPi4 firmware actually exposes more clocks than are currently > handled by the driver and we will need to change some of them directly > based on the pixel rate for the display related clocks, or the load for the >

Re: [PATCH 0/2] overlayfs: C/R enhancements

2020-06-05 Thread Alexander Mikhalitsyn
Dear Amir, We actively discussed about patches with Pavel, so with your favour I'll try to answer (partially) to some of your comments. On Fri, 5 Jun 2020 13:21:40 +0300 Amir Goldstein wrote: > On Fri, Jun 5, 2020 at 11:41 AM Pavel Tikhomirov > wrote: > > > > > > > > On 6/5/20 5:35 AM, Amir

Re: [PATCH v26 01/15] dt: bindings: Add multicolor class dt bindings documention

2020-06-05 Thread Dan Murphy
Rob On 6/4/20 5:40 PM, Rob Herring wrote: On Thu, Jun 04, 2020 at 07:04:50AM -0500, Dan Murphy wrote: Add DT bindings for the LEDs multicolor class framework. Add multicolor ID to the color ID list for device tree bindings. CC: Rob Herring Acked-by: Pavel Machek Acked-by: Jacek Anaszewski

drivers/hwmon/bt1-pvt.c:303:16: warning: no previous declaration for 'pvt_limit_is_visible'

2020-06-05 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 435faf5c218a47fd6258187f62d9bb1009717896 commit: 87976ce2825d9f1ca2e70ee7d38dec490ad5a6e2 hwmon: Add Baikal-T1 PVT sensor driver date: 8 days ago config: i386-randconfig-r016-20200605 (attached as .config

Re: [PATCH v4 06/11] gpio: add support for the sl28cpld GPIO controller

2020-06-05 Thread Michael Walle
Am 2020-06-05 14:00, schrieb Andy Shevchenko: On Fri, Jun 5, 2020 at 12:14 AM Michael Walle wrote: Add support for the GPIO controller of the sl28 board management controller. This driver is part of a multi-function device. A controller has 8 lines. There are three different flavors:

Re: [PATCH 13/18] drm/amdgpu/dc: Stop dma_resv_lock inversion in commit_tail

2020-06-05 Thread Daniel Vetter
On Fri, Jun 5, 2020 at 10:30 AM Pierre-Eric Pelloux-Prayer wrote: > > Hi Daniel, > > On 04/06/2020 10:12, Daniel Vetter wrote: > [...] > > @@ -6910,7 +6910,11 @@ static void amdgpu_dm_commit_planes(struct > > drm_atomic_state *state, > >* explicitly on fences instead > >

Re: [PATCH v3 0/2] Add support for MaxLinear/Exar USB to serial converters

2020-06-05 Thread Mauro Carvalho Chehab
Em Fri, 1 May 2020 00:19:22 +0530 m...@kernel.org escreveu: > From: Manivannan Sadhasivam > > Hello, > > This series adds support for MaxLinear/Exar USB to serial converters. > This driver only supports XR21V141X series but it can easily be extended > to other series in future. > > This

Re: WARNING: refcount bug in crypto_mod_get

2020-06-05 Thread Herbert Xu
On Fri, May 01, 2020 at 10:01:14AM -0700, syzbot wrote: > > [ cut here ] > refcount_t: addition on 0; use-after-free. ... > refcount_add include/linux/refcount.h:204 [inline] > refcount_inc include/linux/refcount.h:241 [inline] > crypto_alg_get crypto/internal.h:87

Re: [PATCH net-next v2] af-packet: new flag to indicate all csums are good

2020-06-05 Thread Victor Julien
On 04-06-2020 15:48, Willem de Bruijn wrote: > On Thu, Jun 4, 2020 at 5:47 AM Victor Julien wrote: >> >> On 02-06-2020 22:18, Willem de Bruijn wrote: >>> On Tue, Jun 2, 2020 at 4:05 PM Victor Julien wrote: On 02-06-2020 21:38, Willem de Bruijn wrote: > On Tue, Jun 2, 2020 at 3:22

[PATCH AUTOSEL 5.6 09/17] nfp: flower: fix used time of merge flow statistics

2020-06-05 Thread Sasha Levin
From: Heinrich Kuhn [ Upstream commit 5b186cd60f033110960a3db424ffbd6de4cee528 ] Prior to this change the correct value for the used counter is calculated but not stored nor, therefore, propagated to user-space. In use-cases such as OVS use-case at least this results in active flows being

[PATCH AUTOSEL 5.6 07/17] net: usb: qmi_wwan: add Telit LE910C1-EUX composition

2020-06-05 Thread Sasha Levin
From: Daniele Palmas [ Upstream commit 591612aa578cd7148b7b9d74869ef40118978389 ] Add support for Telit LE910C1-EUX composition 0x1031: tty, tty, tty, rmnet Signed-off-by: Daniele Palmas Acked-by: Bjørn Mork Signed-off-by: David S. Miller Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 5.6 12/17] gfs2: Even more gfs2_find_jhead fixes

2020-06-05 Thread Sasha Levin
From: Andreas Gruenbacher [ Upstream commit 20be493b787cd581c9fffad7fcd6bfbe6af1050c ] Fix several issues in the previous gfs2_find_jhead fix: * When updating @blocks_submitted, @block refers to the first block block not submitted yet, not the last block submitted, so fix an off-by-one error.

[PATCH AUTOSEL 5.6 06/17] net: check untrusted gso_size at kernel entry

2020-06-05 Thread Sasha Levin
From: Willem de Bruijn [ Upstream commit 6dd912f82680761d8fb6b1bb274a69d4c7010988 ] Syzkaller again found a path to a kernel crash through bad gso input: a packet with gso size exceeding len. These packets are dropped in tcp_gso_segment and udp[46]_ufo_fragment. But they may affect gso size

[PATCH AUTOSEL 5.6 14/17] net/mlx5e: replace EINVAL in mlx5e_flower_parse_meta()

2020-06-05 Thread Sasha Levin
From: Pablo Neira Ayuso [ Upstream commit a683012a8e77675a1947cc8f11f97cdc1d5bb769 ] The drivers reports EINVAL to userspace through netlink on invalid meta match. This is confusing since EINVAL is usually reserved for malformed netlink messages. Replace it by more meaningful codes. Fixes:

[PATCH AUTOSEL 5.6 08/17] Input: synaptics - add a second working PNP_ID for Lenovo T470s

2020-06-05 Thread Sasha Levin
From: Dennis Kadioglu [ Upstream commit 642aa86eaf8f1e6fe894f20fd7f12f0db52ee03c ] The Lenovo Thinkpad T470s I own has a different touchpad with "LEN007a" instead of the already included PNP ID "LEN006c". However, my touchpad seems to work well without any problems using RMI. So this patch adds

Re: [PATCH v4 1/4] riscv: Move kernel mapping to vmalloc zone

2020-06-05 Thread Alex Ghiti
Hi Zong, Le 6/3/20 à 10:52 PM, Zong Li a écrit : On Wed, Jun 3, 2020 at 4:01 PM Alexandre Ghiti wrote: This is a preparatory patch for relocatable kernel. The kernel used to be linked at PAGE_OFFSET address and used to be loaded physically at the beginning of the main memory. Therefore, we

[PATCH AUTOSEL 5.6 10/17] net: dsa: felix: send VLANs on CPU port as egress-tagged

2020-06-05 Thread Sasha Levin
From: Vladimir Oltean [ Upstream commit 183be6f967fe37c3154bfac39e913c3bafe89d1b ] As explained in other commits before (b9cd75e66895 and 87b0f983f66f), ocelot switches have a single egress-untagged VLAN per port, and the driver would deny adding a second one while an egress-untagged VLAN

[PATCH AUTOSEL 5.6 16/17] drivers/net/ibmvnic: Update VNIC protocol version reporting

2020-06-05 Thread Sasha Levin
From: Thomas Falcon [ Upstream commit 784688993ebac34dffe44a9f2fabbe126ebfd4db ] VNIC protocol version is reported in big-endian format, but it is not byteswapped before logging. Fix that, and remove version comparison as only one protocol version exists at this time. Signed-off-by: Thomas

[PATCH AUTOSEL 5.4 01/14] Input: mms114 - fix handling of mms345l

2020-06-05 Thread Sasha Levin
From: Stephan Gerhold [ Upstream commit 3f8f770575d911c989043d8f0fb8dec96360c41c ] MMS345L is another first generation touch screen from Melfas, which uses the same registers as MMS152. However, using I2C_M_NOSTART for it causes errors when reading: i2c i2c-0: sendbytes: NAK bailout.

[PATCH AUTOSEL 5.6 15/17] NFC: st21nfca: add missed kfree_skb() in an error path

2020-06-05 Thread Sasha Levin
From: Chuhong Yuan [ Upstream commit 3decabdc714ca56c944f4669b4cdec5c2c1cea23 ] st21nfca_tm_send_atr_res() misses to call kfree_skb() in an error path. Add the missed function call to fix it. Fixes: 1892bf844ea0 ("NFC: st21nfca: Adding P2P support to st21nfca in Initiator & Target mode")

[PATCH AUTOSEL 5.4 07/14] Input: synaptics - add a second working PNP_ID for Lenovo T470s

2020-06-05 Thread Sasha Levin
From: Dennis Kadioglu [ Upstream commit 642aa86eaf8f1e6fe894f20fd7f12f0db52ee03c ] The Lenovo Thinkpad T470s I own has a different touchpad with "LEN007a" instead of the already included PNP ID "LEN006c". However, my touchpad seems to work well without any problems using RMI. So this patch adds

<    3   4   5   6   7   8   9   10   11   12   >