[RFC PATCH v3 6/7] regulator: bd9576: Support error reporting

2021-03-11 Thread Matti Vaittinen
BD9573 and BD9576 support set of "protection" interrupts for "fatal" issues. Those lead to SOC reset as PMIC shuts the power outputs. Thus there is no relevant IRQ handling for them. Few "detection" interrupts were added to the BD9576 with the idea that SOC could take some recovery-action before

Re: Re: [PATCH] infiniband/core: Fix a use after free in cm_work_handler

2021-03-11 Thread lyl2019
In the implementation of destory_cm_id(), it restores cm_id_priv by "cm_id_priv = container_of(cm_id, struct iwcm_id_private, id);". And the last line of destory_cm_id() calls "(void)iwcm_deref_id(cm_id_priv);" to free the cm_id_priv. > -原始邮件- > 发件人: "Leon Romanovsky" > 发送时间:

[PATCH] arm64: dts: qcom: sc7280: Add PMIC peripherals for SC7280

2021-03-11 Thread satya priya
Add PM7325/PM8350C/PMK8350/PMR735A peripherals such as PON, GPIOs, RTC and other PMIC infra modules for SC7280. Signed-off-by: satya priya --- This patch depends on base DT and board files for SC7280 to merge first https://lore.kernel.org/patchwork/project/lkml/list/?series=487403

Re: No sound cards detected on Kabylake laptops after upgrade to kernel 5.8

