Re: [PATCH v3 1/1] x86/tdx: Handle MWAIT, MONITOR and WBINVD

2021-03-29 Thread Andi Kleen
> > No, if these instructions take a #VE then they were executed at CPL=0. > > MONITOR > > and MWAIT will #UD without VM-Exit->#VE. Same for WBINVD, s/#UD/#GP. > > Dare I ask about XSETBV? XGETBV does not cause a #VE, it just works normally. The guest has full AVX capabilities. -Andi

[PATCH] linux/memcontrol.h: Remove duplicate struct declaration

2021-03-29 Thread Wan Jiabing
struct mem_cgroup is declared twice. One has been declared at forward struct declaration. Remove the duplicate. Signed-off-by: Wan Jiabing --- include/linux/memcontrol.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index

Re: [PATCH v5 4/4] fs: unicode: Add utf8 module and a unicode layer

2021-03-29 Thread Eric Biggers
On Tue, Mar 30, 2021 at 02:12:40AM +0530, Shreeya Patel wrote: > diff --git a/fs/unicode/Kconfig b/fs/unicode/Kconfig > index 2c27b9a5cd6c..ad4b837f2eb2 100644 > --- a/fs/unicode/Kconfig > +++ b/fs/unicode/Kconfig > @@ -2,13 +2,26 @@ > # > # UTF-8 normalization > # > +# CONFIG_UNICODE will be

Re: [PATCH v2 00/16] clk: st: embed clock outputs within drivers

2021-03-29 Thread Stephen Boyd
Quoting Alain Volmat (2021-03-25 00:50:02) > Most of ST clock drivers used by STi platform are updated in > order to introduce clock outputs informations within each drivers > and thus allow to avoid having to rely on clock-output-names properties > within DT clock nodes. > For that purpose,

Re: [PATCH v1 5/5] cpuidle: menu: Take negative "sleep length" values into account

2021-03-29 Thread Zhou Ti (x2019cwm)
On Mon 2021-03-29 14:37 Rafael J. Wysocki wrote: > Make the menu governor check the tick_nohz_get_next_hrtimer() > return value so as to avoid dealing with negative "sleep length" > values and make it use that value directly when the tick is stopped. > > While at it, rename local variable

Re: [Patch V2 13/13] genirq/msi: Provide helpers to return Linux IRQ/dev_msi hw IRQ number

2021-03-29 Thread Dey, Megha
Hi Marc, On 3/26/2021 6:28 PM, Marc Zyngier wrote: On Fri, 26 Mar 2021 01:02:43 +, "Dey, Megha" wrote: Hi Marc, On 3/25/2021 10:53 AM, Marc Zyngier wrote: On Fri, 26 Feb 2021 20:11:17 +, Megha Dey wrote: From: Dave Jiang Add new helpers to get the Linux IRQ number and device

Re: [Question] Is there a race window between swapoff vs synchronous swap_readpage

2021-03-29 Thread Huang, Ying
Hi, Miaohe, Miaohe Lin writes: > Hi all, > I am investigating the swap code, and I found the below possible race window: > > CPU 1 CPU 2 > - - > do_swap_page > skip swapcache case

Re: [PATCH] mm: add ___GFP_NOINIT flag which disables zeroing on alloc

2021-03-29 Thread Hyunsoon Kim
On Mon, Mar 29, 2021 at 12:53:48PM +0200, David Hildenbrand wrote: > On 29.03.21 07:29, Hyunsoon Kim wrote: > >This patch allows programmer to avoid zero initialization on page > >allocation even when the kernel config "CONFIG_INIT_ON_ALLOC_DEFAULT" > >is enabled. The configuration is made to

[PATCH] linux/trace_events.h: Remove duplicate struct declaration

2021-03-29 Thread Wan Jiabing
struct trace_array is declared twice. One has been declared at forward struct declaration. Remove the duplicate. And sort these forward declarations alphabetically. Signed-off-by: Wan Jiabing --- include/linux/trace_events.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff

Re: [PATCH v5 2/4] fs: unicode: Rename function names from utf8 to unicode

2021-03-29 Thread Eric Biggers
On Tue, Mar 30, 2021 at 02:12:38AM +0530, Shreeya Patel wrote: > utf8data.h_shipped has a large database table which is an auto-generated > decodification trie for the unicode normalization functions and it is not > necessary to carry this large table in the kernel. > Goal is to make UTF-8

Re: [PATCH 1/3] fs/dcache: Add d_clear_dir_neg_dentries()

2021-03-29 Thread Eric Biggers
On Sun, Mar 28, 2021 at 11:43:54AM -0300, André Almeida wrote: > For directories with negative dentries that are becoming case-insensitive > dirs, we need to remove all those negative dentries, otherwise they will > become dangling dentries. During the creation of a new file, if a d_hash >

Re: [PATCH] MIPS: Loongson64: enable CONFIG_USB_SERIAL_PL2303

2021-03-29 Thread Jiaxun Yang
On Mon, Mar 29, 2021, at 3:15 PM, Qing Zhang wrote: > When using the Loongson-3A4000 machine for serial port debugging, > there is no /dev/ttyUSB* output, which makes the serial port unavailable, > For convenience, we open this configuration. > > zhangqing@loongson-pc:~$ cat

