[PATCH v5 2/3] staging: rtl8192e: remove unnecessary ftrace-like logging

2021-04-12 Thread Mitali Borkar
Removed unncessary ftrace-like logging by simply deleting that statement as we have other modes of logging like ftrace. Reported by checkpatch. Signed-off-by: Mitali Borkar --- Changes from v4:- No changes. Changes from v3:- No changes. Changes from v2:- No changes. Changes from v1:- No

[PATCH v5 1/3] staging: rtl8192e: remove parentheses around boolean expression

2021-04-12 Thread Mitali Borkar
Removed unnecessary parentheses around '!xyz' boolean expression as '!' has higher precedance than '||' Signed-off-by: Mitali Borkar --- Changes from v4:- No changes. Changes from v3:- No changes. Changes from v2:- Modified subject description. Changes has been made in v3. Changes from v1:-

[PATCH v5 0/3] staging: rtl8192e: Cleanup patchset for style issues in rtl819x_HTProc.c

2021-04-12 Thread Mitali Borkar
Changes from v4:- [PATCH v4 1/3]:- No changes. [PATCH v4 2/3]:- No changes. [PATCH V4 3/3]:- Removed casts and parentheses. Changes from v3:- Changed subject line to match prefix on the patches. [PATCH v3 1/3]:- No changes. [PATCH v3 2/3]:- No changes. [PATCH V3 3/3]:- No changes. Changes from

Re: [PATCH v3 0/2] scsi: pm8001: tiny clean up patches

2021-04-12 Thread Martin K. Petersen
Luo, > Several error is reported by checkpatch.pl, here are two patches to clean > them up. Applied to 5.13/scsi-staging, thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: [f2fs-dev] [PATCH v2] f2fs: fix to avoid touching checkpointed data in get_victim()

2021-04-12 Thread Chao Yu
On 2021/4/13 10:59, Jaegeuk Kim wrote: @@ -2701,7 +2689,7 @@ static void change_curseg(struct f2fs_sb_info *sbi, int type, bool flush) reset_curseg(sbi, type, 1); curseg->alloc_type = SSR; - __next_free_blkoff(sbi, curseg, 0); + __next_free_blkoff(sbi,

[PATCH RFC v2] module: Use ARG_MAX as second argument of strndup_user() in load_module()

2021-04-12 Thread Tiezhu Yang
When update kernel with the latest mips-next, we can not login through a graphical interface, this is because drm radeon GPU driver does not work, we can not see the boot message "[drm] radeon kernel modesetting enabled." through the serial console. drivers/gpu/drm/radeon/radeon_drv.c static int

[PATCH v2] scsi: aha1542: remove unneeded semicolon

2021-04-12 Thread Yang Li
Eliminate the following coccicheck warning: ./drivers/scsi/aha1542.c:297:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:339:3-4: Unneeded semicolon ./drivers/scsi/aha1542.c:404:2-3: Unneeded semicolon ./drivers/scsi/aha1542.c:505:3-4: Unneeded semicolon ./drivers/scsi/aha1542.c:516:2-3: Unneeded

[PATCH v7 3/3] bio: add limit_bio_size sysfs

2021-04-12 Thread Changheun Lee
Add limit_bio_size block sysfs node to limit bio size. Queue flag QUEUE_FLAG_LIMIT_BIO_SIZE will be set if limit_bio_size is set. And bio max size will be limited by queue max sectors via QUEUE_FLAG_LIMIT_BIO_SIZE set. Signed-off-by: Changheun Lee --- Documentation/ABI/testing/sysfs-block | 10

[PATCH v7 1/3] bio: limit bio max size

2021-04-12 Thread Changheun Lee
bio size can grow up to 4GB when muli-page bvec is enabled. but sometimes it would lead to inefficient behaviors. in case of large chunk direct I/O, - 32MB chunk read in user space - all pages for 32MB would be merged to a bio structure if the pages physical addresses are contiguous. it makes some

Re: [PATCH][next] scsi: pm80xx: Fix potential infinite loop

2021-04-12 Thread Martin K. Petersen
Colin, > The for-loop iterates with a u8 loop counter i and compares this with > the loop upper limit of pm8001_ha->max_q_num which is a u32 type. > There is a potential infinite loop if pm8001_ha->max_q_num is larger > than the u8 loop counter. Fix this by making the loop counter the same >

[PATCH v7 0/3] limit bio max size

2021-04-12 Thread Changheun Lee
I found a inefficient behavior from multipage bvec. Large chunk DIO scenario is that. This patch series could be a solution to improve it. Changheun Lee (3): bio: limit bio max size ufs: set QUEUE_FLAG_LIMIT_BIO_SIZE bio: add limit_bio_size sysfs Documentation/ABI/testing/sysfs-block | 10

[PATCH v7 2/3] ufs: set QUEUE_FLAG_LIMIT_BIO_SIZE

2021-04-12 Thread Changheun Lee
Set QUEUE_FLAG_LIMIT_BIO_SIZE queue flag to limit bio max size to queue max sectors size for UFS device. Signed-off-by: Changheun Lee --- drivers/scsi/scsi_lib.c | 2 ++ drivers/scsi/ufs/ufshcd.c | 1 + include/scsi/scsi_host.h | 2 ++ 3 files changed, 5 insertions(+) diff --git

[PATCH] rapidio: remove useless variable

2021-04-12 Thread Jiapeng Chong
Fix the following gcc warning: drivers/rapidio/rio_cm.c:673:7: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/rapidio/rio_cm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v2 1/5] hwmon: (max31790) Rework to use regmap