2021-03-11 Thread Amadeusz Sławiński
On 3/11/2021 11:24 AM, Jaroslav Kysela wrote: Dne 11. 03. 21 v 6:50 Chris Chiu napsal(a): On Tue, Mar 9, 2021 at 11:29 PM Cezary Rojewski wrote: On 2021-03-09 1:19 PM, Chris Chiu wrote: Hi Guys, We have received reports that on some Kabylake laptops (Acer Swift SF314-54/55 and Lenovo

Re: [PATCH 5/8] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h75x

2021-03-11 Thread Alexandre TORGUE
Hi Dillon On 3/3/21 9:05 AM, dillon.min...@gmail.com wrote: From: dillon min To support stm32h750 and stm32h743, we need a base stm32h7-pinctrl.dtsi as stm32h743 & h750 has almost the same interface. so, just rename stm32h743-pinctrl.dtsi to stm32h7-pinctrl.dtsi You do not "just" rename

[PATCH 2/2] net: core: datagram.c: Fix usage of space before tab

2021-03-11 Thread Shubhankar Kuranagatti
Removed an extra space before the tab key. Signed-off-by: Shubhankar Kuranagatti --- net/core/datagram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/datagram.c b/net/core/datagram.c index 7b2204f102b7..be0caaec9add 100644 --- a/net/core/datagram.c +++

Re: [PATCH v9 7/8] arm64: dts: imx8qxp: Add jpeg encoder/decoder nodes

2021-03-11 Thread Hans Verkuil
Hi Mirela, On 11/03/2021 01:28, Mirela Rabulea (OSS) wrote: > From: Mirela Rabulea > > Add jpeg decoder/encoder nodes, for now on imx8qxp only. > The same should work on imx8qm, but it was not tested. FYI: I've posted a pull request for this driver, and once it is merged in our media tree this

Re: [PATCH] thermal: Fix spelling mistake "disabed" -> "disabled"

2021-03-11 Thread Daniel Lezcano
On 11/03/2021 10:30, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in a comment, fix it. > > Signed-off-by: Colin Ian King > --- Applied, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro:

Re: [PATCH] configfs: Fix config_item refcnt error in __configfs_open_file()

2021-03-11 Thread Christoph Hellwig
I've actually just queued up a similar patch from Daiyue Zhang. > - goto out_put_item; > + goto out_put_module; > > if (type & CONFIGFS_ITEM_BIN_ATTR) { > buffer->bin_attr = to_bin_attr(dentry); > @@ -391,7 +391,7 @@ static int

Re: [PATCH 1/3] ASoC: simple-card-utils: Fix device module clock

2021-03-11 Thread Michael Walle
Am 2021-03-11 12:05, schrieb Sameer Pujar: It would work and initially I had similar patch, see [0] and related series. Suggestion is to always use "clocks" property with devices only. I see. But again, I don't think it is correct to change the clock of the codec by default. What happens if

Re: pinctrl: core: Handling pinmux and pinconf separately

2021-03-11 Thread Michal Simek
On 3/11/21 11:57 AM, Colin Ian King wrote: > Hi, > > Static analysis on linux-next with Coverity has found a potential issue > in drivers/pinctrl/core.c with the following commit: > > commit 0952b7ec1614abf232e921aac0cc2bca8e60e162 > Author: Michal Simek > Date: Wed Mar 10 09:16:54 2021

Re: [PATCH v7 1/2] media: v4l2-ctrl: add controls for long term reference.

2021-03-11 Thread dikshita
Hi Hans, Thanks for your comments. I Will update the documentation based on your suggestion in the next patch. Thanks, Dikshita On 2021-03-05 14:08, Hans Verkuil wrote: Hi Dikshita, On 03/03/2021 12:09, Dikshita Agarwal wrote: Long Term Reference (LTR) frames are the frames that are

Re: [PATCH 0/8] ARM: STM32: add art-pi(stm32h750xbh6) board support

2021-03-11 Thread dillon min
Hi Alexandre, Thanks for quickly responding. On Thu, Mar 11, 2021 at 6:26 PM Alexandre TORGUE wrote: > > Hi Dillon > > > -Original Message- > > From: dillon min > > Sent: mercredi 10 mars 2021 12:48 > > To: Rob Herring ; Maxime Coquelin > > ; Alexandre TORGUE > > ; open list:OPEN

Re: [PATCH -next] mtd: parsers: ofpart: make symbol 'bcm4908_partitions_quirks' static

2021-03-11 Thread Miquel Raynal
On Thu, 2021-03-04 at 06:46:00 UTC, 'Wei Yongjun wrote: > From: Wei Yongjun > > The sparse tool complains as follows: > > drivers/mtd/parsers/ofpart_core.c:25:32: warning: > symbol 'bcm4908_partitions_quirks' was not declared. Should it be static? > > This symbol is not used outside of

Re: [PATCH v2] configfs: Fix config_item refcnt error in __configfs_open_file()

2021-03-11 Thread Christoph Hellwig
On Thu, Mar 11, 2021 at 12:35:10PM +0100, gre...@linuxfoundation.org wrote: > From: Daniel Rosenberg > > __configfs_open_file() used to use configfs_get_config_item, but changed > in commit b0841eefd969 ("configfs: provide exclusion between IO and > removals") to just call to_item. The error

Re: [PATCH 5.10 00/47] 5.10.23-rc2 review

2021-03-11 Thread rudi
On Wed, Mar 10, 2021 at 07:29:23PM +0100, gre...@linuxfoundation.org wrote: > From: Greg Kroah-Hartman > > This is the start of the stable review cycle for the 5.10.23 release. > There are 47 patches in this series, all will be posted as a response > to this one. If anyone has any issues with

Re: [PATCH RESEND][next] mtd: mtdchar: Fix fall-through warnings for Clang

2021-03-11 Thread Miquel Raynal
On Fri, 2021-03-05 at 08:22:24 UTC, "Gustavo A. R. Silva" wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > by explicitly adding a break statement instead of letting the code fall > through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 >

Re: [PATCH] mtd: maps: fix error return code of physmap_flash_remove()

2021-03-11 Thread Miquel Raynal
On Mon, 2021-03-08 at 03:44:46 UTC, Jia-Ju Bai wrote: > When platform_get_drvdata() returns NULL to info, no error return code > of physmap_flash_remove() is assigned. > To fix this bug, err is assigned with -EINVAL in this case > > Fixes: 73566edf9b91 ("[MTD] Convert physmap to platform driver")

Re: [PATCH RESEND][next] mtd: cfi: Fix fall-through warnings for Clang

2021-03-11 Thread Miquel Raynal
On Fri, 2021-03-05 at 08:19:33 UTC, "Gustavo A. R. Silva" wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple > warnings by explicitly adding multiple break statements and a return > instead of letting the code fall through to the next case. > > Link:

Re: [PATCH RESEND][next] mtd: onenand: Fix fall-through warnings for Clang

2021-03-11 Thread Miquel Raynal
On Fri, 2021-03-05 at 08:23:56 UTC, "Gustavo A. R. Silva" wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > by explicitly adding a break statement instead of letting the code fall > through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 >

Re: [PATCH RESEND][next] mtd: rawnand: fsmc: Fix fall-through warnings for Clang

2021-03-11 Thread Miquel Raynal
On Fri, 2021-03-05 at 08:25:59 UTC, "Gustavo A. R. Silva" wrote: > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > by explicitly adding a break statement instead of letting the code fall > through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 >

[PATCH 2/3] arm64: dts: imx8mq-librem5-r3: Mark buck3 as always on

2021-03-11 Thread Martin Kepplinger
From: Sebastian Krzyszkowiak Commit 66d3f246d79f ("arm64: dts: librem5: Don't mark buck3 as always on") removed always-on marking from GPU regulator, which is great for power saving - however it introduces additional i2c0 traffic which can be deadly for devices from the Dogwood batch. To

[PATCH 1/3] arm64: dts: imx8mq-librem5: Hog the correct gpio

2021-03-11 Thread Martin Kepplinger
From: Guido Günther There was an additional alias in the specifier it hogged line 27 instead of line 1. Signed-off-by: Guido Günther Signed-off-by: Martin Kepplinger --- arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH] block: fix possible bd_size_lock deadlock

2021-03-11 Thread yanfei . xu
From: Yanfei Xu bd_size_lock spinlock could be taken in block softirq, thus we should disable the softirq before taking the lock. WARNING: inconsistent lock state 5.12.0-rc2-syzkaller #0 Not tainted inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-R} usage.

Re: [RFT PATCH v3 12/27] of/address: Add infrastructure to declare MMIO as non-posted

2021-03-11 Thread Hector Martin
On 11/03/2021 18.12, Arnd Bergmann wrote: On Wed, Mar 10, 2021 at 6:01 PM Rob Herring wrote: On Wed, Mar 10, 2021 at 1:27 AM Hector Martin wrote: On 10/03/2021 07.06, Rob Herring wrote: My main concern here is that this creates an inconsistency in the device tree representation that only

