Re: [PATCH 5.10 24/40] f2fs: fix to seek incorrect data offset in inline data file

2020-12-23 Thread Greg Kroah-Hartman
On Thu, Dec 24, 2020 at 09:11:53AM +0800, Chao Yu wrote: > Hi Greg, > > Thanks a lot for helping to resend and merge the patch. :) Not a problem, glad to help out. In the future, all you need to do is give us the git commit id that needs to be backported if it applies cleanly, no need to send

Re: [PATCH v1] scsi: ufs-mediatek: Enable UFSHCI_QUIRK_SKIP_MANUAL_WB_FLUSH_CTRL

2020-12-23 Thread Stanley Chu
Hi Can, On Thu, 2020-12-24 at 10:21 +0800, Can Guo wrote: > On 2020-12-23 12:41, Can Guo wrote: > > On 2020-12-23 12:19, Stanley Chu wrote: > >> Hi Can, > >> > >> On Tue, 2020-12-22 at 19:34 +0800, Can Guo wrote: > >>> On 2020-12-22 15:29, Stanley Chu wrote: > >>> > Flush during hibern8 is

[PATCH v3 2/2] power: supply: mt6360_charger: add MT6360 charger support

2020-12-23 Thread Gene Chen
From: Gene Chen Add basic support for the battery charger for MT6360 PMIC Signed-off-by: Gene Chen --- drivers/power/supply/Kconfig | 10 + drivers/power/supply/Makefile |1 + drivers/power/supply/mt6360_charger.c | 1054 + 3 files

[PATCH v3 1/2] dt-bindings: power: Add bindings document for Charger support on MT6360 PMIC

2020-12-23 Thread Gene Chen
From: Gene Chen Add bindings document for Charger support on MT6360 PMIC Signed-off-by: Gene Chen Reviewed-by: Rob Herring --- .../bindings/power/supply/mt6360_charger.yaml | 48 ++ 1 file changed, 48 insertions(+) create mode 100644

[PATCH v3 0/2] power: supply: mt6360_charger: add MT6360 charger support

2020-12-23 Thread Gene Chen
This patch series add MT6360 Charger support contains driver and binding document Gene Chen (2) dt-bindings: power: Add bindings document for Charger support on MT6360 PMIC power: supply: mt6360_charger: add MT6360 charger support

Re: [PATCH] staging: ralink-gdma: Fixed blank line coding style issue

2020-12-23 Thread Greg KH
On Wed, Dec 23, 2020 at 09:22:30PM +0100, Ayoub Soussi wrote: > Fixed coding style issue. > > Signed-off-by: Ayoub Soussi > --- > drivers/staging/ralink-gdma/ralink-gdma.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/staging/ralink-gdma/ralink-gdma.c >

[PATCH] proc_sysclt: fix oops caused by incorrect command parameters.

2020-12-23 Thread Xiaoming Ni
The process_sysctl_arg() does not check whether val is empty before invoking strlen(val). If the command line parameter () is incorrectly configured and val is empty, oops is triggered. For example, "hung_task_panic=1" is incorrectly written as "hung_task_panic". log: Kernel command

Re: [PATCH v6 11/12] mfd: bd9571mwv: Make the driver more generic

2020-12-23 Thread Lee Jones
On Thu, 24 Dec 2020, Yoshihiro Shimoda wrote: > Hi Lee, > > > From: Lee Jones, Sent: Thursday, December 24, 2020 12:39 AM > > On Wed, 23 Dec 2020, Yoshihiro Shimoda wrote: > > > From: Khiem Nguyen > > > > > > Since the driver supports BD9571MWV PMIC only, this patch makes > > > the functions

Re: [PATCH] bpf: fix: address of local auto-variable assigned to a function parameter.

2020-12-23 Thread Yonghong Song
On 12/23/20 11:01 PM, YANG LI wrote: Assigning local variable txq to the outputting parameter xdp->txq is not safe, txq will be released after the end of the function call. Then the result of using xdp is unpredictable. Fix this error by defining the struct xdp_txq_info in function

Re: [PATCH v4 01/11] dt-bindings: usb: convert usb-device.txt to YAML schema

2020-12-23 Thread Chunfeng Yun
On Mon, 2020-12-21 at 12:09 -0700, Rob Herring wrote: > On Wed, Dec 16, 2020 at 05:30:02PM +0800, Chunfeng Yun wrote: > > Convert usb-device.txt to YAML schema usb-device.yaml > > > > Signed-off-by: Chunfeng Yun > > --- > > v4: no changes, update dependent series: > >

Re: [PATCH 2/3] usb: xhci-mtk: fix UAS issue by XHCI_BROKEN_STREAMS quirk

2020-12-23 Thread Chunfeng Yun
On Wed, 2020-12-16 at 19:43 -0800, Rosen Penev wrote: > On Wed, Dec 16, 2020 at 6:29 PM Chunfeng Yun > wrote: > > > > On Wed, 2020-12-16 at 20:28 +0800, Nicolas Boichat wrote: > > > On Wed, Dec 16, 2020 at 7:53 PM Chunfeng Yun > > > wrote: > > > > > > > > The 0.96 xHCI controller on some

Re: [PATCH v23 11/15] tools: Introduce a minimal user-space tool for DAMON

2020-12-23 Thread SeongJae Park
On Wed, 23 Dec 2020 14:56:10 -0800 Shakeel Butt wrote: > On Wed, Dec 23, 2020 at 10:38 AM SeongJae Park wrote: > > > [snip] > > > > I will drop this patch from the next version of this patchset, because this > > is > > not the essential part but could only make the code review time consuming.

