Re: [PATCH V2 1/5] powerpc/perf: Expose processor pipeline stage cycles using PERF_SAMPLE_WEIGHT_STRUCT

2021-03-25 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 24, 2021 at 10:05:23AM +0530, Madhavan Srinivasan escreveu: > > On 3/22/21 8:27 PM, Athira Rajeev wrote: > > Performance Monitoring Unit (PMU) registers in powerpc provides > > information on cycles elapsed between different stages in the > > pipeline. This can be used for application

Re: [PATCH] [v2] drivers: gpu: drm: Remove duplicate declaration

2021-03-25 Thread Laurent Pinchart
Hi Wan, Thank you for the patch. On Thu, Mar 25, 2021 at 07:10:24PM +0800, Wan Jiabing wrote: > struct dss_device has been declared. Remove the duplicate. > And sort these forward declarations alphabetically. > > Signed-off-by: Wan Jiabing Reviewed-by: Laurent Pinchart Tomi, I assume you'll

Re: [PATCH] regulator: Use IRQF_ONESHOT

2021-03-25 Thread Jian Dong
On Thu, 25 Mar 2021 14:29:02 +0200 Felipe Balbi wrote: > Hi, > > Krzysztof Kozlowski writes: > > On 23/03/2021 13:12, Jian Dong wrote: > >> From: Jian Dong > >> > >> Fixes coccicheck error: > >> > >> drivers/regulator/mt6360-regulator.c:388:8-33: ERROR: > >>

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Jason Gunthorpe
On Thu, Mar 25, 2021 at 02:05:14PM +0100, Christian König wrote: > > > Am 25.03.21 um 13:42 schrieb Jason Gunthorpe: > > On Thu, Mar 25, 2021 at 01:09:14PM +0100, Christian König wrote: > > > Am 25.03.21 um 13:01 schrieb Jason Gunthorpe: > > > > On Thu, Mar 25, 2021 at 12:53:15PM +0100, Thomas

Re: [PATCH] KVM: clean up the unused argument

2021-03-25 Thread Haiwei Li
Kindly ping. :) On Mon, Mar 15, 2021 at 12:40 PM Keqian Zhu wrote: > > > This looks OK. The use of vcpu argument is removed in commit d383b3146d80 > (KVM: x86: Fix NULL dereference at kvm_msr_ignored_check()) > > Reviewed-by: Keqian Zhu > > On 2021/3/13 13:10, lihaiwei.ker...@gmail.com wrote:

Re: [PATCH v3 1/5] mm/migrate.c: make putback_movable_page() static

2021-03-25 Thread David Hildenbrand
On 25.03.21 14:15, Miaohe Lin wrote: The putback_movable_page() is just called by putback_movable_pages() and we know the page is locked and both PageMovable() and PageIsolated() is checked right before calling putback_movable_page(). So we make it static and remove all the 3 VM_BUG_ON_PAGE().

Re: [PATCH v2 2/2] ALSA: usb-audio: Check connector value on resume

2021-03-25 Thread Takashi Iwai
On Thu, 25 Mar 2021 13:12:48 +0100, Kai-Heng Feng wrote: > > Rear Mic on Lenovo P620 cannot record after S3, despite that there's no > error and the other two functions of the USB audio, Line In and Line > Out, work just fine. > > The mic starts to work again after running userspace app like

[PATCH 1/3] khugepaged: use helper function range_in_vma() in collapse_pte_mapped_thp()

2021-03-25 Thread Miaohe Lin
We could use helper function range_in_vma() to check whether the desired range is inside the vma to simplify the code. Signed-off-by: Miaohe Lin --- mm/khugepaged.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/khugepaged.c b/mm/khugepaged.c index

[PATCH 2/3] khugepaged: remove unnecessary out label in collapse_huge_page()

2021-03-25 Thread Miaohe Lin
The out label here is unneeded because it just goes to out_up_write label. Remove it to make code more concise. Signed-off-by: Miaohe Lin --- mm/khugepaged.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/mm/khugepaged.c b/mm/khugepaged.c index

[PATCH 0/3] Cleanup for khugepaged

2021-03-25 Thread Miaohe Lin
Hi all, This series contains cleanups to remove unnecessary out label and meaningless !pte_present() check. Also use helper function to simplify the code. More details can be found in the respective changelogs. Thanks! Miaohe Lin (3): khugepaged: use helper function range_in_vma() in

[PATCH 3/3] khugepaged: remove meaningless !pte_present() check in khugepaged_scan_pmd()

2021-03-25 Thread Miaohe Lin
We know it must meet the !is_swap_pte() and !pte_none() condition if we reach here. Since !is_swap_pte() indicates pte_none() or pte_present() is met, it's guaranteed that pte must be present here. Signed-off-by: Miaohe Lin --- mm/khugepaged.c | 4 1 file changed, 4 deletions(-) diff

Re: [PATCH 0/9 v6] Introduce a bulk order-0 page allocator with two in-tree users

2021-03-25 Thread Uladzislau Rezki
> On Thu, Mar 25, 2021 at 12:50:01PM +, Matthew Wilcox wrote: > > On Thu, Mar 25, 2021 at 11:42:19AM +, Mel Gorman wrote: > > > This series introduces a bulk order-0 page allocator with sunrpc and > > > the network page pool being the first users. The implementation is not > > > efficient

Re: [PATCH 0/3] Cleanup for khugepaged

2021-03-25 Thread Zi Yan
On 25 Mar 2021, at 9:56, Miaohe Lin wrote: > Hi all, > This series contains cleanups to remove unnecessary out label and > meaningless !pte_present() check. Also use helper function to simplify > the code. More details can be found in the respective changelogs. > Thanks! > > Miaohe Lin (3): >

