Re: [PATCH 3/4] mm: /proc/sys/vm/stat_refresh skip checking known negative stats

2021-03-01 Thread Roman Gushchin
Mon, Mar 01, 2021 at 02:08:17PM -0800, Hugh Dickins wrote: > On Sun, 28 Feb 2021, Roman Gushchin wrote: > > On Thu, Feb 25, 2021 at 03:14:03PM -0800, Hugh Dickins wrote: > > > vmstat_refresh() can occasionally catch nr_zone_write_pending and > > > nr_writeback when they are transiently negative.

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

2021-03-01 Thread Dan Williams
On Mon, Mar 1, 2021 at 2:47 PM Dave Chinner wrote: > > On Mon, Mar 01, 2021 at 12:55:53PM -0800, Dan Williams wrote: > > On Sun, Feb 28, 2021 at 2:39 PM Dave Chinner wrote: > > > > > > On Sat, Feb 27, 2021 at 03:40:24PM -0800, Dan Williams wrote: > > > > On Sat, Feb 27, 2021 at 2:36 PM Dave

Re: [PATCH 05/25] x86/sgx: Introduce virtual EPC for use by KVM guests

2021-03-01 Thread Kai Huang
On Mon, 2021-03-01 at 08:21 -0800, Sean Christopherson wrote: > On Mon, Mar 01, 2021, Kai Huang wrote: > > + /* > > +* SECS pages are "pinned" by child pages, an unpinned once all > > s/an/and Thanks! > > > +* children have been EREMOVE'd. A child page in this instance > > +*

Re: [PATCH 03/25] x86/sgx: Wipe out EREMOVE from sgx_free_epc_page()

2021-03-01 Thread Kai Huang
On Mon, 2021-03-01 at 09:29 -0800, Sean Christopherson wrote: > On Mon, Mar 01, 2021, Kai Huang wrote: > > diff --git a/arch/x86/kernel/cpu/sgx/encl.c b/arch/x86/kernel/cpu/sgx/encl.c > > index 7449ef33f081..a7dc86e87a09 100644 > > --- a/arch/x86/kernel/cpu/sgx/encl.c > > +++

Re: [PATCH v5 05/14] vfio/mdev: idxd: add basic mdev registration and helper functions

2021-03-01 Thread Jason Gunthorpe
On Mon, Mar 01, 2021 at 05:23:47PM -0700, Dave Jiang wrote: > > So after looking at the code in vfio_pci_intrs.c, I agree that the set_irqs > code between VFIO_PCI and this driver can be made in common. Given that Alex > doesn't want a vfio_pci device embedded in the driver, idxd isn't a

Re: [PATCH v5 0/5] mm/hugetlb: Early cow on fork, and a few cleanups

2021-03-01 Thread Jason Gunthorpe
On Mon, Mar 01, 2021 at 04:28:46PM -0800, Andrew Morton wrote: > On Mon, 1 Mar 2021 09:11:51 -0500 Peter Xu wrote: > > > On Wed, Feb 17, 2021 at 06:35:42PM -0500, Peter Xu wrote: > > > v5: > > > - patch 4: change "int cow" into "bool cow" > > > - collect r-bs for Jason > > > > Andrew, > > > >

Re: [PATCH v5 0/5] mm/hugetlb: Early cow on fork, and a few cleanups

2021-03-01 Thread Andrew Morton
On Mon, 1 Mar 2021 09:11:51 -0500 Peter Xu wrote: > On Wed, Feb 17, 2021 at 06:35:42PM -0500, Peter Xu wrote: > > v5: > > - patch 4: change "int cow" into "bool cow" > > - collect r-bs for Jason > > Andrew, > > I just noticed 5.12-rc1 has released; is this series still possible to make it >

Re: [PATCH net] hv_netvsc: Fix validation in netvsc_linkstatus_callback()

2021-03-01 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Mon, 1 Mar 2021 19:25:30 +0100 you wrote: > Contrary to the RNDIS protocol specification, certain (pre-Fe) > implementations of Hyper-V's vSwitch did not account for the status > buffer field in the length of an RNDIS

Re: [PATCH V3 XRT Alveo 03/18] fpga: xrt: xclbin file helper functions

2021-03-01 Thread Lizhi Hou
Hi Tom, On 02/28/2021 08:54 AM, Tom Rix wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. On 2/26/21 1:23 PM, Lizhi Hou wrote: Hi Tom, snip I also do not

Re: [PATCH v5 05/14] vfio/mdev: idxd: add basic mdev registration and helper functions

2021-03-01 Thread Dave Jiang
On 2/10/2021 4:59 PM, Jason Gunthorpe wrote: On Fri, Feb 05, 2021 at 01:53:24PM -0700, Dave Jiang wrote: <-- cut for brevity --> +static int vdcm_idxd_set_msix_trigger(struct vdcm_idxd *vidxd, + unsigned int index, unsigned int start, +

Re: [PATCH v3 1/8] mm: Remove special swap entry functions

2021-03-01 Thread Alistair Popple
On Tuesday, 2 March 2021 4:46:42 AM AEDT Jason Gunthorpe wrote: > > I wish you could come up with a more descriptive word that special > here > > What I understand is this is true when the swap_offset is a pfn? Correct, and that points to a better name. Maybe is_pfn_swap_entry()? In which case

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

2021-03-01 Thread Stephen Rothwell
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: conflicting types for 'ibmvnic_remove' 5399 | static void ibmvnic_remove(struct vio_dev *dev) | ^~

[PATCH] c6x: Remove stale symlink 'scripts/dtc/include-prefixes/c6x'

2021-03-01 Thread Victor Erminpour
Remove stale symlink 'scripts/dtc/include-prefixes/c6x' Signed-off-by: Victor Erminpour --- scripts/dtc/include-prefixes/c6x | 1 - 1 file changed, 1 deletion(-) delete mode 12 scripts/dtc/include-prefixes/c6x diff --git a/scripts/dtc/include-prefixes/c6x

[PATCH] NFS: fs_context: validate UDP retrans to prevent shift out-of-bounds

2021-03-01 Thread Randy Dunlap
Fix shift out-of-bounds in xprt_calc_majortimeo(). This is caused by a garbage timeout (retrans) mount option being passed to nfs mount, in this case from syzkaller. If the protocol is XPRT_TRANSPORT_UDP, then 'retrans' is a shift value for a 64-bit long integer, so 'retrans' cannot be >= 64. If

RE: [PATCH 4.19 055/247] soc: aspeed: snoop: Add clock control logic

2021-03-01 Thread Yoo, Jae Hyun
> -Original Message- > From: Joel Stanley > Sent: Monday, March 1, 2021 2:44 PM > To: Greg Kroah-Hartman ; John Wang > ; Yoo, Jae Hyun > > Cc: Linux Kernel Mailing List ; > sta...@vger.kernel.org; Vernon Mauery ; > Sasha Levin > Subject: Re: [PATCH 4.19 055/247] soc: aspeed: snoop: Add

Upper bound mode for kernel timers

2021-03-01 Thread Josh Poimboeuf
Hi Thomas, As discussed on IRC: We had a report of a regression in the TCP keepalive timer. The user had a 3600s keepalive timer for preventing firewall disconnects (on a 3650s interval). They observed keepalive timers coming in up to four minutes late, causing unexpected disconnects. The

Re: [PATCH v3 5/8] mm: Device exclusive memory access

2021-03-01 Thread Jason Gunthorpe
On Fri, Feb 26, 2021 at 06:18:29PM +1100, Alistair Popple wrote: > +/** > + * make_device_exclusive_range() - Mark a range for exclusive use by a device > + * @mm: mm_struct of assoicated target process > + * @start: start of the region to mark for exclusive device access > + * @end: end address

[PATCH v2] docs: filesystem: Update smaps vm flag list to latest

2021-03-01 Thread Peter Xu
We've missed a few documentation when adding new VM_* flags. Add the missing pieces so they'll be in sync now. Signed-off-by: Peter Xu --- v2: - rebase --- Documentation/filesystems/proc.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/filesystems/proc.rst

Re: [PATCH] docs: filesystem: Update smaps vm flag list to latest

2021-03-01 Thread Peter Xu
On Mon, Mar 01, 2021 at 03:17:13PM -0700, Jonathan Corbet wrote: > Peter Xu writes: > > > We've missed a few documentation when adding new VM_* flags. Add the > > missing > > pieces so they'll be in sync now. > > > > Signed-off-by: Peter Xu > > --- > > Documentation/filesystems/proc.rst | 5

Re: [x86, build] 6dafca9780: WARNING:at_arch/x86/kernel/ftrace.c:#ftrace_verify_code

2021-03-01 Thread Sami Tolvanen
On Mon, Mar 1, 2021 at 3:45 PM Steven Rostedt wrote: > > On Mon, 1 Mar 2021 14:14:51 -0800 > Sami Tolvanen wrote: > > > Basically, the problem is that ftrace_replace_code() expects to find > > ideal_nops[NOP_ATOMIC5] here, which in this case is 66:66:66:66:90, > > while objtool has replaced the

[PATCH v2 1/5] userfaultfd: support minor fault handling for shmem

2021-03-01 Thread Axel Rasmussen
Modify the userfaultfd register API to allow registering shmem VMAs in minor mode. Modify the shmem mcopy implementation to support UFFDIO_CONTINUE in order to resolve such faults. Combine the shmem mcopy handler functions into a single shmem_mcopy_atomic_pte, which takes a mode parameter. This

[PATCH v2 5/5] userfaultfd/selftests: exercise minor fault handling shmem support

2021-03-01 Thread Axel Rasmussen
Enable test_uffdio_minor for test_type == TEST_SHMEM, and modify the test slightly to pass in / check for the right feature flags. Signed-off-by: Axel Rasmussen --- tools/testing/selftests/vm/userfaultfd.c | 19 ++- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git

[PATCH v2 3/5] userfaultfd/selftests: create alias mappings in the shmem test

2021-03-01 Thread Axel Rasmussen
Previously, we just allocated two shm areas: area_src and area_dst. With this commit, change this so we also allocate area_src_alias, and area_dst_alias. area_*_alias and area_* (respectively) point to the same underlying physical pages, but are different VMAs. In a future commit in this series,

[PATCH v2 2/5] userfaultfd/selftests: use memfd_create for shmem test type

2021-03-01 Thread Axel Rasmussen
This is a preparatory commit. In the future, we want to be able to setup alias mappings for area_src and area_dst in the shmem test, like we do in the hugetlb_shared test. With a VMA obtained via mmap(MAP_ANONYMOUS | MAP_SHARED), it isn't clear how to do this. So, mmap() with an fd, so we can

[PATCH v2 4/5] userfaultfd/selftests: reinitialize test context in each test

2021-03-01 Thread Axel Rasmussen
Currently, the context (fds, mmap-ed areas, etc.) are global. Each test mutates this state in some way, in some cases really "clobbering it" (e.g., the events test mremap-ing area_dst over the top of area_src, or the minor faults tests overwriting the count_verify values in the test areas). We run

[PATCH v2 0/5] userfaultfd: support minor fault handling for shmem

2021-03-01 Thread Axel Rasmussen
Base This series is based on top of my series which adds minor fault handling for hugetlbfs [1]. (And, therefore, it is based on 5.12-rc1 and Peter Xu's series for disabling huge pmd sharing as well.) [1]

Re: [x86, build] 6dafca9780: WARNING:at_arch/x86/kernel/ftrace.c:#ftrace_verify_code

2021-03-01 Thread Steven Rostedt
On Mon, 1 Mar 2021 14:14:51 -0800 Sami Tolvanen wrote: > Basically, the problem is that ftrace_replace_code() expects to find > ideal_nops[NOP_ATOMIC5] here, which in this case is 66:66:66:66:90, > while objtool has replaced the __fentry__ call with 0f:1f:44:00:00. > > As ideal_nops changes

Re: [PATCH v2] KVM: x86: Revise guest_fpu xcomp_bv field

2021-03-01 Thread Sean Christopherson
On Thu, Feb 25, 2021, Jing Liu wrote: > XCOMP_BV[63] field indicates that the save area is in the compacted > format and XCOMP_BV[62:0] indicates the states that have space allocated > in the save area, including both XCR0 and XSS bits enabled by the host > kernel. Use xfeatures_mask_all for

Re: [PATCH] sysctl: use min() helper for namecmp()

2021-03-01 Thread Kees Cook
On Sun, Feb 28, 2021 at 04:44:22PM +0900, Masahiro Yamada wrote: > (CC: Andrew Morton) > > A friendly reminder. > > > This is just a minor clean-up. > > If nobody picks it up, > I hope perhaps Andrew Morton will do. > > This patch: > https://lore.kernel.org/patchwork/patch/1360092/ > > > >

Re: [PATCH net] net: dsa: tag_mtk: fix 802.1ad VLAN egress

2021-03-01 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Tue, 2 Mar 2021 00:01:59 +0800 you wrote: > A different TPID bit is used for 802.1ad VLAN frames. > > Reported-by: Ilario Gelmetti > Fixes: f0af34317f4b ("net: dsa: mediatek: combine MediaTek tag with VLAN tag") >

[tip:x86/platform] BUILD SUCCESS 2430915f8291212f2bd2155176b817c34a18a2b1

2021-03-01 Thread kernel test robot
-a001-20210228 i386 randconfig-a002-20210228 x86_64 randconfig-a013-20210301 x86_64 randconfig-a016-20210301 x86_64 randconfig-a015-20210301 x86_64 randconfig-a014-20210301 x86_64 randconfig-a012-20210301 x86_64

Re: [PATCH] spi: cadence-quadspi: add missing of_node_put

2021-03-01 Thread Mark Brown
On Mon, 15 Feb 2021 19:04:25 +0800, angkery wrote: > Fix OF node leaks by calling of_node_put in > for_each_available_child_of_node when the cycle returns. > > Generated by: scripts/coccinelle/iterators/for_each_child.cocci Applied to

Re: [PATCH] scsi: ufs: Fix incorrect ufshcd_state after ufshcd_reset_and_restore()

2021-03-01 Thread Asutosh Das
On Mon, Mar 01 2021 at 11:19 -0800, Adrian Hunter wrote: If ufshcd_probe_hba() fails it sets ufshcd_state to UFSHCD_STATE_ERROR, however, if it is called again, as it is within a loop in ufshcd_reset_and_restore(), and succeeds, then it will not set the state back to UFSHCD_STATE_OPERATIONAL

Re: seccomp: Delay filter activation

2021-03-01 Thread Kees Cook
On Mon, Mar 01, 2021 at 02:21:56PM +0100, Christian Brauner wrote: > On Mon, Mar 01, 2021 at 12:09:09PM +0100, Christian Brauner wrote: > > On Sat, Feb 20, 2021 at 01:31:57AM -0800, Sargun Dhillon wrote: > > > We've run into a problem where attaching a filter can be quite messy > > > business

Re: [PATCH] spi: rockchip: avoid objtool warning

2021-03-01 Thread Mark Brown
On Thu, 25 Feb 2021 13:55:34 +0100, Arnd Bergmann wrote: > Building this file with clang leads to a an unreachable code path > causing a warning from objtool: > > drivers/spi/spi-rockchip.o: warning: objtool: > rockchip_spi_transfer_one()+0x2e0: sibling call from callable instruction > with

Re: [PATCH] spi: atmel: Drop unused variable

2021-03-01 Thread Mark Brown
On Thu, 18 Feb 2021 15:28:40 +0200, Tudor Ambarus wrote: > The DMA cap mask is no longer used since: > commit 7758e390699f ("spi: atmel: remove compat for non DT board when > requesting dma chan") > Drop it now. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git

Re: [PATCH] [v2] spi: rockchip: avoid objtool warning

2021-03-01 Thread Mark Brown
On Fri, 26 Feb 2021 15:00:48 +0100, Arnd Bergmann wrote: > Building this file with clang leads to a an unreachable code path > causing a warning from objtool: > > drivers/spi/spi-rockchip.o: warning: objtool: > rockchip_spi_transfer_one()+0x2e0: sibling call from callable instruction > with

Re: [PATCH] spi: omap2-mcspi: Activate pinctrl idle state during runtime suspend

2021-03-01 Thread Mark Brown
On Mon, 22 Feb 2021 03:32:43 +0100, Alexander Sverdlin wrote: > Set the (optional) idle pinctrl state during runtime suspend. This is the > same schema used in PL022 driver and can help with HW designs sharing > the SPI lines for different purposes. Applied to

Re: [PATCH] qcom: spmi-regulator: Add support for ULT LV_P50 and ULT P300

2021-03-01 Thread Mark Brown
On Thu, 25 Feb 2021 22:35:13 +0100, Konrad Dybcio wrote: > The ULT LV_P50 shares the same configuration as the other ULT LV_Pxxx > and the ULT P300 shares the same as the other ULT Pxxx. > > These two regulator types are found on PM8950 and its variants. Applied to

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

2021-03-01 Thread Mark Brown
On Tue, 16 Feb 2021 14:01:28 +0800, Axel Lin wrote: > The voltages in pf8x00_sw7_voltages are in ascendant order, so use > regulator_map_voltage_ascend. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: pf8x00: Use

Re: [PATCH] [v2] Input: Add "Share" button to Microsoft Xbox One controller.

2021-03-01 Thread Chris Ye
Hi Cameron, I was first thinking of adding a new XTYPE but then realized it is still XBox One but just a model with extra button, so adding MAP_SHARE_BUTTON would avoid adding a new XTYPE there. Addressed the name to be "Microsoft Xbox One X pad" and removed the {}, please review again, thanks!

Re: [PATCH v2] regulator: add missing call to of_node_put()

2021-03-01 Thread Mark Brown
On Fri, 26 Feb 2021 09:39:35 +0800, Yang Li wrote: > In one of the error paths of the for_each_child_of_node() loop, > add missing call to of_node_put(). > > Fix the following coccicheck warning: > ./drivers/regulator/scmi-regulator.c:343:1-23: WARNING: Function > "for_each_child_of_node" should

Re: [PATCH v2] regulator: pca9450: Clear PRESET_EN bit to fix BUCK1/2/3 voltage setting

2021-03-01 Thread Mark Brown
On Mon, 22 Feb 2021 12:52:20 +0100, Schrempf Frieder wrote: > The driver uses the DVS registers PCA9450_REG_BUCKxOUT_DVS0 to set the > voltage for the buck regulators 1, 2 and 3. This has no effect as the > PRESET_EN bit is set by default and therefore the preset values are used > instead, which

Re: [PATCH] ASoC: fsl_xcvr: move reset assert into runtime_resume

2021-03-01 Thread Mark Brown
On Mon, 22 Feb 2021 17:09:50 +0800, Shengjiu Wang wrote: > Move reset assert into runtime_resume since we > cannot rely on reset assert state when the device > is put out from suspend. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC:

Re: [PATCH 0/4] drop unneeded snd_soc_dai_set_drvdata

2021-03-01 Thread Mark Brown
On Sat, 13 Feb 2021 11:19:03 +0100, Julia Lawall wrote: > snd_soc_dai_set_drvdata is not needed when the set data comes from > snd_soc_dai_get_drvdata or dev_get_drvdata. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/4] ASoC: mmp-sspa: drop

Re: [PATCH] ASoC: Intel: boards: sof-wm8804: add check for PLL setting

2021-03-01 Thread Mark Brown
On Fri, 26 Feb 2021 18:56:53 +, Colin King wrote: > Currently the return from snd_soc_dai_set_pll is not checking for > failure, this is the only driver in the kernel that ignores this, > so it probably should be added for sake of completeness. Fix this > by adding an error return check.

Re: [PATCH] sound: soc/uniphier: Simplify the return expression of uniphier_aio_startup

2021-03-01 Thread Mark Brown
On Wed, 24 Feb 2021 16:54:07 +0800, dingsen...@163.com wrote: > Simplify the return expression in the aio-cpu.c. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] sound: soc/uniphier: Simplify the return expression of uniphier_aio_startup

[tip:locking/urgent] BUILD SUCCESS 8b97c027dfe4ba195be08fd0e18f716005763b8a

2021-03-01 Thread kernel test robot
-a002-20210228 x86_64 randconfig-a013-20210301 x86_64 randconfig-a016-20210301 x86_64 randconfig-a015-20210301 x86_64 randconfig-a014-20210301 x86_64 randconfig-a012-20210301 x86_64 randconfig-a011-20210301 i386

Re: [PATCH 0/4] ASoC: rt*: Constify static structs

2021-03-01 Thread Mark Brown
On Wed, 24 Feb 2021 22:19:14 +0100, Rikard Falkeborn wrote: > Constify a number of static structs that are never modified in RealTek > codecs. The most important patches are the first two, which constifies > snd_soc_dai_ops and sdw_slave_ops, both which contain function pointers. > The other two

Re: [PATCH] ASoC: constify of_phandle_args in snd_soc_get_dai_name()

2021-03-01 Thread Mark Brown
On Sun, 21 Feb 2021 16:30:24 +0100, Krzysztof Kozlowski wrote: > The pointer to of_phandle_args passed to snd_soc_get_dai_name() and > of_xlate_dai_name() implementations is not modified. Since it is being > used only to translate passed OF node to a DAI name, it should not be > modified, so mark

Re: [PATCH] ASoC: fsl_sai: Add pm qos cpu latency support

2021-03-01 Thread Mark Brown
On Mon, 22 Feb 2021 16:40:20 +0800, Shengjiu Wang wrote: > On SoCs such as i.MX7ULP, cpuidle has some levels which > may disable system/bus clocks, so need to add pm_qos to > prevent cpuidle from entering low level idles and make sure > system/bus clocks are enabled when sai is active. Applied to

Re: [PATCH 0/9] ASoC: fsl: remove cppcheck warnings

2021-03-01 Thread Mark Brown
On Fri, 19 Feb 2021 17:29:28 -0600, Pierre-Louis Bossart wrote: > Nothing critical and no functional changes. > > The only change that needs attention if the 'fsl_ssi: remove > unnecessary tests' patch, where variables are to zero, then tested to > set register fields. Either the tests are indeed

[tip:perf/urgent] BUILD SUCCESS a8abc881981762631a22568d5e4b2c0ce4aeb15c

2021-03-01 Thread kernel test robot
randconfig-a002-20210228 x86_64 randconfig-a013-20210301 x86_64 randconfig-a016-20210301 x86_64 randconfig-a015-20210301 x86_64 randconfig-a014-20210301 x86_64 randconfig-a012-20210301 x86_64 randconfig

Re: [PATCH][next] ASoC: codecs: lpass-rx-macro: remove redundant initialization of variable hph_pwr_mode

2021-03-01 Thread Mark Brown
On Mon, 15 Feb 2021 20:05:01 +, Colin King wrote: > The variable hph_pwr_mode is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. Applied to

[tip:sched/urgent] BUILD SUCCESS fba111913e51a934eaad85734254eab801343836

2021-03-01 Thread kernel test robot
i386 randconfig-a002-20210228 x86_64 randconfig-a013-20210301 x86_64 randconfig-a016-20210301 x86_64 randconfig-a015-20210301 x86_64 randconfig-a014-20210301 x86_64 randconfig-a012-20210301 x86_64

[PATCH] [v3] Input: Add "Share" button to Microsoft Xbox One controller.

2021-03-01 Thread Chris Ye
Add "Share" button input capability and input event mapping for Microsoft Xbox One controller. Fixed Microsoft Xbox One controller share button not working under USB connection. Signed-off-by: Chris Ye --- drivers/input/joystick/xpad.c | 8 +++- 1 file changed, 7 insertions(+), 1

Re: [PATCH net] net: l2tp: reduce log level when passing up invalid packets

2021-03-01 Thread Matthias Schiffer
On 2/23/21 10:47 AM, Tom Parkin wrote: On Mon, Feb 22, 2021 at 14:31:38 -0800, Jakub Kicinski wrote: On Mon, 22 Feb 2021 17:40:16 +0100 Matthias Schiffer wrote: This will not be sufficient for my usecase: To stay compatible with older versions of fastd, I can't set the T flag in the first

[RFC PATCH v4 3/3] scheduler: Add cluster scheduler level for x86

2021-03-01 Thread Barry Song
From: Tim Chen There are x86 CPU architectures (e.g. Jacobsville) where L2 cahce is shared among a cluster of cores instead of being exclusive to one single core. To prevent oversubscription of L2 cache, load should be balanced between such L2 clusters, especially for tasks with no shared data.

RE: [PATCH v3 6/8] mm: Selftests for exclusive device memory

2021-03-01 Thread Ralph Campbell
> From: Alistair Popple > Sent: Thursday, February 25, 2021 11:19 PM > To: linux...@kvack.org; nouv...@lists.freedesktop.org; > bske...@redhat.com; a...@linux-foundation.org > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; dri- > de...@lists.freedesktop.org; John Hubbard ; Ralph >

[RFC PATCH v4 2/3] scheduler: add scheduler level for clusters

2021-03-01 Thread Barry Song
ARM64 chip Kunpeng 920 has 6 or 8 clusters in each NUMA node, and each cluster has 4 cpus. All clusters share L3 cache data, but each cluster has local L3 tag. On the other hand, each clusters will share some internal system bus. This means cache coherence overhead inside one cluster is much less

[RFC PATCH v4 0/3] scheduler: expose the topology of clusters and add cluster scheduler

2021-03-01 Thread Barry Song
ARM64 server chip Kunpeng 920 has 6 or 8 clusters in each NUMA node, and each cluster has 4 cpus. All clusters share L3 cache data while each cluster has local L3 tag. On the other hand, each cluster will share some internal system bus. This means cache is much more affine inside one cluster than

[RFC PATCH v4 1/3] topology: Represent clusters of CPUs within a die.

2021-03-01 Thread Barry Song
From: Jonathan Cameron Both ACPI and DT provide the ability to describe additional layers of topology between that of individual cores and higher level constructs such as the level at which the last level cache is shared. In ACPI this can be represented in PPTT as a Processor Hierarchy Node

Re: [PATCH v6 08/12] fork: Clear PASID for new mm

2021-03-01 Thread Jacob Pan
Hi Fenghua, On Thu, 25 Feb 2021 22:17:11 +, Fenghua Yu wrote: > Hi, Jean, > > On Wed, Feb 24, 2021 at 11:19:27AM +0100, Jean-Philippe Brucker wrote: > > Hi Fenghua, > > > > [Trimmed the Cc list] > > > > On Mon, Jul 13, 2020 at 04:48:03PM -0700, Fenghua Yu wrote: > > > When a new mm is

[PATCH] usb: serial: io_edgeport: fix memory leak in edge_startup

2021-03-01 Thread Pavel Skripkin
sysbot found memory leak in edge_startup(). The problem was that when an error was received from the usb_submit_urb(), nothing was cleaned up. Reported-by: syzbot+59f777bdcbdd7eea5...@syzkaller.appspotmail.com Signed-off-by: Pavel Skripkin --- drivers/usb/serial/io_edgeport.c | 26

RE: [PATCH v3 5/8] mm: Device exclusive memory access

2021-03-01 Thread Ralph Campbell
> From: Alistair Popple > Sent: Thursday, February 25, 2021 11:18 PM > To: linux...@kvack.org; nouv...@lists.freedesktop.org; > bske...@redhat.com; a...@linux-foundation.org > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; dri- > de...@lists.freedesktop.org; John Hubbard ; Ralph >

Re: [PATCH 4.19 055/247] soc: aspeed: snoop: Add clock control logic

2021-03-01 Thread Joel Stanley
On Mon, 1 Mar 2021 at 16:37, Greg Kroah-Hartman wrote: > > From: Jae Hyun Yoo > > [ Upstream commit 3f94cf15583be554df7aaa651b8ff8e1b68fbe51 ] > > If LPC SNOOP driver is registered ahead of lpc-ctrl module, LPC > SNOOP block will be enabled without heart beating of LCLK until > lpc-ctrl enables

Re: [PATCH 5.10 000/661] 5.10.20-rc2 review

2021-03-01 Thread Florian Fainelli
On 3/1/21 11:37 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.10.20 release. > There are 661 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

Re: [PATCHv2 3/4] coresight: etm4x: Add support to exclude kernel mode tracing

2021-03-01 Thread Doug Anderson
Hi, On Mon, Mar 1, 2021 at 11:05 AM Sai Prakash Ranjan wrote: > > On production systems with ETMs enabled, it is preferred to exclude > kernel mode(NS EL1) tracing for security concerns and support only > userspace(NS EL0) tracing. Perf subsystem interface uses the newly > introduced kernel

Re: [PATCH v1 03/15] powerpc/uaccess: Remove __get/put_user_inatomic()

2021-03-01 Thread Daniel Axtens
Christophe Leroy writes: > Since commit 662bbcb2747c ("mm, sched: Allow uaccess in atomic with > pagefault_disable()"), __get/put_user() can be used in atomic parts > of the code, therefore the __get/put_user_inatomic() introduced > by commit e68c825bb016 ("[POWERPC] Add inatomic versions of

Re: [PATCHv2 2/4] perf evsel: Print warning for excluding kernel mode instruction tracing

2021-03-01 Thread Doug Anderson
Hi, On Mon, Mar 1, 2021 at 11:05 AM Sai Prakash Ranjan wrote: > > Add a warning message to check CONFIG_EXCLUDE_KERNEL_HW_ITRACE kernel > config which excludes kernel mode instruction tracing to help perf tool > users identify the perf event open failure when they attempt kernel mode > tracing

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

2021-03-01 Thread Dave Chinner
On Mon, Mar 01, 2021 at 12:55:53PM -0800, Dan Williams wrote: > On Sun, Feb 28, 2021 at 2:39 PM Dave Chinner wrote: > > > > On Sat, Feb 27, 2021 at 03:40:24PM -0800, Dan Williams wrote: > > > On Sat, Feb 27, 2021 at 2:36 PM Dave Chinner wrote: > > > > On Fri, Feb 26, 2021 at 02:41:34PM -0800,

Re: [PATCHv2 1/4] perf/core: Add support to exclude kernel mode PMU tracing

2021-03-01 Thread Doug Anderson
Hi, On Mon, Mar 1, 2021 at 11:05 AM Sai Prakash Ranjan wrote: > > Hardware assisted tracing families such as ARM Coresight, Intel PT > provides rich tracing capabilities including instruction level > tracing and accurate timestamps which are very useful for profiling > and also pose a

Re: [PATCHv2 4/4] coresight: etm3x: Add support to exclude kernel mode tracing

2021-03-01 Thread Doug Anderson
Hi, On Mon, Mar 1, 2021 at 11:05 AM Sai Prakash Ranjan wrote: > > On production systems with ETMs enabled, it is preferred to exclude > kernel mode(NS EL1) tracing for security concerns and support only > userspace(NS EL0) tracing. Perf subsystem interface uses the newly > introduced kernel

[PATCH v9 4/6] userfaultfd: add UFFDIO_CONTINUE ioctl

2021-03-01 Thread Axel Rasmussen
This ioctl is how userspace ought to resolve "minor" userfaults. The idea is, userspace is notified that a minor fault has occurred. It might change the contents of the page using its second non-UFFD mapping, or not. Then, it calls UFFDIO_CONTINUE to tell the kernel "I have ensured the page

Re: [PATCH V6] x86/mm: Tracking linear mapping split events

2021-03-01 Thread Tejun Heo
Hello, On Thu, Feb 18, 2021 at 03:57:44PM -0800, Saravanan D wrote: > To help with debugging the sluggishness caused by TLB miss/reload, > we introduce monotonic hugepage [direct mapped] split event counts since > system state: SYSTEM_RUNNING to be displayed as part of > /proc/vmstat in x86

Re: [PATCH v2 1/2] tty/serial: Add rx-tx-swap OF option to stm32-usart

2021-03-01 Thread Martin DEVERA
On 3/1/21 11:28 AM, Fabrice Gasnier wrote: On 2/27/21 5:41 PM, Martin Devera wrote: STM32 F7/H7 usarts supports RX & TX pin swapping. Add option to turn it on. Tested on STM32MP157. Signed-off-by: Martin Devera --- drivers/tty/serial/stm32-usart.c | 3 ++- drivers/tty/serial/stm32-usart.h

[PATCH v9 5/6] userfaultfd: update documentation to describe minor fault handling

2021-03-01 Thread Axel Rasmussen
Reword / reorganize things a little bit into "lists", so new features / modes / ioctls can sort of just be appended. Describe how UFFDIO_REGISTER_MODE_MINOR and UFFDIO_CONTINUE can be used to intercept and resolve minor faults. Make it clear that COPY and ZEROPAGE are used for MISSING faults,

Re: [PATCH v2 1/4] KVM: vmx/pmu: Add MSR_ARCH_LBR_DEPTH emulation for Arch LBR

2021-03-01 Thread Sean Christopherson
On Wed, Feb 03, 2021, Like Xu wrote: > @@ -348,10 +352,26 @@ static bool intel_pmu_handle_lbr_msrs_access(struct > kvm_vcpu *vcpu, > return true; > } > > +/* > + * Check if the requested depth values is supported > + * based on the bits [0:7] of the guest cpuid.1c.eax. > + */ > +static

