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

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;

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

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

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

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

Re: [RESEND PATCH] drm/tilcdc: fix raster control register setting

2021-02-17 Thread Dario Binacchi
Hi Tomi, > Il 17/02/2021 07:41 Tomi Valkeinen ha > scritto: > > > On 16/02/2021 22:22, Dario Binacchi wrote: > > The fdd property of the tilcdc_panel_info structure must set the reqdly > > bit field (bit 12 to 19) of the raster control register. The previous > > statement set the least

Re: [PATCH 6/7] KVM: nVMX: don't load PDPTRS right after nested state set

2021-02-17 Thread Sean Christopherson
On Wed, Feb 17, 2021, Maxim Levitsky wrote: > Just like all other nested memory accesses, after a migration loading > PDPTRs should be delayed to first VM entry to ensure > that guest memory is fully initialized. > > Just move the call to nested_vmx_load_cr3 to nested_get_vmcs12_pages > to

Re: [PATCH] perf tools: Add OCaml demangling

2021-02-17 Thread Arnaldo Carvalho de Melo
Em Tue, Feb 16, 2021 at 04:47:30PM +0900, Namhyung Kim escreveu: > Hello, > > (+ Cc: LKML) > > On Thu, Feb 4, 2021 at 6:22 AM Fabian Hemmer wrote: > > > > Detect symbols generated by the OCaml compiler based on their prefix. > > > > Demangle OCaml symbols, returning a newly allocated string

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

2021-02-17 Thread David Rientjes
On Wed, 17 Feb 2021, Vlastimil Babka wrote: > 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

Re: [PATCH 2/2] rcu-tasks: add RCU-tasks self tests

2021-02-17 Thread Paul E. McKenney
On Wed, Feb 17, 2021 at 11:47:59PM +0900, Masami Hiramatsu wrote: > On Tue, 16 Feb 2021 09:30:03 -0800 > "Paul E. McKenney" wrote: > > > On Mon, Feb 15, 2021 at 12:28:26PM +0100, Sebastian Andrzej Siewior wrote: > > > On 2021-02-13 08:45:54 [-0800], Paul E. McKenney wrote: > > > > Glad you like

Re: output: was: Re: [PATCH v4] printk: Userspace format enumeration support

2021-02-17 Thread Steven Rostedt
On Wed, 17 Feb 2021 15:28:24 + Chris Down wrote: > Petr Mladek writes: > >I guess that you already use it internally and have its own tooling > >around it. > > Hmm, we're actually not using it yet widely because I don't want to backport > it > to our prod kernel until we're reasonably

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

2021-02-17 Thread Ben Levinsky
Hi Mathieu, I worked on this further and had 1 more comment on the prepare/unprepare for TCM banks below > -Original Message- > From: Ben Levinsky > Sent: Wednesday, February 17, 2021 8:47 AM > To: Mathieu Poirier > Cc: devicet...@vger.kernel.org; linux-remotep...@vger.kernel.org;

[PATCH 3/3] Input: applespi: Add trace_event module param for early tracing.

2021-02-17 Thread Ronald Tschalär
The problem is that tracing can't be set via sysfs until the module is loaded, at which point the keyboard and trackpad initialization commands have already been run and hence tracing can't be used to debug problems here. Adding this param allows tracing to be enabled for messages sent and

[PATCH 2/3] Input: applespi: Fix occasional crc errors under load.

2021-02-17 Thread Ronald Tschalär
For some reason, when the system is under heavy CPU load, the read following the write sometimes occurs unusually quickly, resulting in the read data not being quite ready and hence a bad packet getting read. Adding another delay after reading the status message appears to fix this.