Re: [PATCH] dt-bindings: mailbox: Add compatible for SM8350 IPCC

2021-03-25 Thread Jassi Brar
On Thu, Mar 25, 2021 at 1:08 AM Vinod Koul wrote: > > On 12-03-21, 11:28, Bjorn Andersson wrote: > > On Thu 11 Mar 23:12 CST 2021, Vinod Koul wrote: > > > > Adding Jassi as recipient. Please let Vinod know if you want him to > > resend this patch to you. (I send a patch for MAINTAINERS yesterday)

Re: [RFC Part2 PATCH 05/30] x86: define RMP violation #PF error code

2021-03-25 Thread Brijesh Singh
On 3/24/21 1:03 PM, Dave Hansen wrote: >> diff --git a/arch/x86/include/asm/trap_pf.h b/arch/x86/include/asm/trap_pf.h >> index 10b1de500ab1..107f9d947e8d 100644 >> --- a/arch/x86/include/asm/trap_pf.h >> +++ b/arch/x86/include/asm/trap_pf.h >> @@ -12,6 +12,7 @@ >> * bit 4 ==

Re: [PATCH] drivers: nvmem: Fix voltage settings for QTI qfprom-efuse

2021-03-25 Thread Srinivas Kandagatla
On 25/03/2021 07:15, Rajendra Nayak wrote: Looks right to me.  Assuming that this works. Reviewed-by: Douglas Anderson Srini, any plans to queue this up for merge?

Re: [PATCH v4 3/5] soc/tegra: pmc: Ensure that clock rates aren't too high

2021-03-25 Thread Thierry Reding
On Tue, Mar 02, 2021 at 03:25:00PM +0300, Dmitry Osipenko wrote: > Switch all clocks of a power domain to a safe rate which is suitable > for all possible voltages in order to ensure that hardware constraints > aren't violated when power domain state toggles. > > Tested-by: Peter Geis # Ouya T30

Re: [PATCH] net: change netdev_unregister_timeout_secs min value to 1

2021-03-25 Thread Dmitry Vyukov
On Thu, Mar 25, 2021 at 3:34 PM Eric Dumazet wrote: > On 3/25/21 11:31 AM, Dmitry Vyukov wrote: > > netdev_unregister_timeout_secs=0 can lead to printing the > > "waiting for dev to become free" message every jiffy. > > This is too frequent and unnecessary. > > Set the min value to 1 second. > >

[PATCH net-next 1/6] net: ipa: update IPA register comments

2021-03-25 Thread Alex Elder
Add and update IPA register definitions. Extend these definitions to incorporate a fairly small number of new symbols (register offsets and fields) to support IPA v3.0, v3.1, v3.5, v4.0, v4.1, v4.7, 4.9, and v4.11, and have the comments reflect when they are valid. None of the added symbols

[PATCH net-next 4/6] net: ipa: GSI register cleanup

2021-03-25 Thread Alex Elder
The main purpose of this is to extend these GSI register definitions to support additional IPA versions. This patch makes some minor updates to "gsi_reg.h": - Define a DB_IN_BYTES field in the channel QOS register - Add some comments clarifying when certain fields are valid - Add the

[PATCH net-next 5/6] net: ipa: update GSI ring size registers

2021-03-25 Thread Alex Elder
Each GSI channel has a CNTXT_1 register that encodes the size of its ring buffer. The size of the field that records that is increased starting at IPA v4.9. Replace the use of a fixed-size field mask with a new inline function that encodes that size value. Similarly, the size of GSI event rings

[PATCH net-next 6/6] net: ipa: expand GSI channel types

2021-03-25 Thread Alex Elder
IPA v4.5 (GSI v2.5) supports a larger set of channel protocols, and adds an additional field to hold the most-significant bits of the protocol identifier on a channel. Add an inline function that encodes the protocol (including the extra bits for newer versions of IPA), and define some additional

[PATCH net-next 2/6] net: ipa: update component config register

2021-03-25 Thread Alex Elder
IPA version 4.9 and later use a different layout of some fields found in the COMP_CFG register. Define arbitration_lock_disable_encoded(), and use it to encode a value into the ATOMIC_FETCHER_ARB_LOCK_DIS field based on the IPA version. And define full_flush_rsc_closure_en_encoded() to encode a

[PATCH net-next 3/6] net: ipa: support IPA interrupt addresses for IPA v4.7

2021-03-25 Thread Alex Elder
Starting with IPA v4.7, registers related to IPA interrupts are located at a fixed offset 0x1000 above than the addresses used for earlier versions. Define and use functions to provide the offset to use for these registers based on IPA version. Signed-off-by: Alex Elder ---

Re: [PATCH AUTOSEL 5.11 43/44] signal: don't allow STOP on PF_IO_WORKER threads

2021-03-25 Thread Sasha Levin
On Thu, Mar 25, 2021 at 08:02:11AM -0600, Jens Axboe wrote: On 3/25/21 7:56 AM, Stefan Metzmacher wrote: Am 25.03.21 um 14:38 schrieb Jens Axboe: On 3/25/21 6:11 AM, Stefan Metzmacher wrote: Am 25.03.21 um 13:04 schrieb Eric W. Biederman: Stefan Metzmacher writes: Am 25.03.21 um 12:24

re: drm/ttm: switch to per device LRU lock

2021-03-25 Thread Colin Ian King
Hi, Static analysis with Coverity in linux-next has detected an issue in drivers/gpu/drm/ttm/ttm_bo.c with the follow commit: commit a1f091f8ef2b680a5184db065527612247cb4cae Author: Christian König Date: Tue Oct 6 17:26:42 2020 +0200 drm/ttm: switch to per device LRU lock Instead of

