[PATCH RFC v2 06/10] vdpa_sim: cleanup kiovs in vdpasim_free()

2021-01-28 Thread Stefano Garzarella
vringh_getdesc_iotlb() allocates memory to store the kvec, that is freed with vringh_kiov_cleanup(). vringh_getdesc_iotlb() is able to reuse a kvec previously allocated, so in order to avoid to allocate the kvec for each request, we are not calling vringh_kiov_cleanup() when we finished to handle

[PATCH RFC v2 07/10] vdpa: Remove the restriction that only supports virtio-net devices

2021-01-28 Thread Stefano Garzarella
From: Xie Yongji With VDUSE, we should be able to support all kinds of virtio devices. Signed-off-by: Xie Yongji --- drivers/vhost/vdpa.c | 28 ++-- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index

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

2021-01-28 Thread Stefano Garzarella
v1: https://lore.kernel.org/lkml/93f207c0-61e6-3696-f218-e7d7ea9a7...@redhat.com/ This series is the second part of the v1 linked above. The first part with refactoring of vdpa_sim has already been merged. The patches are based on Max Gurtovoy's work and extend the block simulator to have a

[PATCH RFC v2 04/10] vringh: implement vringh_kiov_advance()

2021-01-28 Thread Stefano Garzarella
In some cases, it may be useful to provide a way to skip a number of bytes in a vringh_kiov. Let's implement vringh_kiov_advance() for this purpose, reusing the code from vringh_iov_xfer(). We replace that code calling the new vringh_kiov_advance(). Signed-off-by: Stefano Garzarella ---

[PATCH RFC v2 03/10] vringh: reset kiov 'consumed' field in __vringh_iov()

2021-01-28 Thread Stefano Garzarella
__vringh_iov() overwrites the contents of riov and wiov, in fact it resets the 'i' and 'used' fields, but also the consumed field should be reset to avoid an inconsistent state. Signed-off-by: Stefano Garzarella --- drivers/vhost/vringh.c | 4 ++-- 1 file changed, 2 insertions(+), 2

aarch64-linux-gnu-ld: warning: orphan section `.eh_frame' from `arch/arm64/kernel/sdei.o' being placed in section `.eh_frame'