[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

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

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

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

[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

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 v2 net-next 1/3] ptp: ptp_clockmatrix: Add wait_for_sys_apll_dpll_lock.

2021-02-17 Thread Jakub Kicinski
On Tue, 16 Feb 2021 13:12:29 -0500 Vincent Cheng wrote: > >> +} > >> + > >> +static int wait_for_sys_apll_dpll_lock(struct idtcm *idtcm) > >> +{ > >> + const char *fmt = "%d ms SYS lock timeout: APLL Loss Lock %d DPLL > >> state %d"; > >> + u8 i = LOCK_TIMEOUT_MS / LOCK_POLL_INTERVAL_MS; > >

Re: [PATCH v2] IMA: support for duplicate data measurement

2021-02-17 Thread Tushar Sugandhi
Thanks for the feedback Mimi. Appreciate it. On 2021-02-17 7:03 a.m., Mimi Zohar wrote: Hi Tushar, The Subject line could be improved. Perhaps something like - "IMA: support for duplicate measurement records" Will do. On Tue, 2021-02-16 at 18:46 -0800, Tushar Sugandhi wrote: IMA does not

Re: [PATCH 1/2] hugetlb: fix update_and_free_page contig page struct assumption

2021-02-17 Thread Andrew Morton
On Wed, 17 Feb 2021 10:49:25 -0800 Mike Kravetz wrote: > page structs are not guaranteed to be contiguous for gigantic pages. The > routine update_and_free_page can encounter a gigantic page, yet it assumes > page structs are contiguous when setting page flags in subpages. > > If

[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

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 >

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

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

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

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

Re: [PATCH v3 4/8] cgroup: rstat: support cgroup1

2021-02-17 Thread Michal Koutný
Hello. On Tue, Feb 09, 2021 at 11:33:00AM -0500, Johannes Weiner wrote: > @@ -1971,10 +1978,14 @@ int cgroup_setup_root(struct cgroup_root *root, u16 > ss_mask) > if (ret) > goto destroy_root; > > - ret = rebind_subsystems(root, ss_mask); > + ret =

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

2021-02-17 Thread Pavel Machek
On Wed 2021-02-17 18:31:47, Benjamin Tissoires wrote: > [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

Re: [PATCH v3 1/8] mm: memcontrol: fix cpuhotplug statistics flushing

2021-02-17 Thread Michal Koutný
On Tue, Feb 09, 2021 at 11:32:57AM -0500, Johannes Weiner wrote: > mm/memcontrol.c | 35 +-- > 1 file changed, 21 insertions(+), 14 deletions(-) Reviewed-by: Michal Koutný signature.asc Description: Digital signature

Re: [PATCH v3 2/8] mm: memcontrol: kill mem_cgroup_nodeinfo()

2021-02-17 Thread Michal Koutný
On Tue, Feb 09, 2021 at 11:32:58AM -0500, Johannes Weiner wrote: > include/linux/memcontrol.h | 8 +--- > mm/memcontrol.c| 21 +++-- > 2 files changed, 12 insertions(+), 17 deletions(-) Reviewed-by: Michal Koutný signature.asc Description: Digital signature

Re: [PATCH v3 3/8] mm: memcontrol: privatize memcg_page_state query functions

2021-02-17 Thread Michal Koutný
On Tue, Feb 09, 2021 at 11:32:59AM -0500, Johannes Weiner wrote: > include/linux/memcontrol.h | 44 -- > mm/memcontrol.c| 32 +++ > 2 files changed, 32 insertions(+), 44 deletions(-) Reviewed-by: Michal Koutný

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

2021-02-17 Thread Minchan Kim
On Wed, Feb 17, 2021 at 06:34:13PM +0100, David Hildenbrand wrote: > 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. > >

Re: [PATCH 1/3] x86/sev-es: Introduce from_syscall_gap() helper

2021-02-17 Thread Borislav Petkov
I guess subject prefix should be "x86/traps:" but I'll fix that up while applying eventually. On Wed, Feb 17, 2021 at 01:01:41PM +0100, Joerg Roedel wrote: > From: Joerg Roedel > > Introduce a helper to check whether an exception came from the syscall > gap and use it in the SEV-ES code > >

Re: [PATCH 2/3] x86/sev-es: Check if regs->sp is trusted before adjusting #VC IST stack

2021-02-17 Thread Borislav Petkov
On Wed, Feb 17, 2021 at 01:01:42PM +0100, Joerg Roedel wrote: > From: Joerg Roedel > > The code in the NMI handler to adjust the #VC handler IST stack is > needed in case an NMI hits when the #VC handler is still using its IST > stack. > But the check for this condition also needs to look if the

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, Paolo Bonzini wrote: > 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 > >

Re: [PATCH v3 2/2] drm/i915/icp+: Use icp_hpd_irq_setup() instead of spt_hpd_irq_setup()

2021-02-17 Thread Rodrigo Vivi
On Tue, Feb 16, 2021 at 09:53:37PM -0500, Lyude Paul wrote: > While reviewing patches for handling workarounds related to gen9 bc, Imre > from Intel discovered that we're using spt_hpd_irq_setup() on ICP+ PCHs > despite it being almost the same as icp_hpd_irq_setup(). Since we need to > be calling

Re: [PATCH] perf annotate: do not jump after 'k' is pressed

2021-02-17 Thread Arnaldo Carvalho de Melo
Em Mon, Feb 15, 2021 at 01:45:25PM +0100, Martin Liška escreveu: > Do not jump when 'k' is pressed, the cursor show stay where it is. > Right now, it jumps to the currently selected hot instruction. Thanks, applied. - Arnaldo > Signed-off-by: Martin Liška > --- >

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

2021-02-17 Thread Greg KH
On Wed, Feb 17, 2021 at 11:40:00PM +0530, Atul Gopinathan wrote: > On Wed, Feb 17, 2021 at 06:35:15PM +0100, Greg KH wrote: > > On Wed, Feb 17, 2021 at 10:29:08PM +0530, Atul Gopinathan wrote: > > > Resolve the following warning generated by sparse: > > > > > >

Re: [PATCH v1 02/18] media: hantro: Define HEVC codec profiles and supported features

2021-02-17 Thread Ezequiel Garcia
Hello Benjamin, Thanks a lot for the patch. On Wed, 2021-02-17 at 09:02 +0100, Benjamin Gaignard wrote: > Define which HEVC profiles (up to level 5.1) and features > (no scaling, no 10 bits) are supported by the driver. > > Signed-off-by: Benjamin Gaignard > Signed-off-by: Ezequiel Garcia >

Re: [RFC PATCH 2/5] hugetlb: enhance hugetlb fault processing to support soft dirty

2021-02-17 Thread Peter Xu
On Wed, Feb 10, 2021 at 04:03:19PM -0800, Mike Kravetz wrote: > hugetlb fault processing code would COW all write faults where the > pte was not writable. Soft dirty will write protect ptes as part > of it's tracking mechanism. The existing hugetlb_cow code will do > the right thing for PRIVATE

[net-next PATCH v6 03/15] net: phy: Introduce phy related fwnode functions

2021-02-17 Thread Calvin Johnson
Define fwnode_phy_find_device() to iterate an mdiobus and find the phy device of the provided phy fwnode. Additionally define device_phy_find_device() to find phy device of provided device. Define fwnode_get_phy_node() to get phy_node using named reference. Signed-off-by: Calvin Johnson ---

[net-next PATCH v6 12/15] net/fsl: Use fwnode_mdiobus_register()

2021-02-17 Thread Calvin Johnson
fwnode_mdiobus_register() internally takes care of both DT and ACPI cases to register mdiobus. Replace existing of_mdiobus_register() with fwnode_mdiobus_register(). Note: For both ACPI and DT cases, endianness of MDIO controller need to be specified using "little-endian" property.

[net-next PATCH v6 09/15] ACPI: utils: Introduce acpi_get_local_address()

2021-02-17 Thread Calvin Johnson
Introduce a wrapper around the _ADR evaluation. Signed-off-by: Calvin Johnson --- Changes in v6: None Changes in v5: - Replace fwnode_get_id() with acpi_get_local_address() Changes in v4: - Improve code structure to handle all cases Changes in v3: - Modified to retrieve reg property value for

[net-next PATCH v6 11/15] net: mdiobus: Introduce fwnode_mdiobus_register()

2021-02-17 Thread Calvin Johnson
Introduce fwnode_mdiobus_register() to register PHYs on the mdiobus. If the fwnode is DT node, then call of_mdiobus_register(). If it is an ACPI node, then call acpi_mdiobus_register(). Signed-off-by: Calvin Johnson --- Changes in v6: None Changes in v5: None Changes in v4: - Remove redundant

Re: arch/arm/kernel/sys_oabi-compat.c:257:6: error: implicit declaration of function 'ep_op_has_event'

2021-02-17 Thread Randy Dunlap
On 2/17/21 9:26 PM, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: f40ddce88593482919761f74910f42f4b84c004b > commit: c281634c865202e2776b0250678ff93c771947ff ARM: compat: remove > KERNEL_DS usage in sys_oabi_epoll_ctl() >

Re: [PATCH v2 3/3] mm: Fix missing mem cgroup soft limit tree updates

2021-02-17 Thread Johannes Weiner
On Wed, Feb 17, 2021 at 12:41:36PM -0800, Tim Chen wrote: > On a per node basis, the mem cgroup soft limit tree on each node tracks > how much a cgroup has exceeded its soft limit memory limit and sorts > the cgroup by its excess usage. On page release, the trees are not > updated right away,

RE: [PATCH v7 bpf-next 0/6] xsk: build skb by page (aka generic zerocopy xmit)

2021-02-17 Thread John Fastabend
Alexander Lobakin wrote: > This series introduces XSK generic zerocopy xmit by adding XSK umem > pages as skb frags instead of copying data to linear space. > The only requirement for this for drivers is to be able to xmit skbs > with skb_headlen(skb) == 0, i.e. all data including hard headers >

RE: [PATCH] clk: imx8mp: Remove the none exist pcie clocks

2021-02-17 Thread Jacky Bai
> -Original Message- > From: Richard Zhu [mailto:hongxing@nxp.com] > Sent: Thursday, February 18, 2021 1:54 PM > To: shawn...@kernel.org; Jacky Bai > Cc: dl-linux-imx ; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; Richard Zhu > Subject: [PATCH] clk: imx8mp:

[PATCH] staging: comedi: cast to (void __user *)

2021-02-17 Thread Atul Gopinathan
Resolve the following sparse warning: drivers/staging//comedi/comedi_fops.c:2983:41: warning: incorrect type in argument 1 (different address spaces) drivers/staging//comedi/comedi_fops.c:2983:41:expected void [noderef] *uptr drivers/staging//comedi/comedi_fops.c:2983:41:got unsigned

[PATCH V3 XRT Alveo 00/18] XRT Alveo driver overview

2021-02-17 Thread Lizhi Hou
Hello, This is V3 of patch series which adds management physical function driver for Xilinx Alveo PCIe accelerator cards, https://www.xilinx.com/products/boards-and-kits/alveo.html This driver is part of Xilinx Runtime (XRT) open source stack. XILINX ALVEO PLATFORM ARCHITECTURE Alveo PCIe

RE: [PATCH] clk: imx8mp: Remove the none exist pcie clocks

2021-02-17 Thread Richard Zhu
> -Original Message- > From: Jacky Bai > Sent: Thursday, February 18, 2021 2:11 PM > To: Richard Zhu ; shawn...@kernel.org > Cc: dl-linux-imx ; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; Richard Zhu > Subject: RE: [PATCH] clk: imx8mp: Remove the none exist

[PATCH V3 XRT Alveo 01/18] Documentation: fpga: Add a document describing XRT Alveo drivers

2021-02-17 Thread Lizhi Hou
Describe XRT driver architecture and provide basic overview of Xilinx Alveo platform. Signed-off-by: Sonal Santan Signed-off-by: Max Zhen Signed-off-by: Lizhi Hou --- Documentation/fpga/index.rst | 1 + Documentation/fpga/xrt.rst | 842 +++ 2 files changed,

[PATCH V3 XRT Alveo 03/18] fpga: xrt: xclbin file helper functions

2021-02-17 Thread Lizhi Hou
Alveo FPGA firmware and partial reconfigure file are in xclbin format. Add code to enumerate and extract sections from xclbin files. xclbin.h is cross platform and used across all platforms and OS Signed-off-by: Sonal Santan Signed-off-by: Max Zhen Signed-off-by: Lizhi Hou ---

[PATCH V3 XRT Alveo 02/18] fpga: xrt: driver metadata helper functions

2021-02-17 Thread Lizhi Hou
XRT drivers use device tree as metadata format to discover HW subsystems behind PCIe BAR. Thus libfdt functions are called for driver to parse device tree blob. Signed-off-by: Sonal Santan Signed-off-by: Max Zhen Signed-off-by: Lizhi Hou --- drivers/fpga/xrt/include/metadata.h | 229

[PATCH V3 XRT Alveo 17/18] fpga: xrt: partition isolation platform driver

2021-02-17 Thread Lizhi Hou
Add partition isolation platform driver. partition isolation is a hardware function discovered by walking firmware metadata. A platform device node will be created for it. Partition isolation function isolate the different fpga regions Signed-off-by: Sonal Santan Signed-off-by: Max Zhen

Re: [PATCH V0 3/6] soc: qcom: dcc:Add driver support for Data Capture and Compare unit(DCC)

2021-02-17 Thread Vinod Koul
On 17-02-21, 12:18, Souradeep Chowdhury wrote: > The DCC is a DMA Engine designed to capture and store data > during system crash or software triggers.The DCC operates ^^^ Space after . (quite a few here, pls fix them) > based on link list entries which

linux-next: build failure after merge of the gpio-brgl tree

2021-02-17 Thread Stephen Rothwell
io-brgl tree from next-20210217 for today. -- Cheers, Stephen Rothwell pgptGG7rc1eFP.pgp Description: OpenPGP digital signature

[PATCH v9 0/6] MIPS: ralink: add CPU clock detection and clock driver for MT7621

2021-02-17 Thread Sergio Paracuellos
This patchset ports CPU clock detection for MT7621 from OpenWrt and adds a complete clock plan for the mt7621 SOC. The documentation for this SOC only talks about two registers regarding to the clocks: * SYSC_REG_CPLL_CLKCFG0 - provides some information about boostrapped refclock. PLL and

[PATCH v9 4/6] staging: mt7621-dts: make use of new 'mt7621-clk'

2021-02-17 Thread Sergio Paracuellos
Clocks for SoC mt7621 have been properly integrated so there is no need to declare fixed clocks at all in the device tree. Remove all of them, add new device tree nodes for mt7621-clk and update the rest of the nodes to use them. Acked-by: Greg Kroah-Hartman Signed-off-by: Sergio Paracuellos

Re: [PATCH net] net: ag71xx: remove unnecessary MTU reservation

2021-02-17 Thread Oleksij Rempel
On Thu, Feb 18, 2021 at 11:45:14AM +0800, DENG Qingfang wrote: > 2 bytes of the MTU are reserved for Atheros DSA tag, but DSA core > has already handled that since commit dc0fe7d47f9f. > Remove the unnecessary reservation. > > Fixes: d51b6ce441d3 ("net: ethernet: add ag71xx driver") >

[net-next PATCH v6 04/15] of: mdio: Refactor of_phy_find_device()

2021-02-17 Thread Calvin Johnson
Refactor of_phy_find_device() to use fwnode_phy_find_device(). Signed-off-by: Calvin Johnson --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/net/mdio/of_mdio.c | 13 + 1 file changed, 1 insertion(+), 12 deletions(-)

[net-next PATCH v6 05/15] net: phy: Introduce fwnode_get_phy_id()

2021-02-17 Thread Calvin Johnson
Extract phy_id from compatible string. This will be used by fwnode_mdiobus_register_phy() to create phy device using the phy_id. Signed-off-by: Calvin Johnson --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Use traditional comparison pattern - Use GENMASK

[net-next PATCH v6 08/15] of: mdio: Refactor of_mdiobus_register_phy()

2021-02-17 Thread Calvin Johnson
Refactor of_mdiobus_register_phy() to use fwnode_mdiobus_register_phy(). Signed-off-by: Calvin Johnson --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/net/mdio/of_mdio.c | 40 +- 1 file

RE: [RFC] IRQ handlers run with some high-priority interrupts(not NMI) enabled on some platform

2021-02-17 Thread Finn Thain
On Wed, 17 Feb 2021, Song Bao Hua (Barry Song) wrote: > > On Sat, 13 Feb 2021, Song Bao Hua (Barry Song) wrote: > > > > > > > > So what is really confusing and a pain to me is that: For years > > > people like me have been writing device drivers with the idea that > > > irq handlers run with

[net-next PATCH v6 13/15] net: phylink: introduce phylink_fwnode_phy_connect()

2021-02-17 Thread Calvin Johnson
Define phylink_fwnode_phy_connect() to connect phy specified by a fwnode to a phylink instance. Signed-off-by: Calvin Johnson --- Changes in v6: - remove OF check for fixed-link Changes in v5: None Changes in v4: - call phy_device_free() before returning Changes in v3: None Changes in v2:

[RFC PATCH v5 17/19] vsock/loopback: setup SEQPACKET ops for transport

2021-02-17 Thread Arseny Krasnov
This adds SEQPACKET ops for loopback transport Signed-off-by: Arseny Krasnov --- net/vmw_vsock/vsock_loopback.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/vmw_vsock/vsock_loopback.c b/net/vmw_vsock/vsock_loopback.c index a45f7ffca8c5..c0da94119f74 100644 ---

Re: [PATCH] vdpa/mlx5: fix param validation in mlx5_vdpa_get_config()

2021-02-17 Thread Jason Wang
On 2021/2/10 下午6:08, Stefano Garzarella wrote: On Tue, Feb 09, 2021 at 04:31:23AM -0500, Michael S. Tsirkin wrote: On Tue, Feb 09, 2021 at 11:24:03AM +0800, Jason Wang wrote: On 2021/2/9 上午2:38, Michael S. Tsirkin wrote: > On Mon, Feb 08, 2021 at 05:17:41PM +0100, Stefano Garzarella wrote:

[RFC PATCH v5 15/19] virtio/vsock: setup SEQPACKET ops for transport

2021-02-17 Thread Arseny Krasnov
This adds SEQPACKET ops for virtio transport Signed-off-by: Arseny Krasnov --- net/vmw_vsock/virtio_transport.c | 5 + 1 file changed, 5 insertions(+) diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c index 2700a63ab095..bd3a854bb366 100644 ---

[RFC PATCH v5 16/19] vhost/vsock: setup SEQPACKET ops for transport

2021-02-17 Thread Arseny Krasnov
This also removes ignore of non-stream type of packets. Signed-off-by: Arseny Krasnov --- drivers/vhost/vsock.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c index 5e78fb719602..5c86d09e36d9 100644 ---

[RFC PATCH v5 19/19] virtio/vsock: update trace event for SEQPACKET

2021-02-17 Thread Arseny Krasnov
This updates current implementation for trace event of virtio vsock: SEQPACKET socket's type, SEQPACKET specific ops and SEQPACKET 'msg_len' and 'msg_cnt' fields are added. Signed-off-by: Arseny Krasnov --- .../events/vsock_virtio_transport_common.h| 48 +++

drivers/atm/horizon.c:365:9: sparse: sparse: incorrect type in argument 1 (different base types)

2021-02-17 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f40ddce88593482919761f74910f42f4b84c004b commit: c1d55d50139bea6bfe964458272a93dd899efb83 asm-generic/io.h: Fix sparse warnings on big-endian architectures date: 7 months ago config:

[RFC PATCH v5 18/19] vsock_test: add SOCK_SEQPACKET tests

2021-02-17 Thread Arseny Krasnov
This adds two tests of SOCK_SEQPACKET socket: both transfer data and then test MSG_EOR and MSG_TRUNC flags. Cases for connect(), bind(), etc. are not tested, because it is same as for stream socket. Signed-off-by: Arseny Krasnov --- tools/testing/vsock/util.c | 32 ++--

[PATCH net 1/1] net: stmmac: fix CBS idleslope and sendslope calculation

2021-02-17 Thread Song Yoong Siang
From: "Song, Yoong Siang" When link speed is not 100 Mbps, port transmit rate and speed divider are set to 8 and 100 respectively. These values are incorrect for CBS idleslope and sendslope HW values calculation if the link speed is not 1 Gbps. This patch adds switch statement to set the

Re: [PATCH V3 16/19] virtio-pci: introduce modern device module

2021-02-17 Thread Jason Wang
On 2021/2/10 下午8:35, Michael S. Tsirkin wrote: On Wed, Feb 10, 2021 at 12:44:03PM +0800, Jason Wang wrote: On 2021/2/9 下午10:20, Michael S. Tsirkin wrote: On Mon, Jan 04, 2021 at 02:55:00PM +0800, Jason Wang wrote: Signed-off-by: Jason Wang --- drivers/virtio/Kconfig |

Re: [PATCH 2/2] mm: Make alloc_contig_range handle in-use hugetlb pages

2021-02-17 Thread Oscar Salvador
On Wed, Feb 17, 2021 at 04:33:18PM +0100, Michal Hocko wrote: > OK, I have missed that. Maybe just extend the comment. > > /* >* Hugepage was succesfully isolated and on the tmigratepages >* list >*/ Sure, I will improve it. Thanks -- Oscar Salvador SUSE L3

[PATCH] clk: imx8mp: Remove the none exist pcie clocks

2021-02-17 Thread Richard Zhu
In the i.MX8MP PCIe design, the PCIe PHY REF clock comes from external OSC or internal system PLL. It is configured in the IOMUX_GPR14 register directly, and can't be contolled by CCM at all. Remove the PCIE PHY clock from clock driver to clean up codes. There is only one PCIe in i.MX8MP, remove

<    5   6   7   8   9   10   11   >