[PATCH 06/13] staging: octeon: Switch from strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. This silences the related

[PATCH] staging: rtl8723bs: fix rtw_cfg80211_monitor_if_xmit_entry's return value

2021-01-31 Thread Martin Kaiser
A netdev xmit function should return NETDEV_TX_OK or NETDEV_TX_BUSY. Signed-off-by: Martin Kaiser --- drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c

Re: [GIT PULL] LEDs chagnes for v5.11-rc

2021-01-31 Thread pr-tracker-bot
The pull request you sent on Sun, 31 Jan 2021 10:42:55 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds.git/ > for-rc-5.11 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/29bd2d2100dcd98455c5f2dff391a88c5b44a6b2 Thank you! -- Deet-doot-dot, I

Re: [PATCH 08/29] dma-buf: Avoid comma separated statements

2021-01-31 Thread Joe Perches
On Wed, 2021-02-03 at 14:26 +0100, Christian König wrote: > Am 30.01.21 um 19:47 schrieb Joe Perches: > > On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote: > > > Use semicolons and braces. > > Ping? > > > Signed-off-by: Joe Perches > Reviewed-by: Christian König > > Do you have commit

Re: [PATCH 1/1] vsock: fix the race conditions in multi-transport support

2021-01-31 Thread Linus Torvalds
[ I'm checking lkml for at least some of the emails that I'm cc'd on ] On Sun, Jan 31, 2021 at 2:59 AM Alexander Popov wrote: > > There are multiple similar bugs implicitly introduced by the > commit [...] Note: this got eaten or delayed by the mailing list issues that seem to be plaguing lkml

Re: Migration to trusted keys: sealing user-provided key?

2021-01-31 Thread James Bottomley
On Sun, 2021-01-31 at 15:14 +0100, Jan Lübbe wrote: > On Sun, 2021-01-31 at 07:09 -0500, Mimi Zohar wrote: > > On Sat, 2021-01-30 at 19:53 +0200, Jarkko Sakkinen wrote: > > > On Thu, 2021-01-28 at 18:31 +0100, Ahmad Fatoum wrote: > > > > Hello, > > > > > > > > I've been looking into how a

Re: [PULL REQUEST] i2c for 5.11

2021-01-31 Thread Linus Torvalds
On Sun, Jan 31, 2021 at 3:40 AM Wolfram Sang wrote: > > one I2C driver update this time. Pulled (manual notification because the automation seems very flaky). Linus

Re: [PATCH RFC v1 0/3] Introduce vfio-pci-core subsystem

2021-01-31 Thread Max Gurtovoy
On 1/28/2021 11:02 PM, Alex Williamson wrote: On Thu, 28 Jan 2021 17:29:30 +0100 Cornelia Huck wrote: On Tue, 26 Jan 2021 15:27:43 +0200 Max Gurtovoy wrote: On 1/26/2021 5:34 AM, Alex Williamson wrote: On Mon, 25 Jan 2021 20:45:22 -0400 Jason Gunthorpe wrote: On Mon, Jan 25, 2021

Re: [PATCH 08/29] dma-buf: Avoid comma separated statements

2021-01-31 Thread Christian König
Am 30.01.21 um 19:47 schrieb Joe Perches: On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote: Use semicolons and braces. Ping? Signed-off-by: Joe Perches Reviewed-by: Christian König Do you have commit rights to drm-misc-next? ---  drivers/dma-buf/st-dma-fence.c | 7 +--  1

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-5.11-6 tag

2021-01-31 Thread Linus Torvalds
On Sun, Jan 31, 2021 at 4:06 AM Michael Ellerman wrote: > > Please pull another powerpc fix for 5.11: Manual pr-tracker-bot says thanks, Linus

Re: Very slow unlockall()

2021-01-31 Thread Milan Broz
On 08/01/2021 15:39, Milan Broz wrote: > On 08/01/2021 14:41, Michal Hocko wrote: >> On Wed 06-01-21 16:20:15, Milan Broz wrote: >>> Hi, >>> >>> we use mlockall(MCL_CURRENT | MCL_FUTURE) / munlockall() in cryptsetup code >>> and someone tried to use it with hardened memory allocator library. >>>

Re: Problems starting Xen domU after latest stable update

2021-01-31 Thread Jason Andryuk
On Sat, Jan 30, 2021 at 6:25 PM Marek Marczykowski-Górecki wrote: > > On Fri, Jan 29, 2021 at 03:16:52PM +0100, Jürgen Groß wrote: > > On 29.01.21 15:13, Michael Labriola wrote: > > > On Fri, Jan 29, 2021 at 12:26 AM Jürgen Groß wrote: > > > > If the buggy patch has been put into stable this

[PATCH 13/13] staging: wimax: Switch from strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. This silences the related

[PATCH 05/13] staging: nvec: Switch from strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. This silences the related

Re: [RFC 07/20] mm: move x86 tlb_gen to generic code

2021-01-31 Thread Andy Lutomirski
On Sat, Jan 30, 2021 at 4:16 PM Nadav Amit wrote: > > From: Nadav Amit > > x86 currently has a TLB-generation tracking logic that can be used by > additional architectures (as long as they implement some additional > logic). > > Extract the relevant pieces of code from x86 to general TLB code.

[PATCH 01/13] staging: comedi: Switch from strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. This silences the related

[PATCH 02/13] staging: greybus: Switch from strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. This silences the related

[PATCH 12/13] staging: sm750fb: Switch from strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. This silences the related

Re: [PATCH] serial: 8250: add option to disable registration of legacy ISA ports

2021-01-31 Thread Måns Rullgård
Andy Shevchenko writes: > On Thursday, January 28, 2021, Mans Rullgard wrote: > >> On systems that do not have the traditional PC ISA serial ports, the >> 8250 driver still creates non-functional device nodes. This change >> makes only ports that actually exist (PCI, DT, ...) get device nodes.

[PATCH 07/13] staging: olpc_dcon: Switch from strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. This silences the related

Re: [GIT PULL] x86/entry for v5.11-rc6

2021-01-31 Thread Linus Torvalds
On Sun, Jan 31, 2021 at 2:57 AM Borislav Petkov wrote: > > A single fix for objtool to generate proper unwind info for newer > toolchains which do not generate section symbols anymore. And a cleanup > ontop. Manual pr-tracker-bot says thanks. Oh, and I'm about to merge your EFI pull request

Re: [GIT PULL] LEDs chagnes for v5.11-rc

2021-01-31 Thread Linus Torvalds
On Sun, Jan 31, 2021 at 11:35 AM wrote: > > The pull request you sent on Sun, 31 Jan 2021 10:42:55 +0100: > > > git://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds.git/ > > for-rc-5.11 > > has been merged into torvalds/linux.git: Oh, look, one out of three (so far) did get a timely

[PATCH 03/13] staging: fsl-dpaa2: Switch from strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. This silences the related

Re: [PATCH 3/5] drm/msm/dsi_pll_10nm: Fix bad VCO rate calculation and prescaler

2021-01-31 Thread Rob Clark
On Sat, Jan 9, 2021 at 5:51 AM AngeloGioacchino Del Regno wrote: > > The VCO rate was being miscalculated due to a big overlook during > the process of porting this driver from downstream to upstream: > here we are really recalculating the rate of the VCO by reading > the appropriate registers

Re: [GIT pull] timers/urgent for v5.11-rc6

2021-01-31 Thread Linus Torvalds
On Sun, Jan 31, 2021 at 2:40 AM Thomas Gleixner wrote: > > please pull the latest timers/urgent branch from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > timers-urgent-2021-01-31 Manual pr-tracker-bot says thanks again. Linus

[PATCH 07/11] x86/fault: Split the OOPS code out from no_context()

2021-01-31 Thread Andy Lutomirski
Not all callers of no_context() want to run exception fixups. Separate the OOPS code out from the fixup code in no_context(). Cc: Dave Hansen Cc: Peter Zijlstra Signed-off-by: Andy Lutomirski --- arch/x86/mm/fault.c | 116 +++- 1 file changed, 62

[PATCH 10/11] x86/fault: Don't run fixups for SMAP violations

2021-01-31 Thread Andy Lutomirski
A SMAP-violating kernel access is not a recoverable condition. Imagine kernel code that, outside of a uaccess region, dereferences a pointer to the user range by accident. If SMAP is on, this will reliably generate as an intentional user access. This makes it easy for bugs to be overlooked if

[PATCH 04/11] x86/fault: Document the locking in the fault_signal_pending() path

2021-01-31 Thread Andy Lutomirski
If fault_signal_pending() returns true, then the core mm has unlocked the mm for us. Add a comment to help future readers of this code. Cc: Dave Hansen Cc: Peter Zijlstra Signed-off-by: Andy Lutomirski --- arch/x86/mm/fault.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff

fs/buffer.c:2342:1: warning: the frame size of 2056 bytes is larger than 2048 bytes

2021-01-31 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6642d600b541b81931fb1ab0c041b0d68f77be7e commit: 0060ef3b4e6dd1410da164d48a595eadb2fb02f7 mm: support THPs in zero_user_segments date: 7 weeks ago config: powerpc64-randconfig-r026-20210131 (attached

[PATCH 00/11] x86/fault: Cleanups and robustifications

2021-01-31 Thread Andy Lutomirski
The BPF team reported a warning in the x86 page fault code. This caused me to read said code, and it was quite tangled. This series attempts to mostly disentangle it and fixes a whole bunch of corner cases. In my opinion, the control flow and the semantics of the various page fault functions

[PATCH 03/11] x86/fault/32: Move is_f00f_bug() do do_kern_addr_fault()

2021-01-31 Thread Andy Lutomirski
bad_area() and its relatives are called from many places in fault.c, and exactly one of them wants the F00F workaround. __bad_area_nosemaphore() no longer contains any kernel fault code, which prepares for further cleanups. Cc: Dave Hansen Cc: Peter Zijlstra Signed-off-by: Andy Lutomirski ---

[PATCH 01/11] x86/fault: Fix AMD erratum #91 errata fixup for user code

2021-01-31 Thread Andy Lutomirski
The recent rework of probe_kernel_read() and its conversion to get_kernel_nofault() inadvertently broke is_prefetch(). We were using probe_kernel_read() as a sloppy "read user or kernel memory" helper, but it doens't do that any more. The new get_kernel_nofault() reads *kernel* memory only,

[PATCH 09/11] x86/fault: Rename no_context() to kernelmode_fixup_or_oops()

2021-01-31 Thread Andy Lutomirski
The name no_context() has never been very clear. It's only called for faults from kernel mode, so rename it and change the no-longer-useful user_mode(regs) check to a WARN_ON_ONCE. Cc: Dave Hansen Cc: Peter Zijlstra Signed-off-by: Andy Lutomirski --- arch/x86/mm/fault.c | 28

Re: [GIT PULL] LEDs chagnes for v5.11-rc

2021-01-31 Thread Linus Torvalds
On Sun, Jan 31, 2021 at 1:43 AM Pavel Machek wrote: > > This pull is due to "leds: trigger: fix potential deadlock with > libata" -- people find the warn annoying. It also contains new driver > (still should be okay late in -rcs, right?) and two trivial fixes. I've pulled it, but please don't

[PATCH 08/13] staging: rtl8188eu: Switch from strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. This silences the related

[PATCH 11/13] staging: rtl8712: Switch from strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. This silences the related

[PATCH 09/13] staging: rtl8192e: Switch from strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. This silences the related

Re: [PATCH 08/29] dma-buf: Avoid comma separated statements

2021-01-31 Thread Christian König
Am 31.01.21 um 18:39 schrieb Joe Perches: On Wed, 2021-02-03 at 14:26 +0100, Christian König wrote: Am 30.01.21 um 19:47 schrieb Joe Perches: On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote: Use semicolons and braces. Ping? Signed-off-by: Joe Perches Reviewed-by: Christian König Do

Re: [GIT pull] core/urgent for v5.11-rc6

2021-01-31 Thread Linus Torvalds
On Sun, Jan 31, 2021 at 2:40 AM Thomas Gleixner wrote: > > A single fix for the single step reporting regression caused by getting the > condition wrong when moving SYSCALL_EMU away from TIF flags. Manual pr-tracker-bot says thanks, Linus

[PATCH 10/13] staging: rtl8192u: Switch from strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is relatively better as it also avoids scanning the whole source string. This silences the related

[PATCH 00/13] Convert all users of strlcpy to strscpy

2021-01-31 Thread Kumar Kartikeya Dwivedi
This series converts all existing users of strlcpy in drivers/staging to use strscpy instead. strlcpy is marked as deprecated in Documentation/process/deprecated.rst, and there is no functional difference when the caller expects truncation (when not checking the return value). strscpy is

Re: [GIT PULL] Please pull NFS client bugfixes for 5.11

2021-01-31 Thread Trond Myklebust
On Sun, 2021-01-31 at 11:22 -0800, Linus Torvalds wrote: > On Sun, Jan 31, 2021 at 8:59 AM Trond Myklebust < > tron...@hammerspace.com> wrote: > > > >   git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs- > > for-5.11-3 > > Merged. However, it looks like you won't get a

Re: arm: sunxi: &83t: WARNING: CPU: 2 PID: 57 at drivers/thermal/thermal_core.c:563 thermal_zone_device_update

2021-01-31 Thread Maxime Ripard
On Sun, Jan 31, 2021 at 01:33:32PM +0800, Chen-Yu Tsai wrote: > Hi, > > On Sun, Jan 31, 2021 at 12:54 AM Corentin Labbe > wrote: > > > > Hello > > > > When booting next-20210128, I got the following warning on by bpim3 > > 6.148421] [ cut here ] > > [6.153145]

Re: [PATCH RFC v1 0/3] Introduce vfio-pci-core subsystem

2021-01-31 Thread Max Gurtovoy
On 1/28/2021 6:29 PM, Cornelia Huck wrote: On Tue, 26 Jan 2021 15:27:43 +0200 Max Gurtovoy wrote: Hi Alex, Cornelia and Jason, thanks for the reviewing this. On 1/26/2021 5:34 AM, Alex Williamson wrote: On Mon, 25 Jan 2021 20:45:22 -0400 Jason Gunthorpe wrote: On Mon, Jan 25, 2021

Re: [PATCH v8 07/14] mm: honor PF_MEMALLOC_PIN for all movable pages

2021-01-31 Thread Pavel Tatashin
On Sun, Jan 31, 2021 at 8:09 AM Lecopzer Chen wrote: > > > Hi, > > [...] > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > > index c93e801a45e9..3f17c73ad582 100644 > > --- a/mm/page_alloc.c > > +++ b/mm/page_alloc.c > > @@ -3807,16 +3807,13 @@ alloc_flags_nofragment(struct zone *zone, gfp_t

Re: [PATCH v2 3/3] usb: typec: tcpm: Get Sink VDO from fwnode

2021-01-31 Thread Guenter Roeck
On 1/31/21 7:18 AM, Kyle Tso wrote: > Commit a079973f462a ("usb: typec: tcpm: Remove tcpc_config > configuration mechanism") removed the tcpc_config which includes the > Sink VDO and it is not yet added back with fwnode. Add it now. > > Signed-off-by: Kyle Tso > --- > Changes since v1: > -

Re: [PATCH 13/29] bcache: Avoid comma separated statements

2021-01-31 Thread Coly Li
On 1/31/21 2:59 AM, Joe Perches wrote: > On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote: >> Use semicolons and braces. > > ping? It is in my for-next now, thanks for reminding. Coly Li > >> Signed-off-by: Joe Perches >> --- >>  drivers/md/bcache/bset.c | 12 >>  

Re: [PATCH] serial: 8250: add option to disable registration of legacy ISA ports

2021-01-31 Thread Greg Kroah-Hartman
On Sun, Jan 31, 2021 at 03:47:42PM +, Måns Rullgård wrote: > Greg Kroah-Hartman writes: > > > On Sun, Jan 31, 2021 at 01:18:47PM +, Måns Rullgård wrote: > >> Greg Kroah-Hartman writes: > >> > >> > On Thu, Jan 28, 2021 at 05:22:44PM +, Mans Rullgard wrote: > >> >> On systems that do

Re: [PATCH] serial: 8250: add option to disable registration of legacy ISA ports

2021-01-31 Thread Måns Rullgård
Greg Kroah-Hartman writes: > On Sun, Jan 31, 2021 at 01:18:47PM +, Måns Rullgård wrote: >> Greg Kroah-Hartman writes: >> >> > On Thu, Jan 28, 2021 at 05:22:44PM +, Mans Rullgard wrote: >> >> On systems that do not have the traditional PC ISA serial ports, the >> >> 8250 driver still

[RFC PATCH] drm/rockchip: vop_reg: add rk3036 hdmi support

2021-01-31 Thread Johan Jonker
A Rockchip Inno HDMI driver was added, but the rk3036 VOP regs with HDMI support in the manufacturer tree never made it to the mainline kernel. This patch adds only hdmi_en and hdmi_dclk_pol. The inno hdmi driver must set hdmi_pin_pol in GRF_SOC_CON2. Signed-off-by: Johan Jonker --- Not tested

Re: [PATCH v1 1/1] arm64: dts: mt6779: add spi host dts nodes

2021-01-31 Thread Hanks Chen
On Tue, 2021-01-26 at 21:18 +0800, Mason Zhang wrote: > From: mtk22786 > > this patch add spi host dts nodes for mt6779 IC. > > Change-Id: If4a3cbb09843f472210b390352db4b9886f5c00c > Signed-off-by: Mason Zhang > --- > arch/arm64/boot/dts/mediatek/mt6779.dtsi | 96 > 1

[PATCH v3 net-next 3/5] net: introduce common dev_page_is_reusable()

2021-01-31 Thread Alexander Lobakin
A bunch of drivers test the page before reusing/recycling for two common conditions: - if a page was allocated under memory pressure (pfmemalloc page); - if a page was allocated at a distant memory node (to exclude slowdowns). Introduce a new common inline for doing this, with likely()

[PATCH v3 net-next 1/5] mm: constify page_is_pfmemalloc() argument

2021-01-31 Thread Alexander Lobakin
The function only tests for page->index, so its argument should be const. Signed-off-by: Alexander Lobakin Reviewed-by: Jesse Brandeburg Acked-by: David Rientjes --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mm.h b/include/linux/mm.h

Re: [RFC 03/20] mm/mprotect: do not flush on permission promotion

2021-01-31 Thread Andrew Cooper
On 31/01/2021 01:07, Andy Lutomirski wrote: > Adding Andrew Cooper, who has a distressingly extensive understanding > of the x86 PTE magic. Pretty sure it is all learning things the hard way... > On Sat, Jan 30, 2021 at 4:16 PM Nadav Amit wrote: >> diff --git a/mm/mprotect.c b/mm/mprotect.c >>

Re: [PATCH v3 net-next 3/5] net: introduce common dev_page_is_reusable()

2021-01-31 Thread Alexander Lobakin
From: Matthew Wilcox Date: Sun, 31 Jan 2021 12:22:05 + > On Sun, Jan 31, 2021 at 12:11:52PM +, Alexander Lobakin wrote: > > A bunch of drivers test the page before reusing/recycling for two > > common conditions: > > - if a page was allocated under memory pressure (pfmemalloc page); > >

[PATCH v3 net-next 0/5] net: consolidate page_is_pfmemalloc() usage

2021-01-31 Thread Alexander Lobakin
page_is_pfmemalloc() is used mostly by networking drivers to test if a page can be considered for reusing/recycling. It doesn't write anything to the struct page itself, so its sole argument can be constified, as well as the first argument of skb_propagate_pfmemalloc(). In Page Pool core code, it

Re: [RFC PATCH v4 1/1] iio/scmi: Adding support for IIO SCMI Based Sensors

2021-01-31 Thread Jonathan Cameron
On Fri, 29 Jan 2021 22:18:18 + Jyoti Bhayana wrote: > This change provides ARM SCMI Protocol based IIO device. > This driver provides support for Accelerometer and Gyroscope using > SCMI Sensor Protocol extensions added in the SCMIv3.0 ARM specification > > Signed-off-by: Jyoti Bhayana A

Re: [PATCH net-next 9/9] net: ipa: don't disable NAPI in suspend

2021-01-31 Thread Alex Elder
On 1/31/21 8:52 AM, Willem de Bruijn wrote: > On Sat, Jan 30, 2021 at 11:29 PM Alex Elder wrote: >> >> On 1/30/21 9:25 AM, Willem de Bruijn wrote: >>> On Fri, Jan 29, 2021 at 3:29 PM Alex Elder wrote: The channel stop and suspend paths both call __gsi_channel_stop(), which

Re: [PATCH RFC v2 08/10] vdpa: add vdpa simulator for block device

2021-01-31 Thread Max Gurtovoy
On 1/28/2021 4:41 PM, Stefano Garzarella wrote: From: Max Gurtovoy This will allow running vDPA for virtio block protocol. Signed-off-by: Max Gurtovoy [sgarzare: various cleanups/fixes] Signed-off-by: Stefano Garzarella --- v2: - rebased on top of other changes (dev_attr, get_config(),

Re: [Letux-kernel] What ist the standard way to define connector type and bus format with device tree?

2021-01-31 Thread H. Nikolaus Schaller
ping? > Am 12.01.2021 um 12:41 schrieb H. Nikolaus Schaller : > > Hi, > according to bindings/display/panel/panel-common.yaml > and by using "panel-simple" as compatible string we > can define almost all properties of a DSI panel by a > device tree entry. > > Except the connector type and bus

Re: [PATCH net-next v1 2/6] lan743x: support rx multi-buffer packets

2021-01-31 Thread Sven Van Asbroeck
On Sun, Jan 31, 2021 at 2:06 AM wrote: > > > static int lan743x_rx_process_packet(struct lan743x_rx *rx) { > It looks like this function no longer processes a packet, but rather only > processes a single buffer. > So perhaps it should be renamed to lan743x_rx_process_buffer, so it is not >

Re: Migration to trusted keys: sealing user-provided key?

2021-01-31 Thread Jan Lübbe
On Sun, 2021-01-31 at 07:09 -0500, Mimi Zohar wrote: > On Sat, 2021-01-30 at 19:53 +0200, Jarkko Sakkinen wrote: > > On Thu, 2021-01-28 at 18:31 +0100, Ahmad Fatoum wrote: > > > Hello, > > > > > > I've been looking into how a migration to using trusted/encrypted keys > > > would look like

Re: [PATCH v4] iio: adc: stm32-adc: enable timestamping for non-DMA usage

2021-01-31 Thread Jonathan Cameron
On Mon, 25 Jan 2021 20:48:23 +0100 Ahmad Fatoum wrote: > For non-DMA usage, we have an easy way to associate a timestamp with a > sample: iio_pollfunc_store_time stores a timestamp in the primary > trigger IRQ handler and stm32_adc_trigger_handler runs in the IRQ thread > to push out the buffer

Re: [PATCH] arm64: dts: mediatek: Correct i2c clock of MT8192

2021-01-31 Thread Matthias Brugger
On 21/12/2020 13:26, qii.w...@mediatek.com wrote: > From: Qii Wang > > imp wrapper clock is the i2c source clock of MT8192 > > Signed-off-by: Qii Wang > --- Thanks for your patch. The next time please provide information about any out-of-tree series that are needed to apply cleanly.

[Patch v3 net-next 5/7] octeontx2-af: advertised link modes support on cgx

2021-01-31 Thread Hariprasad Kelam
From: Christina Jacob CGX supports setting advertised link modes on physical link. This patch adds support to derive cgx mode from ethtool link mode and pass it to firmware to configure the same. Signed-off-by: Christina Jacob Signed-off-by: Sunil Goutham Signed-off-by: Hariprasad Kelam ---

Re: [PATCH 1/2] arm64: dts: mt6779: Support pwrap on Mediatek MT6779 platform

2021-01-31 Thread Matthias Brugger
On 04/01/2021 09:08, Argus Lin wrote: > Support pwrap on Mediatek MT6779 platform by adding pwrap node in dts file. > > Signed-off-by: Argus Lin > --- Applied to v5.11-next/dts64 > arch/arm64/boot/dts/mediatek/mt6779.dtsi | 9 + > 1 file changed, 9 insertions(+) > > diff --git

[PATCH v2 1/3] usb: typec: Determine common SVDM Versions

2021-01-31 Thread Kyle Tso
PD Spec Revision 3.0 Version 2.0 + ECNs 2020-12-10 6.4.4.2.3 Structured VDM Version "The Structured VDM Version field of the Discover Identity Command sent and received during VDM discovery Shall be used to determine the lowest common Structured VDM Version supported by the Port Partners

Re: [PATCH 2/2] arm64: configs: Support pwrap on Mediatek MT6779 platform

2021-01-31 Thread Matthias Brugger
On 04/01/2021 09:08, Argus Lin wrote: > Support pwrap on Mediatek MT6779 platform by enabling CONFIG_MTK_PMIC_WRAP. > > Signed-off-by: Argus Lin > --- Applied to v5.11-next/defconfig > arch/arm64/configs/defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git

[PATCH v2 2/3] dt-bindings: connector: Add SVDM VDO properties

2021-01-31 Thread Kyle Tso
Add bindings of VDO properties of USB PD SVDM so that they can be used in device tree. Signed-off-by: Kyle Tso --- Changes since v1: dt-bindings: connector: Add SVDM VDO properties - updated the dt-bindings documentations - added more definitions of Product Type VDOs

[PATCH v2 3/3] usb: typec: tcpm: Get Sink VDO from fwnode

2021-01-31 Thread Kyle Tso
Commit a079973f462a ("usb: typec: tcpm: Remove tcpc_config configuration mechanism") removed the tcpc_config which includes the Sink VDO and it is not yet added back with fwnode. Add it now. Signed-off-by: Kyle Tso --- Changes since v1: - updated the commit message

[PATCH v2 0/3] common SVDM version and VDO from dt

2021-01-31 Thread Kyle Tso
patch v1 is here: https://lore.kernel.org/linux-devicetree/20210126084544.682641-1-kyle...@google.com/ Changes from v1:

[PATCH v7 net-next 02/15] dts: marvell: add CM3 SRAM memory to cp115 ethernet device tree

2021-01-31 Thread stefanc
From: Konstantin Porotchkin CM3 SRAM address space would be used for Flow Control configuration. Signed-off-by: Stefan Chulski Signed-off-by: Konstantin Porotchkin --- arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v7 net-next 11/15] net: mvpp2: add ethtool flow control configuration support

2021-01-31 Thread stefanc
From: Stefan Chulski This patch add ethtool flow control configuration support. Tx flow control retrieved correctly by ethtool get function. FW per port ethtool configuration capability added. Patch also takes care about mtu change procedure, if PPv2 switch BM pools during mtu change.

[PATCH v7 net-next 10/15] net: mvpp2: add RXQ flow control configurations

2021-01-31 Thread stefanc
From: Stefan Chulski This patch adds RXQ flow control configurations. Flow control disabled by default. Minimum ring size limited to 1024 descriptors. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 35 +-

RE: [PATCH 2/4] devicetree/bindings: add support for CP110 UTMI driver

2021-01-31 Thread Kostya Porotchkin
Hi, Lubomir, Thank you for your review! > On Wed, Jan 27, 2021 at 01:27:17PM +0200, kos...@marvell.com wrote: > > From: Konstantin Porotchkin > > > > Add DTS binding for Marvell CP110 UTMI driver > > > > Signed-off-by: Konstantin Porotchkin > > Any chance you could convert the document to

Re: [PATCH 05/29] ata: Avoid comma separated statements

2021-01-31 Thread Jens Axboe
On 1/30/21 11:56 AM, Joe Perches wrote: > On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote: >> Use semicolons and braces. > > ping? Queued for 5.12. -- Jens Axboe

RE: [EXT] Re: [PATCH v5 net-next 00/18] net: mvpp2: Add TX Flow Control support

2021-01-31 Thread Stefan Chulski
> > Ok, kernel.org has now dropped spamcop.net, so email should flow normally > now. > > Are you sure all your emails are being received by vger.kernel.org? No, I get Undeliverable Email response. I probably would wait till tomorrow and repost them again as v8. Regards, Stefan.

Re: [PATCH 06/29] drbd: Avoid comma separated statements

2021-01-31 Thread Jens Axboe
On 1/30/21 11:57 AM, Joe Perches wrote: > On Mon, 2020-08-24 at 21:56 -0700, Joe Perches wrote: >> Use semicolons and braces. > > ping? Queued for 5.12. -- Jens Axboe

Re: [PATCH 2/2] media: dvb-usb: Fix use-after-free access

2021-01-31 Thread Sean Young
Hi Takashi, On Fri, Jan 22, 2021 at 04:47:44PM +0100, Robert Foss wrote: > Hey Takashi, > > This patch is generating a checkpatch warning, but I think it is > spurious and can be ignored. The checkpatch warning isn't superious and should really be corrected. > > Other than that, this looks

Re: [PATCH v2] dts64: mt7622: fix slow sd card access

2021-01-31 Thread Matthias Brugger
On 13/01/2021 19:09, Frank Wunderlich wrote: > From: Frank Wunderlich > > Fix extreme slow speed (200MB takes ~20 min) on writing sdcard on > bananapi-r64 by adding reset-control for mmc1 like it's done for mmc0/emmc. > > Cc: sta...@vger.kernel.org > Fixes: 2c002a3049f7 ("arm64: dts: mt7622:

Re: [PATCH] soc: mediatek: pm-domains: Don't print an error if child domain is deferred

2021-01-31 Thread Matthias Brugger
On 13/01/2021 22:30, Enric Balletbo i Serra wrote: > Child domains can be deferred by the core because one of its resources > is not available yet, in such case, it will print an error, but > later it will succeed to probe. Fix that using the dev_err_probe() > function so it only prints an

Re: [EXT] Re: [PATCH v5 net-next 00/18] net: mvpp2: Add TX Flow Control support

2021-01-31 Thread Russell King - ARM Linux admin
On Sun, Jan 31, 2021 at 02:45:24PM +, Russell King - ARM Linux admin wrote: > On Sun, Jan 31, 2021 at 02:23:20PM +, Stefan Chulski wrote: > > I still don't see all patches in > > https://patchwork.kernel.org/project/netdevbpf/list/?series=424949 > > I would reduce patch series to 15

Re: [PATCH v4 1/3] arm64: dts: mt8183: config dsi node

2021-01-31 Thread Matthias Brugger
On 13/01/2021 12:03, Hsin-Yi Wang wrote: > Config dsi node for mt8183 kukui. Set panel and ports. > > Several kukui boards share the same panel property and only compatible > is different. So compatible will be set in board dts for comparison > convenience. > > Signed-off-by: Hsin-Yi Wang >

Re: [PATCH net-next 9/9] net: ipa: don't disable NAPI in suspend

2021-01-31 Thread Willem de Bruijn
On Sat, Jan 30, 2021 at 11:29 PM Alex Elder wrote: > > On 1/30/21 9:25 AM, Willem de Bruijn wrote: > > On Fri, Jan 29, 2021 at 3:29 PM Alex Elder wrote: > >> > >> The channel stop and suspend paths both call __gsi_channel_stop(), > >> which quiesces channel activity, disables NAPI, and (on other

Re: [PATCH 1/2] media: dvb-usb: Fix memory leak at error in dvb_usb_device_init()

2021-01-31 Thread Sean Young
On Wed, Jan 20, 2021 at 11:20:56AM +0100, Takashi Iwai wrote: > dvb_usb_device_init() allocates a dvb_usb_device object, but it > doesn't release it even when returning an error. The callers don't > seem caring it as well, hence those memories are leaked. > > This patch assures releasing the

[PATCH v2 2/2] hid-sensors: Add more data fields for sensitivity checking

2021-01-31 Thread Ye Xiang
Before, when reading/writing the hysteresis of als, incli-3d, press, and rotation sensor, we will get invalid argument error. This patch add more sensitivity data fields for these sensors, so that these sensors can get sensitivity index and return correct hysteresis value. Signed-off-by: Ye

[PATCH v7 net-next 15/15] net: mvpp2: add TX FC firmware check

2021-01-31 Thread stefanc
From: Stefan Chulski Patch check that TX FC firmware is running in CM3. If not, global TX FC would be disabled. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 1 + drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 42 2 files changed,

[PATCH v7 net-next 12/15] net: mvpp2: add BM protection underrun feature support

2021-01-31 Thread stefanc
From: Stefan Chulski Feature double size of BPPI by decreasing number of pools from 16 to 8. Increasing of BPPI size protect BM drop from BPPI underrun. Underrun could occurred due to stress on DDR and as result slow buffer transition from BPPE to BPPI. New BPPI threshold recommended by spec is:

Re: [PATCH v2] soc: mediatek: cmdq: add address shift in jump

2021-01-31 Thread Matthias Brugger
On 08/01/2021 02:48, Yongqiang Niu wrote: > On Wed, 2020-12-23 at 16:34 +0800, Yongqiang Niu wrote: >> Add address shift when compose jump instruction >> to compatible with 35bit format. >> >> Fixes: 0858fde496f8 ("mailbox: cmdq: variablize address shift in platform") >> >> Signed-off-by:

Re: [EXT] Re: [PATCH v5 net-next 00/18] net: mvpp2: Add TX Flow Control support

2021-01-31 Thread Russell King - ARM Linux admin
On Sun, Jan 31, 2021 at 02:23:20PM +, Stefan Chulski wrote: > I still don't see all patches in > https://patchwork.kernel.org/project/netdevbpf/list/?series=424949 > I would reduce patch series to 15 patches and repost again. kernel.org email is currently broken for everyone due to the

Re: [PATCH v2, 1/3] dt-binding: gce: add gce header file for mt8192

2021-01-31 Thread Matthias Brugger
On 24/12/2020 01:48, Yongqiang Niu wrote: > Add documentation for the mt8192 gce. > > Add gce header file defined the gce hardware event, > subsys number and constant for mt8192. > > Signed-off-by: Yongqiang Niu > --- > .../devicetree/bindings/mailbox/mtk-gce.txt| 7 +- >

[PATCH v2 0/2] resolve read hystersis return invalid argument issue for hid sensors

2021-01-31 Thread Ye Xiang
This patch series move get sensitivity attribute to common layer and resolve read hystersis return invalid argument issue for hid sensors als, incli-3d, rotation, and press on intel ISH Platform. --- v2: - separate the add relative sensitivity patch to the next patch series. Ye Xiang (2):

[PATCH v2 1/2] iio: hid-sensors: Move get sensitivity attribute to hid-sensor-common

2021-01-31 Thread Ye Xiang
No functional change has been made with this patch. The main intent here is to reduce code repetition of getting sensitivity attribute. In the current implementation, sensor_hub_input_get_attribute_info() is called from multiple drivers to get attribute info for sensitivity field. Moving this to

[PATCH v7 net-next 14/15] net: mvpp2: set 802.3x GoP Flow Control mode

2021-01-31 Thread stefanc
From: Stefan Chulski This patch fix GMAC TX flow control autoneg. Flow control autoneg wrongly were disabled with enabled TX flow control. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v7 net-next 06/15] net: mvpp2: increase BM pool and RXQ size

2021-01-31 Thread stefanc
From: Stefan Chulski BM pool and RXQ size increased to support Firmware Flow Control. Minimum depletion thresholds to support FC are 1024 buffers. BM pool size increased to 2048 to have some 1024 buffers space between depletion thresholds and BM pool size. Jumbo frames require a 9888B buffer,

[PATCH v7 net-next 13/15] net: mvpp2: add PPv23 RX FIFO flow control

2021-01-31 Thread stefanc
From: Stefan Chulski New FIFO flow control feature were added in PPv23. PPv2 FIFO polled by HW and trigger pause frame if FIFO fill level is below threshold. FIFO HW flow control enabled with CM3 RXQ flow control with ethtool. Current FIFO thresholds is: 9KB for port with maximum speed 10Gb/s

[PATCH v7 net-next 07/15] net: mvpp2: add FCA periodic timer configurations

2021-01-31 Thread stefanc
From: Stefan Chulski Flow Control periodic timer would be used if port in XOFF to transmit periodic XOFF frames. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 13 +- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 45 2 files

[PATCH v7 net-next 09/15] net: mvpp2: enable global flow control

2021-01-31 Thread stefanc
From: Stefan Chulski This patch enables global flow control in FW and in the phylink validate mask. Signed-off-by: Stefan Chulski --- drivers/net/ethernet/marvell/mvpp2/mvpp2.h | 13 ++--- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 30 +++- 2 files changed, 38

[PATCH v7 net-next 08/15] net: mvpp2: add FCA RXQ non occupied descriptor threshold

2021-01-31 Thread stefanc
From: Stefan Chulski The firmware needs to monitor the RX Non-occupied descriptor bits for flow control to move to XOFF mode. These bits need to be unmasked to be functional, but they will not raise interrupts as we leave the RX exception summary bit in MVPP2_ISR_RX_TX_MASK_REG clear.

[PATCH] arm64: perf: Constify static attribute_group structs

2021-01-31 Thread Rikard Falkeborn
The only usage of these is to put their addresses in an array of pointers to const attribute_group structs. Make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- arch/arm64/kernel/perf_event.c | 6 +++--- 1 file changed, 3 insertions(+), 3

<    1   2   3   4   5   6   >