Re: KASAN: use-after-free Read in cma_cancel_operation, rdma_listen

2021-04-13 Thread Hao Sun
Jason Gunthorpe 于2021年4月13日周二 下午9:45写道: > > On Tue, Apr 13, 2021 at 09:42:43PM +0800, Hao Sun wrote: > > Jason Gunthorpe 于2021年4月13日周二 下午9:34写道: > > > > > > On Tue, Apr 13, 2021 at 11:36:41AM +0800, Hao Sun wrote: > > > > Hi > > > > > > > > When using

Re: [PATCH RFC v2 3/4] virtio_net: move tx vq operation under tx queue lock

2021-04-13 Thread Willem de Bruijn
On Tue, Apr 13, 2021 at 10:03 AM Michael S. Tsirkin wrote: > > On Tue, Apr 13, 2021 at 04:54:42PM +0800, Jason Wang wrote: > > > > 在 2021/4/13 下午1:47, Michael S. Tsirkin 写道: > > > It's unsafe to operate a vq from multiple threads. > > > Unfortunately this is exactly what we do when invoking > > >

Re: [PATCH 6/7] mm: memcontrol: move obj_cgroup_uncharge_pages() out of css_set_lock

2021-04-13 Thread Shakeel Butt
On Mon, Apr 12, 2021 at 11:58 PM Muchun Song wrote: > > The css_set_lock is used to guard the list of inherited objcgs. So there > is no need to uncharge kernel memory under css_set_lock. Just move it > out of the lock. > > Signed-off-by: Muchun Song Reviewed-by: Shakeel Butt

[PATCH v28 04/13] mm/idle_page_tracking: Make PG_idle reusable

2021-04-13 Thread SeongJae Park
From: SeongJae Park PG_idle and PG_young allow the two PTE Accessed bit users, Idle Page Tracking and the reclaim logic concurrently work while don't interfere each other. That is, when they need to clear the Accessed bit, they set PG_young to represent the previous state of the bit,

[PATCH v28 01/13] mm: Introduce Data Access MONitor (DAMON)

2021-04-13 Thread SeongJae Park
From: SeongJae Park DAMON is a data access monitoring framework for the Linux kernel. The core mechanisms of DAMON make it - accurate (the monitoring output is useful enough for DRAM level performance-centric memory management; It might be inappropriate for CPU cache levels, though), -

[PATCH v28 07/13] mm/damon: Implement a debugfs-based user space interface

2021-04-13 Thread SeongJae Park
From: SeongJae Park DAMON is designed to be used by kernel space code such as the memory management subsystems, and therefore it provides only kernel space API. That said, letting the user space control DAMON could provide some benefits to them. For example, it will allow user space to analyze

[PATCH v28 03/13] mm/damon: Adaptively adjust regions

2021-04-13 Thread SeongJae Park
From: SeongJae Park Even somehow the initial monitoring target regions are well constructed to fulfill the assumption (pages in same region have similar access frequencies), the data access pattern can be dynamically changed. This will result in low monitoring quality. To keep the assumption

[PATCH v28 06/13] mm/damon: Add a tracepoint

2021-04-13 Thread SeongJae Park
From: SeongJae Park This commit adds a tracepoint for DAMON. It traces the monitoring results of each region for each aggregation interval. Using this, DAMON can easily integrated with tracepoints supporting tools such as perf. Signed-off-by: SeongJae Park Reviewed-by: Leonard Foerster

[PATCH v28 05/13] mm/damon: Implement primitives for the virtual memory address spaces

2021-04-13 Thread SeongJae Park
From: SeongJae Park This commit introduces a reference implementation of the address space specific low level primitives for the virtual address space, so that users of DAMON can easily monitor the data accesses on virtual address spaces of specific processes by simply configuring the

Re: [PATCH v3] staging: media: zoran: remove and move statement in next line with '*'

2021-04-13 Thread Hans Verkuil
On 09/04/2021 13:40, Mitali Borkar wrote: > Removed and moved statement in line in long(multi-line) comments and > added '*' before it to meet linux kernel coding style for long (multi-line) > comments > > Signed-off-by: Mitali Borkar > --- > > Changes from v2:- made style changes in code

Re: [PATCH v2 4/4] KVM: hyper-v: Advertise support for fast XMM hypercalls

