[PATCH] x86/mm/KASLR: Account for minimum padding when calculating entropy

2020-10-22 Thread Junaid Shahid
Subtract the minimum padding between regions from the initial remain_entropy. Without this, the last region could potentially overflow past vaddr_end if we happen to get a specific sequence of random numbers (although extremely unlikely in practice). The bug can be demonstrated by replacing the pra

Re: [PATCH v4] mm: memcg/slab: Stop reparented obj_cgroups from charging root

2020-10-22 Thread Roman Gushchin
On Thu, Oct 22, 2020 at 04:59:56PM -0700, Shakeel Butt wrote: > On Thu, Oct 22, 2020 at 10:25 AM Roman Gushchin wrote: > > > [snip] > > > > > > Since bf4f059954dc ("mm: memcg/slab: obj_cgroup API") is in 5.9, I > > > think we can take this patch for 5.9 and 5.10 but keep Roman's cleanup > > > for

Re: [PATCH net RFC] net: Clear IFF_TX_SKB_SHARING for all Ethernet devices using skb_padto

2020-10-22 Thread Jakub Kicinski
On Thu, 22 Oct 2020 12:59:45 -0700 Xie He wrote: > On Thu, Oct 22, 2020 at 8:22 AM Jakub Kicinski wrote: > > > > Are most of these drivers using skb_padto()? Is that the reason they > > can't be sharing the SKB? > > Yes, I think if a driver calls skb_pad / skb_padto / skb_put_padto / > eth_skb_

Re: [PATCH v17 1/4] Add flags option to get xattr method paired to __vfs_getxattr

2020-10-22 Thread Paul Moore
On Wed, Oct 21, 2020 at 8:07 AM Mark Salyzyn wrote: > On 10/20/20 6:17 PM, Paul Moore wrote: > > On Tue, Oct 20, 2020 at 3:17 PM Mark Salyzyn wrote: > >> Add a flag option to get xattr method that could have a bit flag of > >> XATTR_NOSECURITY passed to it. XATTR_NOSECURITY is generally then > >

Re: [PATCH v1 0/2] mm: cma: introduce a non-blocking version of cma_release()

2020-10-22 Thread Roman Gushchin
On Thu, Oct 22, 2020 at 07:42:45PM -0400, Zi Yan wrote: > On 22 Oct 2020, at 18:53, Roman Gushchin wrote: > > > This small patchset introduces a non-blocking version of cma_release() > > and simplifies the code in hugetlbfs, where previously we had to > > temporarily drop hugetlb_lock around the c

Re: [PATCH v2 5/5] scsi: ufs: fix clkgating on/off correctly

2020-10-22 Thread Jaegeuk Kim
On 10/21, Can Guo wrote: > On 2020-10-21 12:52, jaeg...@kernel.org wrote: > > On 10/21, Can Guo wrote: > > > On 2020-10-21 03:52, Jaegeuk Kim wrote: > > > > The below call stack prevents clk_gating at every IO completion. > > > > We can remove the condition, ufshcd_any_tag_in_use(), since > > > > c

[PATCH] perf vendor events: Fix DRAM_BW_Use 0 issue for CLX/SKX

2020-10-22 Thread Jin Yao
Ian reports an issue that the metric DRAM_BW_Use often remains 0. The metric expression for DRAM_BW_Use on CLX/SKX: "( 64 * ( uncore_imc@cas_count_read@ + uncore_imc@cas_count_write@ ) / 10 ) / duration_time" The counts of uncore_imc/cas_count_read/ and uncore_imc/cas_count_write/ are s

Re: [PATCH v1 0/2] mm: cma: introduce a non-blocking version of cma_release()

2020-10-22 Thread Zi Yan
On 22 Oct 2020, at 20:47, Roman Gushchin wrote: > On Thu, Oct 22, 2020 at 07:42:45PM -0400, Zi Yan wrote: >> On 22 Oct 2020, at 18:53, Roman Gushchin wrote: >> >>> This small patchset introduces a non-blocking version of cma_release() >>> and simplifies the code in hugetlbfs, where previously we h

Re: [PATCH] perf vendor events: Fix DRAM_BW_Use 0 issue for CLX/SKX

2020-10-22 Thread Ian Rogers
On Thu, Oct 22, 2020 at 5:54 PM Jin Yao wrote: > > Ian reports an issue that the metric DRAM_BW_Use often remains 0. > > The metric expression for DRAM_BW_Use on CLX/SKX: > > "( 64 * ( uncore_imc@cas_count_read@ + uncore_imc@cas_count_write@ ) / > 10 ) / duration_time" > > The counts of u

Re: [PATCH ghak90 V9 05/13] audit: log container info of syscalls

2020-10-22 Thread Paul Moore
On Wed, Oct 21, 2020 at 12:39 PM Richard Guy Briggs wrote: > Here is an exmple I was able to generate after updating the testsuite > script to include a signalling example of a nested audit container > identifier: > > > type=PROCTITLE msg=audit(2020-10-21 10:31:16.655:6731) : > proctitle=/us

[PATCH v2 tty] tty: serial: fsl_lpuart: LS1021A has a FIFO size of 16 words, like LS1028A

2020-10-22 Thread Vladimir Oltean
Prior to the commit that this one fixes, the FIFO size was derived from the read-only register LPUARTx_FIFO[TXFIFOSIZE] using the following formula: TX FIFO size = 2 ^ (LPUARTx_FIFO[TXFIFOSIZE] - 1) The documentation for LS1021A is a mess. Under chapter 26.1.3 LS1021A LPUART module special consid

