Re: mlx5 HW crypto offload support

2021-02-16 Thread Saeed Mahameed
On Mon, 2021-02-15 at 23:17 +0530, James Spader wrote: > Hi All, > > Does HW crypto offload support for mlx5 work under virtualized > environment? > For e.g with PF (Physical Function) driver and VF(Virtual Function) > driver. > > If yes, then how does the information that is required to create >

Re: [PATCH 0/6] staging: rtl8723bs: remove DBG_COUNTER

2021-02-16 Thread Phillip Potter
On Tue, Feb 16, 2021 at 12:24:38PM +0300, Dan Carpenter wrote: > Looks good. > > Reviewed-by: Dan Carpenter > > regards, > dan carpenter > Thank you Dan. Regards, Phil

Re: [PATCH] ionic: Remove unused function pointer typedef ionic_reset_cb

2021-02-16 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Tue, 16 Feb 2021 12:05:30 +0800 you wrote: > From: Chen Lin > > Remove the 'ionic_reset_cb' typedef as it is not used. > > Signed-off-by: Chen Lin > --- > drivers/net/ethernet/pensando/ionic/ionic_lif.h |2 -- >

[GIT PULL] Smack patches for v5.12

2021-02-16 Thread Casey Schaufler
Hello Linus Here is a Smack change for the 5.12 release. It introduces bound checking for the smackfs administrative interfaces where they were missing. -- The following changes since commit 1048ba83fb1c00cd24172e23e8263972f6b5d9ac: Linux 5.11-rc6 (2021-01-31 13:50:09 -0800) are available in

Re: [PATCH 5.10 098/104] switchdev: mrp: Remove SWITCHDEV_ATTR_ID_MRP_PORT_STAT

2021-02-16 Thread Horatiu Vultur
The 02/16/2021 22:35, Pavel Machek wrote: Hi, > Hi! > > > From: Horatiu Vultur > > > > commit 059d2a1004981dce19f0127dabc1b4ec927d202a upstream. > > > > Now that MRP started to use also SWITCHDEV_ATTR_ID_PORT_STP_STATE to > > notify HW, then SWITCHDEV_ATTR_ID_MRP_PORT_STAT is not used anywher

Re: [PATCH] i2c: exynos5: Preserve high speed master code

2021-02-16 Thread Marten Lindahl
Hi Krzysztof! Thank you for your comments! Please see my reply below. I will send v2 in a moment. On Tue, Feb 16, 2021 at 08:51:41AM +0100, Krzysztof Kozlowski wrote: > On Mon, Feb 15, 2021 at 08:03:21PM +0100, Mårten Lindahl wrote: > > From: Mårten Lindahl > > > > When the controller starts to

Re: [PATCH net-next v3 0/3] Fixes applied to VCS8514

2021-02-16 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Tue, 16 Feb 2021 16:29:41 +0100 you wrote: > 3 different fixes applied to VSC8514: > LCPLL reset, serdes calibration and coma mode disabled. > Especially the serdes calibration is large and is now placed > in a new file

Re: [net-next v2] octeontx2-af: cn10k: Fixes CN10K RPM reference issue

