Re: [PATCH] usb: typec: Return void in typec_partner_set_pd_revision

2021-02-02 Thread Greg KH
On Tue, Feb 02, 2021 at 07:02:52AM -0800, Benson Leung wrote: > Hi Kyle, > > On Tue, Feb 02, 2021 at 05:55:12PM +0800, Kyle Tso wrote: > > typec_partner_set_pd_revision doesn't need any return value. > > > > Fixes: 29b01295a829 ("usb: typec: Add typec_partner_set_pd_revision") > > Signed-off-by:

Re: [GIT PULL] tpmdd updates for v5.12-rc1

2021-02-02 Thread Jarkko Sakkinen
On Sat, Jan 30, 2021 at 10:44:24AM -0800, Linus Torvalds wrote: > On Sat, Jan 30, 2021 at 9:15 AM Jarkko Sakkinen wrote: > > > > This was meant for 5.12 but the timing was *way* too early. I'll take this > > one back. Just to unambiguity reasons I'll use tpmdd-next-v5.12-rc1-v2 tag > > for my fina

Re: fbcon: remove soft scrollback code (missing Doc. patch)

2021-02-02 Thread Phillip Susi
Daniel Vetter writes: > Just a quick comment on this: Since most framebuffers are write-combining, > and reads from that tend to be ~3 orders of magnitude slower than writes > (at least on the pile of machines I looked at here, there's big > differences, and some special streaming cpu instructio

Re: [PATCH] ecryptfs: Fix inodes not being evicted until unmount

2021-02-02 Thread Jeffrey Mitchell
On Sat, Jan 30, 2021 at 11:06:40AM -0600, Tyler Hicks wrote: > Hey Jeffrey and Dan - thanks for the patch! Unfortunately, I think this > would allow the eCryptfs inode's nlink count to get out of sync with the > lower inode's nlink count in the case of direct manipulation to the > lower filesystem.

Re: module loader dead code removal and cleanups v3

2021-02-02 Thread Christoph Hellwig
On Tue, Feb 02, 2021 at 03:37:04PM +0100, Jessica Yu wrote: > The patchset looks good so far. After Miroslav's comments are > addressed, I'll wait an extra day or two in case there are more > comments before queueing them onto modules-next. I can take the first > two patches as well provided the ac

Re: fbcon: remove soft scrollback code (missing Doc. patch)

2021-02-02 Thread Daniel Vetter
On Tue, Feb 02, 2021 at 10:13:14AM -0500, Phillip Susi wrote: > > Daniel Vetter writes: > > > Just a quick comment on this: Since most framebuffers are write-combining, > > and reads from that tend to be ~3 orders of magnitude slower than writes > > (at least on the pile of machines I looked at h

[PATCH AUTOSEL 4.9 5/6] SUNRPC: Move simple_get_bytes and simple_get_netobj into private header

2021-02-02 Thread Sasha Levin
From: Dave Wysochanski [ Upstream commit ba6dfce47c4d002d96cd02a304132fca76981172 ] Remove duplicated helper functions to parse opaque XDR objects and place inside new file net/sunrpc/auth_gss/auth_gss_internal.h. In the new file carry the license and copyright from the source file net/sunrpc/au

[PATCH AUTOSEL 4.9 4/6] iwlwifi: mvm: guard against device removal in reprobe

2021-02-02 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 7a21b1d4a728a483f07c638ccd8610d4b4f12684 ] If we get into a problem severe enough to attempt a reprobe, we schedule a worker to do that. However, if the problem gets more severe and the device is actually destroyed before this worker has a chance to run, we

[PATCH AUTOSEL 4.9 6/6] SUNRPC: Handle 0 length opaque XDR object data properly

2021-02-02 Thread Sasha Levin
From: Dave Wysochanski [ Upstream commit e4a7d1f7707eb44fd953a31dd59eff82009d879c ] When handling an auth_gss downcall, it's possible to get 0-length opaque object for the acceptor. In the case of a 0-length XDR object, make sure simple_get_netobj() fills in dest->data = NULL, and does not cont

Re: [PATCH v1 2/2] ASoC: tegra: Add RT5631 machine driver

2021-02-02 Thread Dmitry Osipenko
02.02.2021 16:22, Jon Hunter пишет: > So this is very similar to tegra_rt5677, is it not possible to support > both codecs with the same machine driver? These codecs require individual configurations and those "../codecs/rt5631.h" and "../codecs/rt5677.h" aren't compatible at a quick glance. The

[PATCH AUTOSEL 4.9 3/6] iwlwifi: pcie: add a NULL check in iwl_pcie_txq_unmap

2021-02-02 Thread Sasha Levin
From: Emmanuel Grumbach [ Upstream commit 98c7d21f957b10d9c07a3a60a3a5a8f326a197e5 ] I hit a NULL pointer exception in this function when the init flow went really bad. Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlw

[PATCH AUTOSEL 4.9 2/6] iwlwifi: mvm: take mutex for calling iwl_mvm_get_sync_time()

2021-02-02 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 5c56d862c749669d45c256f581eac4244be00d4d ] We need to take the mutex to call iwl_mvm_get_sync_time(), do it. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlwifi.20210115130252.4bb5ccf

[PATCH AUTOSEL 4.9 1/6] af_key: relax availability checks for skb size calculation

2021-02-02 Thread Sasha Levin
From: Cong Wang [ Upstream commit afbc293add6466f8f3f0c3d944d85f53709c170f ] xfrm_probe_algs() probes kernel crypto modules and changes the availability of struct xfrm_algo_desc. But there is a small window where ealg->available and aalg->available get changed between count_ah_combs()/count_esp_

