Re: [PATCH 2/2] Makefile: Only specify '--prefix=' when building with clang + GNU as

2021-03-02 Thread Nick Desaulniers
On Tue, Mar 2, 2021 at 2:09 PM Nick Desaulniers wrote: > > On Tue, Mar 2, 2021 at 2:02 PM Fangrui Song wrote: > > > > On 2021-03-02, Nathan Chancellor wrote: > > >When building with LLVM_IAS=1, there is no point to specifying > > >'--prefix=' because that flag is only used to find the cross assem

Re: [PATCH] gpio: regmap: move struct gpio_regmap definition

2021-03-02 Thread Linus Walleij
On Tue, Mar 2, 2021 at 7:14 PM Álvaro Fernández Rojas wrote: > I'm trying to add support for bcm63xx pin controllers, and Linus > suggested that I could use gpio regmap instead of adding duplicated code. > However, I need to access gpio_chip inside gpio_regmap to call > pinctrl_add_gpio_range() w

[PATCH] bus: mhi: core: Add missing checks for MMIO register entries

2021-03-02 Thread Bhaumik Bhatt
As per documentation, fields marked as (required) in an MHI controller structure need to be populated by the controller driver before calling mhi_register_controller(). Ensure all required fields are present in the controller before proceeding with the registration. Signed-off-by: Bhaumik Bhatt -

Re: [PATCH 4.9 000/134] 4.9.259-rc3 review

2021-03-02 Thread Florian Fainelli
On 3/2/21 11:27 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.259 release. > There are 134 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses shou

[PATCH] v4l2-ctrls: Fix h264 hierarchical coding type menu ctrl

2021-03-02 Thread Stanimir Varbanov
Add a name of the menu and fill control type. Signed-off-by: Stanimir Varbanov --- drivers/media/v4l2-core/v4l2-ctrls.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index 016cf6204cbb..5d99e2294335 100644

[PATCH] bus: mhi: core: Remove pre_init flag used for power purposes

2021-03-02 Thread Bhaumik Bhatt
Some controllers can choose to skip preparation for power up. In that case, device context is initialized based on the pre_init flag not being set during mhi_prepare_for_power_up(). There is no reason MHI host driver should maintain and provide controllers with two separate paths for preparing MHI.

Re: [PATCH v1 0/3] driver core: Set fw_devlink=on take II

2021-03-02 Thread Saravana Kannan
On Tue, Mar 2, 2021 at 2:24 PM Michael Walle wrote: > > Am 2021-03-02 22:11, schrieb Saravana Kannan: > > I think Patch 1 should fix [4] without [5]. Can you test the series > > please? > > Mh, I'm on latest linux-next (next-20210302) and I've applied

[PATCH 0/8] input: Documentation: corrections to Doc/input/ files

2021-03-02 Thread Randy Dunlap
Update several Documentation/input/ files for wording, punctutation, struct info, and file names. Cc: Dmitry Torokhov Cc: linux-in...@vger.kernel.org Cc: Jonathan Corbet Cc: linux-...@vger.kernel.org [PATCH 1/8] input: Documentation: corrections for input.rst [PATCH 2/8] input: Documentation:

Re: [PATCH v1 0/3] driver core: Set fw_devlink=on take II

2021-03-02 Thread Saravana Kannan
gt; > > Mh, I'm on latest linux-next (next-20210302) and I've applied patch 3/3 > > and > > reverted commit 7007b745a508 ("PCI: layerscape: Convert to > > builtin_platform_driver()"). I'd assumed that PCIe shouldn't be working, > > right? B

Re: linux-kernel janitorial RFP: Mark static arrays as const

2021-03-02 Thread Bernd Petrovitsch
Hi all! On 02/03/2021 18:42, Joe Perches wrote: [...] > - For instance: (head -10 of the git grep for file statics) > > drivers/accessibility/speakup/keyhelp.c:18:static u_short masks[] = { 32, 16, > 8, 4, 2, 1 }; > drivers/accessibility/speakup/keyhelp.c:26:static u_char funcvals[]

Re: linux-next: build warning after merge of the fscache tree

2021-03-02 Thread David Howells
Stephen Rothwell wrote: > After merging the fscache tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > fs/afs/file.c: In function 'afs_req_issue_op': > fs/afs/file.c:291:6: warning: unused variable 'ret' [-Wunused-variable] > 291 | int ret; > | ^~~ >

Re: linux-next: build failure after merge of the powerpc-fixes tree

2021-03-02 Thread Michael Ellerman
Uwe Kleine-König writes: > Hello, > > On 3/2/21 3:09 AM, Michael Ellerman wrote: >> Stephen Rothwell writes: >>> Hi all, >>> >>> After merging the powerpc-fixes tree, today's linux-next build (powerpc >>> allyesconfig) failed like this: >>> >>> drivers/net/ethernet/ibm/ibmvnic.c:5399:13: error: c

[PATCH 7/8] input: Documentation: corrections for input-programming.rst

2021-03-02 Thread Randy Dunlap
Drop a repeated word. Fix punctuation of "eg." to "e.g." Fix punctuation of "ie" to "i.e." Add hyphentation to non-zero. Capitalize PM (for Power Management). Capitalize ID (for Identifier). Change "," in a run-on sentence to ";". Signed-off-by: Randy Dunlap Cc: Dmitry Torokhov Cc: linux-in...@v