[PATCH 1/2] dm verity: fix DM_VERITY_OPTS_MAX value

2021-03-11 Thread JeongHyeon Lee
Three optional parameters at once using dm verity table is not supported, option can only be used exclusively. e.g.) (verity_mode) (ignore_zero_block) (check_at_most_once) verity table: '1 /dev/sdb /dev/sdb 4096 4096 1028807 1028807 11 use_fec_from_device /dev/sdb fec_roots 2 fec_blocks

Re: [PATCH v3 1/4] KVM: arm64: GICv4.1: Add function to get VLPI state

2021-03-11 Thread Shenming Lu
On 2021/3/11 16:57, Marc Zyngier wrote: > On Wed, 27 Jan 2021 12:13:34 +, > Shenming Lu wrote: >> >> With GICv4.1 and the vPE unmapped, which indicates the invalidation >> of any VPT caches associated with the vPE, we can get the VLPI state >> by peeking at the VPT. So we add a function for

Re: [PATCH v5 1/1] iio: adc: ad7124: allow more than 8 channels

2021-03-11 Thread kernel test robot
Hi, I love your patch! Perhaps something to improve: [auto build test WARNING on iio/togreg] [also build test WARNING on linux/master linus/master v5.12-rc2 next-20210311] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base

Re: [PATCH 8/8] ARM: stm32: add initial support for stm32h750

2021-03-11 Thread dillon min
Hi Alexandre On Thu, Mar 11, 2021 at 6:43 PM Alexandre TORGUE wrote: > > Hi Dillon > > On 3/3/21 9:05 AM, dillon.min...@gmail.com wrote: > > From: dillon min > > > > No empty commit message please Okay, thanks for remind. > > > Signed-off-by: dillon min > > --- > >

[BUG] net/ppp: A use after free in ppp_unregister_channe

2021-03-11 Thread lyl2019
File: drivers/net/ppp/ppp_generic.c In ppp_unregister_channel, pch could be freed in ppp_unbridge_channels() but after that pch is still in use. Inside the function ppp_unbridge_channels, if "pchbb == pch" is true and then pch will be freed. I checked the commit history and found that this

Re: [PATCH 0/6] usbip fixes to crashes found by syzbot

2021-03-11 Thread Tetsuo Handa
On 2021/03/11 3:33, Greg KH wrote: > On Sun, Mar 07, 2021 at 08:53:25PM -0700, Shuah Khan wrote: >> This patch series fixes the following problems founds in syzbot >> fuzzing. > > Thanks for these, all now queued up. I send SIGSTOP to [PATCH 4/6] usbip: fix stub_dev usbip_sockfd_store() races

Re: [PATCH 5.4 00/24] 5.4.105-rc1 review

2021-03-11 Thread Greg KH
On Wed, Mar 10, 2021 at 08:19:45PM -0800, Florian Fainelli wrote: > +Alex, > > On 3/10/2021 5:24 AM, gre...@linuxfoundation.org wrote: > > From: Greg Kroah-Hartman > > > > This is the start of the stable review cycle for the 5.4.105 release. > > There are 24 patches in this series, all will be

Re: [PATCH 04/44] vgacon: comment on vga_rolled_over

2021-03-11 Thread Daniel Vetter
On Tue, Mar 02, 2021 at 07:21:34AM +0100, Jiri Slaby wrote: > Long time ago, I figured out what this number is good for and documented > that locally. But never submitted, so do it now. > > Signed-off-by: Jiri Slaby > Cc: dri-de...@lists.freedesktop.org > Cc: linux-fb...@vger.kernel.org I think

Re: [PATCH v6 00/12] x86: major paravirt cleanup

2021-03-11 Thread Jürgen Groß
On 11.03.21 13:51, Borislav Petkov wrote: On Thu, Mar 11, 2021 at 01:50:26PM +0100, Borislav Petkov wrote: and move the cleanups patches 13 and 14 to the beginning of the set? Yeah, 14 needs ALTERNATIVE_TERNARY so I guess after patch 5, that is. I'm putting 13 at the begin of the series and

Re: [PATCH v14 8/8] kselftest/arm64: Verify that TCO is enabled in load_unaligned_zeropad()

2021-03-11 Thread Catalin Marinas
On Mon, Mar 08, 2021 at 04:14:34PM +, Vincenzo Frascino wrote: > load_unaligned_zeropad() and __get/put_kernel_nofault() functions can > read passed some buffer limits which may include some MTE granule with a > different tag. > > When MTE async mode is enable, the load operation crosses the

Re: [PATCH] drivers: spi: cadence: set cqspi to the driver_data field of struct device

2021-03-11 Thread Mark Brown
On Thu, Mar 11, 2021 at 05:12:20PM +0800, meng...@windriver.com wrote: > From: Meng Li > > When initialize cadence qspi controller, it is need to set cqspi > to the driver_data field of struct device, because it will be > used in function cqspi_remove/suspend/resume(). Otherwise, there > will be

Linux 4.19.180

2021-03-11 Thread gregkh
From: Greg Kroah-Hartman I'm announcing the release of the 4.19.180 kernel. All users of the 4.19 kernel series must upgrade. The updated 4.19.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.19.y and can be browsed at the