Re: [PATCH] fault_inject: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-02-02 Thread Akinobu Mita
2021年2月1日(月) 16:43 Jiapeng Chong : > > Fix the following coccicheck warning: > > ./lib/fault-inject.c:187:0-23: WARNING: fops_stacktrace_depth should be > defined with DEFINE_DEBUGFS_ATTRIBUTE. > > ./lib/fault-inject.c:169:0-23: WARNING: fops_ul should be defined with > DEFINE_DEBUGFS_ATTRIBUTE. >

Re: [PATCH v24 00/25] LSM: Module stacking for AppArmor

2021-02-02 Thread Casey Schaufler
On 2/2/2021 4:05 AM, Topi Miettinen wrote: > On 26.1.2021 18.40, Casey Schaufler wrote: >> This patchset provides the changes required for >> the AppArmor security module to stack safely with any other. > > In my test, when kernel command line has apparmor before selinux in lsm= > entry, the boot

Re: [PATCH 1/1] Add ST STPDDC60 pmbus driver

2021-02-02 Thread Guenter Roeck
On 2/2/21 6:34 AM, Erik Rosen wrote: > On Mon, Feb 1, 2021 at 10:38 PM Guenter Roeck wrote: >> >> On 2/1/21 8:48 AM, Erik Rosen wrote: >>> Hi Guenter >>> >>> >>> On Fri, Jan 29, 2021 at 4:50 PM Guenter Roeck wrote: Hi Erik, On 1/29/21 5:07 AM, Erik Rosen wrote: [ ... ] >>

Re: [PATCH] xen/netback: avoid race in xenvif_rx_ring_slots_available()

2021-02-02 Thread Igor Druzhinin
On 02/02/2021 07:09, Juergen Gross wrote: > Since commit 23025393dbeb3b8b3 ("xen/netback: use lateeoi irq binding") > xenvif_rx_ring_slots_available() is no longer called only from the rx > queue kernel thread, so it needs to access the rx queue with the > associated queue held. > > Reported-by: I

Re: [PATCH v2 2/2] irqchip: Add support for Realtek RTL838x/RTL839x IRQ controller

2021-02-02 Thread John Crispin
On 04.01.21 14:17, Bert Vermeulen wrote: This is a standard IRQ driver with only status and mask registers. The mapping from SoC interrupts (18-31) to MIPS core interrupts is done via an interrupt-map in device tree. Signed-off-by: Bert Vermeulen Signed-off-by: John Crispin --- drivers/

Re: [PATCH] net: phy: add Marvell 88X2222 transceiver support

2021-02-02 Thread Ivan Bornyakov
On Mon, Feb 01, 2021 at 11:56:01PM +0100, Andrew Lunn wrote: > > +static int mv_config_init(struct phy_device *phydev) > > +{ > > + linkmode_zero(phydev->supported); > > + linkmode_set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->supported); > > + linkmode_set_bit(ETHTOOL_LINK_MODE_FIBRE_BI

Re: [PATCH] tpm_tis: Add missing start/stop_tpm_chip calls

2021-02-02 Thread Jarkko Sakkinen
On Sat, Jan 30, 2021 at 03:49:09PM -0800, Guenter Roeck wrote: > On 1/29/21 2:59 PM, Jarkko Sakkinen wrote: > > On Tue, Jan 26, 2021 at 04:46:07PM +0100, Łukasz Majczak wrote: > >> Hi Jarkko, Guenter > >> > >> Yes, here are the logs when failure occurs - > >> https://gist.github.com/semihalf-majcza

[PATCH AUTOSEL 4.14 4/7] iwlwifi: pcie: add a NULL check in iwl_pcie_txq_unmap

2021-02-02 Thread Sasha Levin
From: Emmanuel Grumbach [ Upstream commit 98c7d21f957b10d9c07a3a60a3a5a8f326a197e5 ] I hit a NULL pointer exception in this function when the init flow went really bad. Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlw

Re: [PATCH] ASoC: qcom: Fix typo error in HDMI regmap config callbacks

2021-02-02 Thread Mark Brown
On Tue, 2 Feb 2021 11:57:27 +0530, Srinivasa Rao Mandadapu wrote: > Had a typo in lpass platform driver that resulted in crash > during suspend/resume with an HDMI dongle connected. > > The regmap read/write/volatile regesters validation callbacks in lpass-cpu > were using MI2S rdma_channels count

[PATCH AUTOSEL 4.14 5/7] iwlwifi: mvm: guard against device removal in reprobe

2021-02-02 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 7a21b1d4a728a483f07c638ccd8610d4b4f12684 ] If we get into a problem severe enough to attempt a reprobe, we schedule a worker to do that. However, if the problem gets more severe and the device is actually destroyed before this worker has a chance to run, we

Re: [PATCH v7 1/3] arm64: kvm: Save/restore MTE registers

2021-02-02 Thread Marc Zyngier
On 2021-01-15 15:28, Steven Price wrote: Define the new system registers that MTE introduces and context switch them. The MTE feature is still hidden from the ID register as it isn't supported in a VM yet. Signed-off-by: Steven Price --- arch/arm64/include/asm/kvm_host.h | 4 ++ arch

[PATCH AUTOSEL 4.14 3/7] iwlwifi: mvm: take mutex for calling iwl_mvm_get_sync_time()

2021-02-02 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 5c56d862c749669d45c256f581eac4244be00d4d ] We need to take the mutex to call iwl_mvm_get_sync_time(), do it. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlwifi.20210115130252.4bb5ccf

[PATCH AUTOSEL 4.14 2/7] pNFS/NFSv4: Try to return invalid layout in pnfs_layout_process()

2021-02-02 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 08bd8dbe88825760e953759d7ec212903a026c75 ] If the server returns a new stateid that does not match the one in our cache, then try to return the one we hold instead of just invalidating it on the client side. This ensures that both client and server will ag

[PATCH AUTOSEL 4.14 1/7] af_key: relax availability checks for skb size calculation