2021-04-12 Thread Václav Kubernát
Hello, I'm uploading a new version of my patches on max31790. This is a "v3" patch, but I have mistakenly tagged it as "v2". Hopefully, this is not a big issue. Changes: - I have reintroduced locking. However, I'm not sure if it's enough, I think, locking needs to happen even when reading, but

Re: [PATCH v1 09/14] mm: multigenerational lru: mm_struct list

2021-04-12 Thread Huang, Ying
Yu Zhao writes: > On Wed, Mar 24, 2021 at 12:58 AM Huang, Ying wrote: >> >> Yu Zhao writes: >> >> > On Mon, Mar 22, 2021 at 11:13:19AM +0800, Huang, Ying wrote: >> >> Yu Zhao writes: >> >> >> >> > On Wed, Mar 17, 2021 at 11:37:38AM +0800, Huang, Ying wrote: >> >> >> Yu Zhao writes: >> >> >>

Re: [PATCH v1 00/14] Multigenerational LRU

2021-04-12 Thread Huang, Ying
Yu Zhao writes: > On Tue, Mar 16, 2021 at 02:14:43PM -0700, Dave Hansen wrote: >> On 3/16/21 1:30 PM, Yu Zhao wrote: >> > On Tue, Mar 16, 2021 at 07:50:23AM -0700, Dave Hansen wrote: >> >> I think it would also be very worthwhile to include some research in >> >> this series about why the kernel

[PATCH v2 5/5] hwmon: (max31790) Update documentation

2021-04-12 Thread Václav Kubernát
The conditions for fan fault and its connection to the PWM mode are now documented. The pwm_rate_of_change and fan_window are now mentioned. According to our testing with Sunon PF36281BX-000U-S99, these values are crucial in how RPM mode works and how long it takes for the RPM to stabilize. For

[PATCH v2 4/5] hwmon: (max31790) Allow setting fan*_div

2021-04-12 Thread Václav Kubernát
Right now, the divisor (which determines the speed range) is only set when in RPM mode. However, the speed range also affects the input RPM, which means, to get more accurate readings, this speed range needs to be set. Signed-off-by: Václav Kubernát --- Documentation/hwmon/max31790.rst | 1 +

[PATCH v2 2/5] hwmon: (max31790) Fix and split pwm*_enable

2021-04-12 Thread Václav Kubernát
In the old code, pwm*_enable does two things. Firstly, it sets whether the chip should run in PWM or RPM mode. Secondly, it tells the chip whether it should monitor fan RPM. However, these two settings aren't tied together, so they shouldn't be set with a single value. In the new code, fan*_enable

[PATCH v2 3/5] hwmon: (max31790) Show 0 RPM/fault when input disabled

2021-04-12 Thread Václav Kubernát
When fan speed input is disabled, it makes no sense to show values in fan*_input and fan*_fault. Signed-off-by: Václav Kubernát --- drivers/hwmon/max31790.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/hwmon/max31790.c b/drivers/hwmon/max31790.c index

Re: [f2fs-dev] [PATCH v2] f2fs: fix to avoid touching checkpointed data in get_victim()

2021-04-12 Thread Chao Yu
On 2021/4/13 10:59, Jaegeuk Kim wrote: On 04/11, Chao Yu wrote: Hi Jaegeuk, Could you please help to merge below cleanup diff into original patch? or merge this separately if it is too late since it is near rc7. I didn't review this tho, this gives an error in xfstests/083. My bad, I hit

Re: [PATCH V2 1/4] input: pm8941-pwrkey: add support for PMK8350 PON_HLOS PMIC peripheral

2021-04-12 Thread Bjorn Andersson
On Thu 08 Apr 06:31 CDT 2021, satya priya wrote: > From: David Collins > > On Qualcomm Technologies, Inc. PMIC PMK8350, the PON peripheral > is split into two peripherals: PON_HLOS and PON_PBS. The > application processor only has write access to PON_HLOS which > limits it to only receiving

[PATCH v2 1/5] hwmon: (max31790) Rework to use regmap

2021-04-12 Thread Václav Kubernát
Converting the driver to use regmap makes it more generic. It also makes it a lot easier to debug through debugfs. Signed-off-by: Václav Kubernát --- drivers/hwmon/Kconfig| 1 + drivers/hwmon/max31790.c | 254 --- 2 files changed, 133 insertions(+), 122

Re: [PATCH v2] f2fs: fix to avoid touching checkpointed data in get_victim()

2021-04-12 Thread Jaegeuk Kim
On 04/11, Chao Yu wrote: > Hi Jaegeuk, > > Could you please help to merge below cleanup diff into original patch? > or merge this separately if it is too late since it is near rc7. I didn't review this tho, this gives an error in xfstests/083. > > From 5a342a8f332a1b3281ec0e2b4d41b5287689c8ed

Re: [PATCH net v3] net: sched: fix packet stuck problem for lockless qdisc

2021-04-12 Thread Yunsheng Lin
On 2021/4/13 10:21, Hillf Danton wrote: > On Mon, 12 Apr 2021 20:00:43 Yunsheng Lin wrote: >> >> Yes, the below patch seems to fix the data race described in >> the commit log. >> Then what is the difference between my patch and your patch below:) > > Hehe, this is one of the tough questions