2021-01-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 76c057c84d286140c6c416c3b4ba832cd1d8984e commit: b3e5d80d0c48c0cc7bce56473672f4e6e1210910 arm64/build: Warn on orphan section placement date: 5 months ago config: arm64-randconfig-r034-20210128 (attached

Re: linux-5.10.11 build failure

2021-01-28 Thread Greg Kroah-Hartman
On Thu, Jan 28, 2021 at 01:38:25PM +, Chris Clayton wrote: > Thanks, Thomas. > > On 28/01/2021 11:24, Thomas Backlund wrote: > > Den 28.1.2021 kl. 12:05, skrev Chris Clayton: > >> > >> On 28/01/2021 09:34, Greg Kroah-Hartman wrote: > >>> On Thu, Jan 28, 2021 at 09:17:10AM +, Chris Clayton

Re: [PATCH][next] Input: iqs5xx: Ensure error_bl is initialized on error exit path

2021-01-28 Thread Jeff LaBundy
Hi Colin, On Thu, Jan 28, 2021 at 12:19:03PM +, Colin King wrote: > From: Colin Ian King > > Currently if the call to qs5xx_fw_file_parse fails the error return > exit path will read the uninitialized variable error_bl. Fix this > by ensuring error_bl is initialized to zero. > >

[PATCH v2 2/3] docs: add documentation for checkpatch

2021-01-28 Thread Dwaipayan Ray
Add documentation for kernel script checkpatch.pl. This documentation is also parsed by checkpatch to enable a verbose mode. Only a few test descriptions are added and the rest will be added later over time to document all the message types emitted by checkpatch. Signed-off-by: Dwaipayan Ray

[PATCH v2 3/3] docs: add documentation for checkpatch

2021-01-28 Thread Dwaipayan Ray
Link the checkpatch documentation to the dev-tools index for sphinx. Signed-off-by: Dwaipayan Ray --- Documentation/dev-tools/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/dev-tools/index.rst b/Documentation/dev-tools/index.rst index 1b1cf4f5c9d9..43d28998118b

Re: [RFC PATCH 0/4] Asynchronous passthrough ioctl

2021-01-28 Thread Jens Axboe
On 1/28/21 5:04 AM, Kanchan Joshi wrote: > On Wed, Jan 27, 2021 at 9:32 PM Pavel Begunkov wrote: >> >> On 27/01/2021 15:42, Pavel Begunkov wrote: >>> On 27/01/2021 15:00, Kanchan Joshi wrote: This RFC patchset adds asynchronous ioctl capability for NVMe devices. Purpose of RFC is to get

[PATCH v2 1/3] checkpatch: add verbose mode

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

[PATCH v2 0/3] checkpatch: add verbose mode

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

Re: [PATCH v4l-utils] test-media: add support for vidtv

2021-01-28 Thread Hans Verkuil
Hi Daniel, On 05/01/2021 14:17, Daniel W. S. Almeida wrote: > From: "Daniel W. S. Almeida" > > Add support for vidtv at the test-media script so that automated testing > is possible. Proper compliance tests are still pending. I've tried this, but something is wrong: 'media-ctl -p' shows an

Re: [PATCH 1/2] quota: Add mountpath based quota support

2021-01-28 Thread Christoph Hellwig
> + uint cmds, type; > + struct super_block *sb = NULL; I don't think sb needs the NULL initialization. > + struct path path, *pathp = NULL; > + struct path mountpath; > + bool excl = false, thawed = false; > + int ret; > + > + cmds = cmd >> SUBCMDSHIFT; > + type

Re: [Linaro-mm-sig] [PATCH v3] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-01-28 Thread Sumit Semwal
Hi Simon, On Thu, 28 Jan 2021 at 20:01, Simon Ser wrote: > > On Thursday, January 28th, 2021 at 1:03 PM, Sumit Semwal > wrote: > > > Since he didn't comment over Hridya's last clarification about the > > tracepoints to track total GPU memory allocations being orthogonal to > > this series, I

Re: [PATCH] blk-cgroup: Remove obsolete macro

2021-01-28 Thread Jens Axboe
On 1/28/21 12:18 AM, Baolin Wang wrote: > Remove the obsolete 'MAX_KEY_LEN' macro. Applied, thanks. -- Jens Axboe

Re: [PATCH v12] staging: fbtft: add tearing signal detect

2021-01-28 Thread Andy Shevchenko
On Thu, Jan 28, 2021 at 2:58 PM Carlis wrote: Thanks for your contribution, my comments below. > From: zhangxuezhi You probably have to configure your Git to use the same account for author and committer. > For st7789v ic,when we need continuous full screen refresh, it is best to 'ic,when'

Re: [PATCH v3] blk-cgroup: Use cond_resched() when destroy blkgs

2021-01-28 Thread Jens Axboe
On 1/27/21 10:58 PM, Baolin Wang wrote: > On !PREEMPT kernel, we can get below softlockup when doing stress > testing with creating and destroying block cgroup repeatly. The > reason is it may take a long time to acquire the queue's lock in > the loop of blkcg_destroy_blkgs(), or the system can

Re: [PATCH] regulator: pf8x00: Fix typo for PF8200 chip name

2021-01-28 Thread Adrien Grassein
Le jeu. 28 janv. 2021 à 13:02, Axel Lin a écrit : > > Trivial typo fix. > > Signed-off-by: Axel Lin > --- > drivers/regulator/pf8x00-regulator.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/regulator/pf8x00-regulator.c >

Re: [PATCH RFC] gcc-plugins: Handle GCC version mismatch for OOT modules

2021-01-28 Thread Christoph Hellwig
On Wed, Jan 27, 2021 at 12:51:13PM -0600, Josh Poimboeuf wrote: > Is this a joke? I've never met anybody who builds OOT modules as a > development aid... I'm pretty sure you've met me before. > On the other hand I know of several very popular distros (some paid, > some not) who rely on allowing

Re: [Linaro-mm-sig] [PATCH v3] dmabuf: Add the capability to expose DMA-BUF stats in sysfs

2021-01-28 Thread Simon Ser
On Thursday, January 28th, 2021 at 1:03 PM, Sumit Semwal wrote: > Since he didn't comment over Hridya's last clarification about the > tracepoints to track total GPU memory allocations being orthogonal to > this series, I assumed he agreed with it. IIRC he's away this week. (I don't remember

Re: [PATCH v2 3/3] PCI: uniphier-ep: Add EPC restart management support

2021-01-28 Thread Kishon Vijay Abraham I
Hi Kunihiko, On 24/01/21 8:39 pm, Kunihiko Hayashi wrote: > Set the polling function and call the init function to enable EPC restart > management. The polling function detects that the bus-reset signal is a > rising edge. > > Signed-off-by: Kunihiko Hayashi > --- >

WARNING: ODEBUG bug in ieee80211_ibss_setup_sdata

2021-01-28 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e1ae4b0b Merge branch 'mtd/fixes' of git://git.kernel.org/.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10bb1c78d0 kernel config: https://syzkaller.appspot.com/x/.config?x=be33d8015c9de024

Re: [PATCH v5 1/4] ARM: LPAE: Use phys_addr_t instead of unsigned long in outercache hooks

2021-01-28 Thread Arnd Bergmann
On Sat, Jan 16, 2021 at 4:27 AM Zhen Lei wrote: > > The outercache of some Hisilicon SOCs support physical addresses wider > than 32-bits. The unsigned long datatype is not sufficient for mapping > physical addresses >= 4GB. The commit ad6b9c9d78b9 ("ARM: 6671/1: LPAE: > use phys_addr_t instead

Re: [v2] PCI: Avoid unsync of LTR mechanism configuration

2021-01-28 Thread Mika Westerberg
Hi, On Thu, Jan 28, 2021 at 06:05:31PM +0800, mingchuang.q...@mediatek.com wrote: > From: Mingchuang Qiao > > In bus scan flow, the "LTR Mechanism Enable" bit of DEVCTL2 register is > configured in pci_configure_ltr(). If device and bridge both support LTR > mechanism, the "LTR Mechanism

Re: [PATCH v5 2/4] ARM: hisi: add support for Kunpeng50x SoC

2021-01-28 Thread Arnd Bergmann
On Sat, Jan 16, 2021 at 4:32 AM Zhen Lei wrote: > > Enable support for the Hisilicon Kunpeng506 and Kunpeng509 SoC. > > Signed-off-by: Zhen Lei > --- > arch/arm/mach-hisi/Kconfig | 8 > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm/mach-hisi/Kconfig

Re: [PATCH v2] smackfs: restrict bytes count in smackfs write functions

2021-01-28 Thread Tetsuo Handa
On 2021/01/28 22:27, Sabyrzhan Tasbolatov wrote: >> Doesn't this change break legitimate requests like >> >> char buffer[2]; >> >> memset(buffer, ' ', sizeof(buffer)); >> memcpy(buffer + sizeof(buffer) - 10, "foo", 3); >> write(fd, buffer, sizeof(buffer)); >> >> ? > > It does, in this

[perf] perf_fuzzer causes crash in intel_pmu_drain_pebs_nhm()

2021-01-28 Thread Vince Weaver
Hello the perf_fuzzer has turned up a repeatable crash on my haswell system. addr2line is not being very helpful, it points to DECLARE_PER_CPU_FIRST. I'll investigate more when I have the chance. Vince [96289.009646] BUG: kernel NULL pointer dereference, address: 0150

Re: [PATCH v5] media: ov8856: Configure sensor for GRBG Bayer for all modes

2021-01-28 Thread Robert Foss
Ping. I think this patch is ready to be merged. On Wed, 20 Jan 2021 at 13:09, Robert Foss wrote: > > The previously added modes 3264x2448 & 1632x1224 are actually > configuring the sensor for BGGR mode, this is an issue since > the mode that is exposed through V4L incorrectly is set as GRBG. > >

Re: [PATCH v5 4/4] ARM: Add support for Hisilicon Kunpeng L3 cache controller

2021-01-28 Thread Arnd Bergmann
On Sat, Jan 16, 2021 at 4:27 AM Zhen Lei wrote: > diff --git a/arch/arm/mm/Makefile b/arch/arm/mm/Makefile > + > +static void l3cache_maint_common(u32 range, u32 op_type) > +{ > + u32 reg; > + > + reg = readl(l3_ctrl_base + L3_MAINT_CTRL); > + reg &= ~(L3_MAINT_RANGE_MASK |

Re: [PATCH v5 3/4] dt-bindings: arm: hisilicon: Add binding for Kunpeng L3 cache controller

2021-01-28 Thread Arnd Bergmann
On Sat, Jan 16, 2021 at 4:34 AM Zhen Lei wrote: > > Add devicetree binding for Hisilicon Kunpeng L3 cache controller. > > Signed-off-by: Zhen Lei > --- > .../arm/hisilicon/kunpeng-l3cache.yaml| 40 +++ Reviewed-by: Arnd Bergmann

[next] mm/nommu.c:1671:6: error: conflicting types for 'filemap_map_pages'

2021-01-28 Thread Naresh Kamboju
arm, sh and riscv architecture build failed on today's Linux next tag 20210128. FYI, # CONFIG_MMU is not set on these failed configs. config file attached to this email. make --silent --keep-going --jobs=8 O=/home/tux - build/.cache/tuxmake/builds/1/tmp ARCH=arm CROSS_COMPILE=arm-linux

Re: [PATCH v16 08/11] secretmem: add memcg accounting

2021-01-28 Thread Michal Hocko
On Thu 28-01-21 06:05:11, Shakeel Butt wrote: > On Wed, Jan 27, 2021 at 11:59 PM Michal Hocko wrote: > > > > On Wed 27-01-21 10:42:13, Roman Gushchin wrote: > > > On Tue, Jan 26, 2021 at 04:05:55PM +0100, Michal Hocko wrote: > > > > On Tue 26-01-21 14:48:38, Matthew Wilcox wrote: > > > > > On

[PATCH 6/7] ASoC: codec: lpass-tx-macro: add support for lpass tx macro

2021-01-28 Thread Srinivas Kandagatla
Qualcomm LPASS (Low Power Audio SubSystem) has internal codec TX macro block which is used for connecting with external Soundwire TX Codecs like WCD938x. This patch adds support to the codec part of the TX Macro block Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig |

[PATCH 4/7] ASoC: codec: lpass-rx-macro: add iir widgets

2021-01-28 Thread Srinivas Kandagatla
This patch adds irr widgets and mixers on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 264 ++ 1 file changed, 264 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index

[PATCH 3/7] ASoC: codec: lpass-rx-macro: add dapm widgets and route

2021-01-28 Thread Srinivas Kandagatla
This patch adds dapm widgets and routes on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-rx-macro.c | 1339 + 1 file changed, 1339 insertions(+) diff --git a/sound/soc/codecs/lpass-rx-macro.c b/sound/soc/codecs/lpass-rx-macro.c index

[PATCH 7/7] ASoC: codec: lpass-tx-macro: add dapm widgets and route

2021-01-28 Thread Srinivas Kandagatla
This patch adds dapm widgets and routes on this codec Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/lpass-tx-macro.c | 685 ++ 1 file changed, 685 insertions(+) diff --git a/sound/soc/codecs/lpass-tx-macro.c b/sound/soc/codecs/lpass-tx-macro.c index

[PATCH 5/7] ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec

2021-01-28 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec TX macro which is for connecting with Soundwire TX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-tx-macro.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644

[PATCH 2/7] ASoC: codec: lpass-rx-macro: add support for lpass rx macro

2021-01-28 Thread Srinivas Kandagatla
Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/Kconfig |5 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/lpass-rx-macro.c | 2020 + 3 files changed, 2027 insertions(+) create mode 100644 sound/soc/codecs/lpass-rx-macro.c diff

[PATCH 0/2] quota: Add mountpath based quota support

2021-01-28 Thread Sascha Hauer
Current quotactl syscall uses a path to a block device to specify the filesystem to work on which makes it unsuitable for filesystems that do not have a block device. This series adds a new syscall quotactl_path() which replaces the path to the block device with a mountpath, but otherwise behaves

[PATCH 0/7] ASoC: codecs: add support for LPASS Codec TX and RX macros

2021-01-28 Thread Srinivas Kandagatla
This patchset adds support for two Codec Macro blocks(TX and RX) available in Qualcomm LPASS (Low Power Audio SubSystem). There are WSA, VA, TX and RX Macros on LPASS IP, each of the Macro block has specific connectivity like WSA Macros are intended to connect to WSA Smart speaker codecs via

[PATCH 1/7] ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec

2021-01-28 Thread Srinivas Kandagatla
This binding is for LPASS has internal codec RX macro which is for connecting with SoundWire RX codecs like WCD938x. Signed-off-by: Srinivas Kandagatla --- .../bindings/sound/qcom,lpass-rx-macro.yaml | 62 +++ 1 file changed, 62 insertions(+) create mode 100644

[PATCH 1/2] quota: Add mountpath based quota support

2021-01-28 Thread Sascha Hauer
Add syscall quotactl_path, a variant of quotactl which allows to specify the mountpath instead of a path of to a block device. The quotactl syscall expects a path to the mounted block device to specify the filesystem to work on. This limits usage to filesystems which actually have a block device.

Re: [PATCH v2 0/3] handle large user and group ID for isofs and udf

2021-01-28 Thread Matthew Wilcox
On Thu, Jan 28, 2021 at 11:55:01AM +0100, Jan Kara wrote: > On Thu 28-01-21 15:12:27, bingjingc wrote: > > From: BingJing Chang > > > > The uid/gid (unsigned int) of a domain user may be larger than INT_MAX. > > The parse_options of isofs and udf will return 0, and mount will fail > > with

[PATCH] quotactl.2: Add documentation for quotactl_path()

2021-01-28 Thread Sascha Hauer
Expand the quotactl.2 manpage with a description for quotactl_path() that takes a mountpoint path instead of a path to a block device. Signed-off-by: Sascha Hauer --- man2/quotactl.2 | 19 +-- man2/quotactl_path.2 | 1 + 2 files changed, 18 insertions(+), 2 deletions(-)

[PATCH 2/2] quota: wire up quotactl_path

2021-01-28 Thread Sascha Hauer
Wire up the quotactl_path syscall added in the previous patch. Signed-off-by: Sascha Hauer --- arch/alpha/kernel/syscalls/syscall.tbl | 1 + arch/arm/tools/syscall.tbl | 1 + arch/arm64/include/asm/unistd.h | 2 +- arch/arm64/include/asm/unistd32.h |

[PATCH][next] mm/zswap: fix potential uninitialized pointer read on tmp

2021-01-28 Thread Colin King
From: Colin Ian King In the case where zpool_can_sleep_mapped(pool) returns 0 then tmp is not allocated and tmp is then an uninitialized pointer. Later if entry is null, tmp is freed, hence free'ing an uninitialized pointer. Fix this by ensuring tmp is initialized to NULL. Addresses-Coverity:

Re: [PATCH RESEND V12 2/8] fuse: 32-bit user space ioctl compat for fuse device

2021-01-28 Thread Alessio Balsini
Hi all, I'm more than happy to change the interface into something that is objectively better and accepted by everyone. I would really love to reach the point at which we have a "stable-ish" UAPI as soon as possible. I've been thinking about a few possible approaches to fix the issue, yet to

Re: [PATCH v2 1/3] PCI: endpoint: Add 'started' to pci_epc to set whether the controller is started

2021-01-28 Thread Kishon Vijay Abraham I
Hi Kunihiko, On 24/01/21 8:39 pm, Kunihiko Hayashi wrote: > This adds a member 'started' as a boolean value to struct pci_epc to set > whether the controller is started, and also adds a function to get the > value. > > Signed-off-by: Kunihiko Hayashi > --- > drivers/pci/endpoint/pci-epc-core.c

Re: [PATCH 2/2] iio:adc:ti-ads124s08: Fix packet read from the ADC

2021-01-28 Thread Dan Murphy
Jonathan On 1/24/21 9:12 AM, Jonathan Cameron wrote: On Thu, 21 Jan 2021 13:14:31 -0600 Dan Murphy wrote: Fix the spi_transfer array in the reading of the data from the ADC. Fixes: ("e717f8c6dfec iio: adc: Add the TI ads124s08 ADC code") Signed-off-by: Dan Murphy I'm not really following

Re: [PATCH v3 2/4] arm64: dts: correct vendor prefix hisi to hisilicon

2021-01-28 Thread Arnd Bergmann
On Wed, Jan 27, 2021 at 1:42 AM Wei Xu wrote: > On 2021/1/27 6:23, Arnd Bergmann wrote: > > On Tue, Dec 8, 2020 at 1:46 PM Zhen Lei wrote: > >> > >> The vendor prefix of "Hisilicon Limited" is "hisilicon", it is clearly > >> stated in "vendor-prefixes.yaml". > >> > >> Fixes: 35ca8168133c

Re: [PATCH v16 08/11] secretmem: add memcg accounting

2021-01-28 Thread Shakeel Butt
On Wed, Jan 27, 2021 at 11:59 PM Michal Hocko wrote: > > On Wed 27-01-21 10:42:13, Roman Gushchin wrote: > > On Tue, Jan 26, 2021 at 04:05:55PM +0100, Michal Hocko wrote: > > > On Tue 26-01-21 14:48:38, Matthew Wilcox wrote: > > > > On Mon, Jan 25, 2021 at 11:38:17PM +0200, Mike Rapoport wrote: >

Re: [PATCH 00/27] arch: syscalls: unifiy all syscalltbl.sh into scripts/syscalltbl.sh

2021-01-28 Thread Anatoly Pugachev
Masahiro, wanted to test on sparc64, but I'm unable to cleanly apply your patch series to current master of git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git saved in all patches from mutt MUA to mbox (syscalltbl-mbox) file format (except of 00/27) and tried to apply via git-am: $

Re: [PATCH v1 2/2] mm/page_alloc: count CMA pages per zone and print them in /proc/zoneinfo

2021-01-28 Thread David Hildenbrand
On 28.01.21 14:44, Oscar Salvador wrote: On Thu, Jan 28, 2021 at 11:43:41AM +0100, David Hildenbrand wrote: My knowledge of CMA tends to be quite low, actually I though that CMA was somehow tied to ZONE_MOVABLE. CMA is often placed into one of the kernel zones, but can also end up in the

Re: [PATCH][V2][next] media: uvcvideo: Fix memory leak when gpiod_to_irq fails

2021-01-28 Thread Ricardo Ribalda
Thanks for the fix! On Thu, Jan 28, 2021 at 2:59 PM Colin King wrote: > > From: Colin Ian King > > Currently when the call to gpiod_to_irq fails the error return > path does not kfree the recently allocated object 'unit'. Fix this > swapping the order of the irq call and the allocation of unit.

Re: [PATCH v4 2/2] counter: add IRQ or GPIO based pulse counter

2021-01-28 Thread Oleksij Rempel
On Thu, Jan 28, 2021 at 09:24:08AM +0100, Linus Walleij wrote: > Hi Oleksij, > > thanks for your patch! > > On Tue, Jan 26, 2021 at 2:15 PM Oleksij Rempel > wrote: > > > + priv->irq = platform_get_irq(pdev, 0); > > + if (priv->irq < 0) { > > + dev_err(dev, "failed

[PATCH][V2][next] media: uvcvideo: Fix memory leak when gpiod_to_irq fails

2021-01-28 Thread Colin King
From: Colin Ian King Currently when the call to gpiod_to_irq fails the error return path does not kfree the recently allocated object 'unit'. Fix this swapping the order of the irq call and the allocation of unit. Thanks to Ricardo Ribalda for suggesting this fix. Addresses-Coverity:

Re: [PATCH v4 0/3] Add support for x509 certs with NIST p256 and p192 keys

2021-01-28 Thread Stefan Berger
On 1/28/21 8:54 AM, David Howells wrote: Stefan Berger wrote: This (sub)set is intended to go through the keyrings tree or is it all going through the crypto tree now? Patch 1/3 should go through 'crypto', the other ones through 'keyrings'. Do 2 & 3 depend on 1? Functionality-wise, yes,

Re: [PATCH] sched/fair: Rate limit calls to update_blocked_averages() for NOHZ

2021-01-28 Thread Vincent Guittot
Hi Joel, On Wed, 27 Jan 2021 at 19:43, Joel Fernandes wrote: > > Hi Vincent, > > On Mon, Jan 25, 2021 at 03:42:41PM +0100, Vincent Guittot wrote: > > On Fri, 22 Jan 2021 at 20:10, Joel Fernandes wrote: > > > On Fri, Jan 22, 2021 at 05:56:22PM +0100, Vincent Guittot wrote: > > > > On Fri, 22 Jan

Re: [RFC PATCH v0] mm/slub: Let number of online CPUs determine the slub page order

2021-01-28 Thread Michal Hocko
On Thu 28-01-21 13:45:12, Mel Gorman wrote: [...] > So mostly this is down to the number of times SLUB calls into the page > allocator which only caches order-0 pages on a per-cpu basis. I do have > a prototype for a high-order per-cpu allocator but it is very rough -- > high watermarks stop

smatch v1.71 released

2021-01-28 Thread Dan Carpenter
Intro: Smatch is a C static checker with a lot of kernel specific checks. You can download it from: http://repo.or.cz/w/smatch.git. Or if you prefer a github mirror, then you can download it from https://github.com/error27/smatch The last time I made a release was in 2015.

Re: [PATCH v4 0/3] Add support for x509 certs with NIST p256 and p192 keys

2021-01-28 Thread David Howells
Stefan Berger wrote: > > This (sub)set is intended to go through the keyrings tree or is it all going > > through the crypto tree now? > > > Patch 1/3 should go through 'crypto', the other ones through 'keyrings'. Do 2 & 3 depend on 1? David

Re: [PATCH][next] hv_utils: Fix spelling mistake "Hearbeat" -> "Heartbeat"

2021-01-28 Thread Wei Liu
On Wed, Jan 27, 2021 at 11:31:36PM +, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in an error message. Fix it. > > Signed-off-by: Colin Ian King Applied to hyperv-next. Thanks. Wei.

Re: [PATCH v16 07/11] secretmem: use PMD-size pages to amortize direct map fragmentation

2021-01-28 Thread Michal Hocko
On Thu 28-01-21 13:28:10, Cristopher Lameter wrote: > On Thu, 28 Jan 2021, Michal Hocko wrote: > > > > So, if I understand your concerns correct this implementation has two > > > issues: > > > 1) allocation failure at page fault that causes unrecoverable OOM and > > > 2) a possibility for an

drivers/pwm/pwm-lpc18xx-sct.c:292:2-3: Unneeded semicolon

2021-01-28 Thread kernel test robot
months ago config: sh-randconfig-c003-20210128 (attached as .config) compiler: sh4-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot "coccinelle warnings: (new ones prefixed by >>)" >> drivers/pwm/pwm-lpc18xx-s

[PATCH] pwm: fix semicolon.cocci warnings

2021-01-28 Thread kernel test robot
From: kernel test robot drivers/pwm/pwm-lpc18xx-sct.c:292:2-3: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: e96c0ff4b1e0 ("pwm: Enable compile testing for some of drivers") CC: Krzysztof Kozlowski Reported-by: kernel test robot

Re: [PATCH v1 2/2] mm/page_alloc: count CMA pages per zone and print them in /proc/zoneinfo

2021-01-28 Thread Oscar Salvador
On Thu, Jan 28, 2021 at 02:44:58PM +0100, Oscar Salvador wrote: > Btw, should linux-uapi be CCed, as /proc/vmstat layout will change? I meant /proc/zoneinfo > > -- > Oscar Salvador > SUSE L3 > -- Oscar Salvador SUSE L3

Re: [PATCH v4 0/3] Add support for x509 certs with NIST p256 and p192 keys

2021-01-28 Thread Stefan Berger
On 1/28/21 4:19 AM, David Howells wrote: This (sub)set is intended to go through the keyrings tree or is it all going through the crypto tree now? Patch 1/3 should go through 'crypto', the other ones through 'keyrings'.    Stefan David

Re: [RFC PATCH v0] mm/slub: Let number of online CPUs determine the slub page order

2021-01-28 Thread Mel Gorman
On Tue, Jan 26, 2021 at 02:59:18PM +0100, Michal Hocko wrote: > > > This thread shows that this is still somehow related to performance but > > > the real reason is not clear. I believe we should be focusing on the > > > actual reasons for the performance impact than playing with some fancy > > >

Re: [PATCH] PCI/ASPM: Disable ASPM when save/restore PCI state

2021-01-28 Thread Krzysztof Wilczyński
Hi Victor, Thank you for working on this! [...] > i = pci_save_pcie_state(dev); > if (i != 0) > - return i; > + goto Exit; > > i = pci_save_pcix_state(dev); > if (i != 0) > - return i; > + goto Exit; [...] > +Exit: > +

Re: [PATCH v1 2/2] mm/page_alloc: count CMA pages per zone and print them in /proc/zoneinfo

2021-01-28 Thread Oscar Salvador
On Thu, Jan 28, 2021 at 11:43:41AM +0100, David Hildenbrand wrote: > > My knowledge of CMA tends to be quite low, actually I though that CMA > > was somehow tied to ZONE_MOVABLE. > > CMA is often placed into one of the kernel zones, but can also end up in the > movable zone. Ok good to know. >

[PATCH 2/2] vdpa/mlx5: Restore the hardware used index after change map

2021-01-28 Thread Eli Cohen
When a change of memory map occurs, the hardware resources are destroyed and then re-created again with the new memory map. In such case, we need to restore the hardware available and used indices. The driver failed to restore the used index which is added here. Fixes 1a86b377aa21 ("vdpa/mlx5:

[PATCH 1/2] vdpa/mlx5: Avoid unnecessary query virtqueue

2021-01-28 Thread Eli Cohen
suspend_vq should only suspend the VQ on not save the current available index. This is done when a change of map occurs when the driver calls save_channel_info(). Signed-off-by: Eli Cohen --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 8 1 file changed, 8 deletions(-) diff --git

[PATCH 0/2] Fix failure to hot add memory

2021-01-28 Thread Eli Cohen
Hi Michael, The following two patches are a fixing a failure to update the hardware with the updated used index. This results in a failure to to hot add memory to the guest which results in a memory map update and teardown and re-create of the resources. The first patch just removes unnecessary

Re: [PATCH v4 1/2] dt-bindings: counter: add pulse-counter binding

2021-01-28 Thread Oleksij Rempel
On Thu, Jan 28, 2021 at 09:17:23AM +0100, Linus Walleij wrote: > Hi Oleksij, > > thanks for your patch! > > On Tue, Jan 26, 2021 at 2:15 PM Oleksij Rempel > wrote: > > > Add binding for the pulse counter node > > > > Signed-off-by: Oleksij Rempel > (...) > > > +properties: > > +

Re: linux-5.10.11 build failure

2021-01-28 Thread Chris Clayton
Thanks, Thomas. On 28/01/2021 11:24, Thomas Backlund wrote: > Den 28.1.2021 kl. 12:05, skrev Chris Clayton: >> >> On 28/01/2021 09:34, Greg Kroah-Hartman wrote: >>> On Thu, Jan 28, 2021 at 09:17:10AM +, Chris Clayton wrote: Hi, Building 5.10.11 fails on my (x86-64) laptop

Re: [PATCH v9 01/17] Documentation: PCI: Add specification for the *PCI NTB* function device

2021-01-28 Thread Kishon Vijay Abraham I
Hi Lorenzo, On 28/01/21 5:41 pm, Lorenzo Pieralisi wrote: > On Fri, Jan 22, 2021 at 07:48:52PM +0530, Kishon Vijay Abraham I wrote: >> Hi Bjorn, >> >> On 20/01/21 12:04 am, Bjorn Helgaas wrote: >>> On Mon, Jan 04, 2021 at 08:58:53PM +0530, Kishon Vijay Abraham I wrote: Add specification for

Re: [PATCH] arm64: dts: imx8mq-nitrogen: add USB support

2021-01-28 Thread Gary Bisson
Hi Adrien, Thanks for improving Nitrogen upstream, much appreciated. On Tue, Jan 26, 2021 at 10:55:11PM +0100, Adrien Grassein wrote: > add USB support for imx8mq-nitrogen. It consists > in 2 phys: OTG and host. > > The OTG port uses a dedicated regulator for vbus. > > Signed-off-by: Adrien

Re: [PATCH v2] smackfs: restrict bytes count in smackfs write functions

2021-01-28 Thread Sabyrzhan Tasbolatov
> > /* > > +* No partial write. > > * Enough data must be present. > > */ > > if (*ppos != 0) > > return -EINVAL; > > + if (count == 0 || count > PAGE_SIZE) > > + return -EINVAL; > > > > data = memdup_user_nul(buf, count); > > if

Re: [PATCH v16 07/11] secretmem: use PMD-size pages to amortize direct map fragmentation

2021-01-28 Thread Christoph Lameter
On Thu, 28 Jan 2021, Michal Hocko wrote: > > So, if I understand your concerns correct this implementation has two > > issues: > > 1) allocation failure at page fault that causes unrecoverable OOM and > > 2) a possibility for an unprivileged user to deplete secretmem pool and > > cause (1) to

Re: [net-next PATCH v4 01/15] Documentation: ACPI: DSD: Document MDIO PHY

2021-01-28 Thread Rafael J. Wysocki
On Thu, Jan 28, 2021 at 2:12 PM Calvin Johnson wrote: > > On Thu, Jan 28, 2021 at 01:00:40PM +0100, Rafael J. Wysocki wrote: > > On Thu, Jan 28, 2021 at 12:27 PM Calvin Johnson > > wrote: > > > > > > Hi Rafael, > > > > > > Thanks for the review. I'll work on all the comments. > > > > > > On Fri,

Re: KASAN: invalid-access Read in kmem_cache_destroy

2021-01-28 Thread Vincenzo Frascino
On 1/28/21 12:43 PM, Dmitry Vyukov wrote: > On Thu, Jan 28, 2021 at 1:30 PM Vincenzo Frascino > wrote: >> >> On 1/27/21 7:50 PM, Andrey Konovalov wrote: >>> On Wed, Jan 27, 2021 at 6:44 PM Mark Brown wrote: On Wed, Jan 27, 2021 at 06:14:13PM +0100, Dmitry Vyukov wrote: > On Wed,

v5.11-rc5 BUG kmalloc-1k (Not tainted): Redzone overwritten

2021-01-28 Thread Jani Nikula
A number of our CI systems are hitting redzone overwritten errors after s2idle, with the errors introduced between v5.11-rc4 and v5.11-rc5. See snippet below, full logs for one affected machine at [1]. Known issue? BR, Jani. [1]

Re: [PATCH 0/3] mm, printk: dump full information of page flags in pGp

2021-01-28 Thread Yafang Shao
On Thu, Jan 28, 2021 at 8:12 PM Andy Shevchenko wrote: > > On Thu, Jan 28, 2021 at 10:19:44AM +0800, Yafang Shao wrote: > > Currently the pGp only shows the names of page flags, rather than > > the full information including section, node, zone, last cpupid and > > kasan tag. While it is not easy

Re: [PATCH 3/3] printk: dump full information of page flags in pGp

2021-01-28 Thread Yafang Shao
On Thu, Jan 28, 2021 at 8:11 PM Andy Shevchenko wrote: > > On Thu, Jan 28, 2021 at 10:19:47AM +0800, Yafang Shao wrote: > > Currently the pGp only shows the names of page flags, rather than > > the full information including section, node, zone, last cpupid and > > kasan tag. While it is not easy

Re: [PATCH v7 45/72] x86/entry/64: Add entry code for #VC handler

2021-01-28 Thread Joerg Roedel
Hello Lai, On Sun, Jan 24, 2021 at 10:11:14PM +0800, Lai Jiangshan wrote: > > + > > + /* > > +* No need to switch back to the IST stack. The current stack is > > either > > +* identical to the stack in the IRET frame or the VC fall-back > > stack, > > +* so it is

Re: [PATCH][next] media: uvcvideo: Fix memory leak when gpiod_to_irq fails

2021-01-28 Thread Ricardo Ribalda
Hi Colin Thanks a lot for the patch. It is definitely a bug. On Thu, Jan 28, 2021 at 2:10 PM Colin King wrote: > > From: Colin Ian King > > Currently when the call to gpiod_to_irq fails the error return > path does not kfree the recently allocated object 'unit'. Fix this > by kfree'ing it

Re: [PATCH 00/12] Rid W=1 warnings from Thunderbolt

2021-01-28 Thread Lee Jones
On Thu, 28 Jan 2021, Mika Westerberg wrote: > Hi Lee, > > On Wed, Jan 27, 2021 at 11:25:42AM +, Lee Jones wrote: > > This set is part of a larger effort attempting to clean-up W=1 > > kernel builds, which are currently overwhelmingly riddled with > > niggly little warnings. > > > > Only 1

Re: [PATCH RESEND] ipmi: remove open coded version of SMBus block write

2021-01-28 Thread Corey Minyard
On Thu, Jan 28, 2021 at 01:53:50PM +0100, Wolfram Sang wrote: > On Thu, Jan 28, 2021 at 06:37:57AM -0600, Corey Minyard wrote: > > Looks good, do you want this in the IPMI tree or are you handling this > > another way? > > I can take it but would prefer the IPMI tree. Ok, it's queued for next

Re: [net-next PATCH v4 01/15] Documentation: ACPI: DSD: Document MDIO PHY

2021-01-28 Thread Calvin Johnson
On Thu, Jan 28, 2021 at 01:00:40PM +0100, Rafael J. Wysocki wrote: > On Thu, Jan 28, 2021 at 12:27 PM Calvin Johnson > wrote: > > > > Hi Rafael, > > > > Thanks for the review. I'll work on all the comments. > > > > On Fri, Jan 22, 2021 at 08:22:21PM +0100, Rafael J. Wysocki wrote: > > > On Fri,

Re: [PATCH 2/2] perf script: Support dso filter

2021-01-28 Thread Arnaldo Carvalho de Melo
Em Mon, Jan 25, 2021 at 07:27:50AM +0800, Jin Yao escreveu: > Other perf tool builtins have already supported dso filter. > > For example, > perf report --dso, which only considers symbols in these dsos. > > Now dso filter is supported for perf-script. > > root@kbl-ppc:~# ./perf script --dso

[PATCH 2/3] sched: Remove USER_PRIO, TASK_USER_PRIO and MAX_USER_PRIO

2021-01-28 Thread Dietmar Eggemann
The only remaining use of MAX_USER_PRIO (and USER_PRIO) is the SCALE_PRIO() definition in the PowerPC Cell architecture's Synergistic Processor Unit (SPU) scheduler. TASK_USER_PRIO isn't used anymore. Commit fe443ef2ac42 ("[POWERPC] spusched: Dynamic timeslicing for SCHED_OTHER") copied

[PATCH 1/3] sched: Remove MAX_USER_RT_PRIO

2021-01-28 Thread Dietmar Eggemann
Commit d46523ea32a7 ("[PATCH] fix MAX_USER_RT_PRIO and MAX_RT_PRIO") was introduced due to a a small time period in which the realtime patch set was using different values for MAX_USER_RT_PRIO and MAX_RT_PRIO. This is no longer true, i.e. now MAX_RT_PRIO == MAX_USER_RT_PRIO. Get rid of

[PATCH][next] media: uvcvideo: Fix memory leak when gpiod_to_irq fails

2021-01-28 Thread Colin King
From: Colin Ian King Currently when the call to gpiod_to_irq fails the error return path does not kfree the recently allocated object 'unit'. Fix this by kfree'ing it before returning. Addresses-Coverity: ("Resource leak") Fixes: 2886477ff987 ("media: uvcvideo: Implement UVC_EXT_GPIO_UNIT")

[PATCH 3/3] sched/core: Update task_prio() function header

2021-01-28 Thread Dietmar Eggemann
The description of the RT offset and the values for 'normal' tasks needs update. Moreover there are DL tasks now. task_prio() has to stay like it is to guarantee compatibility with the /proc//stat priority field: # cat /proc//stat | awk '{ print $18; }' Signed-off-by: Dietmar Eggemann ---

[PATCH 0/3] sched: Task priority related cleanups

2021-01-28 Thread Dietmar Eggemann
(1) Removing MAX_USER_RT_PRIO was already discussed here in April 2020: https://lkml.kernel.org/r/20200423094403.6f1d2...@gandalf.local.home (2) USER_PRIO() and related macros are not used anymore except in one case for powerpc where MAX_USER_PRIO can be replaced by NICE_WIDTH.

Re: [PATCH v4 net-next] net: Remove redundant calls of sk_tx_queue_clear().

2021-01-28 Thread Tariq Toukan
On 1/28/2021 2:42 PM, Kuniyuki Iwashima wrote: The commit 41b14fb8724d ("net: Do not clear the sock TX queue in sk_set_socket()") removes sk_tx_queue_clear() from sk_set_socket() and adds it instead in sk_alloc() and sk_clone_lock() to fix an issue introduced in the commit e022f0b4a03f ("net:

[PATCH v2] tpm_tis: Add missing tpm_request/relinquish_locality calls

2021-01-28 Thread Lukasz Majczak
There is a missing call to tpm_request_locality before the call to the tpm_get_timeouts() and tpm_tis_probe_irq_single(). As the current approach might work for tpm2, it fails for tpm1.x - in that case call to tpm_get_timeouts() or tpm_tis_probe_irq_single() without locality fails and in turn

Re: [External] Re: [PATCH v13 05/12] mm: hugetlb: allocate the vmemmap pages associated with each HugeTLB page

2021-01-28 Thread Muchun Song
On Thu, Jan 28, 2021 at 8:37 PM Muchun Song wrote: > > On Wed, Jan 27, 2021 at 6:36 PM David Hildenbrand wrote: > > > > On 26.01.21 16:56, David Hildenbrand wrote: > > > On 26.01.21 16:34, Oscar Salvador wrote: > > >> On Tue, Jan 26, 2021 at 04:10:53PM +0100, David Hildenbrand wrote: > > >>> The

<    5   6   7   8   9   10   11   12   13   14   >