Re: [PATCH] staging: comedi: cast to (unsigned int *)

2021-02-17 Thread Greg KH
On Wed, Feb 17, 2021 at 10:29:08PM +0530, Atul Gopinathan wrote: > Resolve the following warning generated by sparse: > > drivers/staging//comedi/comedi_fops.c:2956:23: warning: incorrect type in > assignment (different address spaces) > drivers/staging//comedi/comedi_fops.c:2956:23:expected

Re: [PATCH 4/7] KVM: nVMX: move inject_page_fault tweak to .complete_mmu_init

2021-02-17 Thread Paolo Bonzini
On 17/02/21 18:29, Sean Christopherson wrote: All that being said, I'm pretty we can eliminate setting inject_page_fault dynamically. I think that would yield more maintainable code. Following these flows is a nightmare. The change itself will be scarier, but I'm pretty sure the end result

Re: [PATCH] drm/msm/dp: add support of HBR3 link rate

2021-02-17 Thread Stephen Boyd
Quoting Kuogee Hsieh (2021-02-17 08:58:42) > Add hbr3_hbr2 voltage and pre-emphasis swing table to support > HBR3 link rate > > Signed-off-by: Kuogee Hsieh > --- > drivers/gpu/drm/msm/dp/dp_panel.c | 4 > drivers/phy/qualcomm/phy-qcom-qmp.c | 24 ++-- This spans to

Re: [PATCH] mm: be more verbose for alloc_contig_range faliures

2021-02-17 Thread David Hildenbrand
On 17.02.21 18:26, Minchan Kim wrote: On Wed, Feb 17, 2021 at 05:51:27PM +0100, David Hildenbrand wrote: On 17.02.21 17:36, Minchan Kim wrote: alloc_contig_range is usually used on cma area or movable zone. It's critical if the page migration fails on those areas so dump more debugging message

Re: riscv+KASAN does not boot

2021-02-17 Thread Dmitry Vyukov
On Wed, Feb 17, 2021 at 5:36 PM Alex Ghiti wrote: > > Le 2/16/21 à 11:42 PM, Dmitry Vyukov a écrit : > > On Tue, Feb 16, 2021 at 9:42 PM Alex Ghiti wrote: > >> > >> Hi Dmitry, > >> > >> Le 2/16/21 à 6:25 AM, Dmitry Vyukov a écrit : > >>> On Tue, Feb 16, 2021 at 12:17 PM Dmitry Vyukov wrote: >

[PATCH 10/11] HID: playstation: add microphone mute support for DualSense.

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander The DualSense controller has a built-in microphone exposed as an audio device over USB (or HID using Bluetooth). A dedicated button on the controller handles mute, but software has to configure the device to mute the audio stream. This patch captures the mute button

[PATCH 09/11] HID: playstation: add initial DualSense lightbar support.

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander Provide initial support for the DualSense lightbar and configure it with a default PlayStation blue color. Signed-off-by: Roderick Colenbrander Reviewed-by: Barnabás Pőcze Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-playstation.c | 65

[PATCH 11/11] HID: playstation: add DualSense player LED support.

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander The DualSense features 5 player LEDs below its touchpad, which are meant as player id indications. The LEDs are configured with a player ID determined by an ID allocator, which assign player ids to ps_device instances. This patch is a combination of the following

[PATCH 08/11] HID: playstation: fix unused variable in ps_battery_get_property.

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander The ret variable in ps_battery_get_property is set in an error path, but never actually returned. Change the function to return ret. Reported-by: kernel test robot Signed-off-by: Roderick Colenbrander Signed-off-by: Benjamin Tissoires ---

[PATCH 07/11] HID: playstation: report DualSense hardware and firmware version.

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander Retrieve DualSense hardware and firmware information using a vendor specific feature report. Report the data through sysfs and also report using hid_info as there can be signficant differences between versions. Signed-off-by: Roderick Colenbrander Reviewed-by:

[PATCH] mm, compaction: make fast_isolate_freepages() stay within zone

2021-02-17 Thread Vlastimil Babka
Compaction always operates on pages from a single given zone when isolating both pages to migrate and freepages. Pageblock boundaries are intersected with zone boundaries to be safe in case zone starts or ends in the middle of pageblock. The use of pageblock_pfn_to_page() protects against

[PATCH 03/11] Revert "HID: playstation: DualSense set LEDs to default player id."

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander This reverts commit 05afe02ac24f ("HID: playstation: DualSense set LEDs to default player id.") There is currently an ongoing discussion on linux-leds LKML, and so to give us more room, we need to revert those related patches from linux-next. This is not a big deal,

[PATCH 02/11] Revert "HID: playstation: report DualSense hardware and firmware version."

2021-02-17 Thread Benjamin Tissoires
This reverts commit 1f902f8636e4 ("HID: playstation: report DualSense hardware and firmware version.") There is currently an ongoing discussion on linux-leds LKML, and so to give us more room, we need to revert those related LEDs patches from linux-next. To have a cleaner merge with the new