[PATCH] coda: remove useless variable

2021-04-12 Thread Jiapeng Chong
Fix the following gcc warning: fs/coda/file.c:241:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- fs/coda/file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/coda/file.c

[PATCH RFC] module: Use ARG_MAX as second argument of strndup_user() in load_module()

2021-04-12 Thread Tiezhu Yang
When update kernel with the latest mips-next, we can not login through a graphical interface, this is because drm radeon GPU driver does not work, we can not see the boot message "[drm] radeon kernel modesetting enabled." through the serial console. drivers/gpu/drm/radeon/radeon_drv.c static int

Re: [RFC PATCH v3 0/3] vfio/hisilicon: add acc live migration driver

2021-04-12 Thread liulongfang
On 2021/4/13 9:20, Longfang Liu wrote: > The live migration solution relies on the vfio_device_migration_info protocol. > The structure vfio_device_migration_info is placed at the 0th offset of > the VFIO_REGION_SUBTYPE_MIGRATION region to get and set VFIO device related > migration information.

[RFC PATCH] percpu_ref: Make percpu_ref_tryget*() ACQUIRE operations

2021-04-12 Thread Huang Ying
One typical use case of percpu_ref_tryget() family functions is as follows, if (percpu_ref_tryget(>ref)) { /* Operate on the other fields of *p */ } The refcount needs to be checked before operating on the other fields of the data structure (*p), otherwise, the values gotten from

[PATCH net v2] i40e: fix the panic when running bpf in xdpdrv mode

2021-04-12 Thread kerneljasonxing
From: Jason Xing Fix this panic by adding more rules to calculate the value of @rss_size_max which could be used in allocating the queues when bpf is loaded, which, however, could cause the failure and then trigger the NULL pointer of vsi->rx_rings. Prio to this fix, the machine doesn't care

Re: [PATCH][next] vdpa/mlx5: Fix resource leak of mgtdev due to incorrect kfree

