Re: [GIT PULL] sound fixes for 5.12-rc6

2021-04-01 Thread pr-tracker-bot
The pull request you sent on Thu, 01 Apr 2021 16:47:18 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git > tags/sound-5.12-rc6 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ffd9fb546d498b2105dca6efc58a5cd0c17f0807 Thank you! -- Deet-doot-dot,

Re: [PATCH v3 00/14] PCI/MSI: Getting rid of msi_controller, and other cleanups

2021-04-01 Thread Lorenzo Pieralisi
On Tue, 30 Mar 2021 16:11:31 +0100, Marc Zyngier wrote: > This is a respin of the series described at [1]. > > * From v2 [2]: > - Fixed the Xilinx driver, thanks to Bharat for testing it > - Dropped the no_msi attribute, and solely rely on msi_domain, which > has the same effect for the on

Re: [PATCH -next] RDMA/uverbs: Fix -Wunused-function warning

2021-04-01 Thread Jason Gunthorpe
On Thu, Apr 01, 2021 at 10:10:28AM +0800, YueHaibing wrote: > make W=1 warns this: > > In file included from drivers/infiniband/sw/rdmavt/mmap.c:51:0: > ./include/rdma/uverbs_ioctl.h:937:1: > warning: ‘_uverbs_get_const_unsigned’ defined but not used > [-Wunused-function] > _uverbs_get_const_un

[PATCH] scripts: A new script for checking duplicate struct declaration

2021-04-01 Thread Wan Jiabing
checkdeclares: find struct declared more than once. Inspired by checkincludes.pl. This script checks for duplicate struct declares. Note that this will not take into consideration macros, so you should run this only if you know you do have real dups and do not have them under #ifdef's. You could al

[PATCH] overflow: improve check_shl_overflow comment

2021-04-01 Thread Keith Busch
A 'false' return means the value was safely set, so the comment should say 'true' for when it is not considered safe. Cc: Jason Gunthorpe Cc: Kees Cook Signed-off-by: Keith Busch --- include/linux/overflow.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/over

Re: [PATCH 3/6] KVM: x86: introduce kvm_register_clear_available

2021-04-01 Thread Paolo Bonzini
On 01/04/21 16:18, Maxim Levitsky wrote: Small refactoring that will be used in the next patch. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/kvm_cache_regs.h | 7 +++ arch/x86/kvm/svm/svm.c| 6 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/arch/x86/kvm/

[PATCH 08/10] mm/vmscan: Consider anonymous pages without swap

2021-04-01 Thread Dave Hansen
From: Keith Busch Reclaim anonymous pages if a migration path is available now that demotion provides a non-swap recourse for reclaiming anon pages. Note that this check is subtly different from the anon_should_be_aged() checks. This mechanism checks whether a specific page in a specific cont

[PATCH v14 2/6] locking/qspinlock: Refactor the qspinlock slow path

2021-04-01 Thread Alex Kogan
Move some of the code manipulating the spin lock into separate functions. This would allow easier integration of alternative ways to manipulate that lock. Signed-off-by: Alex Kogan Reviewed-by: Steve Sistare Reviewed-by: Waiman Long --- kernel/locking/qspinlock.c | 38 +

Re: [PATCH 1/6] KVM: nVMX: delay loading of PDPTRs to KVM_REQ_GET_NESTED_STATE_PAGES

2021-04-01 Thread Paolo Bonzini
On 01/04/21 16:18, Maxim Levitsky wrote: Similar to the rest of guest page accesses after migration, this should be delayed to KVM_REQ_GET_NESTED_STATE_PAGES request. Signed-off-by: Maxim Levitsky --- arch/x86/kvm/vmx/nested.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions

Re: [PATCH v3 1/2] audit: document /proc/PID/loginuid

2021-04-01 Thread Mauro Carvalho Chehab
Em Thu, 18 Mar 2021 15:19:10 -0400 Richard Guy Briggs escreveu: > Describe the /proc/PID/loginuid interface in Documentation/ABI/stable that > was added 2005-02-01 by commit 1e2d1492e178 ("[PATCH] audit: handle > loginuid through proc") > > Signed-off-by: Richard Guy Briggs > --- > Documentati

[PATCH 02/30] media: atmel: atmel-isc: specialize driver name constant

2021-04-01 Thread Eugen Hristev
The driver name constant must defined based on product driver, thus moving the constant directly where it's required. This will allow each ISC based product to define it's own name. Signed-off-by: Eugen Hristev --- drivers/media/platform/atmel/atmel-isc-base.c| 4 ++-- drivers/media/platform

[PATCH] arm64: dts: qcom: sm8350: Add interconnects

2021-04-01 Thread Vinod Koul
Add interconnect nodes and add them for modem and cdsp nodes Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 79 1 file changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index a0d

RE: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs

2021-04-01 Thread Liu, Yi L
> From: Jason Gunthorpe > Sent: Thursday, April 1, 2021 7:47 PM [...] > I'm worried Intel views the only use of PASID in a guest is with > ENQCMD, but that is not consistent with the industry. We need to see > normal nested PASID support with assigned PCI VFs. I'm not quire flow here. Intel also

Re: [PATCH v7 07/14] dt-bindings: mfd: Add i.MX8qm/qxp Control and Status Registers module binding

2021-04-01 Thread Rob Herring
On Thu, Apr 1, 2021 at 4:18 AM Liu Ying wrote: > > On Wed, 2021-03-31 at 08:40 -0500, Rob Herring wrote: > > On Wed, 31 Mar 2021 14:33:18 +0800, Liu Ying wrote: > > > This patch adds bindings for i.MX8qm/qxp Control and Status Registers > > > module. > > > > > > Reviewed-by: Rob Herring > > > Si