Re: Linux 4.19.180

2021-03-11 Thread gregkh
From: Greg Kroah-Hartman diff --git a/Makefile b/Makefile index 040b3cd699b0..48cdfe5ce992 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 19 -SUBLEVEL = 179 +SUBLEVEL = 180 EXTRAVERSION = NAME = "People's Front" diff --git

Re: [PATCH v2 2/2] modules: add CONFIG_MODPROBE_PATH

2021-03-11 Thread Jessica Yu
+++ Rasmus Villemoes [09/03/21 22:17 +0100]: Allow the developer to specifiy the initial value of the modprobe_path[] string. This can be used to set it to the empty string initially, thus effectively disabling request_module() during early boot until userspace writes a new value via the

Linux 5.4.105

2021-03-11 Thread gregkh
From: Greg Kroah-Hartman I'm announcing the release of the 5.4.105 kernel. All users of the 5.4 kernel series must upgrade. The updated 5.4.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y and can be browsed at the normal

[PATCH] x86/kvmclock: Stop kvmclocks for hibernate restore

2021-03-11 Thread Lenny Szubowicz
Turn off host updates to the registered kvmclock memory locations when transitioning to a hibernated kernel in resume_target_kernel(). This is accomplished for secondary vcpus by disabling host clock updates for that vcpu when it is put offline. For the primary vcpu, it's accomplished by using

Re: Linux 5.4.105

2021-03-11 Thread gregkh
From: Greg Kroah-Hartman diff --git a/Makefile b/Makefile index e94dcf2d77f5..e27d031f3241 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 4 -SUBLEVEL = 104 +SUBLEVEL = 105 EXTRAVERSION = NAME = Kleptomaniac Octopus diff

YOU HAVE WON

2021-03-11 Thread lottonlxxx
LOTTO.NL, 2391 Beds 152 Koningin Julianaplein 21, Den Haag-Netherlands. (Lotto affiliate with Subscriber Agents). From: Susan Console (Lottery Coordinator) Website: www.lotto.nl Sir/Madam, CONGRATULATIONS!!! We are pleased to inform you of the result of the Lotto NL Winners International

Re: [PATCH] tracing: remove holes in events

2021-03-11 Thread Steven Rostedt
On Thu, 11 Mar 2021 17:44:15 +0800 Tony Lu wrote: > --- > include/trace/events/net.h| 42 +-- > include/trace/events/qdisc.h | 4 ++-- > include/trace/events/sunrpc.h | 4 ++-- > include/trace/events/tcp.h| 2 +- > 4 files changed, 26 insertions(+),

Re: [PATCH v1 1/1] ALSA: hda/realtek: Sort alphanumerically the SND_PCI_QUIRK() entries.

2021-03-11 Thread Andy Shevchenko
On Thu, Mar 11, 2021 at 3:40 PM Takashi Iwai wrote: > > On Thu, 11 Mar 2021 14:27:41 +0100, > Andy Shevchenko wrote: > > > > Sort alphanumerically the SND_PCI_QUIRK() entries for better maintenance. > > No functional change implied. > > I'd love to apply this kind of cleanups (and I do sometimes

Re: [PATCH v2 1/3] tpm: efi: Use local variable for calculating final log size

2021-03-11 Thread Stefan Berger
On 3/10/21 6:24 PM, Jarkko Sakkinen wrote: On Thu, Mar 11, 2021 at 01:21:47AM +0200, Jarkko Sakkinen wrote: On Wed, Mar 10, 2021 at 05:19:14PM -0500, Stefan Berger wrote: When tpm_read_log_efi is called multiple times, which happens when one loads and unloads a TPM2 driver multiple times,

[PATCH 1/2] afs: Fix accessing YFS xattrs on a non-YFS server

2021-03-11 Thread David Howells
If someone attempts to access YFS-related xattrs (e.g. afs.yfs.acl) on a file on a non-YFS AFS server (such as OpenAFS), then the kernel will jump to a NULL function pointer because the afs_fetch_acl_operation descriptor doesn't point to a function for issuing an operation on a non-YFS server[1].

[PATCH 2/2] afs: Fix afs_listxattr() to not list afs ACL special xattrs

2021-03-11 Thread David Howells
afs_listxattr() lists all the available special afs xattrs (i.e. those in the "afs.*" space), no matter what type of server we're dealing with. But OpenAFS servers, for example, cannot deal with some of the extra-capable attributes that AuriStor (YFS) servers provide. Unfortunately, the presence

Re: No sound cards detected on Kabylake laptops after upgrade to kernel 5.8

2021-03-11 Thread Jaroslav Kysela
Dne 11. 03. 21 v 11:40 Amadeusz Sławiński napsal(a): > On 3/11/2021 11:24 AM, Jaroslav Kysela wrote: >> Dne 11. 03. 21 v 6:50 Chris Chiu napsal(a): >>> On Tue, Mar 9, 2021 at 11:29 PM Cezary Rojewski >>> wrote: On 2021-03-09 1:19 PM, Chris Chiu wrote: > Hi Guys, > We have

Re: [PATCH v4 3/3] arm64: dts: ti: Add support for Siemens IOT2050 boards

