Re: [PATCH v4 07/14] drm/bridge: imx: Add i.MX8qm/qxp display pixel link support

2021-03-03 Thread Liu Ying
Hi Robert, On Tue, 2021-03-02 at 14:53 +0100, Robert Foss wrote: > Hey Liu, > > Thanks for submitting this patch. > > I only have one comment below. With that addressed, feel free to add my r-b. > > Reviewed-by: Robert Foss Thanks for reviewing this patch. > > On Thu, 18 Feb 2021 at 04:59,

回复: [External] Re: [PATCH] hwmon: (nct6883) Support NCT6686D

2021-03-03 Thread Jiqi JQ9 Li
Ok, I will re-send patch with version. For driver/hwmon/nct6683 git log, please check attachment. Regards, Jiqi. -邮件原件- 发件人: Guenter Roeck 代表 Guenter Roeck 发送时间: 2021年3月3日 13:47 收件人: Jiqi JQ9 Li ; jdelv...@suse.com; linux-hw...@vger.kernel.org; linux-kernel@vger.kernel.org 抄送: Mark

[PATCH] [v2] sata_dwc_460ex: Fix missing check in sata_dwc_isr

2021-03-03 Thread Dinghao Liu
The return value of ata_qc_from_tag() is checked in the whole kernel except for two calls in sata_dwc_isr(), which may lead to null-pointer-dereference. Add return value checks to avoid such case. Signed-off-by: Dinghao Liu --- Changelog: v2: - Refine commit message. Add return value

Re: [PATCH] vt: keyboard, fix uninitialized variables warning

2021-03-03 Thread Greg KH
On Wed, Mar 03, 2021 at 03:33:23PM +0800, Wang, Li wrote: > > On 3/3/2021 3:14 PM, Greg KH wrote: > > On Wed, Mar 03, 2021 at 12:59:32PM +0800, Li Wang wrote: > > > drivers/tty/vt/keyboard.c: In function 'vt_do_kdgkb_ioctl': > > > drivers/tty/vt/keyboard.c: warning: 'ret' may be used

Re: [PATCH] drm/radeon: fix copy of uninitialized variable back to userspace

2021-03-03 Thread Christian König
Am 03.03.21 um 01:27 schrieb Colin King: From: Colin Ian King Currently the ioctl command RADEON_INFO_SI_BACKEND_ENABLED_MASK can copy back uninitialised data in value_tmp that pointer *value points to. This can occur when rdev->family is less than CHIP_BONAIRE and less than CHIP_TAHITI. Fix

Re: [PATCH] mfd: stmpe: Revert "Constify static struct resource"