Re: [PATCH 1/4] soc: mediatek: pm-domains: Add a meaningful power domain name

2021-03-02 Thread Hsin-Yi Wang
On Fri, Feb 26, 2021 at 1:50 AM Enric Balletbo i Serra wrote: > > Add the power domains names to the power domain struct so we > have meaningful name for every power domain. This also removes the > following debugfs error message. > > [2.242068] debugfs: Directory 'power-domain' with parent

Re: [PATCH 4/4] soc: mediatek: pm-domains: Add a power domain names for mt8167

2021-03-02 Thread Hsin-Yi Wang
On Fri, Feb 26, 2021 at 1:50 AM Enric Balletbo i Serra wrote: > > Add the power domains names for the mt8167 SoC. > > Fixes: 207f13b419a6 ("soc: mediatek: pm-domains: Add support for mt8167") > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Hsin-Yi Wang > --- > > drivers/soc/mediatek/mt8167

Re: [PATCH 2/4] soc: mediatek: pm-domains: Add a power domain names for mt8183

2021-03-02 Thread Hsin-Yi Wang
On Fri, Feb 26, 2021 at 1:50 AM Enric Balletbo i Serra wrote: > > Add the power domains names for the mt8183 SoC. This removes the debugfs > errors like the following: > > debugfs: Directory 'power-domain' with parent 'pm_genpd' already present! > > Fixes: eb9fa767fbe1 ("soc: mediatek: pm-domain

Re: [PATCH 3/4] soc: mediatek: pm-domains: Add a power domain names for mt8192

2021-03-02 Thread Hsin-Yi Wang
On Fri, Feb 26, 2021 at 1:50 AM Enric Balletbo i Serra wrote: > > Add the power domains names for the mt8192 SoC. > > Fixes: a49d5e7a89d6 ("soc: mediatek: pm-domains: Add support for mt8192") > Signed-off-by: Enric Balletbo i Serra Reviewed-by: Hsin-Yi Wang > --- > > drivers/soc/mediatek/mt8192

Re: Question about the "EXPERIMENTAL" tag for dax in XFS

2021-03-02 Thread Dan Williams
On Mon, Mar 1, 2021 at 6:42 PM Dave Chinner wrote: [..] > We do not need a DAX specific mechanism to tell us "DAX device > gone", we need a generic block device interface that tells us "range > of block device is gone". This is the crux of the disagreement. The block_device is going away *and* th

Re: [External] Re: [PATCH 2/5] mm: memcontrol: make page_memcg{_rcu} only applicable for non-kmem page

2021-03-02 Thread Shakeel Butt
On Mon, Mar 1, 2021 at 7:03 PM Muchun Song wrote: > > On Tue, Mar 2, 2021 at 2:11 AM Shakeel Butt wrote: > > > > On Sun, Feb 28, 2021 at 10:25 PM Muchun Song > > wrote: > > > > > > We want to reuse the obj_cgroup APIs to reparent the kmem pages when > > > the memcg offlined. If we do this, we s

Re: [PATCH] scripts: Fix incremental build header re-generation

2021-03-02 Thread Masahiro Yamada
On Mon, Mar 1, 2021 at 11:23 PM Jeevan Shriram wrote: > > compile.h and autoconf.h are ignored when checking headers sha as they > are always re-generated for every kernel compilation. However, > these two headers are packaged into kheaders tar. During incremental > compilation of kernel, kheaders

[PATCH] include/linux/slab.h: use for() and left shift to calculate

2021-03-02 Thread Yejune Deng
use for() and left shift to calculate the value that compared with size. Signed-off-by: Yejune Deng --- include/linux/slab.h | 32 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/include/linux/slab.h b/include/linux/slab.h index 7ae604076767..0411f

Re: [RFC net-next] net: dsa: rtl8366rb: support bridge offloading

2021-03-02 Thread DENG Qingfang
On Mon, Mar 1, 2021 at 9:55 PM Linus Walleij wrote: > > BTW where did you find this register? It's not in any of my > vendor driver code dumps. DD-WRT https://svn.dd-wrt.com/browser/src/linux/universal/linux-4.14/drivers/net/ethernet/ag7100/RTL8366RB_DRIVER/rtl8368s_reg.h#L581 > > Curious! > > Y

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Viresh Kumar
On 02-03-21, 10:21, Jie Deng wrote: > On 2021/3/1 19:54, Viresh Kumar wrote: > That's my original proposal. I used to mirror this interface with "struct > i2c_msg". > > But the design philosophy of virtio TC is that VIRTIO devices are not > specific to Linux > so the specs design should avoid the

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Viresh Kumar
On 01-03-21, 14:10, Andy Shevchenko wrote: > On Mon, Mar 01, 2021 at 02:09:25PM +0200, Andy Shevchenko wrote: > > On Mon, Mar 01, 2021 at 05:24:41PM +0530, Viresh Kumar wrote: > > > On 01-03-21, 14:41, Jie Deng wrote: > > > > +/** > > > > + * struct virtio_i2c_req - the virtio I2C request structure

Re: [PATCH 4/5] mm: memcontrol: move remote memcg charging APIs to CONFIG_MEMCG_KMEM

2021-03-02 Thread Shakeel Butt
On Mon, Mar 1, 2021 at 5:16 PM Roman Gushchin wrote: > > On Mon, Mar 01, 2021 at 02:22:26PM +0800, Muchun Song wrote: > > The remote memcg charing APIs is a mechanism to charge kernel memory > > to a given memcg. So we can move the infrastructure to the scope of > > the CONFIG_MEMCG_KMEM. > > This

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Viresh Kumar
On 01-03-21, 16:46, Arnd Bergmann wrote: > But the driver does not support this at all: the sglist always has three > members as Viresh says: outhdr, msgbuf and inhdr. It then uses a > bounce buffer for the actual data transfer, and this always goes either > one way or the other. Yes and if the dr

[PATCH V9 02/12] soc: mediatek: add header for mediatek SIP interface

2021-03-02 Thread Henry Chen
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: Henry Chen Signed-off-by: Arvin Wang --- include/linux/soc

[PATCH] net: ethernet: mtk-star-emac: fix wrong unmap in RX handling

2021-03-02 Thread Biao Huang
mtk_star_dma_unmap_rx() should unmap the dma_addr of old skb rather than that of new skb. Assign new_dma_addr to desc_data.dma_addr after all handling of old skb ends to avoid unexpected receive side error. Fixes: f96e9641e92b ("net: ethernet: mtk-star-emac: fix error path in RX handling") Signed

[PATCH V9 01/12] dt-bindings: soc: Add dvfsrc driver bindings

2021-03-02 Thread Henry Chen
Document the binding for enabling dvfsrc on MediaTek SoC. Signed-off-by: Henry Chen --- .../devicetree/bindings/soc/mediatek/dvfsrc.yaml | 67 ++ include/dt-bindings/interconnect/mtk,mt8183-emi.h | 21 +++ 2 files changed, 88 insertions(+) create mode 100644 Documenta

[PATCH V9 04/12] soc: mediatek: add support for mt6873

2021-03-02 Thread Henry Chen
add support for mt6873 Signed-off-by: Henry Chen --- drivers/soc/mediatek/mtk-dvfsrc.c | 114 ++ 1 file changed, 114 insertions(+) diff --git a/drivers/soc/mediatek/mtk-dvfsrc.c b/drivers/soc/mediatek/mtk-dvfsrc.c index c0c6d91..a422680 100644 --- a/drivers/

[PATCH V9 07/12] dt-bindings: interconnect: add MT6873 interconnect dt-bindings

2021-03-02 Thread Henry Chen
Add interconnect provider dt-bindings for MT6873. Signed-off-by: Henry Chen --- include/dt-bindings/interconnect/mtk,mt6873-emi.h | 41 +++ 1 file changed, 41 insertions(+) create mode 100644 include/dt-bindings/interconnect/mtk,mt6873-emi.h diff --git a/include/dt-bindings

Re: [PATCH v3 2/2] powerpc: Remove remaining parts of oprofile

2021-03-02 Thread Viresh Kumar
On 01-03-21, 12:09, Christophe Leroy wrote: > Commit 9850b6c69356 ("arch: powerpc: Remove oprofile") removed > oprofile. > > Remove all remaining parts of it. > > Signed-off-by: Christophe Leroy > --- > arch/powerpc/include/asm/cputable.h | 3 -- > arch/powerpc/kernel/cputable.c

[PATCH V9 12/12] arm64: dts: mt8192: add dvfsrc regulator nodes

2021-03-02 Thread Henry Chen
Add dvfsrc regulator nodes which is for MT8192-based platforms Signed-off-by: Henry Chen --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 81d7d05..1cf9

Re: [PATCH v4 2/3] media: uapi: Add VP9 stateless decoder controls

2021-03-02 Thread Alexandre Courbot
On Tue, Mar 2, 2021 at 3:43 AM Nicolas Dufresne wrote: > > Le dimanche 28 février 2021 à 15:13 +0900, Alexandre Courbot a écrit : > > Hi Nicolas, > > > > On Thu, Feb 25, 2021 at 6:08 AM Nicolas Dufresne > > wrote: > > > > > > Le jeudi 10 septembre 2020 à 15:04 +0900, Alexandre Courbot a écrit : >

[PATCH V9 09/12] arm64: dts: mt8183: add dvfsrc related nodes

2021-03-02 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/mt8183.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/m

[PATCH V9 00/13] Add driver for dvfsrc, support for interconnect

2021-03-02 Thread Henry Chen
This series is based on v5.11-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 minim

[PATCH V9 03/12] soc: mediatek: add driver for dvfsrc support

2021-03-02 Thread Henry Chen
Add dvfsrc driver for MT6873/MT8183/MT8192 Signed-off-by: Henry Chen --- drivers/soc/mediatek/Kconfig| 11 + drivers/soc/mediatek/Makefile | 1 + drivers/soc/mediatek/mtk-dvfsrc.c | 421 include/linux/soc/mediatek/mtk_dvfsrc.h | 35

[PATCH V9 11/12] arm64: dts: mt8183: add dvfsrc regulator nodes

2021-03-02 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 e862078..9fef

[PATCH V9 05/12] arm64: dts: mt8183: add dvfsrc related nodes

2021-03-02 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 5b782a4..062afe8 100644 --- a/arch/arm64/bo

[PATCH] fs: fat: fix spelling typo of values

2021-03-02 Thread dingsenjie
From: dingsenjie vaules -> values Signed-off-by: dingsenjie --- fs/fat/fatent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fat/fatent.c b/fs/fat/fatent.c index f7e3304..860e884 100644 --- a/fs/fat/fatent.c +++ b/fs/fat/fatent.c @@ -771,7 +771,7 @@ int fat_trim_fs(st

[PATCH] fs: Improve eventpoll logging to stop indicting timerfd

2021-03-02 Thread Manish Varma
timerfd doesn't create any wakelocks, but eventpoll can. When it does, it names them after the underlying file descriptor, and since all timerfd file descriptors are named "[timerfd]" (which saves memory on systems like desktops with potentially many timerfd instances), all wakesources created as

[PATCH V9 08/12] interconnect: mediatek: Add interconnect provider driver

2021-03-02 Thread Henry Chen
Introduce Mediatek MT6873/MT8183/MT8192 specific provider driver using the interconnect framework. ICC provider ICC Nodes - |CPU | |--- |VPU | - | |- | |DRA

[PATCH V9 10/12] arm64: dts: mt8192: add dvfsrc related nodes

2021-03-02 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/mt8192.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/m

[PATCH V9 06/12] arm64: dts: mt8192: add dvfsrc related nodes

2021-03-02 Thread Henry Chen
Enable dvfsrc on mt8192 platform. Change-Id: I5c5cf1b0b22358034af5b482b6e46553398591e6 --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index 8252143..dbefc0d

Re: [External] Re: [PATCH 2/5] mm: memcontrol: make page_memcg{_rcu} only applicable for non-kmem page

2021-03-02 Thread Muchun Song
On Tue, Mar 2, 2021 at 11:36 AM Shakeel Butt wrote: > > On Mon, Mar 1, 2021 at 7:03 PM Muchun Song wrote: > > > > On Tue, Mar 2, 2021 at 2:11 AM Shakeel Butt wrote: > > > > > > On Sun, Feb 28, 2021 at 10:25 PM Muchun Song > > > wrote: > > > > > > > > We want to reuse the obj_cgroup APIs to rep

[PATCH] arm64: dts: qcom: msm8996: Add usb3 interrupts

2021-03-02 Thread Yassine Oudjana
Add hs_phy_irq and ss_phy_irq to usb3. Signed-off-by: Yassine Oudjana --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 7eef07e73e25..b4b8d6305a05 100644 --- a/arc

Re: [External] Re: [PATCH 2/5] mm: memcontrol: make page_memcg{_rcu} only applicable for non-kmem page

2021-03-02 Thread Muchun Song
On Tue, Mar 2, 2021 at 3:09 AM Johannes Weiner wrote: > > Muchun, can you please reduce the CC list to mm/memcg folks only for > the next submission? I think probably 80% of the current recipients > don't care ;-) At first, I just used scripts/get_maintainer.pl to get the CC list. I will reduce t

Re: [PATCH] include/linux/slab.h: use for() and left shift to calculate

2021-03-02 Thread Matthew Wilcox
On Tue, Mar 02, 2021 at 11:39:08AM +0800, Yejune Deng wrote: > use for() and left shift to calculate the value that compared with size. https://lore.kernel.org/linux-mm/339dbb54-b4bc-78e2-e3f0-986814e86...@suse.cz/

Re: [PATCH v2 2/2] memblock: do not start bottom-up allocations with kernel_end

2021-03-02 Thread Roman Gushchin
On Mon, Mar 01, 2021 at 11:45:42AM +0200, Mike Rapoport wrote: > On Sun, Feb 28, 2021 at 07:50:45PM -0800, Florian Fainelli wrote: > > Hi Serge, > > > > On 2/28/2021 3:08 PM, Serge Semin wrote: > > > Hi folks, > > > What you've got here seems a more complicated problem than it > > > could original

[PATCH] HID: google: add don USB id

2021-03-02 Thread Shou-Chieh Hsu
Add 1 additional hammer-like device. Signed-off-by: Shou-Chieh Hsu --- drivers/hid/hid-google-hammer.c | 2 ++ drivers/hid/hid-ids.h | 1 + 2 files changed, 3 insertions(+) diff --git a/drivers/hid/hid-google-hammer.c b/drivers/hid/hid-google-hammer.c index d9319622da44..e60c31dd05ff

Re: [RFC net-next] net: dsa: rtl8366rb: support bridge offloading

2021-03-02 Thread DENG Qingfang
On Mon, Mar 1, 2021 at 9:48 PM Linus Walleij wrote: > With my minor changes: > Tested-by: Linus Walleij How about using a mutex lock in port_bridge_{join,leave} ? In my opinion all functions that access multiple registers should be synchronized. > Yours, > Linus Walleij

[RFC PATCH v1 4/6] badblocks: improve badblocks_clear() for multiple ranges handling

2021-03-02 Thread Coly Li
With the foundamental ideas and helper routines from badblocks_set() improvement, clearing bad block for multiple ranges is much simpler. With a similar idea from badblocks_set() improvement, this patch simplifies bad block range clearing into 5 situations. No matter how complicated the clearing c

[RFC PATCH v1 1/6] badblocks: add more helper structure and routines in badblocks.h

2021-03-02 Thread Coly Li
This patch adds the following helper structure and routines into badblocks.h, - struct bad_context This structure is used in improved badblocks code for bad table iteration. - BB_END() The macro to culculate end LBA of a bad range record from bad table. - badblocks_full() and badblocks_empt

[PATCH] i2c: mpc: Make use of i2c_recover_bus()

2021-03-02 Thread Chris Packham
Move the existing calls of mpc_i2c_fixup() to a recovery function registered via bus_recovery_info. This makes it more obvious that recovery is supported and allows for a future where recover is triggered by the i2c core. Signed-off-by: Chris Packham --- drivers/i2c/busses/i2c-mpc.c | 18 +++

Re: [PATCH V8 0/4] dt: Add fdtoverlay rule and statically build unittest

2021-03-02 Thread Viresh Kumar
On 01-03-21, 21:14, Frank Rowand wrote: > Hi Viresh, > > On 3/1/21 12:56 AM, Viresh Kumar wrote: > > On 12-02-21, 16:48, Viresh Kumar wrote: > >> Hi, > >> > >> This patchset adds a generic rule for applying overlays using fdtoverlay > >> tool and then updates unittests to get built statically usin

Re: [PATCH 4/5] mm: memcontrol: move remote memcg charging APIs to CONFIG_MEMCG_KMEM

2021-03-02 Thread Roman Gushchin
On Mon, Mar 01, 2021 at 07:43:27PM -0800, Shakeel Butt wrote: > On Mon, Mar 1, 2021 at 5:16 PM Roman Gushchin wrote: > > > > On Mon, Mar 01, 2021 at 02:22:26PM +0800, Muchun Song wrote: > > > The remote memcg charing APIs is a mechanism to charge kernel memory > > > to a given memcg. So we can mov

[RFC PATCH v1 0/6] badblocks improvement for multiple bad block ranges

2021-03-02 Thread Coly Li
This is the first completed effort to improve badblocks code to handle multiple ranges in bad block table. There is neither in-memory nor on-disk format change in this series, all existing API and data structures are consistent. This series just only improve the code algorithm to handle more corne

Re: [PATCH v4] RISC-V: Use SBI SRST extension when available

2021-03-02 Thread Anup Patel
On Mon, Mar 1, 2021 at 5:29 PM Anup Patel wrote: > > The SBI SRST extension provides a standard way to poweroff and > reboot the system irrespective to whether Linux RISC-V S-mode > is running natively (HS-mode) or inside Guest/VM (VS-mode). > > The SBI SRST extension is available in latest SBI v0

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Viresh Kumar
On 01-03-21, 16:19, Arnd Bergmann wrote: > On Mon, Mar 1, 2021 at 7:41 AM Jie Deng wrote: > > > --- /dev/null > > +++ b/include/uapi/linux/virtio_i2c.h > > @@ -0,0 +1,56 @@ > > +/* SPDX-License-Identifier: GPL-2.0-or-later WITH Linux-syscall-note */ > > +/* > > + * Definitions for virtio I2C Adpt

Re: [RFC PATCH 10/10] vhost/vdpa: return configuration bytes read and written to user space

2021-03-02 Thread Jason Wang
On 2021/2/16 5:44 下午, Stefano Garzarella wrote: vdpa_get_config() and vdpa_set_config() now return the amount of bytes read and written, so let's return them to the user space. We also modify vhost_vdpa_config_validate() to return 0 (bytes read or written) instead of an error, when the buffer

Re: [PATCH v2 2/2] memblock: do not start bottom-up allocations with kernel_end

2021-03-02 Thread Florian Fainelli
On 3/1/2021 1:22 AM, Serge Semin wrote: > On Sun, Feb 28, 2021 at 07:50:45PM -0800, Florian Fainelli wrote: >> Hi Serge, >> >> On 2/28/2021 3:08 PM, Serge Semin wrote: >>> Hi folks, >>> What you've got here seems a more complicated problem than it >>> could originally look like. Please, see my c

Re: [RFC PATCH 01/10] vdpa: add get_config_size callback in vdpa_config_ops

2021-03-02 Thread Jason Wang
On 2021/2/16 5:44 下午, Stefano Garzarella wrote: This new callback is used to get the size of the configuration space of vDPA devices. Signed-off-by: Stefano Garzarella --- include/linux/vdpa.h | 4 drivers/vdpa/ifcvf/ifcvf_main.c | 6 ++ drivers/vdpa/mlx5/net/mlx5_

Re: [External] Re: [PATCH 4/5] mm: memcontrol: move remote memcg charging APIs to CONFIG_MEMCG_KMEM

2021-03-02 Thread Muchun Song
On Tue, Mar 2, 2021 at 9:15 AM Roman Gushchin wrote: > > On Mon, Mar 01, 2021 at 02:22:26PM +0800, Muchun Song wrote: > > The remote memcg charing APIs is a mechanism to charge kernel memory > > to a given memcg. So we can move the infrastructure to the scope of > > the CONFIG_MEMCG_KMEM. > > This

Re: [f2fs-dev] [PATCH 3/3] f2fs: check if swapfile is section-alligned

2021-03-02 Thread Jaegeuk Kim
On 03/01, Chao Yu wrote: > Hi Jianan, Merged 1/3 and 2/3, so please post v2 on 3/3. Thanks, > > On 2021/2/27 20:02, Huang Jianan via Linux-f2fs-devel wrote: > > If the swapfile isn't created by pin and fallocate, it cann't be > > Typo: > > can't > > > guaranteed section-aligned, so it may be

[PATCH] drm: meson_drv add shutdown function

2021-03-02 Thread Artem Lapkin
Problem: random stucks on reboot stage about 1/20 stuck/reboots // debug kernel log [4.496660] reboot: kernel restart prepare CMD:(null) [4.498114] meson_ee_pwrc c883c000.system-controller:power-controller: shutdown begin [4.503949] meson_ee_pwrc c883c000.system-controller:power-contro

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Viresh Kumar
On 02-03-21, 09:31, Viresh Kumar wrote: > On 01-03-21, 16:19, Arnd Bergmann wrote: > > On Mon, Mar 1, 2021 at 7:41 AM Jie Deng wrote: > > > > > --- /dev/null > > > +++ b/include/uapi/linux/virtio_i2c.h > > > @@ -0,0 +1,56 @@ > > > +/* SPDX-License-Identifier: GPL-2.0-or-later WITH Linux-syscall-n

[PATCH] MIPS: BMIPS: Reserve exception base to prevent corruption

2021-03-02 Thread Florian Fainelli
BMIPS is one of the few platforms that do change the exception base. After commit 2dcb39645441 ("memblock: do not start bottom-up allocations with kernel_end") we started seeing BMIPS boards fail to boot with the built-in FDT being corrupted. Before the cited commit, early allocations would be in

Re: [PATCH 1/2] MIPS: Remove KVM_GUEST support

2021-03-02 Thread Huacai Chen
Reviewed-by: Huacai Chen On Tue, Mar 2, 2021 at 10:27 AM Jiaxun Yang wrote: > > > > 在 2021/3/1 下午11:29, Thomas Bogendoerfer 写道: > > KVM_GUEST is broken and unmaintained, so let's remove it. > > > > Signed-off-by: Thomas Bogendoerfer > > Reviewed-by: Jiaxun Yang > > I'll prepare a patch for KVM

Re: [External] Re: [PATCH 5/5] mm: memcontrol: use object cgroup for remote memory cgroup charging

2021-03-02 Thread Muchun Song
On Tue, Mar 2, 2021 at 9:29 AM Roman Gushchin wrote: > > On Mon, Mar 01, 2021 at 02:22:27PM +0800, Muchun Song wrote: > > We spent a lot of energy to make slab accounting do not hold a refcount > > to memory cgroup, so the dying cgroup can be freed as soon as possible > > on cgroup offlined. > > >

[RFC PATCH v1 2/6] badblocks: add helper routines for badblock ranges handling

2021-03-02 Thread Coly Li
This patch adds several helper routines to improve badblock ranges handling. These helper routines will be used later in the improved version of badblocks_set()/badblocks_clear()/badblocks_check(). - Helpers prev_by_hint() and prev_badblocks() are used to find the bad range from bad table which

[RFC PATCH v1 5/6] badblocks: improve badblocks_check() for multiple ranges handling

2021-03-02 Thread Coly Li
This patch rewrites badblocks_check() with similar coding style as _badblocks_set() and _badblocks_clear(). The only difference is bad blocks checking may handle multiple ranges in bad tables now. If a checking range covers multiple bad blocks range in bad block table, like the following condition

[RFC PATCH v1 3/6] badblocks: improvement badblocks_set() for multiple ranges handling

2021-03-02 Thread Coly Li
Recently I received a bug report that current badblocks code does not properly handle multiple ranges. For example, badblocks_set(bb, 32, 1, true); badblocks_set(bb, 34, 1, true); badblocks_set(bb, 36, 1, true); badblocks_set(bb, 32, 12, true); Then indeed badblocks_

Re: [PATCH] mm,hwpoison: return -EBUSY when page already poisoned

2021-03-02 Thread Aili Yao
On Fri, 26 Feb 2021 09:58:37 -0800 "Luck, Tony" wrote: > On Fri, Feb 26, 2021 at 10:52:50AM +0800, Aili Yao wrote: > > Hi naoya,Oscar,david: > > > > > > > We could use some negative value (error code) to report the reported > > > > case, > > > > then as you mentioned above, some callers nee

Re: [f2fs-dev] [PATCH 3/3] f2fs: check if swapfile is section-alligned

2021-03-02 Thread Jaegeuk Kim
On 03/01, Jaegeuk Kim wrote: > On 03/01, Chao Yu wrote: > > Hi Jianan, > > Merged 1/3 and 2/3, so please post v2 on 3/3. NVM. Found v2. > > Thanks, > > > > > On 2021/2/27 20:02, Huang Jianan via Linux-f2fs-devel wrote: > > > If the swapfile isn't created by pin and fallocate, it cann't be > >

Re: [PATCH] perf diff: Don't crash on freeing errno-session

2021-03-02 Thread Namhyung Kim
Hello, On Tue, Mar 2, 2021 at 11:35 AM Dmitry Safonov wrote: > > __cmd_diff() sets result of perf_session__new() to d->session. > In case of failure, it's errno and perf-diff may crash with: > failed to open perf.data: Permission denied > Failed to open perf.data > Segmentation fault (core dumped

Re: [PATCH] net: 9p: free what was emitted when read count is 0

2021-03-02 Thread Dominique Martinet
Jisheng Zhang wrote on Mon, Mar 01, 2021 at 11:01:57AM +0800: > Per my understanding of iov_iter, we need to call iov_iter_advance() > even when the read out count is 0. I believe we can see this common style > in other fs. I'm not sure where you see this style, but I don't see exceptions for 0-si

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Viresh Kumar
On 01-03-21, 14:41, Jie Deng wrote: > +static int virtio_i2c_send_reqs(struct virtqueue *vq, > + struct virtio_i2c_req *reqs, > + struct i2c_msg *msgs, int nr) > +{ > + struct scatterlist *sgs[3], out_hdr, msg_buf, in_hdr; > + int i, o

[RFC PATCH v1 6/6] badblocks: switch to the improved badblock handling code

2021-03-02 Thread Coly Li
This patch removes old code of badblocks_set(), badblocks_clear() and badblocks_check(), and make them as wrappers to call _badblocks_set(), _badblocks_clear() and _badblocks_check(). By this change now the badblock handing switch to the improved algorithm in _badblocks_set(), _badblocks_clear()

undefined reference to `cpu_sa110_suspend_size'

2021-03-02 Thread kernel test robot
date: 9 months ago config: arm-randconfig-m031-20210302 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross

[PATCH] x86/sgx: Replace section->init_laundry_list with a temp list

2021-03-02 Thread Jarkko Sakkinen
Build a local laundry list in sgx_init(), and transfer its ownsership to ksgxd for sanitization, thus getting rid of useless member in struct sgx_epc_section. Signed-off-by: Jarkko Sakkinen --- arch/x86/kernel/cpu/sgx/main.c | 64 ++ arch/x86/kernel/cpu/sgx/sgx.h

[PATCH v4 0/2] Add FITRIM ioctl support for exFAT filesystem

2021-03-02 Thread Hyeongseok Kim
This is for adding FITRIM ioctl functionality to exFAT filesystem. Firstly, because the fstrim is long operation, introduce bitmap_lock to narrow the lock range to prevent read operation stall. After that, add generic ioctl function and FITRIM handler. Changelog = v3->v4: - Introduce bitma

[PATCH v4 1/2] exfat: introduce bitmap_lock for cluster bitmap access

2021-03-02 Thread Hyeongseok Kim
s_lock which is for protecting concurrent access of file operations is too huge for cluster bitmap protection, so introduce a new bitmap_lock to narrow the lock range if only need to access cluster bitmap. Signed-off-by: Hyeongseok Kim --- fs/exfat/exfat_fs.h | 1 + fs/exfat/fatent.c | 37 +++

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Jie Deng
On 2021/3/2 12:22, Viresh Kumar wrote: On 02-03-21, 09:31, Viresh Kumar wrote: On 01-03-21, 16:19, Arnd Bergmann wrote: On Mon, Mar 1, 2021 at 7:41 AM Jie Deng wrote: --- /dev/null +++ b/include/uapi/linux/virtio_i2c.h @@ -0,0 +1,56 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later WITH Lin

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Viresh Kumar
On 02-03-21, 13:06, Jie Deng wrote: > Yeah. Actually, the backend only needs "struct virtio_i2c_out_hdr out_hdr" > and "struct virtio_i2c_in_hdr in_hdr" for communication. So we only need to > keep > the first two in uapi and move "struct virtio_i2c_req" into the driver. > > But Jason wanted to in

[PATCH V2] mm: Generalize HUGETLB_PAGE_SIZE_VARIABLE

2021-03-02 Thread Anshuman Khandual
HUGETLB_PAGE_SIZE_VARIABLE need not be defined for each individual platform subscribing it. Instead just make it generic. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Andrew Morton Cc: Christoph Hellwig Cc: linux-i...@vger.kernel.org Cc: linuxppc-...@lists.ozlabs.org

[PATCH v4 2/2] exfat: add support ioctl and FITRIM function

2021-03-02 Thread Hyeongseok Kim
Add FITRIM ioctl to enable discarding unused blocks while mounted. As current exFAT doesn't have generic ioctl handler, add empty ioctl function first, and add FITRIM handler. Reviewed-by: Chaitanya Kulkarni Signed-off-by: Hyeongseok Kim --- fs/exfat/balloc.c | 80

Re: [PATCH] selftests/sgx: fix EINIT failure dueto SGX_INVALID_SIGNATURE

2021-03-02 Thread Tianjia Zhang
On 3/1/21 5:54 PM, Jarkko Sakkinen wrote: On Mon, Mar 01, 2021 at 01:18:36PM +0800, Tianjia Zhang wrote: q2 is not always 384-byte length. Sometimes it only has 383-byte. What does determine this? In this case, the valid portion of q2 is reordered reversely for little endian order, and th

Re: [PATCH] vdpa/mlx5: Fix wrong use of bit numbers

2021-03-02 Thread Eli Cohen
On Mon, Mar 01, 2021 at 10:33:14AM -0500, Michael S. Tsirkin wrote: > On Mon, Mar 01, 2021 at 03:52:45PM +0800, Jason Wang wrote: > > > > On 2021/3/1 2:28 下午, Eli Cohen wrote: > > > VIRTIO_F_VERSION_1 is a bit number. Use BIT_ULL() with mask > > > conditionals. > > > > > > Also, in mlx5_vdpa_is_l

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Jie Deng
On 2021/3/2 12:42, Viresh Kumar wrote: On 01-03-21, 14:41, Jie Deng wrote: +static int virtio_i2c_send_reqs(struct virtqueue *vq, + struct virtio_i2c_req *reqs, + struct i2c_msg *msgs, int nr) +{ + struct scatterlist *sgs[3], ou

Re: [PATCH] e1000e: use proper #include guard name in hw.h

2021-03-02 Thread gre...@linuxfoundation.org
On Tue, Mar 02, 2021 at 01:37:59AM +, Nguyen, Anthony L wrote: > On Sat, 2021-02-27 at 10:58 +0100, Greg Kroah-Hartman wrote: > > The include guard for the e1000e and e1000 hw.h files are the same, > > so > > add the proper "E" term to the hw.h file for the e1000e driver. > > There's a patch i

[PATCH v9 2/4] pinctrl: pinmux: Add pinmux-select debugfs file

2021-03-02 Thread Drew Fustini
Add "pinmux-select" to debugfs which will activate a pin function for a given pin group: echo "" > pinmux-select The write operation pinmux_select() handles this by checking that the names map to valid selectors and then calling ops->set_mux(). The existing "pinmux-functions" debugfs file list

[PATCH v9 4/4] docs/pinctrl: document debugfs files

2021-03-02 Thread Drew Fustini
Document debugfs directories and files created for pinctrl subsystem. Suggested-by: Andy Shevchenko Reviewed-by: Andy Shevchenko Reviewed-by: Tony Lindgren Signed-off-by: Drew Fustini --- Documentation/driver-api/pin-control.rst | 37 1 file changed, 37 insertions(+)

[PATCH v9 3/4] Documentation: rename pinctl to pin-control

2021-03-02 Thread Drew Fustini
pinctl is not ideal as pinctrl (with an 'r') is much more common. Linus state that pin-control.rst would be the best name for the documentation. Link: https://lore.kernel.org/linux-gpio/20210126050817.GA187797@x1/#t Suggested-by: Linus Walleij Signed-off-by: Drew Fustini --- Documentation/drive

[PATCH 2/2] pinctrl: qcom: sc7280: Fix SDC1_RCLK configurations

2021-03-02 Thread Rajendra Nayak
Fix SDC1_RCLK configurations which are in a different register so fix the offset from 0xb3000 to 0xb3004. Fixes: ecb454594c43: ("pinctrl: qcom: Add sc7280 pinctrl driver") Reported-by: Veerabhadrarao Badiganti Signed-off-by: Rajendra Nayak --- drivers/pinctrl/qcom/pinctrl-sc7280.c | 2 +- 1 fi

[PATCH v2] exfat: fix erroneous discard when clear cluster bit

2021-03-02 Thread Hyeongseok Kim
If mounted with discard option, exFAT issues discard command when clear cluster bit to remove file. But the input parameter of cluster-to-sector calculation is abnormally added by reserved cluster size which is 2, leading to discard unrelated sectors included in target+2 cluster. With fixing this,

Re: [PATCH v5] i2c: virtio: add a virtio i2c frontend driver

2021-03-02 Thread Viresh Kumar
On 02-03-21, 13:21, Jie Deng wrote: > > On 2021/3/2 12:42, Viresh Kumar wrote: > > On 01-03-21, 14:41, Jie Deng wrote: > > > +static int virtio_i2c_send_reqs(struct virtqueue *vq, > > > + struct virtio_i2c_req *reqs, > > > + struct i2c_msg *msgs, int

Re: [PATCH 21/25] KVM: VMX: Add SGX ENCLS[ECREATE] handler to enforce CPUID restrictions

2021-03-02 Thread Kai Huang
On Mon, 1 Mar 2021 09:20:15 -0800 Sean Christopherson wrote: > On Mon, Mar 01, 2021, Kai Huang wrote: > > +static int handle_encls_ecreate(struct kvm_vcpu *vcpu) > > +{ > > + struct kvm_cpuid_entry2 *sgx_12_0, *sgx_12_1; > > + gva_t pageinfo_gva, secs_gva; > > + gva_t metadata_gva, contents_g

Re: [PATCH] w1: ds2708 and ds2781 use the new API kobj_to_dev()

2021-03-02 Thread Greg KH
On Tue, Mar 02, 2021 at 08:51:08AM +0800, tiantao (H) wrote: > Hi: > > 在 2021/3/1 21:09, Greg KH 写道: > > On Mon, Mar 01, 2021 at 08:58:55PM +0800, Tian Tao wrote: > > > fix the below warnning: > > > /drivers/w1/slaves/w1_ds2780.c:93:60-61: WARNING opportunity for > > > kobj_to_dev() > > What creat

[PATCH 1/2] pinctrl: qcom: sc7280: Fix SDC_QDSD_PINGROUP and UFS_RESET offsets

2021-03-02 Thread Rajendra Nayak
The offsets for SDC_QDSD_PINGROUP and UFS_RESET were off by 0x10 due to an issue in the scripts generating the data. Fixes: ecb454594c43: ("pinctrl: qcom: Add sc7280 pinctrl driver") Reported-by: Veerabhadrarao Badiganti Signed-off-by: Rajendra Nayak --- drivers/pinctrl/qcom/pinctrl-sc7280

RE: [EXT] Re: [PATCH 2/3] spi: spi-nxp-fspi: Add driver support for imx8dxl

2021-03-02 Thread Kuldeep Singh
> > I have converted bindings to yaml version in the patch and also added > imx8dxl compatible along-with the conversion. Please see the difference in > compatible entries from txt to yaml conversion[1]. > > Kindly let me know do I need to submit different patch for adding new > compatible or ok to

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