Re: [PATCH v4 3/5] soc/tegra: pmc: Ensure that clock rates aren't too high

2021-03-25 Thread Dmitry Osipenko
25.03.2021 18:02, Dmitry Osipenko пишет: > 25.03.2021 17:39, Thierry Reding пишет: >> On Tue, Mar 02, 2021 at 03:25:00PM +0300, Dmitry Osipenko wrote: >>> Switch all clocks of a power domain to a safe rate which is suitable >>> for all possible voltages in order to ensure that hardware constraints

Re: [PATCH AUTOSEL 5.11 43/44] signal: don't allow STOP on PF_IO_WORKER threads

2021-03-25 Thread Jens Axboe
On 3/25/21 8:02 AM, Jens Axboe wrote: > On 3/25/21 7:56 AM, Stefan Metzmacher wrote: >> Am 25.03.21 um 14:38 schrieb Jens Axboe: >>> On 3/25/21 6:11 AM, Stefan Metzmacher wrote: Am 25.03.21 um 13:04 schrieb Eric W. Biederman: > Stefan Metzmacher writes: > >> Am 25.03.21 um

Re: [PATCH] ima: Fix the error code for restoring the PCR value

2021-03-25 Thread Mimi Zohar
On Wed, 2021-03-24 at 09:00 +, Roberto Sassu wrote: > > From: lihuafei > > Sent: Tuesday, March 23, 2021 2:41 PM > > ping. :-) > > > > On 2021/3/3 11:28, Li Huafei wrote: > > > In ima_restore_measurement_list(), hdr[HDR_PCR].data is pointing to a > > > buffer of type u8, which contains the

Re: [PATCH 2/2] streamline_config.pl: Add softtabstop=4 for vim users

2021-03-25 Thread Steven Rostedt
On Thu, 25 Mar 2021 23:09:38 +0900 Masahiro Yamada wrote: > > > Not all people use vim. > > > > I don't use it either. I was trying to make vim match emacs. Of course for > > those that use something else, it wont help. I'm curious, what's your main > > editor that you use? > > > I use

[PATCH bpf] bpf: link: refuse non-zero file_flags in BPF_OBJ_GET

2021-03-25 Thread Lorenz Bauer
Invoking BPF_OBJ_GET on a pinned bpf_link checks the path access permissions based on file_flags, but the returned fd ignores flags. This means that any user can acquire a "read-write" fd for a pinned link with mode 0664 by invoking BPF_OBJ_GET with BPF_F_RDONLY in file_flags. The fd can be used

Re: [PATCH V2] ARM: xen/mm.c: A mundane typo fix

2021-03-25 Thread Stefano Stabellini
On Wed, 24 Mar 2021, Randy Dunlap wrote: > On 3/24/21 9:35 PM, Bhaskar Chowdhury wrote: > > s/acrros/across/ > > > > Plus some words need prural version...so did it.(page->pages) > > > > Signed-off-by: Bhaskar Chowdhury > > Acked-by: Randy Dunlap Acked-by: Stefano Stabellini > > --- > >

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-25 Thread Michal Hocko
On Thu 25-03-21 16:19:36, David Hildenbrand wrote: > On 25.03.21 16:12, Michal Hocko wrote: > > On Thu 25-03-21 15:46:22, David Hildenbrand wrote: > > > On 25.03.21 15:34, Michal Hocko wrote: > > > > On Thu 25-03-21 15:09:35, David Hildenbrand wrote: > > > > > On 25.03.21 15:08, Michal Hocko

[PATCH v5 0/7] Move Hisilicon 6421v600 SPMI and USB drivers out of staging

2021-03-25 Thread Mauro Carvalho Chehab
Hi Greg, Those are the remaining patches that are needed for the USB to work with Hikey970. This is based on the top of next-20210323. The main change from the previous patch series is that a new patch was added: - staging: hisilicon,hisi-spmi-controller.yaml cleanup schema It does some

[PATCH v5 7/7] dts: hisilicon: add support for USB3 on Hikey 970

2021-03-25 Thread Mauro Carvalho Chehab
Add the USB3 bindings for Kirin 970 phy and Hikey 970 board. Signed-off-by: Mauro Carvalho Chehab --- .../boot/dts/hisilicon/hi3670-hikey970.dts| 102 ++ arch/arm64/boot/dts/hisilicon/hi3670.dtsi | 58 ++ 2 files changed, 160 insertions(+) diff --git

[PATCH v5 5/7] regulator: hi6421v600-regulator: move it from staging

2021-03-25 Thread Mauro Carvalho Chehab
This driver is ready for mainstream. Move it out of staging. Signed-off-by: Mauro Carvalho Chehab --- drivers/regulator/Kconfig| 9 + drivers/regulator/Makefile | 1 + .../hikey9xx => regulator}/hi6421v600-regulator.c| 0

[PATCH v5 4/7] mfd: hi6421-spmi-pmic: move driver from staging

2021-03-25 Thread Mauro Carvalho Chehab
This driver is ready for mainstream. So, move it out of staging. Signed-off-by: Mauro Carvalho Chehab --- .../mfd}/hisilicon,hi6421-spmi-pmic.yaml | 0 MAINTAINERS| 7 +++ drivers/mfd/Kconfig| 16

[PATCH v5 6/7] dts: hisilicon: add support for the PMIC found on Hikey 970

2021-03-25 Thread Mauro Carvalho Chehab
Add a device tree for the HiSilicon 6421v600 SPMI PMIC, used on HiKey970 board. As we now have support for it, change the fixed regulators used by the SD I/O to use the proper LDO supplies. Signed-off-by: Mauro Carvalho Chehab --- .../boot/dts/hisilicon/hi3670-hikey970.dts| 22 +