2021-03-11 Thread Jan Kiszka
On 11.03.21 15:00, Nishanth Menon wrote: > On 14:44-20210311, Jan Kiszka wrote: >> On 11.03.21 14:17, Nishanth Menon wrote: >>> On 10:37-20210310, Jan Kiszka wrote: >>>> From: Jan Kiszka >>>> + spidev@0 { >>>> + compatible = "ro

Re: [PATCH] arm64: dts: ti: k3-am65-mcu: Add RTI watchdog entry

2021-03-11 Thread Nishanth Menon
On Sat, 20 Feb 2021 13:49:51 +0100, Jan Kiszka wrote: > Add the DT entry for a watchdog based on RTI1. > > On SR1.0 silicon, it requires additional firmware on the MCU R5F cores > to handle the expiry, e.g. https://github.com/siemens/k3-rti-wdt. As > this firmware will also lock the power domain

[PATCH v7 08/14] x86: add new features for paravirt patching

2021-03-11 Thread Juergen Gross
For being able to switch paravirt patching from special cased custom code sequences to ALTERNATIVE handling some X86_FEATURE_* are needed as new features. This enables to have the standard indirect pv call as the default code and to patch that with the non-Xen custom code sequence via ALTERNATIVE

[PATCH v7 02/14] static_call: move struct static_call_key definition to static_call_types.h

2021-03-11 Thread Juergen Gross
Having the definition of static_call() in static_call_types.h makes no sense as long struct static_call_key isn't defined there, as the generic implementation of static_call() is referencing this structure. So move the definition of struct static_call_key to static_call_types.h. Signed-off-by:

[PATCH v7 07/14] x86/alternative: don't open code ALTERNATIVE_TERNARY() in _static_cpu_has()

2021-03-11 Thread Juergen Gross
_static_cpu_has() contains a completely open coded version of ALTERNATIVE_TERNARY(). Replace that with the macro instead. Signed-off-by: Juergen Gross --- V6: - new patch V7: - moved patch earlier in series (Boris Petkov) --- arch/x86/include/asm/cpufeature.h | 41

YOU HAVE WON

2021-03-11 Thread lottonlxxx
LOTTO.NL, 2391 Beds 152 Koningin Julianaplein 21, Den Haag-Netherlands. (Lotto affiliate with Subscriber Agents). From: Susan Console (Lottery Coordinator) Website: www.lotto.nl Sir/Madam, CONGRATULATIONS!!! We are pleased to inform you of the result of the Lotto NL Winners International

[PATCH v7 03/14] static_call: add function to query current function

2021-03-11 Thread Juergen Gross
Some users of paravirtualized functions need to query which function has been specified in a pv_ops vector element. In order to be able to switch such paravirtualized functions to static_calls instead, there needs to be a function to query the function which will be called via static_call().

[PATCH v7 13/14] x86/paravirt: switch functions with custom code to ALTERNATIVE

2021-03-11 Thread Juergen Gross
Instead of using paravirt patching for custom code sequences use ALTERNATIVE for the functions with custom code replacements. Instead of patching an ud2 instruction for unpopulated vector entries into the caller site, use a simple function just calling BUG() as a replacement. Simplify the

[PATCH v7 10/14] x86/paravirt: simplify paravirt macros

2021-03-11 Thread Juergen Gross
The central pvops call macros PVOP_CALL() and PVOP_VCALL() are looking very similar now. The main differences are using PVOP_VCALL_ARGS or PVOP_CALL_ARGS, which are identical, and the return value handling. So drop PVOP_VCALL_ARGS and instead of PVOP_VCALL() just use

[PATCH v7 09/14] x86/paravirt: remove no longer needed 32-bit pvops cruft

2021-03-11 Thread Juergen Gross
PVOP_VCALL4() is only used for Xen PV, while PVOP_CALL4() isn't used at all. Keep PVOP_CALL4() for 64 bits due to symmetry reasons. This allows to remove the 32-bit definitions of those macros leading to a substantial simplification of the paravirt macros, as those were the only ones needing

[PATCH v7 12/14] x86/paravirt: add new macros PVOP_ALT* supporting pvops in ALTERNATIVEs

2021-03-11 Thread Juergen Gross
Instead of using paravirt patching for custom code sequences add support for using ALTERNATIVE handling combined with paravirt call patching. Signed-off-by: Juergen Gross Acked-by: Peter Zijlstra (Intel) --- V3: - drop PVOP_ALT_VCALL() macro --- arch/x86/include/asm/paravirt_types.h | 49

[PATCH v7 11/14] x86/paravirt: switch iret pvops to ALTERNATIVE

2021-03-11 Thread Juergen Gross
The iret paravirt op is rather special as it is using a jmp instead of a call instruction. Switch it to ALTERNATIVE. Signed-off-by: Juergen Gross Acked-by: Peter Zijlstra (Intel) --- V3: - use ALTERNATIVE_TERNARY --- arch/x86/include/asm/paravirt.h | 6 +++---

[PATCH v7 04/14] x86/paravirt: switch time pvops functions to use static_call()

2021-03-11 Thread Juergen Gross
The time pvops functions are the only ones left which might be used in 32-bit mode and which return a 64-bit value. Switch them to use the static_call() mechanism instead of pvops, as this allows quite some simplification of the pvops implementation. Signed-off-by: Juergen Gross Acked-by: Peter

[PATCH v7 14/14] x86/paravirt: have only one paravirt patch function

2021-03-11 Thread Juergen Gross
There is no need any longer to have different paravirt patch functions for native and Xen. Eliminate native_patch() and rename paravirt_patch_default() to paravirt_patch(). Signed-off-by: Juergen Gross Acked-by: Peter Zijlstra (Intel) --- V3: - remove paravirt_patch_insns() (kernel test robot)

[PATCH v7 06/14] x86/alternative: support ALTERNATIVE_TERNARY

2021-03-11 Thread Juergen Gross
Add ALTERNATIVE_TERNARY support for replacing an initial instruction with either of two instructions depending on a feature: ALTERNATIVE_TERNARY "default_instr", FEATURE_NR, "feature_on_instr", "feature_off_instr" which will start with "default_instr" and at patch time

[PATCH v7 05/14] x86/alternative: support not-feature

2021-03-11 Thread Juergen Gross
Add support for alternative patching for the case a feature is not present on the current cpu. For users of ALTERNATIVE() and friends an inverted feature is specified by applying the ALT_NOT() macro to it, e.g.: ALTERNATIVE(old, new, ALT_NOT(feature)) Signed-off-by: Juergen Gross --- V5: -

[PATCH v7 01/14] x86/alternative: merge include files

2021-03-11 Thread Juergen Gross
Merge arch/x86/include/asm/alternative-asm.h into arch/x86/include/asm/alternative.h in order to make it easier to use common definitions later. Signed-off-by: Juergen Gross --- V6: - new patch V7: - moved to begin of series (Boris Petkov) --- arch/x86/entry/entry_32.S| 2 +-

[PATCH v7 00/14] x86: major paravirt cleanup

2021-03-11 Thread Juergen Gross
This is a major cleanup of the paravirt infrastructure aiming at eliminating all custom code patching via paravirt patching. This is achieved by using ALTERNATIVE instead, leading to the ability to give objtool access to the patched in instructions. In order to remove most of the 32-bit special

Re: [PATCH 3/5] SUNRPC: Refresh rq_pages using a bulk page allocator

2021-03-11 Thread Chuck Lever III
> On Mar 11, 2021, at 6:49 AM, Mel Gorman wrote: > > From: Chuck Lever > > Reduce the rate at which nfsd threads hammer on the page allocator. > This improve throughput scalability by enabling the threads to run > more independently of each other. Mel, if you should repost this series:

Re: [PATCH v4 3/3] arm64: dts: ti: Add support for Siemens IOT2050 boards

2021-03-11 Thread Jan Kiszka
On 11.03.21 15:21, Nishanth Menon wrote: > On 15:14-20210311, Jan Kiszka wrote: > > [...] > >>> >>> See [1] compare the compatibles against >>> Documentation/devicetree/bindings -> I think you should describe what >>> your hardware really is

Re: [Linux-stm32] [PATCH v2 00/14] Introduce STM32MP1 RCC in secured mode

2021-03-11 Thread Ahmad Fatoum
Hello, On 11.03.21 15:02, Alexandre TORGUE wrote: > On 3/11/21 12:43 PM, Marek Vasut wrote: >> On 3/11/21 9:08 AM, Alexandre TORGUE wrote: >>> 1- Break the current ABI: as soon as those patches are merged, >>> stm32mp157c-dk2.dtb will impose to use >>> A tf-a for scmi clocks. For people using

slow boot with 7fef431be9c9 ("mm/page_alloc: place pages to tail in __free_pages_core()")

2021-03-11 Thread Deucher, Alexander
[AMD Public Use] Booting kernels on certain AMD platforms takes 2-3 minutes with the patch in the subject. Reverting it restores quick boot times (few seconds). Any ideas? Thanks, Alex [0.00] Linux version 5.11.0-7490c004ae7e (jenkins@24dbd4b4380b) (gcc (Ubuntu

Re: [PATCH] perf annotate: Fix sample events lost in stdio mode

2021-03-11 Thread Namhyung Kim
Hi, On Thu, Mar 11, 2021 at 5:48 PM Yang Jihong wrote: > > Hello, > > On 2021/3/6 16:28, Yang Jihong wrote: > > In hist__find_annotations function, since have a hist_entry per IP for the > > same > > symbol, we free notes->src to signal already processed this symbol in stdio > > mode; > > when

[RFC PATCH v3 7/7] regulator: bd9576: Fix the driver name in id table

2021-03-11 Thread Matti Vaittinen
Driver name was changed in MFD cell: https://lore.kernel.org/lkml/560b9748094392493ebf7af11b6cc558776c4fd5.1613031055.git.matti.vaitti...@fi.rohmeurope.com/ Fix the ID table to match this. Signed-off-by: Matti Vaittinen --- v3: - no changes v2: - new patch

Re: No sound cards detected on Kabylake laptops after upgrade to kernel 5.8

2021-03-11 Thread Jaroslav Kysela
Dne 11. 03. 21 v 6:50 Chris Chiu napsal(a): > On Tue, Mar 9, 2021 at 11:29 PM Cezary Rojewski > wrote: >> >> On 2021-03-09 1:19 PM, Chris Chiu wrote: >>> Hi Guys, >>> We have received reports that on some Kabylake laptops (Acer Swift >>> SF314-54/55 and Lenovo Yoga C930...etc), all sound

Re: [PATCH 1/3] ASoC: simple-card-utils: Fix device module clock

2021-03-11 Thread Michael Walle
Hi Sameer, Am 2021-03-10 15:50, schrieb Sameer Pujar: On 3/10/2021 4:00 AM, Michael Walle wrote: Am 2021-03-09 17:27, schrieb Sameer Pujar: On 3/9/2021 8:11 PM, Michael Walle wrote: If "clocks = <>" is specified from the CPU or Codec component device node, the clock is not getting enabled.

Re: [PATCH 1/1] nvme-pci: add the DISABLE_WRITE_ZEROES quirk for a Samsung PM1725a

2021-03-11 Thread Dmitry Monakhov
10.03.2021, 16:41, "Christoph Hellwig" : > On Wed, Mar 10, 2021 at 02:21:56PM +0100, Christoph Hellwig wrote: >>  Can you try this patch instead? >> >>  http://lists.infradead.org/pipermail/linux-nvme/2021-February/023183.html > > Actually, please try the patch below instead, it looks like our

Re: [GIT PULL for v5.12-rc3] media fixes

2021-03-11 Thread Mauro Carvalho Chehab
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v5.12-2 For a couple of fixes: - Fix a build issue with CEC; - Fix a deadlock at usbtv driver; - Fix some null pointer address issues at vsp1 driver; - Fix a wrong bitmap setting at

[PATCH][next] usbip: Fix incorrect double assignment to udc->ud.tcp_rx

2021-03-11 Thread Colin King
From: Colin Ian King Currently udc->ud.tcp_rx is being assigned twice, the second assignment is incorrect, it should be to udc->ud.tcp_tx instead of rx. Fix this. Addresses-Coverity: ("Unused value") Fixes: 46613c9dfa96 ("usbip: fix vudc usbip_sockfd_store races leading to gpf") Signed-off-by:

Re: [PATCH v6 4/4] dm: add DM_INTERPOSED_FLAG

2021-03-11 Thread Sergei Shtepa
The 03/10/2021 15:34, Christoph Hellwig wrote: > On Wed, Mar 10, 2021 at 08:28:12AM +0300, Sergei Shtepa wrote: > > > So instead of doing this shoudn't the interposer just always submit to the > > > whole device? But if we keep it, the logic in this funtion should go > > > into a block layer

RE: [PATCH v3 00/10] ARM: dts: stm32: Add Engicam STM32MP1 SoM

2021-03-11 Thread Alexandre TORGUE
Hi Jagan > -Original Message- > From: Jagan Teki > Sent: dimanche 28 février 2021 16:43 > To: Maxime Coquelin ; Alexandre TORGUE > ; Rob Herring > Cc: devicet...@vger.kernel.org; linux-stm32@st-md- > mailman.stormreply.com; linux-arm-ker...@lists.infradead.org; linux- >

re: scsi: sg: Replace sg_allow_access()

2021-03-11 Thread Colin Ian King
Hi, Static analysis on linux-next with Coverity has detected an issue in drivers/scsi/sg.c in function sg_remove_sfp_usercontext with the following recent commit: commit 0c32296d73ec5dec64729eb555f1a29ded8a7272 Author: Douglas Gilbert Date: Fri Feb 19 21:00:28 2021 -0500 scsi: sg:

[PATCH][next] bus: mhi: core: remove redundant initialization of variables state and ee

2021-03-11 Thread Colin King
From: Colin Ian King The variables state and ee are being initialized with values that are never read and are being updated later with a new values. The initializations are redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King ---

Re: [PATCH] configfs: Fix use-after-free issue in __configfs_open_file

2021-03-11 Thread Christoph Hellwig
Thanks, applied.

Re: pinctrl: core: Handling pinmux and pinconf separately

2021-03-11 Thread Michal Simek
On 3/11/21 12:24 PM, Colin Ian King wrote: > On 11/03/2021 11:16, Michal Simek wrote: >> >> >> On 3/11/21 11:57 AM, Colin Ian King wrote: >>> Hi, >>> >>> Static analysis on linux-next with Coverity has found a potential issue >>> in drivers/pinctrl/core.c with the following commit: >>> >>>

Re: [PATCH 00/13] Add binding updates and DT files for SC7280 SoC

2021-03-11 Thread Rajendra Nayak
On 3/11/2021 2:45 PM, Rajendra Nayak wrote: On 3/11/2021 5:43 AM, Bjorn Andersson wrote: On Fri 12 Feb 01:28 CST 2021, Rajendra Nayak wrote: This series includes a few minor binding updates and base device tree files (to boot to shell) for SC7280 SoC and the IDP board using this SoC. The

Re: [PATCH] vfio/pci: Handle concurrent vma faults

2021-03-11 Thread Christoph Hellwig
On Wed, Mar 10, 2021 at 03:06:07PM -0500, Peter Xu wrote: > On Wed, Mar 10, 2021 at 02:40:11PM -0400, Jason Gunthorpe wrote: > > On Wed, Mar 10, 2021 at 11:34:06AM -0700, Alex Williamson wrote: > > > > > > I think after the address_space changes this should try to stick with > > > > a normal

[PATCH v2] configfs: Fix config_item refcnt error in __configfs_open_file()

2021-03-11 Thread gregkh
From: Daniel Rosenberg __configfs_open_file() used to use configfs_get_config_item, but changed in commit b0841eefd969 ("configfs: provide exclusion between IO and removals") to just call to_item. The error path still tries to clean up the reference, incorrectly decrementing the ref count.

[PATCH 01/10] media: uvcvideo: Return -EINVAL for REQUEST API

2021-03-11 Thread Ricardo Ribalda
The driver does not support it. Fixes v4l2-compliance: Buffer ioctls (Input 0): fail: v4l2-test-buffers.cpp(1925): ret != EINVAL && ret != EBADR && ret != ENOTTY test Requests: FAIL Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_v4l2.c | 3 +++ 1 file

[PATCH 03/10] media: uvcvideo: Return -EIO for control errors

2021-03-11 Thread Ricardo Ribalda
Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(448): s_ctrl returned an error (22) test VIDIOC_G/S_CTRL: FAIL fail: v4l2-test-controls.cpp(698): s_ext_ctrls returned an error (22) test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL

[PATCH] media: videobuf2: Explicitly state max size of planes

2021-03-11 Thread Ricardo Ribalda
The plane size needs to be PAGE_ALIGNED, so it is not possible to have sizes bigger than MAX_INT - PAGE_SIZE. We already check for overflows when that happen: if (size < vb->planes[plane].length) goto free; But it is good to explicitly state our max allowed value, in order to align with

[PATCH 02/10] media: uvcvideo: Set capability in s_param

2021-03-11 Thread Ricardo Ribalda
Fixes v4l2-compliance: Format ioctls (Input 0): warn: v4l2-test-formats.cpp(1339): S_PARM is supported but doesn't report V4L2_CAP_TIMEPERFRAME fail: v4l2-test-formats.cpp(1241): node->has_frmintervals && !cap->capability Signed-off-by: Ricardo Ribalda ---

[PATCH 05/10] media: uvcvideo: Define Control and GUIDs for class ctrls

2021-03-11 Thread Ricardo Ribalda
Add new bindings for class controls. This controls will be implemented by a virtual entity. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 34 drivers/media/usb/uvc/uvcvideo.h | 8 2 files changed, 42 insertions(+) diff --git

[PATCH 06/10] media: uvcvideo: Implement UVC_CTRL_CLASS_UNIT

2021-03-11 Thread Ricardo Ribalda
Create a virtual entity that holds all the class control. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(216): missing control class for class 0098 fail: v4l2-test-controls.cpp(253): missing control class for class 009a

[PATCH 10/10] media: uvcvideo: Populate only active control classes

2021-03-11 Thread Ricardo Ribalda
Do not create Control Classes for empty classes. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(255): no controls in class 009d test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: FAIL Signed-off-by: Ricardo Ribalda ---

[PATCH 09/10] media: uvcvideo: Do not create initial events for class ctrls

2021-03-11 Thread Ricardo Ribalda
V4L2_CTRL_TYPE_CTRL_CLASS do not generate events. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(844): found event for control class 'User Controls' test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL Signed-off-by: Ricardo Ribalda ---

[PATCH 00/10] uvcvideo: Pass v4l2-compliance test

2021-03-11 Thread Ricardo Ribalda
Current version of the driver fails to pass v4l2-compliance v1.20.0, lets patch it it so some million cameras are compliant. Ricardo Ribalda (10): media: uvcvideo: Return -EINVAL for REQUEST API media: uvcvideo: Set capability in s_param media: uvcvideo: Return -EIO for control errors

[PATCH 07/10] media: uvcvideo: set error_idx to count on EACCESS

2021-03-11 Thread Ricardo Ribalda
According to the doc: The, in hindsight quite poor, solution for that is to set error_idx to count if the validation failed. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(645): invalid error index write only control test

[PATCH 08/10] media: uvcvideo: Always return a value on V4L2_CTRL_WHICH_DEF_VAL

2021-03-11 Thread Ricardo Ribalda
Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(813): doioctl(node, VIDIOC_G_EXT_CTRLS, ) test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_v4l2.c | 7 +-- 1 file changed, 1 insertion(+), 6

[PATCH 04/10] media: uvcvideo: Add support for V4L2_CTRL_TYPE_CTRL_CLASS

2021-03-11 Thread Ricardo Ribalda
Fill all the fields for V4L2_CTRL_TYPE_CTRL_CLASS control types. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_ctrl.c b/drivers/media/usb/uvc/uvc_ctrl.c index b3dde98499f4..08877897dc5a

[PATCH v5 3/3] devicetree: nvmem: nvmem: drop $nodename restriction

2021-03-11 Thread Ansuel Smith
Drop $nodename restriction as now mtd partition can also be used as nvmem provider. Signed-off-by: Ansuel Smith --- Documentation/devicetree/bindings/nvmem/nvmem.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.yaml

  1   2   3   4   5   6   7   8   9   10   >