[PATCH] arm64: dts: qcom: Move rmtfs memory region

2021-03-29 Thread Sujit Kautkar
Move rmtfs memory region so that it does not overlap with system RAM (kernel data) when KAsan is enabled. This puts rmtfs right after mba_mem which is not supposed to increase beyond 0x9460 Signed-off-by: Sujit Kautkar --- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 +-

Re:Re: [PATCH] amd: display: dc: struct dc_state is declared twice

2021-03-29 Thread 万家兵
>On Sat, Mar 27, 2021 at 3:28 AM Wan Jiabing wrote: >> >> struct dc_state has been declared at 273rd line. >> Remove the duplicate. >> Delete duplicate blank lines. > >Can you split these into separate patches? > >Alex OK. But in fact, what I did is simple. The most important thing is

Re: [PATCH v2 3/4] hwmon: smpro: Add Ampere's Altra smpro-hwmon driver

2021-03-29 Thread Guenter Roeck
On 3/28/21 6:52 PM, Quan Nguyen wrote: > This commit adds support for Ampere SMpro hwmon driver. This driver > supports accessing various CPU sensors provided by the SMpro co-processor > including temperature, power, voltages, and current. > > Signed-off-by: Quan Nguyen > --- >

Re: [PATCH v2 -next] arm64: smp: Add missing prototype for some smp.c functions

2021-03-29 Thread chenlifu
在 2021/3/29 20:28, Catalin Marinas 写道: On Mon, 29 Mar 2021 11:43:43 +0800, Chen Lifu wrote: In commit eb631bb5bf5b ("arm64: Support arch_irq_work_raise() via self IPIs") a new function "arch_irq_work_raise" was added without a prototype. In commit d914d4d49745 ("arm64: Implement

[PATCH -next] misc/pvpanic: fix return value check in pvpanic_pci_probe()

2021-03-29 Thread Qiheng Lin
In case of error, the function pci_iomap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Reported-by: Hulk Robot Signed-off-by: Qiheng Lin --- drivers/misc/pvpanic/pvpanic-pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2

RE: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs

2021-03-29 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Tuesday, March 30, 2021 12:32 AM > > On Wed, Mar 24, 2021 at 12:05:28PM -0700, Jacob Pan wrote: > > > > IMHO a use created PASID is either bound to a mm (current) at creation > > > time, or it will never be bound to a mm and its page table is under > > > user

[PATCH 0/4] usbip synchronize sysfs code paths

2021-03-29 Thread Shuah Khan
Fuzzing uncovered race condition between sysfs code paths in usbip drivers. Device connect/disconnect code paths initiated through sysfs interface are prone to races if disconnect happens during connect and vice versa. This problem is common to all drivers while it can be reproduced easily in

[PATCH 1/4] usbip: add sysfs_lock to synchronize sysfs code paths

2021-03-29 Thread Shuah Khan
Fuzzing uncovered race condition between sysfs code paths in usbip drivers. Device connect/disconnect code paths initiated through sysfs interface are prone to races if disconnect happens during connect and vice versa. This problem is common to all drivers while it can be reproduced easily in

[PATCH 3/4] usbip: vudc synchronize sysfs code paths

2021-03-29 Thread Shuah Khan
Fuzzing uncovered race condition between sysfs code paths in usbip drivers. Device connect/disconnect code paths initiated through sysfs interface are prone to races if disconnect happens during connect and vice versa. Use sysfs_lock to protect sysfs paths in vudc. Reported-and-tested-by:

[PATCH 2/4] usbip: stub-dev synchronize sysfs code paths

2021-03-29 Thread Shuah Khan
Fuzzing uncovered race condition between sysfs code paths in usbip drivers. Device connect/disconnect code paths initiated through sysfs interface are prone to races if disconnect happens during connect and vice versa. Use sysfs_lock to protect sysfs paths in stub-dev. Reported-and-tested-by:

[PATCH 4/4] usbip: synchronize event handler with sysfs code paths

2021-03-29 Thread Shuah Khan
Fuzzing uncovered race condition between sysfs code paths in usbip drivers. Device connect/disconnect code paths initiated through sysfs interface are prone to races if disconnect happens during connect and vice versa. Use sysfs_lock to synchronize event handler with sysfs paths in usbip drivers.

[PATCH] drm/msm: Fix removal of valid error case when checking speed_bin

2021-03-29 Thread John Stultz
Commit 7bf168c8fe8c ("drm/msm: Fix speed-bin support not to access outside valid memory"), reworked the nvmem reading of "speed_bin", but in doing so dropped handling of the -ENOENT case which was previously documented as "fine". That change resulted in the db845c board display to fail to start,

Re: [PATCH] KVM: X86: Properly account for guest CPU time when considering context tracking

2021-03-29 Thread Wanpeng Li
On Tue, 30 Mar 2021 at 01:15, Sean Christopherson wrote: > > +Thomas > > On Mon, Mar 29, 2021, Wanpeng Li wrote: > > From: Wanpeng Li > > > > The bugzilla https://bugzilla.kernel.org/show_bug.cgi?id=209831 > > reported that the guest time remains 0 when running a while true > > loop in the

[PATCH v1 7/7] bus: mhi: core: Improve state strings for debug messages

2021-03-29 Thread Bhaumik Bhatt
As of now abbreviations are being used for many state and execution environment strings. Improve and expand those such that debug messages are clear. Signed-off-by: Bhaumik Bhatt Reviewed-by: Manivannan Sadhasivam --- drivers/bus/mhi/core/init.c | 34 +- 1 file

[PATCH v1 2/7] bus: mhi: core: Wait for ready after an EDL firmware download

2021-03-29 Thread Bhaumik Bhatt
Currently, the firmware load handler returns after the EDL image is downloaded. Wait for an MHI READY transition instead as the specification expects so as to proceed with further bootup such as device entering Flash Programmer execution environment. Signed-off-by: Bhaumik Bhatt Reviewed-by:

[PATCH v1 0/7] MHI Emergency download and flash programmer support

2021-03-29 Thread Bhaumik Bhatt
Allow handling EDL mode after SYS_ERROR occurs by reading the execution environment post handling and move to power on reset state to accommodate the scenario. Handle EDL mode properly and wait for ready instead of just exiting from the firmware load. Allow use of the Flash Programmer execution

[PATCH v1 1/7] bus: mhi: core: Rely on accurate method to determine EDL mode

2021-03-29 Thread Bhaumik Bhatt
Relying on the current execution environment to determine if EDL image was downloaded should not be done as the execution environment can change at this point in error cases and we may misread it. Instead, MHI can rely on the local 'fw_name' variable as a safer alternative. Signed-off-by: Bhaumik

[PATCH v1 3/7] bus: mhi: core: Handle EDL mode entry appropriately

2021-03-29 Thread Bhaumik Bhatt
Device entering EDL or Emergency Download Mode will be in a SYS_ERROR MHI state. This requires MHI host to proceed with the EDL image download over BHI before device can enter an MHI READY state and proceed with further bootup. Allow this to be handled by relying on the execution environment check

[PATCH v1 4/7] bus: mhi: core: Add support for Flash Programmer execution environment

2021-03-29 Thread Bhaumik Bhatt
From: Carl Yin MHI WWAN modems support downloading firmware to NAND or eMMC using Firehose protocol with process as follows: 1. Modem boots up, enters AMSS execution environment and the device later enters EDL (Emergency Download) mode through any mechanism host can use such as a diag command.

[PATCH v1 6/7] bus: mhi: core: Wait for MHI READY state in most scenarios

2021-03-29 Thread Bhaumik Bhatt
When moving from SYS_ERROR transition to a different execution environment, MHI host relies on the BHI register read to spawn the next image download or wait for READY -> M0 states. The device can at times move the execution environment to mission mode when a pass through is expected, which can

Re: [PATCH 4.4 00/33] 4.4.264-rc1 review

2021-03-29 Thread Shuah Khan
On 3/29/21 1:57 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.264 release. There are 33 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

[PATCH v1 5/7] bus: mhi: core: Identify Flash Programmer as a mission mode use case

2021-03-29 Thread Bhaumik Bhatt
MHI power up can go through an EDL to Flash Programmer path when the device has a blank NAND. In those cases, mhi_sync_power_up() can timeout waiting for a mission mode execution environment. Allow a successful power up instead by identifying Flash Programmer as a valid mission mode execution

Re: [PATCH 4.9 00/53] 4.9.264-rc1 review

2021-03-29 Thread Shuah Khan
On 3/29/21 1:57 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.264 release. There are 53 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 4.19 00/72] 4.19.184-rc1 review