2021-03-03 Thread Andy Shevchenko
On Wed, Mar 03, 2021 at 12:47:10AM +0100, Rikard Falkeborn wrote: > Andy noted that constification of some static resource structs in (If you wish, you may use Reported-by:, I'm fine with either way) > intel_quark_i2c_gpio.c were incorrect. It turns out there is another > change from the same

Re: [PATCH v2 10/13] arm64: dts: qcom: sc7180: Set up lazor r3+ as sc7180-lite SKUs

2021-03-03 Thread Stephen Boyd
Quoting Douglas Anderson (2021-03-01 13:34:34) > From: Matthias Kaehlcke > > Lazor rev3 and later use the 'lite' version of the SC7180 SoC. > > Cc: Stephen Boyd > Signed-off-by: Matthias Kaehlcke > [dianders: Adjust commit message which referred to downstream history] > Signed-off-by: Douglas

Re: [PATCH v2 09/13] arm64: dts: qcom: sc7180: add GO_LAZOR variant property for lazor

2021-03-03 Thread Stephen Boyd
Quoting Douglas Anderson (2021-03-01 13:34:33) > From: Abhishek Kumar > > For trogdor, in the latest board-2.bin file, new BDF with variant > name GO_LAZOR has been introduced, so we need this property set, for > GO_LAZOR BDF to be picked. > > Cc: Philip Chen > Signed-off-by: Abhishek Kumar >

Re: [git pull resend] habanalabs fixes for 5.12-rc2

2021-03-03 Thread Greg KH
On Wed, Mar 03, 2021 at 10:13:21AM +0200, Oded Gabbay wrote: > Hi Greg, > > This pull request contains some fixes of the habanalabs driver for > 5.12-rc2. > Nothing too scary, more details are in the tag. > > Thanks, > Oded > > The following changes since commit

Re: [PATCH] crypto: mips/poly1305 - enable for all MIPS processors

2021-03-03 Thread Jason A. Donenfeld
Hi Maciej, On Wed, Mar 3, 2021 at 2:16 AM Maciej W. Rozycki wrote: > > The MIPS Poly1305 implementation is generic MIPS code written such as to > support down to the original MIPS I and MIPS III ISA for the 32-bit and > 64-bit variant respectively. Lift the current limitation then to enable >

Re: [PATCH] perf test: Test case 27 fails on s390 and non-x86 platforms

2021-03-03 Thread Athira Rajeev
> On 03-Mar-2021, at 1:40 AM, Liang, Kan wrote: > > > > On 3/2/2021 12:08 PM, Thomas Richter wrote: >> On 3/2/21 4:23 PM, Liang, Kan wrote: >>> >>> >>> On 3/2/2021 9:48 AM, Thomas Richter wrote: On 3/2/21 3:03 PM, Liang, Kan wrote: > > + Athira Rajeev > > On

Re: [PATCH 4.19 000/247] 4.19.178-rc1 review

2021-03-03 Thread Hanjun Guo
On 2021/3/2 0:10, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.178 release. There are 247 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

[tip: sched/core] sched/fair: Fix task utilization accountability in compute_energy()

2021-03-03 Thread tip-bot2 for Vincent Donnefort
The following commit has been merged into the sched/core branch of tip: Commit-ID: 2d120f71df4baeb7694f513c86fe6f85940f6f76 Gitweb: https://git.kernel.org/tip/2d120f71df4baeb7694f513c86fe6f85940f6f76 Author:Vincent Donnefort AuthorDate:Thu, 25 Feb 2021 08:36:11

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

2021-03-03 Thread Can Guo
On 2021-03-02 03:19, Adrian Hunter wrote: If ufshcd_probe_hba() fails it sets ufshcd_state to UFSHCD_STATE_ERROR, however, if it is called again, as it is within a loop in ufshcd_reset_and_restore(), and succeeds, then it will not set the state back to UFSHCD_STATE_OPERATIONAL unless the state

Re: Need some help on "Input: elantech - add LEN2146 to SMBus blacklist for ThinkPad L13 Gen2"

2021-03-03 Thread Nikolai Kostrigin
Hi, 25.02.2021 12:38, Wolfram Sang пишет: > Hi, > >> I had a preliminary discussion with Benjamin Tissoires and according to >> our agreement I repost it for wider audience. >> Blacklisting the device was decided to be a bad idea. >> But actually I managed to get touchpad totally operational via

Re: [PATCH 2/3] soundwire: qcom: add auto enumeration support

2021-03-03 Thread Srinivas Kandagatla
On 02/03/2021 14:34, Pierre-Louis Bossart wrote: +    if (!val1 && !val2) +    break; + +    addr = buf2[1] | (buf2[0] << 8) | (buf1[3] << 16) | +    ((u64)buf1[2] << 24) | ((u64)buf1[1] << 32) | +    ((u64)buf1[0] << 40); + +   

RE: [PATCH 4/7] misc: Add driver for DAB IP found on Renesas R-Car devices

2021-03-03 Thread Fabrizio Castro
Hi Laurent, Thanks for your feedback! > From: Laurent Pinchart > Sent: 02 March 2021 12:32 > Subject: Re: [PATCH 4/7] misc: Add driver for DAB IP found on Renesas R- > Car devices > > Hi Fabrizio, > > On Tue, Mar 02, 2021 at 12:20:17PM +, Fabrizio Castro wrote: > > On 02 March 2021 11:17,

Re: [PATCH v3] mm/userfaultfd: fix memory corruption due to writeprotect

2021-03-03 Thread Nadav Amit
> On Mar 3, 2021, at 1:51 AM, Nadav Amit wrote: > > From: Nadav Amit > > Userfaultfd self-test fails occasionally, indicating a memory > corruption. Please ignore - I will resend. signature.asc Description: Message signed with OpenPGP

Re: [PATCH 4/5] net: page_pool: refactor dma_map into own function page_pool_dma_map

2021-03-03 Thread Jesper Dangaard Brouer
On Wed, 3 Mar 2021 09:18:25 + Mel Gorman wrote: > On Tue, Mar 02, 2021 at 08:49:06PM +0200, Ilias Apalodimas wrote: > > On Mon, Mar 01, 2021 at 04:11:59PM +, Mel Gorman wrote: > > > From: Jesper Dangaard Brouer > > > > > > In preparation for next patch, move the dma mapping into its

Re: [PATCH] ia64: fix ia64_syscall_get_set_arguments() for break-based syscalls

2021-03-03 Thread Sergei Trofimovich
On Sun, 21 Feb 2021 00:25:53 + Sergei Trofimovich wrote: > In https://bugs.gentoo.org/769614 Dmitry noticed that > `ptrace(PTRACE_GET_SYSCALL_INFO)` does not work for syscalls called > via glibc's syscall() wrapper. > > ia64 has two ways to call syscalls from userspace: via `break` and via

Re: [PATCH] counter: stm32-timer-cnt: fix ceiling write max value

2021-03-03 Thread William Breathitt Gray
On Tue, Mar 02, 2021 at 06:03:25PM +0100, Fabrice Gasnier wrote: > On 3/2/21 3:56 PM, William Breathitt Gray wrote: > > Side question: if priv->ceiling is tracking the current ceiling > > configuration, would it make sense to change stm32_count_ceiling_read() > > to print the value of

Re: [PATCH] ia64: fix ptrace(PTRACE_SYSCALL_INFO_EXIT) sign

2021-03-03 Thread Sergei Trofimovich
On Sun, 21 Feb 2021 00:25:54 + Sergei Trofimovich wrote: > In https://bugs.gentoo.org/769614 Dmitry noticed that > `ptrace(PTRACE_GET_SYSCALL_INFO)` does not return error sign properly. > > The bug is in mismatch between get/set errors: > > static inline long syscall_get_error(struct

Re: [PATCH] mm: delete bool "migrated"

2021-03-03 Thread Andrew Morton
On Mon, 1 Mar 2021 20:57:01 +0800 Wang Qing wrote: > Smatch gives the warning: > do_numa_page() warn: assigning (-11) to unsigned variable 'migrated' > > ... > > --- a/mm/memory.c > +++ b/mm/memory.c > @@ -4102,7 +4102,6 @@ static vm_fault_t do_numa_page(struct vm_fault *vmf) > int

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

2021-03-03 Thread Chris Ye
Hi Bastien, The "Share button" is a name Microsoft calls it, it actually has HID descriptor defined in the bluetooth interface, which the HID usage is: consumer 0xB2: 0x05, 0x0C,// Usage Page (Consumer) 0x0A, 0xB2, 0x00, // Usage (Record) Microsoft wants the same key code to be

Re: [PATCH 07/15] ASoC: cs42l42: Set clock source for both ways of stream

2021-03-03 Thread kernel test robot
in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Lucas-Tanure/Report-jack-and-button-detection-Capture-Support/20210303-012348 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next config: arc-allyesconfig (attached

Re: [PATCH v4 0/3] Cleanup and fixups for vmemmap handling

2021-03-03 Thread Andrew Morton
On Mon, 1 Mar 2021 09:32:27 +0100 Oscar Salvador wrote: > Hi Andrew, > > Now that 5.12-rc1 is out, and as discussed, here there is a new version on top > of it. > Please, consider picking up the series. > I grabbed them, but... > > arch/x86/mm/init_64.c | 189 >

Re: [PATCH v2] MIPS: select CPU_MIPS64 for remaining MIPS64 CPUs

2021-03-03 Thread Jason A. Donenfeld
On 3/3/21, Thomas Bogendoerfer wrote: > On Mon, Mar 01, 2021 at 05:27:46PM +0100, Jason A. Donenfeld wrote: >> Hey Thomas, >> >> Would you mind sending this for 5.12 in an rc at some point, rather >> than waiting for 5.13? I'd like to see this backported to 5.10 and 5.4 >> for OpenWRT. > > why is

Re: [PATCH v2 1/1] mm/madvise: replace ptrace attach requirement for process_madvise

2021-03-03 Thread Suren Baghdasaryan
On Tue, Mar 2, 2021 at 4:17 PM Andrew Morton wrote: > > On Tue, 2 Mar 2021 15:53:39 -0800 Suren Baghdasaryan > wrote: > > > Hi Andrew, > > A friendly reminder to please include this patch into mm tree. > > There seem to be no more questions or objections. > > The man page you requested is

Re: [PATCH v2 1/1] mm/madvise: replace ptrace attach requirement for process_madvise

2021-03-03 Thread Andrew Morton
On Tue, 2 Mar 2021 15:53:39 -0800 Suren Baghdasaryan wrote: > Hi Andrew, > A friendly reminder to please include this patch into mm tree. > There seem to be no more questions or objections. > The man page you requested is accepted here: >

Re: KASAN: use-after-free Read in cipso_v4_genopt

2021-03-03 Thread Paul Moore
On Tue, Mar 2, 2021 at 2:15 PM Dmitry Vyukov wrote: ... > Not sure if it's the root cause or not, but I am looking at this > reference drop in cipso_v4_doi_remove: > https://elixir.bootlin.com/linux/v5.12-rc1/source/net/ipv4/cipso_ipv4.c#L522 > The thing is that it does not remove from the list

[PATCH v12 02/17] arm64: hyp-stub: Move invalid vector entries into the vectors

2021-03-03 Thread Pavel Tatashin
From: James Morse Most of the hyp-stub's vector entries are invalid. These are each a unique function that branches to itself. To move these into the vectors, merge the ventry and invalid_vector macros and give each one a unique name. This means we can copy the hyp-stub as it is self contained

[PATCH v12 00/17] arm64: MMU enabled kexec relocation

2021-03-03 Thread Pavel Tatashin
Changelog: v12: - A major change compared to previous version. Instead of using contiguous VA range a copy of linear map is now used to perform copying of segments during relocation as it was agreed in the discussion of version 11 of this project. - In

[PATCH v12 01/17] arm64: hyp-stub: Check the size of the HYP stub's vectors

2021-03-03 Thread Pavel Tatashin
From: James Morse Hibernate contains a set of temporary EL2 vectors used to 'park' EL2 somewhere safe while all the memory is thrown in the air. Making kexec do its relocations with the MMU on means they have to be done at EL1, so EL2 has to be parked. This means yet another set of vectors. All

Re: [PATCH net 1/1] stmmac: intel: Fix mdio bus registration issue for TGL-H/ADL-S

2021-03-03 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Tue, 2 Mar 2021 16:57:21 +0800 you wrote: > On Intel platforms which consist of two Ethernet Controllers such as > TGL-H and ADL-S, a unique MDIO bus id is required for MDIO bus to be > successful registered: > > [

[PATCH] clk: qcom: rcg2: Rectify clk_gfx3d rate rounding without mux division

2021-03-03 Thread Marijn Suijten
In case the mux is not divided parent_req was mistakenly not assigned to leading __clk_determine_rate to determine the best frequency setting for a requested rate of 0, resulting in the msm8996 platform not booting. Rectify this by refactoring the logic to unconditionally assign to parent_req.rate

Re: [PATCH v2] MIPS: select CPU_MIPS64 for remaining MIPS64 CPUs

2021-03-03 Thread Thomas Bogendoerfer
On Mon, Mar 01, 2021 at 05:27:46PM +0100, Jason A. Donenfeld wrote: > Hey Thomas, > > Would you mind sending this for 5.12 in an rc at some point, rather > than waiting for 5.13? I'd like to see this backported to 5.10 and 5.4 > for OpenWRT. why is this so important for OpenWRT ? Just to select

Re: [PATCH] MIPS: BMIPS: Reserve exception base to prevent corruption

2021-03-03 Thread Thomas Bogendoerfer
On Mon, Mar 01, 2021 at 08:19:38PM -0800, Florian Fainelli wrote: > BMIPS is one of the few platforms that do change the exception base. > After commit 2dcb39645441 ("memblock: do not start bottom-up allocations > with kernel_end") we started seeing BMIPS boards fail to boot with the > built-in

[PATCH] mfd: stmpe: Revert "Constify static struct resource"

2021-03-03 Thread Rikard Falkeborn
Andy noted that constification of some static resource structs in intel_quark_i2c_gpio.c were incorrect. It turns out there is another change from the same series that is also incorrect in stmpe.c. These structures are modified at init and can not be made const. This reverts commit

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

2021-03-03 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: In file included from drivers/usb/usbip/usbip_common.c:18: drivers/usb/usbip/usbip_common.h: In function 'usbip_kcov_handle_init': drivers/usb/usbip/usbip_common.h:348:20: error: implicit

Re: [PATCH] KVM: LAPIC: Advancing the timer expiration on guest initiated write

2021-03-03 Thread Wanpeng Li
On Wed, 3 Mar 2021 at 01:16, Sean Christopherson wrote: > > On Tue, Mar 02, 2021, Wanpeng Li wrote: > > From: Wanpeng Li > > > > Advancing the timer expiration should only be necessary on guest initiated > > writes. Now, we cancel the timer, clear .pending and clear > > expired_tscdeadline > >

Broken kretprobe stack traces

2021-03-03 Thread Daniel Xu
Hi Masami, Jakub reported a bug with kretprobe stack traces -- wondering if you've gotten any bug reports related to stack traces being broken for kretprobes. I think (can't prove) this used to work: # bpftrace -e 'kretprobe:__tcp_retransmit_skb { @[kstack()] = count() }' Attaching 1

[PATCH] crypto: mips/poly1305 - enable for all MIPS processors

2021-03-03 Thread Maciej W. Rozycki
The MIPS Poly1305 implementation is generic MIPS code written such as to support down to the original MIPS I and MIPS III ISA for the 32-bit and 64-bit variant respectively. Lift the current limitation then to enable code for MIPSr1 ISA or newer processors only and have it available for all

[GIT PULL] Misc 5.12 fixes

2021-03-03 Thread Jens Axboe
Hi Linus, Two misc fixes that don't belong in other branches: - Fix a regression with ia64 signals, introduced by the TIF_NOTIFY_SIGNAL change in 5.11. - Fix the current swapfile regression from this merge window. Please pull! The following changes since commit

Re: [PATCH 05/13] rcu/nocb: Use the rcuog CPU's ->nocb_timer

2021-03-03 Thread Paul E. McKenney
On Tue, Feb 23, 2021 at 01:10:03AM +0100, Frederic Weisbecker wrote: > Currently each offline rdp has its own nocb_timer armed when the > nocb_gp wakeup must be deferred. This layout has many drawbacks, > compared to a solution based on a single timer per rdp group: > > * There are a lot of

Re: [PATCH v3 1/2] x86/setup: consolidate early memory reservations

2021-03-03 Thread Baoquan He
On 03/02/21 at 05:17pm, Mike Rapoport wrote: > On Tue, Mar 02, 2021 at 09:04:09PM +0800, Baoquan He wrote: ... > > > +static void __init early_reserve_memory(void) > > > +{ > > > + /* > > > + * Reserve the memory occupied by the kernel between _text and > > > + * __end_of_kernel_reserve symbols.

Re: [PATCH v2] binfmt_misc: Fix possible deadlock in bm_register_write

2021-03-03 Thread Andrew Morton
On Sun, 28 Feb 2021 14:44:14 -0800 Lior Ribak wrote: > There is a deadlock in bm_register_write: > First, in the beggining of the function, a lock is taken on the > binfmt_misc root inode with inode_lock(d_inode(root)) > Then, if the user used the MISC_FMT_OPEN_FILE flag, the function will >

Re: [PATCH 11/13] rcu/nocb: Only cancel nocb timer if not polling

2021-03-03 Thread Paul E. McKenney
On Tue, Feb 23, 2021 at 01:10:09AM +0100, Frederic Weisbecker wrote: > No need to disarm the nocb_timer if rcu_nocb is polling because it > shouldn't be armed either. > > Signed-off-by: Frederic Weisbecker > Cc: Josh Triplett > Cc: Lai Jiangshan > Cc: Joel Fernandes > Cc: Neeraj Upadhyay >

Re: [PATCH 5/7] printk: Make %pS and friends print module build ID

2021-03-03 Thread Stephen Boyd
Quoting Steven Rostedt (2021-03-02 18:01:36) > On Mon, 1 Mar 2021 09:47:47 -0800 > Stephen Boyd wrote: > > > WARNING: CPU: 4 PID: 3255 at drivers/misc/lkdtm/bugs.c:83 > > lkdtm_WARNING+0x28/0x30 [lkdtm] (ed5019fdf5e53be37cb1ba7899292d7e143b259e) > > Modules linked in: lkdtm rfcomm algif_hash

RE: [PATCH V3 0/5] imx esdhc dt/driver update

2021-03-03 Thread Peng Fan (OSS)
Hi Shawn, > Subject: Re: [PATCH V3 0/5] imx esdhc dt/driver update > > On Thu, 25 Feb 2021 at 04:22, wrote: > > > > From: Peng Fan > > > > V3: > > Patch 1, drop unneeded pinctrl-0/1/2 > > Patch 2 is new to avoid break dt bindings check > > V2: > > patch 1, 2, 3 is new > > patch 4 is not

RE: Re: [PATCH v25 4/4] scsi: ufs: Add HPB 2.0 support

2021-03-03 Thread Daejun Park
> > + > > +/* > > + * In this driver, WRITE_BUFFER CMD support 36KB (len=9) ~ 512KB > > (len=128) as > > + * default. It is possible to change range of transfer_len through > > sysfs. > > + */ > > +static inline bool ufshpb_is_required_wb(struct ufshpb_lu *hpb, int > > len) > > +{ > > +

[PATCH v2] block: fix trace completion for chained bio

2021-03-03 Thread edwardh
From: Edward Hsieh For chained bio, trace_block_bio_complete in bio_endio is currently called only by the parent bio once upon all chained bio completed. However, the sector and size for the parent bio are modified in bio_split. Therefore, the size and sector of the complete events might not

[PATCH v2 0/5] Use obj_cgroup APIs to charge kmem pages

2021-03-03 Thread Muchun Song
Since Roman series "The new cgroup slab memory controller" applied. All slab objects are charged with the new APIs of obj_cgroup. The new APIs introduce a struct obj_cgroup to charge slab objects. It prevents long-living objects from pinning the original memory cgroup in the memory. But there are

[PATCH v3] KVM: nVMX: Sync L2 guest CET states between L1/L2

2021-03-03 Thread Yang Weijiang
These fields are rarely updated by L1 QEMU/KVM, sync them when L1 is trying to read/write them and after they're changed. If CET guest entry-load bit is not set by L1 guest, migrate them to L2 manaully. Suggested-by: Sean Christopherson Signed-off-by: Yang Weijiang --- arch/x86/kvm/cpuid.c

Re: [PATCH v2] KVM: nVMX: Sync L2 guest CET states between L1/L2

2021-03-03 Thread Yang Weijiang
On Tue, Mar 02, 2021 at 11:35:41AM +0100, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > > +Vitaly > > > > On Thu, Feb 25, 2021, Yang Weijiang wrote: > >> These fields are rarely updated by L1 QEMU/KVM, sync them when L1 is > >> trying to > >> read/write them and after they're

回复: [PATCH v2] workqueue: Move the position of debug_work_activate() in __queue_work()

2021-03-03 Thread Zhang, Qiang
Hello Tejun Please review this change. Thanks Qiang > >发件人: Zhang, Qiang >发送时间: 2021年2月18日 11:17 >收件人: jiangshan...@gmail.com; t...@kernel.org >抄送: linux-kernel@vger.kernel.org >主题: [PATCH v2] workqueue: Move the position of >debug_work_activate() in

[PATCH v2 1/5] mm: memcontrol: introduce obj_cgroup_{un}charge_page

2021-03-03 Thread Muchun Song
We know that the unit of slab object charging is bytes, the unit of kmem page charging is PAGE_SIZE. If we want to reuse obj_cgroup APIs to charge the kmem pages, we should pass PAGE_SIZE (as third parameter) to obj_cgroup_charge(). Because the size is already PAGE_SIZE, we can skip touch the

[PATCH] KVM: nVMX: Add CET entry/exit load bits to evmcs unsupported list

2021-03-03 Thread Yang Weijiang
CET in nested guest over Hyper-V is not supported for now. Relevant enabling patches will be posted as a separate patch series. Suggested-by: Paolo Bonzini Signed-off-by: Yang Weijiang --- arch/x86/kvm/vmx/evmcs.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

linux-next: build warning after merge of the amdgpu tree

2021-03-03 Thread Stephen Rothwell
Hi all, After merging the amdgpu tree, today's linux-next build (htmldocs) produced this warning: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c:86: warning: Function parameter or member 'work' not described in 'amdgpu_dm_irq_handler_data' Introduced by commit b6f91fc183f7

[PATCH stable v5.10 1/7] arm64: mm: Move reserve_crashkernel() into mem_init()

2021-03-03 Thread Jing Xiangfeng
From: Nicolas Saenz Julienne commit 0a30c53573b07d5561457e41fb0ab046cd857da5 upstream crashkernel might reserve memory located in ZONE_DMA. We plan to delay ZONE_DMA's initialization after unflattening the devicetree and ACPI's boot table initialization, so move it later in the boot process.

[PATCH stable v5.10 2/7] arm64: mm: Move zone_dma_bits initialization into zone_sizes_init()

2021-03-03 Thread Jing Xiangfeng
From: Nicolas Saenz Julienne commit 9804f8c69b04a39d0ba41d19e6bdc6aa91c19725 upstream zone_dma_bits's initialization happens earlier that it's actually needed, in arm64_memblock_init(). So move it into the more suitable zone_sizes_init(). Signed-off-by: Nicolas Saenz Julienne Tested-by:

[PATCH stable v5.10 4/7] of: unittest: Add test for of_dma_get_max_cpu_address()

2021-03-03 Thread Jing Xiangfeng
From: Nicolas Saenz Julienne commit 07d13a1d6120d453c3c1f020578693d072deded5 upstream Introduce a test for of_dma_get_max_cup_address(), it uses the same DT data as the rest of dma-ranges unit tests. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Rob Herring Link:

[PATCH stable v5.10 3/7] of/address: Introduce of_dma_get_max_cpu_address()

2021-03-03 Thread Jing Xiangfeng
From: Nicolas Saenz Julienne commit 964db79d6c186cc2ecc6ae46f98eed7e0ea8cf71 upstream Introduce of_dma_get_max_cpu_address(), which provides the highest CPU physical address addressable by all DMA masters in the system. It's specially useful for setting memory zones sizes at early boot time.

[PATCH stable v5.10 7/7] mm: Remove examples from enum zone_type comment

2021-03-03 Thread Jing Xiangfeng
From: Nicolas Saenz Julienne commit 04435217f96869ac3a8f055ff68c5237a60bcd7e upstream We can't really list every setup in common code. On top of that they are unlikely to stay true for long as things change in the arch trees independently of this comment. Suggested-by: Christoph Hellwig

[PATCH stable v5.10 0/7] arm64: Default to 32-bit wide ZONE_DMA

2021-03-03 Thread Jing Xiangfeng
Using two distinct DMA zones turned out to be problematic. Here's an attempt go back to a saner default. Ard Biesheuvel (1): arm64: mm: Set ZONE_DMA size based on early IORT scan Nicolas Saenz Julienne (6): arm64: mm: Move reserve_crashkernel() into mem_init() arm64: mm: Move zone_dma_bits

RE: [PATCH v2 3/3] scsi: ufs: Remove redundant checks of !hba in suspend/resume callbacks

2021-03-03 Thread Avri Altman
> > Runtime and system suspend/resume can only come after hba probe invokes > platform_set_drvdata(pdev, hba), meaning hba cannot be NULL in these PM > callbacks, so remove the checks of !hba. > > Signed-off-by: Can Guo Reviewed-by: Avri Altman > --- > drivers/scsi/ufs/ufshcd.c | 21

Re: [PATCH v2 11/13] arm64: dts: qcom: Add sc7180-lazor-limozeen skus

2021-03-03 Thread Stephen Boyd
Quoting Douglas Anderson (2021-03-01 13:34:35) > This is a SKU variant of lazor. Add it. This squashes the downstream > patches to support this hardware. > > NOTES: > - The non-touch SKU actually has "innolux,n116bca-ea1" but that driver > is still pending in simple-panel. The bindings have

Re: [RFC PATCH v1 1/6] badblocks: add more helper structure and routines in badblocks.h

2021-03-03 Thread Hannes Reinecke
On 3/2/21 5:02 AM, Coly Li wrote: > This patch adds the following helper structure and routines into > badblocks.h, > - struct bad_context > This structure is used in improved badblocks code for bad table > iteration. > - BB_END() > The macro to culculate end LBA of a bad range record from

Re: [PATCH AUTOSEL 4.14 06/13] sparc32: Limit memblock allocation to low memory

2021-03-03 Thread Andreas Larsson
On 2021-03-02 12:58, Sasha Levin wrote: From: Andreas Larsson [ Upstream commit bda166930c37604ffa93f2425426af6921ec575a ] Commit cca079ef8ac29a7c02192d2bad2ffe4c0c5ffdd0 changed sparc32 to use memblocks instead of bootmem, but also made high memory available via memblock allocation which

Re: [PATCH v2 12/13] arm64: dts: qcom: Add sc7180-trogdor-pompom skus

2021-03-03 Thread Stephen Boyd
Quoting Douglas Anderson (2021-03-01 13:34:36) > This is a trogdor variant. This is mostly a grab from the downstream > tree with notable exceptions: > - I skip -rev0. This was a super early build and there's no advantage > of long term support. > - In -rev1 I translate the handling of the USB

Re: [PATCH v2 13/13] arm64: dts: qcom: Add sc7180-trogdor-coachz skus

2021-03-03 Thread Stephen Boyd
Quoting Douglas Anderson (2021-03-01 13:34:37) > This is a trogdor variant. This is mostly a grab from the downstream > tree with notable exceptions: > - I skip -rev0. This was a super early build and there's no advantage > of long term support. > - I remove sound node since sound hasn't

Re: [PATCH 2/2] staging: rtl8192e: Change state information from u16 to u8

2021-03-03 Thread Atul Gopinathan
On Tue, Mar 02, 2021 at 03:38:52PM +0100, Greg KH wrote: > On Mon, Feb 22, 2021 at 10:53:30PM +0530, Atul Gopinathan wrote: > > On Mon, Feb 22, 2021 at 04:26:33PM +0100, Greg KH wrote: > > > On Sun, Feb 21, 2021 at 10:27:21PM +0530, Atul Gopinathan wrote: > > > > On Sun, Feb 21, 2021 at 02:08:26PM

[PATCH 12/23] KVM: SVM: merge update_cr0_intercept into svm_set_cr0

2021-03-03 Thread Paolo Bonzini
The logic of update_cr0_intercept is pointlessly complicated. All svm_set_cr0 is compute the effective cr0 and compare it with the guest value. Inlining the function and simplifying the condition clarifies what it is doing. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm/svm.c | 54

[PATCH v10 1/2] scsi: ufs: Enable power management for wlun

2021-03-03 Thread Asutosh Das
During runtime-suspend of ufs host, the scsi devices are already suspended and so are the queues associated with them. But the ufs host sends SSU to wlun during its runtime-suspend. During the process blk_queue_enter checks if the queue is not in suspended state. If so, it waits for the queue to

[PATCH v5 3/5] ibmvfc: treat H_CLOSED as success during sub-CRQ registration

2021-03-03 Thread Tyrel Datwyler
A non-zero return code for H_REG_SUB_CRQ is currently treated as a failure resulting in failing sub-CRQ setup. The case of H_CLOSED should not be treated as a failure. This return code translates to a successful sub-CRQ registration by the hypervisor, and is meant to communicate back that there is

[PATCH v5 2/5] ibmvfc: fix invalid sub-CRQ handles after hard reset

2021-03-03 Thread Tyrel Datwyler
A hard reset results in a complete transport disconnect such that the CRQ connection with the partner VIOS is broken. This has the side effect of also invalidating the associated sub-CRQs. The current code assumes that the sub-CRQs are perserved resulting in a protocol violation after trying to

[PATCH v5 1/5] ibmvfc: simplify handling of sub-CRQ initialization

2021-03-03 Thread Tyrel Datwyler
If ibmvfc_init_sub_crqs() fails ibmvfc_probe() simply parrots registration failure reported elsewhere, and futher vhost->scsi_scrq.scrq == NULL is indication enough to the driver that it has no sub-CRQs available. The mq_enabled check can also be moved into ibmvfc_init_sub_crqs() such that each

[PATCH v5 0/5] ibmvfc: hard reset fixes

2021-03-03 Thread Tyrel Datwyler
This series contains a minor simplification of ibmvfc_init_sub_crqs() followed by a couple fixes for sub-CRQ handling which effect hard reset of the client/host adapter CRQ pair. changes in v5: Patches 2-5: Corrected upstream commit ids for Fixes: tags changes in v4: Patch 2: dropped Reviewed-by

RE: [PATCH v3 07/10] clocksource/drivers/hyper-v: Handle vDSO differences inline

2021-03-03 Thread Michael Kelley
From: Daniel Lezcano Sent: Tuesday, March 2, 2021 2:14 PM > > On 02/03/2021 22:38, Michael Kelley wrote: > > While the driver for the Hyper-V Reference TSC and STIMERs is architecture > > neutral, vDSO is implemented for x86/x64, but not for ARM64. Current code > > calls into utility functions

[PATCH v5 4/5] ibmvfc: store return code of H_FREE_SUB_CRQ during cleanup

2021-03-03 Thread Tyrel Datwyler
The H_FREE_SUB_CRQ hypercall can return a retry delay return code that indicates the call needs to be retried after a specific amount of time delay. The error path to free a sub-CRQ in case of a failure during channel registration fails to capture the return code of H_FREE_SUB_CRQ which will

[PATCH v5 5/5] ibmvfc: reinitialize sub-CRQs and perform channel enquiry after LPM

2021-03-03 Thread Tyrel Datwyler
A live partition migration (LPM) results in a CRQ disconnect similar to a hard reset. In this LPM case the hypervisor moslty perserves the CRQ transport such that it simply needs to be reenabled. However, the capabilities may have changed such as fewer channels, or no channels at all. Further, its

[PATCH v12 14/17] arm64: kexec: install a copy of the linear-map

2021-03-03 Thread Pavel Tatashin
To perform the kexec relocations with the MMU enabled, we need a copy of the linear map. Create one, and install it from the relocation code. This has to be done from the assembly code as it will be idmapped with TTBR0. The kernel runs in TTRB1, so can't use the break-before-make sequence on the

[PATCH] drm/radeon: fix copy of uninitialized variable back to userspace

2021-03-03 Thread Colin King
From: Colin Ian King Currently the ioctl command RADEON_INFO_SI_BACKEND_ENABLED_MASK can copy back uninitialised data in value_tmp that pointer *value points to. This can occur when rdev->family is less than CHIP_BONAIRE and less than CHIP_TAHITI. Fix this by adding in a missing -EINVAL so that

Re: [PATCH] riscv: Return -EFAULT if copy_to_user() failed in signal.c

2021-03-03 Thread Tiezhu Yang
On 03/02/2021 06:01 PM, Ben Dooks wrote: On 02/03/2021 07:28, Tiezhu Yang wrote: copy_to_user() returns the amount left to copy, it should return -EFAULT if copy to user failed. This looks technically correct, but the caller (only one) will check for non-zero and will covert that to -EFAULT

Re: Why do kprobes and uprobes singlestep?

2021-03-03 Thread Alexei Starovoitov
On Tue, Mar 2, 2021 at 5:46 PM Andy Lutomirski wrote: > > > > On Mar 2, 2021, at 5:22 PM, Alexei Starovoitov > > wrote: > > > > On Tue, Mar 2, 2021 at 1:02 PM Andy Lutomirski wrote: > >> > >> > On Mar 2, 2021, at 12:24 PM, Alexei Starovoitov > wrote: > >>> > >>> On Tue, Mar 2,

Re: [PATCH 01/13] rcu/nocb: Fix potential missed nocb_timer rearm

2021-03-03 Thread Frederic Weisbecker
On Tue, Mar 02, 2021 at 06:06:43PM -0800, Paul E. McKenney wrote: > On Wed, Mar 03, 2021 at 02:35:33AM +0100, Frederic Weisbecker wrote: > > On Tue, Mar 02, 2021 at 10:17:29AM -0800, Paul E. McKenney wrote: > > > On Tue, Mar 02, 2021 at 01:34:44PM +0100, Frederic Weisbecker wrote: > > > > > > OK,

[PATCH] kvm: lapic: add module parameters for LAPIC_TIMER_ADVANCE_ADJUST_MAX/MIN

2021-03-03 Thread lihaiwei . kernel
From: Haiwei Li In my test environment, advance_expire_delta is frequently greater than the fixed LAPIC_TIMER_ADVANCE_ADJUST_MAX. And this will hinder the adjustment. Adding module parameters for LAPIC_TIMER_ADVANCE_ADJUST_MAX/MIN, so they can be dynamically adjusted. Signed-off-by: Haiwei Li

[PATCH] usb: dwc3: make USB_DWC3_EXYNOS independent

2021-03-03 Thread taehyun cho
'ARCH_EXYNOS' is not suitable for DWC3_EXYNOS config. 'USB_DWC3_EXYNOS' is glue layer which can be used with Synopsys DWC3 controller on Exynos SoCs. USB_DWC3_EXYNOS' can be used from Exynos5 to Exynos9. Signed-off-by: taehyun cho --- drivers/usb/dwc3/Kconfig | 9 + 1 file changed, 5

Re: [PATCH v25 4/4] scsi: ufs: Add HPB 2.0 support

2021-03-03 Thread Can Guo
On 2021-02-26 15:35, Daejun Park wrote: This patch supports the HPB 2.0. The HPB 2.0 supports read of varying sizes from 4KB to 512KB. In the case of Read (<= 32KB) is supported as single HPB read. In the case of Read (36KB ~ 512KB) is supported by as a combination of write buffer command and

Re: [PATCH v2 2/3] scsi: ufs-qcom: Disable interrupt in reset path

2021-03-03 Thread Can Guo
On 2021-02-28 22:23, Avri Altman wrote: From: Nitin Rawat Disable interrupt in reset path to flush pending IRQ handler in order to avoid possible NoC issues. Signed-off-by: Nitin Rawat Signed-off-by: Can Guo --- drivers/scsi/ufs/ufs-qcom.c | 10 ++ 1 file changed, 10

[PATCH net 1/1] net: stmmac: fix incorrect DMA channel intr enable setting of EQoS v4.10

2021-03-03 Thread ramesh . babu . b
From: Ong Boon Leong We introduce dwmac410_dma_init_channel() here for both EQoS v4.10 and above which use different DMA_CH(n)_Interrupt_Enable bit definitions for NIE and AIE. Fixes: 48863ce5940f ("stmmac: add DMA support for GMAC 4.xx") Signed-off-by: Ong Boon Leong Signed-off-by: Ramesh

Re: [PATCH] Fix ld-version.sh script if LLD was built with LLD_VENDOR

2021-03-03 Thread Nathan Chancellor
Hi Bernhard, I have added the ClangBuiltLinux mailing list, kbuild mailing list, and Masahiro and Nick to CC. Maybe ld-version.sh and cc-version.sh should be added to a MAINTAINERS entry to make sure we get CC'd (I can send one along tomorrow). On Tue, Mar 02, 2021 at 11:12:11PM +0100, Bernhard

[tip:x86/cpu] BUILD SUCCESS 191d799ecaca4d5c7f87c624ae36581237ab8a87

2021-03-03 Thread kernel test robot
-a001-20210302 x86_64 randconfig-a004-20210302 x86_64 randconfig-a002-20210302 x86_64 randconfig-a005-20210302 x86_64 randconfig-a003-20210302 i386 randconfig-a005-20210303 i386 randconfig-a003-20210303 i386

Re: possible deadlock in sk_clone_lock

2021-03-03 Thread Shakeel Butt
On Tue, Mar 2, 2021 at 1:19 PM Mike Kravetz wrote: > > On 3/2/21 6:29 AM, Michal Hocko wrote: > > On Tue 02-03-21 06:11:51, Shakeel Butt wrote: > >> On Tue, Mar 2, 2021 at 1:44 AM Michal Hocko wrote: > >>> > >>> On Mon 01-03-21 17:16:29, Mike Kravetz wrote: > On 3/1/21 9:23 AM, Michal Hocko

Re: possible deadlock in io_poll_double_wake (2)

2021-03-03 Thread Jens Axboe
On 3/2/21 11:59 AM, syzbot wrote: > Hello, > > syzbot has tested the proposed patch but the reproducer is still triggering > an issue: > possible deadlock in io_poll_double_wake > > > WARNING: possible recursive locking detected >

Re: [PATCH 00/31] Introduce devm_pm_opp_* API

2021-03-03 Thread Viresh Kumar
On 02-03-21, 16:40, Dmitry Osipenko wrote: > 20.01.2021 19:01, Dmitry Osipenko пишет: > > 01.01.2021 19:54, Yangtao Li пишет: > >> Hi, > >> > >> This patchset add devm_pm_opp_set_clkname, devm_pm_opp_put_clkname, > >> devm_pm_opp_set_regulators, devm_pm_opp_put_regulators, > >>

[PATCH 1/4] nfc: fix refcount leak in llcp_sock_bind()

2021-03-03 Thread Xiaoming Ni
nfc_llcp_local_get() is invoked in llcp_sock_bind(), but nfc_llcp_local_put() is not invoked in subsequent failure branches. As a result, refcount leakage occurs. To fix it, add calling nfc_llcp_local_put(). fix CVE-2020-25670 Fixes: c7aa12252f51 ("NFC: Take a reference on the LLCP local pointer

Re: [PATCH 2/2] iommu: arm-smmu-v3: Report domain nesting info reuqired for stage1

2021-03-03 Thread Vivek Gautam
Hi Eric, On Fri, Feb 12, 2021 at 11:44 PM Auger Eric wrote: > > Hi Vivek, > > On 2/12/21 11:58 AM, Vivek Gautam wrote: > > Update nested domain information required for stage1 page table. > > s/reuqired/required in the commit title Oh! my bad. > > > > Signed-off-by: Vivek Gautam > > --- > >

[PATCH v26 1/4] scsi: ufs: Introduce HPB feature

2021-03-03 Thread Daejun Park
This is a patch for the HPB initialization and adds HPB function calls to UFS core driver. NAND flash-based storage devices, including UFS, have mechanisms to translate logical addresses of IO requests to the corresponding physical addresses of the flash storage. In UFS,

[PATCH v26 2/4] scsi: ufs: L2P map management for HPB read

2021-03-03 Thread Daejun Park
This is a patch for managing L2P map in HPB module. The HPB divides logical addresses into several regions. A region consists of several sub-regions. The sub-region is a basic unit where L2P mapping is managed. The driver loads L2P mapping data of each sub-region. The loaded sub-region is called

RE: [PATCH] mmc: core: add a power cycle when CMD11 fails

2021-03-03 Thread DooHyun Hwang
On Tue, 2 Mar 2021 at 10:38, Ulf Hansson wrote: >On Wed, 10 Feb 2021 at 06:12, DooHyun Hwang >wrote: >> >> A power cycle is required if CMD11 fails. >> CMD11 failure should be handled as no response. >> >> If there is a timeout error that means no response to the CMD11, do >> not send the CMD11

<    9   10   11   12   13   14   15   16   17   18   >