Re: [PATCH 1/1] docs: arm: /chosen node parameters

2021-03-01 Thread Jonathan Corbet
Heinrich Schuchardt writes: > Add missing items to table of parameters set in the /chosen node by the EFI > stub. > > Signed-off-by: Heinrich Schuchardt > --- > Documentation/arm/uefi.rst | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/arm/uefi.rst

Re: [PATCH v1 01/15] powerpc/uaccess: Remove __get_user_allowed() and unsafe_op_wrap()

2021-03-01 Thread Segher Boessenkool
On Tue, Mar 02, 2021 at 09:02:54AM +1100, Daniel Axtens wrote: > Checkpatch does have one check that is relevant: > > CHECK: Macro argument reuse 'p' - possible side-effects? > #36: FILE: arch/powerpc/include/asm/uaccess.h:482: > +#define unsafe_get_user(x, p, e) do {

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

2021-03-01 Thread Marten Lindahl
Hi Adrian! Thank you for your comments! On Mon, Mar 01, 2021 at 11:40:03AM +0100, Adrian Hunter wrote: > On 1/03/21 10:50 am, Ulf Hansson wrote: > > + Adrian > > > > On Tue, 16 Feb 2021 at 23:43, Mårten Lindahl > > wrote: > >> > >> Sometimes SD cards that has been run for a long time enters a