2021-03-29 Thread Shuah Khan
On 3/29/21 1:57 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.184 release. There are 72 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

Re: [PATCH 5.4 000/111] 5.4.109-rc1 review

2021-03-29 Thread Shuah Khan
On 3/29/21 1:57 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.109 release. There are 111 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

Re: [PATCH 5.10 000/219] 5.10.27-rc2 review

2021-03-29 Thread Shuah Khan
On 3/29/21 4:14 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.10.27 release. There are 219 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

Re: [PATCH 5.11 000/252] 5.11.11-rc2 review

2021-03-29 Thread Shuah Khan
On 3/29/21 4:14 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.11.11 release. There are 252 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

Re: v5.12.0-rc5: the kernel panics if FIPS mode is on

2021-03-29 Thread Eric Biggers
On Mon, Mar 29, 2021 at 09:56:18PM +, Dexuan Cui wrote: > Hi all, > The v5.12.0-rc5 kernel (1e43c377a79f) panics with fips=1. > > Please refer to the below panic call-trace. The kernel config file and > the full kernel messages are also attached. > > Is this a known issue? > > Thanks, > --

RE: [PATCH v2 1/8] mm/cma: change cma mutex to irq safe spinlock

2021-03-29 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Mike Kravetz [mailto:mike.krav...@oracle.com] > Sent: Tuesday, March 30, 2021 12:24 PM > To: linux...@kvack.org; linux-kernel@vger.kernel.org > Cc: Roman Gushchin ; Michal Hocko ; Shakeel Butt > ; Oscar Salvador ; David Hildenbrand > ; Muchun Song ; David