[PATCH v5 1/7] phy: phy-hi3670-usb3: move driver from staging into phy

2021-03-25 Thread Mauro Carvalho Chehab
The phy USB3 driver for Hisilicon 970 (hi3670) is ready for mainstream. Mode it from staging into the main driver's phy/ directory. Acked-by: Rob Herring Signed-off-by: Mauro Carvalho Chehab --- .../bindings/phy/hisilicon,hi3670-usb3.yaml | 0 MAINTAINERS

[PATCH v5 2/7] staging: hisilicon,hisi-spmi-controller.yaml cleanup schema

2021-03-25 Thread Mauro Carvalho Chehab
Remove some properties already defined at SPMI bus, and place the type for the spmi-channel. Signed-off-by: Mauro Carvalho Chehab --- .../hisilicon,hisi-spmi-controller.yaml| 18 +++--- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git

Re: [PATCH] clk: Mark fwnodes when their clock provider is added

2021-03-25 Thread Geert Uytterhoeven
Hi Marek, On Thu, Mar 25, 2021 at 2:32 PM Marek Szyprowski wrote: > On 10.02.2021 12:44, Tudor Ambarus wrote: > > This is a follow-up for: > > commit 3c9ea42802a1 ("clk: Mark fwnodes when their clock provider is > > added/removed") > > > > The above commit updated the deprecated

[PATCH v5 3/7] spmi: hisi-spmi-controller: move driver from staging

2021-03-25 Thread Mauro Carvalho Chehab
The Hisilicon 6421v600 SPMI driver is ready for mainstream. So, move it from staging. Acked-by: Stephen Boyd Signed-off-by: Mauro Carvalho Chehab --- .../spmi}/hisilicon,hisi-spmi-controller.yaml | 0 MAINTAINERS | 7 +++

[PATCH 4/9] mm/page_alloc: optimize code layout for __alloc_pages_bulk

2021-03-25 Thread Mel Gorman
From: Jesper Dangaard Brouer Looking at perf-report and ASM-code for __alloc_pages_bulk() it is clear that the code activated is suboptimal. The compiler guesses wrong and places unlikely code at the beginning. Due to the use of WARN_ON_ONCE() macro the UD2 asm instruction is added to the code,

[PATCH 3/9] mm/page_alloc: Add an array-based interface to the bulk page allocator

2021-03-25 Thread Mel Gorman
The proposed callers for the bulk allocator store pages from the bulk allocator in an array. This patch adds an array-based interface to the API to avoid multiple list iterations. The page list interface is preserved to avoid requiring all users of the bulk API to allocate and manage enough

[PATCH 1/9] mm/page_alloc: Rename alloced to allocated

2021-03-25 Thread Mel Gorman
Review feedback of the bulk allocator twice found problems with "alloced" being a counter for pages allocated. The naming was based on the API name "alloc" and was based on the idea that verbal communication about malloc tends to use the fake word "malloced" instead of the fake word mallocated. To

Re: [PATCH 1/7] x86/syscalls: fix -Wmissing-prototypes warnings from COND_SYSCALL()

2021-03-25 Thread Mickaël Salaün
Hi Masahiro, What is the status of this patch? Could you please push it to -next? This would avoid emails from lkp: https://lore.kernel.org/linux-security-module/202103191423.jl0jvzfl-...@intel.com/ Thanks, Mickaël On 01/03/2021 14:15, Masahiro Yamada wrote: > Building kernel/sys_ni.c with W=1

[PATCH -next] agp: uninorth: Make some symbols static

2021-03-25 Thread Zou Wei
The sparse tool complains as follows: drivers/char/agp/uninorth-agp.c:510:32: warning: symbol 'uninorth_agp_driver' was not declared. Should it be static? drivers/char/agp/uninorth-agp.c:538:32: warning: symbol 'u3_agp_driver' was not declared. Should it be static? This symbol is not used

Re: [PATCH 0/3] Apple M1 DART IOMMU driver

2021-03-25 Thread Robin Murphy
On 2021-03-25 07:53, Sven Peter wrote: On Tue, Mar 23, 2021, at 21:53, Rob Herring wrote: On Sun, Mar 21, 2021 at 05:00:50PM +0100, Mark Kettenis wrote: Date: Sat, 20 Mar 2021 15:19:33 + From: Sven Peter I have just noticed today though that at least the USB DWC3 controller in host mode

Re: [PATCH] regulator: Use IRQF_ONESHOT

2021-03-25 Thread Krzysztof Kozlowski
On 23/03/2021 13:12, Jian Dong wrote: > From: Jian Dong > > Fixes coccicheck error: > > drivers/regulator/mt6360-regulator.c:388:8-33: ERROR: > drivers/regulator/pca9450-regulator.c:781:7-32: ERROR: > drivers/regulator/slg51000-regulator.c:480:8-33: ERROR: >

Re: [PATCH AUTOSEL 5.11 43/44] signal: don't allow STOP on PF_IO_WORKER threads

2021-03-25 Thread Stefan Metzmacher
Am 25.03.21 um 13:04 schrieb Eric W. Biederman: > Stefan Metzmacher writes: > >> Am 25.03.21 um 12:24 schrieb Sasha Levin: >>> From: "Eric W. Biederman" >>> >>> [ Upstream commit 4db4b1a0d1779dc159f7b87feb97030ec0b12597 ] >>> >>> Just like we don't allow normal signals to IO threads, don't

[gustavoars-linux:testing/warray-bounds] BUILD SUCCESS WITH WARNING 43ff065895846889c64db05e97e9ba3977561790