[PATCH 06/11] Revert "HID: playstation: add DualSense lightbar support"

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander This reverts commit ebbe998a4a52 ("HID: playstation: add DualSense lightbar support") There is currently an ongoing discussion on linux-leds LKML, and so to give us more room, we need to revert those related patches from linux-next. This is not a big deal, they are

[PATCH 04/11] Revert "HID: playstation: add DualSense player LEDs support."

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander This reverts commit c240f0cb88ec ("HID: playstation: add DualSense player LEDs support.") There is currently an ongoing discussion on linux-leds LKML, and so to give us more room, we need to revert those related patches from linux-next. This is not a big deal, they

[PATCH 05/11] Revert "HID: playstation: add microphone mute support for DualSense."

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander This reverts commit d5f7af85a537 ("HID: playstation: add microphone mute support for DualSense.") There is currently an ongoing discussion on linux-leds LKML, and so to give us more room, we need to revert those related patches from linux-next. This is not a big

[PATCH 01/11] Revert "HID: playstation: fix unused variable in ps_battery_get_property."

2021-02-17 Thread Benjamin Tissoires
This reverts commit 3847d15b41ce ("HID: playstation: fix unused variable in ps_battery_get_property.") There is currently an ongoing discussion on linux-leds LKML, and so to give us more room, we need to revert those related LEDs patches from linux-next. To have a cleaner merge with the new

Re: [PATCH v2 2/2] drm/bridge: Introduce LT8912 DSI to HDMI bridge

2021-02-17 Thread Robert Foss
Hey Adrien, Thanks for submitting this! On Mon, 15 Feb 2021 at 00:31, Adrien Grassein wrote: > > Lontium Lt8912 is a DSI to HDMI bridge. > > Signed-off-by: Adrien Grassein > --- > MAINTAINERS | 1 + > drivers/gpu/drm/bridge/Kconfig | 14 + >

[PATCH 00/11] HID: playstation: revert LED class exposure

2021-02-17 Thread Benjamin Tissoires
[sending those patches on behalf of Roderick] There is a current thread on LED LKML which basically means that we have to revert the LED class exposure until things are settled. I am sending here the full series that will end up in linux-next. But with some git magic, the final PR to Linus will

[PATCH 3/4] HID: input: replace outdated HID numbers+comments with macros

2021-02-17 Thread Ahelenia Ziemiańska
These were untouched since 2.3.99-pre3, and the explanatory comment for HID_DG_TIPPRESSURE is TipPressure on other places Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hid/hid-input.c

[PATCH 0/4] Stylus-on-touchscreen device support

2021-02-17 Thread наб
This patchset adds support for stylus-on-touchscreen devices as found on the OneMix 3 Pro and Dell Inspiron 15 7000 2-in-1 (7591), among others; with it, they properly behave like a drawing tablet. Patches 2 and 4 funxionally depend on patch 1. Patch 4 needs patch 3 to apply. The output of this

[PATCH 4/4] HID: input: work around Win8 stylus-on-touchscreen reporting

2021-02-17 Thread Ahelenia Ziemiańska
With this, these devices now behave as tablets as expected by userspace Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-input.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index

[PATCH 2/4] HID: multitouch: set Stylus suffix for Stylus-application devices, too

2021-02-17 Thread Ahelenia Ziemiańska
This re-adds the suffix to Win8 stylus-on-touchscreen devices, now that they aren't erroneously marked as MT Signed-off-by: Ahelenia Ziemiańska --- drivers/hid/hid-multitouch.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/hid/hid-multitouch.c

[PATCH 1/4] HID: multitouch: require Finger field to mark Win8 reports as MT

2021-02-17 Thread Ahelenia Ziemiańska
This effectively changes collection_is_mt from contact ID in report->field to (device is Win8 => collection is finger) && contact ID in report->field Some devices erroneously report Pen for fingers, and Win8 stylus-on-touchscreen devices report contact ID, but mark the accompanying

possible deadlock in mptcp_push_pending

2021-02-17 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:c48f8607 Merge branch 'PTP-for-DSA-tag_ocelot_8021q' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=16525cb0d0 kernel config: https://syzkaller.appspot.com/x/.config?x=dbc1ca9e55dc1f9f dashboard

WARNING in dst_release

2021-02-17 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:9ec5eea5 lib/parman: Delete newline git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=107fb9d2d0 kernel config: https://syzkaller.appspot.com/x/.config?x=dbc1ca9e55dc1f9f dashboard link:

KASAN: use-after-free Read in mptcp_established_options

2021-02-17 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:966df6de lan743x: sync only the received area of an rx rin.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=11afe082d0 kernel config: https://syzkaller.appspot.com/x/.config?x=dbc1ca9e55dc1f9f

possible deadlock in inet_stream_connect

2021-02-17 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:9ec5eea5 lib/parman: Delete newline git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=11380d24d0 kernel config: https://syzkaller.appspot.com/x/.config?x=dbc1ca9e55dc1f9f dashboard link:

general protection fault in mptcp_sendmsg_frag