2021-04-12 Thread Jason Wang
在 2021/4/13 上午12:28, Colin King 写道: From: Colin Ian King Static analysis is reporting a memory leak on mgtdev, it appears that the wrong object is being kfree'd. Fix this by kfree'ing mgtdev rather than mdev. Addresses-Coverity: ("Resource leak") Fixes: c8a2d4c73e70 ("vdpa/mlx5: Enable user

RE: [PATCH v1 1/2] dt-bindings: mmc: sdhci-of-aspeed: Add power-gpio and power-switch-gpio

2021-04-12 Thread Milton Miller II
-"openbmc" wrote: - >To: Rob Herring >From: Steven Lee >Sent by: "openbmc" >Date: 04/12/2021 08:31PM >Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" >, Ulf Hansson , >Ryan Chen , "moderated list:ASPEED SD/MMC >DRIVER" , Andrew Jeffery >, "open list:ASPEED SD/MMC

Re: [PATCH v4 0/7] cpufreq-qcom-hw: Implement full OSM programming

2021-04-12 Thread Bjorn Andersson
On Mon 12 Apr 00:11 CDT 2021, Viresh Kumar wrote: > On 19-01-21, 18:45, AngeloGioacchino Del Regno wrote: > > ** > > ** NOTE: To "view the full picture", please look at the following > > ** patch series: > > ** https://patchwork.kernel.org/project/linux-arm-msm/list/?series=413355 > >

Re: New 'make dtbs_check W=1' warnings

2021-04-12 Thread Bjorn Andersson
On Mon 12 Apr 13:52 CDT 2021, Arnd Bergmann wrote: > On Mon, Apr 12, 2021 at 6:01 PM Bjorn Andersson > wrote: > > On Mon 12 Apr 08:14 CDT 2021, Arnd Bergmann wrote: > > > On Mon, Apr 12, 2021 at 1:32 PM Geert Uytterhoeven > > > wrote: > > > > On Thu, Apr 8, 2021 at 5:08 PM Arnd Bergmann

Re: [PATCH v12 13/13] x86/kvm: Add kexec support for SEV Live Migration.

2021-04-12 Thread Steve Rutherford
On Mon, Apr 12, 2021 at 6:48 PM Ashish Kalra wrote: > > On Mon, Apr 12, 2021 at 06:23:32PM -0700, Steve Rutherford wrote: > > On Mon, Apr 12, 2021 at 5:22 PM Steve Rutherford > > wrote: > > > > > > On Mon, Apr 12, 2021 at 12:48 PM Ashish Kalra > > > wrote: > > > > > > > > From: Ashish Kalra

Re: [PATCH v2 5/5] mm/hugetlb: remove unused variable pseudo_vma in remove_inode_hugepages()

2021-04-12 Thread Miaohe Lin
On 2021/4/13 2:51, Mike Kravetz wrote: > On 4/10/21 12:23 AM, Miaohe Lin wrote: >> The local variable pseudo_vma is not used anymore. >> >> Signed-off-by: Miaohe Lin > > Thanks, > > That should have been removed with 1b426bac66e6 ("hugetlb: use same fault > hash key for shared and private

Re: [PATCH] i40e: fix the panic when running bpf in xdpdrv mode

2021-04-12 Thread Jason Xing
On Tue, Apr 13, 2021 at 5:52 AM Jesse Brandeburg wrote: > > kerneljasonx...@gmail.com wrote: > > > From: Jason Xing > > > > Re: [PATCH] i40e: fix the panic when running bpf in xdpdrv mode > > Please use netdev style subject lines when patching net kernel to > indicate which kernel tree this is

Re: [RFC PATCH v1 00/11] Manage the top tier memory in a tiered memory

2021-04-12 Thread Huang, Ying
Tim Chen writes: > On 4/8/21 4:52 AM, Michal Hocko wrote: > >>> The top tier memory used is reported in >>> >>> memory.toptier_usage_in_bytes >>> >>> The amount of top tier memory usable by each cgroup without >>> triggering page reclaim is controlled by the >>> >>>

Re: [PATCH][V2] clk: uniphier: Fix potential infinite loop

2021-04-12 Thread Stephen Boyd
Quoting Colin King (2021-04-09 02:01:04) > From: Colin Ian King > > The for-loop iterates with a u8 loop counter i and compares this > with the loop upper limit of num_parents that is an int type. > There is a potential infinite loop if num_parents is larger than > the u8 loop counter. Fix this

Re: [PATCH 4/4] pwm: Add support for aspeed pwm controller

2021-04-12 Thread Billy Tsai
Thanks for your review Best Regards, Billy Tsai On 2021/4/12, 7:14 PM,Uwe Kleine-Königwrote: >Hello, >On Mon, Apr 12, 2021 at 05:54:57PM +0800, Billy Tsai wrote: >> Add support for the pwm controller which can be found at aspeed ast2600 >> soc. This driver is part function of

Re: [PATCH v4 3/3] staging: rtl8192e: remove unnecessary parentheses

2021-04-12 Thread Mitali Borkar
On Mon, Apr 12, 2021 at 01:46:54PM -0700, Joe Perches wrote: > On Mon, 2021-04-12 at 16:52 +0530, Mitali Borkar wrote: > > Removed unnecessary parentheses because they must be used only when it > > is necessary or they improve readability. > > Reported by checkpatch. > > I gave you feedback about

[PATCH v3 2/3] dt-bindings: mfd: pm8008: Add bindings

2021-04-12 Thread Guru Das Srinagesh
Add bindings for the Qualcomm Technologies, Inc. PM8008 MFD driver. Signed-off-by: Guru Das Srinagesh --- .../devicetree/bindings/mfd/qcom,pm8008.yaml | 121 + 1 file changed, 121 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/qcom,pm8008.yaml

[PATCH v3 0/3] Add Qualcomm Technologies, Inc. PM8008 MFD driver

2021-04-12 Thread Guru Das Srinagesh
Changes from v2: - Collected Rob Herring's Acked-by for the IRQ listing patch - Addressed Rob's comments for the dt-bindings patch Changes from v1: - Removed errant Change-Id from dt-bindings IRQ patch and gathered Bjorn's Reviewed-by - Fixed up YAML errors using make dt_binding_check

[PATCH v3 1/3] dt-bindings: mfd: pm8008: Add IRQ listing

2021-04-12 Thread Guru Das Srinagesh
Add a header file listing all of the IRQs that Qualcomm Technologies, Inc. PM8008 supports. The constants defined in this file may be used in the client device tree node to specify interrupts. Reviewed-by: Bjorn Andersson Acked-by: Rob Herring Signed-off-by: Guru Das Srinagesh ---

Re: Regression: gvt: vgpu 1: MI_LOAD_REGISTER_MEM handler error

2021-04-12 Thread Zhenyu Wang
On 2021.04.12 19:23:47 -0600, Alex Williamson wrote: > On Mon, 12 Apr 2021 10:32:14 -0600 > Alex Williamson wrote: > > > Running a Windows guest on a i915-GVTg_V4_2 from an HD 5500 IGD on > > v5.12-rc6 results in host logs: > > > > gvt: vgpu 1: lrm access to register (20c0) > > gvt: vgpu 1:

[PATCH v3 3/3] mfd: pm8008: Add driver for QCOM PM8008 PMIC

2021-04-12 Thread Guru Das Srinagesh
Qualcomm Technologies, Inc. PM8008 is a dedicated camera PMIC that integrates all the necessary power management, housekeeping, and interface support functions into a single IC. Its key features include overtemperature protection, low-dropout linear regulators, GPIOs, and an I2C interface. Add an

Re: [PATCH] sched/fair: use signed long when compute energy delta in eas

2021-04-12 Thread Xuewen Yan
Hi On Tue, Apr 13, 2021 at 1:15 AM Pierre Gondois wrote: > > Hi > > > > > > > > > > This patch-set is not significantly improving the execution time of > > > > > feec(). The results we have so far are an improvement of 5-10% in > > > > > execution time, with feec() being executed in < 10us. So

Re: [PATCH v2 2/3] dt-bindings: mfd: pm8008: Add bindings

2021-04-12 Thread Guru Das Srinagesh
On Mon, Apr 12, 2021 at 02:37:48PM -0500, Rob Herring wrote: > On Fri, Apr 09, 2021 at 05:55:01PM -0700, Guru Das Srinagesh wrote: > > Add bindings for the Qualcomm Technologies, Inc. PM8008 MFD driver. > > > > Signed-off-by: Guru Das Srinagesh > > --- > >

Re: [Outreachy kernel][PATCH 4/4 v2] staging: media: omap4iss: Replace macro function by static inline function in file iss_resizer.c

2021-04-12 Thread kernel test robot
Hi Aline, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Aline-Santana-Cordeiro/staging-media-omap4iss-Replace-macro-function-by-static-inline-function-in-file-iss-c/20210412-215756 base

Re: [PATCH v12 13/13] x86/kvm: Add kexec support for SEV Live Migration.

2021-04-12 Thread Ashish Kalra
On Mon, Apr 12, 2021 at 06:23:32PM -0700, Steve Rutherford wrote: > On Mon, Apr 12, 2021 at 5:22 PM Steve Rutherford > wrote: > > > > On Mon, Apr 12, 2021 at 12:48 PM Ashish Kalra wrote: > > > > > > From: Ashish Kalra > > > > > > Reset the host's shared pages list related to kernel > > >

Re: [PATCH] time: Fix overwrite err unexpected in clock_adjtime32

2021-04-12 Thread chenjun (AM)
在 2021/4/12 23:58, Richard Cochran 写道: > On Mon, Apr 12, 2021 at 02:52:11PM +, chenjun (AM) wrote: >> 在 2021/4/12 22:20, Richard Cochran 写道: >>> On Mon, Apr 12, 2021 at 12:45:51PM +, Chen Jun wrote: the correct error is covered by put_old_timex32. >>> >>> Well, the non-negative return

Re: [PATCH 4.19 00/66] 4.19.187-rc1 review

2021-04-12 Thread Shuah Khan
On 4/12/21 2:40 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.187 release. There are 66 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

[RESEND PATCH 2/2] delayacct: Add a proc file to dump the delay info

2021-04-12 Thread brookxu
From: Chunguang Xu Many distributions do not install the getdelay tool by default, similar to task_io_accounting, adding a proc file to make access easier. Signed-off-by: Chunguang Xu --- fs/proc/base.c | 7 +++ kernel/delayacct.c | 41 + 2

[RESEND PATCH 1/2] delayacct: refactor the code to simplify the implementation

2021-04-12 Thread brookxu
From: Chunguang Xu The existing data structure is not very convenient for expansion, and part of the code can be saved. Here, try to optimize, which can make the code more concise and easy to expand. Signed-off-by: Chunguang Xu --- include/linux/delayacct.h | 139

Re: [kbuild-all] Re: arch/csky/mm/tcm.c:9:2: error: #error "You should define ITCM_RAM_BASE"

2021-04-12 Thread Rong Chen
On 4/11/21 1:42 PM, Randy Dunlap wrote: On 4/10/21 9:43 PM, kernel test robot wrote: Hi Julian, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 52e44129fba5cfc4e351fdb5e45849afc74d9a53 commit:

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

2021-04-12 Thread Shuah Khan
On 4/12/21 2:39 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.112 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/5] mm/swap_state: fix swap_cluster_readahead() race with swapoff

2021-04-12 Thread Huang, Ying
Miaohe Lin writes: > swap_cluster_readahead() could race with swapoff and might dereference > si->swap_file after it's released by swapoff. Close this race window by > using get/put_swap_device() pair. I think we should fix the callers instead to reduce the overhead. Now, do_swap_page() has

Re: [PATCH 3/5] mm/swap_state: fix get_shadow_from_swap_cache() race with swapoff

2021-04-12 Thread Huang, Ying
Miaohe Lin writes: > The function get_shadow_from_swap_cache() can race with swapoff, though > it's only called by do_swap_page() now. > > Fixes: aae466b0052e ("mm/swap: implement workingset detection for anonymous > LRU") > Signed-off-by: Miaohe Lin This is unnecessary. The only caller has

Re: [PATCH 5.10 000/188] 5.10.30-rc1 review

2021-04-12 Thread Shuah Khan
On 4/12/21 2:38 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.10.30 release. There are 188 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/210] 5.11.14-rc1 review