Re: [PATCH v3 2/2] usb: dwc3: Fix DRD mode change sequence following programming guide

2021-03-29 Thread Thinh Nguyen
Wesley Cheng wrote: > > > On 3/6/2021 3:39 PM, Thinh Nguyen wrote: >> Wesley Cheng wrote: >>> >>> On 1/7/2021 5:51 PM, John Stultz wrote: In reviewing the previous patch, Thinh Nguyen pointed out that the DRD mode change sequence should be like the following when switching from

linux-next: Fixes tag needs some work in the net-next tree

2021-03-29 Thread Stephen Rothwell
Hi all, In commit d24f511b04b8 ("tcp: fix tcp_min_tso_segs sysctl") Fixes tag Fixes: 47996b489bdc ("tcp: convert elligible sysctls to u8") has these problem(s): - Target SHA1 does not exist Maybe you meant Fixes: 4ecc1baf362c ("tcp: convert elligible sysctls to u8") -- Cheers,

Re: [PATCH v2 1/8] mm/cma: change cma mutex to irq safe spinlock

2021-03-29 Thread Roman Gushchin
On Mon, Mar 29, 2021 at 04:23:55PM -0700, Mike Kravetz wrote: > Ideally, cma_release could be called from any context. However, that is > not possible because a mutex is used to protect the per-area bitmap. > Change the bitmap to an irq safe spinlock. > > Signed-off-by: Mike Kravetz Acked-by:

Re: [PATCH v2 2/8] hugetlb: no need to drop hugetlb_lock to call cma_release

2021-03-29 Thread Roman Gushchin
On Mon, Mar 29, 2021 at 04:23:56PM -0700, Mike Kravetz wrote: > Now that cma_release is non-blocking and irq safe, there is no need to > drop hugetlb_lock before calling. > > Signed-off-by: Mike Kravetz > --- > mm/hugetlb.c | 6 -- > 1 file changed, 6 deletions(-) > > diff --git

Re: [PATCH v3 11/17] riscv: Convert to GENERIC_CMDLINE

2021-03-29 Thread Nick Kossifidis
Στις 2021-03-26 17:26, Rob Herring έγραψε: On Fri, Mar 26, 2021 at 8:20 AM Christophe Leroy wrote: Le 26/03/2021 à 15:08, Andreas Schwab a écrit : > On Mär 26 2021, Christophe Leroy wrote: > >> diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c >> index

Re: [PATCH 5.4 000/111] 5.4.109-rc1 review

2021-03-29 Thread Samuel Zou
On 2021/3/29 15:57, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.109 release. There are 111 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

Re: [PATCH 1/2] dt-bindings: devapc: Update bindings

2021-03-29 Thread Nina Wu
Hi, Matthias On Mon, 2021-03-29 at 13:16 +0200, Matthias Brugger wrote: > > On 26/03/2021 08:31, Nina Wu wrote: > > From: Nina Wu > > > > To support newer hardware architecture of devapc, > > update device tree bindings. > > > > Signed-off-by: Nina Wu > > --- > >

Re: [PATCH rfc 3/4] percpu: on demand chunk depopulation

2021-03-29 Thread Roman Gushchin
On Mon, Mar 29, 2021 at 11:12:34PM +, Dennis Zhou wrote: > On Mon, Mar 29, 2021 at 01:10:10PM -0700, Roman Gushchin wrote: > > On Mon, Mar 29, 2021 at 07:21:24PM +, Dennis Zhou wrote: > > > On Wed, Mar 24, 2021 at 12:06:25PM -0700, Roman Gushchin wrote: > > > > To return unused memory to

Re: [PATCH 2/2] soc: mediatek: Add mt8192 devapc driver

2021-03-29 Thread Nina Wu
Hi, Matthias On Mon, 2021-03-29 at 13:16 +0200, Matthias Brugger wrote: > As a general comment: > > Please split your patch in several, one introducing changes to the existing > code > base which are needed for newer SoCs (depending on the changes more then one) > and one which actually adds

Re: [PATCH] hwmon: (nzxt-kraken2) mark and order concurrent accesses

2021-03-29 Thread Guenter Roeck
On 3/29/21 5:21 PM, Jonas Malaco wrote: > On Mon, Mar 29, 2021 at 02:53:39PM -0700, Guenter Roeck wrote: >> On Mon, Mar 29, 2021 at 05:22:01AM -0300, Jonas Malaco wrote: >>> To avoid a spinlock, the driver explores concurrent memory accesses >>> between _raw_event and _read, having the former

Re: [PATCH 5.10 000/219] 5.10.27-rc2 review

2021-03-29 Thread Samuel Zou
On 2021/3/29 18:14, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.10.27 release. There are 219 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

[gustavoars-linux:testing/wab/hfsplus 2/2] include/linux/fortify-string.h:20:29: warning: '__builtin_memcpy' offset [65, 80] from the object at 'entry' is out of the bounds of referenced subobject 'us