2021-02-02 Thread Sasha Levin
From: Cong Wang [ Upstream commit afbc293add6466f8f3f0c3d944d85f53709c170f ] xfrm_probe_algs() probes kernel crypto modules and changes the availability of struct xfrm_algo_desc. But there is a small window where ealg->available and aalg->available get changed between count_ah_combs()/count_esp_

[PATCH AUTOSEL 4.19 08/10] iwlwifi: mvm: guard against device removal in reprobe

2021-02-02 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 7a21b1d4a728a483f07c638ccd8610d4b4f12684 ] If we get into a problem severe enough to attempt a reprobe, we schedule a worker to do that. However, if the problem gets more severe and the device is actually destroyed before this worker has a chance to run, we

[PATCH AUTOSEL 4.19 07/10] iwlwifi: pcie: fix context info memory leak

2021-02-02 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 2d6bc752cc2806366d9a4fd577b3f6c1f7a7e04e ] If the image loader allocation fails, we leak all the previously allocated memory. Fix this. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwl

[PATCH AUTOSEL 4.19 06/10] iwlwifi: pcie: add a NULL check in iwl_pcie_txq_unmap

2021-02-02 Thread Sasha Levin
From: Emmanuel Grumbach [ Upstream commit 98c7d21f957b10d9c07a3a60a3a5a8f326a197e5 ] I hit a NULL pointer exception in this function when the init flow went really bad. Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlw

Re: [PATCH 10/13] module: pass struct find_symbol_args to find_symbol