2021-04-12 Thread Shuah Khan
On 4/12/21 2:38 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.11.14 release. There are 210 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 v1 1/2] dt-bindings: mmc: sdhci-of-aspeed: Add power-gpio and power-switch-gpio

2021-04-12 Thread Steven Lee
The 04/10/2021 02:41, Rob Herring wrote: > On Thu, Apr 08, 2021 at 09:52:17AM +0800, Steven Lee wrote: > > AST2600-A2 EVB provides the reference design for enabling SD bus power > > and toggling SD bus signal voltage by GPIO pins. > > Add the definition and example for power-gpio and

Re:Re: [PATCH v2] Documentation/translations/zh_CN/dev-tools/

2021-04-12 Thread Bernard
Hi Wu X.C : Thanks for your review! I will fix this and resubmit this patch. BR//Bernard From: "Wu X.C." Date: 2021-04-02 11:58:27 To: Bernard Zhao Cc: Harry Wei ,Alex Shi ,Alex Shi ,Jonathan Corbet ,Nathan Chancellor ,Nick Desaulniers

Re: [PATCH 2/5] swap: fix do_swap_page() race with swapoff

2021-04-12 Thread Huang, Ying
Miaohe Lin writes: > When I was investigating the swap code, I found the below possible race > window: > > CPU 1 CPU 2 > - - > do_swap_page > synchronous swap_readpage > alloc_page_vma >

Re: Regression: gvt: vgpu 1: MI_LOAD_REGISTER_MEM handler error