2021-03-29 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wab/hfsplus head: 157ca109a1d4c5f8e0c85b636f134b83ba5433fa commit: 157ca109a1d4c5f8e0c85b636f134b83ba5433fa [2/2] hfsplus: Fix out-of-bounds warnings in __hfsplus_setxattr config: i386-randconfig-a006-20210329

[PATCH 10/10] erofs: enable big pcluster feature

2021-03-29 Thread Gao Xiang
From: Gao Xiang Enable COMPR_CFGS and BIG_PCLUSTER since the implementations are all settled properly. Signed-off-by: Gao Xiang --- fs/erofs/erofs_fs.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/erofs/erofs_fs.h b/fs/erofs/erofs_fs.h index

Re: [PATCH 4/6] mm: thp: refactor NUMA fault handling

2021-03-29 Thread Huang, Ying
Yang Shi writes: > When the THP NUMA fault support was added THP migration was not supported yet. > So the ad hoc THP migration was implemented in NUMA fault handling. Since > v4.14 > THP migration has been supported so it doesn't make too much sense to still > keep > another THP migration

[PATCH 07/10] erofs: support parsing big pcluster compress indexes

2021-03-29 Thread Gao Xiang
From: Gao Xiang When INCOMPAT_BIG_PCLUSTER sb feature is enabled, legacy compress indexes will also have the same on-disk header compact indexes to keep per-file configurations instead of leaving it zeroed. If ADVISE_BIG_PCLUSTER is set for a file, CBLKCNT will be loaded for each pcluster in

[PATCH 08/10] erofs: support parsing big pcluster compact indexes

2021-03-29 Thread Gao Xiang
From: Gao Xiang Different from non-compact indexes, several lclusters are packed as the compact form at once and an unique base blkaddr is stored for each pack, so each lcluster index would take less space on avarage (e.g. 2 bytes for COMPACT_2B.) btw, that is also why BIG_PCLUSTER switch should

[PATCH 09/10] erofs: support decompress big pcluster for lz4 backend

2021-03-29 Thread Gao Xiang
From: Gao Xiang Prior to big pcluster, there is only one compressed page so it'd easy to map this. However, when big pcluster is enabled, more work needs to be done to handle multiple compressed pages. In detail, - (maptype 0) if there is only one compressed page + no need to copy inplace

[PATCH 03/10] erofs: introduce physical cluster slab pools

2021-03-29 Thread Gao Xiang
From: Gao Xiang Since multiple pcluster sizes could be used at once, the number of compressed pages will become a variable factor. It's necessary to introduce slab pools rather than a single slab cache now. This limits the pclustersize to 1M (Z_EROFS_PCLUSTER_MAX_SIZE), and get rid of the

[PATCH 05/10] erofs: add big physical cluster definition

2021-03-29 Thread Gao Xiang
From: Gao Xiang Big pcluster indicates the size of compressed data for each physical pcluster is no longer fixed as block size, but could be more than 1 block (more accurately, 1 logical pcluster) When big pcluster feature is enabled for head0/1, delta0 of the 1st non-head lcluster index will

[PATCH 04/10] erofs: fix up inplace I/O pointer for big pcluster

2021-03-29 Thread Gao Xiang
From: Gao Xiang When picking up inplace I/O pages, it should be traversed in reverse order in aligned with the traversal order of file-backed online pages. Also, index should be updated together when preloading compressed pages. Previously, only page-sized pclustersize was supported so no

[PATCH 06/10] erofs: adjust per-CPU buffers according to max_pclusterblks

2021-03-29 Thread Gao Xiang
From: Gao Xiang Adjust per-CPU buffers on demand since big pcluster definition is available. Also, bail out unsupported pcluster size according to Z_EROFS_PCLUSTER_MAX_SIZE. Signed-off-by: Gao Xiang --- fs/erofs/decompressor.c | 16 fs/erofs/internal.h | 2 ++ 2 files

[PATCH 00/10] erofs: add big pcluster compression support

2021-03-29 Thread Gao Xiang
From: Gao Xiang Hi folks, This is the formal version of EROFS big pcluster support, which means EROFS can compress data into more than 1 fs block after this patchset. {p,l}cluster are EROFS-specific concepts, standing for `logical cluster' and `physical cluster' correspondingly. Logical

[PATCH 02/10] erofs: introduce multipage per-CPU buffers

2021-03-29 Thread Gao Xiang
From: Gao Xiang To deal the with the cases which inplace decompression is infeasible for some inplace I/O. Per-CPU buffers was introduced to get rid of page allocation latency and thrash for low-latency decompression algorithms such as lz4. For the big pcluster feature, introduce multipage

[PATCH 01/10] erofs: reserve physical_clusterbits[]

2021-03-29 Thread Gao Xiang
From: Gao Xiang Formal big pcluster design is actually more powerful / flexable than the previous thought whose pclustersize was fixed as power-of-2 blocks, which was obviously inefficient and space-wasting. Instead, pclustersize can now be set independently for each pcluster, so various

[PATCH v3] kernel/resource: Fix locking in request_free_mem_region

2021-03-29 Thread Alistair Popple
request_free_mem_region() is used to find an empty range of physical addresses for hotplugging ZONE_DEVICE memory. It does this by iterating over the range of possible addresses using region_intersects() to see if the range is free. region_intersects() obtains a read lock before walking the