2021-02-16 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Tue, 16 Feb 2021 17:09:36 +0530 you wrote: > This patch fixes references to uninitialized variables and > debugfs entry name for CN10K platform and HW_TSO flag check. > > Fixes: 3ad3f8f93c81 ("octeontx2-af: cn10k: MAC i

Re: {standard input}:577: Error: unsupported relocation against base

2021-02-16 Thread Segher Boessenkool
Hi! On Tue, Feb 16, 2021 at 08:36:02PM +1100, Michael Ellerman wrote: > Feng Tang writes: > > {standard input}:577: Error: unsupported relocation against base > > {standard input}:580: Error: unsupported relocation against base > > {standard input}:583: Error: unsupported relocation against

Re: [RFC PATCH 01/13] futex2: Implement wait and wake functions

2021-02-16 Thread Gabriel Krisman Bertazi
Peter Zijlstra writes: > On Mon, Feb 15, 2021 at 12:23:52PM -0300, André Almeida wrote: >> Create a new set of futex syscalls known as futex2. This new interface >> is aimed to implement a more maintainable code, while removing obsolete >> features and expanding it with new functionalities. >> >

RE: [PATCH net-next] misc: Add Renesas Synchronization Management Unit (SMU) support

2021-02-16 Thread Min Li
> > I can't help but think you are evading my question I asked. If there is no > specific action that this pcm4l tool needs to perform, then I'd think we > should better not provide any interface for it at all. > > I also found a reference to only closed source software at > https://www.renesas.c

Re: [PATCH] tg3: Remove unused PHY_BRCM flags

2021-02-16 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Tue, 16 Feb 2021 11:08:37 -0800 you wrote: > The tg3 driver tried to communicate towards the PHY driver whether it > wanted RGMII in-band signaling enabled or disabled however there is > nothing that looks at those flags

[PATCH 2/5] usb: gadget: f_uac1: stop playback on function disable

2021-02-16 Thread Ruslan Bilovol
There is missing playback stop/cleanup in case of gadget's ->disable callback that happens on events like USB host resetting or gadget disconnection Fixes: 0591bc236015 ("usb: gadget: add f_uac1 variant based on a new u_audio api") Cc: # 4.13+ Signed-off-by: Ruslan Bilovol --- drivers/usb/gad

[PATCH 3/5] usb: gadget: f_uac2: validate input parameters

2021-02-16 Thread Ruslan Bilovol
Currently user can configure UAC2 function with parameters that violate UAC2 spec or are not supported by UAC2 gadget implementation. This can lead to incorrect behavior if such gadget is connected to the host - like enumeration failure or other issues depending on host's UAC2 driver implementatio

[PATCH 4/5] usb: gadget: f_uac1: validate input parameters

2021-02-16 Thread Ruslan Bilovol
Currently user can configure UAC1 function with parameters that violate UAC1 spec or are not supported by UAC1 gadget implementation. This can lead to incorrect behavior if such gadget is connected to the host - like enumeration failure or other issues depending on host's UAC1 driver implementatio

[PATCH 0/5] USB Audio Gadget part 1: misc fixes and improvements

2021-02-16 Thread Ruslan Bilovol
Here are some bug fixes and improvements to USB Audio Gadget drivers which I made during my work on a new UAC features like feedback endpoint implementation and Volume/Mute controls. The new UAC features will be sent as a separate patch set (aka 'part 2') on top of these changes later this week R

[PATCH 1/5] usb: gadget: f_uac2: always increase endpoint max_packet_size by one audio slot

2021-02-16 Thread Ruslan Bilovol
As per UAC2 Audio Data Formats spec (2.3.1.1 USB Packets), if the sampling rate is a constant, the allowable variation of number of audio slots per virtual frame is +/- 1 audio slot. It means that endpoint should be able to accept/send +1 audio slot. Previous endpoint max_packet_size calculation

[PATCH 5/5] usb: gadget: f_uac1: disable IN/OUT ep if unused

2021-02-16 Thread Ruslan Bilovol
User can configure f_uac1 function via p_chmask/c_chmask whether uac1 shall support playback and/or capture, but it has only effect on the created ALSA device, but not on the USB descriptor. This patch adds playback/capture descriptors dependent on that parameter. It is similar to the same convers

[PATCH v2] i2c: exynos5: Preserve high speed master code

2021-02-16 Thread Mårten Lindahl
From: Mårten Lindahl When the driver starts to send a message with the MASTER_ID field set (high speed), the whole I2C_ADDR register is overwritten including MASTER_ID as the SLV_ADDR_MAS field is set. This patch preserves already written fields in I2C_ADDR when writing SLV_ADDR_MAS. Signed-off

Re: [PATCH 5.10 000/104] 5.10.17-rc1 review

2021-02-16 Thread Shuah Khan
On 2/15/21 8:26 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.10.17 release. There are 104 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 should be made

Re: [PATCH 5.4 00/60] 5.4.99-rc1 review

2021-02-16 Thread Shuah Khan
On 2/15/21 8:26 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.99 release. There are 60 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 should be made b

Re: [RFC PATCH] mm, oom: introduce vm.sacrifice_hugepage_on_oom

2021-02-16 Thread Mike Kravetz
On 2/16/21 12:12 AM, Michal Hocko wrote: > On Tue 16-02-21 03:07:13, Eiichi Tsukata wrote: >> Hugepages can be preallocated to avoid unpredictable allocation latency. >> If we run into 4k page shortage, the kernel can trigger OOM even though >> there were free hugepages. When OOM is triggered by us

[PATCH v2 2/2] exfat: add support FITRIM ioctl

2021-02-16 Thread Hyeongseok Kim
add FITRIM ioctl to support trimming mounted filesystem Signed-off-by: Hyeongseok Kim --- fs/exfat/balloc.c | 81 + fs/exfat/exfat_fs.h | 1 + fs/exfat/file.c | 33 ++ 3 files changed, 115 insertions(+) diff --git a/fs/exfat/bal

[PATCH v2 1/2] exfat: add initial ioctl function

2021-02-16 Thread Hyeongseok Kim
Initialize empty ioctl function Signed-off-by: Hyeongseok Kim --- fs/exfat/dir.c | 5 + fs/exfat/exfat_fs.h | 3 +++ fs/exfat/file.c | 21 + 3 files changed, 29 insertions(+) diff --git a/fs/exfat/dir.c b/fs/exfat/dir.c index 916797077aad..e1d5536de948 100644

Re: [regression -next0117] What is kcompactd and why is he eating 100% of my cpu?

2021-02-16 Thread Valdis Klētnieks
On Tue, 16 Feb 2021 13:36:22 +0100, "Jason A. Donenfeld" said: > Another anecdote: 5.11.0, 64 gigs of ram. If I run QEMU/KVM for a VM > with 16 gigs at the same time as a VMware VM with 16 gigs of ram, > kcompact goes wild and both VMs get really slow. The key here is running > KVM at the same tim

[PATCH] drivers: net: xilinx_emaclite: remove arch limitation

2021-02-16 Thread Gary Guo
The changes made in eccd540 is enough for xilinx_emaclite to run without problem on 64-bit systems. I have tested it on a Xilinx FPGA with RV64 softcore. The architecture limitation in Kconfig seems no longer necessary. A small change is included to print address with %lx instead of casting to int

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

2021-02-16 Thread Hyeongseok Kim
This is for adding FITRIM ioctl functionality for exFAT filesystem. For this, add generic ioctl handler and FITRIM operation. Changelog = v1->v2: - Change variable declaration order as reverse tree style. - Return -EOPNOTSUPP from sb_issue_discard() just as it is. - Remove cond_resched()

Build the kernel on macOS

2021-02-16 Thread Roman Bolshakov
Hello everyone, I'm not sure this is right forum to ask (due to high volume) but I don't know about any other that fits better. Is there any interest in making macOS a first-class host to build linux kernel? I'm quite sure [1][2] (a lot of similar posts can be easily googled) there's a demand to

Re: [PATCH] dax: fix default return code of range_parse()

2021-02-16 Thread Dan Williams
On Wed, Feb 10, 2021 at 10:19 AM Joao Martins wrote: > > On 1/26/21 2:13 AM, Shiyang Ruan wrote: > > The return value of range_parse() indicates the size when it is > > positive. The error code should be negative. > > > > Signed-off-by: Shiyang Ruan > > Reviewed-by: Joao Martins > > Although, F

Re: UBSAN: shift-out-of-bounds in hid_report_raw_event

2021-02-16 Thread Randy Dunlap
On 2/15/21 3:18 PM, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:291009f6 Merge tag 'pm-5.11-rc8' of git://git.kernel.org/p.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17cd1098d0 > kernel config: https://syzk

[PATCH] mmc: Try power cycling card if command request times out

2021-02-16 Thread Mårten Lindahl
Sometimes SD cards that has been run for a long time enters a state where it cannot by itself be recovered, but needs a power cycle to be operational again. Card status analysis has indicated that the card can end up in a state where all external commands are ignored by the card since it is halted

[PATCH v6 2/3] pinctrl: pinmux: Add pinmux-select debugfs file

2021-02-16 Thread Drew Fustini
Add "pinmux-select" to debugfs which will activate a function and 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 lists the pin functi

[PATCH v6 0/3] pinctrl: pinmux: Add pinmux-select debugfs file

2021-02-16 Thread Drew Fustini
This series first converts the debugfs files in the pinctrl subsystem to octal permissions and then adds a new debugfs file "pinmux-select". Function name and group name can be written to "pinmux-select" which will cause the function and group to be activated on the pin controller. The final patc

[PATCH v6 3/3] docs/pinctrl: document debugfs files

2021-02-16 Thread Drew Fustini
Document debugfs directories and files created for pinctrl subsystem. Suggested-by: Andy Shevchenko Signed-off-by: Drew Fustini --- Documentation/driver-api/pinctl.rst | 37 + 1 file changed, 37 insertions(+) diff --git a/Documentation/driver-api/pinctl.rst b/Docum

[PATCH v6 1/3] pinctrl: use to octal permissions for debugfs files

2021-02-16 Thread Drew Fustini
Switch over pinctrl debugfs files to use octal permissions as they are preferred over symbolic permissions. Refer to commit f90774e1fd27 ("checkpatch: look for symbolic permissions and suggest octal instead"). Note: S_IFREG flag is added to the mode by __debugfs_create_file() in fs/debugfs/inode.c

Re: [GIT PULL] clang-lto for v5.12-rc1

2021-02-16 Thread Alexander Lobakin
From: Kees Cook Date: Tue, 16 Feb 2021 12:34:37 -0800 > Hi Linus, > > Please pull this Clang Link Time Optimization series for v5.12-rc1. This > has been in linux-next for the entire last development cycle, and is > built on the work done preparing[0] for LTO by arm64 folks, tracing folks, > etc

Re: [PATCH] tg3: Remove unused PHY_BRCM flags

2021-02-16 Thread Vladimir Oltean
On Tue, Feb 16, 2021 at 11:08:37AM -0800, Florian Fainelli wrote: > The tg3 driver tried to communicate towards the PHY driver whether it > wanted RGMII in-band signaling enabled or disabled however there is > nothing that looks at those flags in drivers/net/phy/broadcom.c so this > does do not any

[PATCH v2] vfio/type1: Use follow_pte()

2021-02-16 Thread Alex Williamson
follow_pfn() doesn't make sure that we're using the correct page protections, get the pte with follow_pte() so that we can test protections and get the pfn from the pte. Fixes: 5cbf3264bc71 ("vfio/type1: Fix VA->PA translation for PFNMAP VMAs in vaddr_get_pfn()") Reviewed-by: Jason Gunthorpe Rev

[PATCH] riscv: fix memmove and optimise memcpy when misalign

2021-02-16 Thread Gary Guo
04091d6 introduces an assembly version of memmove but it does take misalignment into account (it checks if length is a multiple of machine word size but pointers need also be aligned). As a result it will generate misaligned load/store for the majority of cases and causes significant performance re

Re: [PATCH] mhi_bus: core: Check state before processing power_down

2021-02-16 Thread Bhaumik Bhatt
On 2021-02-16 01:38 PM, Jeffrey Hugo wrote: We cannot process a power_down if the power state is DISABLED. There is no valid mhi_ctxt in that case, so attepting to process the power_down will likely result in a null pointer dereference. If the power state is DISABLED, there is nothing to do

Re: [PATCH net-next v4 0/8] bridge: mrp: Extend br_mrp_switchdev_*

2021-02-16 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (refs/heads/master): On Tue, 16 Feb 2021 22:41:57 +0100 you wrote: > This patch series extends MRP switchdev to allow the SW to have a better > understanding if the HW can implement the MRP functionality or it needs > to help the HW to run it.

Re: [PATCH] drivers: net: xilinx_emaclite: remove arch limitation

2021-02-16 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Tue, 16 Feb 2021 22:33:42 + you wrote: > The changes made in eccd540 is enough for xilinx_emaclite to run > without problem on 64-bit systems. I have tested it on a Xilinx > FPGA with RV64 softcore. The architecture

Re: [PATCH v10 12/16] KVM: x86: Introduce new KVM_FEATURE_SEV_LIVE_MIGRATION feature & Custom MSR.

2021-02-16 Thread Sean Christopherson
On Thu, Feb 04, 2021, Ashish Kalra wrote: > diff --git a/arch/x86/include/uapi/asm/kvm_para.h > b/arch/x86/include/uapi/asm/kvm_para.h > index 950afebfba88..f6bfa138874f 100644 > --- a/arch/x86/include/uapi/asm/kvm_para.h > +++ b/arch/x86/include/uapi/asm/kvm_para.h > @@ -33,6 +33,7 @@ > #define

Re: [PATCH v2] vfio/type1: Use follow_pte()

2021-02-16 Thread Peter Xu
On Tue, Feb 16, 2021 at 03:49:34PM -0700, Alex Williamson wrote: > follow_pfn() doesn't make sure that we're using the correct page > protections, get the pte with follow_pte() so that we can test > protections and get the pfn from the pte. > > Fixes: 5cbf3264bc71 ("vfio/type1: Fix VA->PA translat

Re: [PATCH v6 03/24] iio: make use of devm_iio_kfifo_buffer_setup() helper

2021-02-16 Thread Gwendal Grignou
Reviewed-by: Gwendal Grignou On Mon, Feb 15, 2021 at 4:11 AM Jonathan Cameron wrote: > > On Mon, 15 Feb 2021 12:40:22 +0200 > Alexandru Ardelean wrote: > > > All drivers that already call devm_iio_kfifo_allocate() & > > iio_device_attach_buffer() are simple to convert to > > iio_device_attach_k

Re: [PATCH] scripts: Fix linking extract-cert against libcrypto

2021-02-16 Thread Daniel Díaz
Hello! Apologies for the delay -- Currently experiencing power/connectivity issues. On Thu, 11 Feb 2021 at 01:12, Masahiro Yamada wrote: > I am wondering how "HOSTLDFLAGS_sign-file" and > "HOSTLDFLAGS_extract-cert" worked for you. > Kbuild supports HOSTLDLIBS_ syntax, > but not HOSTLDFLAGS_. T

Re: [PATCH v2 1/2] exfat: add initial ioctl function

2021-02-16 Thread Chaitanya Kulkarni
On 2/16/21 14:36, Hyeongseok Kim wrote: > Initialize empty ioctl function > > Signed-off-by: Hyeongseok Kim This patch doesn't do much, but this commit log could be better. Also from my experience there is not point in introducing an empty function.

Re: [PATCH] scripts: Fix linking extract-cert against libcrypto

2021-02-16 Thread Daniel Díaz
Hello! On Fri, 12 Feb 2021 at 01:44, Rolf Eike Beer wrote: > > Am Donnerstag, 11. Februar 2021, 11:29:33 CET schrieb Rolf Eike Beer: > > > I'm just guessing, but your build error looks like you are also > > cross-building the tools, which is wrong. You want them to be host-tools. > > So don't ex

Re: [PATCH] regulator: pf8x00: Use regulator_map_voltage_ascend for pf8x00_buck7_ops

2021-02-16 Thread Adrien Grassein
Le mar. 16 févr. 2021 à 07:01, Axel Lin a écrit : > > The voltages in pf8x00_sw7_voltages are in ascendant order, so use > regulator_map_voltage_ascend. > > Signed-off-by: Axel Lin > --- > drivers/regulator/pf8x00-regulator.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/regul

Re: [PATCH v2 2/2] exfat: add support FITRIM ioctl

2021-02-16 Thread Chaitanya Kulkarni
On 2/16/21 14:36, Hyeongseok Kim wrote: > +static int exfat_ioctl_fitrim(struct inode *inode, unsigned long arg) > +{ > + struct super_block *sb = inode->i_sb; Do you really need sb variable ? it is only used once if I'm not wrong. > + struct request_queue *q = bdev_get_queue(sb->s_bdev); >

[PATCH] cpufreq: exclude boost frequencies from valid count if not enabled

2021-02-16 Thread Thara Gopinath
This is a fix for a regression observed on db845 platforms with 5.7-rc11 kernel. On these platforms running stress tests with 5.11-rc7 kernel causes big cpus to overheat and ultimately shutdown the system due to hitting critical temperature (thermal throttling does not happen and cur_state of cpuf

Re: [PATCH v2 1/2] drm/msm: add compatibles for sm8150/sm8250 display

2021-02-16 Thread Rob Clark
On Tue, Feb 16, 2021 at 10:06 AM Jonathan Marek wrote: > > On 2/16/21 11:54 AM, Dmitry Baryshkov wrote: > > On Mon, 15 Feb 2021 at 19:25, Jonathan Marek wrote: > >> > >> The driver already has support for sm8150/sm8250, but the compatibles were > >> never added. > >> > >> Also inverse the non-mdp

Re: usb: dwc3: gadget: Change runtime pm function for DWC3 runtime suspend

2021-02-16 Thread Wesley Cheng
On 2/15/2021 5:30 PM, Jung Daehwan wrote: > Hello, Alan > > On Mon, Feb 15, 2021 at 12:41:45PM -0500, Alan Stern wrote: >> On Mon, Feb 15, 2021 at 11:38:58AM +0900, Daehwan Jung wrote: >>> It seems pm_runtime_put calls runtime_idle callback not runtime_suspend >>> callback. >> >> How is this f

[v8 PATCH 01/13] mm: vmscan: use nid from shrink_control for tracepoint

2021-02-16 Thread Yang Shi
The tracepoint's nid should show what node the shrink happens on, the start tracepoint uses nid from shrinkctl, but the nid might be set to 0 before end tracepoint if the shrinker is not NUMA aware, so the tracing log may show the shrink happens on one node but end up on the other node. It seem

[v8 PATCH 00/13] Make shrinker's nr_deferred memcg aware

2021-02-16 Thread Yang Shi
Changelog v7 --> v8: * Added lockdep assert in expand_shrinker_info() per Roman. * Added patch 05/13 to use kvfree_rcu() instead of call_rcu() per Roman and Kirill. * Moved rwsem acquire/release out of unregister_memcg_shrinker() per Roman. * Renamed count_nr_deferred_{memcg

[v8 PATCH 04/13] mm: vmscan: remove memcg_shrinker_map_size

2021-02-16 Thread Yang Shi
Both memcg_shrinker_map_size and shrinker_nr_max is maintained, but actually the map size can be calculated via shrinker_nr_max, so it seems unnecessary to keep both. Remove memcg_shrinker_map_size since shrinker_nr_max is also used by iterating the bit map. Acked-by: Kirill Tkhai Acked-by: Rom

[v8 PATCH 05/13] mm: vmscan: use kvfree_rcu instead of call_rcu

2021-02-16 Thread Yang Shi
Using kvfree_rcu() to free the old shrinker_maps instead of call_rcu(). We don't have to define a dedicated callback for call_rcu() anymore. Signed-off-by: Yang Shi --- mm/vmscan.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 2e753c251

Re: [PATCH v2 1/2] exfat: add initial ioctl function

2021-02-16 Thread Hyeongseok Kim
On 2/17/21 8:51 AM, Chaitanya Kulkarni wrote: On 2/16/21 14:36, Hyeongseok Kim wrote: Initialize empty ioctl function Signed-off-by: Hyeongseok Kim This patch doesn't do much, but this commit log could be better. Sorry, I don't understand exactly. You're saying that these 2 patch should be m

[v8 PATCH 03/13] mm: vmscan: use shrinker_rwsem to protect shrinker_maps allocation

2021-02-16 Thread Yang Shi
Since memcg_shrinker_map_size just can be changed under holding shrinker_rwsem exclusively, the read side can be protected by holding read lock, so it sounds superfluous to have a dedicated mutex. Kirill Tkhai suggested use write lock since: * We want the assignment to shrinker_maps is visible

[v8 PATCH 02/13] mm: vmscan: consolidate shrinker_maps handling code

2021-02-16 Thread Yang Shi
The shrinker map management is not purely memcg specific, it is at the intersection between memory cgroup and shrinkers. It's allocation and assignment of a structure, and the only memcg bit is the map is being stored in a memcg structure. So move the shrinker_maps handling code into vmscan.c

[v8 PATCH 07/13] mm: vmscan: add shrinker_info_protected() helper

2021-02-16 Thread Yang Shi
The shrinker_info is dereferenced in a couple of places via rcu_dereference_protected with different calling conventions, for example, using mem_cgroup_nodeinfo helper or dereferencing memcg->nodeinfo[nid]->shrinker_info. And the later patch will add more dereference places. So extract the dere

[v8 PATCH 06/13] mm: memcontrol: rename shrinker_map to shrinker_info

2021-02-16 Thread Yang Shi
The following patch is going to add nr_deferred into shrinker_map, the change will make shrinker_map not only include map anymore, so rename it to "memcg_shrinker_info". And this should make the patch adding nr_deferred cleaner and readable and make review easier. Also remove the "memcg_" prefix

[v8 PATCH 08/13] mm: vmscan: use a new flag to indicate shrinker is registered

2021-02-16 Thread Yang Shi
Currently registered shrinker is indicated by non-NULL shrinker->nr_deferred. This approach is fine with nr_deferred at the shrinker level, but the following patches will move MEMCG_AWARE shrinkers' nr_deferred to memcg level, so their shrinker->nr_deferred would always be NULL. This would prevent

[v8 PATCH 09/13] mm: vmscan: add per memcg shrinker nr_deferred

2021-02-16 Thread Yang Shi
Currently the number of deferred objects are per shrinker, but some slabs, for example, vfs inode/dentry cache are per memcg, this would result in poor isolation among memcgs. The deferred objects typically are generated by __GFP_NOFS allocations, one memcg with excessive __GFP_NOFS allocations

[v8 PATCH 10/13] mm: vmscan: use per memcg nr_deferred of shrinker

2021-02-16 Thread Yang Shi
Use per memcg's nr_deferred for memcg aware shrinkers. The shrinker's nr_deferred will be used in the following cases: 1. Non memcg aware shrinkers 2. !CONFIG_MEMCG 3. memcg is disabled by boot parameter Signed-off-by: Yang Shi --- mm/vmscan.c | 78 +

[v8 PATCH 11/13] mm: vmscan: don't need allocate shrinker->nr_deferred for memcg aware shrinkers

2021-02-16 Thread Yang Shi
Now nr_deferred is available on per memcg level for memcg aware shrinkers, so don't need allocate shrinker->nr_deferred for such shrinkers anymore. The prealloc_memcg_shrinker() would return -ENOSYS if !CONFIG_MEMCG or memcg is disabled by kernel command line, then shrinker's SHRINKER_MEMCG_AWAR

Re: [PATCH v2 2/2] exfat: add support FITRIM ioctl

2021-02-16 Thread Hyeongseok Kim
On 2/17/21 8:56 AM, Chaitanya Kulkarni wrote: On 2/16/21 14:36, Hyeongseok Kim wrote: +static int exfat_ioctl_fitrim(struct inode *inode, unsigned long arg) +{ + struct super_block *sb = inode->i_sb; Do you really need sb variable ? it is only used once if I'm not wrong. I got it. You're

[v8 PATCH 12/13] mm: memcontrol: reparent nr_deferred when memcg offline

2021-02-16 Thread Yang Shi
Now shrinker's nr_deferred is per memcg for memcg aware shrinkers, add to parent's corresponding nr_deferred when memcg offline. Acked-by: Vlastimil Babka Acked-by: Kirill Tkhai Acked-by: Roman Gushchin Signed-off-by: Yang Shi --- include/linux/memcontrol.h | 1 + mm/memcontrol.c

[v8 PATCH 13/13] mm: vmscan: shrink deferred objects proportional to priority

2021-02-16 Thread Yang Shi
The number of deferred objects might get windup to an absurd number, and it results in clamp of slab objects. It is undesirable for sustaining workingset. So shrink deferred objects proportional to priority and cap nr_deferred to twice of cache items. The idea is borrowed from Dave Chinner's pat

Re: [PATCH v2 1/2] exfat: add initial ioctl function

2021-02-16 Thread Chaitanya Kulkarni
On 2/16/21 16:13, Hyeongseok Kim wrote: > Sorry, I don't understand exactly. > You're saying that these 2 patch should be merged to a single patch? > Would it be better? I think so unless there is a specific reason for this to keep it isolated.

Antworte zurück für die sofortige Inanspruchnahme deiner gespendeten Gelder und Glückwünsche an dich

2021-02-16 Thread Charles Jackson Jr
-- IHR E-MAIL-KONTO WURDE FÜR EINE SPENDE VON 3.500.000,00 USD FÜR CHARITY AUSGEWÄHLT. Antworten Sie auf die folgende E-Mail, um weitere Informationen zu erhalten E-Mail: charlesjackson...@gmail.com

Re: [PATCH v3 1/2] kunit: support failure from dynamic analysis tools

2021-02-16 Thread Daniel Latypov
On Thu, Feb 11, 2021 at 1:33 PM 'Brendan Higgins' via KUnit Development wrote: > > On Thu, Feb 11, 2021 at 12:58 PM Daniel Latypov wrote: > > > > On Thu, Feb 11, 2021 at 7:40 AM Alan Maguire > > wrote: > > > > > > On Thu, 11 Feb 2021, David Gow wrote: > > > > > > > On Wed, Feb 10, 2021 at 6:14

RE: linux-next: manual merge of the net-next tree with the arm-soc tree

2021-02-16 Thread Yoshihiro Shimoda
@@@ > > > clock-names = "apb_pclk"; > > > }; > > > > > > +&wdt { > > > +status = "okay"; > > > +clocks = <&wdt_clk>; > > > +}; > > > + > > > +&gpio { > > > +

Re: [PATCH V3 1/2] topology: Allow multiple entities to provide sched_freq_tick() callback

2021-02-16 Thread Ionela Voinescu
Hey, On Friday 05 Feb 2021 at 14:44:24 (+0530), Viresh Kumar wrote: > On 03-02-21, 11:45, Ionela Voinescu wrote: > > Therefore, I think system level invariance management (checks and > > call to rebuild_sched_domains_energy()) also needs to move from arm64 > > code to arch_topology code. > > Here

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

2021-02-16 Thread Si-Wei Liu
On 2/10/2021 7:45 AM, Eli Cohen wrote: On Wed, Feb 10, 2021 at 12:59:03AM -0800, Si-Wei Liu wrote: On 2/9/2021 7:53 PM, Jason Wang wrote: On 2021/2/10 上午10:30, Si-Wei Liu wrote: On 2/8/2021 10:37 PM, Jason Wang wrote: On 2021/2/9 下午2:12, Eli Cohen wrote: On Tue, Feb 09, 2021 at 11:20:14

Re: [PATCH v2 1/2] exfat: add initial ioctl function

2021-02-16 Thread Hyeongseok Kim
On 2/17/21 9:17 AM, Chaitanya Kulkarni wrote: On 2/16/21 16:13, Hyeongseok Kim wrote: Sorry, I don't understand exactly. You're saying that these 2 patch should be merged to a single patch? Would it be better? I think so unless there is a specific reason for this to keep it isolated. The reaso

Re: [PATCH] mhi_bus: core: Wait for ready state after reset

2021-02-16 Thread kernel test robot
Hi Jeffrey, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.11 next-20210216] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--bas

Re: [PATCH] bpf: fix a warning message in mark_ptr_not_null_reg()

2021-02-16 Thread Daniel Borkmann
On 2/16/21 10:10 PM, KP Singh wrote: On Tue, Feb 16, 2021 at 8:37 PM Dan Carpenter wrote: The WARN_ON() argument is a condition, and it generates a stack trace but it doesn't print the warning. Fixes: 4ddb74165ae5 ("bpf: Extract nullable reg type conversion into a helper function") Signed-of

Re: [PATCH v5 1/8] smp: Run functions concurrently in smp_call_function_many_cond()

2021-02-16 Thread Nadav Amit
> On Feb 16, 2021, at 10:59 AM, Peter Zijlstra wrote: > > On Tue, Feb 16, 2021 at 06:53:09PM +, Nadav Amit wrote: >>> On Feb 16, 2021, at 8:32 AM, Peter Zijlstra wrote: > >>> I'm not sure I can explain it yet. It did get me looking at >>> on_each_cpu() and it appears that wants to be conver

Re: [PATCH v10 10/16] KVM: x86: Introduce KVM_GET_SHARED_PAGES_LIST ioctl

2021-02-16 Thread Sean Christopherson
On Thu, Feb 04, 2021, Ashish Kalra wrote: > From: Brijesh Singh > > The ioctl is used to retrieve a guest's shared pages list. What's the performance hit to boot time if KVM_HC_PAGE_ENC_STATUS is passed through to userspace? That way, userspace could manage the set of pages in whatever data str

linux-next: manual merge of the pm tree with the i3c tree

2021-02-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the pm tree got a conflict in: MAINTAINERS between commit: f06a1af8e739 ("MAINTAINERS: Add Silvaco I3C master") from the i3c tree and commit: 4590d98f5a4f ("sfi: Remove framework for deprecated firmware") from the pm tree. I fixed it up (see below)

Re: [PATCH v10 10/16] KVM: x86: Introduce KVM_GET_SHARED_PAGES_LIST ioctl

2021-02-16 Thread Sean Christopherson
On Thu, Feb 04, 2021, Ashish Kalra wrote: > From: Brijesh Singh > > The ioctl is used to retrieve a guest's shared pages list. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: Paolo Bonzini > Cc: "Radim Krčmář" AFAIK, Radim is no longer involved with KVM, and his RedH

Re: [PATCH 5.4 00/60] 5.4.99-rc1 review

2021-02-16 Thread Ross Schmidt
On Mon, Feb 15, 2021 at 04:26:48PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.99 release. > There are 60 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.

Re: [PATCH] Revert "ARM: dts: bcm2711: Add the BSC interrupt controller"

2021-02-16 Thread Florian Fainelli
On 2/12/2021 11:11 AM, Florian Fainelli wrote: > As Dave reported: > > This seems to have unintended side effects. GIC interrupt 117 is shared > between the standard I2C controllers (i2c-bcm2835) and the l2-intc block > handling the HDMI I2C interrupts. > > There is not a great way to share a

Re: [PATCH 5.10 000/104] 5.10.17-rc1 review

2021-02-16 Thread Ross Schmidt
On Mon, Feb 15, 2021 at 04:26:13PM +0100, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.17 release. > There are 104 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 kno

Re: [PATCH v5] The following sequence of operations results in a refcount warning:

2021-02-16 Thread Stefan Berger
On 2/16/21 2:42 PM, Lino Sanfilippo wrote: From: Lino Sanfilippo 1. Open device /dev/tpmrm. 2. Remove module tpm_tis_spi. 3. Write a TPM command to the file descriptor opened at step 1. [ cut here ] WARNING: CPU: 3 PID: 1161 at lib/refcount.c:25 kobject_get+0xa0/0xa4 re

Re: [PATCH 1/2] libnvdimm: simplify nvdimm_remove()

2021-02-16 Thread Dan Williams
On Fri, Feb 12, 2021 at 9:11 AM Uwe Kleine-König wrote: > > nvdimm_remove is only ever called after nvdimm_probe() returned > successfully. In this case driver data is always set to a non-NULL value > so the check for driver data being NULL can go away as it's always false. Looks good, thanks.

linux-next: manual merge of the net-next tree with the net tree

2021-02-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got conflicts in: drivers/net/ethernet/ibm/ibmvnic.c drivers/net/ethernet/ibm/ibmvnic.h between commit: 4a41c421f367 ("ibmvnic: serialize access to work queue on remove") from the net tree and commits: bab08bedcdc3 ("ibmvnic: fix b

lib/bitfield_kunit.c:93:1: warning: the frame size of 4200 bytes is larger than 2048 bytes

2021-02-16 Thread kernel test robot
months ago config: mips-randconfig-r016-20210216 (attached as .config) compiler: mipsel-linux-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 # https

Re: [v8 PATCH 05/13] mm: vmscan: use kvfree_rcu instead of call_rcu

2021-02-16 Thread Roman Gushchin
On Tue, Feb 16, 2021 at 04:13:14PM -0800, Yang Shi wrote: > Using kvfree_rcu() to free the old shrinker_maps instead of call_rcu(). > We don't have to define a dedicated callback for call_rcu() anymore. > > Signed-off-by: Yang Shi Acked-by: Roman Gushchin Thanks! > --- > mm/vmscan.c | 7 +---

Re: [v8 PATCH 08/13] mm: vmscan: use a new flag to indicate shrinker is registered

2021-02-16 Thread Roman Gushchin
On Tue, Feb 16, 2021 at 04:13:17PM -0800, Yang Shi wrote: > Currently registered shrinker is indicated by non-NULL shrinker->nr_deferred. > This approach is fine with nr_deferred at the shrinker level, but the > following > patches will move MEMCG_AWARE shrinkers' nr_deferred to memcg level, so th

Re: [v8 PATCH 09/13] mm: vmscan: add per memcg shrinker nr_deferred

2021-02-16 Thread Roman Gushchin
On Tue, Feb 16, 2021 at 04:13:18PM -0800, Yang Shi wrote: > Currently the number of deferred objects are per shrinker, but some slabs, > for example, > vfs inode/dentry cache are per memcg, this would result in poor isolation > among memcgs. > > The deferred objects typically are generated by __

Re: [v8 PATCH 10/13] mm: vmscan: use per memcg nr_deferred of shrinker

2021-02-16 Thread Roman Gushchin
On Tue, Feb 16, 2021 at 04:13:19PM -0800, Yang Shi wrote: > Use per memcg's nr_deferred for memcg aware shrinkers. The shrinker's > nr_deferred > will be used in the following cases: > 1. Non memcg aware shrinkers > 2. !CONFIG_MEMCG > 3. memcg is disabled by boot parameter > > Signed

Re: [Intel-gfx] [PATCH v2] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-16 Thread Lyude Paul
On Tue, 2021-02-16 at 20:08 +0200, Imre Deak wrote: > Hi, > > thanks for respinning this patchset, some comments below. > > On Fri, Feb 12, 2021 at 01:50:53PM -0500, Lyude Paul wrote: > > From: Tejas Upadhyay > > > > For Legacy S3 suspend/resume GEN9 BC needs to enable and > > setup TGP PCH. >

Re: [Intel-gfx] [PATCH v2] drm/i915/gen9bc: Handle TGP PCH during suspend/resume

2021-02-16 Thread Lyude Paul
On Tue, 2021-02-16 at 21:36 -0500, Lyude Paul wrote: > On Tue, 2021-02-16 at 20:08 +0200, Imre Deak wrote: > > Hi, > > > > thanks for respinning this patchset, some comments below. > > > > On Fri, Feb 12, 2021 at 01:50:53PM -0500, Lyude Paul wrote: > > > From: Tejas Upadhyay > > > > > > For Leg

Re: [PATCH v1 5/5] driver core: Set fw_devlink=on by default

2021-02-16 Thread Saravana Kannan
On Wed, Feb 10, 2021 at 1:21 PM Guenter Roeck wrote: > > On 2/10/21 12:52 PM, Saravana Kannan wrote: > > On Wed, Feb 10, 2021 at 7:10 AM Guenter Roeck wrote: > >> > >> On 2/10/21 12:20 AM, Saravana Kannan wrote: > >>> On Tue, Feb 9, 2021 at 9:54 PM Guenter Roeck wrote: > > On Thu, Dec

Dringende Antwort!

2021-02-16 Thread Manfred Koch
Mein Name ist Manfred Koch, ich komme aus Deutschland und ich habe eine Spende von 750.000,00 Euro für jeweils 3 Personen, entweder in Deutschland, der Schweiz oder Österreich. Kontaktieren Sie mich und ich werde Ihnen den Grund für mein Angebot mitteilen. MK

[PATCH v2] IMA: support for duplicate data measurement

2021-02-16 Thread Tushar Sugandhi
IMA does not measure duplicate data since TPM extend is a very expensive operation. However, in some cases, the measurement of duplicate data is necessary to accurately determine the current state of the system. Eg, SELinux state changing from 'audit', to 'enforcing', and back to 'audit' again. I

[PATCH 1/4] fs/btrfs: Convert kmap to kmap_local_page() using coccinelle

2021-02-16 Thread ira . weiny
From: Ira Weiny Use a simple coccinelle script to help convert the most common kmap()/kunmap() patterns to kmap_local_page()/kunmap_local(). Note that some kmaps which were caught by this script needed to be handled by hand because of the strict unmapping order of kunmap_local() so they are not

[PATCH 2/4] fs/btrfs: Convert raid5/6 kmaps to kmap_local_page()

2021-02-16 Thread ira . weiny
From: Ira Weiny These kmaps are thread local and don't need to be atomic. So they can use the more efficient kmap_local_page(). However, the mapping of pages in the stripes and the additional parity and qstripe pages are a bit trickier because the unmapping must occur in the opposite order from

<    3   4   5   6   7   8   9   10   >