Re: [syzbot] WARNING in mntput_no_expire (2)

2021-04-01 Thread Christian Brauner
On Thu, Apr 01, 2021 at 05:16:03AM -0700, syzbot wrote: > syzbot has bisected this issue to: > > commit 73d90386b559d6f4c3c5db5e6bb1b68aae8fd3e7 > Author: Damien Le Moal > Date: Thu Jan 28 04:47:27 2021 + > > nvme: cleanup zone information initialization > > bisection log: https://sy

Re: [PATCH v2 1/5] iio: Documentation: update definitions for bufferY and scan_elements

2021-04-01 Thread Jonathan Cameron
On Thu, 1 Apr 2021 15:44:08 +0200 Mauro Carvalho Chehab wrote: > Em Wed, 17 Feb 2021 10:34:34 +0200 > Alexandru Ardelean escreveu: > > > Since the new change to the IIO buffer infrastructure, the buffer/ and > > scan_elements/ directories have been merged into bufferY/ to have some > > attribut

Re: [PATCH v3] mm,hwpoison: return -EHWPOISON when page already poisoned

2021-04-01 Thread Luck, Tony
On Wed, Mar 31, 2021 at 07:25:40PM +0800, Aili Yao wrote: > When the page is already poisoned, another memory_failure() call in the > same page now return 0, meaning OK. For nested memory mce handling, this > behavior may lead to one mce looping, Example: > > 1.When LCME is enabled, and there are

[PATCH 05/10] mm/migrate: demote pages during reclaim

2021-04-01 Thread Dave Hansen
From: Dave Hansen This is mostly derived from a patch from Yang Shi: https://lore.kernel.org/linux-mm/1560468577-101178-10-git-send-email-yang@linux.alibaba.com/ Add code to the reclaim path (shrink_page_list()) to "demote" data to another NUMA node instead of discarding the data

Re: [PATCH 3/7] PM: runtime: remove kernel-doc warnings

2021-04-01 Thread Pierre-Louis Bossart
On 4/1/21 8:40 AM, Rafael J. Wysocki wrote: On Thu, Apr 1, 2021 at 1:26 AM Pierre-Louis Bossart wrote: remove make W=1 warnings drivers/base/power/runtime.c:926: warning: Function parameter or member 'timer' not described in 'pm_suspend_timer_fn' drivers/base/power/runtime.c:926: warning:

Re: [PATCH] power: reset: at91-reset: free resources on exit path

2021-04-01 Thread Claudiu.Beznea
On 31.03.2021 11:18, Nicolas Ferre wrote: > On 09/02/2021 at 12:01, Claudiu Beznea wrote: >> Free resources on exit path (failure path of probe and remove). > > I'm not sure we can use this driver as a module anyway. > > Otherwise, it looks fine, but isn't it possible to use devm_of_iomap(), > ev

Re: [PATCH v1 3/7] PCI: New Primary to Sideband (P2SB) bridge support library

2021-04-01 Thread Andy Shevchenko
On Tue, Mar 09, 2021 at 09:42:52AM +0100, Henning Schild wrote: > Am Mon, 8 Mar 2021 19:42:21 -0600 > schrieb Bjorn Helgaas : > > On Mon, Mar 08, 2021 at 09:16:50PM +0200, Andy Shevchenko wrote: > > > On Mon, Mar 08, 2021 at 12:52:12PM -0600, Bjorn Helgaas wrote: > > > > On Mon, Mar 08, 2021 at 0

Re: [PATCH v1 3/7] PCI: New Primary to Sideband (P2SB) bridge support library

2021-04-01 Thread Mika Westerberg
On Thu, Apr 01, 2021 at 09:22:02PM +0300, Andy Shevchenko wrote: > On Thu, Apr 01, 2021 at 09:06:17PM +0300, Mika Westerberg wrote: > > On Thu, Apr 01, 2021 at 06:43:11PM +0300, Andy Shevchenko wrote: > > > On Sat, Mar 13, 2021 at 10:45:57AM +0100, Henning Schild wrote: > > > > Am Mon, 8 Mar 2021 1

[PATCH 07/10] mm/vmscan: add helper for querying ability to age anonymous pages

2021-04-01 Thread Dave Hansen
From: Dave Hansen Anonymous pages are kept on their own LRU(s). These lists could theoretically always be scanned and maintained. But, without swap, there is currently nothing the kernel can *do* with the results of a scanned, sorted LRU for anonymous pages. A check for '!total_swap_pages' c

[PATCH 01/10] mm/numa: node demotion data structure and lookup

2021-04-01 Thread Dave Hansen
From: Dave Hansen Prepare for the kernel to auto-migrate pages to other memory nodes with a user defined node migration table. This allows creating single migration target for each NUMA node to enable the kernel to do NUMA page migrations instead of simply reclaiming colder pages. A node with n

Re: [PATCH 2/3] dt-bindings: touchscreen: Add HY46XX bindings

2021-04-01 Thread Giulio Benetti
Hello Rob, All, Il 06/03/2021 20:41, Rob Herring ha scritto: On Fri, Mar 05, 2021 at 05:38:33PM +0100, Giulio Benetti wrote: From: Giulio Benetti This adds device tree bindings for the Hycon HY46XX touchscreen series. Signed-off-by: Giulio Benetti --- .../input/touchscreen/hycon,hy46xx.ya

Re: [External] Re: [PATCH 31/32] Documentation: update sysfs-platform_profile.rst reference

