arch/sh/kernel/cpu/sh3/probe.c:96:17: sparse: sparse: incorrect type in argument 1 (different base types)

2021-02-03 Thread kernel test robot
Hi Luc, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 61556703b610a104de324e4f061dc6cf7b218b46 commit: e5fc436f06eef54ef512ea55a9db8eb9f2e76959 sparse: use static inline for __chk_{user,io}_ptr() date: 5

Re: [PATCH v5 3/3] PM / devfreq: Add required OPPs support to passive governor

2021-02-03 Thread Viresh Kumar
On 03-02-21, 17:24, Hsin-Yi Wang wrote: > From: Saravana Kannan > > Look at the required OPPs of the "parent" device to determine the OPP that > is required from the slave device managed by the passive governor. This > allows having mappings between a parent device and a slave device even when >

Re: BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x1df5/0x2650

2021-02-03 Thread Steven Rostedt
On Tue, 2 Feb 2021 19:09:44 -0800 Ivan Babrou wrote: > On Thu, Jan 28, 2021 at 7:35 PM Ivan Babrou wrote: > > > > Hello, > > > > We've noticed the following regression in Linux 5.10 branch: > > > > [ 128.367231][C0] > > == > >

Re: [PATCH v4 01/11] crypto: qce: sha: Restore/save ahash state with custom struct in export/import

2021-02-03 Thread Herbert Xu
On Thu, Feb 04, 2021 at 04:56:17AM +0800, kernel test robot wrote: > > Thank you for the patch! Yet something to improve: Please fix this before you resubmit again. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key:

[PATCH] [SCSI] fnic: convert sysfs sprintf/snprintf family to sysfs_emit

2021-02-03 Thread Jiapeng Chong
Fix the following coccicheck warning: ./drivers/scsi/fnic/fnic_attrs.c:43:8-16: WARNING: use scnprintf or sprintf. ./drivers/scsi/fnic/fnic_attrs.c:35:8-16: WARNING: use scnprintf or sprintf. ./drivers/scsi/fnic/fnic_attrs.c:29:8-16: WARNING: use scnprintf or sprintf. Reported-by: Abaci Robot

Re: BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x1df5/0x2650

2021-02-03 Thread Josh Poimboeuf
On Wed, Feb 03, 2021 at 04:52:42PM -0800, Ivan Babrou wrote: > We also have the following stack that doesn't touch any crypto: > > * https://gist.github.com/bobrik/40e2559add2f0b26ae39da30dc451f1e Can you also run this through decode_stacktrace.sh? Both are useful (until I submit a fix for

Re: [PATCH] drivers: core: Detach device from power domain on shutdown

2021-02-03 Thread Kai-Heng Feng
Hi Furquan, On Wed, Jan 13, 2021 at 10:31 PM Dmitry Osipenko wrote: [snipped] > Thank you all for addressing this problem! Are you still working on the alternate solution? This patch can address S5 power consumption issue for some laptops:

Re: [PATCH] selftests: breakpoints: Fix wrong argument of ptrace() when single step

