MRP netlink interface

2020-05-25 Thread Horatiu Vultur
Hi, While I was working on adding support for MRA role to MRP, I noticed that I might have some issues with the netlink interface, so it would be great if you can give me an advice on how to continue. First a node with MRA role can behave as a MRM(Manager) or as a MRC(Client). The behaviour is de

[PATCH v13 14/15] mm/damon: Add user space selftests

2020-05-25 Thread SeongJae Park
From: SeongJae Park This commit adds a simple user space tests for DAMON. The tests are using kselftest framework. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/Makefile| 7 + .../selftests/damon/_chk_dependency.sh| 28 tools/testing/selftests/damon/_c

[PATCH v13 13/15] mm/damon: Add kunit tests

2020-05-25 Thread SeongJae Park
From: SeongJae Park This commit adds kunit based unit tests for DAMON. Signed-off-by: SeongJae Park Reviewed-by: Brendan Higgins --- mm/Kconfig | 11 + mm/damon-test.h | 622 mm/damon.c | 6 + 3 files changed, 639 insertions(+) cr

[PATCH v13 15/15] MAINTAINERS: Update for DAMON

2020-05-25 Thread SeongJae Park
From: SeongJae Park This commit updates MAINTAINERS file for DAMON related files. Signed-off-by: SeongJae Park --- MAINTAINERS | 12 1 file changed, 12 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 5a5332b3591d..586513e92b65 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

Re: [PATCH] PM: runtime: clk: Fix clk_pm_runtime_get() error path

2020-05-25 Thread Ulf Hansson
On Fri, 22 May 2020 at 20:39, Rafael J. Wysocki wrote: > > On Fri, May 22, 2020 at 7:19 AM Marek Szyprowski > wrote: > > > > Hi Rafael, > > > > On 21.05.2020 19:08, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > clk_pm_runtime_get() assumes that the PM-runtime usage counter w

[PATCH v1] bluetooth: hci_qca: Fix qca6390 enable failure after warm reboot

2020-05-25 Thread Zijun Hu
Warm reboot can not restore qca6390 controller baudrate to default due to lack of controllable BT_EN pin or power supply, so fails to download firmware after warm reboot. Fixed by sending EDL_SOC_RESET VSC to reset controller within added device shutdown implementation. Signed-off-by: Zijun Hu -

Re: MRP netlink interface

2020-05-25 Thread Nikolay Aleksandrov
On 25/05/2020 14:28, Horatiu Vultur wrote: > Hi, > > While I was working on adding support for MRA role to MRP, I noticed that I > might have some issues with the netlink interface, so it would be great if you > can give me an advice on how to continue. > > First a node with MRA role can behave a

Re: Build regressions/improvements in v5.7-rc7