2021-04-13 Thread Vitaly Kuznetsov
Siddharth Chandrasekaran writes: > Now that all extant hypercalls that can use XMM registers (based on > spec) for input/outputs are patched to support them, we can start > advertising this feature to guests. > > Cc: Alexander Graf > Cc: Evgeny Iakovlev > Signed-off-by: Siddharth

[PATCH v28 13/13] MAINTAINERS: Update for DAMON

2021-04-13 Thread SeongJae Park
From: SeongJae Park This commit updates MAINTAINERS file for DAMON related files. Signed-off-by: SeongJae Park --- MAINTAINERS | 12 1 file changed, 12 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4d68184d3f76..42bbcaec5050 100644 --- a/MAINTAINERS +++

[PATCH v28 10/13] Documentation: Add documents for DAMON

2021-04-13 Thread SeongJae Park
From: SeongJae Park This commit adds documents for DAMON under `Documentation/admin-guide/mm/damon/` and `Documentation/vm/damon/`. Signed-off-by: SeongJae Park --- Documentation/admin-guide/mm/damon/guide.rst | 158 + Documentation/admin-guide/mm/damon/index.rst | 15 ++

Re: [RFC v4 0/2] CPU-Idle latency selftest framework

2021-04-13 Thread Doug Smythies
Hi Pratik, V4 seems fine. Thank you. On Mon, Apr 12, 2021 at 12:43 AM Pratik Rajesh Sampat wrote: > > Changelog v3-->v4 > Based on review comments by Doug Smythies, > 1. Parsing the thread_siblings_list for CPU topology information to >correctly identify the cores the test should run on in

[PATCH] ARM: dts: imx6dl-yapp4: Fix RGMII connection to QCA8334 switch

2021-04-13 Thread Michal Vokáč
The FEC does not have a PHY so it should not have a phy-handle. It is connected to the switch at RGMII level so we need a fixed-link sub-node on both ends. This was not a problem until the qca8k.c driver was converted to PHYLINK by commit b3591c2a3661 ("net: dsa: qca8k: Switch to PHYLINK instead

[PATCH 0/7] staging: rtl8723bs: replace DBG_871X_SEL_NL macro with netdev_dbg()

2021-04-13 Thread Fabio Aiuto
This patchset replaces DGB_871X_SEL_NL macro with the driver recommended log function netdev_dbg(). Macro DBG_871X_SEL_NL indeed executes a raw printk call as default behaviour. The other behaviour is doing a seq_printf() call which never occurs. First patch replace dump_drv_version with a

[PATCH 2/7] staging: rtl8723bs: remove unnecessary dump_drv_version() usage

2021-04-13 Thread Fabio Aiuto
remove unnecessary dump_drv_version() usage. This prepares dump_drv_version() for removal, before coccinelle script application. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH 4/7] staging: rtl8723bs: replace DBG_871X_SEL_NL with netdev_dbg()

2021-04-13 Thread Fabio Aiuto
replace DGB_871X_SEL_NL macro with netdev_dbg(). DBG_871X_SEL_NL macro expands to a raw prink call or a seq_printf if selected stream _is not_ a local debug symbol set to null. This second scenario never occurs so replace all macro usages with netdev_dbg(). This is done with the following

[PATCH 7/7] staging: rtl8723bs: remove unused argument in function

2021-04-13 Thread Fabio Aiuto
removed unused 'void *sel' argument in rtw_odm_dbg_comp_msg() function, after DBG_871X_SEL_NL replacement. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_odm.c | 2 +- drivers/staging/rtl8723bs/include/rtw_odm.h| 2 +- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c

[PATCH 3/7] staging: rtl8723bs: remove two unused functions

2021-04-13 Thread Fabio Aiuto
remove dump_drv_version() and dump_log_level() function definitions and prototypes. Those functions are unused, and add unnecessary wrap level to log calls. They wrap DBG_871X_SEL_NL which will be replaced by netdev_dbg() with coccinelle script application. Signed-off-by: Fabio Aiuto ---

[PATCH 5/7] staging: rtl8723bs: put a new line after ';'