Re: [RFC] clk: add boot clock support

2021-03-29 Thread Saravana Kannan
On Mon, Mar 29, 2021 at 2:53 PM Sebastian Reichel wrote: > > Hi, > > On Mon, Mar 29, 2021 at 01:03:20PM -0700, Saravana Kannan wrote: > > On Fri, Mar 26, 2021 at 2:52 AM Sebastian Reichel > > wrote: > > > On Thu, Mar 25, 2021 at 06:55:52PM -0700, Saravana Kannan wrote: > > > > On Thu, Mar 25,

[PATCH 1/3] drivers/tty/serial/8250: simplify Aspeed VUART SIRQ polarity DT config

2021-03-29 Thread Zev Weiss
The initial implementation of this configuration conflated the SIRQ polarity setting with the syscon eSPI/LPC strapping; this patch disentangles them by reducing the DT config to a simple boolean. Signed-off-by: Zev Weiss --- drivers/tty/serial/8250/8250_aspeed_vuart.c | 39

[PATCH 3/3] ARM: dts: aspeed: add ASRock E3C246D4I BMC

2021-03-29 Thread Zev Weiss
This is a relatively low-cost AST2500-based Xeon E-2100/E-2200 series mini-ITX board that we hope can provide a decent platform for OpenBMC development. This initial device-tree provides the necessary configuration for basic BMC functionality such as host power control, serial console and KVM

[PATCH 0/3] simplify Aspeed VUART SIRQ polarity DT config, add e3c246d4i BMC dts

2021-03-29 Thread Zev Weiss
This patch series reworks the existing aspeed,sirq-polarity-sense DT property as a simple boolean (aspeed,sirq-active-high) so as to disentangle the interrupt polarity from the eSPI/LPC strapping and updates the documentation accordingly. The third patch adds an in-tree consumer of this property

[PATCH 2/3] dt-bindings: serial: 8250: update for aspeed,sirq-active-high

2021-03-29 Thread Zev Weiss
Update DT bindings documentation for the new incarnation of the aspeed,sirq-polarity-sense property. Signed-off-by: Zev Weiss --- Documentation/devicetree/bindings/serial/8250.yaml | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git

Re: [PATCH] ethernet/netronome/nfp: Fix a use after free in nfp_bpf_ctrl_msg_rx

2021-03-29 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Mon, 29 Mar 2021 04:50:02 -0700 you wrote: > In nfp_bpf_ctrl_msg_rx, if > nfp_ccm_get_type(skb) == NFP_CCM_TYPE_BPF_BPF_EVENT is true, the skb > will be freed. But the skb is still used by nfp_ccm_rx(>ccm, skb). > > My

Re: [PATCH] hwmon: (nzxt-kraken2) mark and order concurrent accesses

2021-03-29 Thread Jonas Malaco
On Mon, Mar 29, 2021 at 02:53:39PM -0700, Guenter Roeck wrote: > On Mon, Mar 29, 2021 at 05:22:01AM -0300, Jonas Malaco wrote: > > To avoid a spinlock, the driver explores concurrent memory accesses > > between _raw_event and _read, having the former updating fields on a > > data structure while

Re: [PATCH 3/6] mm: migrate: teach migrate_misplaced_page() about THP

2021-03-29 Thread Huang, Ying
Yang Shi writes: > In the following patch the migrate_misplaced_page() will be used to migrate > THP > for NUMA faul too. Prepare to deal with THP. > > Signed-off-by: Yang Shi > --- > include/linux/migrate.h | 6 -- > mm/memory.c | 2 +- > mm/migrate.c| 2 +- > 3

[gustavoars-linux:testing/wab/hfsplus 2/2] fs/hfsplus/catalog.c:127:10: error: 'struct hfsplus_cat_folder' has no member named 'user_info'

