[PATCH v4 6/6] docs: device-mapper: 'noexcl' option for dm-linear

2021-02-03 Thread Sergei Shtepa
New 'noexcl' option allow to open underlying block-device without FMODE_EXCL flag. Signed-off-by: Sergei Shtepa --- .../admin-guide/device-mapper/linear.rst | 26 --- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git

[PATCH v4 3/6] block: add blk_mq_is_queue_frozen()

2021-02-03 Thread Sergei Shtepa
blk_mq_is_queue_frozen() allow to assert that the queue is frozen. Signed-off-by: Sergei Shtepa --- block/blk-mq.c | 13 + include/linux/blk-mq.h | 1 + 2 files changed, 14 insertions(+) diff --git a/block/blk-mq.c b/block/blk-mq.c index f285a9123a8b..924ec26fae5f 100644

[PATCH v4 0/6] block-layer interposer

2021-02-03 Thread Sergei Shtepa
Hi all. I'm ready to suggest the block-layer interposer (blk_interposer). blk_interposer allows to intercept bio requests, remap bio to another devices or add new bios. This patch series adds support blk_interposer for dm-linear. In the first patch, I suggest the remap_and_filter.rst file. Yes,

[PATCH v4 2/6] block: add blk_interposer

2021-02-03 Thread Sergei Shtepa
blk_interposer allows to intercept bio requests, remap bio to another devices or add new bios. Signed-off-by: Sergei Shtepa --- block/bio.c | 2 + block/blk-core.c | 33 block/genhd.c | 82 +++

[PATCH v4 4/6] dm: new ioctl DM_DEV_REMAP_CMD

2021-02-03 Thread Sergei Shtepa
New ioctl DM_DEV_REMAP_CMD allow to remap bio requests from regular block device to dm device. Signed-off-by: Sergei Shtepa --- drivers/md/dm-core.h | 20 ++ drivers/md/dm-ioctl.c | 39 drivers/md/dm.c | 376 +-

[PATCH v4 1/6] docs: device-mapper: add remap_and_filter

2021-02-03 Thread Sergei Shtepa
remap_and_filter - describes the new features that blk_interposer provides for device mapper. Signed-off-by: Sergei Shtepa --- .../admin-guide/device-mapper/index.rst | 1 + .../device-mapper/remap_and_filter.rst| 132 ++ 2 files changed, 133 insertions(+)

[PATCH v4 5/6] dm: add 'noexcl' option for dm-linear

2021-02-03 Thread Sergei Shtepa
The 'noexcl' option allow to open underlying block-device without FMODE_EXCL. Signed-off-by: Sergei Shtepa --- drivers/md/dm-linear.c| 14 +- drivers/md/dm-table.c | 12 +++- drivers/md/dm.c | 24 +--- drivers/md/dm.h

Re: [PATCH 3/3] dt-bindings: Fix errors in 'if' schemas

2021-02-03 Thread Geert Uytterhoeven
Hi Rob, On Wed, Feb 3, 2021 at 4:55 PM Rob Herring wrote: > On Wed, Feb 03, 2021 at 09:01:23AM +0100, Geert Uytterhoeven wrote: > > On Tue, Feb 2, 2021 at 9:55 PM Rob Herring wrote: > > > Properties in if/then schemas weren't getting checked by the meta-schemas. > > > Enabling meta-schema

Re: [PATCH 06/11] x86/fault: Improve kernel-executing-user-memory handling

2021-02-03 Thread Borislav Petkov
On Mon, Feb 01, 2021 at 05:00:37PM -0800, Andy Lutomirski wrote: > I defer to Boris as to exactly what condition we should check here. Same as for erratum #91: https://lkml.kernel.org/r/20210201203146.gc14...@zn.tnic A single helper containing that check is probably a good idea. Thx. --

Re: [PATCH v4 4/6] dm: new ioctl DM_DEV_REMAP_CMD