2021-02-02 Thread Christoph Hellwig
On Tue, Feb 02, 2021 at 03:07:51PM +0100, Miroslav Benes wrote: > > preempt_disable(); > > - sym = find_symbol(symbol, &owner, NULL, NULL, true, true); > > - if (sym && strong_try_module_get(owner)) > > - sym = NULL; > > + if (!find_symbol(&fsa) || !strong_try_module_get(fsa.own

Re: [PATCH 10/12] arm64: kasan: simplify and inline MTE functions

2021-02-02 Thread Catalin Marinas
On Mon, Feb 01, 2021 at 08:43:34PM +0100, Andrey Konovalov wrote: > +/* > + * Assign allocation tags for a region of memory based on the pointer tag. > + * Note: The address must be non-NULL and MTE_GRANULE_SIZE aligned and > + * size must be non-zero and MTE_GRANULE_SIZE aligned. > + */ OK, so we

[PATCH AUTOSEL 4.19 10/10] SUNRPC: Handle 0 length opaque XDR object data properly

2021-02-02 Thread Sasha Levin
From: Dave Wysochanski [ Upstream commit e4a7d1f7707eb44fd953a31dd59eff82009d879c ] When handling an auth_gss downcall, it's possible to get 0-length opaque object for the acceptor. In the case of a 0-length XDR object, make sure simple_get_netobj() fills in dest->data = NULL, and does not cont

[PATCH AUTOSEL 4.19 09/10] SUNRPC: Move simple_get_bytes and simple_get_netobj into private header

2021-02-02 Thread Sasha Levin
From: Dave Wysochanski [ Upstream commit ba6dfce47c4d002d96cd02a304132fca76981172 ] Remove duplicated helper functions to parse opaque XDR objects and place inside new file net/sunrpc/auth_gss/auth_gss_internal.h. In the new file carry the license and copyright from the source file net/sunrpc/au

Re: [PATCH] Documentation/submitting-patches: Add blurb about backtraces in commit messages

2021-02-02 Thread Borislav Petkov
On Tue, Jan 05, 2021 at 11:48:05AM +0100, Borislav Petkov wrote: > On Mon, Jan 04, 2021 at 04:19:11PM -0700, Jonathan Corbet wrote: > > So I have some questions, I guess... How often is a backtrace *in a commit > > message* really helpful at all? The value in problem reports is clear, but > > I'm

Re: [PATCH 12/12] arm64: kasan: export MTE symbols for KASAN tests

2021-02-02 Thread Catalin Marinas
On Mon, Feb 01, 2021 at 08:43:36PM +0100, Andrey Konovalov wrote: > Export mte_enable_kernel() and mte_set_report_once() to fix: > > ERROR: modpost: "mte_enable_kernel" [lib/test_kasan.ko] undefined! > ERROR: modpost: "mte_set_report_once" [lib/test_kasan.ko] undefined! > > Signed-off-by: Andrey

[tip: x86/seves] x86/sev-es: Do not unroll string I/O for SEV-ES guests

2021-02-02 Thread tip-bot2 for Tom Lendacky
The following commit has been merged into the x86/seves branch of tip: Commit-ID: 62a08a7193dc9107904aaa51a04ba3ba2959f745 Gitweb: https://git.kernel.org/tip/62a08a7193dc9107904aaa51a04ba3ba2959f745 Author:Tom Lendacky AuthorDate:Mon, 01 Feb 2021 12:26:27 -06:00 Committer:

Re: md_raid: mdX_raid6 looping after sync_action "check" to "idle" transition

2021-02-02 Thread Guoqing Jiang
Hi Donald, On 1/26/21 17:05, Donald Buczek wrote: Dear Guoqing, On 26.01.21 15:06, Guoqing Jiang wrote: On 1/26/21 13:58, Donald Buczek wrote: Hmm, how about wake the waiter up in the while loop of raid5d? @@ -6520,6 +6532,11 @@ static void raid5d(struct md_thread *thread)  

[PATCH AUTOSEL 4.19 03/10] chtls: Fix potential resource leak

2021-02-02 Thread Sasha Levin
From: Pan Bian [ Upstream commit b6011966ac6f402847eb5326beee8da3a80405c7 ] The dst entry should be released if no neighbour is found. Goto label free_dst to fix the issue. Besides, the check of ndev against NULL is redundant. Signed-off-by: Pan Bian Link: https://lore.kernel.org/r/20210121145

[PATCH AUTOSEL 4.19 02/10] regulator: core: avoid regulator_resolve_supply() race condition

2021-02-02 Thread Sasha Levin
From: David Collins [ Upstream commit eaa7995c529b54d68d97a30f6344cc6ca2f214a7 ] The final step in regulator_register() is to call regulator_resolve_supply() for each registered regulator (including the one in the process of being registered). The regulator_resolve_supply() function first check

[PATCH AUTOSEL 4.19 01/10] af_key: relax availability checks for skb size calculation

2021-02-02 Thread Sasha Levin
From: Cong Wang [ Upstream commit afbc293add6466f8f3f0c3d944d85f53709c170f ] xfrm_probe_algs() probes kernel crypto modules and changes the availability of struct xfrm_algo_desc. But there is a small window where ealg->available and aalg->available get changed between count_ah_combs()/count_esp_

RE: [PATCH v23 07/15] mm/damon: Implement a debugfs-based user space interface

2021-02-02 Thread SeongJae Park
On Tue, 2 Feb 2021 07:07:24 -0800 Shakeel Butt wrote: > On Tue, Feb 2, 2021 at 2:30 AM SeongJae Park wrote: > > > >> On Mon, 1 Feb 2021 09:37:39 -0800 Shakeel Butt wrote: > >> > >>> On Tue, Dec 15, 2020 at 3:59 AM SeongJae Park wrote: > > From: SeongJae Park > > DAMON is d

[PATCH AUTOSEL 5.4 17/17] blk-cgroup: Use cond_resched() when destroy blkgs

2021-02-02 Thread Sasha Levin
From: Baolin Wang [ Upstream commit 6c635caef410aa757befbd8857c1eadde5cc22ed ] On !PREEMPT kernel, we can get below softlockup when doing stress testing with creating and destroying block cgroup repeatly. The reason is it may take a long time to acquire the queue's lock in the loop of blkcg_dest

Re: [PATCH] drm/msm/kms: Make a lock_class_key for each crtc mutex

2021-02-02 Thread Daniel Vetter
On Mon, Jan 25, 2021 at 03:49:01PM -0800, Stephen Boyd wrote: > Lockdep complains about an AA deadlock when rebooting the device. > > > WARNING: possible recursive locking detected > 5.4.91 #1 Not tainted > >

[PATCH AUTOSEL 5.4 15/17] SUNRPC: Handle 0 length opaque XDR object data properly

2021-02-02 Thread Sasha Levin
From: Dave Wysochanski [ Upstream commit e4a7d1f7707eb44fd953a31dd59eff82009d879c ] When handling an auth_gss downcall, it's possible to get 0-length opaque object for the acceptor. In the case of a 0-length XDR object, make sure simple_get_netobj() fills in dest->data = NULL, and does not cont

Re: PCI MSI issue with reinserting a driver

2021-02-02 Thread John Garry
On 02/02/2021 14:48, Marc Zyngier wrote: Not sure. I also now notice an error for the SAS PCI driver on D06 when nr_cpus < 16, which means number of MSI vectors allocated < 32, so looks the same problem. There we try to allocate 16 + max(nr cpus, 16) MSI. Anyway, let me have a look today to

[PATCH AUTOSEL 5.4 13/17] iwlwifi: mvm: guard against device removal in reprobe

2021-02-02 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 7a21b1d4a728a483f07c638ccd8610d4b4f12684 ] If we get into a problem severe enough to attempt a reprobe, we schedule a worker to do that. However, if the problem gets more severe and the device is actually destroyed before this worker has a chance to run, we

Re: [PATCH RFC v2 08/10] vdpa: add vdpa simulator for block device

2021-02-02 Thread Stefano Garzarella
On Tue, Feb 02, 2021 at 09:34:12AM +, Stefan Hajnoczi wrote: On Thu, Jan 28, 2021 at 03:41:25PM +0100, Stefano Garzarella wrote: +static void vdpasim_blk_work(struct work_struct *work) +{ + struct vdpasim *vdpasim = container_of(work, struct vdpasim, work); + u8 status = VIRTIO_B

[PATCH AUTOSEL 5.4 12/17] iwlwifi: mvm: invalidate IDs of internal stations at mvm start

2021-02-02 Thread Sasha Levin
From: Gregory Greenman [ Upstream commit e223e42aac30bf81f9302c676cdf58cf2bf36950 ] Having sta_id not set for aux_sta and snif_sta can potentially lead to a hard to debug issue in case remove station is called without an add. In this case sta_id 0, an unrelated regular station, will be removed.

[PATCH AUTOSEL 5.4 11/17] iwlwifi: pcie: fix context info memory leak

2021-02-02 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 2d6bc752cc2806366d9a4fd577b3f6c1f7a7e04e ] If the image loader allocation fails, we leak all the previously allocated memory. Fix this. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwl

[PATCH v3] tpm_tis: Add missing tpm_request/relinquish_locality calls

2021-02-02 Thread Lukasz Majczak
There are missing calls to tpm_request_locality before the calls to the tpm_get_timeouts() and tpm_tis_probe_irq_single() - both functions internally send commands to the tpm. As the current approach might work for tpm2, it fails for tpm1.x - in that case call to tpm_get_timeouts() or tpm_tis_probe

[PATCH AUTOSEL 5.4 08/17] iwlwifi: mvm: skip power command when unbinding vif during CSA

2021-02-02 Thread Sasha Levin
From: Sara Sharon [ Upstream commit bf544e9aa570034e094a8a40d5f9e1e2c4916d18 ] In the new CSA flow, we remain associated during CSA, but still do a unbind-bind to the vif. However, sending the power command right after when vif is unbound but still associated causes FW to assert (0x3400) since i

[PATCH AUTOSEL 5.4 10/17] iwlwifi: pcie: add a NULL check in iwl_pcie_txq_unmap

2021-02-02 Thread Sasha Levin
From: Emmanuel Grumbach [ Upstream commit 98c7d21f957b10d9c07a3a60a3a5a8f326a197e5 ] I hit a NULL pointer exception in this function when the init flow went really bad. Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlw

[PATCH AUTOSEL 5.4 05/17] chtls: Fix potential resource leak

2021-02-02 Thread Sasha Levin
From: Pan Bian [ Upstream commit b6011966ac6f402847eb5326beee8da3a80405c7 ] The dst entry should be released if no neighbour is found. Goto label free_dst to fix the issue. Besides, the check of ndev against NULL is redundant. Signed-off-by: Pan Bian Link: https://lore.kernel.org/r/20210121145

[PATCH AUTOSEL 5.4 02/17] regulator: core: avoid regulator_resolve_supply() race condition

2021-02-02 Thread Sasha Levin
From: David Collins [ Upstream commit eaa7995c529b54d68d97a30f6344cc6ca2f214a7 ] The final step in regulator_register() is to call regulator_resolve_supply() for each registered regulator (including the one in the process of being registered). The regulator_resolve_supply() function first check

[PATCH AUTOSEL 5.4 06/17] pNFS/NFSv4: Try to return invalid layout in pnfs_layout_process()

2021-02-02 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 08bd8dbe88825760e953759d7ec212903a026c75 ] If the server returns a new stateid that does not match the one in our cache, then try to return the one we hold instead of just invalidating it on the client side. This ensures that both client and server will ag