2021-03-29 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wab/hfsplus head: 157ca109a1d4c5f8e0c85b636f134b83ba5433fa commit: 157ca109a1d4c5f8e0c85b636f134b83ba5433fa [2/2] hfsplus: Fix out-of-bounds warnings in __hfsplus_setxattr config: um-allmodconfig (attached as

RE: [Devel] Re: [PATCH] ACPICA: Fix a typo

2021-03-29 Thread Kaneda, Erik
> -Original Message- > From: Rafael J. Wysocki > Sent: Monday, March 29, 2021 5:48 AM > To: Bhaskar Chowdhury ; Kaneda, Erik > > Cc: Wysocki, Rafael J ; ACPI Devel Maling List > ; open list:ACPI COMPONENT ARCHITECTURE > (ACPICA) ; Linux Kernel Mailing List ker...@vger.kernel.org>;

Re: [PATCH v2 3/3] drm/mediatek: in struct mtk_hdmi, replace conn field with curr_conn ptr

2021-03-29 Thread Laurent Pinchart
Hi Dafna, Thank you for the patch. On Mon, Mar 29, 2021 at 05:36:32PM +0200, Dafna Hirschfeld wrote: > The mtk_hdmi does not support creating a bridge with a connector. > Therefore the field 'conn' should be removed from the mtk_hdmi struct. > It is replaced with a pointer curr_conn that points

Re: [PATCH net-next] hv_netvsc: Add error handling while switching data path

2021-03-29 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Mon, 29 Mar 2021 16:21:35 -0700 you wrote: > Add error handling in case of failure to send switching data path message > to the host. > > Reported-by: Shachar Raindel > Signed-off-by: Haiyang Zhang > > > [...]

Re: [PATCH v2 2/3] drm/mediatek: Don't support hdmi connector creation

2021-03-29 Thread Laurent Pinchart
Hi Dafna, Thank you for the patch. On Mon, Mar 29, 2021 at 05:36:31PM +0200, Dafna Hirschfeld wrote: > commit f01195148967 ("drm/mediatek: mtk_dpi: Create connector for bridges") > broke the display support for elm device since mtk_dpi calls > drm_bridge_attach with the flag

[PATCH 3/3] rtc: rtc_update_irq_enable: rework UIE emulation

2021-03-29 Thread Alexandre Belloni
Now that the core is aware of whether alarms are available, it is possible to decide whether UIE emulation is required before actually trying to set the alarm. This greatly simplifies rtc_update_irq_enable because there is now only one error value to track and is not relying on the return value

[PATCH 2/3] rtc: ds1307: remove flags

2021-03-29 Thread Alexandre Belloni
flags is now unused, drop it. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1307.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index 76d67c419f7d..089509d0a3a0 100644 --- a/drivers/rtc/rtc-ds1307.c +++

[PATCH 1/3] rtc: ds1307: replace HAS_ALARM by RTC_FEATURE_ALARM

2021-03-29 Thread Alexandre Belloni
The core now has RTC_FEATURE_ALARM for the driver to indicate whether alarms are available. Use that instead of HAS_ALARM to ensure the alarm callbacks are not even called. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ds1307.c | 42 +++- 1 file

Re: [PATCH v2 1/3] drm/mediatek: Switch the hdmi bridge ops to the atomic versions

2021-03-29 Thread Laurent Pinchart
Hi Dafna, Thank you for the patch. On Mon, Mar 29, 2021 at 05:36:30PM +0200, Dafna Hirschfeld wrote: > The bridge operation '.enable' and the audio cb '.get_eld' > access hdmi->conn. In the future we will want to support > the flag DRM_BRIDGE_ATTACH_NO_CONNECTOR and then we will > not have

Re: [PATCH] rtc: ds1307: set uie_unsupported if no interrupt is available

2021-03-29 Thread Alexandre Belloni
On 16/03/2021 19:04:14+0100, Lukasz Stelmach wrote: > OK, you are right. The problem seems to be elsewhere. > > How about this scnario? We call rtc_update_irq_enable(). We read rtc > with __rtc_read_time() and calculate the alarm time. We get through > rtc_timer_enqueue() and down to

Re: [PATCH v4 04/10] Input: wacom_i2c - Add touchscren properties

2021-03-29 Thread Alistair Francis
On Mon, Mar 29, 2021 at 3:08 PM Dmitry Torokhov wrote: > > On Thu, Mar 25, 2021 at 09:52:24PM -0400, Alistair Francis wrote: > > Connect touchscreen properties to the wacom_i2c. > > > > Signed-off-by: Alistair Francis > > --- > > v4: > > - Add touchscreen_report_pos() as well > > > >

Re: [PATCH v3 1/1] x86/tdx: Handle MWAIT, MONITOR and WBINVD

2021-03-29 Thread Andy Lutomirski
On Mon, Mar 29, 2021 at 4:42 PM Sean Christopherson wrote: > > On Mon, Mar 29, 2021, Kuppuswamy, Sathyanarayanan wrote: > > > > > > On 3/29/21 4:23 PM, Andy Lutomirski wrote: > > > > > > > On Mar 29, 2021, at 4:17 PM, Kuppuswamy Sathyanarayanan > > > > wrote: > > > > > > > > In non-root TDX

Re: Linux include/uapi/linux/libc-compat.h and Musl include/netinet/in.h incompatibility for __UAPI_DEF_IN6_ADDR_ALT

2021-03-29 Thread Dmitry V. Levin
Hi, On Tue, Mar 30, 2021 at 12:30:52PM +1300, Chris Packham wrote: > Hi, > > I've come over from https://github.com/strace/strace/issues/177 > there's a bit of context there. > > Crosstool-ng has hit a problem when building a recent enough version > of strace in a configuration that uses musl

Re: [PATCH] ethernet/netronome/nfp: Fix a use after free in nfp_bpf_ctrl_msg_rx

2021-03-29 Thread Jakub Kicinski
On Mon, 29 Mar 2021 04:50:02 -0700 Lv Yunlong wrote: > In nfp_bpf_ctrl_msg_rx, if > nfp_ccm_get_type(skb) == NFP_CCM_TYPE_BPF_BPF_EVENT is true, the skb > will be freed. But the skb is still used by nfp_ccm_rx(>ccm, skb). > > My patch adds a return when the skb was freed. > > Fixes:

Re: [PATCH v11 0/6] KASAN for powerpc64 radix

2021-03-29 Thread Michael Ellerman
Christophe Leroy writes: > Le 23/03/2021 à 02:21, Daniel Axtens a écrit : >> Hi Christophe, >> >>> In the discussion we had long time ago, >>> https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20190806233827.16454-5-...@axtens.net/#2321067 >>> , I challenged you on why it was not possible

[PATCH v3] userfaultfd/shmem: fix MCOPY_ATOMIC_CONTNUE behavior

2021-03-29 Thread Axel Rasmussen
Previously, we shared too much of the code with COPY and ZEROPAGE, so we manipulated things in various invalid ways: - Previously, we unconditionally called shmem_inode_acct_block. In the continue case, we're looking up an existing page which would have been accounted for properly when it was

Re: [PATCH v3 1/1] x86/tdx: Handle MWAIT, MONITOR and WBINVD

2021-03-29 Thread Sean Christopherson
On Mon, Mar 29, 2021, Kuppuswamy, Sathyanarayanan wrote: > > > On 3/29/21 4:23 PM, Andy Lutomirski wrote: > > > > > On Mar 29, 2021, at 4:17 PM, Kuppuswamy Sathyanarayanan > > > wrote: > > > > > > In non-root TDX guest mode, MWAIT, MONITOR and WBINVD instructions > > > are not supported. So

Re: [PATCH v3 1/1] x86/tdx: Handle MWAIT, MONITOR and WBINVD

2021-03-29 Thread Sean Christopherson
On Mon, Mar 29, 2021, Andy Lutomirski wrote: > > > On Mar 29, 2021, at 4:17 PM, Kuppuswamy Sathyanarayanan > > wrote: > > > > In non-root TDX guest mode, MWAIT, MONITOR and WBINVD instructions > > are not supported. So handle #VE due to these instructions > > appropriately. > > Is there

Re: [PATCH v3 1/1] x86/tdx: Handle MWAIT, MONITOR and WBINVD

2021-03-29 Thread Dave Hansen
On 3/29/21 4:16 PM, Kuppuswamy Sathyanarayanan wrote: > In non-root TDX guest mode, MWAIT, MONITOR and WBINVD instructions > are not supported. So handle #VE due to these instructions > appropriately. This misses a key detail: "are not supported" ... and other patches have prevented a

Re: [PATCH v3 1/1] x86/tdx: Handle MWAIT, MONITOR and WBINVD

2021-03-29 Thread Kuppuswamy, Sathyanarayanan
On 3/29/21 4:23 PM, Andy Lutomirski wrote: On Mar 29, 2021, at 4:17 PM, Kuppuswamy Sathyanarayanan wrote: In non-root TDX guest mode, MWAIT, MONITOR and WBINVD instructions are not supported. So handle #VE due to these instructions appropriately. Is there something I missed elsewhere

Re: [syzbot] KASAN: use-after-free Read in create_worker_cb

2021-03-29 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger any issue: Reported-and-tested-by: syzbot+099593561bbd1805b...@syzkaller.appspotmail.com Tested on: commit: 24996dbd io_uring: reg buffer overflow checks hardening git tree:

Linux include/uapi/linux/libc-compat.h and Musl include/netinet/in.h incompatibility for __UAPI_DEF_IN6_ADDR_ALT

2021-03-29 Thread Chris Packham
Hi, I've come over from https://github.com/strace/strace/issues/177 there's a bit of context there. Crosstool-ng has hit a problem when building a recent enough version of strace in a configuration that uses musl libc. The error is [ALL ]In file included from

Re: [PATCH] ieee802154: hwsim: remove redundant initialization of variable res

2021-03-29 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Mon, 29 Mar 2021 12:23:54 +0100 you wrote: > From: Colin Ian King > > The variable res is being initialized with a value that is > never read and it is being updated later with a new value. > The initialization is

Re: [PATCH] net:tipc: Fix a double free in tipc_sk_mcast_rcv

2021-03-29 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Sun, 28 Mar 2021 00:30:29 -0700 you wrote: > In the if(skb_peek(arrvq) == skb) branch, it calls __skb_dequeue(arrvq) to get > the skb by skb = skb_peek(arrvq). Then __skb_dequeue() unlinks the skb from > arrvq > and returns

Re: [PATCH] clk: Mark fwnodes when their clock provider is added

2021-03-29 Thread Saravana Kannan
On Mon, Mar 29, 2021 at 2:25 PM Stephen Boyd wrote: > > Quoting Geert Uytterhoeven (2021-03-26 11:29:55) > > On Fri, Mar 26, 2021 at 7:13 PM Stephen Boyd wrote: > > > Quoting Nicolas Saenz Julienne (2021-03-25 11:25:24) > > > > > > > > > > This patch mainly revealed that

Re: I915 CI-run with kfence enabled, issues found

2021-03-29 Thread Andy Lutomirski
> On Mar 29, 2021, at 2:55 PM, Marco Elver wrote: > > On Mon, 29 Mar 2021 at 23:47, Andy Lutomirski wrote: >> >> On Mar 29, 2021, at 2:34 PM, Marco Elver wrote: >>> >>> On Mon, 29 Mar 2021 at 23:03, Dave Hansen wrote: > On 3/29/21 10:45 AM, Marco Elver wrote: >> On Mon, 29

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