2021-03-25 Thread kernel test robot
-a003-20210325 | |-- include-linux-fortify-string.h:warning:__builtin_memcpy-offset-from-the-object-at-karg-is-out-of-the-bounds-of-referenced-subobject-buffer_rel_condition-with-type-short-unsigned-int-at-offset | |-- include-linux-fortify-string.h:warning:__builtin_memcpy-offset-from

Re: linux-next: Tree for Mar 24 (drivers/tty/serial/pch_uart.c)

2021-03-25 Thread Greg Kroah-Hartman
On Wed, Mar 24, 2021 at 08:54:15AM -0700, Randy Dunlap wrote: > On 3/24/21 3:07 AM, Stephen Rothwell wrote: > > Hi all, > > > > Changes since 20210323: > > > > > on x86_64: > # CONFIG_DEBUG_FS is not set > > > ../drivers/tty/serial/pch_uart.c: In function ‘pch_uart_init_port’: >

[PATCH v4] docs: experimental: build PDF with rst2pdf

2021-03-25 Thread Mauro Carvalho Chehab
Add an experimental PDF builder using rst2pdf. This extension is only enabled when "pdf" builder is selected. So, it won't interfere with normal documentation builds. I opted to not add a try..except block, as the message is already good enough if one tries to do a "make rst2pdf" but the

Re: [PATCH 2/9] mm/page_alloc: Add a bulk page allocator

2021-03-25 Thread Mel Gorman
On Thu, Mar 25, 2021 at 12:05:25PM +, Matthew Wilcox wrote: > On Thu, Mar 25, 2021 at 11:42:21AM +, Mel Gorman wrote: > > +int __alloc_pages_bulk(gfp_t gfp, int preferred_nid, > > + nodemask_t *nodemask, int nr_pages, > > + struct

[PATCH v3] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again

2021-03-25 Thread Tiezhu Yang
After commit 0ebeea8ca8a4 ("bpf: Restrict bpf_probe_read{, str}() only to archs where they work"), bpf_probe_read{, str}() functions were no longer available on MIPS, so there exist some errors when running bpf program: root@linux:/home/loongson/bcc# python examples/tracing/task_switch.py bpf:

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Christian König
Am 25.03.21 um 13:42 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at 01:09:14PM +0100, Christian König wrote: Am 25.03.21 um 13:01 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at 12:53:15PM +0100, Thomas Hellström (Intel) wrote: Nope. The point here was that in this case, to make sure

Re: [PATCH] arm64: PCI: Enable SMC conduit

2021-03-25 Thread Lorenzo Pieralisi
On Tue, Jan 26, 2021 at 10:53:51PM +, Will Deacon wrote: > On Tue, Jan 26, 2021 at 11:08:31AM -0600, Vikram Sethi wrote: > > On 1/22/2021 1:48 PM, Will Deacon wrote: > > > On Fri, Jan 08, 2021 at 10:32:16AM +, Lorenzo Pieralisi wrote: > > >> On Thu, Jan 07, 2021 at 04:05:48PM -0500, Jon

Re: [PATCH] KVM: VMX: Check the corresponding bits according to the intel sdm

2021-03-25 Thread Haiwei Li
On Tue, Mar 23, 2021 at 10:37 AM wrote: > > From: Haiwei Li > > According to IA-32 SDM Vol.3D "A.1 BASIC VMX INFORMATION", two inspections > are missing. > * Bit 31 is always 0. Earlier versions of this manual specified that the > VMCS revision identifier was a 32-bit field in bits 31:0 of this

Re: [PATCH v2] video: hyperv_fb: Fix a double free in hvfb_probe

2021-03-25 Thread Wei Liu
On Wed, Mar 24, 2021 at 01:46:39PM +, Michael Kelley wrote: > From: Lv Yunlong Sent: Wednesday, March 24, 2021 > 3:37 AM > > > > In function hvfb_probe in hyperv_fb.c, it calls hvfb_getmem(hdev, info) > > and return err when info->apertures is freed. > > > > In the error1 label of

Re: [PATCH 1/3] ASoC:codec:max98373: Changed amp shutdown register as volatile

2021-03-25 Thread Mark Brown
On Wed, Mar 24, 2021 at 08:35:53PM -0700, Ryan Lee wrote: > 0x20FF(amp global enable) register was defined as non-volatile, > but it is not. Overheating, overcurrent can cause amp shutdown > in hardware. Please submit patches using subject lines reflecting the style for the subsystem, this makes

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Jason Gunthorpe
On Thu, Mar 25, 2021 at 02:54:31PM +0100, Christian König wrote: > > The goal is to optimize large page size usage in the page tables. > > > > There are three critera that impact this: > > 1) The possible CPU page table sizes > > 2) The useful contiguity the device can create in its iomemory

Re: [PATCH AUTOSEL 5.11 43/44] signal: don't allow STOP on PF_IO_WORKER threads

