[RFC V2 PATCH 11/12] HV/Netvsc: Add Isolation VM support for netvsc driver

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan In Isolation VM, all shared memory with host needs to mark visible to host via hvcall. vmbus_establish_gpadl() has already done it for netvsc rx/tx ring buffer. The page buffer used by vmbus_sendpacket_ pagebuffer() still need to handle. Use DMA API to map/umap these memory durin

[RFC V2 PATCH 2/12] x86/HV: Initialize shared memory boundary in Isolation VM

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan Hyper-V exposes shared memory boundary via cpuid HYPERV_ CPUID_ISOLATION_CONFIG and store it in the shared_gpa_ boundary of ms_hyperv struct. This prepares to share memory with host for AMD SEV SNP guest. Signed-off-by: Tianyu Lan --- arch/x86/kernel/cpu/mshyperv.c | 2 ++ in

[RFC V2 PATCH 4/12] HV: Add Write/Read MSR registers via ghcb

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan Hyper-V provides GHCB protocol to write Synthetic Interrupt Controller MSR registers and these registers are emulated by Hypervisor rather than paravisor. Hyper-V requests to write SINTx MSR registers twice(once via GHCB and once via wrmsr instruction including the proxy bit 21)

[RFC V2 PATCH 12/12] HV/Storvsc: Add Isolation VM support for storvsc driver

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan In Isolation VM, all shared memory with host needs to mark visible to host via hvcall. vmbus_establish_gpadl() has already done it for netvsc rx/tx ring buffer. The page buffer used by vmbus_sendpacket_ mpb_desc() still need to handle. Use DMA API to map/umap these memory during

Re: [PATCH v2 1/3] dt-bindings: gpio: add YAML description for rockchip, gpio-bank

2021-04-13 Thread Rob Herring
On Tue, 13 Apr 2021 00:36:15 +0200, Johan Jonker wrote: > Current dts files with "rockchip,gpio-bank" subnodes > are manually verified. In order to automate this process > the text that describes the compatible in rockchip,pinctrl.txt > is removed and converted to YAML in rockchip,gpio-bank.yaml. >

[RFC V2 PATCH 00/12] x86/Hyper-V: Add Hyper-V Isolation VM support

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan Hyper-V provides two kinds of Isolation VMs. VBS(Virtualization-based security) and AMD SEV-SNP unenlightened Isolation VMs. This patchset is to add support for these Isolation VM support in Linux. The memory of these vms are encrypted and host can't access guest memory directl

[RFC V2 PATCH 1/12] x86/HV: Initialize GHCB page in Isolation VM

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan Hyper-V exposes GHCB page via SEV ES GHCB MSR for SNP guest to communicate with hypervisor. Map GHCB page for all cpus to read/write MSR register and submit hvcall request via GHCB. Signed-off-by: Tianyu Lan --- arch/x86/hyperv/hv_init.c | 52 +

Re: [PATCH v3 1/4] dt-bindings: pwm: convert pwm-rockchip.txt to YAML

2021-04-13 Thread Thierry Reding
On Mon, Apr 12, 2021 at 10:01:52PM +0200, Johan Jonker wrote: > Current dts files with 'pwm' nodes are manually verified. > In order to automate this process pwm-rockchip.txt > has to be converted to yaml. > > Signed-off-by: Johan Jonker > --- > For some SoC nodes this patch serie generates notif

[RFC V2 PATCH 6/12] HV/Vmbus: Add SNP support for VMbus channel initiate message

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan The physical address of monitor pages in the CHANNELMSG_INITIATE_CONTACT msg should be in the extra address space for SNP support and these pages also should be accessed via the extra address space inside Linux guest and remap the extra address by ioremap function. Signed-off-by

Re: [PATCH] net/sctp: fix race condition in sctp_destroy_sock