[PATCH v9 6/6] userfaultfd/selftests: add test exercising minor fault handling

2021-03-01 Thread Axel Rasmussen
Fix a dormant bug in userfaultfd_events_test(), where we did `return faulting_process(0)` instead of `exit(faulting_process(0))`. This caused the forked process to keep running, trying to execute any further test cases after the events test in parallel with the "real" process. Add a simple test

[PATCH v9 3/6] userfaultfd: hugetlbfs: only compile UFFD helpers if config enabled

2021-03-01 Thread Axel Rasmussen
For background, mm/userfaultfd.c provides a general mcopy_atomic implementation. But some types of memory (i.e., hugetlb and shmem) need a slightly different implementation, so they provide their own helpers for this. In other words, userfaultfd is the only caller of these functions. This patch

[PATCH v9 2/6] userfaultfd: disable huge PMD sharing for MINOR registered VMAs

2021-03-01 Thread Axel Rasmussen
As the comment says: for the MINOR fault use case, although the page might be present and populated in the other (non-UFFD-registered) half of the mapping, it may be out of date, and we explicitly want userspace to get a minor fault so it can check and potentially update the page's contents. Huge

[PATCH v9 0/6] userfaultfd: add minor fault handling

2021-03-01 Thread Axel Rasmussen
Base This series is based on v5.12-rc1. Additionally, this series depends on Peter Xu's series to allow disabling huge pmd sharing. [1] https://lore.kernel.org/patchwork/cover/1382204/ Changelog = v8->v9: - Removed an unneeded double !! from a VM_BUG_ON check in handle_userfault.

