Re: [PATCH] staging: rtl8723bs: remove sdio_drv_priv structure

2021-04-14 Thread Greg Kroah-Hartman
On Tue, Apr 13, 2021 at 05:11:39PM +, Bryan Brattlof wrote: > The sdio_drv_priv structure is a small wrapper around sdio_driver in > linux/mmc/sdio_func.h with an added drv_registered integer. > > drv_registered is never used anywhere in the driver and only assigned to > during the sdio regist

Re: [GIT PULL] coresight: Fixes for ETE and TRBE

2021-04-14 Thread Marc Zyngier
On Tue, 13 Apr 2021 20:45:00 +0100, Mathieu Poirier wrote: > > On Tue, 13 Apr 2021 at 10:52, Marc Zyngier wrote: > > > > Hi Mathieu, > > > > On Tue, 13 Apr 2021 17:19:52 +0100, > > Mathieu Poirier wrote: > > > > > > The following changes since commit > > > 4fb13790417a7bf726f3867a5d2b9723efde4

Re: [PATCH v7 3/7] mm,hugetlb: Clear HPageFreed outside of the lock

2021-04-14 Thread Michal Hocko
On Wed 14-04-21 09:41:32, Oscar Salvador wrote: > On Wed, Apr 14, 2021 at 08:04:21AM +0200, Michal Hocko wrote: > > On Tue 13-04-21 14:19:03, Mike Kravetz wrote: > > > On 4/13/21 6:23 AM, Michal Hocko wrote: > > > The only place where page->private may not be initialized is when we do > > > allocat

Re: [PATCH v3 1/4] dt-bindings: mfd: Add bindings for Ampere Altra SMPro drivers

2021-04-14 Thread Quan Nguyen
On 13/04/2021 20:49, Rob Herring wrote: On Fri, Apr 09, 2021 at 10:13:29AM +0700, Quan Nguyen wrote: Adds device tree bindings for SMPro drivers found on the Mt.Jade hardware reference platform with Ampere's Altra Processor family. Signed-off-by: Quan Nguyen --- .../bindings/hwmon/ampere,ac0

[PATCH] x86/dma: Tear down DMA ops on driver unbind

2021-04-14 Thread Jean-Philippe Brucker
Since commit 08a27c1c3ecf ("iommu: Add support to change default domain of an iommu group") a user can switch a device between IOMMU and direct DMA through sysfs. This doesn't work for AMD IOMMU at the moment because dev->dma_ops is not cleared when switching from a DMA to an identity IOMMU domain.

Re: [PATCH v6 1/2] staging: rtl8192e: remove parentheses around boolean expression