2021-04-12 Thread Alex Williamson
On Mon, 12 Apr 2021 10:32:14 -0600 Alex Williamson wrote: > Running a Windows guest on a i915-GVTg_V4_2 from an HD 5500 IGD on > v5.12-rc6 results in host logs: > > gvt: vgpu 1: lrm access to register (20c0) > gvt: vgpu 1: MI_LOAD_REGISTER_MEM handler error > gvt: vgpu 1: cmd parser error > 0x0

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-04-12 Thread Len Brown
On Mon, Apr 12, 2021 at 8:17 PM Thomas Gleixner wrote: > I'm fine with that as long the kernel has a way to detect that and can > kill the offending application/library combo with an excplicit > -SIG_NICE_TRY. Agreed. The new run-time check for altsigstack overflow is one place we can do that.

[RFC PATCH v3 0/3] vfio/hisilicon: add acc live migration driver

2021-04-12 Thread Longfang Liu
The live migration solution relies on the vfio_device_migration_info protocol. The structure vfio_device_migration_info is placed at the 0th offset of the VFIO_REGION_SUBTYPE_MIGRATION region to get and set VFIO device related migration information. Field accesses from this structure are only

Re: [PATCHv5 0/7] Extend Intel service layer, FPGA manager and region

2021-04-12 Thread Richard Gong
Hi Moritz, On 3/28/21 12:20 PM, Moritz Fischer wrote: Tom, On Sun, Mar 28, 2021 at 08:40:24AM -0700, Tom Rix wrote: On 3/27/21 11:09 AM, Moritz Fischer wrote: Hi Richard, Russ, On Thu, Feb 25, 2021 at 01:07:14PM +, Gong, Richard wrote: Hi Moritz, Sorry for asking. When you have

Re: [PATCH v12 13/13] x86/kvm: Add kexec support for SEV Live Migration.

2021-04-12 Thread Steve Rutherford
On Mon, Apr 12, 2021 at 5:22 PM Steve Rutherford wrote: > > On Mon, Apr 12, 2021 at 12:48 PM Ashish Kalra wrote: > > > > From: Ashish Kalra > > > > Reset the host's shared pages list related to kernel > > specific page encryption status settings before we load a > > new kernel by kexec. We

Re: [PATCH v4] userfaultfd/shmem: fix MCOPY_ATOMIC_CONTINUE behavior