2020-05-25 Thread Geert Uytterhoeven
On Mon, 25 May 2020, Geert Uytterhoeven wrote: Below is the list of build error/warning regressions/improvements in JFYI, when comparing v5.7-rc7[1] to v5.7-rc6[3], the summaries are: - build errors: +4/-0 - build warnings: +0/-0 + error: modpost: "devm_ioremap" [drivers/net/ethernet/xilinx

Re: XHCI vs PCM2903B/PCM2904 part 2

2020-05-25 Thread Mathias Nyman
On 21.5.2020 6.45, Rik van Riel wrote: > On Wed, 2020-05-20 at 16:34 -0400, Alan Stern wrote: >> On Wed, May 20, 2020 at 03:21:44PM -0400, Rik van Riel wrote: >>> >>> Interesting. That makes me really curious why things are >>> getting stuck, now... >> >> This could be a bug in xhci-hcd. Perhaps t

Re: [PATCH v1 10/25] seqlock: Add RST directives to kernel-doc code samples and notes

2020-05-25 Thread Ahmed S. Darwish
Peter Zijlstra wrote: > On Fri, May 22, 2020 at 08:26:44PM +0200, Thomas Gleixner wrote: > > Peter Zijlstra writes: > > > On Fri, May 22, 2020 at 08:02:54PM +0200, Peter Zijlstra wrote: > > >> On Tue, May 19, 2020 at 11:45:32PM +0200, Ahmed S. Darwish wrote: > > >> > Mark all C code samples insid

Re: [PATCH] [V2] mmc: rtsx: Add SD Express mode support for RTS5261

2020-05-25 Thread Arnd Bergmann
On Mon, May 25, 2020 at 8:58 AM 冯锐 wrote: > > On Fri, May 22, 2020 at 11:16 AM Greg KH wrote: > > > > > > If I can get an ack from the MMC maintainer, I can take this in my > > > tree... > > > > > > {hint} > > > > I think this feature needs much more discussion to make sure we get a good > > user

Re: [PATCH v7 0/4] Introduce the for_each_set_clump macro

2020-05-25 Thread Bartosz Golaszewski
niedz., 24 maj 2020 o 07:00 Syed Nayyar Waris napisał(a): > > Hello Linus, > > Since this patchset primarily affects GPIO drivers, would you like > to pick it up through your GPIO tree? > > This patchset introduces a new generic version of for_each_set_clump. > The previous version of for_each_set

Re: [PATCH 1/6] arm64: dts: qcom: sm8150: add apps_smmu node

2020-05-25 Thread Sai Prakash Ranjan
Hi Jonathan, On 2020-05-24 08:08, Jonathan Marek wrote: Add the apps_smmu node for sm8150. Note that adding the iommus field for UFS is required because initializing the iommu removes the bypass mapping that created by the bootloader. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qc

Re: [PATCH v2] USB: serial: qcserial: Add DW5816e QDL support

2020-05-25 Thread Johan Hovold
On Thu, May 21, 2020 at 10:43:58AM +1000, Matt Jolly wrote: > Add support for Dell Wireless 5816e Download Mode (AKA boot & hold mode / > QDL download mode) to drivers/usb/serial/qcserial.c > > This is required to update device firmware. > > Signed-off-by: Matt Jolly > --- > v2 changes: typo. H

Re: [GIT pull] sched/urgent for v5.7-rc7

2020-05-25 Thread Thomas Gleixner
Linus Torvalds writes: > On Sun, May 24, 2020 at 8:08 AM Thomas Gleixner wrote: >> >>[..] overlooked a corner case where the first iteration terminates >>do a entiry being on rq which makes the list management incomplete [..] > > You had some kind of mini-stroke while writing that explan

Re: [PATCH 2/6] arm64: dts: qcom: sm8250: add apps_smmu node

2020-05-25 Thread Sai Prakash Ranjan
Hi Jonathan, On 2020-05-24 08:08, Jonathan Marek wrote: Add the apps_smmu node for sm8250. Note that adding the iommus field for UFS is required because initializing the iommu removes the bypass mapping that created by the bootloader. This statement doesn't seem right, you can just say sinc

Re: [RFC 01/11] net: phy: Don't report success if devices weren't found

2020-05-25 Thread Russell King - ARM Linux admin
On Sun, May 24, 2020 at 09:46:55PM -0500, Jeremy Linton wrote: > Hi, > > Thanks for taking a look at this. > > On 5/23/20 1:20 PM, Russell King - ARM Linux admin wrote: > > On Fri, May 22, 2020 at 04:30:49PM -0500, Jeremy Linton wrote: > > > C45 devices are to return 0 for registers they haven't

Re: [PATCH 08/10] clk: qcom: Add graphics clock controller driver for SM8250

2020-05-25 Thread Sai Prakash Ranjan
Hi Jonathan, On 2020-05-25 02:36, Jonathan Marek wrote: Add support for the graphics clock controller found on SM8250 based devices. This would allow graphics drivers to probe and control their clocks. This is copied from the downstream kernel, adapted for upstream. For example, GDSCs have been

Re: [PATCH v3 52/75] x86/sev-es: Handle MMIO String Instructions

2020-05-25 Thread Borislav Petkov
On Tue, Apr 28, 2020 at 05:17:02PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > Add handling for emulation the MOVS instruction on MMIO regions, as done > by the memcpy_toio() and memcpy_fromio() functions. > > Signed-off-by: Joerg Roedel > --- > arch/x86/kernel/sev-es.c | 78 ++

Re: MRP netlink interface

2020-05-25 Thread Horatiu Vultur
The 05/25/2020 12:33, Nikolay Aleksandrov wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On 25/05/2020 14:28, Horatiu Vultur wrote: > > Hi, > > > > While I was working on adding support for MRA role to MRP, I noticed that I > > might have

Re: [PATCH v2] workqueue: Fix double kfree for rescuer

2020-05-25 Thread Markus Elfring
> The duplicate memory release should be deleted from the implementation > of the callback function "rcu_free_wq". I tried to help with the selection of a better commit message. I have taken another look also at the implementation of the function “destroy_workqueue”. * The function call “destroy

Re: [PATCH v3 53/75] x86/sev-es: Handle MSR events

2020-05-25 Thread Borislav Petkov
On Tue, Apr 28, 2020 at 05:17:03PM +0200, Joerg Roedel wrote: > From: Tom Lendacky > > Implement a handler for #VC exceptions caused by RDMSR/WRMSR > instructions. > > Signed-off-by: Tom Lendacky > [ jroe...@suse.de: Adapt to #VC handling infrastructure ] > Co-developed-by: Joerg Roedel > Sign

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Russell King - ARM Linux admin
On Sun, May 24, 2020 at 10:34:13PM -0500, Jeremy Linton wrote: > Hi, > > On 5/23/20 1:37 PM, Russell King - ARM Linux admin wrote: > > On Fri, May 22, 2020 at 04:30:52PM -0500, Jeremy Linton wrote: > > > Until this point, we have been sanitizing the c22 > > > regs presence bit out of all the MMD d

Re: [PATCH v2] workqueue: Fix double kfree for rescuer

2020-05-25 Thread Markus Elfring
> * The function call “destroy_workqueue” can be performed there in an if branch > after the statement “wq->rescuer = NULL” was executed. Another correction: * The function call “kfree(rescuer)” can be performed there in an if branch after the statement “wq->rescuer = NULL” was executed. Rega

Re: [PATCH v1 04/25] block: nr_sects_write(): Disable preemption on seqcount write

2020-05-25 Thread Ahmed S. Darwish
Peter Zijlstra wrote: > On Tue, May 19, 2020 at 11:45:26PM +0200, Ahmed S. Darwish wrote: > > For optimized block readers not holding a mutex, the "number of sectors" > > 64-bit value is protected from tearing on 32-bit architectures by a > > sequence counter. > > > > Disable preemption before ent

Re: [PATCH v6 1/4] rcu/kasan: record and print call_rcu() call stack

2020-05-25 Thread Dmitry Vyukov
On Fri, May 22, 2020 at 4:01 AM Walter Wu wrote: > > This feature will record the last two call_rcu() call stacks and > prints up to 2 call_rcu() call stacks in KASAN report. > > When call_rcu() is called, we store the call_rcu() call stack into > slub alloc meta-data, so that the KASAN report can

Re: [PATCH v6 3/4] kasan: add tests for call_rcu stack recording

2020-05-25 Thread Dmitry Vyukov
On Fri, May 22, 2020 at 4:02 AM Walter Wu wrote: > > Test call_rcu() call stack recording and verify whether it correctly > is printed in KASAN report. Reviewed-and-tested-by: Dmitry Vyukov > Signed-off-by: Walter Wu > Cc: Andrey Ryabinin > Cc: Dmitry Vyukov > Cc: Alexander Potapenko > Cc:

Re: [PATCH v6 4/4] kasan: update documentation for generic kasan

2020-05-25 Thread Dmitry Vyukov
On Fri, May 22, 2020 at 4:02 AM Walter Wu wrote: > > Generic KASAN will support to record the last two call_rcu() call stacks > and print them in KASAN report. So that need to update documentation. Reviewed-and-tested-by: Dmitry Vyukov > Signed-off-by: Walter Wu > Cc: Andrey Ryabinin > Cc: Dm

Re: [PATCH v6 2/4] kasan: record and print the free track

2020-05-25 Thread Dmitry Vyukov
On Fri, May 22, 2020 at 4:01 AM Walter Wu wrote: > > Move free track from kasan_alloc_meta to kasan_free_meta in order > to make struct kasan_alloc_meta and kasan_free_meta size are both > 16 bytes. It is a good size because it is the minimal redzone size > and a good number of alignment. > > For

linux-next: build failure after merge of the notifications tree

2020-05-25 Thread Stephen Rothwell
Hi all, After merging the notifications tree, today's linux-next build (x86_64 allmodconfig) failed like this: kernel/watch_queue.c:67:13: error: 'generic_pipe_buf_confirm' undeclared here (not in a function); did you mean 'generic_pipe_buf_release'? 67 | .confirm = generic_pipe_buf_confirm,

Re: [PATCH v2] selftests/ftrace: Use printf for backslash included command

2020-05-25 Thread Masami Hiramatsu
Hi Shuah, Could you pick this to kselftest-next? Thank you, On Mon, 11 May 2020 22:36:27 +0900 Masami Hiramatsu wrote: > Since the built-in echo has different behavior in POSIX shell > (dash) and bash, kprobe_syntax_errors.tc can fail on dash which > interpret backslash escape automatically. >

Re: [PATCH 1/8] dt-bindings: phy: rcar-gen2: Add r8a7742 support

2020-05-25 Thread Geert Uytterhoeven
On Sun, May 24, 2020 at 11:38 PM Lad Prabhakar wrote: > Add USB PHY support for r8a7742 SoC. Renesas RZ/G1H (R8A7742) > USB PHY is identical to the R-Car Gen2 family. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s,

[RFC PATCH v4] GCOV: profile by modules

2020-05-25 Thread gengcixi
From: Cixi Geng The CONFIG_GCOV_PROFILE_ALL will compile kernel by profiling entire kernel which will lead to kernel run slower.Use GCOV_PROFILE_PREREQS to control part of the kernel modules to open gcov. Only add SERIAL_GCOV for an example. Signed-off-by: Cixi Geng --- drivers/tty/serial/Kco

Re: [PATCH v3] workqueue: Fix double kfree for rescuer

2020-05-25 Thread Markus Elfring
> The callback function "rcu_free_wq" could be called after memory > was released for "rescuer" already, Thus delete a misplaced call > of the function "kfree". I got into the mood to follow your interpretation of the software situation for a moment. I have taken another look also at the implemen

Re: [PATCH v3] workqueue: Fix double kfree for rescuer

2020-05-25 Thread Markus Elfring
> The callback function "rcu_free_wq" could be called after memory > was released for "rescuer" already, Thus delete a misplaced call > of the function "kfree". I got into the mood to follow your interpretation of the software situation for a moment. I have taken another look also at the implemen

Re: [PATCH 2/8] dt-bindings: PCI: pci-rcar-gen2: Add device tree support for r8a7742

2020-05-25 Thread Geert Uytterhoeven
On Sun, May 24, 2020 at 11:39 PM Lad Prabhakar wrote: > Add internal PCI bridge support for r8a7742 SoC. The Renesas RZ/G1H > (R8A7742) internal PCI bridge is identical to the R-Car Gen2 family. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytter

Re: [PATCH] irqchip/gic-v2, v3: Drop extra IRQ_NOAUTOEN setting for (E)PPIs

2020-05-25 Thread Marc Zyngier
On Thu, 21 May 2020 23:35:00 +0100, Valentin Schneider wrote: > (E)PPIs are per-CPU interrupts, so we want each CPU to go and enable them > via enable_percpu_irq(); this also means we want IRQ_NOAUTOEN for them as > the autoenable would lead to calling irq_enable() instead of the more > appropriate

Re: [RFC][PATCH 0/4] x86/entry: disallow #DB more

2020-05-25 Thread Rasmus Villemoes
On 23/05/2020 23.32, Peter Zijlstra wrote: > On Sat, May 23, 2020 at 02:59:40PM +0200, Peter Zijlstra wrote: >> On Fri, May 22, 2020 at 03:13:57PM -0700, Andy Lutomirski wrote: > >> Good point, so the trivial optimization is below. I couldn't find >> instruction latency numbers for DRn load/stores

Re: MRP netlink interface

2020-05-25 Thread Michal Kubecek
On Mon, May 25, 2020 at 11:28:27AM +, Horatiu Vultur wrote: [...] > My first approach was to extend the 'struct br_mrp_instance' with a field that > contains the priority of the node. But this breaks the backwards > compatibility, > and then every time when I need to change something, I will b

Re: [PATCH 3/8] dt-bindings: usb: renesas,usbhs: Add support for r8a7742

2020-05-25 Thread Geert Uytterhoeven
On Sun, May 24, 2020 at 11:39 PM Lad Prabhakar wrote: > Document support for RZ/G1H (R8A7742) SoC. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lo

Re: [PATCH 4/8] dt-bindings: dmaengine: renesas,usb-dmac: Add binding for r8a7742

2020-05-25 Thread Geert Uytterhoeven
On Sun, May 24, 2020 at 11:40 PM Lad Prabhakar wrote: > Document RZ/G1H (R8A7742) SoC bindings. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots

Re: [RFC 04/11] net: phy: Handle c22 regs presence better

2020-05-25 Thread Russell King - ARM Linux admin
On Sun, May 24, 2020 at 10:34:13PM -0500, Jeremy Linton wrote: > Hi, > > On 5/23/20 1:37 PM, Russell King - ARM Linux admin wrote: > > On Fri, May 22, 2020 at 04:30:52PM -0500, Jeremy Linton wrote: > > > Until this point, we have been sanitizing the c22 > > > regs presence bit out of all the MMD d

Re: [PATCH v3 2/7] mm/vmalloc: Track which page-table levels were modified

2020-05-25 Thread Joerg Roedel
On Mon, May 18, 2020 at 03:18:28PM -0700, Andrew Morton wrote: > It would be nice to get all this (ie, linux-next) retested before we > send it upstream, please. Tested these patches as in next-20200522, with three 2, 3, and 4-level paging. On 4-level (aka 64-bit) I also re-ran the Stevens trace-c

Re: [PATCH v2] ACPI / DPTF: Add additional attributes to power participant driver

2020-05-25 Thread Rafael J. Wysocki
On Thu, May 21, 2020 at 10:30 PM Srinivas Pandruvada wrote: > > Add two additional attributes to the existing power participant driver: > rest_of_platform_power_mw: (RO) Shows the rest of worst case platform > power in mW outside of S0C. This will help in power distribution to SoC > and rest of th

Re: [PATCH v2 0/3] More improvements for multiple PLICs

2020-05-25 Thread Marc Zyngier
On Mon, 18 May 2020 14:44:38 +0530, Anup Patel wrote: > This series does more improvements for supporting multiple PLIC > instances. > > PATCH1 and PATCH2 are fixes whereas PATCH3 helps users distinguish > multiple PLIC instances in boot prints. > > These patches are based up Linux-5.7-rc5 and ca

Re: [PATCH] ACPI / DPTF: Add DPTF battery participant driver

2020-05-25 Thread Rafael J. Wysocki
On Fri, May 22, 2020 at 11:45 PM Srinivas Pandruvada wrote: > > This driver adds support for Dynamic Platform and Thermal Framework > battery participant device support. > > These attributes are presented via sysfs interface under the platform > device for the battery participant: > $ls /sys/bus/p

Re: [PATCH 2/6] arm64: dts: qcom: sm8250: add apps_smmu node

2020-05-25 Thread Jonathan Marek
Hi, On 5/25/20 5:42 AM, Sai Prakash Ranjan wrote: Hi Jonathan, On 2020-05-24 08:08, Jonathan Marek wrote: Add the apps_smmu node for sm8250. Note that adding the iommus field for UFS is required because initializing the iommu removes the bypass mapping that created by the bootloader. This s

Re: linux-next: Tree for May 21 (objtool warnings)

2020-05-25 Thread Miroslav Benes
On Thu, 21 May 2020, Randy Dunlap wrote: > On 5/21/20 7:12 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20200519: > > These are indeed caused by -flive-patching > on x86_64: > > fs/open.o: warning: objtool: chmod_common()+0x104: unreachable instruction > fs/namei.o: warning:

Re: [PATCH v1 04/25] block: nr_sects_write(): Disable preemption on seqcount write

2020-05-25 Thread Ahmed S. Darwish
Sasha Levin wrote: > Hi > > [This is an automated email] > > This commit has been processed because it contains a "Fixes:" tag > fixing commit: c83f6bf98dc1 ("block: add partition resize function to blkpg > ioctl"). > > The bot has tested the following trees: v5.6.13, v5.4.41, v4.19.123, > v4.14

答复: [PATCH] [V2] mmc: rtsx: Add SD Express mode support for RTS5261

2020-05-25 Thread 冯锐
> On Mon, May 25, 2020 at 8:58 AM 冯锐 wrote: > > > On Fri, May 22, 2020 at 11:16 AM Greg KH > wrote: > > > > > > > > If I can get an ack from the MMC maintainer, I can take this in my > > > > tree... > > > > > > > > {hint} > > > > > > I think this feature needs much more discussion to make sure we

Re: [PATCH v4 2/6] dt-bindings: interrupt-controller: Add Loongson HTVEC

2020-05-25 Thread Marc Zyngier
On Sat, 16 May 2020 09:29:02 +0100, Jiaxun Yang wrote: > > Add binding for Loongson-3 HyperTransport Interrupt Vector Controller. > > Signed-off-by: Jiaxun Yang > -- > v4: Drop ref, '|', add additionalProperties, fix example Rob, do you have any input on this? Thanks, M. -- Without

Re: inconsistent lock state in icmp_send

2020-05-25 Thread syzbot
syzbot suspects this bug was fixed by commit: commit 1378817486d6860f6a927f573491afe65287abf1 Author: Eric Dumazet Date: Thu May 21 18:29:58 2020 + tipc: block BH before using dst_cache bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=10cbef0610 start commit: f5d5827

Re: [PATCH 5/8] dt-bindings: usb: usb-xhci: Document r8a7742 support

2020-05-25 Thread Geert Uytterhoeven
On Sun, May 24, 2020 at 11:40 PM Lad Prabhakar wrote: > Document r8a7742 xhci support. The driver will use the fallback > compatible string "renesas,rcar-gen2-xhci", therefore no driver > change is needed. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: G

Re: [PATCH 6/8] ARM: dts: r8a7742: Add USB 2.0 host support

2020-05-25 Thread Geert Uytterhoeven
On Sun, May 24, 2020 at 11:40 PM Lad Prabhakar wrote: > Describe internal PCI bridge devices, USB phy device and > link PCI USB devices to USB phy. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5

Re: [PATCH v2] workqueue: Fix double kfree for rescuer

2020-05-25 Thread qzhang2
I see, kfree does nothing with null pointers and direct return. but again kfree is not a good suggestion. On 5/25/20 5:50 PM, Markus Elfring wrote: The duplicate memory release should be deleted from the implementation of the callback function "rcu_free_wq". I tried to help with the selection

Re: [PATCH v3 10/16] gpio: add a reusable generic gpio_chip using regmap

2020-05-25 Thread Michael Walle
Am 2020-05-25 11:05, schrieb Bartosz Golaszewski: wt., 12 maj 2020 o 16:41 Michael Walle napisał(a): >> + >> +MODULE_AUTHOR("Michael Walle "); >> +MODULE_DESCRIPTION("GPIO generic regmap driver core"); >> +MODULE_LICENSE("GPL"); >> diff --git a/include/linux/gpio-regmap.h b/include/linux/gpio-

Re: [PATCH 7/8] ARM: dts: r8a7742: Add USB-DMAC and HSUSB device nodes

2020-05-25 Thread Geert Uytterhoeven
On Sun, May 24, 2020 at 11:40 PM Lad Prabhakar wrote: > Add usb dmac and hsusb device nodes on RZ/G1H SoC dtsi. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.9. Gr{oetje,eeting}s,

[PATCH] selftests/ftrace: Return unsupported if no error_log file

2020-05-25 Thread Masami Hiramatsu
Check whether error_log file exists in tracing/error_log testcase and return UNSUPPORTED if no error_log file. This can happen if we run the ftracetest on the older stable kernel. Fixes: 4eab1cc461a6 ("selftests/ftrace: Add tracing/error_log testcase") Cc: sta...@vger.kernel.org Signed-off-by: Ma

Re: [PATCH 8/8] ARM: dts: r8a7742: Add xhci support

2020-05-25 Thread Geert Uytterhoeven
On Sun, May 24, 2020 at 11:40 PM Lad Prabhakar wrote: > Add xhci support to R8A7742 SoC DT. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Marian-Cristian Rotariu > Reviewed-by: Geert Uytterhoeven i.e. will queue in renesas-devel for v5.9. Gr{oetje,eeting}s, Geert

Re: [PATCH v1 07/25] lockdep: Add preemption disabled assertion API

2020-05-25 Thread Peter Zijlstra
On Sun, May 24, 2020 at 12:41:32AM +0200, Peter Zijlstra wrote: > On Sat, May 23, 2020 at 04:59:42PM +0200, Sebastian A. Siewior wrote: > > On 2020-05-22 19:55:03 [+0200], Peter Zijlstra wrote: > > > > That is both more consistent with the things you claim it's modelled > > > after and also comple

[PATCH] iio: at91_adc: remove usage of iio_priv_to_dev() helper

2020-05-25 Thread Alexandru Ardelean
We may want to get rid of the iio_priv_to_dev() helper. The reason is that we will hide some of the members of the iio_dev structure (to prevent drivers from accessing them directly), and that will also mean hiding the implementation of the iio_priv_to_dev() helper inside the IIO core. Hiding the

Re: MRP netlink interface

2020-05-25 Thread Nikolay Aleksandrov
On 25/05/2020 13:03, Michal Kubecek wrote: > On Mon, May 25, 2020 at 11:28:27AM +, Horatiu Vultur wrote: > [...] >> My first approach was to extend the 'struct br_mrp_instance' with a field >> that >> contains the priority of the node. But this breaks the backwards >> compatibility, >> and th

Re: [PATCH] mmc: rtsx: Add SD Express mode support for RTS5261

2020-05-25 Thread Ulf Hansson
On Tue, 19 May 2020 at 11:18, 冯锐 wrote: > > > On Tue, 28 Apr 2020 at 05:44, 冯锐 wrote: > > > > > > > > > > > On Mon, Apr 27, 2020 at 11:41 AM 冯锐 > > wrote: > > > > > > > > > > > > > > > > On Sun, Apr 26, 2020 at 09:25:46AM +0800, > > > > > > rui_f...@realsil.com.cn > > > > wrote: > > > > > > > Fr

[PATCH] iio: Kconfig: at91_adc: add COMPILE_TEST dependency to driver

2020-05-25 Thread Alexandru Ardelean
Since changes can come from all sort of places, it may make sense to have this symbol as a dependency to make sure that the 'make allmodconfig' && 'make allyesconfig' build rules cover this driver as well for a compile-build/test. It seemed useful [recently] when trying to apply a change for this.

io_uring: BUG: kernel NULL pointer dereference

2020-05-25 Thread Stefano Garzarella
Hi Jens, using fio and io_uring engine with SQPOLL and IOPOLL enabled, I had the following issue that happens after 4/5 seconds fio has started. Initially I had this issue on Linux v5.7-rc6, but I just tried also Linux v5.7-rc7: [ 75.343479] nvme nvme0: pci function :04:00.0 [ 75.355110] n

Re: [PATCH v2] USB: serial: qcserial: Add DW5816e QDL support

2020-05-25 Thread Matt Jolly
On 25/5/20 7:39 pm, Johan Hovold wrote: Hmm. I'd a call a build breakage a bit more than just a "typo" as it indicates this patch was never tested at all before being submitted. I applied, built, and tested it against the sources for the kernel I run on my machine, but made several silly mistake

Re: [PATCH] power: supply: bq24190_charger: fix runtime pm imbalance

2020-05-25 Thread Rafael J. Wysocki
On Wed, May 20, 2020 at 10:01 AM Dinghao Liu wrote: > > pm_runtime_get_sync() increments the runtime PM usage counter even > it returns an error code. Thus a pairing decrement is needed on > the error handling path to keep the counter balanced. > > Signed-off-by: Dinghao Liu > --- > drivers/powe

Re: [PATCH -next] mt76: mt7915: Fix build error

2020-05-25 Thread Kalle Valo
Yuehaibing writes: > On 2020/5/22 18:11, Kalle Valo wrote: >> YueHaibing writes: >> >>> In file included from ./include/linux/firmware.h:6:0, >>> from drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:4: >>> In function ‘__mt7915_mcu_msg_send’, >>> inlined from ‘mt7915_mcu_se

Re: [PATCH 03/11] mmc: sdio: Move SDIO IDs from mwifiex driver to common include file

2020-05-25 Thread Kalle Valo
Pali Rohár writes: > Add _WLAN suffix to macro names for consistency with other Marvell macros. > These IDs represents wlan function of combo bt/wlan cards. Other functions > of these cards have different IDs. > > Signed-off-by: Pali Rohár Acked-by: Kalle Valo -- https://wireless.wiki.kernel

Re: [PATCH v5 09/13] soc: mediatek: cmdq: add write_s value function

2020-05-25 Thread Dennis-YC Hsieh
On Mon, 2020-05-25 at 10:39 +0200, Matthias Brugger wrote: > > On 25/05/2020 04:27, Dennis-YC Hsieh wrote: > > > > On Sun, 2020-05-24 at 20:13 +0200, Matthias Brugger wrote: > >> > >> On 24/05/2020 19:31, Dennis-YC Hsieh wrote: > >>> Hi Matthias, > >>> > >>> Thanks for your comment. > >>> > >>>

Re: [PATCH 07/11] mmc: sdio: Move SDIO IDs from ath6kl driver to common include file

2020-05-25 Thread Kalle Valo
Pali Rohár writes: > Also replace generic MANUFACTURER macros by proper SDIO IDs macros. > > Check for "AR6003 or later" is slightly modified to use SDIO device IDs. > This allows removal of all custom MANUFACTURER macros from ath6kl. > > Signed-off-by: Pali Rohár Acked-by: Kalle Valo -- htt

Re: Re: [PATCH] power: supply: bq24190_charger: fix runtime pm imbalance

2020-05-25 Thread dinghao . liu
> On Wed, May 20, 2020 at 10:01 AM Dinghao Liu wrote: > > > > pm_runtime_get_sync() increments the runtime PM usage counter even > > it returns an error code. Thus a pairing decrement is needed on > > the error handling path to keep the counter balanced. > > > > Signed-off-by: Dinghao Liu > > ---

Re: [RFC][PATCH 0/4] x86/entry: disallow #DB more

2020-05-25 Thread Peter Zijlstra
On Mon, May 25, 2020 at 12:02:48PM +0200, Rasmus Villemoes wrote: > Naive question: did you check disassembly to see whether gcc threw your > native_get_debugreg() away, given that the asm isn't volatile and the > result is not used for anything? Testing here only shows a "mov > %r9,%db7", but the

Re: [v2] workqueue: Fix double kfree for rescuer

2020-05-25 Thread Markus Elfring
> I see, kfree does nothing with null pointers and direct return. > but again kfree is not a good suggestion. I have got the impression that the implementation detail is important here if non-null pointers (according to valid rescuer objects) are occasionally passed by the corresponding data struc

Re: [PATCH v5 2/3] dt-bindings: arm: actions: Document Caninos Loucos Labrador

2020-05-25 Thread Andreas Färber
Hi, Am 25.05.20 um 03:30 schrieb Matheus Castello: Update the documentation to add the Caninos Loucos Labrador. Labrador project consists of a computer on module based on the Actions Semi S500 processor and the Labrador base board. Signed-off-by: Matheus Castello Acked-by: Rob Herring --- D

Re: [PATCH V4 15/17] arm64/cpufeature: Add remaining feature bits in ID_AA64DFR0 register

2020-05-25 Thread Suzuki K Poulose
On 05/24/2020 02:08 AM, Anshuman Khandual wrote: On 05/20/2020 07:27 PM, Suzuki K Poulose wrote: On 05/19/2020 10:40 AM, Anshuman Khandual wrote: Enable MTPMU and TRACEFILT features bits in ID_AA64DFR0 register as per ARM DDI 0487F.a specification. Cc: Catalin Marinas Cc: Will Deacon Cc: M

[PATCH] x86/apic: Make TSC deadline timer detection message visible

2020-05-25 Thread Borislav Petkov
From: Borislav Petkov The commit c84cb3735fd5 ("x86/apic: Move TSC deadline timer debug printk") removed the message which said that the deadline timer was enabled. It added a pr_debug() message which is issued when deadline timer validation succeeds. Well, issued only when CONFIG_DYNAMIC_DE

Re: 379706875d ("x86/mm: simplify init_trampoline() and .."): BUG: kernel reboot-without-warning in boot stage

2020-05-25 Thread Mike Rapoport
On Mon, May 25, 2020 at 08:21:58AM +0800, kernel test robot wrote: > Greetings, > > 0day kernel testing robot got the below dmesg and the first bad commit is > > https://github.com/0day-ci/linux/commits/Mike-Rapoport/mm-consolidate-definitions-of-page-table-accessors/20200513-025551 > > commit 3

[PATCH] spi: mux: repair mux usage

2020-05-25 Thread Peter Rosin
It is not valid to cache/short out selection of the mux. mux_control_select() only locks the mux until mux_control_deselect() is called. mux_control_deselect() may put the mux in some low power state or some other user of the mux might select it for other purposes. These things are probably not ha

Re: [PATCH 1/2] phy: rockchip: Fix return value of inno_dsidphy_probe()

2020-05-25 Thread Heiko Stübner
Am Montag, 25. Mai 2020, 06:08:58 CEST schrieb Tiezhu Yang: > When call function devm_platform_ioremap_resource(), we should use IS_ERR() > to check the return value and return PTR_ERR() if failed. > > Fixes: b7535a3bc0ba ("phy/rockchip: Add support for Innosilicon MIPI/LVDS/TTL > PHY") > Signed-

Re: [PATCH] twist: allow converting pr_devel()/pr_debug() into printk(KERN_DEBUG)

2020-05-25 Thread Tetsuo Handa
On 2020/05/25 17:42, Petr Mladek wrote: > I see few drawbacks with this patch: > > 1. It will cause adding much more messages into the logbuffer even >though they are not flushed to the console. It might cause that >more important messages will get overridden before they reach >console

linux-next: build failure after merge of the nand tree

2020-05-25 Thread Stephen Rothwell
Hi all, After merging the nand tree, today's linux-next build (powerpc allyesconfig) failed like this: drivers/mtd/nand/raw/pasemi_nand.c: In function 'pasemi_nand_probe': drivers/mtd/nand/raw/pasemi_nand.c:157:1: warning: label 'out_cleanup' defined but not used [-Wunused-label] 157 | out_cle

Re: [PATCH 2/2] phy: Remove CONFIG_ARCH_ROCKCHIP check for subdir rockchip

2020-05-25 Thread Heiko Stübner
Am Montag, 25. Mai 2020, 06:08:59 CEST schrieb Tiezhu Yang: > If CONFIG_ARCH_ROCKCHIP is not set but COMPILE_TEST is set, the file in > the subdir rockchip can not be built due to CONFIG_ARCH_ROCKCHIP check > in drivers/phy/Makefile. > > Since the related configs in drivers/phy/rockchip/Kconfig de

Re: [PATCH v5 10/13] soc: mediatek: cmdq: export finalize function

2020-05-25 Thread Chun-Kuang Hu
Hi, Matthias: Matthias Brugger 於 2020年5月25日 週一 下午4:38寫道: > > > > On 25/05/2020 02:23, Chun-Kuang Hu wrote: > > Hi, Matthias: > > > > Matthias Brugger 於 2020年5月17日 週日 上午2:22寫道: > >> > >> > >> > >> On 08/03/2020 11:52, Dennis YC Hsieh wrote: > >>> Export finalize function to client which helps app

Re: [PATCH v1 09/25] Documentation: locking: Describe seqlock design and usage

2020-05-25 Thread Ahmed S. Darwish
Steven Rostedt wrote: > Peter Zijlstra wrote: > > On Tue, May 19, 2020 at 11:45:31PM +0200, Ahmed S. Darwish wrote: > > > diff --git a/include/linux/seqlock.h b/include/linux/seqlock.h > > > index d35be7709403..2a4af746b1da 100644 > > > --- a/include/linux/seqlock.h > > > +++ b/include/linux/seql

Re: [PATCH -next] leds: blinkm: remove set but not used variable

2020-05-25 Thread Pavel Machek
On Sat 2020-05-09 22:23:57, Hongbo Yao wrote: > Fixes gcc '-Wunused-but-set-variable' warning: > drivers/leds/leds-blinkm.c:483:6: warning: variable ‘ret’ set > but not used [-Wunused-but-set-variable] > int ret; Should error be propagated?

Re: [PATCH v1] mux: adgs1408: Add mod_devicetable.h and remove of_match_ptr

2020-05-25 Thread Peter Rosin
On 2020-05-20 14:01, Andy Shevchenko wrote: > Enables probing via the ACPI PRP0001 route but more is mostly about > removing examples of this that might get copied into new drivers. > > Also fixes > drivers/mux/adgs1408.c:112:34: warning: unused variable 'adgs1408_of_match > as has been reported

Re: [PATCH v2] PM: hibernate: restrict writes to the resume device

2020-05-25 Thread Rafael J. Wysocki
On Tue, May 19, 2020 at 8:14 PM Domenico Andreoli wrote: > > From: Domenico Andreoli > > Hibernation via snapshot device requires write permission to the swap > block device, the one that more often (but not necessarily) is used to > store the hibernation image. > > With this patch, such permissi

Re: [PATCH v1] iommu/tegra-smmu: Add missing locks around mapping operations

2020-05-25 Thread Dmitry Osipenko
25.05.2020 11:35, Thierry Reding пишет: > On Sun, May 24, 2020 at 09:37:55PM +0300, Dmitry Osipenko wrote: >> The mapping operations of the Tegra SMMU driver are subjected to a race >> condition issues because SMMU Address Space isn't allocated and freed >> atomically, while it should be. This patc

Re: [PATCH v2 1/3] dt-bindings: vendor-prefixes: Add Shanghai Awinic Technology Co., Ltd.

2020-05-25 Thread Pavel Machek
On Mon 2020-05-18 16:14:35, Rob Herring wrote: > On Mon, 11 May 2020 16:11:26 +0500, wrote: > > From: Nikita Travkin > > > > Add the "awinic" vendor prefix for Shanghai Awinic Technology Co., Ltd. > > Website: https://www.awinic.com/ > > > > Signed-off-by: Nikita Travkin > > --- > > Documenta

Re: [PATCH 2/3] dt-bindings: iio: magnetometer: ak8975: add gpio reset support

2020-05-25 Thread Jonathan Albrieux
On Mon, May 25, 2020 at 10:43:35AM +0200, Linus Walleij wrote: > On Mon, May 18, 2020 at 3:37 PM Jonathan Albrieux > wrote: > > > + reset-gpio: > > +description: an optional pin needed for AK09911 to set the reset state > > This kind of properties should always be plural, so > reset-gpios p

Re: [PATCH] staging: fbtft: fb_st7789v: make HSD20_IPS numeric and not a string

2020-05-25 Thread Oliver Graute
On 21/05/20, Colin King wrote: > From: Colin Ian King > > Currently HSD20_IPS is defined as "true" and will always result in a > non-zero result even if it is defined as "false" because it is an array > and that will never be zero. Fix this by defining it as an integer 1 > rather than a literal s

Re: [PATCH v2 04/18] nitro_enclaves: Init PCI device driver

2020-05-25 Thread Paraschiv, Andra-Irina
On 22/05/2020 10:04, Greg KH wrote: On Fri, May 22, 2020 at 09:29:32AM +0300, Andra Paraschiv wrote: +/** + * ne_setup_msix - Setup MSI-X vectors for the PCI device. + * + * @pdev: PCI device to setup the MSI-X for. + * + * @returns: 0 on success, negative return value on failure. + */ +static

[PATCH] iio: at91-sama5d2_adc: remove usage of iio_priv_to_dev() helper

2020-05-25 Thread Alexandru Ardelean
We may want to get rid of the iio_priv_to_dev() helper. The reason is that we will hide some of the members of the iio_dev structure (to prevent drivers from accessing them directly), and that will also mean hiding the implementation of the iio_priv_to_dev() helper inside the IIO core. Hiding the

Re: [PATCH 2/6] arm64: dts: qcom: sm8250: add apps_smmu node

2020-05-25 Thread Sai Prakash Ranjan
On 2020-05-25 15:39, Jonathan Marek wrote: Hi, On 5/25/20 5:42 AM, Sai Prakash Ranjan wrote: Hi Jonathan, On 2020-05-24 08:08, Jonathan Marek wrote: Add the apps_smmu node for sm8250. Note that adding the iommus field for UFS is required because initializing the iommu removes the bypass mapp

Re: [PATCH v2 3/3] leds: add aw2013 driver

2020-05-25 Thread Pavel Machek
On Mon 2020-05-11 16:11:28, nikitos...@gmail.com wrote: > From: Nikita Travkin > > This commit adds support for AWINIC AW2013 3-channel LED driver. > The chip supports 3 PWM channels and is controlled with I2C. > > Signed-off-by: Nikita Travkin Thanks, I applied 2 and 3/. 1/ should go through

Re: [PATCH v2] drivers/irqchip: Remove function callback casts

2020-05-25 Thread Marc Zyngier
On Sun, 24 May 2020 17:22:20 +0100, Oscar Carter wrote: > > In an effort to enable -Wcast-function-type in the top-level Makefile to > support Control Flow Integrity builds, remove all the function callback > casts. > > To do this, create a new macro called ACPI_DECLARE_SUBTABLE_PROBE_ENTRY > to

[tip: ras/core] x86/{mce,mm}: Change so poison pages are either unmapped or marked uncacheable

2020-05-25 Thread tip-bot2 for Tony Luck
The following commit has been merged into the ras/core branch of tip: Commit-ID: 3cb1ada80fe29e2fa022b5f20370b65718e0a744 Gitweb: https://git.kernel.org/tip/3cb1ada80fe29e2fa022b5f20370b65718e0a744 Author:Tony Luck AuthorDate:Wed, 20 May 2020 09:35:46 -07:00 Committer:

Re: [PATCH v3 54/75] x86/sev-es: Handle DR7 read/write events

2020-05-25 Thread Borislav Petkov
On Tue, Apr 28, 2020 at 05:17:04PM +0200, Joerg Roedel wrote: > +static enum es_result vc_handle_dr7_write(struct ghcb *ghcb, > + struct es_em_ctxt *ctxt) > +{ > + struct sev_es_runtime_data *data = this_cpu_read(runtime_data); > + long val, *reg = vc_i

Re: [RFC][PATCH 0/4] x86/entry: disallow #DB more

2020-05-25 Thread Peter Zijlstra
On Mon, May 25, 2020 at 12:40:38PM +0200, Peter Zijlstra wrote: > On Mon, May 25, 2020 at 12:02:48PM +0200, Rasmus Villemoes wrote: > > > Naive question: did you check disassembly to see whether gcc threw your > > native_get_debugreg() away, given that the asm isn't volatile and the > > result is

  1   2   3   4   5   6   7   8   9   10   >