2021-02-17 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:773dc50d Merge branch 'Xilinx-axienet-updates' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=1744ba4cd0 kernel config: https://syzkaller.appspot.com/x/.config?x=dbc1ca9e55dc1f9f dashboard link:

Re: [PATCH 4/7] KVM: nVMX: move inject_page_fault tweak to .complete_mmu_init

2021-02-17 Thread Sean Christopherson
On Wed, Feb 17, 2021, Maxim Levitsky wrote: > This fixes a (mostly theoretical) bug which can happen if ept=0 > on host and we run a nested guest which triggers a mmu context > reset while running nested. > In this case the .inject_page_fault callback will be lost. > > Signed-off-by: Maxim

[PATCH] arm64: dts: qcom: sc7180:: modified qfprom CORR size as per RAW size

2021-02-17 Thread Ravi Kumar Bokka
modified QFPROM controller CORRECTED region size as per RAW region size Signed-off-by: Ravi Kumar Bokka --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi index

Re: [PATCH] mm: be more verbose for alloc_contig_range faliures

2021-02-17 Thread Minchan Kim
On Wed, Feb 17, 2021 at 05:51:27PM +0100, David Hildenbrand wrote: > On 17.02.21 17:36, Minchan Kim wrote: > > alloc_contig_range is usually used on cma area or movable zone. > > It's critical if the page migration fails on those areas so > > dump more debugging message like memory_hotplug unless

[PATCH v3] vfs: fix copy_file_range regression in cross-fs copies

2021-02-17 Thread Luis Henriques
A regression has been reported by Nicolas Boichat, found while using the copy_file_range syscall to copy a tracefs file. Before commit 5dae222a5ff0 ("vfs: allow copy_file_range to copy across devices") the kernel would return -EXDEV to userspace when trying to copy a file across different

Re: [RFC PATCH v2 00/26] KVM/arm64: A stage 2 for the host

2021-02-17 Thread Quentin Perret
Hi Mate, On Wednesday 17 Feb 2021 at 17:27:07 (+0100), Mate Toth-Pal wrote: > We tested the pKVM changes pulled from here: > > > > https://android-kvm.googlesource.com/linux qperret/host-stage2-v2 > > > We were using a target with Arm architecture with FEAT_S2FWB, and found that > there

Re: [PATCH RFC] mm/madvise: introduce MADV_POPULATE to prefault/prealloc memory

2021-02-17 Thread Vlastimil Babka
+CC linux-api, please do on further revisions. Keeping rest of the e-mail. On 2/17/21 4:48 PM, David Hildenbrand wrote: > When we manage sparse memory mappings dynamically in user space - also > sometimes involving MADV_NORESERVE - we want to dynamically populate/ > discard memory inside such a

Re: [PATCH 2/2 v1] vdpa/mlx5: Enable user to add/delete vdpa device

2021-02-17 Thread Michael S. Tsirkin
On Wed, Feb 17, 2021 at 01:31:36PM +0200, Eli Cohen wrote: > Allow to control vdpa device creation and destruction using the vdpa > management tool. > > Examples: > 1. List the management devices > $ vdpa mgmtdev show > pci/:3b:00.1: > supported_classes net > > 2. Create vdpa instance > $