2021-04-13 Thread Fabio Aiuto
fix the following post commit hook checkpatch issue: ERROR: space required after that ';' (ctx:VxV) 232: FILE: drivers/staging/rtl8723bs/core/rtw_odm.c:160: + "AdapEn_RSSI", "IGI_LowerBound");netdev_dbg (adapter->pnetdev, This was coccinelle script output

[PATCH 6/7] staging: rtl8723bs: remove DBG_871X_SEL_NL macro declaration

2021-04-13 Thread Fabio Aiuto
remove DBG_871X_SEL_NL obsolete macro declaration. Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/include/rtw_debug.h | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/rtl8723bs/include/rtw_debug.h b/drivers/staging/rtl8723bs/include/rtw_debug.h index

[PATCH 1/7] staging: rtl8723bs: replace dump_drv_version() usage with netdev_dbg()

2021-04-13 Thread Fabio Aiuto
replace dump_drv_version() usage with netdev_dbg(). There's no need to further wrap a netdev_dbg() call for such a low number of occurrences. The string printed is the same contained in DBG_871X_SEL_NL macro called inside dump_drv_version(). This is just preparation before bulk DBG_871X_SEL_NL

Re: [PATCH v4] hwmon: Add driver for fsp-3y PSUs and PDUs

2021-04-13 Thread Guenter Roeck
On 4/13/21 3:42 AM, Václav Kubernát wrote: > This patch adds support for these devices: > - YH-5151E - the PDU > - YM-2151E - the PSU > > The device datasheet says that the devices support PMBus 1.2, but in my > testing, a lot of the commands aren't supported and if they are, they > sometimes

Re: [PATCH] watchdog: it87_wdt: remove useless function

2021-04-13 Thread Guenter Roeck
On 4/13/21 2:34 AM, Jiapeng Chong wrote: > Fix the following clang warning: > > drivers/watchdog/it87_wdt.c:155:20: warning: unused function > 'superio_outw' [-Wunused-function]. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Reviewed-by: Guenter Roeck > --- >

Re: [PATCH] ASoC: cs35l35: Fix an error handling path in 'cs35l35_i2c_probe()'

2021-04-13 Thread Mark Brown
On Sun, 11 Apr 2021 14:51:06 +0200, Christophe JAILLET wrote: > If 'devm_regmap_init_i2c()' fails, there is no need to goto err. We should > return directly as already done by the surrounding error handling paths. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

Re: [PATCH -next] ASoC: sti: sti_uniperif: add missing MODULE_DEVICE_TABLE

2021-04-13 Thread Mark Brown
On Fri, 9 Apr 2021 09:59:53 +0800, Chen Lifu wrote: > This patch adds missing MODULE_DEVICE_TABLE definition which generates > correct modalias for automatic loading of this driver when it is built > as an external module. Applied to

Re: [PATCH] ASoC: meson: axg-frddr: fix fifo depth on g12 and sm1

2021-04-13 Thread Mark Brown
On Mon, 12 Apr 2021 15:22:56 +0200, Jerome Brunet wrote: > Previous fifo depth patch was only tested on axg, not g12 or sm1. > Of course, while adding hw_params dai callback for the axg, I forgot to do > the same for g12 and sm1, leaving the depth unset and breaking playback on > these SoCs. > >

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

2021-04-13 Thread Julia Lawall
On Tue, 13 Apr 2021, Fabio M. De Francesco wrote: > Removed "ledBlink_param" because it was set to the value of "pbuf" but was > never reused. This set was made by direct assignment (no helper had been > called), therefore it had no side effect to the location pointed by "pbuf". > >

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

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

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

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

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

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

Re: [PATCH RFC v2 3/4] virtio_net: move tx vq operation under tx queue lock

2021-04-13 Thread Michael S. Tsirkin
On Tue, Apr 13, 2021 at 04:54:42PM +0800, Jason Wang wrote: > > 在 2021/4/13 下午1:47, Michael S. Tsirkin 写道: > > It's unsafe to operate a vq from multiple threads. > > Unfortunately this is exactly what we do when invoking > > clean tx poll from rx napi. > > As a fix move everything that deals with

Re: [PATCH] phy: nxp-c45: add driver for tja1103

2021-04-13 Thread Christian Herber
On 4/13/2021 3:57 PM, Andrew Lunn wrote: Ok, we can agree that there will not be a perfect naming. Would it be a possibility to rename the existing TJA11xx driver to TJA1100-1-2 or is that unwanted? It is generally a bad idea. It makes back porting fixing harder if the file changes name. If

Re: [PATCH RFC v2 2/4] virtio_net: disable cb aggressively

2021-04-13 Thread Willem de Bruijn
On Tue, Apr 13, 2021 at 4:53 AM Jason Wang wrote: > > > 在 2021/4/13 下午1:47, Michael S. Tsirkin 写道: > > There are currently two cases where we poll TX vq not in response to a > > callback: start xmit and rx napi. We currently do this with callbacks > > enabled which can cause extra interrupts

[PATCH v2 6/8] KVM: Keep memslots in tree-based structures instead of array-based ones

2021-04-13 Thread Maciej S. Szmigiero
From: "Maciej S. Szmigiero" The current memslot code uses a (reverse gfn-ordered) memslot array for keeping track of them. Because the memslot array that is currently in use cannot be modified every memslot management operation (create, delete, move, change flags) has to make a copy of the

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

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

[PATCH v2 7/8] KVM: Optimize gfn lookup in kvm_zap_gfn_range()

2021-04-13 Thread Maciej S. Szmigiero
From: "Maciej S. Szmigiero" Introduce a memslots gfn upper bound operation and use it to optimize kvm_zap_gfn_range(). This way this handler can do a quick lookup for intersecting gfns and won't have to do a linear scan of the whole memslot set. Signed-off-by: Maciej S. Szmigiero ---

Re: [PATCH 5/7] mm: memcontrol: simplify the logic of objcg pinning memcg

2021-04-13 Thread Shakeel Butt
On Mon, Apr 12, 2021 at 11:58 PM Muchun Song wrote: > > The obj_cgroup_release() and memcg_reparent_objcgs() are serialized by > the css_set_lock. We do not need to care about objcg->memcg being > released in the process of obj_cgroup_release(). So there is no need > to pin memcg before releasing

Re: [PATCH v2] staging: media: zoran: moved statement to next line with '*'

2021-04-13 Thread Hans Verkuil
On 09/04/2021 13:40, Mitali Borkar wrote: > Moved the statement to next line and added '*' before it to meet > linux kernel coding style for long(multi-line) comments. > > Signed-off-by: Mitali Borkar > --- > > Changes from v1:- made style changes according to linux kernel coding style > for

[PATCH v28 08/13] mm/damon/dbgfs: Export kdamond pid to the user space

2021-04-13 Thread SeongJae Park
From: SeongJae Park For CPU usage accounting, knowing pid of the monitoring thread could be helpful. For example, users could use cpuaccount cgroups with the pid. This commit therefore exports the pid of currently running monitoring thread to the user space via 'kdamond_pid' file in the

[PATCH v2 0/2] STM32 USBPHYC vbus-supply property support

2021-04-13 Thread Amelie Delaunay
STM32 USBPHYC provides two USB High-Speed ports which are used by controllers with Host capabilities. That's why vbus-supply has to be supported on each phy node. --- Changes in v2: - use connector node vbus-supply property as suggested by Rob --- Amelie Delaunay (2): dt-bindings: phy: add

[PATCH v2 2/2] phy: stm32: manage optional vbus regulator on phy_power_on/off

2021-04-13 Thread Amelie Delaunay
This patch adds support for optional vbus regulator. It is managed on phy_power_on/off calls and may be needed for host mode. Signed-off-by: Amelie Delaunay --- No changes in v2. --- drivers/phy/st/phy-stm32-usbphyc.c | 31 ++ 1 file changed, 31 insertions(+) diff

[PATCH v28 11/13] mm/damon: Add kunit tests

2021-04-13 Thread SeongJae Park
From: SeongJae Park This commit adds kunit based unit tests for the core and the virtual address spaces monitoring primitives of DAMON. Signed-off-by: SeongJae Park Reviewed-by: Brendan Higgins --- mm/damon/Kconfig | 36 + mm/damon/core-test.h | 253

[PATCH v28 12/13] mm/damon: Add user space selftests

2021-04-13 Thread SeongJae Park
From: SeongJae Park This commit adds a simple user space tests for DAMON. The tests are using kselftest framework. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/Makefile| 7 ++ .../selftests/damon/_chk_dependency.sh| 28 ++

Re: [Outreachy kernel][PATCH 1/2] staging: media: omap4iss: Align line break to the open parenthesis in file iss.c

2021-04-13 Thread Hans Verkuil
On 09/04/2021 21:01, Aline Santana Cordeiro wrote: > Aligns line break with the remaining function arguments > to the open parenthesis. Issue found by checkpatch. > > Signed-off-by: Aline Santana Cordeiro Obsolete, a similar patch from Beatriz Martins de Carvalho has already been applied in

[PATCH v2 1/2] dt-bindings: phy: add vbus-supply optional property to phy-stm32-usbphyc

2021-04-13 Thread Amelie Delaunay
This patch adds vbus-supply optional property to phy sub-nodes using connector node. A regulator for USB VBUS may be needed for host mode. Signed-off-by: Amelie Delaunay --- Changes in v2: - add connector vbus-supply property as suggested by Rob ---

Re: [PATCH] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-13 Thread Alan Stern
On Tue, Apr 13, 2021 at 03:52:14PM +0800, Chris Chiu wrote: > On Mon, Apr 12, 2021 at 11:12 PM Alan Stern wrote: > > > > On Mon, Apr 12, 2021 at 11:00:06PM +0800, chris.c...@canonical.com wrote: > > > The USB_PORT_FEAT_SUSPEND is not really necessary due to the > > > "global suspend" in USB 2.0

[PATCH v7 0/3] Input: add Hycon HY46XX Touchscreen controller

2021-04-13 Thread Giulio Benetti
This patchset adds Hycon vendor, HY46XX touchscreen controller driver and its .yaml binding. --- V1->V2: * changed authorship and SoBs to @benettiengineering.com domain * fixed vendor commit log according to Jonathan Neuschäfer's suggestion * fixed hy46xx bindings according to Rob Herring's

Re: [PATCH 1/1] staging: ipu3-imgu: Move the UAPI header from include under include/uapi

2021-04-13 Thread Sakari Ailus
Hi Laurent, On Tue, Apr 13, 2021 at 04:45:17PM +0300, Laurent Pinchart wrote: > Hi Sakari, > > Thank you for the patch. > > On Mon, Apr 12, 2021 at 02:11:20PM +0300, Sakari Ailus wrote: > > The header defines the user space interface but may be mistaken as > > kernel-only header due to its

Re: [PATCH v3 01/18] vfs: add fileattr ops

2021-04-13 Thread Miklos Szeredi
On Tue, Apr 13, 2021 at 4:46 PM Matthew Wilcox wrote: > > On Thu, Mar 25, 2021 at 08:37:38PM +0100, Miklos Szeredi wrote: > > @@ -107,6 +110,8 @@ fiemap: no > > update_time: no > > atomic_open: shared (exclusive if O_CREAT is set in open flags) > > tmpfile: no > > +fileattr_get:

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

2021-04-13 Thread Peter Geis
On Tue, Apr 13, 2021 at 10:01 AM Marc Zyngier wrote: > > On Tue, 13 Apr 2021 14:29:32 +0100, > Peter Geis wrote: > > > > On Tue, Apr 13, 2021 at 5:23 AM Marc Zyngier wrote: > > > > > > Hi Peter, > > > > > > On Mon, 12 Apr 2021 21:49:59 +0100, > > > Peter Geis wrote: > > > > > > > > Good

Re: [PATCH] staging: media: omap4iss: Remove unused macro functions

2021-04-13 Thread Hans Verkuil
On 12/04/2021 15:42, Aline Santana Cordeiro wrote: > Remove unused macro functions "to_iss_device()", "to_device()", > and "v4l2_dev_to_iss_device(dev)". 'git grep to_iss_device drivers/staging/omap4iss' gives me lots of hits! Same for to_device. Only v4l2_dev_to_iss_device appears to be unused.

RE: [PATCH 3/3] rseq: optimise for 64bit arches

2021-04-13 Thread David Laight
From: Mathieu Desnoyers > Sent: 13 April 2021 15:22 ... > > David > > > >> So I suppose that if we're going to #ifdef this, we might as well do the > >> whole thing. > >> > >> Mathieu; did I forget a reason why this cannot work? > > The only difference it brings on 32-bit is that the

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

2021-04-13 Thread Fabio M. De Francesco
Removed "ledBlink_param" because it was set to the value of "pbuf" but was never reused. This set was made by direct assignment (no helper had been called), therefore it had no side effect to the location pointed by "pbuf". Signed-off-by: Fabio M. De Francesco ---

Re: [PATCH] ASoC: cs35l36: Fix an error handling path in 'cs35l36_i2c_probe()'

2021-04-13 Thread Mark Brown
On Sun, 11 Apr 2021 14:57:13 +0200, Christophe JAILLET wrote: > If 'devm_regmap_init_i2c()' fails, there is no need to goto err. We should > return directly as already done by the surrounding error handling paths. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

[PATCH] kconfig: split menu.c out of parser.y

2021-04-13 Thread Masahiro Yamada
Compile menu.c as an independent compilation unit. Signed-off-by: Masahiro Yamada --- scripts/kconfig/Makefile | 4 ++-- scripts/kconfig/internal.h | 9 + scripts/kconfig/menu.c | 1 + scripts/kconfig/parser.y | 5 ++--- 4 files changed, 14 insertions(+), 5 deletions(-) create

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

2021-04-13 Thread Rob Herring
On Mon, 12 Apr 2021 17:46:46 +0200, Neil Armstrong wrote: > From: Phong LE > > Add the ITE bridge HDMI it66121 bindings. > > Signed-off-by: Phong LE > Signed-off-by: Neil Armstrong > --- > .../bindings/display/bridge/ite,it66121.yaml | 123 ++ > 1 file changed, 123

[PATCH] HID: ft260: check data size in ft260_smbus_write()

2021-04-13 Thread Michael Zaidman
Fixes: 98189a0adfa0 ("HID: ft260: add usb hid to i2c host bridge driver") The SMbus block transaction limits the number of bytes transferred to 32, but nothing prevents a user from specifying via ioctl a larger data size than the ft260 can handle in a single transfer. i2cdev_ioctl_smbus() -->

Re: [PATCH v4 05/13] module: Add printk formats to add module build ID to stacktraces

2021-04-13 Thread Petr Mladek
On Tue 2021-04-13 13:56:31, Andy Shevchenko wrote: > On Mon, Apr 12, 2021 at 12:29:05PM -0700, Stephen Boyd wrote: > > Quoting Andy Shevchenko (2021-04-12 04:58:02) > > > On Fri, Apr 09, 2021 at 06:52:52PM -0700, Stephen Boyd wrote: > > > > Let's make kernel stacktraces easier to identify by

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

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

[RFC V2 PATCH 3/12] x86/Hyper-V: Add new hvcall guest address host visibility support

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan Add new hvcall guest address host visibility support. Mark vmbus ring buffer visible to host when create gpadl buffer and mark back to not visible when tear down gpadl buffer. Co-Developed-by: Sunil Muthuswamy Signed-off-by: Tianyu Lan --- arch/x86/hyperv/Makefile

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

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan UIO HV driver should not load in the isolation VM for security reason. Return ENOTSUPP in the hv_uio_probe() in the isolation VM. Signed-off-by: Tianyu Lan --- drivers/uio/uio_hv_generic.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/uio/uio_hv_generic.c

[RFC V2 PATCH 10/12] HV/IOMMU: Add Hyper-V dma ops support

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan Hyper-V Isolation VM requires bounce buffer support. To use swiotlb bounce buffer, add Hyper-V dma ops and use swiotlb functions in the map and unmap callback. Allocate bounce buffer in the Hyper-V code because bounce buffer needs to be accessed via extra address space(e.g,

[RFC V2 PATCH 5/12] HV: Add ghcb hvcall support for SNP VM

2021-04-13 Thread Tianyu Lan
From: Tianyu Lan Hyper-V provides ghcb hvcall to handle VMBus HVCALL_SIGNAL_EVENT and HVCALL_POST_MESSAGE msg in SNP Isolation VM. Add such support. Signed-off-by: Tianyu Lan --- arch/x86/hyperv/ivm.c | 69 + arch/x86/include/asm/mshyperv.h | 1 +

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: linux-next: manual merge of the vfs tree with the xfs tree

2021-04-13 Thread Darrick J. Wong
On Mon, Apr 12, 2021 at 12:22:11PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the vfs tree got a conflict in: > > fs/xfs/xfs_ioctl.c > > between commits: > > ceaf603c7024 ("xfs: move the di_projid field to struct xfs_inode") > 031474c28a3a ("xfs: move the

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

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

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

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

Re: Question on KASAN calltrace record in RT

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

Re: [PATCH] riscv: locks: introduce ticket-based spinlock implementation

2021-04-13 Thread Christoph Müllner
On Tue, Apr 13, 2021 at 11:31 AM Catalin Marinas wrote: > > On Tue, Apr 13, 2021 at 11:22:40AM +0200, Christoph Müllner wrote: > > On Tue, Apr 13, 2021 at 10:03 AM Peter Zijlstra > > wrote: > > > On Mon, Apr 12, 2021 at 11:54:55PM +0200, Christoph Müllner wrote: > > > > On Mon, Apr 12, 2021 at

[PATCH] f2fs: document: add description about compressed space handling

2021-04-13 Thread Chao Yu
User or developer may still be confused about why f2fs doesn't expose compressed space to userspace, add description about compressed space handling policy into f2fs documentation. Signed-off-by: Chao Yu --- Documentation/filesystems/f2fs.rst | 8 1 file changed, 8 insertions(+) diff

[PATCH] esp6: Simplify the calculation of variables

2021-04-13 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./net/ipv6/esp6_offload.c:321:32-34: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- net/ipv6/esp6_offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 4.19 52/66] net: sched: bump refcount for new action in ACT replace mode

2021-04-13 Thread Sudip Mukherjee
Hi Greg, On Mon, Apr 12, 2021 at 10:40:58AM +0200, Greg Kroah-Hartman wrote: > From: Kumar Kartikeya Dwivedi > > commit 6855e8213e06efcaf7c02a15e12b1ae64b9a7149 upstream. This has been reverted upstream by: 4ba86128ba07 ("Revert "net: sched: bump refcount for new action in ACT replace mode"")

[PATCH v3 31/33] media: atmel: atmel-isc: add microchip-xisc driver

2021-04-13 Thread Eugen Hristev
Add driver for the extended variant of the isc, the microchip XISC present on sama7g5 product. Signed-off-by: Eugen Hristev --- drivers/media/platform/Makefile | 1 + drivers/media/platform/atmel/Kconfig | 11 + drivers/media/platform/atmel/Makefile | 2 +

[PATCH v3 28/33] media: atmel: atmel-isc-sama5d2: remove duplicate define

2021-04-13 Thread Eugen Hristev
Remove a duplicate definition of clock max divider Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-sama5d2-isc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-sama5d2-isc.c b/drivers/media/platform/atmel/atmel-sama5d2-isc.c index

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

2021-04-13 Thread Eugen Hristev
Convert the Atmel ISC to yaml binding format. Signed-off-by: Eugen Hristev --- .../devicetree/bindings/media/atmel,isc.yaml | 115 ++ .../devicetree/bindings/media/atmel-isc.txt | 65 -- 2 files changed, 115 insertions(+), 65 deletions(-) create mode 100644

Re: [PATCH] riscv: locks: introduce ticket-based spinlock implementation

2021-04-13 Thread Christoph Müllner
On Tue, Apr 13, 2021 at 12:45 PM Catalin Marinas wrote: > > On Tue, Apr 13, 2021 at 12:25:00PM +0200, Christoph Müllner wrote: > > On Tue, Apr 13, 2021 at 11:37 AM Peter Zijlstra > > wrote: > > > On Tue, Apr 13, 2021 at 11:22:40AM +0200, Christoph Müllner wrote: > > > > What about trylock()? >

[PATCH v3 30/33] dt-bindings: media: add microchip,xisc device bindings

2021-04-13 Thread Eugen Hristev
Add bindings for the Microchip eXtended Image Sensor Controller. Based on the atmel,isc.yaml binding. Signed-off-by: Eugen Hristev --- .../bindings/media/microchip,xisc.yaml| 129 ++ 1 file changed, 129 insertions(+) create mode 100644

Re: [Nouveau] [PATCH v2] ALSA: hda: Continue to probe when codec probe fails

2021-04-13 Thread Roy Spliet
Op 13-04-2021 om 10:48 schreef Karol Herbst: On Tue, Apr 13, 2021 at 10:24 AM Roy Spliet wrote: Op 13-04-2021 om 01:10 schreef Karol Herbst: On Mon, Apr 12, 2021 at 9:36 PM Roy Spliet wrote: Hello Aaron, Thanks for your insights. A follow-up query and some observations in-line. Op

Re: [PATCH v14 3/6] locking/qspinlock: Introduce CNA into the slow path of qspinlock

2021-04-13 Thread Peter Zijlstra
On Thu, Apr 01, 2021 at 11:31:53AM -0400, Alex Kogan wrote: > +/* > + * cna_splice_tail -- splice the next node from the primary queue onto > + * the secondary queue. > + */ > +static void cna_splice_next(struct mcs_spinlock *node, > + struct mcs_spinlock *next, > +

Re: [PATCH v8 4/8] dt-bindings: pwm: Support new PWM_USAGE_POWER flag

2021-04-13 Thread Thierry Reding
On Tue, Apr 13, 2021 at 01:38:05PM +0200, Uwe Kleine-König wrote: > Hello, > > On Mon, Apr 12, 2021 at 06:46:51PM +0200, Clemens Gruber wrote: > > On Mon, Apr 12, 2021 at 06:27:23PM +0200, Uwe Kleine-König wrote: > > > On Mon, Apr 12, 2021 at 03:27:41PM +0200, Clemens Gruber wrote: > > > > Add

[PATCH] Documentation/submitting-patches: Document RESEND tag on patches

2021-04-13 Thread Borislav Petkov
Hi Jon, here's the next piece of documentation which should be generic enough. Thx. --- From: Borislav Petkov Date: Tue, 13 Apr 2021 13:26:29 +0200 Explain when a submitter should tag a patch or a patch series with the "RESEND" tag. This has been partially carved out from a tip subsystem

arch/mips/boot/compressed/../../../../lib/xz/xz_dec_stream.c:393:28: sparse: sparse: incorrect type in argument 1 (different base types)

2021-04-13 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 89698becf06d341a700913c3d89ce2a914af69a2 commit: baec970aa5ba11099ad7a91773350c91fb2113f0 mips: Add N64 machine type date: 3 months ago config: mips-randconfig-s032-20210413 (attached as .config) compiler

Re: [PATCH v12 13/13] x86/kvm: Add kexec support for SEV Live Migration.

2021-04-13 Thread Ashish Kalra
On Mon, Apr 12, 2021 at 07:25:03PM -0700, Steve Rutherford wrote: > On Mon, Apr 12, 2021 at 6:48 PM Ashish Kalra wrote: > > > > On Mon, Apr 12, 2021 at 06:23:32PM -0700, Steve Rutherford wrote: > > > On Mon, Apr 12, 2021 at 5:22 PM Steve Rutherford > > > wrote: > > > > > > > > On Mon, Apr 12,

Re: [PATCH v14 4/6] locking/qspinlock: Introduce starvation avoidance into CNA

2021-04-13 Thread Peter Zijlstra
On Thu, Apr 01, 2021 at 11:31:54AM -0400, Alex Kogan wrote: > @@ -49,13 +55,33 @@ struct cna_node { > u16 real_numa_node; > u32 encoded_tail; /* self */ > u32 partial_order; /* enum val */ > + s32

[PATCH v2 3/5] drm/vc4: Add HDR metadata property to the VC5 HDMI connectors

2021-04-13 Thread Maxime Ripard
From: Dave Stevenson Now that we can export deeper colour depths, add in the signalling for HDR metadata. Signed-off-by: Dave Stevenson Signed-off-by: Maxime Ripard --- Changes from v1: - Rebased on latest drm-misc-next tag --- drivers/gpu/drm/vc4/vc4_hdmi.c | 53

Re: [PATCH v8 1/8] pwm: pca9685: Switch to atomic API

2021-04-13 Thread Clemens Gruber
Hi Uwe, On Mon, Apr 12, 2021 at 10:10:19PM +0200, Uwe Kleine-König wrote: > Hello Clemens, > > On Mon, Apr 12, 2021 at 06:39:28PM +0200, Clemens Gruber wrote: > > On Mon, Apr 12, 2021 at 06:18:08PM +0200, Uwe Kleine-König wrote: > > > On Mon, Apr 12, 2021 at 03:27:38PM +0200, Clemens Gruber

[PATCH v2 2/5] drm/connector: Add helper to compare HDR metadata

2021-04-13 Thread Maxime Ripard
All the drivers that support the HDR metadata property have a similar function to compare the metadata from one connector state to the next, and force a mode change if they differ. All these functions run pretty much the same code, so let's turn it into an helper that can be shared across those

backport patches to linux-5.4.y

2021-04-13 Thread Anders Roxell
Hi, Can these patches be backported to linux-5.4.y, I've tried to build perf on arm and it failed without these patches. fc8c0a992233 ("perf tools: Use %define api.pure full instead of %pure-parser") 20befbb10803 ("perf tools: Use %zd for size_t printf formats on 32-bit") 77d02bd00cea ("perf map:

[PATCH v2 5/5] drm/vc4: hdmi: Signal the proper colorimetry info in the infoframe

2021-04-13 Thread Maxime Ripard
Our driver while supporting HDR didn't send the proper colorimetry info in the AVI infoframe. Let's add the property needed so that the userspace can let us know what the colorspace is supposed to be. Signed-off-by: Maxime Ripard --- Changes from v1: - New patch ---

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