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:

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

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

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

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

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

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

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

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

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]

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

[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

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

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

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

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

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

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

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:

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:

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

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

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

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:

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

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

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

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

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

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

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

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

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

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

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 >

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

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

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

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,

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.

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 =

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:

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

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

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

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.

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 >

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

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

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

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

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

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

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.

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

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

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

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

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"

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

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

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

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

[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

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

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

[PATCH v13 11/15] tools: Add a minimal user-space tool for DAMON

2020-05-25 Thread SeongJae Park
From: SeongJae Park This commit adds a shallow wrapper python script, ``/tools/damon/damo`` that provides more convenient interface. Note that it is only aimed to be used for minimal reference of the DAMON's debugfs interfaces and for debugging of the DAMON itself. Signed-off-by: SeongJae Park

linux-next: manual merge of the notifications tree with the vfs tree

2020-05-25 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the notifications tree got a conflict in: include/linux/pipe_fs_i.h between commit: f6dd975583bd ("pipe: merge anon_pipe_buf*_ops") from the vfs tree and commits: 8cfba76383e9 ("pipe: Allow buffers to be marked read-whole-or-error for

[PATCH v13 10/15] mm/damon: Add tracepoints

2020-05-25 Thread SeongJae Park
From: SeongJae Park This commit adds a tracepoint for DAMON. It traces the monitoring results of each region for each aggregation interval. Using this, DAMON will be easily integrated with any tracepoints supporting tools such as perf. Signed-off-by: SeongJae Park ---

[PATCH v13 09/15] mm/damon: Add debugfs interface

2020-05-25 Thread SeongJae Park
From: SeongJae Park This commit adds a debugfs interface for DAMON. DAMON exports four files, ``attrs``, ``pids``, ``record``, and ``monitor_on`` under its debugfs directory, ``/damon/``. Attributes -- Users can read and write the ``sampling interval``, ``aggregation interval``,

Re: [PATCH] arm: dts: am33xx-bone-common: add gpio-line-names

2020-05-25 Thread Linus Walleij
On Thu, May 21, 2020 at 12:02 AM Drew Fustini wrote: > I've posted a v2 which I hope improves the intent of the line names. [0] > > I'm happy to integrate any feedback and create a v3 - especially if it > is prefered for me to list the specific peripherial signals instead of > an abstract term

[PATCH v13 08/15] mm/damon: Implement access pattern recording

2020-05-25 Thread SeongJae Park
From: SeongJae Park This commit implements the recording feature of DAMON. If this feature is enabled, DAMON writes the monitored access patterns in its binary format into a file which specified by the user. This is already able to be implemented by each user using the callbacks. However, as

Re: [PATCH v30 07/20] x86/sgx: Enumerate and track EPC sections

2020-05-25 Thread Borislav Petkov
On Fri, May 15, 2020 at 03:43:57AM +0300, Jarkko Sakkinen wrote: > +config INTEL_SGX > + bool "Intel SGX" > + depends on X86_64 && CPU_SUP_INTEL > + select SRCU > + select MMU_NOTIFIER > + help > + Intel(R) SGX is a set of CPU instructions that can be used by > +

[PATCH v3] workqueue: Fix double kfree for rescuer

2020-05-25 Thread qiang.zhang
From: Zhang Qiang 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". Fixes: 6ba94429c8e7 ("workqueue: Reorder sysfs code") Signed-off-by: Zhang Qiang --- v1->v2->v3: Only commit

[PATCH v13 07/15] mm/damon: Implement callbacks

2020-05-25 Thread SeongJae Park
From: SeongJae Park This commit implements callbacks for DAMON. Using this, DAMON users can install their callbacks for each step of the access monitoring so that they can do something interesting with the monitored access patterns online. For example, callbacks can report the monitored

[PATCH v13 06/15] mm/damon: Apply dynamic memory mapping changes

2020-05-25 Thread SeongJae Park
From: SeongJae Park Only a number of parts in the virtual address space of the processes is mapped to physical memory and accessed. Thus, tracking the unmapped address regions is just wasteful. However, tracking every memory mapping change might incur an overhead. For the reason, DAMON

[PATCH v13 05/15] mm/damon: Adaptively adjust regions

2020-05-25 Thread SeongJae Park
From: SeongJae Park At the beginning of the monitoring, DAMON constructs the initial regions by evenly splitting the memory mapped address space of the process into the user-specified minimal number of regions. In this initial state, the assumption of the regions (pages in same region have

Re: x86/entry vs kgdb

2020-05-25 Thread Peter Zijlstra
On Mon, May 25, 2020 at 10:36:05AM +0200, Peter Zijlstra wrote: > Hi! > > Since you seem to care about kgdb, I figured you might want to fix this > before I mark it broken on x86 (we've been considering doing that for a > while). > > AFAICT the whole debugreg usage of kgdb-x86_64 is completely

Re: [PATCH] bus: arm-integrator-lm: Fix an IS_ERR() vs NULL check

2020-05-25 Thread Linus Walleij
Hi Dan, On Wed, May 20, 2020 at 2:08 PM Dan Carpenter wrote: > The of_find_matching_node() function returns NULL on error, it never > returns error pointers. This doesn't really impact runtime very much > because if "syscon" is NULL then syscon_node_to_regmap() will return > -EINVAL. The only

[PATCH v13 04/15] mm/damon: Implement region based sampling

2020-05-25 Thread SeongJae Park
From: SeongJae Park This commit implements DAMON's basic access check and region based sampling mechanisms. This change would seems make no sense, mainly because it is only a part of the DAMON's logics. Following two commits will make more sense. Basic Access Check -- DAMON

[PATCH v9 07/19] mtd: spi-nor: sfdp: prepare BFPT parsing for JESD216 rev D

2020-05-25 Thread Pratyush Yadav
JESD216 rev D makes BFPT 20 DWORDs. Update the BFPT size define to reflect that. The check for rev A or later compared the BFPT header length with the maximum BFPT length, BFPT_DWORD_MAX. Since BFPT_DWORD_MAX was 16, and so was the BFPT length for both rev A and B, this check worked fine. But

[PATCH v9 19/19] mtd: spi-nor: micron-st: allow using MT35XU512ABA in Octal DTR mode

2020-05-25 Thread Pratyush Yadav
Since this flash doesn't have a Profile 1.0 table, the Octal DTR capabilities are enabled in the post SFDP fixup, along with the 8D-8D-8D fast read settings. Enable Octal DTR mode with 20 dummy cycles to allow running at the maximum supported frequency of 200Mhz. The flash supports the soft

[PATCH v9 18/19] mtd: spi-nor: spansion: add support for Cypress Semper flash

2020-05-25 Thread Pratyush Yadav
The Cypress Semper flash is an xSPI compliant octal DTR flash. Add support for using it in octal DTR mode. The flash by default boots in a hybrid sector mode. But the sector map table on the part I had was programmed incorrectly and the SMPT values on the flash don't match the public datasheet.

[PATCH v13 02/15] mm/page_ext: Export lookup_page_ext() to GPL modules

2020-05-25 Thread SeongJae Park
From: SeongJae Park This commit exports 'lookup_page_ext()' to GPL modules. This will be used by DAMON. Signed-off-by: SeongJae Park --- mm/page_ext.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/page_ext.c b/mm/page_ext.c index 4ade843ff588..71169b45bba9 100644 --- a/mm/page_ext.c

[PATCH v9 16/19] mtd: spi-nor: core: disable Octal DTR mode on suspend.

2020-05-25 Thread Pratyush Yadav
On resume, the init procedure will be run that will re-enable it. Signed-off-by: Pratyush Yadav --- drivers/mtd/spi-nor/core.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index 68559386f6f8..63ab588299f4 100644

[PATCH v9 05/19] mtd: spi-nor: add support for DTR protocol

2020-05-25 Thread Pratyush Yadav
Double Transfer Rate (DTR) is SPI protocol in which data is transferred on each clock edge as opposed to on each clock cycle. Make framework-level changes to allow supporting flashes in DTR mode. Right now, mixed DTR modes are not supported. So, for example a mode like 4S-4D-4D will not work. All

[PATCH v9 09/19] mtd: spi-nor: sfdp: parse xSPI Profile 1.0 table

2020-05-25 Thread Pratyush Yadav
This table is indication that the flash is xSPI compliant and hence supports octal DTR mode. Extract information like the fast read opcode, dummy cycles, the number of dummy cycles needed for a Read Status Register command, and the number of address bytes needed for a Read Status Register command.

[PATCH v13 03/15] mm: Introduce Data Access MONitor (DAMON)

2020-05-25 Thread SeongJae Park
From: SeongJae Park This commit introduces a kernel module named DAMON. Note that this commit is implementing only the stub for the module load/unload, basic data structures, and simple manipulation functions of the structures to keep the size of commit small. The core mechanisms of DAMON will

[PATCH v9 10/19] mtd: spi-nor: core: use dummy cycle and address width info from SFDP

2020-05-25 Thread Pratyush Yadav
The xSPI Profile 1.0 table specifies how many dummy cycles and address bytes are needed for the Read Status Register command in octal DTR mode. Use that information to send the correct Read SR command. Signed-off-by: Pratyush Yadav --- drivers/mtd/spi-nor/core.c | 25 +++--

[PATCH v9 17/19] mtd: spi-nor: core: expose spi_nor_default_setup() in core.h

2020-05-25 Thread Pratyush Yadav
Flashes might want to add a custom setup hook to configure the flash in the proper mode for operation. But after that, they would still want to run the default setup hook because it selects the read, program, and erase operations. Since there is little point in repeating all that code, expose the

<    3   4   5   6   7   8   9   10   >