[PATCH AUTOSEL 5.10 25/25] nvme-pci: add the DISABLE_WRITE_ZEROES quirk for a SPCC device

2021-02-02 Thread Sasha Levin
From: Chaitanya Kulkarni [ Upstream commit 899199292b14b7c735808a37517de4dd2160c300 ] This adds a quirk for SPCC 256GB NVMe 1.3 drive which fixes timeouts and I/O errors due to the fact that the controller does not properly handle the Write Zeroes command: [ 2745.659527] CPU: 2 PID: 0 Comm: swa

[PATCH AUTOSEL 5.10 24/25] blk-cgroup: Use cond_resched() when destroy blkgs

2021-02-02 Thread Sasha Levin
From: Baolin Wang [ Upstream commit 6c635caef410aa757befbd8857c1eadde5cc22ed ] On !PREEMPT kernel, we can get below softlockup when doing stress testing with creating and destroying block cgroup repeatly. The reason is it may take a long time to acquire the queue's lock in the loop of blkcg_dest

Re: [PATCH v1 2/2] ASoC: tegra: Add RT5631 machine driver

2021-02-02 Thread Dmitry Osipenko
31.01.2021 21:41, Ion Agorria пишет: > + np_codec = of_parse_phandle(pdev->dev.of_node, "nvidia,audio-codec", 0); > + if (!np_codec) { > + dev_err(&pdev->dev, > + "Property 'nvidia,audio-codec' missing or invalid\n"); > + return -EINVAL; > + }