[PATCH v9 1/6] userfaultfd: add minor fault registration mode

2021-03-01 Thread Axel Rasmussen
This feature allows userspace to intercept "minor" faults. By "minor" faults, I mean the following situation: Let there exist two mappings (i.e., VMAs) to the same page(s). One of the mappings is registered with userfaultfd (in minor mode), and the other is not. Via the non-UFFD mapping, the

Re: [PATCH 1/2] fs: eventpoll: fix comments & kernel-doc notation

2021-03-01 Thread Jonathan Corbet
Randy Dunlap writes: > Use the documented kernel-doc format for function Return: descriptions. > Begin constant values in kernel-doc comments with '%'. > > Remove kernel-doc "/**" from 2 functions that are not documented with > kernel-doc notation. > > Fix typos, punctuation, & grammar. > > Also

Re: [PATCH 5.4 000/338] 5.4.102-rc2 review

2021-03-01 Thread Florian Fainelli
On 3/1/21 11:47 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.4.102 release. > There are 338 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

Re: [PATCH] Documentation: ioctl: add entry for nsfs.h

2021-03-01 Thread Jonathan Corbet
Randy Dunlap writes: > All userspace ioctls major/magic number should be documented in > Documentation/userspace-api/ioctl/ioctl-number.rst, so add > the entry for . > > Signed-off-by: Randy Dunlap > Cc: Andrey Vagin > Cc: Serge Hallyn > Cc: Eric W. Biederman > Cc: linux-...@vger.kernel.org