2021-04-01 Thread Mark Pearson
On 01/04/2021 09:49, Hans de Goede wrote: > Hi, > > On 4/1/21 2:17 PM, Mauro Carvalho Chehab wrote: >> The file name: Documentation/ABI/testing/sysfs-platform_profile.rst >> should be, instead: Documentation/userspace-api/sysfs-platform_profile.rst. >> >> Update its cross-reference accordingly.

Re: [RFC PATCH v1 1/4] arm64: Implement infrastructure for stack trace reliability checks

2021-04-01 Thread Mark Brown
On Tue, Mar 30, 2021 at 02:09:52PM -0500, madve...@linux.microsoft.com wrote: > From: "Madhavan T. Venkataraman" > > Implement a check_reliability() function that will contain checks for the > presence of various features and conditions that can render the stack trace > unreliable. This looks go

Re: [PATCH v2 1/5] iio: Documentation: update definitions for bufferY and scan_elements

2021-04-01 Thread Mauro Carvalho Chehab
Em Wed, 17 Feb 2021 10:34:34 +0200 Alexandru Ardelean escreveu: > Since the new change to the IIO buffer infrastructure, the buffer/ and > scan_elements/ directories have been merged into bufferY/ to have some > attributes available per-buffer. > > This change updates the ABI docs to reflect thi

Re: [PATCH 2/6] KVM: nSVM: call nested_svm_load_cr3 on nested state load

2021-04-01 Thread Paolo Bonzini
On 01/04/21 16:18, Maxim Levitsky wrote: While KVM's MMU should be fully reset by loading of nested CR0/CR3/CR4 by KVM_SET_SREGS, we are not in nested mode yet when we do it and therefore only root_mmu is reset. On regular nested entries we call nested_svm_load_cr3 which both updates the guest's

[PATCH v2 5/8] cxl/acpi: Introduce ACPI0017 driver and cxl_root

2021-04-01 Thread Dan Williams
While CXL builds upon the PCI software model for dynamic enumeration and control, a static platform component is required to bootstrap the CXL memory layout. In addition to identifying the host bridges ACPI is responsible for enumerating the CXL memory space that can be addressed by decoders. This

Re: [bug report] node: Add memory-side caching attributes

2021-04-01 Thread Dan Carpenter
On Thu, Apr 01, 2021 at 08:25:11AM -0300, Jason Gunthorpe wrote: > On Thu, Apr 01, 2021 at 12:00:39PM +0300, Dan Carpenter wrote: > > Hi Keith, > > > > I've been trying to figure out ways Smatch can check for device managed > > resources. Like adding rules that if we call dev_set_name(&foo->bar)

Re: [PATCH v2 2/2] KVM: nSVM: improve SYSENTER emulation on AMD

2021-04-01 Thread Vitaly Kuznetsov
Paolo Bonzini writes: > On 01/04/21 15:03, Vitaly Kuznetsov wrote: >>> + svm->sysenter_eip_hi = guest_cpuid_is_intel(vcpu) ? (data >> >>> 32) : 0; >> >> (Personal taste) I'd suggest we keep the whole 'sysenter_eip'/'sysenter_esp' >> even if we only use the upper 32 bits of it. That wo

[PATCH 09/10] mm/vmscan: never demote for memcg reclaim

2021-04-01 Thread Dave Hansen
From: Dave Hansen Global reclaim aims to reduce the amount of memory used on a given node or set of nodes. Migrating pages to another node serves this purpose. memcg reclaim is different. Its goal is to reduce the total memory consumption of the entire memcg, across all nodes. Migration doe

Re: [PATCH v1 3/7] PCI: New Primary to Sideband (P2SB) bridge support library

2021-04-01 Thread Andy Shevchenko
On Sat, Mar 13, 2021 at 10:45:57AM +0100, Henning Schild wrote: > Am Mon, 8 Mar 2021 14:20:16 +0200 > schrieb Andy Shevchenko : ... > > + * pci_p2sb_bar - Get Primary to Sideband bridge (P2SB) device BAR > > + * @pdev: PCI device to get a PCI bus to communicate with > > + * @devfn: PCI slot and

Re: Backporting to v5.6: fd258dc4442c ("x86/mce: Add Skylake quirk for patrol scrub reported errors")

2021-04-01 Thread Paul E. McKenney
On Thu, Apr 01, 2021 at 08:18:54PM +0200, Borislav Petkov wrote: > Hey Paul, > > On Thu, Apr 01, 2021 at 09:17:40AM -0700, Paul E. McKenney wrote: > > Hello! > > > > We are looking at backporting fd258dc4442c ("x86/mce: Add Skylake quirk > > for patrol scrub reported errors") to v5.6. When accom

Re: [PATCH RESEND 0/3] x86/sgx: eextend ioctl

2021-04-01 Thread Dave Hansen
On 4/1/21 10:49 AM, Raoul Strackx wrote: > On 4/1/21 6:11 PM, Dave Hansen wrote: >> On 4/1/21 7:56 AM, Raoul Strackx wrote: >>> SOLUTION OF THIS PATCH >>> This patch adds a new ioctl to enable userspace to execute EEXTEND leaf >>> functions per 256 bytes of enclave memory. This enables enclaves to

[PATCH v2] phy: hisilicon: Use the correct HiSilicon copyright

2021-04-01 Thread Hao Fang
s/Hisilicon/HiSilicon/g. It should use capital S, according to the official website. Signed-off-by: Hao Fang --- V2: - remove the terms of use link. --- drivers/phy/hisilicon/phy-hi6220-usb.c | 2 +- drivers/phy/hisilicon/phy-hix5hd2-sata.c | 2 +- 2 files changed, 2 insertions(+), 2 deletion