2021-04-14 Thread Greg KH
On Wed, Apr 14, 2021 at 12:51:55PM +0530, Mitali Borkar wrote: > Removed unnecessary parentheses around '!xyz' boolean expression as '!' > has higher precedance than '||' > > Signed-off-by: Mitali Borkar > --- This series does not apply to my tree :(

Re: [PATCH 12/19] staging: rtl8723bs: remove unnecessary bracks on DBG_871X removal sites

2021-04-14 Thread Joe Perches
On Tue, 2021-04-13 at 17:52 +0300, Dan Carpenter wrote: > On Wed, Apr 07, 2021 at 03:49:36PM +0200, Fabio Aiuto wrote: > > @@ -2586,11 +2583,9 @@ static int rtw_dbg_port(struct net_device *dev, > >   > > > >   plist = > > get_next(plist);

Re: [PATCH v1 1/2] mfd: intel_quark_i2c_gpio: Convert I²C to use software nodes

2021-04-14 Thread Lee Jones
On Wed, 31 Mar 2021, Andy Shevchenko wrote: > The driver can provide a software node group instead of > passing legacy platform data. This will allow to drop > the legacy platform data structures along with unifying > a child device driver to use same interface for all > property providers, i.e. D

Re: [PATCH v1 2/2] i2c: designware: Get rid of legacy platform data

2021-04-14 Thread Lee Jones
On Wed, 31 Mar 2021, Andy Shevchenko wrote: > Platform data is a legacy interface to supply device properties > to the driver. In this case we don't have anymore in-kernel users > for it. Just remove it for good. > > Signed-off-by: Andy Shevchenko > --- > drivers/i2c/busses/i2c-designware-platd

[PATCH V3 3/5] arm64: dts: qcom: pmr735a: Add temp-alarm support

2021-04-14 Thread satya priya
Add temp-alarm node for PMR735A pmic and also modify gpio node to add gpio ranges and "qcom,spmi-gpio" compatible. Signed-off-by: satya priya --- arch/arm64/boot/dts/qcom/pmr735a.dtsi | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/arch/arm64/

[PATCH V3 0/5] Add PMIC DT files for sc7280

2021-04-14 Thread satya priya
Add PM7325 DT file with gpio and temp-alarm nodes. For PM8350C, PMR735A and PMK8350 add the required peripherals as the base DT files are already added [1]. [1] https://lore.kernel.org/patchwork/project/lkml/list/?series=489011&state=%2A&archive=both Changes in V2: - As per Matthias comments:

[PATCH V3 2/5] arm64: dts: qcom: pm8350c: Add temp-alarm support

2021-04-14 Thread satya priya
Add temp-alarm node for PM8350C pmic and also modify gpio node to add gpio ranges and "qcom,spmi-gpio" compatible. Signed-off-by: satya priya --- arch/arm64/boot/dts/qcom/pm8350c.dtsi | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/arch/arm64/

[PATCH V3 4/5] arm64: dts: qcom: pmk8350: Add PMIC peripherals for pmk8350

2021-04-14 Thread satya priya
Add PON, RTC and other PMIC infra modules support for PMK8350. Signed-off-by: satya priya --- arch/arm64/boot/dts/qcom/pmk8350.dtsi | 49 ++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pmk8350.dtsi b/arch/arm64/boot/dts

Re: [RFC PATCH] KVM: x86: Support write protect huge pages lazily

2021-04-14 Thread Keqian Zhu
Hi Ben, On 2021/4/14 0:43, Ben Gardon wrote: > On Tue, Apr 13, 2021 at 2:39 AM Keqian Zhu wrote: >> >> >> >> On 2021/4/13 1:19, Ben Gardon wrote: >>> On Tue, Apr 6, 2021 at 4:42 PM Sean Christopherson >>> wrote: +Ben On Tue, Apr 06, 2021, Keqian Zhu wrote: > Hi Paolo, >>

[PATCH V3 5/5] arm64: dts: qcom: sc7280: Include PMIC DT files for sc7280

2021-04-14 Thread satya priya
Include pm7325, pm8350c, pmk8350 and pmr735a DT files. Add channel nodes for pmk8350_vadc. Also, add the thermal_zones node in dtsi. Signed-off-by: satya priya --- arch/arm64/boot/dts/qcom/pmk8350.dtsi | 6 ++ arch/arm64/boot/dts/qcom/sc7280-idp.dts | 30 ++ ar

[PATCH V3 1/5] arm64: dts: qcom: pm7325: Add pm7325 base dts file

2021-04-14 Thread satya priya
Add base DTS file for pm7325 along with GPIOs and temp-alarm nodes. Signed-off-by: satya priya --- arch/arm64/boot/dts/qcom/pm7325.dtsi | 53 1 file changed, 53 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/pm7325.dtsi diff --git a/arch/arm64/bo

[PATCH V3 0/4] Add driver support for Data Capture and Compare Engine(DCC) for SM8150

2021-04-14 Thread Souradeep Chowdhury
DCC(Data Capture and Compare) is a DMA engine designed for debugging purposes.In case of a system crash or manual software triggers by the user the DCC hardware stores the value at the register addresses which can be used for debugging purposes.The DCC driver provides the user with sysfs interfa

Re: [PATCH V2 2/4] dt-bindings: mfd: Add compatible for pmk8350 rtc

2021-04-14 Thread Lee Jones
On Fri, 09 Apr 2021, satya priya wrote: > Add compatible string for pmk8350 rtc support. > > Signed-off-by: satya priya > Reviewed-by: Bjorn Andersson > --- > Changes in V2: > - Moved this patch before conversion patches. > > Documentation/devicetree/bindings/mfd/qcom-pm8xxx.txt | 1 + > 1 f

[PATCH V3 3/4] MAINTAINERS: Add the entry for DCC(Data Capture and Compare) driver support

2021-04-14 Thread Souradeep Chowdhury
Added the entries for all the files added as a part of driver support for DCC(Data Capture and Compare). Signed-off-by: Souradeep Chowdhury --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index d92f85c..fb28218 100644 --- a/MAINTAINERS +++ b/

[PATCH V3 1/4] dt-bindings: Added the yaml bindings for DCC

2021-04-14 Thread Souradeep Chowdhury
Documentation for Data Capture and Compare(DCC) device tree bindings in yaml format. Reviewed-by: Rob Herring Signed-off-by: Souradeep Chowdhury --- .../devicetree/bindings/arm/msm/qcom,dcc.yaml | 40 ++ 1 file changed, 40 insertions(+) create mode 100644 Documentation

[PATCH] delayacct: clear right task's flag after blkio completes

2021-04-14 Thread Yafang Shao
When I was implementing a latency analyze tool by using task->delays and other things, I found there's issue in delayacct. The issue is it should clear the target's flag instead of current's in delayacct_blkio_end(). When I git blame delayacct, I found there're some similar issues we have fixed in

[PATCH v18 1/5] i2c: core: support bus regulator controlling in adapter

2021-04-14 Thread Hsin-Yi Wang
From: Bibby Hsieh Although in the most platforms, the bus power of i2c are alway on, some platforms disable the i2c bus power in order to meet low power request. We can control bulk regulator if it is provided in i2c adapter device. Signed-off-by: Bibby Hsieh Signed-off-by: Marek Szyprowski S

Re: [PATCH v4 00/10] Add support for synchronous signals on perf events

2021-04-14 Thread Peter Zijlstra
On Thu, Apr 08, 2021 at 12:35:55PM +0200, Marco Elver wrote: > Marco Elver (9): > perf: Apply PERF_EVENT_IOC_MODIFY_ATTRIBUTES to children > perf: Support only inheriting events if cloned with CLONE_THREAD > perf: Add support for event removal on exec > signal: Introduce TRAP_PERF si_code a

[PATCH v18 3/5] i2c: mediatek: mt65xx: add optional vbus-supply

2021-04-14 Thread Hsin-Yi Wang
Add vbus-supply which provides power to SCL/SDA. Pass this regulator into core so it can be turned on/off for low power mode support. Signed-off-by: Hsin-Yi Wang --- drivers/i2c/busses/i2c-mt65xx.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drive

Re: [PATCH V2 3/4] dt-bindings: mfd: Convert pm8xxx bindings to yaml

2021-04-14 Thread Lee Jones
On Fri, 09 Apr 2021, satya priya wrote: > Convert pm8xxx bindings from .txt to .yaml format. Also, > split this binding into two: parent binding(qcom-pm8xxx.yaml) > and child node RTC binding(qcom-pm8xxx-rtc.yaml). > > Signed-off-by: satya priya > --- > Changes in V2: > - As per Bjorn's comment

[PATCH v18 2/5] dt-binding: i2c: mt65xx: add vbus-supply property

2021-04-14 Thread Hsin-Yi Wang
Add vbus-supply property for mt65xx. The regulator can be passed into core and turned off during suspend/sleep to reduce power consumption. Signed-off-by: Hsin-Yi Wang --- Documentation/devicetree/bindings/i2c/i2c-mt65xx.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devic

[PATCH V3 2/4] soc: qcom: dcc:Add driver support for Data Capture and Compare unit(DCC)

2021-04-14 Thread Souradeep Chowdhury
The DCC is a DMA Engine designed to capture and store data during system crash or software triggers.The DCC operates based on user inputs via the sysfs interface.The user gives addresses as inputs and these addresses are stored in the form of linkedlists.In case of a system crash or a manual softwa

[PATCH V3 4/4] arm64: dts: qcom: sm8150: Add Data Capture and Compare(DCC) support node

2021-04-14 Thread Souradeep Chowdhury
Add the DCC(Data Capture and Compare) device tree node entry along with the addresses for register regions. Signed-off-by: Souradeep Chowdhury --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boo

[PATCH v18 0/5] add power control in i2c

2021-04-14 Thread Hsin-Yi Wang
Although in the most platforms, the power of eeprom and i2c are alway on, some platforms disable the eeprom and i2c power in order to meet low power request. This patch add the pm_runtime ops to control power to support all platforms. Changes since v17: - Add a patch to fix unbalanced regulator

[PATCH v18 4/5] misc: eeprom: at24: check suspend status before disable regulator

2021-04-14 Thread Hsin-Yi Wang
cd5676db0574 ("misc: eeprom: at24: support pm_runtime control") disables regulator in runtime suspend. If runtime suspend is called before regulator disable, it will results in regulator unbalanced disabling. Signed-off-by: Hsin-Yi Wang --- drivers/misc/eeprom/at24.c | 6 -- 1 file changed,

[PATCH v18 5/5] arm64: dts: mt8183: add supply name for eeprom

2021-04-14 Thread Hsin-Yi Wang
Add supplies for eeprom for mt8183 boards. Signed-off-by: Hsin-Yi Wang --- arch/arm64/boot/dts/mediatek/mt8183-kukui-kakadu.dtsi | 4 arch/arm64/boot/dts/mediatek/mt8183-kukui-kodama.dtsi | 4 arch/arm64/boot/dts/mediatek/mt8183-kukui-krane.dtsi | 4 3 files changed, 12 insertion

Re: [PATCH] virtiofs: remove useless function

2021-04-14 Thread Stefan Hajnoczi
On Tue, Apr 13, 2021 at 05:22:23PM +0800, Jiapeng Chong wrote: > Fix the following clang warning: > > fs/fuse/virtio_fs.c:130:35: warning: unused function 'vq_to_fpq' > [-Wunused-function]. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > fs/fuse/virtio_fs.c | 5 - > 1 f

[PATCH] rtc: fsl-ftm-alarm: add MODULE_TABLE()

2021-04-14 Thread Michael Walle
The module doesn't load automatically. Fix it by adding the missing MODULE_TABLE(). Fixes: 7b0b551dbc1e ("rtc: fsl-ftm-alarm: add FTM alarm driver") Signed-off-by: Michael Walle --- drivers/rtc/rtc-fsl-ftm-alarm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-fsl-ftm-alarm.

Re: [PATCH v2 1/2] fuse: Fix possible deadlock when writing back dirty pages

2021-04-14 Thread Baolin Wang
Hi, 在 2021/4/13 16:57, Miklos Szeredi 写道: On Mon, Apr 12, 2021 at 3:23 PM Baolin Wang wrote: Hi Miklos, 在 2021/3/27 14:36, Baolin Wang 写道: We can meet below deadlock scenario when writing back dirty pages, and writing files at the same time. The deadlock scenario can be reproduced by: - A

Re: [PATCH] mfd: abx500: Remove repeated struct declaration

2021-04-14 Thread Lee Jones
On Thu, 01 Apr 2021, Wan Jiabing wrote: > struct ab8500_fg is declared twice. The blew one at 457th line > is closer to user. Remove the duplicate here. > Move "Forward declaration" annotation to the suitable place. > > Signed-off-by: Wan Jiabing > --- > include/linux/mfd/abx500/ab8500-bm.h | 4

Re: [PATCH] virtio_blk: Add support for lifetime feature

2021-04-14 Thread Stefan Hajnoczi
On Mon, Apr 12, 2021 at 10:42:17AM +0100, Christoph Hellwig wrote: > A note to the virtio committee: eMMC is the worst of all the currently > active storage standards by a large margin. It defines very strange > ad-hoc interfaces that expose very specific internals and often provides > very poor

Re: [PATCH -next] mfd: twl: Remove unused inline function twl4030charger_usb_en()

2021-04-14 Thread Lee Jones
On Thu, 01 Apr 2021, YueHaibing wrote: > There is no caller in tree, so can remove it. > > Signed-off-by: YueHaibing > --- > include/linux/mfd/twl.h | 2 -- > 1 file changed, 2 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open sourc

Re: [PATCH] Documentation: syscalls: add a note about ABI-agnostic types

2021-04-14 Thread Christian Brauner
On Wed, Apr 14, 2021 at 08:14:22AM +0200, Mauro Carvalho Chehab wrote: > Em Tue, 13 Apr 2021 21:40:20 -0700 > Yury Norov escreveu: > > > Ping? > > > > On Fri, Apr 09, 2021 at 01:43:04PM -0700, Yury Norov wrote: > > > Recently added memfd_secret() syscall had a flags parameter passed > > > as uns

Re: [PATCH] objtool: prevent memory leak in error paths

2021-04-14 Thread Dan Carpenter
On Wed, Apr 14, 2021 at 01:45:11AM +0500, Muhammad Usama Anjum wrote: > Memory allocated by sym and sym->name isn't being freed if some error > occurs in elf_create_undef_symbol(). Free the sym and sym->name if error > is detected before returning NULL. > > Addresses-Coverity: ("Prevent memory lea

[PATCH bpf-next] bpf: Fix some invalid links in bpf_devel_QA.rst

2021-04-14 Thread Tiezhu Yang
There exist some errors "404 Not Found" when I click the link of "MAINTAINERS" [1], "samples/bpf/" [2] and "selftests" [3] in the documentation "HOWTO interact with BPF subsystem" [4]. Use correct link of "MAINTAINERS" and just remove the links of "samples/bpf/" and "selftests" because there are n

[PATCH] iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER

2021-04-14 Thread Alexandru Ardelean
During commit 067fda1c065ff ("iio: hid-sensors: move triggered buffer setup into hid_sensor_setup_trigger"), the iio_triggered_buffer_{setup,cleanup}() functions got moved under the hid-sensor-trigger module. The above change works fine, if any of the sensors get built. However, when only the comm

Re: [PATCH] drm/i915/gvt: remove useless function

2021-04-14 Thread Zhenyu Wang
On 2021.04.13 14:18:48 +0800, Jiapeng Chong wrote: > Fix the following clang warning: > > drivers/gpu/drm/i915/gvt/gtt.c:590:20: warning: unused function > 'ppgtt_set_guest_root_entry' [-Wunused-function]. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/gpu/drm/i915

RE: [PATCH] arm64: dts: ls1028a-rdb: enable optee node

2021-04-14 Thread Sahil Malhotra (OSS)
Hi Shawn, Michael, Just a friendly reminder to have a look at this patch. Regards, Sahil Malhotra -Original Message- From: Sahil Malhotra Sent: Tuesday, March 30, 2021 8:20 PM To: shawn...@kernel.org Cc: Sahil Malhotra (OSS) ; Sahil Malhotra ; Michael Walle ; Leo Li ; Rob Herring ; m

Re: [PATCH v2, 0/5] Revert "mailbox: mediatek: remove implementation related to atomic_exec"

2021-04-14 Thread Matthias Brugger
On 12/04/2021 17:29, Jassi Brar wrote: > On Mon, Apr 12, 2021 at 6:18 AM Yongqiang Niu > wrote: >> >> This series base linux 5.12-rc2 >> these patches will cause home ui flick when cursor moved, >> there is no fix solution yet, revert these patches first. >> >> change since v1: >> add mtk-gce.t

[PATCH v3] firmware_loader: fix use-after-free in firmware_fallback_sysfs

2021-04-14 Thread Anirudh Rayabharam
This use-after-free happens when a fw_priv object has been freed but hasn't been removed from the pending list (pending_fw_head). The next time fw_load_sysfs_fallback tries to insert into the list, it ends up accessing the pending_list member of the previoiusly freed fw_priv. The root cause here i

Re: [tip: core/rcu] softirq: Don't try waking ksoftirqd before it has been spawned

2021-04-14 Thread Uladzislau Rezki
On Wed, Apr 14, 2021 at 09:13:22AM +0200, Sebastian Andrzej Siewior wrote: > On 2021-04-12 11:36:45 [-0700], Paul E. McKenney wrote: > > > Color me confused. I did not follow the discussion around this > > > completely, but wasn't it agreed on that this rcu torture muck can wait > > > until the thr

[PATCH v2 3/6] kunit: ext4: adhear to KUNIT formatting standard

2021-04-14 Thread Nico Pache
Drop 'S' from end of CONFIG_EXT4_KUNIT_TESTS inorder to adhear to the KUNIT *_KUNIT_TEST config name format. Fixes: 1cbeab1b242d (ext4: add kunit test for decoding extended timestamps) Signed-off-by: Nico Pache --- fs/ext4/.kunitconfig | 2 +- fs/ext4/Kconfig | 2 +- fs/ext4/Makefile |

[PATCH v2 6/6] m68k: update configs to match the proper KUNIT syntax

2021-04-14 Thread Nico Pache
No functional changes other than CONFIG name changes Signed-off-by: Nico Pache --- arch/m68k/configs/amiga_defconfig| 6 +++--- arch/m68k/configs/apollo_defconfig | 6 +++--- arch/m68k/configs/atari_defconfig| 6 +++--- arch/m68k/configs/bvme6000_defconfig | 6 +++--- arch/m68k/configs/

[PATCH v2 1/6] kunit: ASoC: topology: adhear to KUNIT formatting standard

2021-04-14 Thread Nico Pache
Drop 'S' from end of SND_SOC_TOPOLOGY_KUNIT_TESTS inorder to adhear to the KUNIT *_KUNIT_TEST config name format. Fixes: d52bbf747cfa (ASoC: topology: KUnit: Add KUnit tests passing various...) Signed-off-by: Nico Pache --- sound/soc/Kconfig | 2 +- sound/soc/Makefile | 4 ++-- 2 files changed

[PATCH v2 0/6] kunit: Fix formatting of KUNIT tests to meet the standard

2021-04-14 Thread Nico Pache
There are few instances of KUNIT tests that are not properly defined. This commit focuses on correcting these issues to match the standard defined in the Documentation. Issues Fixed: - tests should end in KUNIT_TEST, some fixes have been applied to correct issues were KUNIT_TESTS is used or KU

[PATCH v2 4/6] kunit: lib: adhear to KUNIT formatting standard

2021-04-14 Thread Nico Pache
Change config names inorder to adhear to the KUNIT *KUNIT_TEST config name format. Add 'if !KUNIT_ALL_TESTS' to the KUNIT config tristates inorder to adhear to the KUNIT standard. add 'default KUNIT_ALL_TESTS' to the KUNIT config options inorder to adhear to the KUNIT standard. Fixes: 6d511020e1

[PATCH v2 2/6] kunit: software node: adhear to KUNIT formatting standard

2021-04-14 Thread Nico Pache
Change CONFIG_KUNIT_DRIVER_PE_TEST to CONFIG_DRIVER_PE_KUNIT_TEST inorder to adhear to the KUNIT *_KUNIT_TEST config name format. Fixes: aa811e3cecec (software node: introduce CONFIG_KUNIT_DRIVER_PE_TEST) Signed-off-by: Nico Pache --- drivers/base/test/Kconfig | 2 +- drivers/base/test/Makefile

[PATCH v2 5/6] kunit: mptcp: adhear to KUNIT formatting standard

2021-04-14 Thread Nico Pache
Drop 'S' from end of CONFIG_MPTCP_KUNIT_TESTS inorder to adhear to the KUNIT *_KUNIT_TEST config name format. Fixes: a00a582203db (mptcp: move crypto test to KUNIT) Signed-off-by: Nico Pache --- net/mptcp/Kconfig | 2 +- net/mptcp/Makefile | 2 +- net/mptcp/crypto.c | 2 +- net/mptcp/token.c |

[PATCH] init: consolidate trap_init()

2021-04-14 Thread Jisheng Zhang
Many architectures implement the trap_init() as NOP, since there is no such default for trap_init(), this empty stub is duplicated among these architectures. Provide a generic but weak NOP implementation to drop the empty stubs of trap_init() in these architectures. Signed-off-by: Jisheng Zhang -

Re: [RFC PATCH v1 00/11] Manage the top tier memory in a tiered memory

2021-04-14 Thread Jonathan Cameron
On Mon, 12 Apr 2021 12:20:22 -0700 Shakeel Butt wrote: > On Fri, Apr 9, 2021 at 4:26 PM Tim Chen wrote: > > > > > > On 4/8/21 4:52 AM, Michal Hocko wrote: > > > > >> The top tier memory used is reported in > > >> > > >> memory.toptier_usage_in_bytes > > >> > > >> The amount of top tier memory

[PATCH] staging: comedi: move out of staging directory

2021-04-14 Thread Greg Kroah-Hartman
The comedi code came into the kernel back in 2008, but traces its lifetime to much much earlier. It's been polished and buffed and there's really nothing preventing it from being part of the "real" portion of the kernel. So move it to drivers/comedi/ as it belongs there. Many thanks to the hundr

Re: [PATCH v2 1/2] fuse: Fix possible deadlock when writing back dirty pages

2021-04-14 Thread Miklos Szeredi
On Wed, Apr 14, 2021 at 10:42 AM Baolin Wang wrote: > Sorry I missed this patch before, and I've tested this patch, it seems > can solve the deadlock issue I met before. Great, thanks for testing. > But look at this patch in detail, I think this patch only reduced the > deadlock window, but did

Re: [PATCH v3 2/2] kvm/arm64: Try stage2 block mapping for host device MMIO

2021-04-14 Thread Marc Zyngier
+ Santosh, who found some interesting bugs in that area before. On Wed, 14 Apr 2021 07:51:09 +0100, Keqian Zhu wrote: > > The MMIO region of a device maybe huge (GB level), try to use > block mapping in stage2 to speedup both map and unmap. > > Compared to normal memory mapping, we should consi

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

2021-04-14 Thread Bean Huo
On Thu, 2021-04-08 at 10:59 -0700, Scott Branden wrote: > From: Vladimir Olovyannikov > > > > In certain rare combination of operations, Micron eMMC v5.0 cards > > may experience data errors if internal cache is enabled. > > This may lead to eMMC related data errors. > > Introduce a quirk to

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

2021-04-14 Thread Peter Zijlstra
On Wed, Apr 14, 2021 at 09:08:18AM +0200, Peter Zijlstra wrote: > On Wed, Apr 14, 2021 at 10:26:57AM +0800, Guo Ren wrote: > > Thx Peter, > > > > On Tue, Apr 13, 2021 at 4:17 PM Peter Zijlstra wrote: > > > > > > On Tue, Apr 13, 2021 at 10:03:01AM +0200, Peter Zijlstra wrote: > > > > > > > For tic

Re: [PATCH] init: consolidate trap_init()

2021-04-14 Thread Christophe Leroy
Le 14/04/2021 à 10:58, Jisheng Zhang a écrit : Many architectures implement the trap_init() as NOP, since there is no such default for trap_init(), this empty stub is duplicated among these architectures. Provide a generic but weak NOP implementation to drop the empty stubs of trap_init() in t

RE: [PATCH v32 4/4] scsi: ufs: Add HPB 2.0 support

2021-04-14 Thread Avri Altman
> From: Daejun Park > > @@ -1692,6 +2188,7 @@ static void ufshpb_hpb_lu_prepared(struct ufs_hba > *hba) > ufshpb_set_state(hpb, HPB_PRESENT); > if ((hpb->lu_pinned_end - hpb->lu_pinned_start) > 0) > queue_work(ufshpb_

Re: [PATCH v2] firmware_loader: fix use-after-free in firmware_fallback_sysfs

2021-04-14 Thread Anirudh Rayabharam
On Tue, Apr 13, 2021 at 04:51:38PM +, Luis Chamberlain wrote: > On Tue, Apr 13, 2021 at 04:12:42PM +0530, Anirudh Rayabharam wrote: > > The use-after-free happens when a fw_priv object has been freed but > > hasn't been removed from the pending list (pending_fw_head). The next > > time fw_load_

Re: [PATCH] software node: Allow node addition to already existing device

2021-04-14 Thread Heikki Krogerus
+Greg Sorry about that. Should I resend this? On Wed, Apr 14, 2021 at 10:54:38AM +0300, Heikki Krogerus wrote: > If the node is added to an already exiting device, the node > needs to be also linked to the device separately. > > This will make sure the reference count is kept in balance > also w

Re: [PATCH] implement flush_cache_vmap for RISC-V

2021-04-14 Thread Jiuyang Liu
On Wednesday, April 14, 2021 7:03:13 AM UTC you wrote: > Hi, > > Le 4/12/21 à 3:08 AM, Jisheng Zhang a écrit : > > Hi Jiuyang, > > > > On Mon, 12 Apr 2021 00:05:30 + Jiuyang Liu wrote: > >> This patch implements flush_cache_vmap for RISC-V, since it modifies PTE. > >> Without this patch, SFE

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

2021-04-14 Thread Catalin Marinas
On Wed, Apr 14, 2021 at 08:23:51AM +0800, Guo Ren wrote: > On Tue, Apr 13, 2021 at 5:31 PM 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:55P

Re: [PATCH] Revert "mfd: max8997: Add of_compatible to Extcon and Charger mfd_cell"

2021-04-14 Thread Lee Jones
On Mon, 05 Apr 2021, Timon Baetz wrote: > This reverts commit 9c03008da125c1007919a9186628af3cc105f526. > > commit 41a8a027f4d3 ("regulator: dt-bindings: Document charger-supply > for max8997") introduced a binding which uses a property of the max8997 > pmic node to configure charger supply, maki

Re: [PATCH] software node: Allow node addition to already existing device

2021-04-14 Thread Greg Kroah-Hartman
On Wed, Apr 14, 2021 at 12:13:35PM +0300, Heikki Krogerus wrote: > +Greg > > Sorry about that. Should I resend this? No worries, I can pick it up, thanks `b4` really is nice to use :) greg k-h

Re: [PATCH v2] kvm/selftests: Fix race condition with dirty_log_test

2021-04-14 Thread Andrew Jones
On Tue, Apr 13, 2021 at 05:36:41PM -0400, Peter Xu wrote: > This fixes a bug that can trigger with e.g. "taskset -c 0 ./dirty_log_test" or > when the testing host is very busy. > > The issue is when the vcpu thread got the dirty bit set but got preempted by > other threads _before_ the data is wri

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-14 Thread Yicong Yang
On 2021/4/13 20:26, Geert Uytterhoeven wrote: > The HiSilicon Kunpeng I2C controller is only present on HiSilicon > Kunpeng SoCs, and its driver relies on ACPI to probe for its presence. > Hence add dependencies on ARCH_HISI and ACPI, to prevent asking the user > about this driver when configuring

BUSINESS PROPOSAL

2021-04-14 Thread Zanina Ivanovna
-- Hello, Can I write you here? I have an urgent proposal. Regards, General Director, Zanina Ivanovna Lyubova LLC "PUBLISHING HOUSE" OIL AND GAS ™ 119991, Moscow, Leninskiy Avenue 65, bldg 4, office 1706. E-mail: i...@pliable-oil-gas.ru Skype: zaninaivanovna OGRN: 5067746402610 / TIN:77365452

Re: [PATCH 1/7] mm: memcontrol: fix page charging in page replacement

2021-04-14 Thread Michal Hocko
On Tue 13-04-21 14:51:47, Muchun Song wrote: > The pages aren't accounted at the root level, so do not charge the page > to the root memcg in page replacement. Although we do not display the > value (mem_cgroup_usage) so there shouldn't be any actual problem, but > there is a WARN_ON_ONCE in the pa

Re: [PATCH bpf-next v3 6/6] selftests/bpf: Add a series of tests for bpf_snprintf

2021-04-14 Thread Florent Revest
On Wed, Apr 14, 2021 at 1:21 AM Andrii Nakryiko wrote: > > On Mon, Apr 12, 2021 at 8:38 AM Florent Revest wrote: > > > > This exercises most of the format specifiers. > > > > Signed-off-by: Florent Revest > > Acked-by: Andrii Nakryiko > > --- > > As I mentioned on another patch, we probably nee

Re: [PATCH v2 1/8] cxl/mem: Move some definitions to mem.h

2021-04-14 Thread Jonathan Cameron
On Tue, 13 Apr 2021 17:42:37 -0700 Dan Williams wrote: > On Tue, Apr 13, 2021 at 5:18 PM Dan Williams wrote: > > > > On Tue, Apr 6, 2021 at 10:47 AM Jonathan Cameron > > wrote: > > > > > > On Thu, 1 Apr 2021 07:30:47 -0700 > > > Dan Williams wrote: > > > > > > > In preparation for sharing

Re: [PATCH v2 1/2] fuse: Fix possible deadlock when writing back dirty pages

2021-04-14 Thread Baolin Wang
在 2021/4/14 17:02, Miklos Szeredi 写道: On Wed, Apr 14, 2021 at 10:42 AM Baolin Wang wrote: Sorry I missed this patch before, and I've tested this patch, it seems can solve the deadlock issue I met before. Great, thanks for testing. But look at this patch in detail, I think this patch onl

[PATCH 0/3] vDPA/ifcvf: enables Intel C5000X-PL virtio-blk

2021-04-14 Thread Zhu Lingshan
This series enabled Intel FGPA SmartNIC C5000X-PL virtio-blk for vDPA. This series requires: Stefano's vdpa block patchset: https://lkml.org/lkml/2021/3/15/2113 my patchset to enable Intel FGPA SmartNIC C5000X-PL virtio-net for vDPA: https://lkml.org/lkml/2021/3/17/432 Thanks! Zhu Lingshan (3):

[PATCH 1/3] vDPA/ifcvf: deduce VIRTIO device ID when probe

2021-04-14 Thread Zhu Lingshan
This commit deduces VIRTIO device ID as device type when probe, then ifcvf_vdpa_get_device_id() can simply return the ID. ifcvf_vdpa_get_features() and ifcvf_vdpa_get_config_size() can work properly based on the device ID. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 1 + d

[PATCH 3/3] vDPA/ifcvf: get_config_size should return dev specific config size

2021-04-14 Thread Zhu Lingshan
get_config_size() should return the size based on the decected device type. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa/ifcvf/ifcvf_main.c index 9b6a

Re: [PATCH 0/4 POC] Allow executing code and syscalls in another address space

2021-04-14 Thread Benjamin Berg
On Wed, 2021-04-14 at 09:34 +0200, Johannes Berg wrote: > On Wed, 2021-04-14 at 08:22 +0100, Anton Ivanov wrote: > > On 14/04/2021 06:52, Andrei Vagin wrote: > > > We already have process_vm_readv and process_vm_writev to read and > > > write > > > to a process memory faster than we can do this wit

Re: [PATCH 2/7] mm: memcontrol: bail out early when !mm in get_mem_cgroup_from_mm

2021-04-14 Thread Michal Hocko
On Tue 13-04-21 14:51:48, Muchun Song wrote: > When mm is NULL, we do not need to hold rcu lock and call css_tryget for > the root memcg. And we also do not need to check !mm in every loop of > while. So bail out early when !mm. mem_cgroup_charge and other callers unconditionally drop the referenc

[PATCH 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA

2021-04-14 Thread Zhu Lingshan
This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-block for vDPA. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 17 - drivers/vdpa/ifcvf/ifcvf_main.c | 10 +- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/drivers/vdpa/ifcvf/ifc

Re: [PATCH v2 5/6] kunit: mptcp: adhear to KUNIT formatting standard

2021-04-14 Thread Matthieu Baerts
Hi Nico, On 14/04/2021 10:58, Nico Pache wrote: Drop 'S' from end of CONFIG_MPTCP_KUNIT_TESTS inorder to adhear to the KUNIT *_KUNIT_TEST config name format. For MPTCP, we have multiple KUnit tests: crypto and token. That's why we wrote TESTS with a S. I'm fine without S if we need to stick

Re: [PATCH 3/7] mm: memcontrol: remove the pgdata parameter of mem_cgroup_page_lruvec

2021-04-14 Thread Michal Hocko
On Tue 13-04-21 14:51:49, Muchun Song wrote: > All the callers of mem_cgroup_page_lruvec() just pass page_pgdat(page) > as the 2nd parameter to it (except isolate_migratepages_block()). But > for isolate_migratepages_block(), the page_pgdat(page) is also equal > to the local variable of @pgdat. So

Re: [PATCH] init: consolidate trap_init()

2021-04-14 Thread Jisheng Zhang
On Wed, 14 Apr 2021 11:10:42 +0200 Christophe Leroy wrote: > > Le 14/04/2021 à 10:58, Jisheng Zhang a écrit : > > Many architectures implement the trap_init() as NOP, since there is > > no such default for trap_init(), this empty stub is duplicated among > > these architectures. Provide a generi

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

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

Re: [PATCH v2 0/3] KVM: Properly account for guest CPU time

2021-04-14 Thread Wanpeng Li
On Wed, 14 Apr 2021 at 01:25, Sean Christopherson wrote: > > On Tue, Apr 13, 2021, Wanpeng Li wrote: > > The bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=209831 > > reported that the guest time remains 0 when running a while true > > loop in the guest. > > > > The commit 87fa7f3e98a131 ("x

Re: [PATCH] init: consolidate trap_init()

2021-04-14 Thread Jisheng Zhang
On Wed, 14 Apr 2021 17:27:57 +0800 Jisheng Zhang wrote: > CAUTION: Email originated externally, do not click links or open attachments > unless you recognize the sender and know the content is safe. > > > On Wed, 14 Apr 2021 11:10:42 +0200 > Christophe Leroy wrote: > > > > > Le 14/04/2021 à

Re: [PATCH v2] Documentation: dev-tools: Add Testing Overview

2021-04-14 Thread Marco Elver
On Wed, 14 Apr 2021 at 10:15, David Gow wrote: > > The kernel now has a number of testing and debugging tools, and we've > seen a bit of confusion about what the differences between them are. > > Add a basic documentation outlining the testing tools, when to use each, > and how they interact. > >

How to use "DTV_FE_CAPABILITY" command for Frontend.h of Linux DVB

2021-04-14 Thread YP WU
Hello STI maintainer, I work at mediatek company. Currently I develop TV with Linux DVB system. I would like to ask the following questions about "DTV_FE_CAPABILITY" in Frontend.h: 1. The use case for DTV_FE_CAPABILITY in DVB property command. 2. Does it have any restriction f

Re: [PATCH v5 2/3] x86/bus_lock: Handle #DB for bus lock

2021-04-14 Thread Thomas Gleixner
Fenghua, On Tue, Apr 13 2021 at 23:40, Fenghua Yu wrote: > On Mon, Apr 12, 2021 at 09:15:08AM +0200, Thomas Gleixner wrote: >> Aside of that why are you trying to make this throttling in any way >> accurate? It does not matter at all, really. Limit reached, put it to >> sleep for some time and be

Re: [PATCH 1/1] arm: topology: parse the topology from the dt

2021-04-14 Thread Dietmar Eggemann
On 13/04/2021 15:26, Ruifeng Zhang wrote: > Thanks for your review. Patch-v2 that solve the capacity issue will be > uploaded as soon as possible. : ) > > Valentin Schneider 于2021年4月13日周二 下午7:40写道: >> >> On 13/04/21 14:13, Ruifeng Zhang wrote: >>> Valentin Schneider 于2021年4月12日周一 下午11:33写道:

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

2021-04-14 Thread Fabio Aiuto
On Wed, Apr 14, 2021 at 10:26:01AM +0200, Greg KH wrote: > > - DBG_871X_SEL_NL(sel, "%10s %16s %8s %10s %11s %14s\n", > > - "TH_L2H_ini", "TH_EDCCA_HL_diff", "IGI_Base", > > - "ForceEDCCA", "AdapEn_RSSI", "IGI_LowerBound"); > > - DBG_871X_SEL_NL(sel, "0x%-8x

Re: [PATCH 4/7] mm: memcontrol: simplify lruvec_holds_page_lru_lock

2021-04-14 Thread Michal Hocko
On Tue 13-04-21 14:51:50, Muchun Song wrote: > We already have a helper lruvec_memcg() to get the memcg from lruvec, we > do not need to do it ourselves in the lruvec_holds_page_lru_lock(). So use > lruvec_memcg() instead. And if mem_cgroup_disabled() returns false, the > page_memcg(page) (the LRU

Re: [PATCH] Documentation: syscalls: add a note about ABI-agnostic types

2021-04-14 Thread Mike Rapoport
On Wed, Apr 14, 2021 at 10:46:05AM +0200, Christian Brauner wrote: > On Wed, Apr 14, 2021 at 08:14:22AM +0200, Mauro Carvalho Chehab wrote: > > Em Tue, 13 Apr 2021 21:40:20 -0700 > > Yury Norov escreveu: > > > > > Ping? > > > > > > On Fri, Apr 09, 2021 at 01:43:04PM -0700, Yury Norov wrote: > >

Re: [PATCH 7/7] mm: vmscan: remove noinline_for_stack

2021-04-14 Thread Michal Hocko
On Tue 13-04-21 14:51:53, Muchun Song wrote: > The noinline_for_stack is introduced by commit 666356297ec4 ("vmscan: > set up pagevec as late as possible in shrink_inactive_list()"), its > purpose is to delay the allocation of pagevec as late as possible to > save stack memory. But the commit 2bcf8

Re: [PATCH bpf-next v3 3/6] bpf: Add a bpf_snprintf helper

2021-04-14 Thread Florent Revest
On Wed, Apr 14, 2021 at 1:16 AM Andrii Nakryiko wrote: > On Mon, Apr 12, 2021 at 8:38 AM Florent Revest wrote: > > +static int check_bpf_snprintf_call(struct bpf_verifier_env *env, > > + struct bpf_reg_state *regs) > > +{ > > + struct bpf_reg_state *fmt_reg

Re: [PATCH v2 1/2] fuse: Fix possible deadlock when writing back dirty pages

2021-04-14 Thread Miklos Szeredi
On Wed, Apr 14, 2021 at 11:22 AM Baolin Wang wrote: > > > > 在 2021/4/14 17:02, Miklos Szeredi 写道: > > On Wed, Apr 14, 2021 at 10:42 AM Baolin Wang > > wrote: > > > >> Sorry I missed this patch before, and I've tested this patch, it seems > >> can solve the deadlock issue I met before. > > > > Gre

Re: [PATCH] bfq: silence lockdep for bfqd/ioc lock inversion

2021-04-14 Thread Jan Kara
On Thu 18-03-21 23:00:15, Khazhismel Kumykov wrote: > lockdep warns of circular locking due to inversion between > bfq_insert_requests and bfq_exit_icq. If we end freeing a request when > merging, we *may* grab an ioc->lock if that request is the last refcount > to that ioc. bfq_bio_merge also pote

Re: [PATCH bpf-next v3 1/6] bpf: Factorize bpf_trace_printk and bpf_seq_printf

2021-04-14 Thread Florent Revest
On Wed, Apr 14, 2021 at 1:01 AM Andrii Nakryiko wrote: > On Mon, Apr 12, 2021 at 8:38 AM Florent Revest wrote: > > +/* Per-cpu temp buffers which can be used by printf-like helpers for %s or > > %p > > + */ > > +#define MAX_PRINTF_BUF_LEN 512 > > + > > +struct bpf_printf_buf { > > + ch

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-04-14 Thread Borislav Petkov
On Tue, Apr 13, 2021 at 03:51:50PM -0400, Len Brown wrote: > AMX does the type of matrix multiplication that AI algorithms use. In > the unlikely event that you or one of the libraries you call are doing > the same, then you will be very happy with AMX. Otherwise, you'll > probably not use it. Whi

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