2021-02-03 Thread Greg KH
On Wed, Feb 03, 2021 at 06:53:56PM +0300, Sergei Shtepa wrote: > --- a/include/uapi/linux/dm-ioctl.h > +++ b/include/uapi/linux/dm-ioctl.h > @@ -214,6 +214,15 @@ struct dm_target_msg { > char message[0]; > }; > > +enum { > + REMAP_START_CMD = 1, > + REMAP_FINISH_CMD, Don't you

Re: [PATCH 2/2] leds: lp50xx: remove unused regulator

2021-02-03 Thread Dan Murphy
Pavel On 2/3/21 8:23 AM, Pavel Machek wrote: On Wed 2021-02-03 07:49:35, Dan Murphy wrote: Pavel On 2/3/21 3:02 AM, Pavel Machek wrote: On Wed 2021-02-03 08:34:08, Sven Schuchmann wrote: The regulator for vled-supply is unused in the driver. It is just assigned from DT and disabled in

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

2021-02-03 Thread David Ahern
On 2/2/21 11:56 AM, Andrea Mayer wrote: > diff --git a/net/ipv6/seg6_local.c b/net/ipv6/seg6_local.c > index b07f7c1c82a4..7cc50d506902 100644 > --- a/net/ipv6/seg6_local.c > +++ b/net/ipv6/seg6_local.c > @@ -31,6 +31,9 @@ > #include > #include > > +#define SEG6_F_ATTR(i)

Re: [RFC PATCH v2 24/26] KVM: arm64: Make memcache anonymous in pgtable allocator

2021-02-03 Thread Will Deacon
On Fri, Jan 08, 2021 at 12:15:22PM +, Quentin Perret wrote: > The current stage2 page-table allocator uses a memcache to get > pre-allocated pages when it needs any. To allow re-using this code at > EL2 which uses a concept of memory pools, make the memcache argument to >

Re: [PATCH] x86/fpu: Use consistent test for X86_FEATURE_XSAVES

2021-02-03 Thread Borislav Petkov
On Wed, Feb 03, 2021 at 07:40:07AM -0800, Dave Hansen wrote: > On 2/3/21 3:23 AM, Borislav Petkov wrote: > >> -/* > >> - * 'XSAVES' implies two different things: > >> - * 1. saving of supervisor/system state > >> - * 2. using the compacted format > >> - * > >> - * Use this function when dealing

Re: [PATCH v3] kdb: kdb_support: Fix debugging information problem

2021-02-03 Thread Doug Anderson
Hi, On Wed, Feb 3, 2021 at 3:31 AM Stephen Zhang wrote: > > Doug Anderson 于2021年2月3日周三 上午1:40写道: >> >> kdb_dbg_printf(AR, "returns [...] (%s)\n", >>ret, symtab->sym_start, [...], symtab->sym_name); > > > Thank you for the detailed explanation. In this case, Shouldn't the "ret" be >

Re: [PATCH] fs/btrfs: Fix raid6 qstripe kmap'ing

2021-02-03 Thread David Sterba
On Wed, Jan 27, 2021 at 10:15:03PM -0800, ira.we...@intel.com wrote: > From: Ira Weiny > > When a qstripe is required an extra page is allocated and mapped. There > were 3 problems. > > 1) There is no reason to map the qstripe page more than 1 time if the >number of bits set in

Re: [RFC PATCH v2 23/26] KVM: arm64: Refactor __populate_fault_info()

2021-02-03 Thread Will Deacon
On Fri, Jan 08, 2021 at 12:15:21PM +, Quentin Perret wrote: > Refactor __populate_fault_info() to introduce __get_fault_info() which > will be used once the host is wrapped in a stage 2. > > Signed-off-by: Quentin Perret > --- > arch/arm64/kvm/hyp/include/hyp/switch.h | 36

[RFC PATCH 0/2] sched/topology: Get rid of overlapping groups

2021-02-03 Thread Valentin Schneider
Hi folks, My keyboard still hasn't been taken away from me, so I went down and did what I was rambling about in [1]. The preemptive degeneration check is the worst wart, but I think I'll have to sleep on it before I can figure out a better way. Something tells me the increase in group numbers

Re: [PATCH v2] x86/apic/of: Fix CPU devicetree-node lookups

2021-02-03 Thread Johan Hovold
On Thu, Dec 10, 2020 at 02:39:10PM +0100, Johan Hovold wrote: > Architectures that describe the CPU topology in devicetree and that do > not have an identity mapping between physical and logical CPU ids need > to override the default implementation of arch_match_cpu_phys_id(). > > Failing to do

[RFC PATCH 2/2] Revert "sched/topology: Warn when NUMA diameter > 2"

2021-02-03 Thread Valentin Schneider
The scheduler topology code can now figure out what to do with such topologies. This reverts commit b5b217346de85ed1b03fdecd5c5076b34fbb2f0b. Signed-off-by: Valentin Schneider --- kernel/sched/topology.c | 33 - 1 file changed, 33 deletions(-) diff --git

Re: [RFC PATCH v2 22/26] KVM: arm64: Refactor __load_guest_stage2()

2021-02-03 Thread Will Deacon
On Fri, Jan 08, 2021 at 12:15:20PM +, Quentin Perret wrote: > Refactor __load_guest_stage2() to introduce __load_stage2() which will > be re-used when loading the host stage 2. > > Signed-off-by: Quentin Perret > --- > arch/arm64/include/asm/kvm_mmu.h | 9 +++-- > 1 file changed, 7

Re: [PATCH 3/3] dt-bindings: Fix errors in 'if' schemas

2021-02-03 Thread Rob Herring
On Wed, Feb 03, 2021 at 09:01:23AM +0100, Geert Uytterhoeven wrote: > Hi Rob, > > On Tue, Feb 2, 2021 at 9:55 PM Rob Herring wrote: > > Properties in if/then schemas weren't getting checked by the meta-schemas. > > Enabling meta-schema checks finds several errors. > > > > The use of an 'items'

[RFC PATCH 1/2] sched/topology: Get rid of NUMA overlapping groups

2021-02-03 Thread Valentin Schneider
As pointed out in commit b5b217346de8 ("sched/topology: Warn when NUMA diameter > 2") overlapping groups result in broken topology data structures whenever the underlying system has a NUMA diameter greater than 2. This stems from overlapping groups being built from sibling domain's spans,

Re: [PATCH v6] modules: introduce the MODULE_SCMVERSION config

2021-02-03 Thread Greg Kroah-Hartman
On Wed, Feb 03, 2021 at 04:46:16PM +0100, Jessica Yu wrote: > +++ Will McVicker [21/01/21 21:36 +]: > > Config MODULE_SCMVERSION introduces a new module attribute -- > > `scmversion` -- which can be used to identify a given module's SCM > > version. This is very useful for developers that

Re: [RFC PATCH v2 21/26] KVM: arm64: Refactor kvm_arm_setup_stage2()

2021-02-03 Thread Will Deacon
On Fri, Jan 08, 2021 at 12:15:19PM +, Quentin Perret wrote: > In order to re-use some of the stage 2 setup at EL2, factor parts of > kvm_arm_setup_stage2() out into static inline functions. > > No functional change intended. > > Signed-off-by: Quentin Perret > --- >

[RFC PATCH 3/2] sched/topology: Alternative diameter >= 2 fixup

2021-02-03 Thread Valentin Schneider
This follows Barry's approach, which yields fewer groups in the higher domains. Signed-off-by: Valentin Schneider --- kernel/sched/topology.c | 42 +++-- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/kernel/sched/topology.c

Re: [PATCH] platform/x86/intel-uncore-freq: Add Sapphire Rapids server support

2021-02-03 Thread Srinivas Pandruvada
On Wed, 2021-02-03 at 13:43 +0200, Artem Bityutskiy wrote: > From: Artem Bityutskiy > > Sapphire Rapids uncore frequency control is the same as Skylake and > Ice Lake. > Add the Sapphire Rapids CPU model number to the match array. > > Signed-off-by: Artem Bityutskiy > Reviewed-by: Tony Luck

memory_model.h:64:14: error: implicit declaration of function 'page_to_section'

2021-02-03 Thread Naresh Kamboju
Linux next tag 20210203 the mips and sh builds failed due to below errors. Following builds failed with gcc-8, gcc-9 and gcc-10, - mips (cavium_octeon_defconfig) - sh (defconfig) - sh (shx3_defconfig) make --silent --keep-going --jobs=8 O=/home/tuxbuild/.cache/tuxmake/builds/1/tmp ARCH=mips

Re: [PATCH v8 02/14] mm/gup: check every subpage of a compound page during isolation

2021-02-03 Thread Joao Martins
On 2/3/21 2:51 PM, Pavel Tatashin wrote: > On Wed, Feb 3, 2021 at 8:23 AM Joao Martins wrote: >> >> On 1/25/21 7:47 PM, Pavel Tatashin wrote: >>> When pages are isolated in check_and_migrate_movable_pages() we skip >>> compound number of pages at a time. However, as Jason noted, it is >>> not

Re: [EXT] Re: [PATCH 03/11] dts: mvebu: Add pin control definitions for SDIO interafce

2021-02-03 Thread Andrew Lunn
> > > + sdhci_pins: sdhi-pins { > > > > sdhi-pins ? > > > [KP] You mean to replace the underline with dash? I think he would like a c added in the correct place. Andrew

Re: [PATCH V3 04/14] coresight: ete: Add support for ETE sysreg access

2021-02-03 Thread Suzuki K Poulose
On 2/2/21 5:52 PM, Mathieu Poirier wrote: On Wed, Jan 27, 2021 at 02:25:28PM +0530, Anshuman Khandual wrote: From: Suzuki K Poulose Add support for handling the system registers for Embedded Trace Extensions (ETE). ETE shares most of the registers with ETMv4 except for some and also adds some

Re: [PATCH 11/12] kasan: always inline HW_TAGS helper functions

2021-02-03 Thread Marco Elver
On Mon, Feb 01, 2021 at 08:43PM +0100, Andrey Konovalov wrote: > Mark all static functions in common.c and kasan.h that are used for > hardware tag-based KASAN as __always_inline to avoid unnecessary > function calls. > > Signed-off-by: Andrey Konovalov Does objtool complain about any of these?

[PATCH] mm: cma: support sysfs

2021-02-03 Thread Minchan Kim
Since CMA is getting used more widely, it's more important to keep monitoring CMA statistics for system health since it's directly related to user experience. This patch introduces sysfs for the CMA and exposes stats below to keep monitor for telemetric in the system. * the number of CMA

RE: [EXT] Re: [PATCH 03/11] dts: mvebu: Add pin control definitions for SDIO interafce

2021-02-03 Thread Kostya Porotchkin
> > > > + sdhci_pins: sdhi-pins { > > > > > > sdhi-pins ? > > > > > [KP] You mean to replace the underline with dash? > > I think he would like a c added in the correct place. > [KP] Ahh, now I see it. Thank you, Andrew! Kosta > Andrew

[PATCH] Revert "dmaengine: dw: Enable runtime PM"

2021-02-03 Thread Cezary Rojewski
This reverts commit 842067940a3e3fc008a60fee388e000219b32632. For some solutions e.g. sound/soc/intel/catpt, DW DMA is part of a compound device (in that very example, domains: ADSP, SSP0, SSP1, DMA0 and DMA1 are part of a single entity) rather than being a standalone one. Driver for said device

Re: [rcu:willy-maple 189/202] mm/mmap.c:2830:18: warning: variable 'ma_lock' set but not used

2021-02-03 Thread Liam Howlett
* kernel test robot [210202 22:08]: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > willy-maple > head: 7e346d2845b4bd77663394f39fa70456e0084c86 > commit: e40a951e09ed0e66dbd646f938df19c876915b9d [189/202] mm: Remove vma > linked list. > config:

Re: [PATCH 05/11] x86/fault: Correct a few user vs kernel checks wrt WRUSS

2021-02-03 Thread Borislav Petkov
On Sun, Jan 31, 2021 at 09:24:36AM -0800, Andy Lutomirski wrote: > In general, page fault errors for WRUSS should be just like get_user(), > etc. Fix three bugs in this area: > > We have a comment that says that, if we can't handle a page fault on a user > address due to OOM, we will skip the

Re: [PATCH 4.9 00/32] 4.9.255-rc1 review

2021-02-03 Thread Shuah Khan
On 2/2/21 6:38 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.255 release. There are 32 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

Re: [PATCH v5 1/8] usb: typec: Manage SVDM version

2021-02-03 Thread Kyle Tso
Thank you Heikki and Guenter for these valuable reviews. I will update it in the next version. thanks, Kyle On Wed, Feb 3, 2021 at 11:04 PM Heikki Krogerus wrote: > > On Wed, Feb 03, 2021 at 05:01:26PM +0200, Heikki Krogerus wrote: > > On Wed, Feb 03, 2021 at 06:51:43AM -0800, Guenter Roeck

Re: [PATCH 1/2] misc/pvpanic: split-up generic and platform dependent code

2021-02-03 Thread Greg KH
On Wed, Feb 03, 2021 at 04:43:58PM +0200, Mihai Carabas wrote: > Split-up generic and platform dependent code in order to introduce pvpanic pci > device driver later. What is "later"? And did you just create a new driver/module in this change? Why? And how did you test? This new module looks

Re: [PATCH v2] pwm: sunxi: Add Allwinner SoC PWM controller driver

2021-02-03 Thread Maxime Ripard
Hi, On Wed, Feb 03, 2021 at 08:53:17PM +0800, Ban Tao wrote: > From: Ban Tao > > The Allwinner R818, A133, R329, V536 and V833 has a new PWM controller > IP compared to the older Allwinner SoCs. > > Signed-off-by: Ban Tao Thanks for your patch. There's a bunch of warnings reported by

Re: [PATCH 2/2] misc/pvpanic: add pci driver

2021-02-03 Thread Greg KH
On Wed, Feb 03, 2021 at 04:43:59PM +0200, Mihai Carabas wrote: > Add pvpanic pci device driver support. > > Signed-off-by: Mihai Carabas > --- > drivers/misc/pvpanic/Kconfig | 16 ++- > drivers/misc/pvpanic/Makefile | 7 + > drivers/misc/pvpanic/pvpanic-pci.c | 54 >

Re: [PATCH v6] modules: introduce the MODULE_SCMVERSION config

2021-02-03 Thread Jessica Yu
+++ Will McVicker [21/01/21 21:36 +]: Config MODULE_SCMVERSION introduces a new module attribute -- `scmversion` -- which can be used to identify a given module's SCM version. This is very useful for developers that update their kernel independently from their kernel modules or vice-versa

Re: [PATCH v5] x86/sgx: Fix use-after-free in sgx_mmu_notifier_release()

2021-02-03 Thread Dave Hansen
On 1/30/21 11:20 AM, Jarkko Sakkinen wrote: ... > Example scenario would such that all removals "side-channel" through > the notifier callback. Then mmu_notifier_unregister() gets called > exactly zero times. No MMU notifier srcu sync would be then happening. > > NOTE: There's bunch of other

Re: [PATCH 1/2] drivers/irqchip: Fixup csky,mpintc compile error with CPU_CK610

2021-02-03 Thread Marc Zyngier
On 2021-02-03 13:48, guo...@kernel.org wrote: From: Guo Ren The irq-csky-mpintc.c only could support CPU_CK860 and it will compile error with CPU_CK610. Signed-off-by: Guo Ren Cc: Marc Zyngier --- drivers/irqchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] clk: at91: Fix the declaration of the clocks

2021-02-03 Thread Tudor Ambarus
These are all "early clocks" that require initialization just at of_clk_init() time. Use CLK_OF_DECLARE() to declare them. This also fixes a problem that was spotted when fw_devlink was set to 'on' by default: the boards failed to boot. The reason is that CLK_OF_DECLARE_DRIVER() clears the

[PATCH] include: acpi: Correct spelling in the file acoutput.h is optimzation to optimization

2021-02-03 Thread Bhaskar Chowdhury
s/optimzation/optimization/ Signed-off-by: Bhaskar Chowdhury --- include/acpi/acoutput.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/acpi/acoutput.h b/include/acpi/acoutput.h index c5d900c0ecda..1ba212372e79 100644 --- a/include/acpi/acoutput.h +++

Re: [PATCH 4.19 00/37] 4.19.173-rc1 review

2021-02-03 Thread Shuah Khan
On 2/2/21 6:38 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.173 release. There are 37 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

Re: [PATCH 4.4 00/28] 4.4.255-rc1 review

2021-02-03 Thread Shuah Khan
On 2/2/21 6:38 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.255 release. There are 28 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

[PATCH] crypto: keembay-ocs-aes - Fix 'q' assignment during CCM B0 generation

2021-02-03 Thread Daniele Alessandrelli
From: Daniele Alessandrelli In ocs_aes_ccm_write_b0(), 'q' (the octet length of the binary representation of the octet length of the payload) is set to 'iv[0]', while it should be set to 'iv[0] & 0x7' (i.e., only the last 3 bits of iv[0] should be used), as documented in NIST Special Publication

Re: linux-next: Signed-off-by missing for commit in the cifs tree

2021-02-03 Thread Steve French
fixed On Wed, Feb 3, 2021 at 4:59 AM Stephen Rothwell wrote: > > Hi all, > > Commit > > 37595a5c8a51 ("smb3: fix crediting for compounding when only one request in > flight") > > is missing a Signed-off-by from its committer. > > -- > Cheers, > Stephen Rothwell -- Thanks, Steve

Re: [PATCH 2/2] misc/pvpanic: add pci driver

2021-02-03 Thread Greg KH
On Wed, Feb 03, 2021 at 04:43:59PM +0200, Mihai Carabas wrote: > Add pvpanic pci device driver support. What does that mean? Please provide more changelog text here. > > Signed-off-by: Mihai Carabas > --- > drivers/misc/pvpanic/Kconfig | 16 ++- > drivers/misc/pvpanic/Makefile

AW: [PATCH v1] leds: lp50xx: add setting of default intensity from DT

2021-02-03 Thread Sven Schuchmann
Hello Pavel, > > In order to use a multicolor-led together with a trigger > > from DT the led needs to have an intensity set to see something. > > The trigger changes the brightness of the led but if there > > is no intensity we actually see nothing. > > > > This patch adds the ability to set the

Re: [PATCH] x86/fpu: Use consistent test for X86_FEATURE_XSAVES

2021-02-03 Thread Dave Hansen
On 2/3/21 3:23 AM, Borislav Petkov wrote: >> -/* >> - * 'XSAVES' implies two different things: >> - * 1. saving of supervisor/system state >> - * 2. using the compacted format >> - * >> - * Use this function when dealing with the compacted format so >> - * that it is obvious which aspect of

[PATCH] crypto: Fixed optimzation to optimization in the file crypto/xor.c

2021-02-03 Thread Bhaskar Chowdhury
s/optimzation/optimization/ Signed-off-by: Bhaskar Chowdhury --- crypto/xor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/xor.c b/crypto/xor.c index eacbf4f93990..c046d074f522 100644 --- a/crypto/xor.c +++ b/crypto/xor.c @@ -95,7 +95,7 @@ do_xor_speed(struct

Re: [PATCH 5.4 00/61] 5.4.95-rc1 review

2021-02-03 Thread Shuah Khan
On 2/2/21 6:37 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.95 release. There are 61 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

Re: [PATCH 5.10 000/142] 5.10.13-rc1 review

2021-02-03 Thread Shuah Khan
On 2/2/21 6:36 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.10.13 release. There are 142 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

Re: [RFC PATCH v2 19/26] KVM: arm64: Use kvm_arch in kvm_s2_mmu

2021-02-03 Thread Will Deacon
On Fri, Jan 08, 2021 at 12:15:17PM +, Quentin Perret wrote: > In order to make use of the stage 2 pgtable code for the host stage 2, > change kvm_s2_mmu to use a kvm_arch pointer in lieu of the kvm pointer, > as the host will have the former but not the latter. > > Signed-off-by: Quentin

Re: [PATCH] perf metricgroup: Fix segmentation fault for metrics with no pmu event

2021-02-03 Thread Arnaldo Carvalho de Melo
Em Wed, Feb 03, 2021 at 08:46:52AM +0800, Jin, Yao escreveu: > On 2/2/2021 4:15 PM, John Garry wrote: > > On 02/02/2021 02:24, Jin Yao wrote: > > > It causes the segmentation fault. Now check the pmu_name before strcmp. > > > Fixes: c2337d67199a("perf metricgroup: Fix metrics using aliases

Re: [RFC PATCH v2 18/26] KVM: arm64: Use kvm_arch for stage 2 pgtable

2021-02-03 Thread Will Deacon
On Fri, Jan 08, 2021 at 12:15:16PM +, Quentin Perret wrote: > In order to make use of the stage 2 pgtable code for the host stage 2, > use struct kvm_arch in lieu of struct kvm as the host will have the > former but not the latter. > > Signed-off-by: Quentin Perret > --- >

Re: [rcu:willy-maple 134/202] mm/mmap.c:2919 do_brk_munmap() error: we previously assumed 'vma->anon_vma' could be null (see line 2884)

2021-02-03 Thread Liam Howlett
Hello, These are two valid issues. I had noticed one but both need to be addressed. Thank you Dan. Regards, Liam * Dan Carpenter [210203 08:15]: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git > willy-maple > head:

[PATCH] doc: devicetree: bindings: usb: Change descibe to describe in usbmisc-imx.txt

2021-02-03 Thread Bhaskar Chowdhury
s/descibe/describe/ Signed-off-by: Bhaskar Chowdhury --- Documentation/devicetree/bindings/usb/usbmisc-imx.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/usbmisc-imx.txt b/Documentation/devicetree/bindings/usb/usbmisc-imx.txt

[PATCH] doc: devicetree: bindings: usb: Chnage descibe to describe in usbmisc-imx.txt

2021-02-03 Thread Bhaskar Chowdhury
s/descibe/describe/ Signed-off-by: Bhaskar Chowdhury --- Documentation/devicetree/bindings/usb/usbmisc-imx.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/usb/usbmisc-imx.txt b/Documentation/devicetree/bindings/usb/usbmisc-imx.txt

Re: [PATCH 09/12] kasan: ensure poisoning size alignment

2021-02-03 Thread Marco Elver
On Mon, Feb 01, 2021 at 08:43PM +0100, Andrey Konovalov wrote: > A previous changes d99f6a10c161 ("kasan: don't round_up too much") > attempted to simplify the code by adding a round_up(size) call into > kasan_poison(). While this allows to have less round_up() calls around > the code, this

[PATCH 2/2] misc/pvpanic: add pci driver

2021-02-03 Thread Mihai Carabas
Add pvpanic pci device driver support. Signed-off-by: Mihai Carabas --- drivers/misc/pvpanic/Kconfig | 16 ++- drivers/misc/pvpanic/Makefile | 7 + drivers/misc/pvpanic/pvpanic-pci.c | 54 ++ 3 files changed, 76 insertions(+), 1

[PATCH net-next 4/7] net: ipa: remove two unused register definitions

2021-02-03 Thread Alex Elder
We do not support inter-EE channel or event ring commands. Inter-EE interrupts are disabled (and never re-enabled) for all channels and event rings, so we have no need for the GSI registers that clear those interrupt conditions. So remove their definitions. Signed-off-by: Alex Elder ---

[PATCH 1/2] misc/pvpanic: split-up generic and platform dependent code

2021-02-03 Thread Mihai Carabas
Split-up generic and platform dependent code in order to introduce pvpanic pci device driver later. Signed-off-by: Mihai Carabas --- drivers/misc/Kconfig| 9 +-- drivers/misc/Makefile | 2 +- drivers/misc/pvpanic.c | 111

Re: [RFC PATCH v2 17/26] KVM: arm64: Elevate Hyp mappings creation at EL2

2021-02-03 Thread Will Deacon
On Fri, Jan 08, 2021 at 12:15:15PM +, Quentin Perret wrote: > Previous commits have introduced infrastructure at EL2 to enable the Hyp > code to manage its own memory, and more specifically its stage 1 page > tables. However, this was preliminary work, and none of it is currently > in use. >

[PATCH] add support for pci in the pvpanic driver

2021-02-03 Thread Mihai Carabas
This patchset adds support for pci in the pvpanic driver. The device already got in qemu [1]. [1] https://github.com/qemu/qemu/commit/9df52f58e76e904fb141b10318362d718f470db2 Mihai Carabas (2): misc/pvpanic: split-up generic and platform dependent code misc/pvpanic: add pci driver

[PATCH net-next 7/7] net: ipa: avoid field overflow

2021-02-03 Thread Alex Elder
It's possible that the length passed to ipa_header_size_encoded() is larger than what can be represented by the HDR_LEN field alone (starting with IPA v4.5). If we attempted that, u32_encode_bits() would trigger a build-time error. Avoid this problem by masking off high-order bits of the value

[PATCH net-next 6/7] net: ipa: get rid of status size constraint

2021-02-03 Thread Alex Elder
There is a build-time check that the packet status structure is a multiple of 4 bytes in size. It's not clear where that constraint comes from, but the structure defines what hardware provides so its definition won't change. Get rid of the check; it adds no value. Signed-off-by: Alex Elder ---

[PATCH net-next 5/7] net: ipa: use a Boolean rather than count when replenishing

2021-02-03 Thread Alex Elder
The count argument to ipa_endpoint_replenish() is only ever 0 or 1, and always will be (because we always handle each receive buffer in a single transaction). Rename the argument to be add_one and change it to be Boolean. Update the function description to reflect the current code.

[PATCH net-next 2/7] net: ipa: synchronize NAPI only for suspend

2021-02-03 Thread Alex Elder
When stopping a channel, gsi_channel_stop() will ensure NAPI polling is complete when it calls napi_disable(). So there is no need to call napi_synchronize() in that case. Move the call to napi_synchronize() out of __gsi_channel_stop() and into gsi_channel_suspend(), so it's only used where

[PATCH net-next 3/7] net: ipa: do not cache event ring state

2021-02-03 Thread Alex Elder
An event ring's state only needs to be known when it is allocated, reset, or deallocated. We check an event ring's state both before and after performing an event ring control command that changes its state. These are only issued at startup and shutdown, so there is very little value in caching

[PATCH net-next 1/7] net: ipa: restructure a few functions

2021-02-03 Thread Alex Elder
Make __gsi_channel_start() and __gsi_channel_stop() more structurally and semantically similar to each other: - Restructure __gsi_channel_start() to always return at the end of the function, similar to the way __gsi_channel_stop() does. - Move the mutex calls out of

[PATCH net-next 0/7] net: ipa: a mix of small improvements

2021-02-03 Thread Alex Elder
This series contains a sort of unrelated set of code cleanups. The first two are things I wanted to do in a series that updated some NAPI code recently. I didn't want to change things in a way that affected existing testing so I set these aside for later (i.e., now). The third makes a change to

Re: [PATCH v28 01/12] landlock: Add object management

2021-02-03 Thread Mickaël Salaün
On 03/02/2021 15:21, Serge E. Hallyn wrote: > On Tue, Feb 02, 2021 at 05:26:59PM +0100, Mickaël Salaün wrote: >> From: Mickaël Salaün >> >> A Landlock object enables to identify a kernel object (e.g. an inode). >> A Landlock rule is a set of access rights allowed on an object. Rules >> are

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

2021-02-03 Thread Tom Rix
..snip.. On 2/2/21 3:06 PM, Russ Weight wrote: > diff --git a/drivers/fpga/dfl-afu.h b/drivers/fpga/dfl-afu.h > index 576e94960086..e5020e2b1f3d 100644 > --- a/drivers/fpga/dfl-afu.h > +++ b/drivers/fpga/dfl-afu.h > @@ -80,7 +80,7 @@ struct dfl_afu { > }; > > /* hold pdata->lock when call

[PATCH] arch: sh: kernel: Change to correct spelling archtecture to architecture in the file relocate_kernel.S

2021-02-03 Thread Bhaskar Chowdhury
Signed-off-by: Bhaskar Chowdhury --- arch/sh/kernel/relocate_kernel.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sh/kernel/relocate_kernel.S b/arch/sh/kernel/relocate_kernel.S index d9bf2b727b42..deda2f60a8f2 100644 --- a/arch/sh/kernel/relocate_kernel.S +++

Re: [PATCH 1/2] asm-generic: export: Stub EXPORT_SYMBOL with __DISABLE_EXPORTS

2021-02-03 Thread Will Deacon
On Wed, Feb 03, 2021 at 02:19:30PM +, Quentin Perret wrote: > It is currently possible to stub EXPORT_SYMBOL() macros in C code using > __DISABLE_EXPORTS, which is necessary to run in constrained environments > such as the EFI stub or the decompressor. But this currently doesn't > apply to

Re: [PATCH 01/18] vfs: add miscattr ops

2021-02-03 Thread Miklos Szeredi
On Wed, Feb 3, 2021 at 4:05 PM Jan Kara wrote: [...] > > +/** > > + * miscattr_fill_xflags - initialize miscattr with xflags > > + * @ma: miscattr pointer > > + * @xflags: FS_XFLAG_* flags > > + * > > + * Set ->fsx_xflags, ->xattr_valid and ->flags (translated xflags). All > > + *

Re: [PATCH 1/3] printk: use CONFIG_CONSOLE_LOGLEVEL_* directly

2021-02-03 Thread Petr Mladek
On Tue 2021-02-02 09:44:22, John Ogness wrote: > On 2021-02-02, Masahiro Yamada wrote: > > CONSOLE_LOGLEVEL_DEFAULT is nothing more than a shorthand of > > CONFIG_CONSOLE_LOGLEVEL_DEFAULT. > > > > When you change CONFIG_CONSOLE_LOGLEVEL_DEFAULT from Kconfig, almost > > all objects are rebuilt

Re: [PATCH v2] pwm: sunxi: Add Allwinner SoC PWM controller driver

2021-02-03 Thread Uwe Kleine-König
Hello Ban, On Wed, Feb 03, 2021 at 08:53:17PM +0800, Ban Tao wrote: > v1->v2: FTR: v1 wasn't sent to any list, so don't try to find it in some archive. > diff --git a/drivers/pwm/pwm-sun50i.c b/drivers/pwm/pwm-sun50i.c > new file mode 100644 > index ..37285d771924 > --- /dev/null >

Re: [PATCH 1/8] sched/fair: Clean up active balance nr_balance_failed trickery

2021-02-03 Thread Qais Yousef
Hi Valentin On 01/28/21 18:31, Valentin Schneider wrote: > When triggering an active load balance, sd->nr_balance_failed is set to > such a value that any further can_migrate_task() using said sd will ignore > the output of task_hot(). > > This behaviour makes sense, as active load balance

Re: [PATCH 2/8] sched/fair: Add more sched_asym_cpucapacity static branch checks

2021-02-03 Thread Qais Yousef
On 01/28/21 18:31, Valentin Schneider wrote: > Rik noted a while back that a handful of > > sd->flags & SD_ASYM_CPUCAPACITY > > & family in the CFS load-balancer code aren't guarded by the > sched_asym_cpucapacity static branch. > > The load-balancer is already doing a humongous amount of

Re: [PATCH 7/8] sched/fair: Attempt misfit active balance when migration_type != migrate_misfit

2021-02-03 Thread Qais Yousef
On 01/28/21 18:31, Valentin Schneider wrote: > Consider a 4-CPU big.LITTLE system with CPUs 0-1 as LITTLEs and CPUs 2-3 as > bigs. The resulting sched_domain hierarchy is: > > DIE [ ] > MC [][] >0 1 2 3 > > When running a multithreaded CPU-bound workload (i.e. 1

Re: [PATCH 6/8] sched/fair: Filter out locally-unsolvable misfit imbalances

2021-02-03 Thread Qais Yousef
On 01/28/21 18:31, Valentin Schneider wrote: > Consider the following (hypothetical) asymmetric CPU capacity topology, > with some amount of capacity pressure (RT | DL | IRQ | thermal): > > DIE [ ] > MC [][] >0 1 2 3 > > | CPU | capacity_orig | capacity | >

Re: [PATCH 8/8] sched/fair: Relax task_hot() for misfit tasks

2021-02-03 Thread Qais Yousef
On 01/28/21 18:31, Valentin Schneider wrote: > Misfit tasks can and will be preempted by the stopper to migrate them over > to a higher-capacity CPU. However, when runnable but not current misfit > tasks are scanned by the load balancer (i.e. detach_tasks()), the > task_hot() ratelimiting logic

Re: [PATCH v2 09/11] PCI: dwc: pcie-kirin: allow using multiple reset GPIOs

2021-02-03 Thread Krzysztof Wilczyński
Hi Mauro, Thank you for working on this! > @@ -151,8 +152,10 @@ struct kirin_pcie { > struct clk *phy_ref_clk; > struct clk *pcie_aclk; > struct clk *pcie_aux_clk; > - int gpio_id_reset[4]; > + int n_gpio_resets; > int

Re: [PATCH v5 6/6] drm/qxl: simplify qxl_fence_wait

2021-02-03 Thread kernel test robot
is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Gerd-Hoffmann/drm-qxl-fix-driver-shutdown-issues/20210203-211739 base: git

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

2021-02-03 Thread Randy Dunlap
On 2/2/21 10:38 PM, samirweng1979 wrote: > From: wengjianfeng > > remove duplicate word 'we' in comment > > Signed-off-by: wengjianfeng > --- > drivers/net/wireless/ralink/rt2x00/rt2x00crypto.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH 5/8] sched/fair: Make check_misfit_status() only compare dynamic capacities

2021-02-03 Thread Qais Yousef
On 01/28/21 18:31, Valentin Schneider wrote: > check_misfit_status() checks for both capacity pressure & available CPUs > with higher capacity. Now that we have a sane(ish) capacity comparison > margin which is used throughout load-balance, this can be condensed into a > single check: > >

[PATCH] drivers: net: ehternet: i825xx: Fix couple of spellings in the file ether1.c

2021-02-03 Thread Bhaskar Chowdhury
s/initialsation/initialisation/ s/specifiing/specifying/ Signed-off-by: Bhaskar Chowdhury --- drivers/net/ethernet/i825xx/ether1.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/i825xx/ether1.c b/drivers/net/ethernet/i825xx/ether1.c index

Re: [PATCH 4/8] sched/fair: Use dst_cpu's capacity rather than group {min, max} capacity

2021-02-03 Thread Qais Yousef
On 01/28/21 18:31, Valentin Schneider wrote: > Comparing capacity extrema of local and source sched_group's doesn't make > much sense when at the day of the day the imbalance will be pulled by a > known env->dst_cpu, whose capacity can be anywhere within the local group's > capacity extrema. > >

Re: [PATCH 3/8] sched/fair: Tweak misfit-related capacity checks

2021-02-03 Thread Qais Yousef
On 01/28/21 18:31, Valentin Schneider wrote: > During load-balance, groups classified as group_misfit_task are filtered > out if they do not pass > > group_smaller_max_cpu_capacity(, ); > > which itself employs fits_capacity() to compare the sgc->max_capacity of > both groups. > > Due to the

Re: [PATCH 0/8] sched/fair: misfit task load-balance tweaks

2021-02-03 Thread Qais Yousef
On 01/28/21 18:31, Valentin Schneider wrote: > Hi folks, > > Here is this year's series of misfit changes. On the menu: > > o Patch 1 is an independent active balance cleanup > o Patch 2 adds some more sched_asym_cpucapacity static branches > o Patch 3 introduces yet another margin for capacity

[PATCH v6 01/16] asm-generic/hyperv: change HV_CPU_POWER_MANAGEMENT to HV_CPU_MANAGEMENT

2021-02-03 Thread Wei Liu
This makes the name match Hyper-V TLFS. Signed-off-by: Wei Liu Reviewed-by: Vitaly Kuznetsov Reviewed-by: Pavel Tatashin Reviewed-by: Michael Kelley --- include/asm-generic/hyperv-tlfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asm-generic/hyperv-tlfs.h

[PATCH v6 02/16] x86/hyperv: detect if Linux is the root partition

2021-02-03 Thread Wei Liu
For now we can use the privilege flag to check. Stash the value to be used later. Put in a bunch of defines for future use when we want to have more fine-grained detection. Signed-off-by: Wei Liu Reviewed-by: Pavel Tatashin --- v3: move hv_root_partition to mshyperv.c ---

[PATCH v6 04/16] clocksource/hyperv: use MSR-based access if running as root

2021-02-03 Thread Wei Liu
When Linux runs as the root partition, the setup required for TSC page is different. Luckily Linux also has access to the MSR based clocksource. We can just disable the TSC page clocksource if Linux is the root partition. Signed-off-by: Wei Liu Acked-by: Daniel Lezcano Reviewed-by: Pavel

[PATCH v6 03/16] Drivers: hv: vmbus: skip VMBus initialization if Linux is root

2021-02-03 Thread Wei Liu
There is no VMBus and the other infrastructures initialized in hv_acpi_init when Linux is running as the root partition. Signed-off-by: Wei Liu Reviewed-by: Pavel Tatashin Reviewed-by: Michael Kelley --- v3: Return 0 instead of -ENODEV. --- drivers/hv/vmbus_drv.c | 3 +++ 1 file changed, 3

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