Re: [PATCH v1 02/15] powerpc/uaccess: Define ___get_user_instr() for ppc32

2021-03-01 Thread Daniel Axtens
Hi Christophe, > +#else /* !CONFIG_PPC64 */ > +#define ___get_user_instr(gu_op, dest, ptr) \ > + gu_op((dest).val, (u32 __user *)(ptr)) > +#endif /* CONFIG_PPC64 */ > > #define get_user_instr(x, ptr) \ > ___get_user_instr(get_user, x, ptr) > @@ -91,18 +95,6

Re: [PATCH] docs: networking: bonding.rst Fix a typo in bonding.rst

2021-03-01 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Mon, 1 Mar 2021 21:28:23 +0900 you wrote: > This patch fixes a spelling typo in bonding.rst. > > Signed-off-by: Masanari Iida > --- > Documentation/networking/bonding.rst | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH] Documentation: Replace more lkml.org links with lore

2021-03-01 Thread Jonathan Corbet
Kees Cook writes: > As started by commit 05a5f51ca566 ("Documentation: Replace lkml.org > links with lore"), replace a few more scattered lkml.org links with > lore to better use a single source that's more likely to stay available > long-term. > > Signed-off-by: Kees Cook > --- > CREDITS

[tip:timers/urgent] BUILD SUCCESS 05f7fcc675f50001a30b8938c05d11ca9f599f8c