Re: [PATCH v23 05/15] mm/damon: Implement primitives for the virtual memory address spaces

2020-12-23 Thread SeongJae Park
On Wed, 23 Dec 2020 14:54:02 -0800 Shakeel Butt wrote: > On Wed, Dec 23, 2020 at 8:47 AM SeongJae Park wrote: > > > [snip] > > > [snip] > > > > + > > > > +static bool damon_va_young(struct mm_struct *mm, unsigned long addr, > > > > + unsigned long *page_sz) > > > > +{ > >

[PATCH v7 01/12] mfd: bd9571mwv: Use devm_mfd_add_devices()

2020-12-23 Thread Yoshihiro Shimoda
To remove mfd devices when unload this driver, should use devm_mfd_add_devices() instead. Fixes: d3ea21272094 ("mfd: Add ROHM BD9571MWV-M MFD PMIC driver") Signed-off-by: Yoshihiro Shimoda Acked-for-MFD-by: Lee Jones Reviewed-by: Geert Uytterhoeven Reviewed-by: Matti Vaittinen ---

[PATCH v7 03/12] mfd: rohm-generic: Add BD9571 and BD9574

2020-12-23 Thread Yoshihiro Shimoda
Add chip IDs for BD9571MWV and BD9574MWF. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Matti Vaittinen Acked-for-MFD-by: Lee Jones --- include/linux/mfd/rohm-generic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mfd/rohm-generic.h b/include/linux/mfd/rohm-generic.h

[PATCH v7 04/12] regulator: bd9571mwv: rid of using struct bd9571mwv

2020-12-23 Thread Yoshihiro Shimoda
To simplify this driver, use dev_get_regmap() and rid of using struct bd9571mwv. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Matti Vaittinen --- drivers/regulator/bd9571mwv-regulator.c | 49 + 1 file changed, 26 insertions(+), 23 deletions(-) diff --git

[PATCH v7 07/12] gpio: bd9571mwv: rid of using struct bd9571mwv

2020-12-23 Thread Yoshihiro Shimoda
To simplify this driver, use dev_get_regmap() and rid of using struct bd9571mwv. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Matti Vaittinen --- drivers/gpio/gpio-bd9571mwv.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git

[PATCH v7 08/12] gpio: bd9571mwv: Add BD9574MWF support

2020-12-23 Thread Yoshihiro Shimoda
Add support for BD9574MWF which is similar chip with BD9571MWV. Note that BD9574MWF has additional features "RECOV_GPOUT", "FREQSEL" and "RTC_IN", but supports GPIO function only. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Matti Vaittinen --- drivers/gpio/gpio-bd9571mwv.c | 6 -- 1 file

[PATCH v7 12/12] mfd: bd9571mwv: Add support for BD9574MWF

2020-12-23 Thread Yoshihiro Shimoda
From: Khiem Nguyen The new PMIC BD9574MWF inherits features from BD9571MWV. Add the support of new PMIC to existing bd9571mwv driver. Signed-off-by: Khiem Nguyen Co-developed-by: Yoshihiro Shimoda Signed-off-by: Yoshihiro Shimoda Reviewed-by: Matti Vaittinen Acked-for-MFD-by: Lee Jones ---

[PATCH v7 10/12] mfd: bd9571mwv: Use devm_regmap_add_irq_chip()

2020-12-23 Thread Yoshihiro Shimoda
Use dev_regmap_add_irq_chip() to simplify the code. Signed-off-by: Yoshihiro Shimoda Acked-for-MFD-by: Lee Jones Reviewed-by: Matti Vaittinen Reviewed-by: Geert Uytterhoeven --- drivers/mfd/bd9571mwv.c | 27 ++- 1 file changed, 6 insertions(+), 21 deletions(-) diff

[PATCH v7 11/12] mfd: bd9571mwv: Make the driver more generic

2020-12-23 Thread Yoshihiro Shimoda
From: Khiem Nguyen Since the driver supports BD9571MWV PMIC only, this patch makes the functions and data structure become more generic so that it can support other PMIC variants as well. Also remove printing part name which Lee Jones suggested. Signed-off-by: Khiem Nguyen Co-developed-by:

[PATCH v7 09/12] mfd: bd9571mwv: Use the SPDX license identifier

2020-12-23 Thread Yoshihiro Shimoda
Use the SPDX license identifier instead of a local description. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven Acked-for-MFD-by: Lee Jones --- drivers/mfd/bd9571mwv.c | 10 +- include/linux/mfd/bd9571mwv.h | 10 +- 2 files changed, 2 insertions(+), 18

[PATCH v7 02/12] dt-bindings: mfd: bd9571mwv: Document BD9574MWF

2020-12-23 Thread Yoshihiro Shimoda
Document other similar specification chip BD9574MWF. Signed-off-by: Yoshihiro Shimoda --- Documentation/devicetree/bindings/mfd/bd9571mwv.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/mfd/bd9571mwv.txt

[PATCH v7 06/12] gpio: bd9571mwv: Use the SPDX license identifier

2020-12-23 Thread Yoshihiro Shimoda
Use the SPDX license identifier instead of a local description. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven --- drivers/gpio/gpio-bd9571mwv.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/gpio/gpio-bd9571mwv.c

[PATCH v7 05/12] regulator: bd9571mwv: Add BD9574MWF support

2020-12-23 Thread Yoshihiro Shimoda
Add support for BD9574MWF which is similar chip with BD9571MWV. Note that we don't support voltage rails VD{09,18,25,33} by this driver on BD9574. The VD09 voltage could be read from PMIC but that is not supported by this commit. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Matti Vaittinen ---

[PATCH v7 00/12] treewide: bd9571mwv: Add support for BD9574MWF

2020-12-23 Thread Yoshihiro Shimoda
Add BD9574MWF support into bd9571mwv gpio, mfd and regulator drivers. Latest Ebisu-4D boards has this chip instead of BD9571MWV so that we need this patch series to detect this chip at runtime. Note that the patch [1/12] is a bug-fix patch for mfd driver. Changes from v6: - Remove "struct

Re: [PATCH v23 01/15] mm: Introduce Data Access MONitor (DAMON)

2020-12-23 Thread SeongJae Park
On Wed, 23 Dec 2020 14:49:57 -0800 Shakeel Butt wrote: > On Wed, Dec 23, 2020 at 8:34 AM SeongJae Park wrote: > [snip] > > > Overall the patch looks good to me. Two concerns I have are if we > > > should damon_callback here or with the real user and the regions part > > > of primitive

[PATCH] bpf: fix: address of local auto-variable assigned to a function parameter.

2020-12-23 Thread YANG LI
Assigning local variable txq to the outputting parameter xdp->txq is not safe, txq will be released after the end of the function call. Then the result of using xdp is unpredictable. Fix this error by defining the struct xdp_txq_info in function dev_map_run_prog() as a static type.

Re: [PATCH V4 1/2] mfd: qcom-spmi-pmic: Convert bindings to .yaml format

2020-12-23 Thread kgunda
On 2020-12-20 05:17, Stephen Boyd wrote: Quoting Kiran Gunda (2020-12-18 00:14:51) Convert the bindings from .txt to .yaml format. Signed-off-by: Kiran Gunda --- .../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 - .../devicetree/bindings/mfd/qcom,spmi-pmic.yaml| 127

Re: [PATCH V4 1/2] mfd: qcom-spmi-pmic: Convert bindings to .yaml format

2020-12-23 Thread kgunda
On 2020-12-21 14:20, Lee Jones wrote: On Fri, 18 Dec 2020, Kiran Gunda wrote: Convert the bindings from .txt to .yaml format. Signed-off-by: Kiran Gunda --- .../devicetree/bindings/mfd/qcom,spmi-pmic.txt | 80 - .../devicetree/bindings/mfd/qcom,spmi-pmic.yaml| 127

Re: [PATCH v2 28/48] soc/tegra: Introduce core power domain driver

2020-12-23 Thread Viresh Kumar
On 23-12-20, 23:37, Dmitry Osipenko wrote: > 23.12.2020 08:57, Viresh Kumar пишет: > > What's wrong with getting the regulator in the driver as well ? Apart from > > the > > OPP core ? > > The voltage syncing should be done for each consumer regulator > individually [1]. > > Secondly, regulator

RE: [PATCH v6 11/12] mfd: bd9571mwv: Make the driver more generic

2020-12-23 Thread Yoshihiro Shimoda
Hi Lee, > From: Lee Jones, Sent: Thursday, December 24, 2020 12:39 AM > On Wed, 23 Dec 2020, Yoshihiro Shimoda wrote: > > From: Khiem Nguyen > > > > Since the driver supports BD9571MWV PMIC only, this patch makes > > the functions and data structure become more generic so that > > it can support

Re: [PATCH v2 11/48] opp: Add dev_pm_opp_find_level_ceil()

2020-12-23 Thread Viresh Kumar
On 23-12-20, 23:37, Dmitry Osipenko wrote: > 23.12.2020 07:19, Viresh Kumar пишет: > > On 22-12-20, 22:15, Dmitry Osipenko wrote: > >> 22.12.2020 09:42, Viresh Kumar пишет: > >>> On 17-12-20, 21:06, Dmitry Osipenko wrote: > Add a ceil version of the dev_pm_opp_find_level(). It's handy to have

Re: [PATCH v1 0/6] no-copy bvec

2020-12-23 Thread Christoph Hellwig
On Wed, Dec 23, 2020 at 08:32:45PM +, Pavel Begunkov wrote: > On 23/12/2020 20:23, Douglas Gilbert wrote: > > On 2020-12-23 11:04 a.m., James Bottomley wrote: > >> On Wed, 2020-12-23 at 15:51 +, Christoph Hellwig wrote: > >>> On Wed, Dec 23, 2020 at 12:52:59PM +, Pavel Begunkov wrote:

[PATCH] iommu/io-pgtable-arm: Allow non-coherent masters to use system cache

2020-12-23 Thread Sai Prakash Ranjan
commit ecd7274fb4cd ("iommu: Remove unused IOMMU_SYS_CACHE_ONLY flag") removed unused IOMMU_SYS_CACHE_ONLY prot flag and along with it went the memory type setting required for the non-coherent masters to use system cache. Now that system cache support for GPU is added, we will need to mark the

Re: [PATCH] clocksource: clint: Avoid remove __iomem in get_cycles_hi()

2020-12-23 Thread Christoph Hellwig
On Wed, Dec 23, 2020 at 06:59:34PM -0800, Palmer Dabbelt wrote: > Aren't we OK with lines longer than 80 characters now? Or was that some other > project? checkpatch doesn't complain, which I guess is why I didn't notice, > so > hopefully that means I'm not crazy (though I guess the commit

Re: [PATCH v2 19/48] opp: Fix adding OPP entries in a wrong order if rate is unavailable

2020-12-23 Thread Viresh Kumar
On 23-12-20, 23:36, Dmitry Osipenko wrote: > 23.12.2020 07:34, Viresh Kumar пишет: > > On 22-12-20, 22:19, Dmitry Osipenko wrote: > >> 22.12.2020 12:12, Viresh Kumar пишет: > >>> rate will be 0 for both the OPPs here if rate_not_available is true and > >>> so this > >>> change shouldn't be

drivers/clocksource/timer-clint.c:72:24: sparse: sparse: cast removes address space '__iomem' of expression

2020-12-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 58cf05f597b03a8212d9ecf2c79ee046d3ee8ad9 commit: 2ac6795fcc085e8d03649f1bbd0d70aaff612cad clocksource/drivers: Add CLINT timer driver date: 4 months ago config: riscv-randconfig-s031-20201221 (attached as

Re: [PATCH] net/mlx5e: remove h from printk format specifier

2020-12-23 Thread Leon Romanovsky
On Wed, Dec 23, 2020 at 11:45:12AM -0800, t...@redhat.com wrote: > From: Tom Rix > > This change fixes the checkpatch warning described in this commit > commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of > unnecessary %h[xudi] and %hh[xudi]") > > Standard integer promotion is

Re: [PATCH -next] mlx5: use DEFINE_MUTEX (and mutex_init() had been too late)

2020-12-23 Thread Leon Romanovsky
On Wed, Dec 23, 2020 at 10:12:23PM +0800, Zheng Yongjun wrote: > Signed-off-by: Zheng Yongjun > --- > drivers/infiniband/hw/mlx5/main.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) It is unclear what you wanted to achieve, because the commit message is missing and subject doesn't

Re: [PATCH] bcache: set pdev_set_uuid before scond loop iteration

2020-12-23 Thread Coly Li
On 12/24/20 9:53 AM, Yi Li wrote: > There is no need to reassign pdev_set_uuid in the second loop iteration, > so move it to the place before second loop. > > Signed-off-by: Yi Li Added into my for-next directory. Thanks. Coly Li > --- > drivers/md/bcache/super.c | 2 +- > 1 file changed, 1

Re: [ANNOUNCE] Git v2.30.0-rc2

2020-12-23 Thread Christian Couder
Most of the suggestions below are found by GMail. On Thu, Dec 24, 2020 at 12:08 AM Junio C Hamano wrote: > > A release candidate Git v2.30.0-rc2 is now available for testing > at the usual places. It is comprised of 19 non-merge commits since Maybe: s/is comprised of/comprises/ > v2.30.0-rc1,

[PATCH v5 4/5] crypto: hisilicon/hpre - add 'ECDH' algorithm

2020-12-23 Thread Meng Yu
1. Add some new 'ECDH' curve parameter definitions to 'include/crypto/ecc_curve_defs.h', and reorder ECC 'Curves IDs' in 'include/crypto/ecdh.h'; 2. Enable 'ECDH' algorithm in Kunpeng 930. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- crypto/ecc.c| 4

[PATCH v5 3/5] crypto: expose elliptic curve parameters as Crypto APIs

2020-12-23 Thread Meng Yu
Move elliptic curves definition to 'include/crypto/ecc_curve_defs.h', so all can use it, Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- crypto/ecc.c| 1 - crypto/ecc.h| 37 + crypto/ecc_curve_defs.h | 57

[PATCH v5 1/5] crypto: hisilicon/hpre - add some updates to adapt to Kunpeng 930

2020-12-23 Thread Meng Yu
From: Hui Tang HPRE of Kunpeng 930 is updated on cluster numbers and configurations of Kunpeng 920 HPRE, so we try to update this driver to make it running okay on both chips. Signed-off-by: Hui Tang Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- drivers/crypto/hisilicon/hpre/hpre.h

[PATCH v5 5/5] crypto: hisilicon/hpre - add 'CURVE25519' algorithm

2020-12-23 Thread Meng Yu
1. Add 'CURVE25519' curve parameter definition to 'include/crypto/ecc_curve_defs.h'; 2. Enable 'CURVE25519' algorithm in Kunpeng 930. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu Reported-by: kernel test robot --- drivers/crypto/hisilicon/Kconfig| 1 +

[PATCH v5 2/5] crypto: hisilicon/hpre - add algorithm type

2020-12-23 Thread Meng Yu
Algorithm type is brought in to get hardware HPRE queue to support different algorithms. Signed-off-by: Meng Yu Reviewed-by: Zaibo Xu --- drivers/crypto/hisilicon/hpre/hpre.h| 10 +- drivers/crypto/hisilicon/hpre/hpre_crypto.c | 12 ++--

[PATCH v5 0/5] add ECDH and CURVE25519 algorithms support for Kunpeng 930

2020-12-23 Thread Meng Yu
1. Move elliptic curve parameter definitions out to "include/crypto"; 2. Add some new elliptic curve parameters definitions, and reorder ECC 'Curves IDs'; 3. Add ECDH and CURVE25519 algorithms support for Kunpeng 930. These patches depend on: [v2,1/6] crypto: hisilicon/hpre - add version adapt

[PATCH V6 00/13] Add driver for dvfsrc, support for active state of scpsys

2020-12-23 Thread Henry Chen
This series is based on v5.10-rc1. The patchsets add support for MediaTek hardware module named DVFSRC (dynamic voltage and frequency scaling resource collector). The DVFSRC is a HW module which is used to collect all the requests from both software and hardware and turn into the decision of

[PATCH V6 04/13] arm64: dts: mt8183: add dvfsrc related nodes

2020-12-23 Thread Henry Chen
Enable dvfsrc on mt8183 platform. Signed-off-by: Henry Chen --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 9cfd961..06ef8e0 100644 ---

[PATCH V6 12/13] arm64: dts: mt8183: add dvfsrc regulator nodes

2020-12-23 Thread Henry Chen
Add dvfsrc regulator nodes which is for MT8183-based platforms Signed-off-by: Henry Chen --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index

[PATCH V6 10/13] arm64: dts: mt8192: add dvfsrc related nodes

2020-12-23 Thread Henry Chen
Add DDR EMI provider dictating dram interconnect bus performance found on MT8192-based platforms Signed-off-by: Henry Chen --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi

[PATCH V6 08/13] interconnect: mediatek: Add interconnect provider driver

2020-12-23 Thread Henry Chen
Introduce Mediatek MT6873/MT8183/MT8192 specific provider driver using the interconnect framework. ICC provider ICC Nodes - |CPU | |--- |VPU | - | |- |

[PATCH V6 03/13] soc: mediatek: add driver for dvfsrc support

2020-12-23 Thread Henry Chen
Add dvfsrc driver for MT6873/MT8183/MT8192 Signed-off-by: Henry Chen --- drivers/soc/mediatek/Kconfig| 12 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-dvfsrc.c | 538 include/linux/soc/mediatek/mtk_dvfsrc.h |

[PATCH V6 01/13] dt-bindings: soc: Add dvfsrc driver bindings

2020-12-23 Thread Henry Chen
Document the binding for enabling dvfsrc on MediaTek SoC. Signed-off-by: Henry Chen --- .../devicetree/bindings/soc/mediatek/dvfsrc.yaml | 68 ++ 1 file changed, 68 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/mediatek/dvfsrc.yaml diff --git

[PATCH V6 06/13] dt-bindings: interconnect: add MT8183 interconnect dt-bindings

2020-12-23 Thread Henry Chen
Add interconnect provider dt-bindings for MT8183. Signed-off-by: Henry Chen --- include/dt-bindings/interconnect/mtk,mt8183-emi.h | 21 + 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/interconnect/mtk,mt8183-emi.h diff --git

[PATCH V6 09/13] arm64: dts: mt8183: add dvfsrc related nodes

2020-12-23 Thread Henry Chen
Add DDR EMI provider dictating dram interconnect bus performance found on MT8183-based platforms Signed-off-by: Henry Chen --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi

[PATCH V6 02/13] soc: mediatek: add header for mediatek SIP interface

2020-12-23 Thread Henry Chen
From: Arvin Wang Add a header to collect SIPs and add one SIP call to initialize power management hardware for the SIP interface defined to access the SPM handling vcore voltage and ddr rate changes on mt8183 (and most likely later socs). Signed-off-by: Arvin Wang ---

RE: [PATCH] PCI: dwc: Change size to u64 for EP outbound iATU

2020-12-23 Thread Shradha Todi
> From: Bjorn Helgaas > Subject: Re: [PATCH] PCI: dwc: Change size to u64 for EP outbound iATU > > On Fri, Dec 18, 2020 at 09:04:08PM +0530, Shradha Todi wrote: > > Since outbound iATU permits size to be greater than 4GB for which the > > support is also available, allow EP function to send u64

RE: [PATCH v2] PCI: endpoint: Fix NULL pointer dereference for ->get_features()

2020-12-23 Thread Shradha Todi
> From: Bjorn Helgaas > Subject: Re: [PATCH v2] PCI: endpoint: Fix NULL pointer dereference for - > >get_features() > > On Fri, Dec 18, 2020 at 09:15:16PM +0530, Shradha Todi wrote: > > get_features ops of pci_epc_ops may return NULL, causing NULL pointer > > dereference in pci_epf_test_bind

Re: [PATCH v2] usb: host: xhci-plat: fix support for XHCI_SKIP_PHY_INIT quirk

2020-12-23 Thread Peter Chen
On 20-12-23 17:18:47, Pali Rohár wrote: > Currently init_quirk callbacks for xhci platform drivers are called > xhci_plat_setup() function which is called after chip reset completes. > It happens in the middle of the usb_add_hcd() function. > > But XHCI_SKIP_PHY_INIT quirk is checked in the

Re: [PATCH] usb: host: xhci: mvebu: make USB 3.0 PHY optional for Armada 3720

2020-12-23 Thread Peter Chen
On 20-12-23 17:24:03, Pali Rohár wrote: > Older ATF does not provide SMC call for USB 3.0 phy power on functionality > and therefore initialization of xhci-hcd is failing when older version of > ATF is used. In this case phy_power_on() function returns -EOPNOTSUPP. > > [3.108467]

RE: [PATCH] PCI: dwc: Add upper limit address for outbound iATU

2020-12-23 Thread Shradha Todi
> From: Rob Herring > Subject: Re: [PATCH] PCI: dwc: Add upper limit address for outbound iATU > > On Sun, Dec 20, 2020 at 6:56 PM Shradha Todi > wrote: > > > > The size parameter is unsigned long type which can accept size > 4GB. > > In that case, the upper limit address must be programmed.

drivers/clocksource/timer-clint.c:72:24: sparse: sparse: cast removes address space '__iomem' of expression

2020-12-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 58cf05f597b03a8212d9ecf2c79ee046d3ee8ad9 commit: 2ac6795fcc085e8d03649f1bbd0d70aaff612cad clocksource/drivers: Add CLINT timer driver date: 4 months ago config: riscv-randconfig-s031-20201221 (attached as

[PATCH] fs: delete repeated words in comments

2020-12-23 Thread Randy Dunlap
++-- fs/exec.c |4 ++-- fs/fhandle.c |2 +- fs/pipe.c |2 +- 6 files changed, 9 insertions(+), 9 deletions(-) --- linux-next-20201223.orig/fs/block_dev.c +++ linux-next-20201223/fs/block_dev.c @@ -1260,7 +1260,7 @@ rescan: return ret; } /* - * Only exported

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-23 Thread Nadav Amit
> On Dec 23, 2020, at 8:01 PM, Andrea Arcangeli wrote: > >> On Wed, Dec 23, 2020 at 07:09:10PM -0800, Nadav Amit wrote: >>> Perhaps holding some small bitmap based on part of the deferred flushed >>> pages (e.g., bits 12-17 of the address or some other kind of a single >>> hash-function

Re: [PATCH v5] s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated

2020-12-23 Thread Halil Pasic
On Tue, 22 Dec 2020 20:20:13 -0500 Tony Krowiak wrote: > The vfio_ap device driver registers a group notifier with VFIO when the > file descriptor for a VFIO mediated device for a KVM guest is opened to > receive notification that the KVM pointer is set (VFIO_GROUP_NOTIFY_SET_KVM > event). When

Re: [PATCH] x86/entry: use STB_GLOBAL for register restoring thunk

2020-12-23 Thread Josh Poimboeuf
On Wed, Dec 23, 2020 at 03:21:26PM -0800, Nick Desaulniers wrote: > Arnd found a randconfig that produces the warning: > > arch/x86/entry/thunk_64.o: warning: objtool: missing symbol for insn at > offset 0x3e > > when building with LLVM_IAS=1 (use Clang's integrated assembler). Josh > notes: >

drivers/clocksource/timer-clint.c:72:24: sparse: sparse: cast removes address space '__iomem' of expression

2020-12-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 58cf05f597b03a8212d9ecf2c79ee046d3ee8ad9 commit: 2ac6795fcc085e8d03649f1bbd0d70aaff612cad clocksource/drivers: Add CLINT timer driver date: 4 months ago config: riscv-randconfig-s031-20201221 (attached as

[PATCH] fs: Fix freeze_bdev()/thaw_bdev() accounting of bd_fsfreeze_sb

2020-12-23 Thread Satya Tangirala
freeze/thaw_bdev() currently use bdev->bd_fsfreeze_count to infer whether or not bdev->bd_fsfreeze_sb is valid (it's valid iff bd_fsfreeze_count is non-zero). thaw_bdev() doesn't nullify bd_fsfreeze_sb. But this means a freeze_bdev() call followed by a thaw_bdev() call can leave bd_fsfreeze_sb

Re: update.c:undefined reference to `irq_work_queue'

2020-12-23 Thread Paul E. McKenney
On Wed, Dec 23, 2020 at 12:06:07PM -0800, Randy Dunlap wrote: > On 12/21/20 9:03 PM, Paul E. McKenney wrote: > > On Tue, Dec 22, 2020 at 11:24:22AM +0800, kernel test robot wrote: > > > tree: > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > > head:

Re: [PATCH] riscv: return -ENOSYS for syscall -1

2020-12-23 Thread Tycho Andersen
On Wed, Dec 23, 2020 at 06:54:43PM -0800, Palmer Dabbelt wrote: > On Wed, 23 Dec 2020 00:24:04 PST (-0800), Christoph Hellwig wrote: > > On Tue, Dec 22, 2020 at 09:22:19AM -0700, Tycho Andersen wrote: > > > On Mon, Dec 21, 2020 at 11:52:00PM +0100, Andreas Schwab wrote: > > > > Properly return

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-23 Thread Nadav Amit
> On Dec 23, 2020, at 7:34 PM, Yu Zhao wrote: > > On Wed, Dec 23, 2020 at 07:09:10PM -0800, Nadav Amit wrote: >>> On Dec 23, 2020, at 6:00 PM, Andrea Arcangeli wrote: >>> >>> On Wed, Dec 23, 2020 at 05:21:43PM -0800, Andy Lutomirski wrote: I don’t love this as a long term fix. AFAICT we

[GIT PULL] RISC-V Fixes for 5.11-rc1 (or rc2, if it's too late)

2020-12-23 Thread Palmer Dabbelt
merged tag 'riscv-for-linus-5.11-mw0' The following changes since commit e2ae634014d3a8839a99f8897b3f6346a133a33b: Merge tag 'riscv-for-linus-5.11-mw0' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux (2020-12-18 10:43:07 -0800) are available in the Git repository at:

[PATCH] genirq: Limit irq_calc_affinity_vectors to housekeeping CPUs

2020-12-23 Thread Liu Chao
Replace the cpumask used in irq_calc_affinity_vectors from all possible CPUs to only housekeeping CPUs. When we have isolated CPUs used by real-time tasks, IRQs will be move to housekeeping CPUs. If there are too many IRQ vectors, moving the all to housekeeping CPUs may exceed per-CPU vector

Re: [PATCH v2 15/48] opp: Support set_opp() customization without requiring to use regulators

2020-12-23 Thread Viresh Kumar
On 23-12-20, 23:38, Dmitry Osipenko wrote: > Well, there is no "same structure", the opp_table->set_opp_data is NULL > there. Right, I saw that yesterday. What I meant was that we need to start allocating the structure for this case now. -- viresh

Re: [PATCH 1/2] mm: Allow architectures to request 'old' entries when prefaulting

2020-12-23 Thread Hugh Dickins
On Tue, 22 Dec 2020, Kirill A. Shutemov wrote: > > Updated patch is below. > > From 0ec1bc1fe95587350ac4f4c866d6482383740b36 Mon Sep 17 00:00:00 2001 > From: "Kirill A. Shutemov" > Date: Sat, 19 Dec 2020 15:19:23 +0300 > Subject: [PATCH] mm: Cleanup faultaround and finish_fault() codepaths > >

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-23 Thread Andrea Arcangeli
> On Wed, Dec 23, 2020 at 07:09:10PM -0800, Nadav Amit wrote: > > I think there are other cases in which Andy’s concern is relevant > > (MADV_PAGEOUT). I didn't try to figure how it would help MADV_PAGEOUT. MADV_PAGEOUT sounds cool feature, but maybe it'd need a way to flush the invalidates out

[no subject]

2020-12-23 Thread Steve Lenka Thomson
Greetings, We are pleased to inform you that an amount of £500,000.00 (GBP) has been donated and given, gifted to you and your family by Steve & Lenka Thomson, who won the EuroMillions jackpot, lottery of £105,100,701.90 Euro Millions, part of this donation, it is for you and your

[PATCH] HID: google: Get HID report on probe to confirm tablet switch state

2020-12-23 Thread Nicolas Boichat
This forces reading the base folded status anytime the device is probed. Signed-off-by: Nicolas Boichat --- Instead of all this manual parsing, it'd be easier to just call: hid_hw_request(hdev, report, HID_REQ_GET_REPORT); However, that fails silently as hdev->driver_input_lock is held during

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-23 Thread Yu Zhao
On Wed, Dec 23, 2020 at 07:09:10PM -0800, Nadav Amit wrote: > > On Dec 23, 2020, at 6:00 PM, Andrea Arcangeli wrote: > > > > On Wed, Dec 23, 2020 at 05:21:43PM -0800, Andy Lutomirski wrote: > >> I don’t love this as a long term fix. AFAICT we can have > >> mm_tlb_flush_pending set for quite a

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-23 Thread Andrea Arcangeli
On Wed, Dec 23, 2020 at 09:00:26PM -0500, Andrea Arcangeli wrote: > One other near zero cost improvement easy to add if this would be "if > (vma->vm_flags & (VM_SOFTDIRTY|VM_UFFD_WP))" and it could be made The next worry then is if UFFDIO_WRITEPROTECT is very large then there would be a flood of

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-23 Thread Nadav Amit
> On Dec 23, 2020, at 7:09 PM, Nadav Amit wrote: > >> On Dec 23, 2020, at 6:00 PM, Andrea Arcangeli wrote: >> >> On Wed, Dec 23, 2020 at 05:21:43PM -0800, Andy Lutomirski wrote: >>> I don’t love this as a long term fix. AFAICT we can have >>> mm_tlb_flush_pending set for quite a while —

[PATCH resend] dt-bindings: mfd: mediatek: Add bindings for MT6360 PMIC

2020-12-23 Thread Gene Chen
From: Gene Chen Add bindings for MT6360 PMIC Signed-off-by: Gene Chen --- Documentation/devicetree/bindings/mfd/mt6360.yaml | 69 +++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.yaml diff --git

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

2020-12-23 Thread Jyoti Bhayana
This change provides ARM SCMI Protocol based IIO device. This driver provides support for Accelerometer and Gyroscope using new SCMI Sensor Protocol defined by the upcoming SCMIv3.0 ARM specification Signed-off-by: Jyoti Bhayana --- MAINTAINERS| 6 +

[RFC PATCH v2 0/1] Adding support for IIO SCMI based sensors

2020-12-23 Thread Jyoti Bhayana
Hi, This series adds support for ARM SCMI Protocol based IIO Device. This driver provides support for Accelerometer and Gyroscope sensor using new SCMI Sensor Protocol defined by the upcoming SCMIv3.0 ARM specification, which is available at https://developer.arm.com/documentation/den0056/c/

Re: [PATCH] powerpc/mm: Limit allocation of SWIOTLB on server machines

2020-12-23 Thread Ram Pai
On Wed, Dec 23, 2020 at 09:06:01PM -0300, Thiago Jung Bauermann wrote: > > Hi Ram, > > Thanks for reviewing this patch. > > Ram Pai writes: > > > On Fri, Dec 18, 2020 at 03:21:03AM -0300, Thiago Jung Bauermann wrote: > >> On server-class POWER machines, we don't need the SWIOTLB unless we're

Re: [External] Re: mmotm 2020-12-23-16-15 uploaded (mm/vmstat.c)

2020-12-23 Thread Muchun Song
On Thu, Dec 24, 2020 at 10:57 AM Randy Dunlap wrote: > > On 12/23/20 4:16 PM, a...@linux-foundation.org wrote: > > The mm-of-the-moment snapshot 2020-12-23-16-15 has been uploaded to > > > >https://www.ozlabs.org/~akpm/mmotm/ > > > > mmotm-readme.txt says > > > > README for mm-of-the-moment:

Re: [PATCH] mm/userfaultfd: fix memory corruption due to writeprotect

2020-12-23 Thread Nadav Amit
> On Dec 23, 2020, at 6:00 PM, Andrea Arcangeli wrote: > > On Wed, Dec 23, 2020 at 05:21:43PM -0800, Andy Lutomirski wrote: >> I don’t love this as a long term fix. AFAICT we can have >> mm_tlb_flush_pending set for quite a while — mprotect seems like it can wait >> in IO while splitting a

Re: [PATCH v2] docs/zh_CN: Improve Cinese transolation quality.

2020-12-23 Thread Alex Shi
在 2020/12/21 下午8:34, Ran Wang 写道: > Hi Alex, > > > On Monday, December 21, 2020 3:52 PM, Alex Shi wrote: > >> 在 2020/12/19 上午11:42, Ran Wang 写道: >>> Hi Jonathan, >>> >>> On Tuesday, December 8, 2020 11:00 PM Jonathan Corbet wrote: >>>   On Tue,  8 Dec 2020 21:16:04 +0800 Ran

[PATCH] io_uring: simplify io_remove_personalities()

2020-12-23 Thread Yejune Deng
The function io_remove_personalities() is very similar to io_unregister_personality(),so implement io_remove_personalities() calling io_unregister_personality(). Signed-off-by: Yejune Deng --- fs/io_uring.c | 28 +++- 1 file changed, 11 insertions(+), 17 deletions(-)

Re: [PATCH] clocksource: clint: Avoid remove __iomem in get_cycles_hi()

2020-12-23 Thread Palmer Dabbelt
On Wed, 23 Dec 2020 00:23:30 PST (-0800), Christoph Hellwig wrote: On Mon, Dec 21, 2020 at 09:32:30PM -0800, Palmer Dabbelt wrote: From: Palmer Dabbelt This cast loses the __iomem qualifier from clint_timer_val, which triggers an sparse warning. I'm not a native speaker, but the subject

Re: mmotm 2020-12-23-16-15 uploaded (mm/vmstat.c)

2020-12-23 Thread Randy Dunlap
On 12/23/20 4:16 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2020-12-23-16-15 has been uploaded to > >https://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > https://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of

Re: [PATCH] riscv: return -ENOSYS for syscall -1

2020-12-23 Thread Palmer Dabbelt
On Wed, 23 Dec 2020 00:24:04 PST (-0800), Christoph Hellwig wrote: On Tue, Dec 22, 2020 at 09:22:19AM -0700, Tycho Andersen wrote: On Mon, Dec 21, 2020 at 11:52:00PM +0100, Andreas Schwab wrote: > Properly return -ENOSYS for syscall -1 instead of leaving the return value > uninitialized. This

Re: [f2fs-dev] [PATCH] f2fs: handle unallocated section and zone on pinned/atgc

2020-12-23 Thread Chao Yu
On 2020/12/24 4:02, Jaegeuk Kim wrote: If we have large section/zone, unallocated segment makes them corrupted. E.g., - Pinned file: -1 119304647 119304647 - ATGC data: -1 119304647 119304647 Signed-off-by: Jaegeuk Kim Reviewed-by: Chao Yu Thanks,

Re: [f2fs-dev] [PATCH -next] f2fs: Replace expression with offsetof()

2020-12-23 Thread Chao Yu
On 2020/12/22 21:34, Zheng Yongjun wrote: Use the existing offsetof() macro instead of duplicating code. Signed-off-by: Zheng Yongjun Reviewed-by: Chao Yu Thanks,

Re: [External] Re: [PATCH v5 2/7] mm: memcontrol: convert NR_ANON_THPS account to pages

2020-12-23 Thread Muchun Song
On Thu, Dec 24, 2020 at 6:08 AM Shakeel Butt wrote: > > On Wed, Dec 16, 2020 at 7:45 PM Muchun Song wrote: > > > > Currently we use struct per_cpu_nodestat to cache the vmstat > > counters, which leads to inaccurate statistics expecially THP > > *especially Thanks. > > > vmstat counters. In

[PATCH v2 3/3] dt-bindings: arm: sunxi: document orig PineTab DT as sample

2020-12-23 Thread Icenowy Zheng
As the original PineTab DT (which uses sun50i-a64-pinetab name) is only for development samples, document this. Signed-off-by: Icenowy Zheng --- Documentation/devicetree/bindings/arm/sunxi.yaml | 2 +- arch/arm64/boot/dts/allwinner/sun50i-a64-pinetab.dts | 2 +- 2 files changed, 2

Re: [External] Re: [PATCH v5 7/7] mm: memcontrol: make the slab calculation consistent

2020-12-23 Thread Muchun Song
On Thu, Dec 24, 2020 at 5:21 AM Shakeel Butt wrote: > > On Wed, Dec 16, 2020 at 7:46 PM Muchun Song wrote: > > > > Although the ratio of the slab is one, we also should read the ratio > > from the related memory_stats instead of hard-coding. And the local > > variable of size is already the

[PATCH v2 2/3] arm64: allwinner: dts: a64: add DT for Early Adopter's PineTab

2020-12-23 Thread Icenowy Zheng
PineTabs since Early Adopter batch will use a new LCD panel. Add device tree for PineTab with the new panel. Signed-off-by: Icenowy Zheng --- arch/arm64/boot/dts/allwinner/Makefile| 1 + .../sun50i-a64-pinetab-early-adopter.dts | 26 +++ 2 files changed, 27

  1   2   3   4   5   6   7   8   >