2021-03-25 Thread Stefan Metzmacher
Am 25.03.21 um 14:38 schrieb Jens Axboe: > On 3/25/21 6:11 AM, Stefan Metzmacher wrote: >> >> Am 25.03.21 um 13:04 schrieb Eric W. Biederman: >>> Stefan Metzmacher writes: >>> Am 25.03.21 um 12:24 schrieb Sasha Levin: > From: "Eric W. Biederman" > > [ Upstream commit

Re: [PATCH AUTOSEL 5.11 43/44] signal: don't allow STOP on PF_IO_WORKER threads

2021-03-25 Thread Jens Axboe
On 3/25/21 7:56 AM, Stefan Metzmacher wrote: > Am 25.03.21 um 14:38 schrieb Jens Axboe: >> On 3/25/21 6:11 AM, Stefan Metzmacher wrote: >>> >>> Am 25.03.21 um 13:04 schrieb Eric W. Biederman: Stefan Metzmacher writes: > Am 25.03.21 um 12:24 schrieb Sasha Levin: >> From: "Eric W.

Re: Are CAP_SYS_ADMIN and CAP_SYS_NICE still needed for SQPOLL?

2021-03-25 Thread Jens Axboe
On 3/25/21 7:44 AM, Pavel Begunkov wrote: > On 25/03/2021 11:33, Stefano Garzarella wrote: >> Hi Jens, Hi Pavel, >> I was taking a look at the new SQPOLL handling with io_thread instead of >> kthread. Great job! Really nice feature that maybe can be reused also in >> other scenarios (e.g.

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-25 Thread Oscar Salvador
On Thu, Mar 25, 2021 at 01:26:34PM +0100, Michal Hocko wrote: > Yeah, David has raised the contiguous flag for zone already. And to be > completely honest I fail to see why we should shape a design based on an > optimization. If anything we can teach set_zone_contiguous to simply > ignore zone

Re: [PATCH v6 3/3] ARM: tegra: acer-a500: Add atmel,wakeup-method property

2021-03-25 Thread Thierry Reding
On Sun, Mar 21, 2021 at 03:40:28PM -0700, Dmitry Torokhov wrote: > On Tue, Mar 02, 2021 at 01:21:58PM +0300, Dmitry Osipenko wrote: > > Acer A500 uses Atmel Maxtouch 1386 touchscreen controller. This controller > > has WAKE line which could be connected to I2C clock lane, dedicated GPIO > > or

Re: [PATCH 2/2] streamline_config.pl: Add softtabstop=4 for vim users

2021-03-25 Thread Masahiro Yamada
On Thu, Mar 25, 2021 at 10:50 PM Steven Rostedt wrote: > > On Thu, 25 Mar 2021 15:20:13 +0900 > Masahiro Yamada wrote: > > > > > The root cause of inconsistency is that > > you mix up space-indentation and tab-indentation. > > I do not know if it is a standard way either. > > This is the default

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-25 Thread David Hildenbrand
On 25.03.21 15:08, Michal Hocko wrote: On Thu 25-03-21 13:40:45, David Hildenbrand wrote: On 25.03.21 13:35, Michal Hocko wrote: On Thu 25-03-21 12:08:43, David Hildenbrand wrote: On 25.03.21 11:55, Oscar Salvador wrote: [...] - When moving the initialization/accounting to

Re: [PATCH v5 1/6] mfd: rt4831: Adds support for Richtek RT4831 core

2021-03-25 Thread Lee Jones
On Thu, 25 Mar 2021, ChiYuan Huang wrote: > HI, Lee: > > ChiYuan Huang 於 2021年1月13日 週三 下午10:09寫道: > > > > Lee Jones 於 2021年1月13日 週三 下午8:21寫道: > > > > > > On Thu, 17 Dec 2020, cy_huang wrote: > > > > > > > From: ChiYuan Huang > > > > > > > > This adds support Richtek RT4831 core. It includes

Re: [RFC Part2 PATCH 07/30] mm: add support to split the large THP based on RMP violation

2021-03-25 Thread Dave Hansen
On 3/24/21 10:04 AM, Brijesh Singh wrote: > @@ -1377,6 +1442,22 @@ void do_user_addr_fault(struct pt_regs *regs, > if (hw_error_code & X86_PF_INSTR) > flags |= FAULT_FLAG_INSTRUCTION; > > + /* > + * If its an RMP violation, see if we can resolve it. > + */ > +

Re: [PATCH AUTOSEL 5.11 03/44] ext4: add reclaim checks to xattr code

2021-03-25 Thread Jan Kara
Sasha, just be aware that this commit was added to help tracking down a particular syzbot report. As such there's no point in carrying it in -stable but there's no big harm either... Just one patch more. Honza On Thu 25-03-21

Re: [RFC PATCH] USB:XHCI:Adjust the log level of hub

2021-03-25 Thread Alan Stern
On Thu, Mar 25, 2021 at 02:59:03PM +0100, Greg KH wrote: > On Thu, Mar 25, 2021 at 09:33:53PM +0800, liulongfang wrote: > > On 2021/3/25 18:31, Greg KH wrote: > > > On Thu, Mar 25, 2021 at 06:04:12PM +0800, Longfang Liu wrote: > > >> When the number of ports of the hub is not between 1 and

Re: [PATCH] [v3] drivers: watchdog: Remove duplicate include of kernel.h

2021-03-25 Thread Guenter Roeck
On 3/25/21 4:29 AM, Wan Jiabing wrote: > linux/kernel.h has been included. Remove the duplicate. > Reorder include files to be in alphabetic order. > > Signed-off-by: Wan Jiabing Reviewed-by: Guenter Roeck > --- > Changelog: > v3: > - Reorder include files to be in alphabetic order. > > v2:

Re: [PATCH 2/2] net: ipv4: route.c: Remove unnecessary if()

2021-03-25 Thread David Ahern
On 3/23/21 9:10 PM, Yejune Deng wrote: > negative_advice handler is only called when dst is non-NULL hence the > 'if (rt)' check can be removed. 'if' and 'else if' can be merged together. > And use container_of() instead of (struct rtable *). > > Signed-off-by: Yejune Deng > --- >

[PATCH] mailmap: Update email address for Jordan Crouse

2021-03-25 Thread Jordan Crouse
jcrouse at codeaurora.org ha started bouncing. Redirect to a more permanent address. Signed-off-by: Jordan Crouse --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index 85b93cdefc87..8c489cb1d1ce 100644 --- a/.mailmap +++ b/.mailmap @@ -165,6 +165,7 @@ Johan

Re: [PATCH 3/3] mm/devmap: Remove pgmap accounting in the get_user_pages_fast() path

2021-03-25 Thread Jason Gunthorpe
On Wed, Mar 17, 2021 at 09:08:28PM -0700, Dan Williams wrote: > Now that device-dax and filesystem-dax are guaranteed to unmap all user > mappings of devmap / DAX pages before tearing down the 'struct page' > array, get_user_pages_fast() can rely on its traditional synchronization > method

[PATCH net-next 0/6] net: ipa: update registers for other versions

2021-03-25 Thread Alex Elder
This series updates IPA and GSI register definitions to permit more versions of IPA hardware to be supported. Most of the updates are informational, updating comments to indicate which IPA versions support each register and field. But some registers are new and others are deprecated. In a few

Re: [PATCH] net: change netdev_unregister_timeout_secs min value to 1

2021-03-25 Thread Eric Dumazet
On 3/25/21 3:38 PM, Dmitry Vyukov wrote: > On Thu, Mar 25, 2021 at 3:34 PM Eric Dumazet wrote: >> On 3/25/21 11:31 AM, Dmitry Vyukov wrote: >>> netdev_unregister_timeout_secs=0 can lead to printing the >>> "waiting for dev to become free" message every jiffy. >>> This is too frequent and

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-25 Thread Alex Williamson
On Thu, 25 Mar 2021 10:37:54 +0200 Leon Romanovsky wrote: > On Wed, Mar 24, 2021 at 11:17:29AM -0600, Alex Williamson wrote: > > On Wed, 24 Mar 2021 17:13:56 +0200 > > Leon Romanovsky wrote: > > <...> > > > > Yes, and real testing/debugging almost always requires kernel rebuild. > > >

Re: ext2_set_link()->ext2_put_page() question

2021-03-25 Thread Jan Kara
On Mon 22-03-21 17:49:48, Ira Weiny wrote: > Jan, > > Why does ext2_set_link() need to call ext2_put_page()? > > I don't see any reason that we could not match up the ext2_put_page() calls > with the ext2_find_entry(). > > Similarly am I missing something by moving the ext2_put_page() out of >

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-25 Thread Michal Hocko
On Thu 25-03-21 15:46:22, David Hildenbrand wrote: > On 25.03.21 15:34, Michal Hocko wrote: > > On Thu 25-03-21 15:09:35, David Hildenbrand wrote: > > > On 25.03.21 15:08, Michal Hocko wrote: > > > > On Thu 25-03-21 13:40:45, David Hildenbrand wrote: > > > > > On 25.03.21 13:35, Michal Hocko

Re: [PATCH v3 07/11] perf: Add breakpoint information to siginfo on SIGTRAP

2021-03-25 Thread Ingo Molnar
* Marco Elver wrote: > > Yeah, so why cannot we allocate enough space from the signal > > handler user-space stack and put the attr there, and point to it > > from sig_info? > > > > The idea would be to create a stable, per-signal snapshot of > > whatever the perf_attr state is at the

Re: [PATCH v5 1/5] mm,memory_hotplug: Allocate memmap from the added memory range

2021-03-25 Thread David Hildenbrand
On 25.03.21 16:35, Michal Hocko wrote: On Thu 25-03-21 16:19:36, David Hildenbrand wrote: On 25.03.21 16:12, Michal Hocko wrote: On Thu 25-03-21 15:46:22, David Hildenbrand wrote: On 25.03.21 15:34, Michal Hocko wrote: On Thu 25-03-21 15:09:35, David Hildenbrand wrote: On 25.03.21 15:08,

[PATCH AUTOSEL 4.14 10/16] vhost: Fix vhost_vq_reset()

2021-03-25 Thread Sasha Levin
From: Laurent Vivier [ Upstream commit beb691e69f4dec7bfe8b81b509848acfd1f0dbf9 ] vhost_reset_is_le() is vhost_init_is_le(), and in the case of cross-endian legacy, vhost_init_is_le() depends on vq->user_be. vq->user_be is set by vhost_disable_cross_endian(). But in vhost_vq_reset(), we have:

[PATCH 8/9] net: page_pool: refactor dma_map into own function page_pool_dma_map

2021-03-25 Thread Mel Gorman
From: Jesper Dangaard Brouer In preparation for next patch, move the dma mapping into its own function, as this will make it easier to follow the changes. [ilias.apalodimas: make page_pool_dma_map return boolean] Signed-off-by: Jesper Dangaard Brouer Reviewed-by: Ilias Apalodimas

[PATCH 9/9] net: page_pool: use alloc_pages_bulk in refill code path

2021-03-25 Thread Mel Gorman
From: Jesper Dangaard Brouer There are cases where the page_pool need to refill with pages from the page allocator. Some workloads cause the page_pool to release pages instead of recycling these pages. For these workload it can improve performance to bulk alloc pages from the page-allocator to

Re: [PATCH] nvme: disallow passthru cmd from targeting a nsid != nsid of the block dev

2021-03-25 Thread Niklas Cassel
On Thu, Mar 25, 2021 at 09:48:37AM +, Niklas Cassel wrote: > From: Niklas Cassel > > When a passthru command targets a specific namespace, the ns parameter to > nvme_user_cmd()/nvme_user_cmd64() is set. However, there is currently no > validation that the nsid specified in the passthru

Re: [PATCH v2 3/7] powerpc: convert config files to generic cmdline

2021-03-25 Thread Christophe Leroy
Le 24/03/2021 à 18:32, Rob Herring a écrit : On Wed, Mar 24, 2021 at 11:01 AM Christophe Leroy wrote: Le 09/03/2021 à 22:29, Daniel Walker a écrit : On Tue, Mar 09, 2021 at 08:47:09AM +0100, Christophe Leroy wrote: Le 09/03/2021 à 01:02, Daniel Walker a écrit : This is a scripted

Re: [PATCH AUTOSEL 5.11 43/44] signal: don't allow STOP on PF_IO_WORKER threads

2021-03-25 Thread Eric W. Biederman
Stefan Metzmacher writes: > Am 25.03.21 um 12:24 schrieb Sasha Levin: >> From: "Eric W. Biederman" >> >> [ Upstream commit 4db4b1a0d1779dc159f7b87feb97030ec0b12597 ] >> >> Just like we don't allow normal signals to IO threads, don't deliver a >> STOP to a task that has PF_IO_WORKER set. The

Re: [PATCH v3 0/5] docs: reporting-issues: streamline process and solve a FIXME

2021-03-25 Thread Thorsten Leemhuis
Hi Jonathan! On 19.03.21 20:27, Thorsten Leemhuis wrote: > This series bundle a few patches that piled up for > Documentation/admin-guide/reporting-issues.rst. The main changes are these: Sorry to bring the following up, as I saw you mentioning in another mail on linux-doc you have a lot on your

Re: [PATCH v4 08/11] evm: Allow setxattr() and setattr() for unmodified metadata

2021-03-25 Thread Christian Brauner
On Thu, Mar 25, 2021 at 01:13:41PM +0100, Christian Brauner wrote: > On Thu, Mar 25, 2021 at 10:53:43AM +, Roberto Sassu wrote: > > > From: Roberto Sassu > > > Sent: Friday, March 5, 2021 4:19 PM > > > With the patch to allow xattr/attr operations if a portable signature > > > verification

[rcu:dev.2021.03.18a] BUILD SUCCESS 31531c0247544b81d26d4dc4e4aa7dd6ef466f12

2021-03-25 Thread kernel test robot
defconfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig x86_64 randconfig-a002-20210325 x86_64

Re: [PATCH] mm/sparse: Add the missing sparse_buffer_fini() in error branch

2021-03-25 Thread David Hildenbrand
On 25.03.21 12:31, Wang Wensheng wrote: sparse_buffer_init() and sparse_buffer_fini() should appear in pair, or a WARN issue would be through the next time sparse_buffer_init() runs. Add the missing sparse_buffer_fini() in error branch. Fixes: 85c77f791390 ("mm/sparse: add new

Re: [PATCH 06/10] timer: Report ignored local enqueue in nohz mode

2021-03-25 Thread Frederic Weisbecker
On Tue, Mar 16, 2021 at 04:27:56PM +0100, Peter Zijlstra wrote: > On Thu, Mar 11, 2021 at 01:37:04PM +0100, Frederic Weisbecker wrote: > > Enqueuing a local timer after the tick has been stopped will result in > > the timer being ignored until the next random interrupt. > > > > Perform sanity

Re: 回复: [PATCH 01/10] tick/nohz: Prevent tick_nohz_get_sleep_length() from returning negative value

2021-03-25 Thread Frederic Weisbecker
On Tue, Mar 16, 2021 at 04:08:08PM +, Zhou Ti (x2019cwm) wrote: > But I don't think it's a good idea to handle this in callers, because > logically the function shouldn't return negative values. Returning 0 directly > would allow idle governors to get another chance to select again. Hmm,

Re: [PATCH] ARM: fix smp_processor_id() in preemptible warning in harden_branch_predictor()

2021-03-25 Thread Liu Xiang
Russell King - ARM Linux admin 于2021年3月25日周四 下午6:06写道: > > On Thu, Mar 25, 2021 at 05:50:49PM +0800, Liu Xiang wrote: > > When CONFIG_HARDEN_BRANCH_PREDICTOR is selected and user aborts occur, > > there is a warning: > > > > BUG: using smp_processor_id() in preemptible [] code:

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Jason Gunthorpe
On Thu, Mar 25, 2021 at 02:26:50PM +0100, Christian König wrote: > Am 25.03.21 um 14:17 schrieb Jason Gunthorpe: > > On Thu, Mar 25, 2021 at 02:05:14PM +0100, Christian König wrote: > > > > > > Am 25.03.21 um 13:42 schrieb Jason Gunthorpe: > > > > On Thu, Mar 25, 2021 at 01:09:14PM +0100,

RE: [PATCH][next] UAPI: nfsfh.h: Replace one-element array with flexible-array member

2021-03-25 Thread David Laight
From: Gustavo A. R. Silva > Sent: 23 March 2021 22:49 > > There is a regular need in the kernel to provide a way to declare having > a dynamically sized set of trailing elements in a structure. Kernel code > should always use “flexible array members”[1] for these cases. The older > style of

Re: [PATCH v2 3/7] powerpc: convert config files to generic cmdline

2021-03-25 Thread Rob Herring
On Thu, Mar 25, 2021 at 6:06 AM Christophe Leroy wrote: > > > > Le 24/03/2021 à 18:32, Rob Herring a écrit : > > On Wed, Mar 24, 2021 at 11:01 AM Christophe Leroy > > wrote: > >> > >> > >> > >> Le 09/03/2021 à 22:29, Daniel Walker a écrit : > >>> On Tue, Mar 09, 2021 at 08:47:09AM +0100,

Re: [RFC PATCH 1/2] mm,drm/ttm: Block fast GUP to TTM huge pages

2021-03-25 Thread Christian König
Am 25.03.21 um 14:33 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at 02:26:50PM +0100, Christian König wrote: Am 25.03.21 um 14:17 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at 02:05:14PM +0100, Christian König wrote: Am 25.03.21 um 13:42 schrieb Jason Gunthorpe: On Thu, Mar 25, 2021 at

<    3   4   5   6   7   8   9   10   11   12   >