2021-04-12 Thread Peter Xu
On Mon, Apr 12, 2021 at 05:51:14PM -0700, Hugh Dickins wrote: > On Mon, 12 Apr 2021, Peter Xu wrote: > > On Tue, Apr 06, 2021 at 11:14:30PM -0700, Hugh Dickins wrote: > > > > +static int mcopy_atomic_install_ptes(struct mm_struct *dst_mm, pmd_t > > > > *dst_pmd, > > > > +

[RFC PATCH 1/3] vfio/hisilicon: add acc live migration driver

2021-04-12 Thread Longfang Liu
This driver adds the code required by Hisilicon accelerator device to realize the live migration function. It mainly includes the following functions: (1).Match the accelerator device with the vfio-pci driver framework. (2).Processing of the status of the live migration function and processing of

[RFC PATCH 2/3] vfio/hisilicon: register the driver to vfio

2021-04-12 Thread Longfang Liu
Register the live migration driver of the accelerator module to vfio Signed-off-by: Longfang Liu --- drivers/vfio/pci/vfio_pci.c | 11 +++ drivers/vfio/pci/vfio_pci_private.h | 10 ++ 2 files changed, 21 insertions(+) diff --git a/drivers/vfio/pci/vfio_pci.c

[RFC PATCH 3/3] vfio/hisilicom: add debugfs for driver

2021-04-12 Thread Longfang Liu
Add debugfs debugging interface to live migration driver Signed-off-by: Longfang Liu --- drivers/vfio/pci/hisilicon/acc_vf_migration.c | 193 ++ drivers/vfio/pci/hisilicon/acc_vf_migration.h | 2 + 2 files changed, 195 insertions(+) diff --git

[PATCH v3] HID: i2c-hid: Skip ELAN power-on command after reset

2021-04-12 Thread Johnny Chuang
Fixes: 43b7029f475e ("HID: i2c-hid: Send power-on command after reset"). For ELAN touchscreen, we found our boot code of IC was not flexible enough to receive and handle this command. Once the FW main code of our controller is crashed for some reason, the controller could not be enumerated

Re: [RFC PATCH v3 0/3] vfio/hisilicon: add acc live migration driver

2021-04-12 Thread liulongfang
On 2021/4/12 16:53, Longfang Liu wrote: > The live migration solution relies on the vfio_device_migration_info protocol. > The structure vfio_device_migration_info is placed at the 0th offset of > the VFIO_REGION_SUBTYPE_MIGRATION region to get and set VFIO device related > migration information.

Re: [PATCH] MIPS: Fix strnlen_user access check

2021-04-12 Thread Jinyang He
On 04/12/2021 10:27 PM, Thomas Bogendoerfer wrote: On Mon, Apr 12, 2021 at 11:02:19AM +0800, Tiezhu Yang wrote: On 04/11/2021 07:04 PM, Jinyang He wrote: Commit 04324f44cb69 ("MIPS: Remove get_fs/set_fs") brought a problem for strnlen_user(). Jump out when checking access_ok() with condition

Please respond urgently

2021-04-12 Thread Ahmed Hassan
Greetings, With due respect to your person, I make this contact with you as I believe that you can be of great assistance to me. I need your urgent assistance in transferring the sum of $11.3 million USD to your private account Where this money can be shared between us. The money has been here

[PATCH] mac80211_hwsim: indicate support for 60GHz channels

2021-04-12 Thread Ramon Fontes
Advertise 60GHz channels to mac80211. --- drivers/net/wireless/mac80211_hwsim.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index fa7d4c20d..70d0af475 100644 ---

Re: [PATCH V2 4/6] mm: Drop redundant ARCH_ENABLE_[HUGEPAGE|THP]_MIGRATION

2021-04-12 Thread Anshuman Khandual
On 4/12/21 5:29 PM, Oscar Salvador wrote: > On Thu, Apr 01, 2021 at 12:14:06PM +0530, Anshuman Khandual wrote: >> ARCH_ENABLE_[HUGEPAGE|THP]_MIGRATION configs have duplicate definitions on >> platforms that subscribe them. Drop these reduntant definitions and instead >> just select them

Re: [PATCH v4 08/12] perf record: introduce --threads= command line option

2021-04-12 Thread Namhyung Kim
Hello, On Tue, Apr 6, 2021 at 5:49 PM Bayduraev, Alexey V wrote: > > > Provide --threads option in perf record command line interface. > The option can have a value in the form of masks that specify > cpus to be monitored with data streaming threads and its layout > in system topology. The masks

Re: [PATCH v12 12/13] x86/kvm: Add guest support for detecting and enabling SEV Live Migration feature.

2021-04-12 Thread Ashish Kalra
On Mon, Apr 12, 2021 at 05:25:15PM -0700, Steve Rutherford wrote: > On Mon, Apr 12, 2021 at 12:46 PM Ashish Kalra wrote: > > > > From: Ashish Kalra > > > > The guest support for detecting and enabling SEV Live migration > > feature uses the following logic : > > > > - kvm_init_plaform() invokes

Re: [PATCH v2 5/5] mm/memcg: Optimize user context object stock access

2021-04-12 Thread Waiman Long
On 4/12/21 7:10 PM, Shakeel Butt wrote: On Mon, Apr 12, 2021 at 3:55 PM Waiman Long wrote: Most kmem_cache_alloc() calls are from user context. With instrumentation enabled, the measured amount of kmem_cache_alloc() calls from non-task context was about 0.01% of the total. The irq

[PATCH] [v4] Input: Add "Select" button to Microsoft Xbox One controller.

2021-04-12 Thread Chris Ye
Add "Select" button input capability and input event mapping for Microsoft Xbox One controller. From product site this is also referred as "Share" button. Fixed Microsoft Xbox One controller select button not working under USB connection. Signed-off-by: Chris Ye ---

Re: [PATCH net-next v4 2/2] of: net: fix of_get_mac_addr_nvmem() for non-platform devices

2021-04-12 Thread Andrew Lunn
On Mon, Apr 12, 2021 at 07:47:18PM +0200, Michael Walle wrote: > of_get_mac_address() already supports fetching the MAC address by an > nvmem provider. But until now, it was just working for platform devices. > Esp. it was not working for DSA ports and PCI devices. It gets more > common that PCI

Re: [PATCH net-next v4 1/2] of: net: pass the dst buffer to of_get_mac_address()

2021-04-12 Thread Andrew Lunn
On Mon, Apr 12, 2021 at 07:47:17PM +0200, Michael Walle wrote: > of_get_mac_address() returns a "const void*" pointer to a MAC address. > Lately, support to fetch the MAC address by an NVMEM provider was added. > But this will only work with platform devices. It will not work with > PCI devices

Re: [PATCH] clk: qcom: rpmh: add support for SDX55 rpmh IPA clock

2021-04-12 Thread Stephen Boyd
Quoting Alex Elder (2021-04-09 06:44:07) > The IPA core clock is required for SDX55. Define it. > > Signed-off-by: Alex Elder > --- Applied to clk-next

Re: [PATCH v4] userfaultfd/shmem: fix MCOPY_ATOMIC_CONTINUE behavior

2021-04-12 Thread Hugh Dickins
On Mon, 12 Apr 2021, Peter Xu wrote: > On Tue, Apr 06, 2021 at 11:14:30PM -0700, Hugh Dickins wrote: > > > +static int mcopy_atomic_install_ptes(struct mm_struct *dst_mm, pmd_t > > > *dst_pmd, > > > + struct vm_area_struct *dst_vma, > > > +

[PATCH v2] Documentation: kunit: add tips for running KUnit

2021-04-12 Thread Daniel Latypov
This is long overdue. There are several things that aren't nailed down (in-tree .kunitconfig's), or partially broken (GCOV on UML), but having them documented, warts and all, is better than having nothing. This covers a bunch of the more recent features * kunit_filter_glob * kunit.py run

[PATCH] mmc: core: Don't allocate IDA for OF aliases

2021-04-12 Thread Stephen Boyd
There's a chance that the IDA allocated in mmc_alloc_host() is not freed for some time because it's freed as part of a class' release function (see mmc_host_classdev_release() where the IDA is freed). If another thread is holding a reference to the class, then only once all balancing device_put()

Re: [RFC PATCH v5 2/4] block: add simple copy support

2021-04-12 Thread Damien Le Moal
On 2021/04/12 23:35, Selva Jove wrote: > On Mon, Apr 12, 2021 at 5:55 AM Damien Le Moal wrote: >> >> On 2021/04/07 20:33, Selva Jove wrote: >>> Initially I started moving the dm-kcopyd interface to the block layer >>> as a generic interface. >>> Once I dig deeper in dm-kcopyd code, I figured that

Re: [PATCH RFC net-next 0/3] Multi-CPU DSA support

2021-04-12 Thread Marek Behun
On Tue, 13 Apr 2021 02:27:30 +0200 Marek Behun wrote: > On Tue, 13 Apr 2021 01:54:50 +0200 > Marek Behun wrote: > > > I will look into this, maybe ask some follow-up questions. > > Tobias, > > it seems that currently the LAGs in mv88e6xxx driver do not use the > HashTrunk feature (which can

Re: [PATCH RFC net-next 0/3] Multi-CPU DSA support

2021-04-12 Thread Marek Behun
On Tue, 13 Apr 2021 01:54:50 +0200 Marek Behun wrote: > I will look into this, maybe ask some follow-up questions. Tobias, it seems that currently the LAGs in mv88e6xxx driver do not use the HashTrunk feature (which can be enabled via bit 11 of the MV88E6XXX_G2_TRUNK_MAPPING register). If we

Re: [PATCH] vfio/pci: Add missing range check in vfio_pci_mmap

2021-04-12 Thread David Gibson
On Mon, Apr 12, 2021 at 11:41:24PM +0200, Christian A. Ehrhardt wrote: > > When mmaping an extra device region verify that the region index > derived from the mmap offset is valid. > > Fixes: a15b1883fee1 ("vfio_pci: Allow mapping extra regions") > Cc: sta...@vger.kernel.org > Signed-off-by:

Re: [PATCH v12 12/13] x86/kvm: Add guest support for detecting and enabling SEV Live Migration feature.

2021-04-12 Thread Steve Rutherford
On Mon, Apr 12, 2021 at 12:46 PM Ashish Kalra wrote: > > From: Ashish Kalra > > The guest support for detecting and enabling SEV Live migration > feature uses the following logic : > > - kvm_init_plaform() invokes check_kvm_sev_migration() which >checks if its booted under the EFI > >-

Re: [PATCH v12 13/13] x86/kvm: Add kexec support for SEV Live Migration.

2021-04-12 Thread Steve Rutherford
On Mon, Apr 12, 2021 at 12:48 PM Ashish Kalra wrote: > > From: Ashish Kalra > > Reset the host's shared pages list related to kernel > specific page encryption status settings before we load a > new kernel by kexec. We cannot reset the complete > shared pages list here as we need to retain the >

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-04-12 Thread Thomas Gleixner
On Mon, Apr 12 2021 at 19:46, Len Brown wrote: > On Mon, Apr 12, 2021 at 11:21 AM Andy Lutomirski wrote: >> Even putting aside all kernel and ABI issues, is it actually a good >> idea for user libraries to transparently use these new features? I'm >> not really convinced. I think that serious

Re: [Outreachy kernel][PATCH 3/4 v2] staging: media: omap4iss: Replace macro function by static inline function in file iss_ipipeif.c

2021-04-12 Thread kernel test robot
Hi Aline, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Aline-Santana-Cordeiro/staging-media-omap4iss-Replace-macro-function-by-static-inline-function-in-file-iss-c/20210412-215756 base

Re: [Nouveau] [PATCH v2] ALSA: hda: Continue to probe when codec probe fails

2021-04-12 Thread Karol Herbst
On Mon, Apr 12, 2021 at 9:36 PM Roy Spliet wrote: > > Hello Aaron, > > Thanks for your insights. A follow-up query and some observations in-line. > > Op 12-04-2021 om 20:06 schreef Aaron Plattner: > > On 4/10/21 1:48 PM, Roy Spliet wrote: > >> Op 10-04-2021 om 20:23 schreef Lukas Wunner: > >>> On

[PATCH] ibmvfc: Fix invalid state machine BUG_ON

2021-04-12 Thread Tyrel Datwyler
From: Brian King This fixes an issue hitting the BUG_ON in ibmvfc_do_work. When going through a host action of IBMVFC_HOST_ACTION_RESET, we change the action to IBMVFC_HOST_ACTION_TGT_DEL, then drop the host lock, and reset the CRQ, which changes the host state to IBMVFC_NO_CRQ. If, prior to

Re: [RFC v4 net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-12 Thread Andrew Lunn
> > > +static void > > > +mt7530_setup_mdio_irq(struct mt7530_priv *priv) > > > +{ > > > + struct dsa_switch *ds = priv->ds; > > > + int p; > > > + > > > + for (p = 0; p < MT7530_NUM_PHYS; p++) { > > > + if (BIT(p) & ds->phys_mii_mask) { > > > + unsigned int irq; > > > + >

Re: [PATCH V1 1/2] soc: qcom: aoss: Expose send for generic usecase

2021-04-12 Thread Bjorn Andersson
On Fri 09 Apr 02:31 CDT 2021, Manivannan Sadhasivam wrote: > On Sun, Apr 04, 2021 at 12:17:52PM -0500, Bjorn Andersson wrote: > > On Fri 02 Apr 01:17 CDT 2021, Deepak Kumar Singh wrote: > > > > > Not all upcoming usecases will have an interface to allow the aoss > > > driver to hook onto. Expose

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