Re: [LTP] mmstress[1309]: segfault at 7f3d71a36ee8 ip 00007f3d77132bdf sp 00007f3d71a36ee8 error 4 in libc-2.27.so[7f3d77058000+1aa000]

2020-10-22 Thread Daniel Díaz
Hello! On Thu, 22 Oct 2020 at 19:11, Linus Torvalds wrote: > On Thu, Oct 22, 2020 at 4:43 PM Linus Torvalds > Would you mind sending me the problematic vmlinux file in private (or, > likely better - a pointer to some place I can download it, it's going > to be huge). The kernel Naresh originally

[tip:auto-latest] BUILD SUCCESS 65609b26b21a169a05d1482db6c1b52d8a4abe0d

2020-10-22 Thread kernel test robot
onfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a002-20201022 i386 randconfig-a005-202

RE: [EXT] [PATCH] tty: serial: fsl_lpuart: LS1021A has a FIFO size of 32 datawords

2020-10-22 Thread Andy Duan
From: Vladimir Oltean Sent: Thursday, October 22, 2020 11:13 PM > From: Vladimir Oltean > > Similar to the workaround applied by Michael Walle in commit c2f448cff22a > ("tty: serial: fsl_lpuart: add LS1028A support"), it turns out that the > LPUARTx_FIFO encoding for fields TXFIFOSIZE and RXFIF

RE: [PATCH v2 tty] tty: serial: fsl_lpuart: LS1021A has a FIFO size of 16 words, like LS1028A

2020-10-22 Thread Andy Duan
From: Vladimir Oltean Sent: Friday, October 23, 2020 9:34 AM > Prior to the commit that this one fixes, the FIFO size was derived from the > read-only register LPUARTx_FIFO[TXFIFOSIZE] using the following > formula: > > TX FIFO size = 2 ^ (LPUARTx_FIFO[TXFIFOSIZE] - 1) > > The documentation for

Re: [PATCH net RFC] net: Clear IFF_TX_SKB_SHARING for all Ethernet devices using skb_padto

2020-10-22 Thread Xie He
On Thu, Oct 22, 2020 at 5:44 PM Jakub Kicinski wrote: > > On Thu, 22 Oct 2020 12:59:45 -0700 Xie He wrote: > > > > But I also see some drivers that want to pad the skb to a strange > > length, and don't set their special min_mtu to match this length. For > > example: > > > > drivers/net/ethernet/p

[GIT PULL] Arch/task_work cleanup

2020-10-22 Thread Jens Axboe
Hi Linus, Two cleanups that don't fit other categories: - Finally get the task_work_add() cleanup done properly, so we don't have random 0/1/false/true/TWA_SIGNAL confusing use cases. Updates all callers, and also fixes up the documentation for task_work_add(). - While working on some TIF re

[PATCH] perf trace beauty: Allow header files in a different path

2020-10-22 Thread Namhyung Kim
Current script to generate mmap flags and prot checks headers from the uapi/asm-generic directory but it might come from a different directory in some environment. So change the pattern to accept it. Signed-off-by: Namhyung Kim --- tools/perf/trace/beauty/mmap_flags.sh | 4 ++-- tools/perf/trac

Re: [PATCH v3 2/6] docs: lockdep-design: fix some warning issues

2020-10-22 Thread Boqun Feng
On Wed, Oct 21, 2020 at 02:17:23PM +0200, Mauro Carvalho Chehab wrote: > There are several warnings caused by a recent change > 224ec489d3cd ("lockdep/Documention: Recursive read lock detection reasoning") > > Those are reported by htmldocs build: > > Documentation/locking/lockdep-design.rst:

Re: [External] Re: [PATCH] nvme-rdma: handle nvme completion data length

2020-10-22 Thread Chao Leng
On 2020/10/22 18:05, zhenwei pi wrote: On 10/22/20 5:55 PM, Chao Leng wrote: On 2020/10/22 16:38, zhenwei pi wrote: Hit a kernel warning: refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 0 at lib/refcount.c:28 RIP: 0010:refcount_warn_saturate+0xd9/0xe0 Call Trace:     nvme_rdm

Re: [PATCH] selftests/powerpc/eeh: disable kselftest timeout setting for eeh-basic

2020-10-22 Thread Michael Ellerman
Po-Hsu Lin writes: > The eeh-basic test got its own 60 seconds timeout (defined in commit > 414f50434aa2 "selftests/eeh: Bump EEH wait time to 60s") per breakable > device. > > And we have discovered that the number of breakable devices varies > on different hardware. The device recovery time rang

Re: [PATCH] perf trace beauty: Allow header files in a different path

2020-10-22 Thread Ian Rogers
On Thu, Oct 22, 2020 at 7:06 PM Namhyung Kim wrote: > > Current script to generate mmap flags and prot checks headers from the > uapi/asm-generic directory but it might come from a different > directory in some environment. So change the pattern to accept it. > > Signed-off-by: Namhyung Kim Ack

[PATCH] drm: Add the missed device_unregister() in drm_sysfs_connector_add()

2020-10-22 Thread Jing Xiangfeng
drm_sysfs_connector_add() misses to call device_unregister() when sysfs_create_link() fails to create. Add the missed function call to fix it. Fixes: e1a29c6c5955 ("drm: Add ddc link in sysfs created by drm_connector") Signed-off-by: Jing Xiangfeng --- drivers/gpu/drm/drm_sysfs.c | 13 ++

Re: [PATCHSET v6] Add support for TIF_NOTIFY_SIGNAL

2020-10-22 Thread Jens Axboe
On 10/16/20 9:45 AM, Jens Axboe wrote: > Hi, > > The goal is this patch series is to decouple TWA_SIGNAL based task_work > from real signals and signal delivery. The motivation is speeding up > TWA_SIGNAL based task_work, particularly for threaded setups where > ->sighand is shared across threads.

Re: Question on io-wq

2020-10-22 Thread Jens Axboe
On 10/22/20 8:05 PM, Hillf Danton wrote: > On Thu, 22 Oct 2020 08:08:09 -0600 Jens Axboe wrote: >> On 10/22/20 3:02 AM, Zhang,Qiang wrote: >>> >>> Hi Jens Axboe >>> >>> There are some problem in 'io_wqe_worker' thread, when the >>> 'io_wqe_worker' be create and Setting the affinity of CPUs in NUM

[PATCH V3 1/3] vdpa: introduce config op to get valid iova range

2020-10-22 Thread Jason Wang
This patch introduce a config op to get valid iova range from the vDPA device. Signed-off-by: Jason Wang --- include/linux/vdpa.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/include/linux/vdpa.h b/include/linux/vdpa.h index eae0bfd87d91..30bc7a7223bb 100644 --- a/include

[PATCH V3 0/3] vDPA: API for reporting IOVA range

2020-10-22 Thread Jason Wang
Hi All: This series introduces API for reporing IOVA range. This is a must for userspace to work correclty: - for the process that uses vhost-vDPA directly, the IOVA must be allocated from this range. - for VM(qemu), when vIOMMU is not enabled, fail early if GPA is out of range - for VM(qemu)

Re: [PATCH net RFC] net: Clear IFF_TX_SKB_SHARING for all Ethernet devices using skb_padto

2020-10-22 Thread Xie He
On Thu, Oct 22, 2020 at 6:56 PM Xie He wrote: > > My patch isn't complete. Because there are so many drivers with this > problem, I feel it's hard to solve them all at once. So I only grepped > "skb_padto" under "drivers/net/ethernet". There are other drivers > under "ethernet" using "skb_pad", "s

[PATCH V3 3/3] vdpa_sim: implement get_iova_range()

2020-10-22 Thread Jason Wang
This implements a sample get_iova_range() for the simulator which advertise [0, ULLONG_MAX] as the valid range. Signed-off-by: Jason Wang --- drivers/vdpa/vdpa_sim/vdpa_sim.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.c b/drivers/vdpa/vdpa_si

[PATCH V3 2/3] vhost: vdpa: report iova range

2020-10-22 Thread Jason Wang
This patch introduces a new ioctl for vhost-vdpa device that can report the iova range by the device. For device that implements get_iova_range() method, we fetch it from the vDPA device. If device doesn't implement get_iova_range() but depends on platform IOMMU, we will query via DOMAIN_ATTR_GEOM

linux-next: Tree for Oct 23

2020-10-22 Thread Stephen Rothwell
Hi all, Since the merge window is open, please do not add any v5.11 material to your linux-next included branches until after v5.10-rc1 has been released. Changes since 20201022: Non-merge commits (relative to Linus' tree): 1952 2322 files changed, 329767 insertions(+), 37681 dele

[GIT PULL] ARC fix for 5.10-rc1

2020-10-22 Thread Vineet Gupta
Hi Linus, This is an unusual 2nd pull request for merge window. I found a snafu in perf driver which made it into 5.9-rc4 and thus the fix could go in now than wait for 5.10-rc2. Sorry for the trouble. Thx, -Vineet -> The following changes since commit 6364d1b41cc382db3b03cf33

Re: [PATCH] selftests/powerpc/eeh: disable kselftest timeout setting for eeh-basic

2020-10-22 Thread Po-Hsu Lin
On Fri, Oct 23, 2020 at 10:07 AM Michael Ellerman wrote: > > Po-Hsu Lin writes: > > The eeh-basic test got its own 60 seconds timeout (defined in commit > > 414f50434aa2 "selftests/eeh: Bump EEH wait time to 60s") per breakable > > device. > > > > And we have discovered that the number of breakab

RE: [PATCH] scsi: megaraid_sas: use spin_lock() in hard IRQ

2020-10-22 Thread Finn Thain
On Thu, 22 Oct 2020, Tianxianting wrote: > I see, If we add this patch, we need to get all cpu arch that support > nested interrupts. > I was just calling into question 1. the benefit (does it improve performance?) and 2. the code style (is it less portable?). It's really the style question t

[PATCH/RFC net v2] net: dec: tulip: de2104x: Add shutdown handler to stop NIC

2020-10-22 Thread Moritz Fischer
The driver does not implement a shutdown handler which leads to issues when using kexec in certain scenarios. The NIC keeps on fetching descriptors which gets flagged by the IOMMU with errors like this: DMAR: DMAR:[DMA read] Request device [5e:00.0]fault addr f000 DMAR: DMAR:[DMA read] Request

[PATCHv2] selftests/powerpc/eeh: disable kselftest timeout setting for eeh-basic

2020-10-22 Thread Po-Hsu Lin
The eeh-basic test got its own 60 seconds timeout (defined in commit 414f50434aa2 "selftests/eeh: Bump EEH wait time to 60s") per breakable device. And we have discovered that the number of breakable devices varies on different hardware. The device recovery time ranges from 0 to 35 seconds. In our

Re: [PATCH] perf trace: Segfault when trying to trace events by cgroup

2020-10-22 Thread Namhyung Kim
Hello, On Tue, Oct 20, 2020 at 5:48 AM Stanislav Ivanichkin wrote: > > Hi, > > +linux-perf-users@ > > Gentle ping for this patch > > Many Thanks > > -- > Stanislav Ivanichkin > > > On 9 Oct 2020, at 09:45, Stanislav Ivanichkin > > wrote: > > > > # ./perf trace -e sched:sched_switch -G test -a s

Re: [PATCH v2] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-22 Thread Hugh Dickins
On Thu, 22 Oct 2020, Rik van Riel wrote: > The allocation flags of anonymous transparent huge pages can be controlled > through the files in /sys/kernel/mm/transparent_hugepage/defrag, which can > help the system from getting bogged down in the page reclaim and compaction > code when many THPs are

Re: [PATCH 1/2] fs:regfs: add register easy filesystem

2020-10-22 Thread zc
Hi viro:   Through regfs is very sample and easy,  but i think it is a Interest ,  could give  some suggestions? Regards, zc 在 2020/10/20 下午2:30, Zou Cao 写道: register filesystem is mapping the register into file dentry, it will use the io readio to get the register val. DBT file is use to

Re: [LTP] mmstress[1309]: segfault at 7f3d71a36ee8 ip 00007f3d77132bdf sp 00007f3d71a36ee8 error 4 in libc-2.27.so[7f3d77058000+1aa000]

2020-10-22 Thread Linus Torvalds
On Thu, Oct 22, 2020 at 6:36 PM Daniel Díaz wrote: > > The kernel Naresh originally referred to is here: > https://builds.tuxbuild.com/SCI7Xyjb7V2NbfQ2lbKBZw/ Thanks. And when I started looking at it, I realized that my original idea ("just look for __put_user_nocheck_X calls, there aren't so

Re: [PATCH v2 4/6] crypto: lib/sha256 - Unroll SHA256 loop 8 times intead of 64

2020-10-22 Thread Arvind Sankar
On Wed, Oct 21, 2020 at 10:02:19PM -0700, Eric Biggers wrote: > On Tue, Oct 20, 2020 at 04:39:55PM -0400, Arvind Sankar wrote: > > This reduces code size substantially (on x86_64 with gcc-10 the size of > > sha256_update() goes from 7593 bytes to 1952 bytes including the new > > SHA256_K array), an

Re: [PATCH v3 7/9] KVM: VMX: Add guest physical address check in EPT violation and misconfig

2020-10-22 Thread Sean Christopherson
On Wed, Oct 14, 2020 at 04:44:57PM -0700, Jim Mattson wrote: > On Fri, Oct 9, 2020 at 9:17 AM Jim Mattson wrote: > > > > On Fri, Jul 10, 2020 at 8:48 AM Mohammed Gamal wrote: > > > @@ -5308,6 +5314,18 @@ static int handle_ept_violation(struct kvm_vcpu > > > *vcpu) > > >PFERR_GUES

Re: [PATCH v2 4/6] crypto: lib/sha256 - Unroll SHA256 loop 8 times intead of 64

2020-10-22 Thread Herbert Xu
On Thu, Oct 22, 2020 at 11:12:36PM -0400, Arvind Sankar wrote: > > I was aiming for 8 columns per line to match all the other groupings by > eight. It does slightly exceed 100 columns but can this be an exception, > or should I maybe make it 4 columns per line? Please limit it to 4 columns. Thank

Re: [PATCH v2 2/6] crypto: lib/sha256 - Don't clear temporary variables

2020-10-22 Thread Arvind Sankar
On Wed, Oct 21, 2020 at 09:58:50PM -0700, Eric Biggers wrote: > On Tue, Oct 20, 2020 at 04:39:53PM -0400, Arvind Sankar wrote: > > The assignments to clear a through h and t1/t2 are optimized out by the > > compiler because they are unused after the assignments. > > > > These variables shouldn't b

Re: [PATCH] serial: pmac_zilog: don't init if zilog is not available

2020-10-22 Thread Finn Thain
On Thu, 22 Oct 2020, Geert Uytterhoeven wrote: > > Thanks for your patch... > You're welcome. > I can't say I'm a fan of this... > Sorry. > > The real issue is this "extern struct platform_device scc_a_pdev, > scc_b_pdev", circumventing the driver framework. > > Can we get rid of that? >

[PATCH 1/3] sched: better handling for busy polling loops

2020-10-22 Thread Josh Don
Busy polling loops in the kernel such as network socket poll and kvm halt polling have performance problems related to process scheduler load accounting. Both of the busy polling examples are opportunistic - they relinquish the cpu if another thread is ready to run. This design, however, doesn't e

[PATCH 2/3] kvm: better handling for kvm halt polling

2020-10-22 Thread Josh Don
Add the new functions prepare_to_busy_poll() and friends to kvm_vcpu_block. The busy polling cpu will be considered an idle target during wake up balancing. cpu_relax is also added to the polling loop to improve the performance of other hw threads sharing the busy polling core. Suggested-by: Xi W

[PATCH 3/3] net: better handling for network busy poll

2020-10-22 Thread Josh Don
Add the new functions prepare_to_busy_poll() and friends to napi_busy_loop(). The busy polling cpu will be considered an idle target during wake up balancing. Suggested-by: Xi Wang Signed-off-by: Josh Don Signed-off-by: Xi Wang --- net/core/dev.c | 8 1 file changed, 4 insertions(+),

[PATCH 1/3] md: align superblock writes to physical blocks

2020-10-22 Thread Christopher Unkel
Writes of the md superblock are aligned to the logical blocks of the containing device, but no attempt is made to align them to physical block boundaries. This means that on a "512e" device (4k physical, 512 logical) every superblock update hits the 512-byte emulation and the possible associated p

[PATCH 3/3] md: pad writes to end of bitmap to physical blocks

2020-10-22 Thread Christopher Unkel
Writes of the last page of the bitmap are padded out to the next logical block boundary. However, they are not padded out to the next physical block boundary, so the writes may be less than a physical block. On a "512e" disk (logical block 512 bytes, physical block 4k) and if the last page of the

[PATCH 2/3] md: factor sb write alignment check into function

2020-10-22 Thread Christopher Unkel
Refactor in preparation for a second use of the logic. Signed-off-by: Christopher Unkel --- drivers/md/md-bitmap.c | 72 +++--- 1 file changed, 40 insertions(+), 32 deletions(-) diff --git a/drivers/md/md-bitmap.c b/drivers/md/md-bitmap.c index 200c5d0f08bf..

[PATCH 0/3] mdraid sb and bitmap write alignment on 512e drives

2020-10-22 Thread Christopher Unkel
Hello all, While investigating some performance issues on mdraid 10 volumes formed with "512e" disks (4k native/physical sector size but with 512 byte sector emulation), I've found two cases where mdraid will needlessly issue writes that start on 4k byte boundary, but are are shorter than 4k: 1.

[PATCH] net: ucc_geth: Drop extraneous parentheses in comparison

2020-10-22 Thread Michael Ellerman
Clang warns about the extra parentheses in this comparison: drivers/net/ethernet/freescale/ucc_geth.c:1361:28: warning: equality comparison with extraneous parentheses if ((ugeth->phy_interface == PHY_INTERFACE_MODE_SGMII)) ~^~~ It seem

Re: [PATCH v2] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-22 Thread Rik van Riel
On Thu, 2020-10-22 at 19:54 -0700, Hugh Dickins wrote: > On Thu, 22 Oct 2020, Rik van Riel wrote: > > > The allocation flags of anonymous transparent huge pages can be > controlled > > through the files in /sys/kernel/mm/transparent_hugepage/defrag, > which can > > help the system from getting bog

Re: [PATCH v7 1/4] powerpc: Refactor kexec functions to move arch independent code to kernel

2020-10-22 Thread Thiago Jung Bauermann
Hello Lakshmi, Lakshmi Ramasubramanian writes: > On 10/20/20 8:17 PM, Mimi Zohar wrote: >> On Tue, 2020-10-20 at 19:25 -0700, Lakshmi Ramasubramanian wrote: >>> On 10/20/20 1:00 PM, Mimi Zohar wrote: Hi Lakshmi, On Wed, 2020-09-30 at 13:59 -0700, Lakshmi Ramasubramanian wrote: >

回复: Question on io-wq

2020-10-22 Thread Zhang, Qiang
发件人: Jens Axboe 发送时间: 2020年10月22日 22:08 收件人: Zhang, Qiang 抄送: v...@zeniv.linux.org.uk; io-ur...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org 主题: Re: Question on io-wq On 10/22/20 3:02 AM, Zhang,Qiang wrote: > > Hi Jens Ax

回复: Question on io-wq

2020-10-22 Thread Zhang, Qiang
发件人: Zhang, Qiang 发送时间: 2020年10月23日 11:55 收件人: Jens Axboe 抄送: v...@zeniv.linux.org.uk; io-ur...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org 主题: 回复: Question on io-wq 发件人: Jens A

[PATCHv4 net-next] dropwatch: Support monitoring of dropped frames

2020-10-22 Thread izabela . bakollari
From: Izabela Bakollari Dropwatch is a utility that monitors dropped frames by having userspace record them over the dropwatch protocol over a file. This augument allows live monitoring of dropped frames using tools like tcpdump. With this feature, dropwatch allows two additional commands (start

Re: [PATCH] PM / s2idle: Export s2idle_set_ops

2020-10-22 Thread claude yen
On Thu, 2020-10-22 at 08:02 +0100, Sudeep Holla wrote: > On Thu, Oct 22, 2020 at 02:17:48PM +0800, Claude Yen wrote: > > As suspend_set_ops is exported in commit a5e4fd8783a2 > > ("PM / Suspend: Export suspend_set_ops, suspend_valid_only_mem"), > > exporting s2idle_set_ops to make kernel module set

ERROR: modpost: "has_transparent_hugepage" undefined!

2020-10-22 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: f9893351acaecf0a414baf9942b48d5bb5c688c6 commit: 6d82120f41561426dd67c86380d779b4599d070d device-dax: add an 'align' attribute date: 9 days ago config: mips-randconfig-m031-20201022 (attached

[git pull] Input updates for v5.10-rc0

2020-10-22 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. You will get: - a new driver for ADC driven joysticks - a new Zintix touchscreen driver - enhancements to Intel SoC button array driver - suppor

Re: [LTP] mmstress[1309]: segfault at 7f3d71a36ee8 ip 00007f3d77132bdf sp 00007f3d71a36ee8 error 4 in libc-2.27.so[7f3d77058000+1aa000]

2020-10-22 Thread Sean Christopherson
On Thu, Oct 22, 2020 at 08:05:05PM -0700, Linus Torvalds wrote: > On Thu, Oct 22, 2020 at 6:36 PM Daniel Díaz wrote: > > > > The kernel Naresh originally referred to is here: > > https://builds.tuxbuild.com/SCI7Xyjb7V2NbfQ2lbKBZw/ > > Thanks. > > And when I started looking at it, I realized th

Re: default cpufreq gov, was: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Viresh Kumar
On 22-10-20, 17:55, Vincent Guittot wrote: > On Thu, 22 Oct 2020 at 17:45, A L wrote: > > > > > > > > From: Peter Zijlstra -- Sent: 2020-10-22 - > > 14:29 > > > > > On Thu, Oct 22, 2020 at 02:19:29PM +0200, Rafael J. Wysocki wrote: > > >> > However I do want to retire ondemand, conserv

[PATCH net] net: hns3: Clear the CMDQ registers before unmapping BAR region

2020-10-22 Thread Zenghui Yu
When unbinding the hns3 driver with the HNS3 VF, I got the following kernel panic: [ 265.709989] Unable to handle kernel paging request at virtual address 800054627000 [ 265.717928] Mem abort info: [ 265.720740] ESR = 0x9647 [ 265.723810] EC = 0x25: DABT (current EL), IL = 32 bits

Re: [PATCH v8 -tip 02/26] sched: Introduce sched_class::pick_task()

2020-10-22 Thread Li, Aubrey
On 2020/10/22 23:25, Joel Fernandes wrote: > On Thu, Oct 22, 2020 at 12:59 AM Li, Aubrey wrote: >> >> On 2020/10/20 9:43, Joel Fernandes (Google) wrote: >>> From: Peter Zijlstra >>> >>> Because sched_class::pick_next_task() also implies >>> sched_class::set_next_task() (and possibly put_prev_task

Re: [PATCH V3 2/3] vhost: vdpa: report iova range

2020-10-22 Thread kernel test robot
nfig: m68k-randconfig-r034-20201022 (attached as .config) compiler: m68k-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://github.com/0da

Re: [LKP] Re: [sched] bdfcae1140: will-it-scale.per_thread_ops -37.0% regression

2020-10-22 Thread Xing Zhengjun
On 10/22/2020 9:19 PM, Mathieu Desnoyers wrote: - On Oct 21, 2020, at 9:54 PM, Xing Zhengjun zhengjun.x...@linux.intel.com wrote: [...] In fact, 0-day just copy the will-it-scale benchmark from the GitHub, if you think the will-it-scale benchmark has some issues, you can contribute your

Re: [PATCH 2/2] cpufreq: Drop restore_freq from struct cpufreq_policy

2020-10-22 Thread Viresh Kumar
On 22-10-20, 13:57, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The restore_freq field in struct cpufreq_policy is only used by > __target_index() in one place and a local variable in that function > may as well be used instead of it, so drop it and modify > __target_index() accordingl

[PATCH v3] i2c: designware: call i2c_dw_read_clear_intrbits_slave() once

2020-10-22 Thread Michael Wu
If some bits were cleared by i2c_dw_read_clear_intrbits_slave() in i2c_dw_isr_slave() and not handled immediately, those cleared bits would not be shown again by later i2c_dw_read_clear_intrbits_slave(). They therefore were forgotten to be handled. i2c_dw_read_clear_intrbits_slave() should be call

Re: [PATCH 1/4] MAINTAINERS: move Kamil Debski to credits

2020-10-22 Thread Mauro Carvalho Chehab
Em Thu, 22 Oct 2020 22:09:25 +0200 Krzysztof Kozlowski escreveu: > On Thu, Oct 22, 2020 at 09:13:14PM +0200, Uwe Kleine-König wrote: > > Hello, > > > > this series doesn't seem to be applied and looking at the list of people > > this mail was sent "To:" it's not obvious who is expected to take i

Re: [PATCH 0/3] mdraid sb and bitmap write alignment on 512e drives

2020-10-22 Thread Song Liu
On Thu, Oct 22, 2020 at 8:31 PM Christopher Unkel wrote: > > Hello all, > > While investigating some performance issues on mdraid 10 volumes > formed with "512e" disks (4k native/physical sector size but with 512 > byte sector emulation), I've found two cases where mdraid will > needlessly issue w

Re: [PATCH 1/3] md: align superblock writes to physical blocks

2020-10-22 Thread Song Liu
On Thu, Oct 22, 2020 at 8:31 PM Christopher Unkel wrote: > > Writes of the md superblock are aligned to the logical blocks of the > containing device, but no attempt is made to align them to physical > block boundaries. This means that on a "512e" device (4k physical, 512 > logical) every superbl

[PATCH v3] power: suspend: Move dpm_watchdog to suspend.c and enhance it

2020-10-22 Thread Joseph Jang
Since dpm_watchdog just cover device power management, we proposed to move it to core power suspend.c to cover not only device power management hang issues, but also core power management hand issues. Since dpm_watchdog stands for device pm, we propose to use new name sleep timer and new timeout h

Re: [PATCH 2/4] iommu/mediatek: Add iotlb_sync_range() support

2020-10-22 Thread chao hao
On Wed, 2020-10-21 at 17:55 +0100, Robin Murphy wrote: > On 2020-10-19 12:30, Chao Hao wrote: > > MTK_IOMMU driver writes one page entry and does tlb flush at a time > > currently. More optimal would be to aggregate the writes and flush > > BUS buffer in the end. > > That's exactly what iommu_iotl

Re: [PATCH] treewide: Convert macro and uses of __section(foo) to __section("foo")

2020-10-22 Thread Miguel Ojeda
On Thu, Oct 22, 2020 at 4:36 AM Joe Perches wrote: > > Use a more generic form for __section that requires quotes to avoid > complications with clang and gcc differences. I performed visual inspection (one by one...) and the only thing I saw is that sometimes the `__attribute__` has a whitespace

Re: [PATCH 1/2] cpufreq: intel_pstate: Avoid missing HWP max updates in passive mode

2020-10-22 Thread Viresh Kumar
On 22-10-20, 13:57, Rafael J. Wysocki wrote: > Index: linux-pm/drivers/cpufreq/cpufreq.c > === > --- linux-pm.orig/drivers/cpufreq/cpufreq.c > +++ linux-pm/drivers/cpufreq/cpufreq.c > @@ -2182,6 +2182,9 @@ int __cpufreq_driver_target(s

Re: [PATCH 2/4] iommu/mediatek: Add iotlb_sync_range() support

2020-10-22 Thread chao hao
On Fri, 2020-10-23 at 13:57 +0800, chao hao wrote: > On Wed, 2020-10-21 at 17:55 +0100, Robin Murphy wrote: > > On 2020-10-19 12:30, Chao Hao wrote: > > > MTK_IOMMU driver writes one page entry and does tlb flush at a time > > > currently. More optimal would be to aggregate the writes and flush > >

Re: [PATCH 1/4] MAINTAINERS: move Kamil Debski to credits

2020-10-22 Thread Uwe Kleine-König
Hello Krzysztof, On Thu, Oct 22, 2020 at 10:09:25PM +0200, Krzysztof Kozlowski wrote: > On Thu, Oct 22, 2020 at 09:13:14PM +0200, Uwe Kleine-König wrote: > > this series doesn't seem to be applied and looking at the list of people > > this mail was sent "To:" it's not obvious who is expected to ta

Re: [PATCH] sched/fair: check for idle core

2020-10-22 Thread Viresh Kumar
On 22-10-20, 13:45, Rafael J. Wysocki wrote: > On Thursday, October 22, 2020 12:47:03 PM CEST Viresh Kumar wrote: > > And I am not really sure why we always wanted this backup performance > > governor to be there unless the said governors are built as module. > > Apparently, some old drivers had p

Re: [systemd-devel] BTI interaction between seccomp filters in systemd and glibc mprotect calls, causing service failures

2020-10-22 Thread Szabolcs Nagy
The 10/22/2020 10:31, Catalin Marinas wrote: > IIUC, the problem is with the main executable which is mapped by the > kernel without PROT_BTI. The dynamic loader wants to set PROT_BTI but > does not have the original file descriptor to be able to remap. Its only > choice is mprotect() and this fail

Re: [PATCH] cpufreq: Avoid configuring old governors as default with intel_pstate

2020-10-22 Thread Viresh Kumar
On 22-10-20, 18:23, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > Subject: [PATCH] cpufreq: Avoid configuring old governors as default with > intel_pstate > > Commit 33aa46f252c7 ("cpufreq: intel_pstate: Use passive mode by > default without HWP") was meant to cause intel_pstate without H

[PATCH] io-wq: fix 'task->pi_lock' spin lock protect

2020-10-22 Thread qiang . zhang
From: Zqiang The set CPU affinity func 'do_set_cpus_allowed' may be operate 'task_rq', need add rq lock protect, replace 'pi_lock' spinlock protect with task_rq_lock func. Signed-off-by: Zqiang --- fs/io-wq.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/io-wq.c

Re: [RFC] synchronous readpage for buffer_heads

2020-10-22 Thread Hannes Reinecke
On 10/22/20 5:22 PM, Matthew Wilcox wrote: I'm working on making readpage synchronous so that it can actually return errors instead of futilely setting PageError. Something that's common between most of the block based filesystems is the need to submit N I/Os and wait for them to all complete (s

Re: [PATCH net] net: hns3: Clear the CMDQ registers before unmapping BAR region

2020-10-22 Thread Yunsheng Lin
On 2020/10/23 13:15, Zenghui Yu wrote: > When unbinding the hns3 driver with the HNS3 VF, I got the following > kernel panic: > > [ 265.709989] Unable to handle kernel paging request at virtual address > 800054627000 > [ 265.717928] Mem abort info: > [ 265.720740] ESR = 0x9647 > [ 2

Re: [PATCH v3] i2c: designware: call i2c_dw_read_clear_intrbits_slave() once

2020-10-22 Thread Jarkko Nikula
On 10/23/20 8:40 AM, Michael Wu wrote: If some bits were cleared by i2c_dw_read_clear_intrbits_slave() in i2c_dw_isr_slave() and not handled immediately, those cleared bits would not be shown again by later i2c_dw_read_clear_intrbits_slave(). They therefore were forgotten to be handled. i2c_dw_r

Re: [PATCH v1 0/5] Introduce a new helper marco DEFINE_STORE_ATTRIBUTE at seq_file.c

2020-10-22 Thread luojiaxing
Hi On 2020/10/22 20:28, Al Viro wrote: On Thu, Oct 22, 2020 at 04:39:52PM +0800, Luo Jiaxing wrote: We already own DEFINE_SHOW_ATTRIBUTE() helper macro for defining attribute for read-only file, but we found many of drivers also want a helper marco for read-write file too. DEFINE_SHOW_ATTRIBUT

Re: [PATCH v2] checkpatch: fix false positives in REPEATED_WORD warning

2020-10-22 Thread Aditya
On 23/10/20 4:16 am, Joe Perches wrote: > On Fri, 2020-10-23 at 02:35 +0530, Aditya wrote: >> On 23/10/20 1:03 am, Joe Perches wrote: >>> On Fri, 2020-10-23 at 00:44 +0530, Aditya wrote: On 22/10/20 9:40 pm, Joe Perches wrote: > On Thu, 2020-10-22 at 20:20 +0530, Aditya Srivastava wrote: >

Re: [PATCH v2] checkpatch: fix false positives in REPEATED_WORD warning

2020-10-22 Thread Aditya
On 23/10/20 12:03 pm, Aditya wrote: > However, though such cases haven't occurred over v6..v8. > > Actually, we could simplify it more on the basis of occurrences in > v6..v8, for eg. if we check for /[0-9c-f][0-9a-f]+/ (instead of > /[0-9a-f]{2,}/), it gives us desired result over v6..v8, but aga

RE: [PATCH v2 1/1] scsi: ufs: Fix unexpected values get from ufshcd_read_desc_param()

2020-10-22 Thread Daejun Park
Hi, Can Guo >Since WB feature has been added, WB related sysfs entries can be accessed >even when an UFS device does not support WB feature. In that case, the >descriptors which are not supported by the UFS device may be wrongly >reported when they are accessed from their corrsponding sysfs entrie

[tip:master] BUILD SUCCESS 95d591cca3b1851eaf66af066149183f18ff5ab3

2020-10-22 Thread kernel test robot
onfig-a003-20201023 i386 randconfig-a001-20201023 i386 randconfig-a006-20201023 i386 randconfig-a004-20201023 i386 randconfig-a002-20201022 i386 randconfig-a005-20201022 i386 randconfig-a003-202

Re: [PATCH] mm,thp,shmem: limit shmem THP alloc gfp_mask

2020-10-22 Thread Michal Hocko
On Thu 22-10-20 12:06:01, Rik van Riel wrote: > On Thu, 2020-10-22 at 17:50 +0200, Michal Hocko wrote: > > On Thu 22-10-20 09:25:21, Rik van Riel wrote: > > > On Thu, 2020-10-22 at 10:15 +0200, Michal Hocko wrote: > > > > On Wed 21-10-20 23:48:46, Rik van Riel wrote: > > > > > > > > > > diff --git

Re: [PATCH] PCI: export pci_find_host_bridge() to fix MFD build error

2020-10-22 Thread Christoph Hellwig
On Wed, Oct 21, 2020 at 12:08:45PM +0200, Thomas Bogendoerfer wrote: > On Tue, Oct 20, 2020 at 09:02:19AM +0100, Christoph Hellwig wrote: > > On Sun, Oct 18, 2020 at 11:14:53PM -0700, Randy Dunlap wrote: > > > Fix a build error in drivers/mfd/ioc.o by exporting > > > pci_find_host_bridge(). > > >

[PATCH] iommu: Modify the description of iommu_sva_unbind_device

2020-10-22 Thread Chen Jun
From: Chen Jun iommu_sva_unbind_device has no return value. Remove the description of the return value of the function. Signed-off-by: Chen Jun --- drivers/iommu/iommu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 8c470f4..bb51d53 1

Re: [PATCH 2/3] drm/msm: add DRM_MSM_GEM_SYNC_CACHE for non-coherent cache maintenance

2020-10-22 Thread Christoph Hellwig
On Thu, Oct 15, 2020 at 04:43:01PM +0100, Christoph Hellwig wrote: > > Somewhat related, but is there a way to tell the dma-api to fail instead > > of falling back to swiotlb? In many case for gpu drivers it's much better > > if we fall back to dma_alloc_coherent and manage the copying ourselves >

Re: [PATCH v4 7/7] mm: Remove examples from enum zone_type comment

2020-10-22 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

Re: [PATCH v3 00/10] Auxiliary bus implementation and SOF multi-client support

2020-10-22 Thread Leon Romanovsky
On Thu, Oct 22, 2020 at 05:33:28PM -0700, Dave Ertman wrote: <...> > Dave Ertman (1): > Add auxiliary bus support We are in merge window now and both netdev and RDMA are closed for submissions. So I'll send my mlx5 conversion patches once -rc1 will be tagged. However, It is important that thi

RESPOND FOR DETAILS

2020-10-22 Thread LEO NATHAN
Dear,I am in the UK and very sick due to cancer, will die.want to distribute $10,000,000.00 via you my name is LEO NATHAN

Re: [PATCH v3 00/10] Auxiliary bus implementation and SOF multi-client support

2020-10-22 Thread Greg KH
On Fri, Oct 23, 2020 at 09:49:46AM +0300, Leon Romanovsky wrote: > On Thu, Oct 22, 2020 at 05:33:28PM -0700, Dave Ertman wrote: > > <...> > > > Dave Ertman (1): > > Add auxiliary bus support > > We are in merge window now and both netdev and RDMA are closed for > submissions. So I'll send my m

Re: [PATCH v3] PCI: cadence: Retrain Link to work around Gen2 training defect.

2020-10-22 Thread Kishon Vijay Abraham I
Hi Nadeem, On 19/10/20 10:48 pm, Athani Nadeem Ladkhan wrote: > Hi Kishon, > >> -Original Message- >> From: Kishon Vijay Abraham I >> Sent: Monday, October 19, 2020 10:59 AM >> To: Athani Nadeem Ladkhan ; >> lorenzo.pieral...@arm.com; r...@kernel.org; bhelg...@google.com; linux- >> p...@

[PATCH] bdi: fix -Wformat-security

2020-10-22 Thread Nick Desaulniers
mm/backing-dev.c:810:57: warning: format string is not a string literal (potentially insecure) [-Wformat-security] dev = device_create(bdi_class, NULL, MKDEV(0, 0), bdi, bdi->dev_name); ^ Signed-off-by: Nick Desaulniers --- Exampl

<    5   6   7   8   9   10   11   >