2021-03-01 Thread kernel test robot
randconfig-a006-20210228 i386 randconfig-a005-20210228 i386 randconfig-a004-20210228 i386 randconfig-a003-20210228 i386 randconfig-a001-20210228 i386 randconfig-a002-20210228 i386 randconfig-a005-20210301

Re: [PATCH v1] microblaze: tag highmem_setup() with __meminit

2021-03-01 Thread Oscar Salvador
On Mon, Mar 01, 2021 at 12:47:49PM +0100, David Hildenbrand wrote: > With commit a0cd7a7c4bc0 ("mm: simplify free_highmem_page() and > free_reserved_page()") the kernel test robot complains about a warning: > > WARNING: modpost: vmlinux.o(.text.unlikely+0x23ac): Section mismatch in > reference

Re: [PATCH] docs: filesystem: Update smaps vm flag list to latest

2021-03-01 Thread Jonathan Corbet
Peter Xu writes: > We've missed a few documentation when adding new VM_* flags. Add the missing > pieces so they'll be in sync now. > > Signed-off-by: Peter Xu > --- > Documentation/filesystems/proc.rst | 5 + > 1 file changed, 5 insertions(+) So this patch doesn't apply; what version of

Re: [x86, build] 6dafca9780: WARNING:at_arch/x86/kernel/ftrace.c:#ftrace_verify_code