2021-02-03 Thread Tiezhu Yang
On 02/04/2021 02:30 AM, Shuah Khan wrote: On 2/3/21 1:39 AM, Tiezhu Yang wrote: According to the error message, the first argument of ptrace() should be PTRACE_SINGLESTEP instead of PTRACE_CONT when ptrace single step. Fixes: f43365ee17f8 ("selftests: arm64: add test for unaligned/inexact

[PATCH] KVM: SVM: Remove bogus WARN and emulation if guest #GPs with EFER.SVME=1

2021-02-03 Thread Sean Christopherson
Immediately reinject #GP (if intercepted) if the VMware backdoor is disabled and the instruction is not affected by the erratum that causes bogus #GPs on SVM instructions. It is completely reasonable for the guest to take a #GP(0) with EFER.SVME=1, e.g. when probing an MSR, and attempting

Re: [PATCH V2] drivers: net: ethernet: i825xx: Fix couple of spellings and get rid of blank lines too in the file ether1.c

2021-02-03 Thread Bhaskar Chowdhury
On 18:09 Wed 03 Feb 2021, Randy Dunlap wrote: On 2/3/21 5:18 PM, Bhaskar Chowdhury wrote: s/initialsation/initialisation/ s/specifiing/specifying/ Plus get rid of few blank lines. Signed-off-by: Bhaskar Chowdhury --- Changes from V1: Fix typo in the subject line Give explanation of

Re: [PATCH] block: recalculate segment count for multi-segment discard requests correctly

2021-02-03 Thread Ming Lei
On Mon, Feb 01, 2021 at 11:48:50AM -0500, David Jeffery wrote: > When a stacked block device inserts a request into another block device > using blk_insert_cloned_request, the request's nr_phys_segments field gets > recalculated by a call to blk_recalc_rq_segments in > blk_cloned_rq_check_limits.

Re: [PATCH net-next] seg6: fool-proof the processing of SRv6 behavior attributes

2021-02-03 Thread Andrea Mayer
Hi David, thanks for your time. On Wed, 3 Feb 2021 08:59:40 -0700 David Ahern wrote: > On 2/2/21 11:56 AM, Andrea Mayer wrote: > > diff --git a/net/ipv6/seg6_local.c b/net/ipv6/seg6_local.c > > index b07f7c1c82a4..7cc50d506902 100644 > > --- a/net/ipv6/seg6_local.c > > +++

Re: [PATCH v5 2/8] usb: pd: Update VDO definitions

2021-02-03 Thread Kyle Tso
On Thu, Feb 4, 2021 at 12:55 AM Benson Leung wrote: > > Hey Kyle, > > On Tue, Feb 2, 2021 at 8:23 AM Kyle Tso wrote: > > > > "PD Spec Revision 3.0 Version 2.0 + ECNs 2020-12-10" introduces several > > changes regarding the ID Header VDO and the Product Type VDOs. > > > > Signed-off-by: Kyle Tso

Re: [PATCH v2 3/3] iommu/vt-d: Apply SATC policy

2021-02-03 Thread Lu Baolu
Hi Kevin, On 2/4/21 9:59 AM, Tian, Kevin wrote: From: Lu Baolu Sent: Wednesday, February 3, 2021 5:33 PM From: Yian Chen Starting from Intel VT-d v3.2, Intel platform BIOS can provide a new SATC table structure. SATC table lists a set of SoC integrated devices that require ATC to work (VT-d

[PATCH] x86: Add a prompt for HPET_EMULATE_RTC

2021-02-03 Thread Anand K Mistry
This does two things: 1. Makes the option visible in menuconfig, allowing the user to easily disable this option 2. Allows olddefconfig to respoct the option if it is set in the old .config file It's not clear exactly why the second consequence is true, but it appears to be because when the

Re: [PATCH] block: recalculate segment count for multi-segment discard requests correctly

2021-02-03 Thread Ming Lei
On Wed, Feb 03, 2021 at 11:23:37AM -0500, David Jeffery wrote: > On Wed, Feb 03, 2021 at 10:35:17AM +0800, Ming Lei wrote: > > > > On Tue, Feb 02, 2021 at 03:43:55PM -0500, David Jeffery wrote: > > > The return 0 does seem to be an old relic that does not make sense > > > anymore. > > > Moving

Re: [PATCH 2/4] hugetlg: Break earlier in add_reservation_in_range() when we can

2021-02-03 Thread Miaohe Lin
Hi: On 2021/2/4 5:08, Peter Xu wrote: > All the regions maintained in hugetlb reserved map is inclusive on "from" but > exclusive on "to". We can break earlier even if rg->from==t because it > already > means no possible intersection. > > This does not need a Fixes in all cases because when it

Re: [PATCH 07/12] KVM: x86: SEV: Treat C-bit as legal GPA bit regardless of vCPU mode

2021-02-03 Thread Sean Christopherson
On Thu, Feb 04, 2021, Edgecombe, Rick P wrote: > On Wed, 2021-02-03 at 16:01 -0800, Sean Christopherson wrote: > >   > > -   unsigned long cr3_lm_rsvd_bits; > > +   u64 reserved_gpa_bits; > > LAM defines bits above the GFN in CR3: >

Re: [PATCH v6 13/37] cpufreq: scmi: port driver to the new scmi_perf_proto_ops interface

2021-02-03 Thread Viresh Kumar
On 02-02-21, 22:15, Cristian Marussi wrote: > Port driver to the new SCMI Perf interface based on protocol handles > and common devm_get_ops(). > > Cc: Rafael J. Wysocki > Cc: Viresh Kumar > Signed-off-by: Cristian Marussi > --- > v4 --> v5 > - using renamed devm_get/put_protocol > --- >

Re: [PATCH V2] drivers: net: ethernet: i825xx: Fix couple of spellings and get rid of blank lines too in the file ether1.c

2021-02-03 Thread Randy Dunlap
On 2/3/21 5:18 PM, Bhaskar Chowdhury wrote: > > s/initialsation/initialisation/ > s/specifiing/specifying/ > > Plus get rid of few blank lines. > > Signed-off-by: Bhaskar Chowdhury > --- > Changes from V1: >Fix typo in the subject line >Give explanation of all the changes in changelog

[PATCH] ALSA: usb-audio: endpoint : remove redundant check before usb_free_coherent()

2021-02-03 Thread Xu Wang
usb_free_coherent() is safe with NULL addr and this check is not required. Signed-off-by: Xu Wang --- sound/usb/endpoint.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index 8e568823c992..d5ed4ddfd451 100644 ---

[PATCH v11 2/2] Documentation: fpga: dfl: Add description for DFL UIO support

2021-02-03 Thread Xu Yilun
This patch adds description for UIO support for dfl devices on DFL bus. Signed-off-by: Xu Yilun Reviewed-by: Tom Rix Reviewed-by: Wu Hao --- v2: no doc in v1, add it for v2. v3: some documentation fixes. v4: documentation change since the driver matching is changed. v5: no change. v6: improve

[PATCH v11 1/2] uio: uio_dfl: add userspace i/o driver for DFL bus

2021-02-03 Thread Xu Yilun
This patch supports the DFL drivers be written in userspace. This is realized by exposing the userspace I/O device interfaces. The driver now only binds the ether group feature, which has no irq. So the irq support is not implemented yet. Signed-off-by: Xu Yilun Reviewed-by: Tom Rix --- v9:

[PATCH v11 0/2] UIO support for dfl devices

2021-02-03 Thread Xu Yilun
This patchset supports some dfl device drivers written in userspace. In the patchset v1, the "driver_override" interface should be used to bind the DFL UIO driver to DFL devices. But there is concern that the "driver_override" interface is not OK itself. In v2, we use a new matching algorithem.

ERROR: ".current_stack_frame" undefined!

2021-02-03 Thread kernel test robot
Hi Michael, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3aaf0a27ffc29b19a62314edd684b9bc6346f9a8 commit: 3d13e839e801e081bdece0127c2affa33d0f77cf powerpc: Rename current_stack_pointer() to

Re: [PATCH 07/12] KVM: x86: SEV: Treat C-bit as legal GPA bit regardless of vCPU mode

2021-02-03 Thread Edgecombe, Rick P
On Wed, 2021-02-03 at 16:01 -0800, Sean Christopherson wrote: >   > -   unsigned long cr3_lm_rsvd_bits; > +   u64 reserved_gpa_bits; LAM defines bits above the GFN in CR3:

[PATCH 0/1] clk: mmp2: Enable the 3D GPU clock alongside the 2D clock

2021-02-03 Thread Lubomir Rintel
Hi, Please consider applying the sad little patch chained to this message. It is a workaround that makes the 2D GPU work on MMP3 when the 3D GPU is not used. It's been observed that the 2D GPU won't work when what is understood to be the 3D GPU clock is turned off. The etnaviv developers suggest

[PATCH 1/1] clk: mmp2: Enable the 3D GPU clock alongside the 2D clock

2021-02-03 Thread Lubomir Rintel
The bits intended to control the 3D GPU clock need to be enabled for the 2D GPU to work. It is not clear why this needs to be done. Forcing the 3D clock on when the etnaviv driver requests a 2D clock works around the problem. Signed-off-by: Lubomir Rintel --- drivers/clk/mmp/clk-gate.c| 9

Re: [PATCH] misc: pvpanic: sysfs_emit uses should have a newline

2021-02-03 Thread zhenwei pi
On 2/3/21 10:57 PM, Greg Kroah-Hartman wrote: On Mon, Feb 01, 2021 at 09:56:57AM +0800, zhenwei pi wrote: On 1/30/21 3:08 AM, Joe Perches wrote: Add newline terminations to the sysfs_emit uses added by -next commit 8d6da6575ffe ("misc: pvpanic: introduce events device attribue")

Re: [PATCH 1/4] hugetlb: Dedup the code to add a new file_region

2021-02-03 Thread Miaohe Lin
Hi: On 2021/2/4 5:08, Peter Xu wrote: > Introduce hugetlb_resv_map_add() helper to add a new file_region rather than > duplication the similar code twice in add_reservation_in_range(). > This cleanup is also in my plan. But I was too sluggish to do this. Many thanks for doing this. Reviewed-by:

RE: [PATCH v2 3/3] iommu/vt-d: Apply SATC policy

2021-02-03 Thread Tian, Kevin
> From: Lu Baolu > Sent: Wednesday, February 3, 2021 5:33 PM > > From: Yian Chen > > Starting from Intel VT-d v3.2, Intel platform BIOS can provide a new SATC > table structure. SATC table lists a set of SoC integrated devices that > require ATC to work (VT-d specification v3.2, section 8.8).

RE: [PATCH v2 1/1] fpga: dfl: afu: harden port enable logic

2021-02-03 Thread Wu, Hao
> On Wed, 3 Feb 2021, Russ Weight wrote: > > > > > > > On 2/3/21 1:28 AM, Wu, Hao wrote: > >>> Subject: Re: [PATCH v2 1/1] fpga: dfl: afu: harden port enable logic > >>> > >>> Sorry for the delay on this patch. It seemed like a lower priority patch > >>> than > >>> others, since we haven't seen

Re: [PATCH V7 6/6] of: unittest: Statically apply overlays using fdtoverlay

2021-02-03 Thread Rob Herring
On Fri, Jan 29, 2021 at 12:54:10PM +0530, Viresh Kumar wrote: > Now that fdtoverlay is part of the kernel build, start using it to test > the unitest overlays we have by applying them statically. Create two new > base files static_base_1.dts and static_base_2.dts which includes other > .dtsi

Re: [PATCH v14 11/11] kdump: update Documentation about crashkernel

2021-02-03 Thread chenzhou
Hi Randy, On 2021/1/31 1:53, Randy Dunlap wrote: > Hi-- > > On 1/29/21 11:10 PM, Chen Zhou wrote: >> --- >> Documentation/admin-guide/kdump/kdump.rst | 22 --- >> .../admin-guide/kernel-parameters.txt | 11 -- >> 2 files changed, 28 insertions(+), 5

[PATCH] arm64: improve whitespace

2021-02-03 Thread Zhiyuan Dai
In a few places we don't have whitespace between macro parameters, which makes them hard to read. This patch adds whitespace to clearly separate the parameters. In a few places we have unnecessary whitespace around unary operators, which is confusing, This patch removes the unnecessary

Re: [PATCH v3 4/5] ACPI: video: Clean up printing messages

2021-02-03 Thread Hanjun Guo
On 2021/2/4 2:48, Rafael J. Wysocki wrote: From: Rafael J. Wysocki Replace the ACPI_DEBUG_PRINT() instances in acpi_video.c with acpi_handle_debug() calls and the ACPI_EXCEPTION()/ACPI_ERROR()/ ACPI_WARNING() instances in there with acpi_handle_info() calls, which among other things causes the

Re: Re: [PATCH 2/2] arm64/kernel: improve the coding style

2021-02-03 Thread 戴志远
I am very sorry, my English cooperation is poor, just want to contribute。 2021-02-03 19:41:58 "Mark Rutland" 写道: > On Wed, Feb 03, 2021 at 01:48:19PM +0800, Zhiyuan Dai wrote: > > Just improve the coding style. > > > > Signed-off-by: Zhiyuan Dai > > This is terse and doesn't tell the reader

[ANNOUNCE] 4.9.255-rt170

2021-02-03 Thread Luis Claudio R. Goncalves
Hello RT-list! I'm pleased to announce the 4.9.255-rt170 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v4.9-rt Head SHA1: 38abb89e640d41df8c16cc1b770853d278beec73 Or to build 4.9.255-rt170

RE: [PATCH v3 1/1] fpga: dfl: afu: harden port enable logic

2021-02-03 Thread Wu, Hao
> On 2/3/21 1:01 AM, Wu, Hao wrote: > >> Subject: [PATCH v3 1/1] fpga: dfl: afu: harden port enable logic > >> > >> Port enable is not complete until ACK = 0. Change > >> __afu_port_enable() to guarantee that the enable process > >> is complete by polling for ACK == 0. > >> > >> Signed-off-by:

linux-next: build failure after merge of the net-next tree

2021-02-03 Thread Stephen Rothwell
tu" [vmlinux] is a static EXPORT_SYMBOL ERROR: modpost: "ip6_mtu" [vmlinux] is a static EXPORT_SYMBOL Caused by commits f67fbeaebdc0 ("net: use indirect call helpers for dst_mtu") bbd807dfbf20 ("net: indirect call helpers for ipv4/ipv6 dst_check functions")

Re: [PATCH v5 0/3] Kbuild: DWARF v5 support

2021-02-03 Thread Nick Desaulniers
On Sun, Jan 17, 2021 at 12:14 PM Arnaldo Carvalho de Melo wrote: > > Em Fri, Jan 15, 2021 at 03:43:06PM -0800, Yonghong Song escreveu: > > > > > > On 1/15/21 3:34 PM, Nick Desaulniers wrote: > > > On Fri, Jan 15, 2021 at 3:24 PM Yonghong Song wrote: > > > > > > > > > > > > > > > > On 1/15/21

Re: [PATCH v2] net: mdiobus: Prevent spike on MDIO bus reset signal

2021-02-03 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (refs/heads/master): On Tue, 2 Feb 2021 15:32:39 +0100 you wrote: > The mdio_bus reset code first de-asserted the reset by allocating with > GPIOD_OUT_LOW, then asserted and de-asserted again. In other words, if > the reset signal defaulted

RE: [PATCH 2/3] dt-bindings: iommu: renesas,ipmmu-vmsa: Make 'power-domains' conditionally required

2021-02-03 Thread Yoshihiro Shimoda
Hi Rob, > From: Rob Herring, Sent: Wednesday, February 3, 2021 5:56 AM > > Fixing the compatible string typos results in an error in the example: > > Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.example.dt.yaml: > iommu@fe951000: 'power-domains' is a required property > > Based

Re: [PATCH 2/2] perf parse-events: Break out tracepoint and printing.

2021-02-03 Thread Ian Rogers
On Wed, Feb 3, 2021 at 4:58 PM Arnaldo Carvalho de Melo wrote: > > Em Wed, Feb 03, 2021 at 05:50:24PM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Wed, Feb 03, 2021 at 10:38:41AM -0800, Ian Rogers escreveu: > > > On Wed, Feb 3, 2021 at 8:21 AM Arnaldo Carvalho de Melo > > > wrote: > > > > >

[PATCH] usb: typec: remove unused variable ‘ret’ in typec_partner_set_pd_revision

2021-02-03 Thread Ye Bin
Fix follow warning: drivers/usb/typec/class.c:763:6: warning: unused variable ‘ret’ [-Wunused-variable] int ret; ^~~ Reported-by: Hulk Robot Signed-off-by: Ye Bin --- drivers/usb/typec/class.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/typec/class.c

[PATCH V2] drivers: net: ethernet: i825xx: Fix couple of spellings and get rid of blank lines too in the file ether1.c

2021-02-03 Thread Bhaskar Chowdhury
s/initialsation/initialisation/ s/specifiing/specifying/ Plus get rid of few blank lines. Signed-off-by: Bhaskar Chowdhury --- Changes from V1: Fix typo in the subject line Give explanation of all the changes in changelog text drivers/net/ethernet/i825xx/ether1.c | 9 +++-- 1 file

Re: [PATCH v3 2/5] ACPI: battery: Clean up printing messages

2021-02-03 Thread Hanjun Guo
On 2021/2/4 2:44, Rafael J. Wysocki wrote: From: Rafael J. Wysocki Replace the ACPI_DEBUG_PRINT() and ACPI_EXCEPTION() instances in battery.c with acpi_handle_debug() and acpi_handle_info() calls, respectively, which among other things causes the excessive log level of the messages previously

Re: linux-next: build failure after merge of the akpm-current tree

2021-02-03 Thread Stephen Rothwell
Hi all, On Tue, 2 Feb 2021 20:03:24 +1100 Stephen Rothwell wrote: > > After merging the akpm-current tree, today's linux-next build (x86_64 > allnoconfig) failed like this: > > In file included from arch/x86/include/asm/page.h:76, > from arch/x86/include/asm/thread_info.h:12,

[PATCH v5 2/2] bio: add limit_bio_size sysfs

2021-02-03 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 v5 1/2] bio: limit bio max size

2021-02-03 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

[PATCH] Bluetooth: btusb: remove set but not used variable in btusb_mtk_setup_firmware_79xx

2021-02-03 Thread Ye Bin
Fix follow warning: drivers/bluetooth/btusb.c:3479:9: warning: variable ‘fw_size’ set but not used [-Wunused-but-set-variable] size_t fw_size; ^~~ drivers/bluetooth/btusb.c:3473:29: warning: variable ‘patchhdr’ set but not used [-Wunused-but-set-variable] struct

Re: [PATCH v11 0/6] arm64: MMU enabled kexec relocation

2021-02-03 Thread Eric W. Biederman
Pavel Tatashin writes: > Hi James, > >> The problem I see with this is rewriting the relocation code. It needs to >> work whether the >> machine has enough memory to enable the MMU during kexec, or not. >> >> In off-list mail to Pavel I proposed an alternative implementation here: >>

Re: [PATCH v3 1/5] ACPI: AC: Clean up printing messages

2021-02-03 Thread Hanjun Guo
On 2021/2/4 2:43, Rafael J. Wysocki wrote: From: Rafael J. Wysocki Replace the ACPI_DEBUG_PRINT() and ACPI_EXCEPTION() instances in ac.c with acpi_handle_debug() and acpi_handle_info() calls, respectively, which among other things causes the excessive log level of the messages previously

Re: [PATCH v3 3/5] hugetlb: only set HPageMigratable for migratable hstates

2021-02-03 Thread Mike Kravetz
On 2/1/21 3:49 AM, Michal Hocko wrote: > On Fri 29-01-21 10:46:15, Mike Kravetz wrote: >> On 1/28/21 2:15 PM, Andrew Morton wrote: >>> On Thu, 28 Jan 2021 14:00:29 -0800 Mike Kravetz >>> wrote: Michal suggested that comments describing synchronization be added for each flag.

Re: [PATCH][next] iommu/mediatek: Fix unsigned domid comparison with less than zero

2021-02-03 Thread Yong Wu
On Wed, 2021-02-03 at 13:59 +, Colin King wrote: > From: Colin Ian King > > Currently the check for domid < 0 is always false because domid > is unsigned. Fix this by making it signed. > > Addresses-CoverityL ("Unsigned comparison against 0") > Fixes: ab1d5281a62b ("iommu/mediatek: Add

[PATCH net v2] net: ipa: set error code in gsi_channel_setup()

2021-02-03 Thread Alex Elder
In gsi_channel_setup(), we check to see if the configuration data contains any information about channels that are not supported by the hardware. If one is found, we abort the setup process, but the error code (ret) is not set in this case. Fix this bug. Fixes: 650d1603825d8 ("soc: qcom: ipa:

[PATCH] cpu/hotplug: wait for cpuset_hotplug_work to finish on cpu onlining

2021-02-03 Thread Alexey Klimov
When a CPU offlined and onlined via device_offline() and device_online() the userspace gets uevent notification. If, after receiving "online" uevent, userspace executes sched_setaffinity() on some task trying to move it to a recently onlined CPU, then it often fails with -EINVAL. Userspace needs

Re: [PATCH V2] arch: sh: kernel: Fix a spelling archtecture to architecture in the file relocate_kernel.S

2021-02-03 Thread Randy Dunlap
On 2/3/21 4:50 PM, Bhaskar Chowdhury wrote: > > s/archtecture/architecture/ > > Signed-off-by: Bhaskar Chowdhury Acked-by: Randy Dunlap Thanks. > --- > Changes from V1 : > Missed the changelog text,now included > > arch/sh/kernel/relocate_kernel.S | 2 +- > 1 file changed, 1

Re: [PATCH v2 4/4] KVM: x86: Expose Architectural LBR CPUID and its XSAVES bit

2021-02-03 Thread Xu, Like
On 2021/2/3 22:37, Paolo Bonzini wrote: On 03/02/21 14:57, Like Xu wrote: If CPUID.(EAX=07H, ECX=0):EDX[19] is exposed to 1, the KVM supports Arch LBRs and CPUID leaf 01CH indicates details of the Arch LBRs capabilities. As the first step, KVM only exposes the current LBR depth on the host for

RE: RE: [PATCH v2 9/9] scsi: ufshpb: Make host mode parameters configurable

2021-02-03 Thread Daejun Park
> > > - timeout_polling_interval_ms - the frequency in which the delayed > > > worker that checks the read_timeouts is awaken. > > > > You create new sysfs files, but fail to document them in > > Documentation/ABI/ which is where the above information needs to go :( > Done. > Will wait to see

Re: [PATCH 2/2] perf parse-events: Break out tracepoint and printing.

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 03, 2021 at 05:50:24PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Wed, Feb 03, 2021 at 10:38:41AM -0800, Ian Rogers escreveu: > > On Wed, Feb 3, 2021 at 8:21 AM Arnaldo Carvalho de Melo > > wrote: > > > > > Em Tue, Feb 02, 2021 at 09:26:59PM -0800, Ian Rogers escreveu: > > > >

Re: [next] mm/gup.c:96:10: error: implicit declaration of function 'is_zero_pfn' [-Werror,-Wimplicit-function-declaration]

2021-02-03 Thread Andrew Morton
On Tue, 2 Feb 2021 10:03:47 -0500 Pavel Tatashin wrote: > The same problem as fixed here: > https://lore.kernel.org/linux-mm/CA+CK2bBjC8=crsl5vhwkcevpsqsxwhsanvjsfnmerlt8vwt...@mail.gmail.com/ > We're seeing a number of build errors from this series, all of them confusing. I'll drop this

Re: [PATCH v2] rt2x00: remove duplicate word and fix typo in comment

2021-02-03 Thread Randy Dunlap
On 2/3/21 4:51 PM, samirweng1979 wrote: > From: wengjianfeng > > remove duplicate word 'we' in comment > change 'then' to 'than' in comment > > Signed-off-by: wengjianfeng Acked-by: Randy Dunlap Thanks. > --- > drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c | 2 +- > 1 file changed, 1

Re: [PATCH] usb: pd: Reland VDO definitions of PD2.0

2021-02-03 Thread Kyle Tso
Hi, Benson and Prashant, On Thu, Feb 4, 2021 at 8:50 AM Kyle Tso wrote: > > Reland VDO definitions of PD Revision 2.0 as they are still used in > PD2.0 products. > > Fixes: 0e1d6f55a12e ("usb: pd: Update VDO definitions") > Signed-off-by: Kyle Tso > --- > include/linux/usb/pd_vdo.h | 69

Re: BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x1df5/0x2650

2021-02-03 Thread Ivan Babrou
On Wed, Feb 3, 2021 at 4:17 PM Josh Poimboeuf wrote: > > On Wed, Feb 03, 2021 at 03:30:35PM -0800, Ivan Babrou wrote: > > > > > Can you recreate with this patch, and add "unwind_debug" to the > > > > > cmdline? > > > > > It will spit out a bunch of stack data. > > > > > > > > Here's the three

[PATCH v2] rt2x00: remove duplicate word and fix typo in comment

2021-02-03 Thread samirweng1979
From: wengjianfeng remove duplicate word 'we' in comment change 'then' to 'than' in comment Signed-off-by: wengjianfeng --- drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c

[PATCH V2] arch: sh: kernel: Fix a spelling archtecture to architecture in the file relocate_kernel.S

2021-02-03 Thread Bhaskar Chowdhury
s/archtecture/architecture/ Signed-off-by: Bhaskar Chowdhury --- Changes from V1 : Missed the changelog text,now included arch/sh/kernel/relocate_kernel.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/kernel/relocate_kernel.S

[PATCH] usb: pd: Reland VDO definitions of PD2.0

2021-02-03 Thread Kyle Tso
Reland VDO definitions of PD Revision 2.0 as they are still used in PD2.0 products. Fixes: 0e1d6f55a12e ("usb: pd: Update VDO definitions") Signed-off-by: Kyle Tso --- include/linux/usb/pd_vdo.h | 69 -- 1 file changed, 66 insertions(+), 3 deletions(-) diff

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

2021-02-03 Thread Ashish Kalra
From: Ashish Kalra Add new KVM_FEATURE_SEV_LIVE_MIGRATION feature for guest to check for host-side support for SEV live migration. Also add a new custom MSR_KVM_SEV_LIVE_MIGRATION for guest to enable the SEV live migration feature. Signed-off-by: Ashish Kalra ---

Re: [PATCH 2/4] hugetlg: Break earlier in add_reservation_in_range() when we can

2021-02-03 Thread Mike Kravetz
On 2/3/21 1:08 PM, Peter Xu wrote: > All the regions maintained in hugetlb reserved map is inclusive on "from" but > exclusive on "to". We can break earlier even if rg->from==t because it > already > means no possible intersection. > > This does not need a Fixes in all cases because when it

Re: [PATCH] mm/memory.c: Remove pte_sw_mkyoung()

2021-02-03 Thread Andrew Morton
On Wed, 3 Feb 2021 10:19:44 + (UTC) Christophe Leroy wrote: > Commit 83d116c53058 ("mm: fix double page fault on arm64 if PTE_AF > is cleared") introduced arch_faults_on_old_pte() helper to identify > platforms that don't set page access bit in HW and require a page > fault to set it. > >

RE: [PATCH 1/3] dt-bindings: Fix undocumented compatible strings in examples

2021-02-03 Thread Yoshihiro Shimoda
Hi Rob, > From: Rob Herring, Sent: Wednesday, February 3, 2021 5:56 AM > > Running 'dt-validate -m' will flag any compatible strings missing a schema. > Fix all the errors found in DT binding examples. Most of these are just > typos. > > Cc: Stephen Boyd > Cc: Maxime Ripard > Cc: Chen-Yu Tsai

[PATCH v2 1/1] kernel/crash_core: Add crashkernel=auto for vmcore creation

2021-02-03 Thread Saeed Mirzamohammadi
This adds crashkernel=auto feature to configure reserved memory for vmcore creation. CONFIG_CRASH_AUTO_STR is defined to be set for different kernel distributions and different archs based on their needs. Signed-off-by: Saeed Mirzamohammadi Signed-off-by: John Donnelly Tested-by: John Donnelly

Re: [External] [PATCH v2 2/5] hugetlb: convert page_huge_active() HPageMigratable flag

2021-02-03 Thread Mike Kravetz
On 2/2/21 11:42 PM, Muchun Song wrote: > On Wed, Jan 20, 2021 at 9:33 AM Mike Kravetz wrote: >> >> Signed-off-by: Mike Kravetz > > Hi Mike, > > I found that you may forget to remove set_page_huge_active() > from include/linux/hugetlb.h. > > diff --git a/include/linux/hugetlb.h

[PATCH v10 09/16] mm: x86: Invoke hypercall when page encryption status is changed

2021-02-03 Thread Ashish Kalra
From: Brijesh Singh Invoke a hypercall when a memory region is changed from encrypted -> decrypted and vice versa. Hypervisor needs to know the page encryption status during the guest migration. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář"

[PATCH v10 16/16] KVM: SVM: Bypass DBG_DECRYPT API calls for unencrypted guest memory.

2021-02-03 Thread Ashish Kalra
From: Ashish Kalra For all unencrypted guest memory regions such as S/W IOTLB bounce buffers and for guest regions marked as "__bss_decrypted", ensure that DBG_DECRYPT API calls are bypassed. The guest memory regions encryption status is referenced using the shared pages list. Signed-off-by:

[PATCH v10 15/16] KVM: x86: Add kexec support for SEV Live Migration.

2021-02-03 Thread Ashish Kalra
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 UEFI/OVMF firmware specific settings. The host's shared pages list

[PATCH v10 14/16] KVM: x86: Add guest support for detecting and enabling SEV Live Migration feature.

2021-02-03 Thread Ashish Kalra
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 - If not EFI, i) check for the KVM_FEATURE_CPUID ii) if CPUID

[PATCH v10 13/16] EFI: Introduce the new AMD Memory Encryption GUID.

2021-02-03 Thread Ashish Kalra
From: Ashish Kalra Introduce a new AMD Memory Encryption GUID which is currently used for defining a new UEFI environment variable which indicates UEFI/OVMF support for the SEV live migration feature. This variable is setup when UEFI/OVMF detects host/hypervisor support for SEV live migration

[PATCH v10 11/16] KVM: x86: Introduce KVM_SET_SHARED_PAGES_LIST ioctl

2021-02-03 Thread Ashish Kalra
From: Brijesh Singh The ioctl is used to setup the shared pages list for an incoming guest. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Joerg Roedel Cc: Borislav Petkov Cc: Tom Lendacky Cc: x...@kernel.org Cc: k...@vger.kernel.org

Re: [PATCH] net/qrtr: restrict user-controlled length in qrtr_tun_write_iter()

2021-02-03 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Tue, 2 Feb 2021 15:20:59 +0600 you wrote: > syzbot found WARNING in qrtr_tun_write_iter [1] when write_iter length > exceeds KMALLOC_MAX_SIZE causing order >= MAX_ORDER condition. > > Additionally, there is no check for 0

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

2021-02-03 Thread Ashish Kalra
From: Brijesh Singh The ioctl is used to retrieve a guest's shared pages list. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Joerg Roedel Cc: Borislav Petkov Cc: Tom Lendacky Cc: x...@kernel.org Cc: k...@vger.kernel.org Cc:

[PATCH v10 08/16] KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall

2021-02-03 Thread Ashish Kalra
From: Brijesh Singh This hypercall is used by the SEV guest to notify a change in the page encryption status to the hypervisor. The hypercall should be invoked only when the encryption attribute is changed from encrypted -> decrypted and vice versa. By default all guest pages are considered

[PATCH v10 06/16] KVM: SVM: Add KVM_SEV_RECEIVE_FINISH command

2021-02-03 Thread Ashish Kalra
From: Brijesh Singh The command finalize the guest receiving process and make the SEV guest ready for the execution. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Joerg Roedel Cc: Borislav Petkov Cc: Tom Lendacky Cc: x...@kernel.org

[PATCH v10 07/16] KVM: x86: Add AMD SEV specific Hypercall3

2021-02-03 Thread Ashish Kalra
From: Brijesh Singh KVM hypercall framework relies on alternative framework to patch the VMCALL -> VMMCALL on AMD platform. If a hypercall is made before apply_alternative() is called then it defaults to VMCALL. The approach works fine on non SEV guest. A VMCALL would causes #UD, and hypervisor

[PATCH v10 05/16] KVM: SVM: Add KVM_SEV_RECEIVE_UPDATE_DATA command

2021-02-03 Thread Ashish Kalra
From: Brijesh Singh The command is used for copying the incoming buffer into the SEV guest memory space. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Joerg Roedel Cc: Borislav Petkov Cc: Tom Lendacky Cc: x...@kernel.org Cc:

[PATCH v10 02/16] KVM: SVM: Add KVM_SEND_UPDATE_DATA command

2021-02-03 Thread Ashish Kalra
From: Brijesh Singh The command is used for encrypting the guest memory region using the encryption context created with KVM_SEV_SEND_START. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Joerg Roedel Cc: Borislav Petkov Cc: Tom Lendacky

[PATCH v10 04/16] KVM: SVM: Add support for KVM_SEV_RECEIVE_START command

2021-02-03 Thread Ashish Kalra
From: Brijesh Singh The command is used to create the encryption context for an incoming SEV guest. The encryption context can be later used by the hypervisor to import the incoming data into the SEV guest memory space. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo

[PATCH v10 03/16] KVM: SVM: Add KVM_SEV_SEND_FINISH command

2021-02-03 Thread Ashish Kalra
From: Brijesh Singh The command is used to finailize the encryption context created with KVM_SEV_SEND_START command. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Joerg Roedel Cc: Borislav Petkov Cc: Tom Lendacky Cc: x...@kernel.org

[PATCH v10 01/16] KVM: SVM: Add KVM_SEV SEND_START command

2021-02-03 Thread Ashish Kalra
From: Brijesh Singh The command is used to create an outgoing SEV guest encryption context. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Paolo Bonzini Cc: "Radim Krčmář" Cc: Joerg Roedel Cc: Borislav Petkov Cc: Tom Lendacky Cc: x...@kernel.org Cc: k...@vger.kernel.org

[PATCH v10 00/17] Add AMD SEV guest live migration support

2021-02-03 Thread Ashish Kalra
From: Ashish Kalra The series add support for AMD SEV guest live migration commands. To protect the confidentiality of an SEV protected guest memory while in transit we need to use the SEV commands defined in SEV API spec [1]. SEV guest VMs have the concept of private and shared memory. Private

Re: [PATCH v7 2/2] Kbuild: implement support for DWARF v5

2021-02-03 Thread Masahiro Yamada
On Thu, Feb 4, 2021 at 8:27 AM Nick Desaulniers wrote: > > On Wed, Feb 3, 2021 at 3:07 PM Masahiro Yamada wrote: > > > > Nick, the patch set is getting simpler and simpler, > > and almost good enough to be merged. > > I agree. I think Sedat pointed out a binutils 2.35.2 release; thanks > to

Re: [PATCH v7 2/2] Kbuild: implement support for DWARF v5

2021-02-03 Thread Masahiro Yamada
On Thu, Feb 4, 2021 at 8:36 AM Jakub Jelinek wrote: > > On Thu, Feb 04, 2021 at 08:06:12AM +0900, Masahiro Yamada wrote: > > GCC never outputs '.file 0', which is why > > this test is only needed for Clang, correct? > > No, GCC outputs .file 0 if it during configure time detected assembler that >

Re: [PATCH] [RFC] mm: fs: Invalidate BH LRU during page migration

2021-02-03 Thread Matthew Wilcox
On Mon, Feb 01, 2021 at 10:55:47PM -0800, Chris Goldsworthy wrote: > @@ -1289,6 +1289,8 @@ static inline void check_irqs_on(void) > #endif > } > > +bool bh_migration_done = true; What protects this global variable? Or is there some subtle reason it doesn't need protection, in which case,

Re: [PATCH] rt2x00: remove duplicate word in comment

2021-02-03 Thread Randy Dunlap
On 2/3/21 4:30 PM, wengjianfeng wrote: > On Wed, 3 Feb 2021 07:16:17 -0800 > Randy Dunlap wrote: > >> On 2/2/21 10:38 PM, samirweng1979 wrote: >>> From: wengjianfeng >>> >>> remove duplicate word 'we' in comment >>> >>> Signed-off-by: wengjianfeng >>> --- >>>

Re: [PATCH v7 1/2] Kbuild: make DWARF version a choice

2021-02-03 Thread Masahiro Yamada
On Thu, Feb 4, 2021 at 8:16 AM Nick Desaulniers wrote: > > On Wed, Feb 3, 2021 at 2:24 PM Masahiro Yamada wrote: > > > > On Sat, Jan 30, 2021 at 10:52 AM Nathan Chancellor > > wrote: > > > > > > On Fri, Jan 29, 2021 at 04:44:00PM -0800, Nick Desaulniers wrote: > > > > Modifies

Re: [PATCH] net/qrtr: restrict user-controlled length in qrtr_tun_write_iter()

2021-02-03 Thread Jakub Kicinski
On Tue, 2 Feb 2021 15:20:59 +0600 Sabyrzhan Tasbolatov wrote: > syzbot found WARNING in qrtr_tun_write_iter [1] when write_iter length > exceeds KMALLOC_MAX_SIZE causing order >= MAX_ORDER condition. > > Additionally, there is no check for 0 length write. > > [1] > WARNING: mm/page_alloc.c:5011

[tip:x86/urgent] BUILD SUCCESS 7f1b11ba3564a391169420d98162987a12d0795d

2021-02-03 Thread kernel test robot
-a003-20210202 i386 randconfig-a006-20210202 i386 randconfig-a002-20210202 i386 randconfig-a004-20210202 i386 randconfig-a001-20210203 i386 randconfig-a005-20210203 i386 randconfig-a003-20210203 i386

Re: [RFC][PATCH 05/13] mm/numa: automatically generate node migration order

2021-02-03 Thread Yang Shi
On Tue, Feb 2, 2021 at 4:43 PM Dave Hansen wrote: > > On 2/2/21 9:46 AM, Yang Shi wrote: > > On Mon, Feb 1, 2021 at 11:13 AM Dave Hansen wrote: > >> On 1/29/21 12:46 PM, Yang Shi wrote: > >> ... > int next_demotion_node(int node) > { > - return node_demotion[node]; >

Re: [PATCH v13 09/15] s390/vfio-ap: allow hot plug/unplug of AP resources using mdev device

2021-02-03 Thread Halil Pasic
On Wed, 3 Feb 2021 18:13:09 -0500 Tony Krowiak wrote: > On 1/12/21 12:55 PM, Halil Pasic wrote: > > On Tue, 12 Jan 2021 02:12:51 +0100 > > Halil Pasic wrote: > > > >>> @@ -1347,8 +1437,11 @@ void vfio_ap_mdev_remove_queue(struct ap_device > >>> *apdev) > >>> apqi =

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