[PATCH v2] dmaengine: k3dma: use the correct HiSilicon copyright

2021-04-01 Thread Hao Fang
s/Hisilicon/HiSilicon/g. It should use capital S, according to the official website. Signed-off-by: Hao Fang --- V2: -remove the terms of use link. --- drivers/dma/k3dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index d0b

Re: [RFC PATCH v1 3/4] arm64: Detect FTRACE cases that make the stack trace unreliable

2021-04-01 Thread Madhavan T. Venkataraman
On 4/1/21 1:28 PM, Mark Brown wrote: > On Thu, Apr 01, 2021 at 12:43:25PM -0500, Madhavan T. Venkataraman wrote: > +#ifdef CONFIG_DYNAMIC_FTRACE_WITH_REGS + { (unsigned long) &ftrace_graph_call, 0 }, +#ifdef CONFIG_FUNCTION_GRAPH_TRACER + { (unsigned long) ftrace_graph_cal

RE: Race condition in Kernel

2021-04-01 Thread Gulam Mohamed
Hi Ming, Thanks for taking a look into this. Can you please see my inline comments in below mail? Regards, Gulam Mohamed. -Original Message- From: Ming Lei Sent: Thursday, March 25, 2021 7:16 AM To: Gulam Mohamed Cc: h...@infradead.org; linux-kernel@vger.kernel.org; linux-bl..

[PATCH 04/10] mm/migrate: make migrate_pages() return nr_succeeded

2021-04-01 Thread Dave Hansen
From: Yang Shi The migrate_pages() returns the number of pages that were not migrated, or an error code. When returning an error code, there is no way to know how many pages were migrated or not migrated. In the following patch, migrate_pages() is used to demote pages to PMEM node, we need ac

Re: [PATCH] ASoC: Intel: Fix a typo

2021-04-01 Thread Mark Brown
On Mon, 22 Mar 2021 12:20:53 +0530, Bhaskar Chowdhury wrote: > s/struture/structure/ Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: Intel: Fix a typo commit: ebf721fbbb6e077864783c8d0146021815bb1f24 All being well this means t

Re: [PATCH 1/1] ASoC: intel, keembay-i2s: Fix a dt_binding_check warning

2021-04-01 Thread Mark Brown
On Mon, 29 Mar 2021 16:14:35 +0800, Zhen Lei wrote: > The property "dmas" contains two items: DMA "TX" and "RX" channel, > Therefore, its value also needs to be written in two parts. > > Otherwise, below YAML check warning is reported: > Documentation/devicetree/bindings/sound/intel,keembay-i2s.ex

Re: Fix hibernation in FIPS mode?

2021-04-01 Thread Ard Biesheuvel
On Thu, 1 Apr 2021 at 15:38, Rafael J. Wysocki wrote: > > On Thu, Apr 1, 2021 at 10:47 AM Ard Biesheuvel wrote: > > > > On Tue, 30 Mar 2021 at 21:56, Simo Sorce wrote: > > > > > > On Tue, 2021-03-30 at 21:45 +0200, Ard Biesheuvel wrote: > > > > On Tue, 30 Mar 2021 at 20:05, Simo Sorce wrote: >

Re: [PATCH] iio: adc: bcm_iproc_adc: Use %s and __func__

2021-04-01 Thread Jonathan Cameron
On Thu, 1 Apr 2021 20:22:47 +0530 Mugilraj D wrote: > On 01/04/21 4:00 pm, Jonathan Cameron wrote: > > On Thu, 1 Apr 2021 12:24:50 +0300 > > Andy Shevchenko wrote: > > > >> On Thu, Apr 1, 2021 at 9:27 AM Mugilraj Dhavachelvan > >> wrote: > >>> > >>> Change function's name to %s and __func_

Re: [PATCH v1] arm64: dts: qcom: sm8350: Add support for PRNG EE

2021-04-01 Thread Vinod Koul
On 01-04-21, 12:15, Robert Foss wrote: > RNG (Random Number Generator) in SM8350 features PRNG EE (Execution > Environment), hence add devicetree support for it. Reviewed-by: Vinod Koul -- ~Vinod

Re: [PATCH v1 3/7] PCI: New Primary to Sideband (P2SB) bridge support library

2021-04-01 Thread Bjorn Helgaas
On Thu, Apr 01, 2021 at 09:23:04PM +0300, Andy Shevchenko wrote: > On Thu, Apr 01, 2021 at 11:42:56AM -0500, Bjorn Helgaas wrote: > > On Thu, Apr 01, 2021 at 06:45:02PM +0300, Andy Shevchenko wrote: > > > On Tue, Mar 09, 2021 at 09:42:52AM +0100, Henning Schild wrote: > > > > Am Mon, 8 Mar 2021 19:

Re: [PATCH 1/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-01 Thread Eric Biggers
On Thu, Apr 01, 2021 at 06:19:57PM +0200, Rafael J. Wysocki wrote: > On Thu, Apr 1, 2021 at 3:59 PM Ard Biesheuvel wrote: > > > > On Thu, 1 Apr 2021 at 15:34, Rafael J. Wysocki wrote: > > > > > > On Thu, Apr 1, 2021 at 2:25 PM Chris von Recklinghausen > > > wrote: > > > > > > > > Suspend fails o

Re: [PATCH v3 3/3] gpio: xilinx: Utilize generic bitmap_get_value and _set_value

2021-04-01 Thread Syed Nayyar Waris
On Mon, Mar 29, 2021 at 8:54 PM Andy Shevchenko wrote: > > On Sat, Mar 06, 2021 at 07:36:30PM +0530, Syed Nayyar Waris wrote: > > This patch reimplements the xgpio_set_multiple() function in > > drivers/gpio/gpio-xilinx.c to use the new generic functions: > > bitmap_get_value() and bitmap_set_valu

Backporting to v5.6: fd258dc4442c ("x86/mce: Add Skylake quirk for patrol scrub reported errors")

2021-04-01 Thread Paul E. McKenney
Hello! We are looking at backporting fd258dc4442c ("x86/mce: Add Skylake quirk for patrol scrub reported errors") to v5.6. When accompanied by these guys, it passes our usual kernel smoke-testing: 1df73b2131e3 ("x86/mce: Fixup exception only for the correct MCEs") 1de08dccd383 ("x86/mce: Add a s

Re: [PATCH 1/2] ASoC: codecs: lpass-tx-macro: set npl clock rate correctly

2021-04-01 Thread Mark Brown
On Wed, 31 Mar 2021 18:12:34 +0100, Srinivas Kandagatla wrote: > NPL clock rate is twice the MCLK rate, so set this correctly to > avoid soundwire timeouts. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/2] ASoC: codecs: lpass-tx-macro: set n

[PATCH v2 2/2] iommu: Streamline registration interface

2021-04-01 Thread Robin Murphy
Rather than have separate opaque setter functions that are easy to overlook and lead to repetitive boilerplate in drivers, let's pass the relevant initialisation parameters directly to iommu_device_register(). Acked-by: Will Deacon Signed-off-by: Robin Murphy --- v2: Add some kerneldoc and an

[PATCH v2 1/2] iommu: Statically set module owner

2021-04-01 Thread Robin Murphy
It happens that the 3 drivers which first supported being modular are also ones which play games with their pgsize_bitmap, so have non-const iommu_ops where dynamically setting the owner manages to work out OK. However, it's less than ideal to force that upon all drivers which want to be modular -

Re: [PATCH 2/3] tracing: Use pr_crit() instead of long fancy messages

2021-04-01 Thread Robin Murphy
On 2021-04-01 10:39, Geert Uytterhoeven wrote: Hi Steven, On Wed, Mar 31, 2021 at 3:40 PM Steven Rostedt wrote: On Wed, 31 Mar 2021 11:31:03 +0200 Geert Uytterhoeven wrote: This reduces kernel size by ca. 0.5 KiB. If you are worried about size, disable tracing and it will go away entirely

Re: [PATCH 0/1] use crc32 instead of md5 for hibernation e820 integrity check

2021-04-01 Thread Christophe Leroy
Le 01/04/2021 à 14:24, Chris von Recklinghausen a écrit : Currently, suspend on x86_64 fails when FIPS mode is enabled because it uses md5 to generate a digest of the e820 region. MD5 is not FIPS compliant so an error is reported and the suspend fails. MD5 is used only to create a digest to e

Re: [PATCH 1/2] soundwire: add macro to selectively change error levels

2021-04-01 Thread Pierre-Louis Bossart
My bigger issue with this is that this macro is crazy. Why do you need debugging here at all for this type of thing? That's what ftrace is for, do not sprinkle code with "we got this return value from here!" all over the place like what this does. We are not sprinkling the code all over the

[PATCH v14 5/6] locking/qspinlock: Avoid moving certain threads between waiting queues in CNA

2021-04-01 Thread Alex Kogan
Prohibit moving certain threads (e.g., in irq and nmi contexts) to the secondary queue. Those prioritized threads will always stay in the primary queue, and so will have a shorter wait time for the lock. Signed-off-by: Alex Kogan Reviewed-by: Steve Sistare Reviewed-by: Waiman Long --- kernel/l

[PATCH 06/10] mm/vmscan: add page demotion counter

2021-04-01 Thread Dave Hansen
From: Yang Shi Account the number of demoted pages into reclaim_state->nr_demoted. Add pgdemote_kswapd and pgdemote_direct VM counters showed in /proc/vmstat. [ daveh: - __count_vm_events() a bit, and made them look at the THP size directly rather than getting data from migrate_pages(

Re: [PATCH] PCI: merge slot and bus reset implementations

2021-04-01 Thread Leon Romanovsky
On Thu, Apr 01, 2021 at 05:37:16AM +, Raphael Norwitz wrote: > Slot resets are bus resets with additional logic to prevent a device > from being removed during the reset. Currently slot and bus resets have > separate implementations in pci.c, complicating higher level logic. As > discussed on t

Re: [PATCH] linux/spi: Remove repeated struct declaration

2021-04-01 Thread Mark Brown
On Thu, 1 Apr 2021 14:59:04 +0800, Wan Jiabing wrote: > struct spi_transfer is declared twice. One is declared at 24th line. > The blew one is not needed though. Remove the duplicate. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1] linux/spi:

Re: Fix hibernation in FIPS mode?

2021-04-01 Thread Ard Biesheuvel
On Thu, 1 Apr 2021 at 15:54, Chris von Recklinghausen wrote: > > On 4/1/21 9:38 AM, Rafael J. Wysocki wrote: > > On Thu, Apr 1, 2021 at 10:47 AM Ard Biesheuvel wrote: > >> On Tue, 30 Mar 2021 at 21:56, Simo Sorce wrote: > >>> On Tue, 2021-03-30 at 21:45 +0200, Ard Biesheuvel wrote: > On Tue

Re: [PATCH] torture: Correctly fetch CPUs for kvm-build.sh with all native language

2021-04-01 Thread Paul E. McKenney
On Thu, Apr 01, 2021 at 03:26:02PM +0200, Frederic Weisbecker wrote: > Grepping for "CPU" on lscpu output isn't always successful, depending > on the local language setting. As a result, the build can be aborted > early with: > > "make: the '-j' option requires a positive integer argument" >

Re: [PATCH v3 3/3] gpio: xilinx: Utilize generic bitmap_get_value and _set_value

2021-04-01 Thread Syed Nayyar Waris
On Sat, Mar 27, 2021 at 10:05 PM Andy Shevchenko wrote: > > On Sat, Mar 27, 2021 at 2:02 PM William Breathitt Gray > wrote: > > On Sat, Mar 27, 2021 at 09:29:26AM +0200, Andy Shevchenko wrote: > > > On Saturday, March 27, 2021, Syed Nayyar Waris > > > wrote: > > > > On Fri, Mar 26, 2021 at 11:3

Re: [RFC PATCH v1 3/4] arm64: Detect FTRACE cases that make the stack trace unreliable

2021-04-01 Thread Madhavan T. Venkataraman
On 4/1/21 1:40 PM, Madhavan T. Venkataraman wrote: >>> So, it is only defined if CONFIG_FUNCTION_GRAPH_TRACER is defined. I can >>> address >>> this as well as your comment by defining another label whose name is more >>> meaningful >>> to our use: >>> +SYM_INNER_LABEL(ftrace_trampoline, SYM_L

[PATCH 10/10] mm/migrate: new zone_reclaim_mode to enable reclaim migration

2021-04-01 Thread Dave Hansen
From: Dave Hansen Some method is obviously needed to enable reclaim-based migration. Just like traditional autonuma, there will be some workloads that will benefit like workloads with more "static" configurations where hot pages stay hot and cold pages stay cold. If pages come and go from the

[PATCH 00/10] [v7][RESEND] Migrate Pages in lieu of discard

2021-04-01 Thread Dave Hansen
I'm resending this because I forgot to cc the mailing lists on the post yesterday. Sorry for the noise. Please reply to this series. The full series is also available here: https://github.com/hansendc/linux/tree/automigrate-20210331 which also inclues some vm.zone_reclaim_mode sysctl A

[PATCH 03/10] mm/migrate: update node demotion order during on hotplug events

2021-04-01 Thread Dave Hansen
From: Dave Hansen Reclaim-based migration is attempting to optimize data placement in memory based on the system topology. If the system changes, so must the migration ordering. The implementation is conceptually simple and entirely unoptimized. On any memory or CPU hotplug events, assume tha

[PATCH 02/10] mm/numa: automatically generate node migration order

2021-04-01 Thread Dave Hansen
From: Dave Hansen When memory fills up on a node, memory contents can be automatically migrated to another node. The biggest problems are knowing when to migrate and to where the migration should be targeted. The most straightforward way to generate the "to where" list would be to follow the

Re: [syzbot] WARNING in ieee802154_del_seclevel

2021-04-01 Thread Alan Stern
On Wed, Mar 31, 2021 at 02:03:08PM -0700, syzbot wrote: > syzbot has bisected this issue to: > > commit 416dacb819f59180e4d86a5550052033ebb6d72c > Author: Alan Stern > Date: Wed Aug 21 17:27:12 2019 + > > HID: hidraw: Fix invalid read in hidraw_ioctl > > bisection log: https://syzkal

[PATCH 1/3] MAINTAINERS: Adjust Dell drivers to email alias

2021-04-01 Thread Mario Limonciello
A team of engineers will be helping to service these drivers in the future rather than just one person. Signed-off-by: Mario Limonciello --- MAINTAINERS | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 6e91994b8d3b..46c8fadb59c3 100

Re: [PATCH v2 2/6] dt-bindings: soc: actions: Add Actions Semi Owl socinfo binding

2021-04-01 Thread Cristian Ciocaltea
On Thu, Apr 01, 2021 at 12:08:18PM -0500, Rob Herring wrote: > On Tue, Mar 30, 2021 at 04:48:17PM +0300, Cristian Ciocaltea wrote: > > Add devicetree binding for the Actions Semi Owl socinfo driver. > > > > Signed-off-by: Cristian Ciocaltea > > --- > > .../bindings/soc/actions/owl-socinfo.yaml

[PATCH] audit: drop /proc/PID/loginuid documentation Format field

2021-04-01 Thread Richard Guy Briggs
Drop the "Format:" field from the /proc/PID/loginuid documentation and integrate the information into the Description field since it is not recognized by the "./scripts/get_abi.pl validate" command which causes a warning. Documentation/ABI/README describes the valid fields. Reported-by: Mauro Car

Re: [PATCH -next] IB/srpt: Fix passing zero to 'PTR_ERR'

2021-04-01 Thread Bart Van Assche
On 3/24/21 7:09 AM, YueHaibing wrote: Fix smatch warning: drivers/infiniband/ulp/srpt/ib_srpt.c:2341 srpt_cm_req_recv() warn: passing zero to 'PTR_ERR' Use PTR_ERR_OR_ZERO instead of PTR_ERR Fixes: 847462de3a0a ("IB/srpt: Fix srpt_cm_req_recv() error path (1/2)") Signed-off-by: YueHaibing --

Re: [PATCH] iio: adc: stm32-dfsdm: drop __func__ while using Dynamic debug

2021-04-01 Thread Andy Shevchenko
On Thu, Apr 1, 2021 at 8:48 PM Mugilraj Dhavachelvan wrote: > > dropped __func__ while using dev_dbg() and pr_debug() The commit message may be amended, from code perspective LGTM! Reviewed-by: Andy Shevchenko > Signed-off-by: Mugilraj Dhavachelvan > --- > drivers/iio/adc/stm32-dfsdm-adc.c |

Re: [PATCH v4 7/8] KVM: arm64: vgic-v3: Expose GICR_TYPER.Last for userspace

2021-04-01 Thread Auger Eric
Hi Marc, On 4/1/21 7:30 PM, Marc Zyngier wrote: > On Thu, 01 Apr 2021 18:03:25 +0100, > Auger Eric wrote: >> >> Hi Marc, >> >> On 4/1/21 3:42 PM, Marc Zyngier wrote: >>> Hi Eric, >>> >>> On Thu, 01 Apr 2021 09:52:37 +0100, >>> Eric Auger wrote: Commit 23bde34771f1 ("KVM: arm64: vgic-v3

Re: [PATCH v14 00/13] s390/vfio-ap: dynamic configuration support

2021-04-01 Thread Halil Pasic
On Wed, 31 Mar 2021 11:22:43 -0400 Tony Krowiak wrote: > Change log v13-v14: > -- When testing I've experienced this kernel panic. [ 4422.479706] vfio_ap matrix: MDEV: Registered [ 4422.516999] vfio_mdev b2013234-18b2-49bf-badd-a4be9c78b120: Adding to iommu group 1 [ 4422.5170

Re: [PATCH] init: add support for zstd compressed modules

2021-04-01 Thread Nick Terrell
> On Apr 1, 2021, at 12:54 AM, torv...@mailbox.org wrote: > > Thanks Piotr, good work! > Question: Is `-T0` really faster in this particular case than the default > `-T1`? Are modules installed sequentially? The zstd CLI produces deterministic output regardless of the number of threads used.

Re: [External] Re: [PATCH 31/32] Documentation: update sysfs-platform_profile.rst reference

2021-04-01 Thread Hans de Goede
Hi, On 4/1/21 5:07 PM, Mark Pearson wrote: > > > On 01/04/2021 09:49, Hans de Goede wrote: >> Hi, >> >> On 4/1/21 2:17 PM, Mauro Carvalho Chehab wrote: >>> The file name: Documentation/ABI/testing/sysfs-platform_profile.rst >>> should be, instead: Documentation/userspace-api/sysfs-platform_profi

[PATCH net] atl1c: move tx cleanup processing out of interrupt

2021-04-01 Thread Gatis Peisenieks
Tx queue cleanup happens in interrupt handler on same core as rx queue processing. Both can take considerable amount of processing in high packet-per-second scenarios. Sending big amounts of packets can stall the rx processing which is unfair and also can lead to to out-of-memory condition sin

Re: [PATCH v2 20/28] KVM: x86/mmu: Use atomic ops to set SPTEs in TDP MMU map

2021-04-01 Thread Sean Christopherson
On Thu, Apr 01, 2021, Paolo Bonzini wrote: > On 01/04/21 18:50, Ben Gardon wrote: > > > retry: > > > if (is_shadow_present_pte(iter.old_spte)) { > > > if (is_large_pte(iter.old_spte)) { > > > if (!tdp_mmu_zap_spte_atomic(vc

[PATCH 2/3] MAINTAINERS: Add missing section for alienware-wmi driver

2021-04-01 Thread Mario Limonciello
This driver is maintained by Dell, but it was missing in MAINTAINERS. Signed-off-by: Mario Limonciello --- MAINTAINERS | 5 + drivers/platform/x86/dell/alienware-wmi.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINER

Re: [PATCH net-next v4] net: x25: Queue received packets in the drivers instead of per-CPU queues

2021-04-01 Thread Xie He
On Thu, Apr 1, 2021 at 3:06 AM Martin Schiller wrote: > > Hi! > > Sorry for my late answer. > Can you please also fix this line length warning? > https://patchwork.hopto.org/static/nipa/442445/12117801/checkpatch/stdout OK! Sure! I'll fix the line length warning and resubmit. Thanks!

[PATCH 0/5] 4.14 backports of fixes for "CoW after fork() issue"

2021-04-01 Thread Suren Baghdasaryan
We received a report that the copy-on-write issue repored by Jann Horn in https://bugs.chromium.org/p/project-zero/issues/detail?id=2045 is still reproducible on 4.14 and 4.19 kernels (the first issue with the reproducer coded in vmsplice.c). I confirmed this and also that the issue was not reprodu

[PATCH 1/5] mm: reuse only-pte-mapped KSM page in do_wp_page()

2021-04-01 Thread Suren Baghdasaryan
From: Kirill Tkhai Add an optimization for KSM pages almost in the same way that we have for ordinary anonymous pages. If there is a write fault in a page, which is mapped to an only pte, and it is not related to swap cache; the page may be reused without copying its content. [ Note that we do

[PATCH 2/5] mm: do_wp_page() simplification

2021-04-01 Thread Suren Baghdasaryan
From: Linus Torvalds How about we just make sure we're the only possible valid user fo the page before we bother to reuse it? Simplify, simplify, simplify. And get rid of the nasty serialization on the page lock at the same time. [peterx: add subject prefix] Signed-off-by: Linus Torvalds Sig

[PATCH 3/5] mm: fix misplaced unlock_page in do_wp_page()

2021-04-01 Thread Suren Baghdasaryan
From: Linus Torvalds Commit 09854ba94c6a ("mm: do_wp_page() simplification") reorganized all the code around the page re-use vs copy, but in the process also moved the final unlock_page() around to after the wp_page_reuse() call. That normally doesn't matter - but it means that the unlock_page()

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

2021-04-01 Thread Suren Baghdasaryan
From: Nadav Amit Userfaultfd self-test fails occasionally, indicating a memory corruption. Analyzing this problem indicates that there is a real bug since mmap_lock is only taken for read in mwriteprotect_range() and defers flushes, and since there is insufficient consideration of concurrent def

[PATCH 4/5] userfaultfd: wp: add helper for writeprotect check

2021-04-01 Thread Suren Baghdasaryan
From: Shaohua Li Patch series "userfaultfd: write protection support", v6. Overview The uffd-wp work was initialized by Shaohua Li [1], and later continued by Andrea [2]. This series is based upon Andrea's latest userfaultfd tree, and it is a continuous works from both Shaohua and And

[GIT PULL] KVM changes for Linux 5.12-rc6

2021-04-01 Thread Paolo Bonzini
Linus, The following changes since commit a5e13c6df0e41702d2b2c77c8ad41677ebb065b3: Linux 5.12-rc5 (2021-03-28 15:48:16 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to 55626ca9c6909d077eca71bccbe15

[PATCH 0/5] 4.19 backports of fixes for "CoW after fork() issue"

2021-04-01 Thread Suren Baghdasaryan
We received a report that the copy-on-write issue repored by Jann Horn in https://bugs.chromium.org/p/project-zero/issues/detail?id=2045 is still reproducible on 4.14 and 4.19 kernels (the first issue with the reproducer coded in vmsplice.c). I confirmed this and also that the issue was not reprodu

[PATCH 2/5] mm: do_wp_page() simplification

2021-04-01 Thread Suren Baghdasaryan
From: Linus Torvalds How about we just make sure we're the only possible valid user fo the page before we bother to reuse it? Simplify, simplify, simplify. And get rid of the nasty serialization on the page lock at the same time. [peterx: add subject prefix] Signed-off-by: Linus Torvalds Sig

[PATCH 1/5] mm: reuse only-pte-mapped KSM page in do_wp_page()

2021-04-01 Thread Suren Baghdasaryan
From: Kirill Tkhai Add an optimization for KSM pages almost in the same way that we have for ordinary anonymous pages. If there is a write fault in a page, which is mapped to an only pte, and it is not related to swap cache; the page may be reused without copying its content. [ Note that we do

[PATCH 3/5] mm: fix misplaced unlock_page in do_wp_page()

2021-04-01 Thread Suren Baghdasaryan
From: Linus Torvalds Commit 09854ba94c6a ("mm: do_wp_page() simplification") reorganized all the code around the page re-use vs copy, but in the process also moved the final unlock_page() around to after the wp_page_reuse() call. That normally doesn't matter - but it means that the unlock_page()

[PATCH 4/5] userfaultfd: wp: add helper for writeprotect check

2021-04-01 Thread Suren Baghdasaryan
From: Shaohua Li Patch series "userfaultfd: write protection support", v6. Overview The uffd-wp work was initialized by Shaohua Li [1], and later continued by Andrea [2]. This series is based upon Andrea's latest userfaultfd tree, and it is a continuous works from both Shaohua and And

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

2021-04-01 Thread Suren Baghdasaryan
From: Nadav Amit Userfaultfd self-test fails occasionally, indicating a memory corruption. Analyzing this problem indicates that there is a real bug since mmap_lock is only taken for read in mwriteprotect_range() and defers flushes, and since there is insufficient consideration of concurrent def

Re: [PATCH v3 05/25] x86/sgx: Introduce virtual EPC for use by KVM guests

2021-04-01 Thread Borislav Petkov
On Thu, Apr 01, 2021 at 01:20:39AM +1300, Kai Huang wrote: > Could you help to review whether below change is OK? I ended up applying this: --- From: Sean Christopherson Date: Fri, 19 Mar 2021 20:22:21 +1300 Subject: [PATCH] x86/sgx: Introduce virtual EPC for use by KVM guests Add a misc device

Re: [PATCH] psi: allow unprivileged users with CAP_SYS_RESOURCE to write psi files

2021-04-01 Thread Josh Hunt
On 4/1/21 10:47 AM, Eric W. Biederman wrote: Kees Cook writes: On Wed, Mar 31, 2021 at 11:36:28PM -0500, Eric W. Biederman wrote: Josh Hunt writes: Currently only root can write files under /proc/pressure. Relax this to allow tasks running as unprivileged users with CAP_SYS_RESOURCE to be

[PATCH v6 2/7] powercap/drivers/dtpm: Create a registering system

2021-04-01 Thread Daniel Lezcano
A SoC can be differently structured depending on the platform and the kernel can not be aware of all the combinations, as well as the specific tweaks for a particular board. The creation of the hierarchy must be delegated to userspace. These changes provide a registering mechanism where the diffe

[PATCH v6 1/7] powercap/drivers/dtpm: Encapsulate even more the code

2021-04-01 Thread Daniel Lezcano
In order to increase the self-encapsulation of the dtpm generic code, the following changes are adding a power update ops to the dtpm ops. That allows the generic code to call directly the dtpm backend function to update the power values. The power update function does compute the power characteri

[PATCH v6 3/7] powercap/drivers/dtpm: Simplify the dtpm table

2021-04-01 Thread Daniel Lezcano
The dtpm table is an array of pointers, that forces the user of the table to define initdata along with the declaration of the table entry. It is more efficient to create an array of dtpm structure, so the declaration of the table entry can be done by initializing the different fields. Signed-off-

<    5   6   7   8   9   10   11   12   13   14   >