Re: [PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood

2021-02-17 Thread Jani Nikula
On Wed, 17 Feb 2021, Petr Mladek wrote: > On Mon 2021-02-15 16:39:26, Andy Shevchenko wrote: >> +Cc: Sakari and printk people >> >> On Mon, Feb 15, 2021 at 4:28 PM Christian König >> wrote: >> > Am 15.02.21 um 15:21 schrieb Andy Shevchenko: >> > > We have already few similar implementation and

Re: [PATCH RFC] mm/madvise: introduce MADV_POPULATE to prefault/prealloc memory

2021-02-17 Thread David Hildenbrand
On 17.02.21 17:46, Dave Hansen wrote: On 2/17/21 7:48 AM, David Hildenbrand wrote: While MADV_DONTNEED and FALLOC_FL_PUNCH_HOLE provide us ways to reliably discard memory, there is no generic approach to populate ("preallocate") memory. Although mmap() supports MAP_POPULATE, it is not

Re: [PATCH] arm64: Add part number for Arm Cortex-A78

2021-02-17 Thread Will Deacon
On Wed, Feb 17, 2021 at 10:14:11PM +0530, Neeraj Upadhyay wrote: > Add the MIDR part number info for the Arm Cortex-A78. > > Signed-off-by: Neeraj Upadhyay > --- > arch/arm64/include/asm/cputype.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/include/asm/cputype.h >

[PATCH] staging: comedi: cast to (unsigned int *)

2021-02-17 Thread Atul Gopinathan
Resolve the following warning generated by sparse: drivers/staging//comedi/comedi_fops.c:2956:23: warning: incorrect type in assignment (different address spaces) drivers/staging//comedi/comedi_fops.c:2956:23:expected unsigned int *chanlist drivers/staging//comedi/comedi_fops.c:2956:23:

Re: Should RCU_BOOST kernels use hrtimers in GP kthread?

2021-02-17 Thread Paul E. McKenney
On Wed, Feb 17, 2021 at 07:54:47AM -0800, Paul E. McKenney wrote: > On Wed, Feb 17, 2021 at 04:32:53PM +0100, Sebastian Andrzej Siewior wrote: > > On 2021-02-16 10:36:09 [-0800], Paul E. McKenney wrote: > > > Hello, Sebastian, > > > > Hi Paul, > > > > > I punted on this for the moment by making

Re: Using TCPM for ports without Power Delivery support

2021-02-17 Thread Guenter Roeck
On 2/17/21 7:28 AM, cristian.bir...@microchip.com wrote: > Hi Heikki, > > On 2/16/21 11:12 AM, Heikki Krogerus wrote: >> >> Hi Cristian, >> >> On Mon, Feb 15, 2021 at 05:25:29PM +, cristian.bir...@microchip.com >> wrote: >>> My name is Cristian and I'm working on bringing up a USB Type-C

[PATCH] mm: vmstat: add cma statistics

2021-02-17 Thread Minchan Kim
Since CMA is used more widely, it's worth to have CMA allocation statistics into vmstat. With it, we could know how agressively system uses cma allocation and how often it fails. Signed-off-by: Minchan Kim --- include/linux/vm_event_item.h | 3 +++ mm/cma.c | 12

[PATCH] drm/msm/dp: add support of HBR3 link rate

2021-02-17 Thread Kuogee Hsieh
Add hbr3_hbr2 voltage and pre-emphasis swing table to support HBR3 link rate Signed-off-by: Kuogee Hsieh --- drivers/gpu/drm/msm/dp/dp_panel.c | 4 drivers/phy/qualcomm/phy-qcom-qmp.c | 24 ++-- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git

Re: [PATCH 03/33] mm: Implement readahead_control pageset expansion

2021-02-17 Thread Mike Marshall
Matthew has looked at how I'm fumbling about trying to deal with Orangefs's need for much larger than page-sized IO... I think I need to implement orangefs_readahead and from there fire off an asynchronous read and while that's going I'll call readahead_page with a rac that I've cranked up with

[PATCH] sched/membarrier: fix missing local execution of ipi_sync_rq_state()

2021-02-17 Thread Mathieu Desnoyers
The function sync_runqueues_membarrier_state() should copy the membarrier state from the @mm received as parameter to each runqueue currently running tasks using that mm. However, the use of smp_call_function_many() skips the current runqueue, which is unintended. Replace by a call to

[PATCH v4 1/2] checkpatch: add verbose mode

2021-02-17 Thread Dwaipayan Ray
Add a new verbose mode to checkpatch.pl to emit additional verbose test descriptions. The verbose mode is optional and can be enabled by the flag -v or --verbose. The test descriptions are parsed from the checkpatch documentation file at `Documentation/dev-tools/checkpatch.rst`. The test

[PATCH v4 2/2] docs: add documentation for checkpatch

2021-02-17 Thread Dwaipayan Ray
Add documentation for kernel script checkpatch.pl. This documentation is also parsed by checkpatch to enable a verbose mode. The checkpatch message types are grouped by usage. Under each group the types are described briefly. 34 of such types are documented. Signed-off-by: Dwaipayan Ray ---

[PATCH v4 0/2] checkpatch: add verbose mode

2021-02-17 Thread Dwaipayan Ray
Add a new verbose mode to checkpatch. The verbose test descriptions are read from the checkpatch documentation file at `Documentation/dev-tools/checkpatch.rst`. The verbose mode is optional and can be enabled by the flag -v or --verbose. The documentation file is only parsed by checkpatch.pl if

Re: [PATCH] mm: be more verbose for alloc_contig_range faliures

2021-02-17 Thread David Hildenbrand
On 17.02.21 17:36, Minchan Kim wrote: alloc_contig_range is usually used on cma area or movable zone. It's critical if the page migration fails on those areas so dump more debugging message like memory_hotplug unless user specifiy __GFP_NOWARN. Signed-off-by: Minchan Kim --- mm/page_alloc.c

[PATCH] cert: Add kconfig dependency for validate_trust

2021-02-17 Thread Eric Snowberg
The kernel test robot reports when building with Kconfig CONFIG_INTEGRITY_PLATFORM_KEYRING defined and CONFIG_SYSTEM_DATA_VERIFICATION undefined: ld.lld: error: undefined symbol: pkcs7_validate_trust referenced by blacklist.c:128 (certs/blacklist.c:128)

RE: [PATCH v25 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2021-02-17 Thread Ben Levinsky
Hi Mathieu, Please see my replies to your questions inline Again thanks for the continued review of this set Cheers Ben > -Original Message- > From: Mathieu Poirier > Sent: Tuesday, February 16, 2021 10:48 AM > To: Ben Levinsky > Cc: devicet...@vger.kernel.org;

Re: [PATCH RFC] mm/madvise: introduce MADV_POPULATE to prefault/prealloc memory

2021-02-17 Thread Dave Hansen
On 2/17/21 7:48 AM, David Hildenbrand wrote: > While MADV_DONTNEED and FALLOC_FL_PUNCH_HOLE provide us ways to reliably > discard memory, there is no generic approach to populate ("preallocate") > memory. > > Although mmap() supports MAP_POPULATE, it is not applicable to the concept > of sparse

Re: [PATCH v3] bus: mhi: core: Return EAGAIN if MHI ring is full

2021-02-17 Thread Hemant Kumar
On 2/17/21 8:26 AM, Jeffrey Hugo wrote: From: Fan Wu Currently ENOMEM is returned when MHI ring is full. This error code is very misleading. Change to EAGAIN instead. Signed-off-by: Fan Wu Signed-off-by: Jeffrey Hugo --- Reviewed-by: Hemant Kumar -- The Qualcomm Innovation Center, Inc.

[PATCH] arm64: Add part number for Arm Cortex-A78

2021-02-17 Thread Neeraj Upadhyay
Add the MIDR part number info for the Arm Cortex-A78. Signed-off-by: Neeraj Upadhyay --- arch/arm64/include/asm/cputype.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/cputype.h b/arch/arm64/include/asm/cputype.h index ef5b040..3aced88 100644 ---

[PATCH v2] bus: mhi: core: Check state before processing power_down

2021-02-17 Thread Jeffrey Hugo
We cannot process a power_down if the power state is DISABLED. There is no valid mhi_ctxt in that case, so attepting to process the power_down will likely result in a null pointer dereference. If the power state is DISABLED, there is nothing to do anyways, so just bail early. Signed-off-by:

Re: riscv+KASAN does not boot

2021-02-17 Thread Alex Ghiti
Le 2/16/21 à 11:42 PM, Dmitry Vyukov a écrit : On Tue, Feb 16, 2021 at 9:42 PM Alex Ghiti wrote: Hi Dmitry, Le 2/16/21 à 6:25 AM, Dmitry Vyukov a écrit : On Tue, Feb 16, 2021 at 12:17 PM Dmitry Vyukov wrote: On Fri, Jan 29, 2021 at 9:11 AM Dmitry Vyukov wrote: I was fixing KASAN

[PATCH] mm: be more verbose for alloc_contig_range faliures

2021-02-17 Thread Minchan Kim
alloc_contig_range is usually used on cma area or movable zone. It's critical if the page migration fails on those areas so dump more debugging message like memory_hotplug unless user specifiy __GFP_NOWARN. Signed-off-by: Minchan Kim --- mm/page_alloc.c | 16 +++- 1 file changed, 15

Re: code style: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-17 Thread Chris Down
Chris Down writes: open(f); debugfs_file_get(f); fops->open(); inode->private = ps; debugfs_file_put(f); remove_printk_fmt_sec(); /* kfree ps */ read(f); debugfs_file_get(f); fops->read(); ps = inode->private; /* invalid */ debugfs_file_put(f); Er, sorry, inode->private is

[PATCH 4/4] hugetlb/userfaultfd: Unshare all pmds for hugetlbfs when register wp

2021-02-17 Thread Peter Xu
Huge pmd sharing for hugetlbfs is racy with userfaultfd-wp because userfaultfd-wp is always based on pgtable entries, so they cannot be shared. Walk the hugetlb range and unshare all such mappings if there is, right before UFFDIO_REGISTER will succeed and return to userspace. This will pair with

[PATCH 1/4] hugetlb: Pass vma into huge_pte_alloc() and huge_pmd_share()

2021-02-17 Thread Peter Xu
It is a preparation work to be able to behave differently in the per architecture huge_pte_alloc() according to different VMA attributes. Pass it deeper into huge_pmd_share() so that we can avoid the find_vma() call. Suggested-by: Mike Kravetz Reviewed-by: Mike Kravetz Signed-off-by: Peter Xu

[PATCH 2/4] hugetlb/userfaultfd: Forbid huge pmd sharing when uffd enabled

2021-02-17 Thread Peter Xu
Huge pmd sharing could bring problem to userfaultfd. The thing is that userfaultfd is running its logic based on the special bits on page table entries, however the huge pmd sharing could potentially share page table entries for different address ranges. That could cause issues on either: -

[PATCH 3/4] mm/hugetlb: Move flush_hugetlb_tlb_range() into hugetlb.h

2021-02-17 Thread Peter Xu
Prepare for it to be called outside of mm/hugetlb.c. Reviewed-by: Mike Kravetz Signed-off-by: Peter Xu --- include/linux/hugetlb.h | 8 mm/hugetlb.c| 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/linux/hugetlb.h

[PATCH 0/4] hugetlb: Disable huge pmd unshare for uffd-wp

2021-02-17 Thread Peter Xu
This series tries to disable huge pmd unshare of hugetlbfs backed memory for uffd-wp. Although uffd-wp of hugetlbfs is still during rfc stage, the idea of this series may be needed for multiple tasks (Axel's uffd minor fault series, and Mike's soft dirty series), so I picked it out from the

Re: [PATCH 1/7] KVM: VMX: read idt_vectoring_info a bit earlier

2021-02-17 Thread Paolo Bonzini
On 17/02/21 17:21, Sean Christopherson wrote: On Wed, Feb 17, 2021, Maxim Levitsky wrote: On Wed, 2021-02-17 at 17:06 +0100, Paolo Bonzini wrote: On 17/02/21 15:57, Maxim Levitsky wrote: diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index b3e36dc3f164..e428d69e21c0 100644 ---

Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management

2021-02-17 Thread Rui Salvaterra
Hi, Andrew, On Wed, 17 Feb 2021 at 16:22, Andrew Lunn wrote: > > Hi Rui > > I don't know all the details for the MBus Windows... Neither do I, I just followed the examples in other device trees (namely armada-385-linksys.dtsi). I wanted to get hardware buffer management working on my Omnia, in

Re: [PATCH] staging: wlan-ng: Fixed incorrect type warning in p80211netdev.c

2021-02-17 Thread Pritthijit Nath
On 17/02/21 9:23 pm, Greg KH wrote: > On Wed, Feb 17, 2021 at 09:12:55PM +0530, Pritthijit Nath wrote: >> This change fixes a sparse warning "incorrect type in argument 1 >> (different address spaces)". >> >> Signed-off-by: Pritthijit Nath >> --- >> drivers/staging/wlan-ng/p80211netdev.c | 2 +-

Re: [RFC PATCH v2 00/26] KVM/arm64: A stage 2 for the host

2021-02-17 Thread Mate Toth-Pal
Hi Quentin, On 2021-01-08 13:14, Quentin Perret wrote: Hi all, This is the v2 of the series previously posted here: https://lore.kernel.org/kvmarm/20201117181607.1761516-1-qper...@google.com/ This basically allows us to wrap the host with a stage 2 when running in nVHE, hence paving the

Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management

2021-02-17 Thread Marek Behún
On Wed, 17 Feb 2021 17:22:17 +0100 Andrew Lunn wrote: > On Wed, Feb 17, 2021 at 03:30:38PM +, Rui Salvaterra wrote: > > Hardware buffer management has never worked on the Turris Omnia, as the > > required MBus window hadn't been reserved. Fix thusly. > > Hi Rui > > I don't know all the

Re: [PATCH net-next v4 6/8] net: mscc: ocelot: Add support for MRP

2021-02-17 Thread Horatiu Vultur
The 02/17/2021 11:14, Vladimir Oltean wrote: > > On Tue, Feb 16, 2021 at 10:42:03PM +0100, Horatiu Vultur wrote: > > Add basic support for MRP. The HW will just trap all MRP frames on the > > ring ports to CPU and allow the SW to process them. In this way it is > > possible to for this node to

[PATCH v3] bus: mhi: core: Return EAGAIN if MHI ring is full

2021-02-17 Thread Jeffrey Hugo
From: Fan Wu Currently ENOMEM is returned when MHI ring is full. This error code is very misleading. Change to EAGAIN instead. Signed-off-by: Fan Wu Signed-off-by: Jeffrey Hugo --- v3: Fix subject v2: Change from EBUSY to EAGAIN drivers/bus/mhi/core/main.c | 2 +- 1 file changed, 1

Re: code style: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-17 Thread Chris Down
Petr Mladek writes: What about storing the pointer to struct pf_object into struct printk_fmt_sec *ps into the s->file->f_inode->i_private? Then we would not need any global list/table at all. Unless I'm misreading the debugfs code, I think the following is possible: open(f);

Re: [RFC PATCH 1/5] hugetlb: add hugetlb helpers for soft dirty support

2021-02-17 Thread Peter Xu
On Wed, Feb 10, 2021 at 04:03:18PM -0800, Mike Kravetz wrote: > Add interfaces to set and clear soft dirty in hugetlb ptes. Make > hugetlb interfaces needed for /proc clear_refs available outside > hugetlb.c. > > arch/s390 has it's own version of most routines in asm-generic/hugetlb.h, > so add

Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management

2021-02-17 Thread Andrew Lunn
On Wed, Feb 17, 2021 at 03:30:38PM +, Rui Salvaterra wrote: > Hardware buffer management has never worked on the Turris Omnia, as the > required MBus window hadn't been reserved. Fix thusly. Hi Rui I don't know all the details for the MBus Windows... Can this be set once in armada-385.dtsi

[PATCH v2] bus: mhi: core: Sanity check values from remote device before use

2021-02-17 Thread Jeffrey Hugo
When parsing the structures in the shared memory, there are values which come from the remote device. For example, a transfer completion event will have a pointer to the tre in the relevant channel's transfer ring. Such values should be considered to be untrusted, and validated before use. If we

Re: [PATCH 1/7] KVM: VMX: read idt_vectoring_info a bit earlier

2021-02-17 Thread Sean Christopherson
On Wed, Feb 17, 2021, Maxim Levitsky wrote: > On Wed, 2021-02-17 at 17:06 +0100, Paolo Bonzini wrote: > > On 17/02/21 15:57, Maxim Levitsky wrote: > > > diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c > > > index b3e36dc3f164..e428d69e21c0 100644 > > > --- a/arch/x86/kvm/vmx/vmx.c > >

Re: [PATCH v17 07/10] mm: introduce memfd_secret system call to create "secret" memory areas

2021-02-17 Thread James Bottomley
On Tue, 2021-02-16 at 18:16 +0100, David Hildenbrand wrote: [...] > > > The discussion regarding migratability only really popped up > > > because this is a user-visible thing and not being able to > > > migrate can be a real problem (fragmentation, ZONE_MOVABLE, ...). > > > > I think the

Re: [PATCH net-next v4 5/8] bridge: mrp: Update br_mrp to use new return values of br_mrp_switchdev

2021-02-17 Thread Horatiu Vultur
The 02/17/2021 10:59, Vladimir Oltean wrote: > > On Tue, Feb 16, 2021 at 10:42:02PM +0100, Horatiu Vultur wrote: > > diff --git a/net/bridge/br_mrp.c b/net/bridge/br_mrp.c > > index 01c67ed727a9..12487f6fe9b4 100644 > > --- a/net/bridge/br_mrp.c > > +++ b/net/bridge/br_mrp.c > > @@ -639,7 +639,7

Re: [PATCH 1/7] KVM: VMX: read idt_vectoring_info a bit earlier

2021-02-17 Thread Maxim Levitsky
On Wed, 2021-02-17 at 17:06 +0100, Paolo Bonzini wrote: > On 17/02/21 15:57, Maxim Levitsky wrote: > > diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c > > index b3e36dc3f164..e428d69e21c0 100644 > > --- a/arch/x86/kvm/vmx/vmx.c > > +++ b/arch/x86/kvm/vmx/vmx.c > > @@ -6921,13 +6921,15

Re: [PATCH 03/33] mm: Implement readahead_control pageset expansion

2021-02-17 Thread Matthew Wilcox
On Mon, Feb 15, 2021 at 03:44:52PM +, David Howells wrote: > +++ b/include/linux/pagemap.h > @@ -761,6 +761,8 @@ extern void __delete_from_page_cache(struct page *page, > void *shadow); > int replace_page_cache_page(struct page *old, struct page *new, gfp_t > gfp_mask); > void

Re: [PATCH v3 1/3] platform/x86: dell-privacy: Add support for Dell hardware privacy

2021-02-17 Thread Pierre-Louis Bossart
On 2/17/21 6:47 AM, Perry Yuan wrote: Hi Pierre: On 2021/2/16 22:56, Pierre-Louis Bossart wrote: +static const struct acpi_device_id privacy_acpi_device_ids[] = { +    {"PNP0C09", 0}, +    { }, +}; +MODULE_DEVICE_TABLE(acpi, privacy_acpi_device_ids); + +static struct platform_driver

Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management

2021-02-17 Thread Rui Salvaterra
Hi again, Marek, On Wed, 17 Feb 2021 at 16:10, Marek Behún wrote: > > Rui, in the future make the subject prefix > [PATCH mvebu-dt] > or > [PATCH mvebu/dt] > > so that Gregory knows its for him and for which branch. Thanks, will do! Cheers, Rui

Re: [PATCH v10 10/16] KVM: x86: Introduce KVM_GET_SHARED_PAGES_LIST ioctl

2021-02-17 Thread Sean Christopherson
On Wed, Feb 17, 2021, Kalra, Ashish wrote: > From: Sean Christopherson > On Thu, Feb 04, 2021, Ashish Kalra wrote: > > From: Brijesh Singh > > > > The ioctl is used to retrieve a guest's shared pages list. > > >What's the performance hit to boot time if KVM_HC_PAGE_ENC_STATUS is passed >

[PATCH v2 8/8] arm64: defconfig: Enable wm8960 audio driver.

2021-02-17 Thread Adrien Grassein
This driver is used by the Nitrogen8m Mini SBC. Signed-off-by: Adrien Grassein Reviewed-by: Krzysztof Kozlowski --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 292c00f893fc..bd310e91d4ed

[PATCH v2 7/8] arm64: dts: imx8mm-nitrogen-r2: add audio

2021-02-17 Thread Adrien Grassein
Add audio description and pin muxing. Signed-off-by: Adrien Grassein --- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 86 +++ 1 file changed, 86 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts

[PATCH v2 6/8] arm64: dts: imx8mm-nitrogen-r2: add FlexSPI

2021-02-17 Thread Adrien Grassein
Add FlexSPI description an pin muxing. Signed-off-by: Adrien Grassein Reviewed-by: Krzysztof Kozlowski --- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts

[PATCH] mhi_bus: core: Sanity check values from remote device before use

2021-02-17 Thread Jeffrey Hugo
When parsing the structures in the shared memory, there are values which come from the remote device. For example, a transfer completion event will have a pointer to the tre in the relevant channel's transfer ring. Such values should be considered to be untrusted, and validated before use. If we

[PATCH v2 3/8] arm64: dts: imx8mm-nitrogen-r2: add espi2 support

2021-02-17 Thread Adrien Grassein
Add the description for espi support. Signed-off-by: Adrien Grassein Reviewed-by: Krzysztof Kozlowski --- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 30 +++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts

[PATCH v2 4/8] arm64: dts: imx8mm-nitrogen-r2: add UARTs

2021-02-17 Thread Adrien Grassein
Add description and pin muxing for UARTs. Signed-off-by: Adrien Grassein --- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 50 ++- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts

[PATCH v2 5/8] arm64: dts: imx8mm-nitrogen-r2: add PWMs

2021-02-17 Thread Adrien Grassein
Add description for the four PWMs. Signed-off-by: Adrien Grassein Reviewed-by: Krzysztof Kozlowski --- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 51 +++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts

[PATCH v2 1/8] arm64: dts: imx8mm-nitrogen-r2: add wifi/bt chip

2021-02-17 Thread Adrien Grassein
Add usdhc3 description which corresponds to the wifi/bt chip Signed-off-by: Adrien Grassein --- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-nitrogen-r2.dts

[PATCH v2 2/8] arm64: dts: imx8mm-nitrogen-r2: add USB support

2021-02-17 Thread Adrien Grassein
Add description of USB. usbotg2 seems to not working on all boards (including ones from variscite). Signed-off-by: Adrien Grassein Reviewed-by: Krzysztof Kozlowski --- .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 42 +++ 1 file changed, 42 insertions(+) diff --git

Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management

2021-02-17 Thread Marek Behún
Rui, in the future make the subject prefix [PATCH mvebu-dt] or [PATCH mvebu/dt] so that Gregory knows its for him and for which branch. Marek

Re: [PATCH 4/8] arm64: dts: imx8mm-nitrogen-r2: add uarts

2021-02-17 Thread Adrien Grassein
Le mer. 17 févr. 2021 à 15:22, Krzysztof Kozlowski a écrit : > > On Tue, Feb 16, 2021 at 12:19:39AM +0100, Adrien Grassein wrote: > > Add description and pinmuxing for uarts. > > > > Signed-off-by: Adrien Grassein > > --- > > .../boot/dts/freescale/imx8mm-nitrogen-r2.dts | 53

[PATCH v2 0/8] Add peripheral support for imx8mm-nitrogen-r2 board

2021-02-17 Thread Adrien Grassein
Hi, this patch set is to add several peripheral support for the imx8mm-nitrogen-r2 board. Thanks, Update in v2: - Fix some typo found in v1; - Fix UART description Adrien Grassein (8): arm64: dts: imx8mm-nitrogen-r2: add wifi/bt chip arm64: dts: imx8mm-nitrogen-r2: add USB support

Re: code style: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-17 Thread Petr Mladek
On Tue 2021-02-16 17:27:08, Chris Down wrote: > Petr Mladek writes: > > > +/* > > > + * Stores .printk_fmt section boundaries for vmlinux and all loaded > > > modules. > > > + * Add entries with store_printk_fmt_sec, remove entries with > > > + * remove_printk_fmt_sec. > > > + */ > > > +static

Re: [PATCH net-next v4 2/8] switchdev: mrp: Extend ring_role_mrp and in_role_mrp

2021-02-17 Thread Vladimir Oltean
On Wed, Feb 17, 2021 at 04:58:45PM +0100, Horatiu Vultur wrote: > > If a driver implements full MRP offload for a ring/interconnect > > manager/automanager, should it return -EOPNOTSUPP when sw_backup=false? > > In that case it should return 0. > So if the driver can: > - fully support MRP, when

Re: [PATCH 1/7] KVM: VMX: read idt_vectoring_info a bit earlier

2021-02-17 Thread Paolo Bonzini
On 17/02/21 15:57, Maxim Levitsky wrote: diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index b3e36dc3f164..e428d69e21c0 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -6921,13 +6921,15 @@ static fastpath_t vmx_vcpu_run(struct kvm_vcpu *vcpu) if

Re: [PATCH 1/2] ext4: Handle casefolding with encryption

2021-02-17 Thread Theodore Ts'o
On Tue, Feb 16, 2021 at 08:01:11PM -0800, Daniel Rosenberg wrote: > I'm not sure what the conflict is, at least format-wise. Naturally, > there would need to be some work to reconcile the two patches, but my > patch only alters the format for directories which are encrypted and > casefolded, which

Re: [PATCH] mhi_bus: core: Return EBUSY if MHI ring is full

2021-02-17 Thread Loic Poulain
On Wed, 17 Feb 2021 at 16:06, Jeffrey Hugo wrote: > > On 2/17/2021 8:02 AM, Loic Poulain wrote: > > On Tue, 16 Feb 2021 at 19:50, Jeffrey Hugo wrote: > >> > >> From: Fan Wu > >> > >> Currently ENOMEM is returned when MHI ring is full. This error code is > >> very misleading. Change to EBUSY

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