2021-04-13 Thread Marcelo Ricardo Leitner
On Tue, Apr 13, 2021 at 12:31:53PM +0300, Or Cohen wrote: > +++ b/net/sctp/socket.c > @@ -1520,11 +1520,9 @@ static void sctp_close(struct sock *sk, long timeout) > > /* Supposedly, no process has access to the socket, but >* the net layers still may. > - * Also, sctp_destroy_s

[RFC V2 PATCH 7/12] HV/Vmbus: Initialize VMbus ring buffer for Isolation VM

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan VMbus ring buffer are shared with host and it's need to be accessed via extra address space of Isolation VM with SNP support. This patch is to map the ring buffer address in extra address space via ioremap(). HV host visibility hvcall smears data in the ring buffer and so reset t

[RFC V2 PATCH 9/12] swiotlb: Add bounce buffer remap address setting function

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan For Hyper-V isolation VM with AMD SEV SNP, the bounce buffer(shared memory) needs to be accessed via extra address space(e.g address above bit39). Hyper-V code may remap extra address space outside of swiotlb. swiotlb_bounce() needs to use remap virtual address to copy data from/

Re: [PATCH] MIPS: Fix strnlen_user access check

2021-04-13 Thread Thomas Bogendoerfer
On Tue, Apr 13, 2021 at 12:37:25PM +, David Laight wrote: > From: Thomas Bogendoerfer > > Sent: 13 April 2021 12:15 > ... > > > The __access_ok() is noted with `Ensure that the range [addr, addr+size) > > > is within the process's address space`. Does the range checked by > > > __access_ok() o

Re: How to handle concurrent access to /dev/ttyprintk ?

2021-04-13 Thread Samo Pogačnik
Dne 13.04.2021 (tor) ob 16:32 +0200 je Petr Mladek napisal(a): > On Tue 2021-04-13 13:10:50, Samo Pogačnik wrote: > > Dne 13.04.2021 (tor) ob 11:41 +0200 je Petr Mladek napisal(a): > > > On Mon 2021-04-12 14:41:27, Samo Pogačnik wrote: > > > > Dne 12.04.2021 (pon) ob 19:39 +0900 je Tetsuo Handa nap

Re: [PATCH v3 1/4] dt-bindings: pwm: convert pwm-rockchip.txt to YAML

2021-04-13 Thread Heiko Stübner
Hi Thierry, Am Dienstag, 13. April 2021, 17:21:49 CEST schrieb Thierry Reding: > On Mon, Apr 12, 2021 at 10:01:52PM +0200, Johan Jonker wrote: > > Current dts files with 'pwm' nodes are manually verified. > > In order to automate this process pwm-rockchip.txt > > has to be converted to yaml. > >

Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: core: Remove unused but set variable

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 5:16:17 PM CEST Julia Lawall wrote: > On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > > Removed "ledBlink_param" because it was set to the value of "pbuf" but > > was never reused. This set was made by direct assignment (no helper > > had been called), therefore it ha

Re: [PATCH v6 1/2] dt-bindings: touchscreen: Add HY46XX bindings

2021-04-13 Thread Giulio Benetti
On 4/13/21 5:07 PM, Rob Herring wrote: On Mon, 12 Apr 2021 17:23:59 +0200, Giulio Benetti wrote: This adds device tree bindings for the Hycon HY46XX touchscreen series. Signed-off-by: Giulio Benetti --- V1->V2: As suggested by Rob Herring: * fixed $id: address * added "hycon," in front of ever

Re: [PATCH v7] mm: Add set/end/wait functions for PG_private_2

2021-04-13 Thread Matthew Wilcox
On Tue, Apr 13, 2021 at 04:11:41PM +0100, David Howells wrote: > Suggested-by: Linus Torvalds > Signed-off-by: David Howells > Tested-by: Jeff Layton > Tested-by: Dave Wysochanski Reviewed-by: Matthew Wilcox (Oracle)

Re: [PATCH 1/3] rseq: optimize rseq_update_cpu_id()

2021-04-13 Thread Eric Dumazet
On Tue, Apr 13, 2021 at 4:29 PM Mathieu Desnoyers wrote: > > - On Apr 13, 2021, at 3:36 AM, Eric Dumazet eric.duma...@gmail.com wrote: > > > From: Eric Dumazet > > > > Two put_user() in rseq_update_cpu_id() are replaced > > by a pair of unsafe_put_user() with appropriate surroundings. > > > >

[PATCH v3 2/4] staging: media: intel-ipu3: reduce length of line

2021-04-13 Thread Mitali Borkar
Reduced length of line as it was exceeding 100 characters by removing comments from same line and adding it to previous line. This makes code neater, and meets linux kernel coding style. Reported by checkpatch. Signed-off-by: Mitali Borkar --- Changes from v2:- No changes. Changes from v1:- No

Re: [PATCH 4/6] dt-bindings: power: supply: charger-manager: Convert to DT schema format

2021-04-13 Thread Rob Herring
On Tue, 13 Apr 2021 01:03:18 +0200, Sebastian Reichel wrote: > Convert the binding to DT schema format. > > I slightly modified the binding by allowing regulator-[0-9] and cable-[0-9] > instead of regulator@[0-9] and cable@[0-9], so that DT compiler does not > complain about missing 'reg' property

[PATCH v3 1/4] staging: media: intel-ipu3: remove unnecessary blank line

2021-04-13 Thread Mitali Borkar
Removed an unnecessary blank line to meet linux kernel coding style. Reported by checkpatch.pl Signed-off-by: Mitali Borkar --- Changes from v2:- No changes. Changes from v1:- NO changes. drivers/staging/media/ipu3/include/intel-ipu3.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/

[PATCH v3 3/4] staging: media: intel-ipu3: line should not end with '['

2021-04-13 Thread Mitali Borkar
Fixed the issue of line should not end with '[' by moving argument from next line to line ending with '[' and made it under 80 characters. Reported by checkpatch. Signed-off-by: Mitali Borkar --- Changes from v2:- No changes Changes from v1:- Made line length under 80 characters drivers/staging

[PATCH v3 0/4] staging: media: intel-ipu3: Cleanup patchset for style issues

2021-04-13 Thread Mitali Borkar
Changes from v2:- Rebased these four patces and made changes against mailine code Changes from v1:- Dropped patches 1/6 and 2/6 and compiled this as a patchset of 4 patches. [PATCH 1/4]:- No changes. [PATCH 2/4]:- No changes. [PATCH 3/4]:- Reduced length of a line under 80 characters. This was pat

Re: [RFC v4 net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-13 Thread DENG Qingfang
On Tue, Apr 13, 2021 at 02:52:59PM +0200, Andrew Lunn wrote: > > I guess this is depends whether the most usual case is to have all > > these interrupts being actively in use or not. Most interrupts only > > use a limited portion of their interrupt space at any given time. > > Allocating all interr

[PATCH v3 4/4] staging: media: intel-ipu3: remove space before tabs

2021-04-13 Thread Mitali Borkar
Removed unnecessary space before tabs to adhere to linux kernel coding style. Reported by checkpatch. Signed-off-by: Mitali Borkar --- Changes from v2:- No changes. Changes from v1:- No changes. drivers/staging/media/ipu3/include/intel-ipu3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH] staging: media: tegra-vde: Align line break to match with the open parenthesis in file trace.h

2021-04-13 Thread Thierry Reding
On Mon, Apr 12, 2021 at 07:20:40PM -0300, Aline Santana Cordeiro wrote: > Align line break to match with the open parenthesis. > Issue detected by checkpatch.pl. > It consequently solved a few end lines with a '(', > issue also detected by checkpatch.pl > > Signed-off-by: Aline Santana Cordeiro >

Re: Question on KASAN calltrace record in RT

2021-04-13 Thread Dmitry Vyukov
On Tue, Apr 6, 2021 at 10:26 AM Zhang, Qiang wrote: > > Hello everyone > > In RT system, after Andrew test, found the following calltrace , > in KASAN, we record callstack through stack_depot_save(), in this function, > may be call alloc_pages, but in RT, the spin_lock replace with > rt_mut

[PATCH 0/2] arm64: dts: freescale: sl28: fix RGMII

2021-04-13 Thread Michael Walle
This fixes the RGMII on the sl28 boards. While the network port was actually working it is still out-of-spec. Please note, that this is split into two patches because each one fixes a different commit. Michael Walle (2): arm64: dts: freescale: sl28: fix RGMII clock and voltage arm64: dts: fre

[PATCH 1/2] arm64: dts: freescale: sl28: fix RGMII clock and voltage

2021-04-13 Thread Michael Walle
During hardware validation it was noticed that the clock isn't continuously enabled when there is no link. This is because the 125MHz clock is derived from the internal PLL which seems to go into some kind of power-down mode every once in a while. The LS1028A expects a contiuous clock. Thus enable

[PATCH 2/2] arm64: dts: freescale: sl28: fix RGMII clock and voltage

2021-04-13 Thread Michael Walle
During hardware validation it was noticed that the clock isn't continuously enabled when there is no link. This is because the 125MHz clock is derived from the internal PLL which seems to go into some kind of power-down mode every once in a while. The LS1028A expects a contiuous clock. Thus enable

Re: [PATCH 5/6] dt-bindings: power: mfd: max8925: Convert to DT schema format

2021-04-13 Thread Rob Herring
On Tue, Apr 13, 2021 at 01:03:19AM +0200, Sebastian Reichel wrote: > Convert the binding to DT schema format. > > The sub-functions of this MFD device do not have their own compatible > string and are thus described directly in the MFD binding document > after being converted to YAML. > > Signed-

Re: [RFC PATCH v5 0/4] add simple copy support

2021-04-13 Thread Max Gurtovoy
On 4/11/2021 10:26 PM, Javier González wrote: On 11.04.2021 12:10, Max Gurtovoy wrote: On 4/10/2021 9:32 AM, Javier González wrote: On 10 Apr 2021, at 02.30, Chaitanya Kulkarni wrote: On 4/9/21 17:22, Max Gurtovoy wrote: On 2/19/2021 2:45 PM, SelvaKumar S wrote: This patchset tries to a

Re: [PATCH] staging: media: tegra-vde: Align line break to match with the open parenthesis in file trace.h

2021-04-13 Thread Hans Verkuil
Hi Aline, On 13/04/2021 00:20, Aline Santana Cordeiro wrote: > Align line break to match with the open parenthesis. > Issue detected by checkpatch.pl. > It consequently solved a few end lines with a '(', > issue also detected by checkpatch.pl These trace headers are almost a language by themselve

Re: [PATCH] Drivers: hv: vmbus: Use after free in __vmbus_open()

2021-04-13 Thread Andrea Parri
On Tue, Apr 13, 2021 at 01:50:04PM +0300, Dan Carpenter wrote: > The "open_info" variable is added to the &vmbus_connection.chn_msg_list, > but the error handling frees "open_info" without removing it from the > list. This will result in a use after free. First remove it from the > list, and then

[PATCH v4] staging: media: meson: vdec: declare u32 as static const

2021-04-13 Thread Mitali Borkar
Declared 32 bit unsigned int as static constant inside a function and replaced u32[] {x,y} as canvas3, canvas4 in codec_h264.c This indicates the value of canvas indexes will remain constant throughout execution. Signed-off-by: Mitali Borkar --- Changes from v3:- Made commit message under 75 char

Re: [PATCH 4/5] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h

2021-04-13 Thread Helge Deller
On 4/12/21 10:55 AM, Christoph Hellwig wrote: The F_GETLK64/F_SETLK64/F_SETLKW64 commands are only implemented for 32-bit syscall APIs, but we also need them for compat handling on 64-bit kernels. Ok. Given that redefining them is rather error prone, as shown by parisc getting the opcodes wro

Re: [PATCH] mmc: add quirk to disable eMMC cache for Micron eMMC v5.0 cards

2021-04-13 Thread Scott Branden
+Travis Dirkes, Could you provide more details on the Micron data error. On 2021-04-12 12:44 a.m., Ulf Hansson wrote: > + Bean Huo, Luca Porzio > > On Thu, 8 Apr 2021 at 19:59, Scott Branden wrote: >> >> From: Vladimir Olovyannikov >> >> In certain rare combination of operations, Micron eMMC v

Re: [PATCH] mmc: add quirk to disable eMMC cache for Micron eMMC v5.0 cards

2021-04-13 Thread Scott Branden
+Travis Dirkes (with corrected email), Could you provide more details on the Micron data error. > On 2021-04-12 12:44 a.m., Ulf Hansson wrote: >> + Bean Huo, Luca Porzio >> >> On Thu, 8 Apr 2021 at 19:59, Scott Branden >> wrote: >>> >>> From: Vladimir Olovyannikov >>> >>> In certain rare co

Re: [PATCH 4/5] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h

2021-04-13 Thread Christoph Hellwig
On Tue, Apr 13, 2021 at 05:43:18PM +0200, Helge Deller wrote: > On 4/12/21 10:55 AM, Christoph Hellwig wrote: >> The F_GETLK64/F_SETLK64/F_SETLKW64 commands are only implemented for >> 32-bit syscall APIs, but we also need them for compat handling on 64-bit >> kernels. > > Ok. > >> Given that redef

Re: [PATCH] ASoC: Intel: Handle device properties with software node API

2021-04-13 Thread Pierre-Louis Bossart
On 4/13/21 9:05 AM, Heikki Krogerus wrote: On Tue, Apr 13, 2021 at 03:20:45PM +0300, Heikki Krogerus wrote: On Mon, Apr 12, 2021 at 03:36:20PM -0500, Pierre-Louis Bossart wrote: I took the code and split it in two for BYT/CHT (modified to remove devm_) and SoundWire parts (added as is). htt

Re: [PATCH v3 0/2] Intra-refresh period control

2021-04-13 Thread Stanimir Varbanov
Hi Hans, Any comments? On 3/2/21 11:53 AM, Stanimir Varbanov wrote: > Hi, > > This series add a new intra-refresh period control for encoders. The > series is a continuation of [1]. Comments addressed: > * A typo in .rst (Hans) > * Clarified the relationship with CYCLIC_INTRA_REFRESH_MB (Hans)

Re: [RFC] ITS fails to allocate on rk3568/rk3566

2021-04-13 Thread Marc Zyngier
On Tue, 13 Apr 2021 16:03:51 +0100, Peter Geis wrote: > > On Tue, Apr 13, 2021 at 10:01 AM Marc Zyngier wrote: [...] > > What happens if you hack all the allocations to happen in the low 4GB > > of the PA space? > > It seems to work correctly. > The downstream hacks used GFP_DMA32 which gets

[PATCH v3 1/2] perf/core: Share an event with multiple cgroups

2021-04-13 Thread Namhyung Kim
As we can run many jobs (in container) on a big machine, we want to measure each job's performance during the run. To do that, the perf_event can be associated to a cgroup to measure it only. However such cgroup events need to be opened separately and it causes significant overhead in event multi

[PATCH v3 0/2] perf core: Sharing events with multiple cgroups

2021-04-13 Thread Namhyung Kim
Hello, This work is to make perf stat more scalable with a lot of cgroups. Changes in V3) * fix build error when !CONFIG_CGROUP_PERF Changes in v2) * use cacheline_aligned macro instead of the padding * enclose the cgroup node list initialization * add more comments * add Acked-by from

[PATCH v3 2/2] perf/core: Support reading group events with shared cgroups

2021-04-13 Thread Namhyung Kim
This enables reading event group's counter values together with a PERF_EVENT_IOC_READ_CGROUP command like we do in the regular read(). Users should give a correct size of buffer to be read which includes the total buffer size and the cgroup id. Acked-by: Song Liu Signed-off-by: Namhyung Kim ---

Re: [PATCH v3 1/2] media: v4l2-ctrls: Add intra-refresh period control

2021-04-13 Thread Hans Verkuil
On 02/03/2021 10:53, Stanimir Varbanov wrote: > Add a control to set intra-refresh period. > > Signed-off-by: Stanimir Varbanov > --- > .../userspace-api/media/v4l/ext-ctrls-codec.rst | 12 > drivers/media/v4l2-core/v4l2-ctrls.c | 2 ++ > include/uapi/linux/v4l

Re: [PATCH v3 0/2] Intra-refresh period control

2021-04-13 Thread Hans Verkuil
On 13/04/2021 17:49, Stanimir Varbanov wrote: > Hi Hans, > > Any comments? Thanks for the reminder, I replied to the patch. Regards, Hans > > On 3/2/21 11:53 AM, Stanimir Varbanov wrote: >> Hi, >> >> This series add a new intra-refresh period control for encoders. The >> series is a c

Re: [PATCH 6/6] dt-bindings: power: mfd: ab8500: Convert to DT schema format

2021-04-13 Thread Rob Herring
On Tue, Apr 13, 2021 at 01:03:20AM +0200, Sebastian Reichel wrote: > Convert the binding to DT schema format. > > I slightly modified the binding by renaming the gpio node from > ab8500-gpio to ab8500-gpiocontroller, since the -gpio suffix > is used for gpio consumers. > > Signed-off-by: Sebastia

Re: [PATCH 4/5] uapi: always define F_GETLK64/F_SETLK64/F_SETLKW64 in fcntl.h

2021-04-13 Thread Helge Deller
On 4/13/21 5:46 PM, Christoph Hellwig wrote: On Tue, Apr 13, 2021 at 05:43:18PM +0200, Helge Deller wrote: On 4/12/21 10:55 AM, Christoph Hellwig wrote: The F_GETLK64/F_SETLK64/F_SETLKW64 commands are only implemented for 32-bit syscall APIs, but we also need them for compat handling on 64-bit

Re: [PATCH v3 2/3] dt-bindings: mfd: pm8008: Add bindings

2021-04-13 Thread Rob Herring
On Mon, 12 Apr 2021 19:00:26 -0700, Guru Das Srinagesh wrote: > Add bindings for the Qualcomm Technologies, Inc. PM8008 MFD driver. > > Signed-off-by: Guru Das Srinagesh > --- > .../devicetree/bindings/mfd/qcom,pm8008.yaml | 121 > + > 1 file changed, 121 insertions(+)

[Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-13 Thread Fabio M. De Francesco
Removed the led_blink_hdl() function (declaration, definition, and caller code) because it's useless. It only seems to check whether or not a given pointer is NULL. There are other (simpler) means for that purpose. Signed-off-by: Fabio M. De Francesco --- drivers/staging/rtl8723bs/core/rtw_cmd.c

Re: [RFC V2 PATCH 8/12] UIO/Hyper-V: Not load UIO HV driver in the isolation VM.

2021-04-13 Thread Greg KH
On Tue, Apr 13, 2021 at 11:22:13AM -0400, Tianyu Lan wrote: > From: Tianyu Lan > > UIO HV driver should not load in the isolation VM for security reason. > Return ENOTSUPP in the hv_uio_probe() in the isolation VM. > > Signed-off-by: Tianyu Lan > --- > drivers/uio/uio_hv_generic.c | 5 + >

Re: [RFC V2 PATCH 8/12] UIO/Hyper-V: Not load UIO HV driver in the isolation VM.

2021-04-13 Thread Greg KH
On Tue, Apr 13, 2021 at 11:22:13AM -0400, Tianyu Lan wrote: > From: Tianyu Lan > > UIO HV driver should not load in the isolation VM for security reason. Why? I need a lot more excuse than that. Why would the vm allow UIO devices to bind to it if it was not possible? Shouldn't the VM be handli

RE: [PATCH] MIPS: Fix strnlen_user access check

2021-04-13 Thread David Laight
From: Thomas Bogendoerfer > Sent: 13 April 2021 16:19 > > On Tue, Apr 13, 2021 at 12:37:25PM +, David Laight wrote: > > From: Thomas Bogendoerfer > > > Sent: 13 April 2021 12:15 > > ... > > > > The __access_ok() is noted with `Ensure that the range [addr, addr+size) > > > > is within the proc

Re: [PATCH v3 1/3] dt-bindings: display: bridge: add it66121 bindings

2021-04-13 Thread Laurent Pinchart
Hi Neil, Thank you for the patch. On Mon, Apr 12, 2021 at 05:46:46PM +0200, Neil Armstrong wrote: > From: Phong LE > > Add the ITE bridge HDMI it66121 bindings. > > Signed-off-by: Phong LE > Signed-off-by: Neil Armstrong > --- > .../bindings/display/bridge/ite,it66121.yaml | 123 ++

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-13 Thread Julia Lawall
On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > Removed the led_blink_hdl() function (declaration, definition, and > caller code) because it's useless. It only seems to check whether or not a > given pointer is NULL. There are other (simpler) means for that purpose. > > Signed-off-by: Fabio

[PATCH 0/1] seccomp: Erroneous return on interrupted addfd ioctl()

2021-04-13 Thread Rodrigo Campos
Hi! With Alban and Mauricio (on Cc), we are adding seccomp userspace notify support to runc and found a kernel bug while testing it. The issue is the following: if the addfd ioctl() in the seccomp agent is interrupted (like with SIGURG) then the target process is erroneously and prematurely unbloc

[PATCH 1/1] seccomp: Always "goto wait" if the list is empty

2021-04-13 Thread Rodrigo Campos
It is possible for the thread with the seccomp filter attached (target) to be waken up by an addfd message, but the list be empty. This happens when the addfd ioctl on the other side (seccomp agent) is interrupted by a signal such as SIGURG. In that case, the target erroneously and prematurely retu

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-13 Thread Greg Kroah-Hartman
On Tue, Apr 13, 2021 at 05:59:08PM +0200, Fabio M. De Francesco wrote: > Removed the led_blink_hdl() function (declaration, definition, and > caller code) because it's useless. It only seems to check whether or not a > given pointer is NULL. There are other (simpler) means for that purpose. But yo

Re: [PATCH] staging: media: tegra-vde: Align line break to match with the open parenthesis in file trace.h

2021-04-13 Thread Dwaipayan Ray
On Tue, Apr 13, 2021 at 8:59 PM Thierry Reding wrote: > > On Mon, Apr 12, 2021 at 07:20:40PM -0300, Aline Santana Cordeiro wrote: > > Align line break to match with the open parenthesis. > > Issue detected by checkpatch.pl. > > It consequently solved a few end lines with a '(', > > issue also dete

Re: Regression v5.12-rc3: net: stmmac: re-init rx buffers when mac resume back

2021-04-13 Thread Thierry Reding
On Tue, Apr 13, 2021 at 12:13:01PM +, Joakim Zhang wrote: > > Hi Jon, > > > -Original Message- > > From: Jon Hunter > > Sent: 2021年4月13日 16:41 > > To: Joakim Zhang ; Giuseppe Cavallaro > > ; Alexandre Torgue ; > > Jose Abreu > > Cc: net...@vger.kernel.org; Linux Kernel Mailing List

Re: [PATCH] wireless/marvell/mwifiex: Fix a double free in mwifiex_send_tdls_action_frame

2021-04-13 Thread lyl2019
Hi, maintianers. Sorry to disturb you, but this patch seems to be missed more than two weeks. Could you help to review this patch? I am sure it won't take you much time. Thanks. > -原始邮件- > 发件人: "Lv Yunlong" > 发送时间: 2021-03-29 19:24:35 (星期一) > 收件人: amitkar...@gmail.com, ganapathi.

Re: [PATCH 1/5] seccomp: Refactor notification handler to prepare for new semantics

2021-04-13 Thread Rodrigo Campos
This patch also fixes the bug I reported here: https://lore.kernel.org/lkml/20210413160151.3301-1-rodr...@kinvolk.io/T/ -- Rodrigo Campos --- Kinvolk GmbH | Adalbertstr.6a, 10999 Berlin | tel: +491755589364 Geschäftsführer/Directors: Alban Crequy, Chris Kühl, Iago López Galeiras Registergericht

Re: [PATCH v1 0/2] mfd: intel_quark_i2c_gpio: Covert I²C part to software nodes

2021-04-13 Thread Andy Shevchenko
On Wed, Mar 31, 2021 at 06:48:49PM +0300, Andy Shevchenko wrote: > Since we have software nodes support in MFD core, we may start converting > intel_quark_i2c_gpio driver to use it. For the starter it converts I²C part. > and as a result we get rid of platform data for I²C DesignWare driver. > > T

Re: [syzbot] general protection fault in gadget_setup

2021-04-13 Thread Alan Stern
On Tue, Apr 13, 2021 at 10:12:05AM +0200, Dmitry Vyukov wrote: > On Tue, Apr 13, 2021 at 10:08 AM syzbot > wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit:0f4498ce Merge tag 'for-5.12/dm-fixes-2' of git://git.kern.. > > git tree: upstream > > consol

Re: [PATCH v1 1/1] mfd: lpc_sch: Partially revert "Add support for Intel Quark X1000"

2021-04-13 Thread Andy Shevchenko
On Tue, Mar 23, 2021 at 01:57:04PM +0200, Andy Shevchenko wrote: > On Wed, Mar 03, 2021 at 06:49:44PM +0200, Andy Shevchenko wrote: > > The IRQ support for SCH GPIO is not specific to the Intel Quark SoC. > > Moreover the IRQ routing is quite interesting there, so while it's > > needs a special sup

[PATCH v7 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-13 Thread Chris von Recklinghausen
Suspend fails on a system in fips mode because md5 is used for the e820 integrity check and is not available. Use crc32 instead. This patch changes the integrity check algorithm from md5 to crc32. The check is intended to detect whether the E820 memory map provided by the firmware after cold boot

Re: [PATCH v7 2/3] ufs: set QUEUE_FLAG_LIMIT_BIO_SIZE

2021-04-13 Thread Bart Van Assche
On 4/12/21 7:55 PM, Changheun Lee wrote: > Set QUEUE_FLAG_LIMIT_BIO_SIZE queue flag to limit bio max size to > queue max sectors size for UFS device. > > Signed-off-by: Changheun Lee > --- > drivers/scsi/scsi_lib.c | 2 ++ > drivers/scsi/ufs/ufshcd.c | 1 + > include/scsi/scsi_host.h | 2 ++ >

Re: [PATCH v2 00/16] Multigenerational LRU Framework

2021-04-13 Thread Jens Axboe
On 4/13/21 1:51 AM, SeongJae Park wrote: > From: SeongJae Park > > Hello, > > > Very interesting work, thank you for sharing this :) > > On Tue, 13 Apr 2021 00:56:17 -0600 Yu Zhao wrote: > >> What's new in v2 >> >> Special thanks to Jens Axboe for reporting a regression in b

Re: [PATCH] selftests/bpf: use !E instead of comparing with NULL

2021-04-13 Thread Alexei Starovoitov
On Tue, Apr 13, 2021 at 9:10 AM wrote: > > > > > -Original Message- > > From: Alexei Starovoitov > > > > On Tue, Apr 13, 2021 at 2:52 AM Yang Li wrote: > > > > > > Fix the following coccicheck warnings: > > > ./tools/testing/selftests/bpf/progs/profiler.inc.h:189:7-11: WARNING > > > comp

Re: [PATCH] wireless: ath10k: Fix a use after free in ath10k_htc_send_bundle

2021-04-13 Thread lyl2019
Hi, maintainers of kerenl. I submitted this patch two weeks ago, but it still hasn't been reviewed. Could you help to review this patch? It will not take you much time. Thank you very much. > -原始邮件- > 发件人: "Lv Yunlong" > 发送时间: 2021-03-29 20:01:54 (星期一) > 收件人: kv...@codeaurora.o

Re: [PATCH v1 1/1] media: ipu3-cio2: Fix referece counting when looping over ACPI devices

2021-04-13 Thread Andy Shevchenko
On Mon, Apr 05, 2021 at 09:37:28PM +0100, Daniel Scally wrote: > On 04/04/2021 19:14, Andy Shevchenko wrote: > > When we continue, due to device is disabled, loop we have to drop reference > > count. > > When we have an array full of devices we have to also drop the reference > > count. > > Note,

Re: [PATCH v7 1/3] bio: limit bio max size

2021-04-13 Thread Bart Van Assche
On 4/12/21 7:55 PM, Changheun Lee wrote: > +unsigned int bio_max_size(struct bio *bio) > +{ > + struct request_queue *q = bio->bi_bdev->bd_disk->queue; > + > + if (blk_queue_limit_bio_size(q)) > + return blk_queue_get_max_sectors(q, bio_op(bio)) > + << SECTOR

RE: [PATCH] selftests/bpf: use !E instead of comparing with NULL

2021-04-13 Thread Tim.Bird
> -Original Message- > From: Alexei Starovoitov > > On Tue, Apr 13, 2021 at 9:10 AM wrote: > > > > > > > > > -Original Message- > > > From: Alexei Starovoitov > > > > > > On Tue, Apr 13, 2021 at 2:52 AM Yang Li > > > wrote: > > > > > > > > Fix the following coccicheck warnings

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-13 Thread Fabio M. De Francesco
On Tuesday, April 13, 2021 6:04:16 PM CEST Julia Lawall wrote: > On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > > Removed the led_blink_hdl() function (declaration, definition, and > > caller code) because it's useless. It only seems to check whether or > > not a given pointer is NULL. There a

[GIT PULL] coresight: Fixes for ETE and TRBE

2021-04-13 Thread Mathieu Poirier
The following changes since commit 4fb13790417a7bf726f3867a5d2b9723efde488b: dts: bindings: Document device tree bindings for Arm TRBE (2021-04-06 16:05:38 -0600) are available in the Git repository at: g...@gitolite.kernel.org:pub/scm/linux/kernel/git/coresight/linux.git next-ETE-TRBE fo

RE: [PATCH 3/4] mce/copyin: fix to not SIGBUS when copying from user hits poison

2021-04-13 Thread Luck, Tony
> So what I'm missing with all this fun is, yeah, sure, we have this > facility out there but who's using it? Is anyone even using it at all? Even if no applications ever do anything with it, it is still useful to avoid crashing the whole system and just terminate one application/guest. > If so,

Re: [PATCH v6 00/30] Network fs helper library & fscache kiocb API

2021-04-13 Thread Marc Dionne
On Thu, Apr 8, 2021 at 11:04 AM David Howells wrote: > > > Here's a set of patches to do two things: > > (1) Add a helper library to handle the new VM readahead interface. This > is intended to be used unconditionally by the filesystem (whether or > not caching is enabled) and provides

Re: [PATCH] wireless: marvell: mwl8k: Fix a double Free in mwl8k_probe_hw

2021-04-13 Thread lyl2019
Dear maintainers, I'm sorry to disturb you, but this patch has not been reviewed for more than a week. Could you please help to review this patch? It will not take you a lot time. Sincerely. > -原始邮件- > 发件人: "Lv Yunlong" > 发送时间: 2021-04-03 02:26:27 (星期六) > 收件人: buyt...@w

[PATCH v2 1/3] rseq: optimize rseq_update_cpu_id()

2021-04-13 Thread Eric Dumazet
From: Eric Dumazet Two put_user() in rseq_update_cpu_id() are replaced by a pair of unsafe_put_user() with appropriate surroundings. This removes one stac/clac pair on x86 in fast path. Signed-off-by: Eric Dumazet Cc: Mathieu Desnoyers Cc: Peter Zijlstra Cc: "Paul E. McKenney" Cc: Boqun Fen

[PATCH v2 3/3] rseq: optimise rseq_get_rseq_cs() and clear_rseq_cs()

2021-04-13 Thread Eric Dumazet
From: Eric Dumazet Commit ec9c82e03a74 ("rseq: uapi: Declare rseq_cs field as union, update includes") added regressions for our servers. Using copy_from_user() and clear_user() for 64bit values is suboptimal. We can use faster put_user() and get_user(). 32bit arches can be changed to use the

[PATCH v2 2/3] rseq: remove redundant access_ok()

2021-04-13 Thread Eric Dumazet
From: Eric Dumazet After commit 8f2817701492 ("rseq: Use get_user/put_user rather than __get_user/__put_user") we no longer need an access_ok() call from __rseq_handle_notify_resume() Mathieu pointed out the same cleanup can be done in rseq_syscall(). Signed-off-by: Eric Dumazet Cc: Mathieu De

Re: [PATCH -next v2] coresight: trbe: Fix return value check in arm_trbe_register_coresight_cpu()

2021-04-13 Thread Mathieu Poirier
On Fri, Apr 09, 2021 at 09:49:01AM +, Wei Yongjun wrote: > In case of error, the function devm_kasprintf() returns NULL > pointer not ERR_PTR(). The IS_ERR() test in the return value > check should be replaced with NULL test. > > Reported-by: Hulk Robot > Signed-off-by: Wei Yongjun > --- > v

[PATCH v2 0/3] rseq: minor optimizations

2021-04-13 Thread Eric Dumazet
From: Eric Dumazet rseq is a heavy user of copy to/from user data in fast paths. This series tries to reduce the cost. v2: Addressed Peter and Mathieu feedbacks, thanks ! Eric Dumazet (3): rseq: optimize rseq_update_cpu_id() rseq: remove redundant access_ok() rseq: optimise rseq_get_rseq_

Re: [PATCH net v2] i40e: fix the panic when running bpf in xdpdrv mode

2021-04-13 Thread Jesse Brandeburg
kerneljasonx...@gmail.com wrote: > From: Jason Xing Hi Jason, Sorry, I missed this on the first time: Added intel-wired-lan, please include on any future submissions for Intel drivers. get-maintainers script might help here? > > Fix this panic by adding more rules to calculate the value of @r

Re: [PATCH] mtd: cfi: remove redundant assignment to variable timeo

2021-04-13 Thread Vignesh Raghavendra
Hi Colin King, On Thu, 25 Mar 2021 17:45:14 +, Colin King wrote: > The variable timeo is being initialized with a value that is never read > and it is being updated later with a new value. The initialization is > redundant and can be removed. Fixed up $subject prefix to match existing conven

Re: [PATCH 4/7] cxl/mem: Get rid of @cxlm.base

2021-04-13 Thread Ben Widawsky
On 21-04-08 18:26:35, Jonathan Cameron wrote: > On Wed, 7 Apr 2021 15:26:22 -0700 > Ben Widawsky wrote: > > > @cxlm.base only existed to support holding the base found in the > > register block mapping code, and pass it along to the register setup > > code. Now that the register setup function ha

RE: [PATCH] selftests/bpf: use !E instead of comparing with NULL

2021-04-13 Thread Tim.Bird
> -Original Message- > From: Alexei Starovoitov > > On Tue, Apr 13, 2021 at 2:52 AM Yang Li wrote: > > > > Fix the following coccicheck warnings: > > ./tools/testing/selftests/bpf/progs/profiler.inc.h:189:7-11: WARNING > > comparing pointer to 0, suggest !E > > ./tools/testing/selftest

Re: [Outreachy kernel] [PATCH] :staging: rtl8723bs: Remove useless led_blink_hdl()

2021-04-13 Thread Julia Lawall
On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > On Tuesday, April 13, 2021 6:04:16 PM CEST Julia Lawall wrote: > > On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > > > Removed the led_blink_hdl() function (declaration, definition, and > > > caller code) because it's useless. It only seem

Re: [PATCH] selftests/bpf: use !E instead of comparing with NULL

2021-04-13 Thread Alexei Starovoitov
On Tue, Apr 13, 2021 at 9:19 AM wrote: > > > -Original Message- > > From: Alexei Starovoitov > > > > On Tue, Apr 13, 2021 at 9:10 AM wrote: > > > > > > > > > > > > > -Original Message- > > > > From: Alexei Starovoitov > > > > > > > > On Tue, Apr 13, 2021 at 2:52 AM Yang Li > >

Re: [PATCH] sched: remove the redundant comments

2021-04-13 Thread Steven Rostedt
On Tue, 13 Apr 2021 10:36:07 +0200 Dietmar Eggemann wrote: > > @@ -897,11 +897,6 @@ DECLARE_STATIC_KEY_FALSE(sched_uclamp_used); > > struct rq { > > /* runqueue lock: */ > > raw_spinlock_t lock; > > - > > - /* > > -* nr_running and cpu_load should be in the same cacheline

Re: [PATCH v4 1/4] dt-bindings: pinctrl: mt8195: add pinctrl file and binding document

2021-04-13 Thread Rob Herring
On Tue, 13 Apr 2021 13:56:59 +0800, Zhiyong Tao wrote: > 1. This patch adds pinctrl file for mt8195. > 2. This patch adds mt8195 compatible node in binding document. > > Signed-off-by: Zhiyong Tao > --- > .../bindings/pinctrl/pinctrl-mt8195.yaml | 151 +++ > include/dt-bindings/pinctrl/mt81

Re: [PATCH v3 0/4] staging: media: intel-ipu3: Cleanup patchset for style issues

2021-04-13 Thread Sakari Ailus
On Tue, Apr 13, 2021 at 08:58:19PM +0530, Mitali Borkar wrote: > Changes from v2:- Rebased these four patces and made changes against > mailine code Thanks for the update, Mitali. For the set: Acked-by: Sakari Ailus -- Sakari Ailus

Re: [PATCH] wireless: iwlwifi: Fix a double free in iwl_txq_dyn_alloc_dma

2021-04-13 Thread lyl2019
Hi, my dear maintainers. I'm very sorry to disturb you, that beacuse this patch has been not reviewed for one weeks. Could you help to review this patch? It will not cost you much time. Sincerely. > -原始邮件- > 发件人: "Lv Yunlong" > 发送时间: 2021-04-03 13:47:55 (星期六) > 收件人: lucia

Re: [PATCH v2 1/3] dt-bindings: crypto: ti,sa2ul: Add new compatible for AM64

2021-04-13 Thread Rob Herring
On Tue, 13 Apr 2021 14:45:57 +0530, Vaibhav Gupta wrote: > From: Peter Ujfalusi > > Add the AM64 version of sa2ul to the compatible list. > > [v_gu...@ti.com: Conditional dma-coherent requirement, clocks] > Signed-off-by: Peter Ujfalusi > Signed-off-by: Vaibhav Gupta > --- > .../devicetree/bi

Re: [PATCH 1/3] vfio/iommu_type1: Add HWDBM status maintanance

2021-04-13 Thread kernel test robot
Hi Keqian, Thank you for the patch! Yet something to improve: [auto build test ERROR on vfio/next] [also build test ERROR on linux/master linus/master v5.12-rc7 next-20210413] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH v3 29/33] dt-bindings: media: atmel-isc: convert to yaml

2021-04-13 Thread Rob Herring
On Tue, 13 Apr 2021 13:57:27 +0300, Eugen Hristev wrote: > Convert the Atmel ISC to yaml binding format. > > Signed-off-by: Eugen Hristev > --- > .../devicetree/bindings/media/atmel,isc.yaml | 115 ++ > .../devicetree/bindings/media/atmel-isc.txt | 65 -- > 2 files ch

RE: [PATCH] selftests/bpf: use !E instead of comparing with NULL

2021-04-13 Thread Tim.Bird
> -Original Message- > From: Alexei Starovoitov > > On Tue, Apr 13, 2021 at 9:19 AM wrote: > > > > > -Original Message- > > > From: Alexei Starovoitov > > > > > > On Tue, Apr 13, 2021 at 9:10 AM wrote: > > > > > > > > > > > > > > > > > -Original Message- > > > > > From:

Re: [PATCH v1 1/2] powerpc/bitops: Use immediate operand when possible

2021-04-13 Thread Christophe Leroy
Le 12/04/2021 à 23:54, Segher Boessenkool a écrit : Hi! On Thu, Apr 08, 2021 at 03:33:44PM +, Christophe Leroy wrote: For clear bits, on 32 bits 'rlwinm' can be used instead or 'andc' for when all bits to be cleared are consecutive. Also on 64-bits, as long as both the top and bottom b

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