Re: [PATCH net 0/4] Fix W=1 compilation warnings in net/* folder

2021-02-02 Thread Leon Romanovsky
On Tue, Feb 02, 2021 at 03:59:38PM +0100, Eric Dumazet wrote: > On Tue, Feb 2, 2021 at 3:57 PM Leon Romanovsky wrote: > > > > On Tue, Feb 02, 2021 at 03:34:37PM +0100, Eric Dumazet wrote: > > > On Tue, Feb 2, 2021 at 2:55 PM Leon Romanovsky wrote: > > > > > > > > From: Leon Romanovsky > > > > >

Re: [PATCH] sched: pull tasks when CPU is about to run SCHED_IDLE tasks

2021-02-02 Thread Vincent Guittot
On Tue, 2 Feb 2021 at 08:56, chin wrote: > > > > > At 2021-01-13 16:30:14, "Vincent Guittot" wrote: > >On Wed, 13 Jan 2021 at 04:14, chin wrote: > >> > >> > >> > >> > >> At 2021-01-12 16:18:51, "Vincent Guittot" > >> wrote: > >> >On Tue, 12 Jan 2021 at 07:59, chin wrote: > >> >> > >> >> > >>

[rcu:dev.2021.01.26a] BUILD SUCCESS WITH WARNING 142d159f544763140e0f498936bca8f71563e0e0

2021-02-02 Thread kernel test robot
:2430:9: sparse: sparse: context imbalance in 'rcu_nocb_rdp_deoffload' - wrong count at exit Warning ids grouped by kconfigs: gcc_recent_errors `-- sparc64-randconfig-s031-20210202 `-- kernel-rcu-tree_plugin.h:sparse:sparse:context-imbalance-in-rcu_nocb_rdp_deoffload-wrong-count-at-exi

[PATCH AUTOSEL 5.4 07/17] ASoC: ak4458: correct reset polarity

2021-02-02 Thread Sasha Levin
From: Eliot Blennerhassett [ Upstream commit e953daeb68b1abd8a7d44902786349fdeef5c297 ] Reset (aka power off) happens when the reset gpio is made active. Change function name to ak4458_reset to match devicetree property "reset-gpios" Signed-off-by: Eliot Blennerhassett Reviewed-by: Linus Walle

Re: [PATCH v7 4/4] ARM: Add support for Hisilicon Kunpeng L3 cache controller

2021-02-02 Thread Arnd Bergmann
On Tue, Feb 2, 2021 at 1:18 PM Leizhen (ThunderTown) wrote: > On 2021/2/2 16:44, Arnd Bergmann wrote: > > > > To have a more useful performance number, try mentioning the > > most performance sensitive non-coherent DMA master on one > > of the chips that has this cache controller, and a high-level

[PATCH AUTOSEL 5.10 23/25] i2c: mediatek: Move suspend and resume handling to NOIRQ phase

2021-02-02 Thread Sasha Levin
From: Qii Wang [ Upstream commit de96c3943f591018727b862f51953c1b6c55bcc3 ] Some i2c device driver indirectly uses I2C driver when it is now being suspended. The i2c devices driver is suspended during the NOIRQ phase and this cannot be changed due to other dependencies. Therefore, we also need t

Re: [PATCH RESEND v4 0/4] x86: fix get_nr_restart_syscall()

2021-02-02 Thread Oleg Nesterov
On 02/01, Linus Torvalds wrote: > > On Mon, Feb 1, 2021 at 10:18 AM Linus Torvalds > wrote: > > > > Yeah, looks sane to me. > > Oh, and in a perfect world we'd have a test for this condition too, no? There is the "erestartsys-trap-debugger" test in ptrace-tests suite. Do you mean you want another

[PATCH AUTOSEL 5.4 09/17] iwlwifi: mvm: take mutex for calling iwl_mvm_get_sync_time()

2021-02-02 Thread Sasha Levin
From: Johannes Berg [ Upstream commit 5c56d862c749669d45c256f581eac4244be00d4d ] We need to take the mutex to call iwl_mvm_get_sync_time(), do it. Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlwifi.20210115130252.4bb5ccf

[PATCH AUTOSEL 5.4 03/17] mac80211: 160MHz with extended NSS BW in CSA

2021-02-02 Thread Sasha Levin
From: Shay Bar [ Upstream commit dcf3c8fb32ddbfa3b8227db38aa6746405bd4527 ] Upon receiving CSA with 160MHz extended NSS BW from associated AP, STA should set the HT operation_mode based on new_center_freq_seg1 because it is later used as ccfs2 in ieee80211_chandef_vht_oper(). Signed-off-by: Avi

[PATCH AUTOSEL 5.10 22/25] SUNRPC: Handle 0 length opaque XDR object data properly

2021-02-02 Thread Sasha Levin
From: Dave Wysochanski [ Upstream commit e4a7d1f7707eb44fd953a31dd59eff82009d879c ] When handling an auth_gss downcall, it's possible to get 0-length opaque object for the acceptor. In the case of a 0-length XDR object, make sure simple_get_netobj() fills in dest->data = NULL, and does not cont

Re: [PATCH net 3/4] net/core: move ipv6 gro function declarations to net/ipv6

2021-02-02 Thread Leon Romanovsky
On Tue, Feb 02, 2021 at 03:57:07PM +0100, Eric Dumazet wrote: > On Tue, Feb 2, 2021 at 2:56 PM Leon Romanovsky wrote: > > > > From: Leon Romanovsky > > > > Fir the following compilation warnings: > > 1031 | INDIRECT_CALLABLE_SCOPE void udp_v6_early_demux(struct sk_buff *skb) > > > > net/ipv6/ip6

[PATCH AUTOSEL 5.4 04/17] ASoC: Intel: Skylake: Zero snd_ctl_elem_value

2021-02-02 Thread Sasha Levin
From: Ricardo Ribalda [ Upstream commit 1d8fe0648e118fd495a2cb393a34eb8d428e7808 ] Clear struct snd_ctl_elem_value before calling ->put() to avoid any data leak. Signed-off-by: Ricardo Ribalda Reviewed-by: Cezary Rojewski Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/202101211

[PATCH AUTOSEL 5.10 21/25] SUNRPC: Move simple_get_bytes and simple_get_netobj into private header

2021-02-02 Thread Sasha Levin
From: Dave Wysochanski [ Upstream commit ba6dfce47c4d002d96cd02a304132fca76981172 ] Remove duplicated helper functions to parse opaque XDR objects and place inside new file net/sunrpc/auth_gss/auth_gss_internal.h. In the new file carry the license and copyright from the source file net/sunrpc/au

Re: [PATCH] ceph: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE

2021-02-02 Thread Jeff Layton
On Tue, 2021-02-02 at 07:45 -0500, Jeff Layton wrote: > On Tue, 2021-02-02 at 13:07 +0100, Ilya Dryomov wrote: > > On Mon, Feb 1, 2021 at 8:52 AM Jiapeng Chong > > wrote: > > > > > > Fix the following coccicheck warning: > > > > > > ./fs/ceph/debugfs.c:347:0-23: WARNING: congestion_kb_fops shoul

Re: [PATCH 1/3] iommu/vt-d: Add new enum value and structure for SATC

2021-02-02 Thread Raj, Ashok
On Tue, Feb 02, 2021 at 12:40:55PM +0800, Lu Baolu wrote: > From: Yian Chen > > Starting from Intel Platform VT-d v3.2, BIOS may provide new remapping > structure SATC for SOC integrated devices, according to section 8.8 of > Intel VT-d architecture specification v3.2. The SATC structure reports

Re: [PATCH 09/13] pci: dwc: pcie-kirin: allow to optionally require a regulator

2021-02-02 Thread Mark Brown
On Tue, Feb 02, 2021 at 03:50:28PM +0100, Mauro Carvalho Chehab wrote: > Mark Brown escreveu: > > On Tue, Feb 02, 2021 at 02:29:54PM +0100, Mauro Carvalho Chehab wrote: > > > As this is device-dependent, such regulator line should be > > > optional. > > Supplies should only be optional if they

[PATCH AUTOSEL 5.10 17/25] iwlwifi: mvm: invalidate IDs of internal stations at mvm start

2021-02-02 Thread Sasha Levin
From: Gregory Greenman [ Upstream commit e223e42aac30bf81f9302c676cdf58cf2bf36950 ] Having sta_id not set for aux_sta and snif_sta can potentially lead to a hard to debug issue in case remove station is called without an add. In this case sta_id 0, an unrelated regular station, will be removed.

Re: [PATCH] usb: typec: Return void in typec_partner_set_pd_revision

2021-02-02 Thread Benson Leung
On Tue, Feb 02, 2021 at 04:09:13PM +0100, Greg KH wrote: > On Tue, Feb 02, 2021 at 07:02:52AM -0800, Benson Leung wrote: > > Hi Kyle, > > > > On Tue, Feb 02, 2021 at 05:55:12PM +0800, Kyle Tso wrote: > > > typec_partner_set_pd_revision doesn't need any return value. > > > > > > Fixes: 29b01295a82

[PATCH AUTOSEL 5.10 12/25] ASoC: Intel: sof_sdw: set proper flags for Dell TGL-H SKU 0A5E

2021-02-02 Thread Sasha Levin
From: Libin Yang [ Upstream commit 9ad9bc59dde106e56dd59ce2bec7c1b08e1f0eb4 ] Add flag "SOF_RT711_JD_SRC_JD2", flag "SOF_RT715_DAI_ID_FIX" and "SOF_SDW_FOUR_SPK" to the Dell TGL-H based SKU "0A5E". Signed-off-by: Libin Yang Co-developed-by: Hui Wang Signed-off-by: Hui Wang Reviewed-by: Bard

[PATCH AUTOSEL 5.10 13/25] iwlwifi: mvm: skip power command when unbinding vif during CSA

2021-02-02 Thread Sasha Levin
From: Sara Sharon [ Upstream commit bf544e9aa570034e094a8a40d5f9e1e2c4916d18 ] In the new CSA flow, we remain associated during CSA, but still do a unbind-bind to the vif. However, sending the power command right after when vif is unbound but still associated causes FW to assert (0x3400) since i

Re: [PATCH] drm/vc4: remove unneeded variable: "ret"

2021-02-02 Thread Maxime Ripard
On Tue, Feb 02, 2021 at 04:23:38AM -0800, Bernard Zhao wrote: > remove unneeded variable: "ret". > > Signed-off-by: Bernard Zhao Applied, thanks maxime signature.asc Description: PGP signature

[PATCH AUTOSEL 5.10 15/25] iwlwifi: pcie: add a NULL check in iwl_pcie_txq_unmap

2021-02-02 Thread Sasha Levin
From: Emmanuel Grumbach [ Upstream commit 98c7d21f957b10d9c07a3a60a3a5a8f326a197e5 ] I hit a NULL pointer exception in this function when the init flow went really bad. Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlw

[PATCH AUTOSEL 5.10 11/25] ASoC: ak4458: correct reset polarity

2021-02-02 Thread Sasha Levin
From: Eliot Blennerhassett [ Upstream commit e953daeb68b1abd8a7d44902786349fdeef5c297 ] Reset (aka power off) happens when the reset gpio is made active. Change function name to ak4458_reset to match devicetree property "reset-gpios" Signed-off-by: Eliot Blennerhassett Reviewed-by: Linus Walle

Re: [PATCH v23 07/15] mm/damon: Implement a debugfs-based user space interface

2021-02-02 Thread Shakeel Butt
On Tue, Feb 2, 2021 at 7:46 AM SeongJae Park wrote: > [snip] > > > > You can simplify by simply restricting to one pid/target per each write > > syscall. > > Right, thanks for the suggestion. However, I already almost finished writing > the fix. If there is no other concern, I'd like to keep cu

[PATCH AUTOSEL 5.10 10/25] ALSA: hda: intel-dsp-config: add PCI id for TGL-H

2021-02-02 Thread Sasha Levin
From: Bard Liao [ Upstream commit c5b5ff607d6fe5f4284acabd07066f96ecf96ac4 ] Adding PCI id for TGL-H. Like for other TGL platforms, SOF is used if Soundwire codecs or PCH-DMIC is detected. Signed-off-by: Bard Liao Reviewed-by: Xiuli Pan Reviewed-by: Libin Yang Signed-off-by: Kai Vehmanen Li

RE: [PATCH v5] x86/mce: Avoid infinite loop for copy from user recovery

2021-02-02 Thread Luck, Tony
> And the much more important question is, what is the code supposed to > do when that overflow *actually* happens in real life? Because IINM, > an overflow condition on the same page would mean killing the task to > contain the error and not killing the machine... Correct. The cases I've actually

Re: [PATCH 01/12] kasan, mm: don't save alloc stacks twice

2021-02-02 Thread Marco Elver
On Mon, Feb 01, 2021 at 08:43PM +0100, Andrey Konovalov wrote: > Currently KASAN saves allocation stacks in both kasan_slab_alloc() and > kasan_kmalloc() annotations. This patch changes KASAN to save allocation > stacks for slab objects from kmalloc caches in kasan_kmalloc() only, > and stacks for

[PATCH AUTOSEL 5.10 09/25] pNFS/NFSv4: Improve rejection of out-of-order layouts

2021-02-02 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit d29b468da4f940bd2bff2628ba8d2d652671d244 ] If a layoutget ends up being reordered w.r.t. a layoutreturn, e.g. due to a layoutget-on-open not knowing a priori which file to lock, then we must assume the layout is no longer being considered valid state by th

Re: [PATCH V5 2/4] arm64/mm: Define arch_get_mappable_range()

2021-02-02 Thread Catalin Marinas
On Mon, Feb 01, 2021 at 08:55:00AM +0530, Anshuman Khandual wrote: > This overrides arch_get_mappable_range() on arm64 platform which will be > used with recently added generic framework. It drops inside_linear_region() > and subsequent check in arch_add_memory() which are no longer required. It >

Re: [PATCH v2 1/3] KVM: X86: Rename DR6_INIT to DR6_ACTIVE_LOW

2021-02-02 Thread Paolo Bonzini
On 02/02/21 16:02, Xiaoyao Li wrote: On 2/2/2021 10:49 PM, Paolo Bonzini wrote: On 02/02/21 10:04, Chenyi Qiang wrote:  #define DR6_FIXED_1    0xfffe0ff0 -#define DR6_INIT    0x0ff0 +/* + * DR6_ACTIVE_LOW is actual the result of DR6_FIXED_1 | ACTIVE_LOW_BITS. + * We can regard all the cu

Re: [PATCH 1/6] software node: Provide replacement for device_add_properties()

2021-02-02 Thread Rafael J. Wysocki
On Tue, Feb 2, 2021 at 4:01 PM Heikki Krogerus wrote: > > Hi Rafael, > > On Tue, Feb 02, 2021 at 03:44:05PM +0100, Rafael J. Wysocki wrote: > > > +/** > > > + * device_create_managed_software_node - Create a software node for a > > > device > > > + * @dev: The device the software node is assigned

[PATCH] KVM: move EXIT_FASTPATH_REENTER_GUEST to common code

2021-02-02 Thread Paolo Bonzini
Now that KVM is using static calls, calling vmx_vcpu_run and vmx_sync_pir_to_irr does not incur anymore the cost of a retpoline. Therefore there is no need anymore to handle EXIT_FASTPATH_REENTER_GUEST in vendor code. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/vmx/vmx.c | 19 +---

Re: [PATCH printk-rework 11/12] printk: remove logbuf_lock

2021-02-02 Thread Petr Mladek
On Tue 2021-02-02 12:47:20, John Ogness wrote: > On 2021-02-02, Petr Mladek wrote: > > On Tue 2021-01-26 22:21:50, John Ogness wrote: > >> Since the ringbuffer is lockless, there is no need for it to be > >> protected by @logbuf_lock. Remove @logbuf_lock. > >> > >> This means that printk_nmi_dire

Re: [PATCH] KVM: x86/mmu: Add '__func__' in rmap_printk()

2021-02-02 Thread Paolo Bonzini
On 27/01/21 18:25, Joe Perches wrote: On Wed, 2021-01-27 at 11:54 +0100, Paolo Bonzini wrote: On 27/01/21 03:08, Stephen Zhang wrote: Given the common pattern: rmap_printk("%s:"..., __func__,...) we could improve this by adding '__func__' in rmap_printk(). Currently, the MMU_DEBUG control i

[PATCH AUTOSEL 5.10 08/25] pNFS/NFSv4: Try to return invalid layout in pnfs_layout_process()

2021-02-02 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 08bd8dbe88825760e953759d7ec212903a026c75 ] If the server returns a new stateid that does not match the one in our cache, then try to return the one we hold instead of just invalidating it on the client side. This ensures that both client and server will ag

Re: [PATCH v2] hwmon: lm75: Handle broken device nodes gracefully

2021-02-02 Thread Guenter Roeck
On 2/2/21 6:21 AM, Matwey V. Kornilov wrote: > There is a logical flaw in lm75_probe() function introduced in > > commit e97a45f1b460 ("hwmon: (lm75) Add OF device ID table") > > Note, that of_device_get_match_data() returns NULL when no match > found. This is the case when OF node exists but

Re: [PATCH 8/9] vfio/pci: use x86 naming instead of igd

2021-02-02 Thread Cornelia Huck
On Mon, 1 Feb 2021 11:42:30 -0700 Alex Williamson wrote: > On Mon, 1 Feb 2021 12:49:12 -0500 > Matthew Rosato wrote: > > > On 2/1/21 12:14 PM, Cornelia Huck wrote: > > > On Mon, 1 Feb 2021 16:28:27 + > > > Max Gurtovoy wrote: > > > > > >> This patch doesn't change any logic but only

[PATCH AUTOSEL 5.10 06/25] ASoC: Intel: Skylake: Zero snd_ctl_elem_value

2021-02-02 Thread Sasha Levin
From: Ricardo Ribalda [ Upstream commit 1d8fe0648e118fd495a2cb393a34eb8d428e7808 ] Clear struct snd_ctl_elem_value before calling ->put() to avoid any data leak. Signed-off-by: Ricardo Ribalda Reviewed-by: Cezary Rojewski Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/202101211

Re: [PATCH v2 3/3] PCI: uniphier-ep: Add EPC restart management support

2021-02-02 Thread Kunihiko Hayashi
Hi Kishon, Thank you for your comment. On 2021/01/28 23:29, Kishon Vijay Abraham I wrote: Hi Kunihiko, On 24/01/21 8:39 pm, Kunihiko Hayashi wrote: Set the polling function and call the init function to enable EPC restart management. The polling function detects that the bus-reset signal is a

Re: [PATCH] xen/netback: avoid race in xenvif_rx_ring_slots_available()

2021-02-02 Thread Jürgen Groß
On 02.02.21 16:26, Igor Druzhinin wrote: On 02/02/2021 07:09, Juergen Gross wrote: Since commit 23025393dbeb3b8b3 ("xen/netback: use lateeoi irq binding") xenvif_rx_ring_slots_available() is no longer called only from the rx queue kernel thread, so it needs to access the rx queue with the associ

[PATCH AUTOSEL 5.10 04/25] drm/nouveau/nvif: fix method count when pushing an array

2021-02-02 Thread Sasha Levin
From: Ben Skeggs [ Upstream commit d502297008142645edf5c791af424ed321e5da84 ] Reported-by: Lyude Paul Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin --- drivers/gpu/drm/nouveau/include/nvif/push.h | 216 ++-- 1 file changed, 108 insertions(+), 108 deletions(-) diff --g

  1   2   3   4   5   6   7   8   9   10   >