2021-03-01 Thread Sami Tolvanen
On Sun, Feb 28, 2021 at 11:25 PM kernel test robot wrote: > > > Greeting, > > FYI, we noticed the following commit (built with clang-13): > > commit: 6dafca97803309c3cb5148d449bfa711e41ddef2 ("x86, build: use objtool > mcount") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git

Re: [PATCH v3 03/25] mm/vmstat: Add folio stat wrappers

2021-03-01 Thread Matthew Wilcox
On Mon, Mar 01, 2021 at 04:17:39PM -0500, Zi Yan wrote: > On 28 Jan 2021, at 2:03, Matthew Wilcox (Oracle) wrote: > > Allow page counters to be more readily modified by callers which have > > a folio. Name these wrappers with 'stat' instead of 'state' as requested > > Shouldn’t we change the

AW: [PATCH 0/8] USB Audio Gadget part 2: Feedback endpoint, Volume/Mute support

2021-03-01 Thread Johannes Freyberger
Hi Ruslan, thanks a lot for your quick answer. > -Ursprüngliche Nachricht- > Von: Ruslan Bilovol > Gesendet: Montag, 1. März 2021 22:34 > An: Johannes Freyberger > Cc: Felipe Balbi ; Jonathan Corbet ; > Greg Kroah-Hartman ; Glenn Schmottlach > ; linux-...@vger.kernel.org; linux- >

Re: [PATCH] Documentation/submitting-patches: Extend commit message layout description

2021-03-01 Thread Jonathan Corbet
Borislav Petkov writes: > From: Borislav Petkov > Subject: [PATCH] Documentation/submitting-patches: Extend commit message > layout description > > Add more blurb about the level of detail that should be contained in a > patch's commit message. Extend and make more explicit what text should >

Re: [PATCH v3 0/3] docs: arm: Improvements to Marvell SoC documentation

2021-03-01 Thread Jonathan Corbet
Lubomir Rintel writes: > Hi, > > please consider applying the patches chained to this message. > > The objective is to deal with the a large amount of dead links to > material that often comes handy in marvel.rst; and improve some details > along the way. > > Compared to v2, the patches "[PATCH

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