Re: [PATCH v2 09/10] KVM: Don't take mmu_lock for range invalidation unless necessary

2021-04-19 Thread Paolo Bonzini
On 19/04/21 10:49, Wanpeng Li wrote: I saw this splatting: == WARNING: possible circular locking dependency detected 5.12.0-rc3+ #6 Tainted: G OE -- qemu-system-x86/3069 is

Re: [PATCH] bpf: fix errno code for unsupported batch ops

2021-04-19 Thread Pedro Tammela
Em dom., 18 de abr. de 2021 às 19:56, Alexei Starovoitov escreveu: > > On Sun, Apr 18, 2021 at 1:03 PM Pedro Tammela wrote: > > > > ENOTSUPP is not a valid userland errno[1], which is annoying for > > userland applications that implement a fallback to iterative, report > > errors via 'strerror()'

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-19 Thread Geert Uytterhoeven
Hi Andy, On Mon, Apr 19, 2021 at 3:35 PM Andy Shevchenko wrote: > On Mon, Apr 19, 2021 at 4:02 PM Geert Uytterhoeven > wrote: > > On Thu, Apr 15, 2021 at 10:50 AM Andy Shevchenko > > wrote: > > > On Thu, Apr 15, 2021 at 3:43 AM Geert Uytterhoeven > > > wrote: > > > > On Wed, Apr 14, 2021 at

[PATCH v2 1/5] mm: make variable names for populate_vma_page_range() consistent

2021-04-19 Thread David Hildenbrand
Let's make the variable names in the function declaration match the variable names used in the definition. Cc: Andrew Morton Cc: Michal Hocko Cc: Oscar Salvador Cc: Jason Gunthorpe Cc: Peter Xu Signed-off-by: David Hildenbrand --- mm/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH v2 0/5] mm/madvise: introduce MADV_POPULATE_(READ|WRITE) to prefault page tables

2021-04-19 Thread David Hildenbrand
Excessive details on MADV_POPULATE_(READ|WRITE) can be found in patch #2. v1 -> v2: - "mm/madvise: introduce MADV_POPULATE_(READ|WRITE) to prefault page tables" -- Renamed patch/series to match what's happening -- prefault page tables -- Clarified MADV_POPULATE_READ semantics on file holes and

[PATCH v2 3/5] MAINTAINERS: add tools/testing/selftests/vm/ to MEMORY MANAGEMENT

2021-04-19 Thread David Hildenbrand
MEMORY MANAGEMENT seems to be a good fit. Cc: Andrew Morton Cc: Michal Hocko Cc: Oscar Salvador Cc: Jason Gunthorpe Cc: Peter Xu Cc: Shuah Khan Cc: linux-kselft...@vger.kernel.org Signed-off-by: David Hildenbrand --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINE

[PATCH v2 2/5] mm/madvise: introduce MADV_POPULATE_(READ|WRITE) to prefault page tables

2021-04-19 Thread David Hildenbrand
I. Background: Sparse Memory Mappings When we manage sparse memory mappings dynamically in user space - also sometimes involving MAP_NORESERVE - we want to dynamically populate/ discard memory inside such a sparse memory region. Example users are hypervisors (especially implementing memory balloon

[PATCH v2 4/5] selftests/vm: add protection_keys_32 / protection_keys_64 to gitignore

2021-04-19 Thread David Hildenbrand
We missed to add two binaries to gitignore. Cc: Andrew Morton Cc: Michal Hocko Cc: Oscar Salvador Cc: Jason Gunthorpe Cc: Peter Xu Cc: Ram Pai Cc: Shuah Khan Cc: linux-kselft...@vger.kernel.org Signed-off-by: David Hildenbrand --- tools/testing/selftests/vm/.gitignore | 2 ++ 1 file chang

[PATCH v2 5/5] selftests/vm: add test for MADV_POPULATE_(READ|WRITE)

2021-04-19 Thread David Hildenbrand
Let's add a simple test for MADV_POPULATE_READ and MADV_POPULATE_WRITE, verifying some error handling, that population works, and that softdirty tracking works as expected. For now, limit the test to private anonymous memory. Cc: Andrew Morton Cc: Arnd Bergmann Cc: Michal Hocko Cc: Oscar Salvad

Re: [PATCH v3 2/2] iio: accel: Add driver for Murata SCA3300 accelerometer

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 4:26 PM Tomas Melin wrote: Thanks for an update, it's getting better! My comments below. > Add initial support for Murata SCA3300 3-axis industrial > accelerometer with digital SPI interface. This device also > provides a temperature measurement. First of all, you forgot

Re: [PATCH v2 1/2] dt-bindings: remoteproc: k3-r5f: Update bindings for AM64x SoCs

2021-04-19 Thread Suman Anna
Hi Rob, On 3/27/21 9:31 AM, Suman Anna wrote: > The K3 AM64x SoCs have two dual-core Arm R5F clusters/subsystems, with > 2 R5F cores each, both in the MAIN voltage domain. > > These clusters are a revised IP version compared to those present on > J721E and J7200 SoCs, and supports a new "Single-C

Re: [PATCH v7 09/28] mm: Create FolioFlags

2021-04-19 Thread Matthew Wilcox
On Mon, Apr 19, 2021 at 03:25:46PM +0200, Peter Zijlstra wrote: > On Fri, Apr 09, 2021 at 07:50:46PM +0100, Matthew Wilcox (Oracle) wrote: > > These new functions are the folio analogues of the PageFlags functions. > > If CONFIG_DEBUG_VM_PGFLAGS is enabled, we check the folio is not a tail > > page

Re: [PATCH 12/13] ARM: dts: stm32: fix DSI port node on STM32MP15

2021-04-19 Thread Arnd Bergmann
On Thu, Apr 15, 2021 at 2:23 PM Alexandre TORGUE wrote: > On 4/15/21 12:43 PM, Ahmad Fatoum wrote: > > On 15.04.21 12:10, Alexandre Torgue wrote: > >> Running "make dtbs_check W=1", some warnings are reported concerning > >> DSI. This patch reorder DSI nodes to avoid: > >> > >> soc/dsi@5a00: u

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 4:54 PM Geert Uytterhoeven wrote: > On Mon, Apr 19, 2021 at 3:35 PM Andy Shevchenko > wrote: > > On Mon, Apr 19, 2021 at 4:02 PM Geert Uytterhoeven > > wrote: > > > On Thu, Apr 15, 2021 at 10:50 AM Andy Shevchenko > > > wrote: > > > > On Thu, Apr 15, 2021 at 3:43 AM Gee

Re: [PATCH v1 3/5] mm: ptdump: Provide page size to notepage()

2021-04-19 Thread Steven Price
On 19/04/2021 14:14, Christophe Leroy wrote: Le 16/04/2021 à 12:51, Steven Price a écrit : On 16/04/2021 11:38, Christophe Leroy wrote: Le 16/04/2021 à 11:28, Steven Price a écrit : On 15/04/2021 18:18, Christophe Leroy wrote: To be honest I don't fully understand why powerpc requires the

Re: [PATCH 2/2] powerpc: add ALTIVEC support to lib/ when PPC_FPU not set

2021-04-19 Thread Segher Boessenkool
On Mon, Apr 19, 2021 at 03:38:02PM +0200, Christophe Leroy wrote: > Le 19/04/2021 à 15:32, Segher Boessenkool a écrit : > >On Sun, Apr 18, 2021 at 01:17:26PM -0700, Randy Dunlap wrote: > >>Add ldstfp.o to the Makefile for CONFIG_ALTIVEC and add > >>externs for get_vr() and put_vr() in lib/sstep.c t

[PATCH vfs.git] MAINTAINERS: Add git tree for the FILESYSTEMS entry

2021-04-19 Thread Rafał Miłecki
From: Rafał Miłecki This helps finding the latest development code. Signed-off-by: Rafał Miłecki --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index d92f85ca831d..67317bfd46e3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6890,6 +6890,7 @@ FILES

[PATCH][next] wlcore: Fix buffer overrun by snprintf due to incorrect buffer size Content-Type: text/plain; charset="utf-8"

2021-04-19 Thread Colin King
From: Colin Ian King The size of the buffer than can be written to is currently incorrect, it is always the size of the entire buffer even though the snprintf is writing as position pos into the buffer. Fix this by setting the buffer size to be the number of bytes left in the buffer, namely sizeo

Re: [PATCH 12/13] ARM: dts: stm32: fix DSI port node on STM32MP15

2021-04-19 Thread Alexandre TORGUE
On 4/19/21 3:57 PM, Arnd Bergmann wrote: On Thu, Apr 15, 2021 at 2:23 PM Alexandre TORGUE wrote: On 4/15/21 12:43 PM, Ahmad Fatoum wrote: On 15.04.21 12:10, Alexandre Torgue wrote: Running "make dtbs_check W=1", some warnings are reported concerning DSI. This patch reorder DSI nodes to avo

Re: [PATCH 37/57] staging: rtl8188eu: os_dep: ioctl_linux: Move 2 large data buffers into the heap

2021-04-19 Thread Arnd Bergmann
On Thu, Apr 15, 2021 at 7:29 AM Dan Carpenter wrote: > > On Thu, Apr 15, 2021 at 08:20:16AM +0300, Dan Carpenter wrote: > > On Wed, Apr 14, 2021 at 07:11:09PM +0100, Lee Jones wrote: > > > --- > > > drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 12 +++- > > > 1 file changed, 11 inserti

Re: [PATCH v2 1/4] mm: pagewalk: Fix walk for hugepage tables

2021-04-19 Thread Steven Price
On 19/04/2021 11:47, Christophe Leroy wrote: Pagewalk ignores hugepd entries and walk down the tables as if it was traditionnal entries, leading to crazy result. Add walk_hugepd_range() and use it to walk hugepage tables. Signed-off-by: Christophe Leroy Looks correct to me, sadly I don't hav

Re: [PATCH][next] wlcore: Fix buffer overrun by snprintf due to incorrect buffer size Content-Type: text/plain; charset="utf-8"

2021-04-19 Thread Arnd Bergmann
On Mon, Apr 19, 2021 at 4:01 PM Colin King wrote: > > From: Colin Ian King > > The size of the buffer than can be written to is currently incorrect, it is > always the size of the entire buffer even though the snprintf is writing > as position pos into the buffer. Fix this by setting the buffer s

[PATCH 00/10 v4] Use local_lock for pcp protection and reduce stat overhead

2021-04-19 Thread Mel Gorman
Some Acks from RT people are still missing that I'd like to have before trying to merge this via Andrew's tree and there is an open question is whether the last path in this series is worthwhile. It embeds local_lock within the per_cpu_pages structure to clarify the scope but it increases complexit

[PATCH 01/10] mm/page_alloc: Split per cpu page lists and zone stats

2021-04-19 Thread Mel Gorman
The per-cpu page allocator lists and the per-cpu vmstat deltas are stored in the same struct per_cpu_pages even though vmstats have no direct impact on the per-cpu page lists. This is inconsistent because the vmstats for a node are stored on a dedicated structure. The bigger issue is that the per_c

[PATCH][next][V2] wlcore: Fix buffer overrun by snprintf due to incorrect buffer size

2021-04-19 Thread Colin King
From: Colin Ian King The size of the buffer than can be written to is currently incorrect, it is always the size of the entire buffer even though the snprintf is writing as position pos into the buffer. Fix this by setting the buffer size to be the number of bytes left in the buffer, namely sizeo

[PATCH 02/10] mm/page_alloc: Convert per-cpu list protection to local_lock

2021-04-19 Thread Mel Gorman
There is a lack of clarity of what exactly local_irq_save/local_irq_restore protects in page_alloc.c . It conflates the protection of per-cpu page allocation structures with per-cpu vmstat deltas. This patch protects the PCP structure using local_lock which for most configurations is identical to

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 4:58 PM Andy Shevchenko wrote: > On Mon, Apr 19, 2021 at 4:54 PM Geert Uytterhoeven > wrote: > > > In any case it's not true. We have the platform drivers w/o legacy > > > users that are not dependent on OF. > > > > Example? ;-) > > i2c-owl.c In case you want more sound

[PATCH 03/10] mm/vmstat: Convert NUMA statistics to basic NUMA counters

2021-04-19 Thread Mel Gorman
NUMA statistics are maintained on the zone level for hits, misses, foreign etc but nothing relies on them being perfectly accurate for functional correctness. The counters are used by userspace to get a general overview of a workloads NUMA behaviour but the page allocator incurs a high cost to main

[PATCH 04/10] mm/vmstat: Inline NUMA event counter updates

2021-04-19 Thread Mel Gorman
__count_numa_event is small enough to be treated similarly to __count_vm_event so inline it. Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka --- include/linux/vmstat.h | 10 +- mm/vmstat.c| 9 - 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/inc

[PATCH 05/10] mm/page_alloc: Batch the accounting updates in the bulk allocator

2021-04-19 Thread Mel Gorman
Now that the zone_statistics are simple counters that do not require special protection, the bulk allocator accounting updates can be batch updated without adding too much complexity with protected RMW updates or using xchg. Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka --- include/linux/

[PATCH 06/10] mm/page_alloc: Reduce duration that IRQs are disabled for VM counters

2021-04-19 Thread Mel Gorman
IRQs are left disabled for the zone and node VM event counters. This is unnecessary as the affected counters are allowed to race for preemmption and IRQs. This patch reduces the scope of IRQs being disabled via local_[lock|unlock]_irq on !PREEMPT_RT kernels. One __mod_zone_freepage_state is still

[PATCH 07/10] mm/page_alloc: Explicitly acquire the zone lock in __free_pages_ok

2021-04-19 Thread Mel Gorman
__free_pages_ok() disables IRQs before calling a common helper free_one_page() that acquires the zone lock. This is not safe according to Documentation/locking/locktypes.rst and in this context, IRQ disabling is not protecting a per_cpu_pages structure either or a local_lock would be used. This pa

Re: Candidate Linux ABI for Intel AMX and hypothetical new related features

2021-04-19 Thread Borislav Petkov
On Fri, Apr 16, 2021 at 06:05:10PM -0400, Len Brown wrote: > I'm not aware of any intent to transparently use AMX for bcopy, like > what happened > with AVX-512. (didn't they undo that mistake?) No clue, did they? > Tasks are created without an 8KB AMX buffer. > Tasks have to actually touch the

[PATCH 08/10] mm/page_alloc: Avoid conflating IRQs disabled with zone->lock

2021-04-19 Thread Mel Gorman
Historically when freeing pages, free_one_page() assumed that callers had IRQs disabled and the zone->lock could be acquired with spin_lock(). This confuses the scope of what local_lock_irq is protecting and what zone->lock is protecting in free_unref_page_list in particular. This patch uses spin_

Re: [EXTERNAL] Re: [PATCH 4.19 013/247] cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath.

2021-04-19 Thread Paulo Alcantara
Salvatore Bonaccorso writes: > Thanks Greg! Shyam, Steven, now the commit was reverted for the older > brnaches. But did you got a chance to find why it breaks for the older > series? That commit has revealed another bug in cifs_mount() where we failed to update the super's prefix path after cha

[PATCH 09/10] mm/page_alloc: Update PGFREE outside the zone lock in __free_pages_ok

2021-04-19 Thread Mel Gorman
VM events do not need explicit protection by disabling IRQs so update the counter with IRQs enabled in __free_pages_ok. Signed-off-by: Mel Gorman Acked-by: Vlastimil Babka --- mm/page_alloc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-19 Thread Geert Uytterhoeven
Hi Andy, On Mon, Apr 19, 2021 at 3:58 PM Andy Shevchenko wrote: > On Mon, Apr 19, 2021 at 4:54 PM Geert Uytterhoeven > wrote: > > On Mon, Apr 19, 2021 at 3:35 PM Andy Shevchenko > > wrote: > > > On Mon, Apr 19, 2021 at 4:02 PM Geert Uytterhoeven > > > wrote: > > > > On Thu, Apr 15, 2021 at 1

[PATCH 10/10] mm/page_alloc: Embed per_cpu_pages locking within the per-cpu structure

2021-04-19 Thread Mel Gorman
struct per_cpu_pages is protected by the pagesets lock but it can be embedded within struct per_cpu_pages at a minor cost. This is possible because per-cpu lookups are based on offsets. Paraphrasing an explanation from Peter Ziljstra The whole thing relies on: &per_cpu_ptr(msblk->stream, cp

Re: [EXTERNAL] Re: [PATCH 4.19 013/247] cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath.

2021-04-19 Thread Paulo Alcantara
Salvatore Bonaccorso writes: > So just to be clear, first apply again a738c93fb1c1 and then your > additional patch on top? Yes.

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-19 Thread Geert Uytterhoeven
Hi Andy, On Mon, Apr 19, 2021 at 4:14 PM Andy Shevchenko wrote: > On Mon, Apr 19, 2021 at 4:58 PM Andy Shevchenko > wrote: > > On Mon, Apr 19, 2021 at 4:54 PM Geert Uytterhoeven > > wrote: > > > > > In any case it's not true. We have the platform drivers w/o legacy > > > > users that are not d

Re: [PATCH v5 1/3] kernel/resource: Allow region_intersects users to hold resource_lock

2021-04-19 Thread David Hildenbrand
On 19.04.21 09:01, Alistair Popple wrote: Introduce a version of region_intersects() that can be called with the resource_lock already held. This is used in a future fix to __request_free_mem_region(). Signed-off-by: Alistair Popple --- kernel/resource.c | 52 -

Re: [PATCH v3] USB: Don't set USB_PORT_FEAT_SUSPEND on WD19's Realtek Hub

2021-04-19 Thread Alan Stern
On Mon, Apr 19, 2021 at 01:11:38AM -0400, Chris Chiu wrote: > Sorry that I didn't make myself clear. I found that if I applied RESET_RESUME > quirk on the problematic hub, the Set-Port-Feature(suspend) timeout error > disappeared. SInce the timeout is not happening for each suspend by default, > I

Re: [PATCH] Revert "MIPS: make userspace mapping young by default".

2021-04-19 Thread Zhou Yanjie
Hi On 2021/4/19 下午12:56, Huang Pei wrote: On Sat, Apr 17, 2021 at 12:45:59AM +0800, Zhou Yanjie wrote: On 2021/4/16 下午5:20, 黄沛 wrote: Is there any log about the panic? Yes, below is the log: [  195.436017] CPU 0 Unable to handle kernel paging request at virtual address 77eb8000, epc == 801

[PATCH v5 0/7] arm64: dts: renesas: Enable GMSL on R8A77970 V3M Eagle

2021-04-19 Thread Jacopo Mondi
Hello, small changes compared to v4: - bindings: - Took in Rob's suggestions and used a more compact if: required: - maxim,gpio-poc then: properties: poc-supply: false gpio-controller: false it's a shame we can't use '

[PATCH v5 1/7] dt-bindings: media: max9286: Re-indent example

2021-04-19 Thread Jacopo Mondi
The dt-bindings examples are usually indented with 4 spaces. The maxim,max9286 schema has the example indented with only 2 spaces, re-indent it. Cosmetic change only. Reviewed-by: Laurent Pinchart Acked-by: Rob Herring Signed-off-by: Jacopo Mondi --- .../bindings/media/i2c/maxim,max9286.yaml

[PATCH v5 3/7] media: i2c: max9286: Use "maxim,gpio-poc" property

2021-04-19 Thread Jacopo Mondi
The 'maxim,gpio-poc' property is used when the remote camera power-over-coax is controlled by one of the MAX9286 gpio lines, to instruct the driver about which line to use and what the line polarity is. Add to the max9286 driver support for parsing the newly introduced property and use it if avail

[PATCH v5 4/7] arm64: dts: renesas: r8a77970: Add csi40 port@0

2021-04-19 Thread Jacopo Mondi
Declare port@0 in the csi40 device node and leave it un-connected. Each board .dts file will connect the port as it requires. Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm6

[PATCH v5 7/7] DNI: arm64: dts: renesas: eagle: Include eagle-gmsl

2021-04-19 Thread Jacopo Mondi
From: Kieran Bingham Include the eagle-gmsl.dtsi to enable GMSL camera support on the Eagle-V3M platform. Signed-off-by: Kieran Bingham Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dt

[PATCH v5 5/7] arm64: dts: renesas: eagle: Enable MAX9286

2021-04-19 Thread Jacopo Mondi
From: Kieran Bingham Enable the MAX9286 GMSL deserializer on the Eagle-V3M board. Connected cameras should be defined in a device-tree overlay or included after these definitions. Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham Signed-off-by: Jacopo Mondi --- .../arm64/boot/dts/

[PATCH v5 6/7] arm64: dts: renesas: eagle: Add GMSL .dtsi

2021-04-19 Thread Jacopo Mondi
From: Kieran Bingham Describe the FAKRA connector available on Eagle board that allows connecting GMSL camera modules such as IMI RDACM20 and RDACM21. Signed-off-by: Kieran Bingham Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/eagle-gmsl.dtsi | 178 1 file c

[PATCH v5 2/7] dt-bindings: media: max9286: Define 'maxim,gpio-poc'

2021-04-19 Thread Jacopo Mondi
Define a new vendor property in the maxim,max9286 binding schema. The new property allows to declare that the remote camera power-over-coax is controlled by one of the MAX9286 gpio lines. As it is currently not possible to establish a regulator as consumer of the MAX9286 gpio controller for this

Re: [RFCv2 13/13] KVM: unmap guest memory using poisoned pages

2021-04-19 Thread Kirill A. Shutemov
On Fri, Apr 16, 2021 at 05:30:30PM +, Sean Christopherson wrote: > On Fri, Apr 16, 2021, Kirill A. Shutemov wrote: > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > > index 1b404e4d7dd8..f8183386abe7 100644 > > --- a/arch/x86/kvm/x86.c > > +++ b/arch/x86/kvm/x86.c > > @@ -8170,6 +8170,

Re: [PATCH v3 3/4] perf-stat: introduce config stat.bpf-counter-events

2021-04-19 Thread Jiri Olsa
On Fri, Apr 16, 2021 at 03:13:24PM -0700, Song Liu wrote: SNIP > +/* > + * Returns: > + * 0 if all events use BPF; > + * 1 if some events do NOT use BPF; > + * < 0 on errors; > + */ > static int read_bpf_map_counters(void) > { > + bool has_none_bpf_events = false; > st

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 5:18 PM Geert Uytterhoeven wrote: > On Mon, Apr 19, 2021 at 4:14 PM Andy Shevchenko > wrote: > > On Mon, Apr 19, 2021 at 4:58 PM Andy Shevchenko > > wrote: > > > On Mon, Apr 19, 2021 at 4:54 PM Geert Uytterhoeven > > > wrote: > > > > > > > In any case it's not true. We

Re: [PATCH v1 1/1] tee: optee: Provide special parameter field for UUID values

2021-04-19 Thread Jens Wiklander
On Mon, Apr 19, 2021 at 3:40 PM Andy Shevchenko wrote: > > On Mon, Apr 19, 2021 at 4:30 PM Jens Wiklander > wrote: > > On Mon, Apr 19, 2021 at 2:01 PM Andy Shevchenko > > wrote: > > > > > > On Mon, Apr 19, 2021 at 01:35:51PM +0200, Jens Wiklander wrote: > > > > On Thu, Apr 15, 2021 at 4:58 PM An

Re: [PATCH V3 2/4] soc: qcom: dcc:Add driver support for Data Capture and Compare unit(DCC)

2021-04-19 Thread Bjorn Andersson
On Mon 19 Apr 05:32 CDT 2021, schow...@codeaurora.org wrote: > On 2021-04-15 12:01, Felipe Balbi wrote: > > Hi, > > > > Souradeep Chowdhury writes: > > > diff --git a/drivers/soc/qcom/Makefile b/drivers/soc/qcom/Makefile > > > index ad675a6..e7f0ccb 100644 > > > --- a/drivers/soc/qcom/Makefile >

Re: [PATCH] bpf: fix errno code for unsupported batch ops

2021-04-19 Thread Alexei Starovoitov
On Mon, Apr 19, 2021 at 6:52 AM Pedro Tammela wrote: > > Em dom., 18 de abr. de 2021 às 19:56, Alexei Starovoitov > escreveu: > > > > On Sun, Apr 18, 2021 at 1:03 PM Pedro Tammela wrote: > > > > > > ENOTSUPP is not a valid userland errno[1], which is annoying for > > > userland applications that

[PATCH net-next 4/4] atl1c: enable rx csum offload on Mikrotik 10/25G NIC

2021-04-19 Thread Gatis Peisenieks
Mikrotik 10/25G NIC supports hw checksum verification on rx for IP/IPv6 + TCP/UDP packets. HW checksum offload helps reduce host cpu load. This enables the csum offload specifically for Mikrotik 10/25G NIC as other HW supported by the driver is known to have problems with it. TCP iperf3 to Thread

[PATCH net-next 0/4] atl1c: support for Mikrotik 10/25G NIC features

2021-04-19 Thread Gatis Peisenieks
The new Mikrotik 10/25G NIC maintains compatibility with existing atl1c driver. However it does have new features. This patch set adds support for reporting cards higher link speed, max-mtu, enables rx csum offload and improves tx performance. Gatis Peisenieks (4): atl1c: show correct li

[PATCH net-next 2/4] atl1c: improve performance by avoiding unnecessary pcie writes on xmit

2021-04-19 Thread Gatis Peisenieks
The kernel has xmit_more facility that hints the networking driver xmit path about whether more packets are coming soon. This information can be used to avoid unnecessary expensive PCIe transaction per tx packet at a slight increase in latency. Max TX pps on Mikrotik 10/25G NIC in a Threadripper 3

[PATCH net-next 3/4] atl1c: adjust max mtu according to Mikrotik 10/25G NIC ability

2021-04-19 Thread Gatis Peisenieks
The new Mikrotik 10/25G NIC supports jumbo frames. Jumbo frames are supported for TSO as well. This enables the support for mtu up to 9500 bytes. Signed-off-by: Gatis Peisenieks --- drivers/net/ethernet/atheros/atl1c/atl1c_main.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-)

[PATCH net-next 1/4] atl1c: show correct link speed on Mikrotik 10/25G NIC

2021-04-19 Thread Gatis Peisenieks
The new Mikrotik 10/25G NIC maintains compatibility with existing atl1c driver. However it does have new features. This defines some new register offsets, code for identifying the new type of NIC and correct speed detection for the NIC. Signed-off-by: Gatis Peisenieks --- drivers/net/ethernet/a

Re: [PATCH 1/1] lib: scatterlist: Fix SGL length in sg_split() if !CONFIG_NEED_SG_DMA_LENGTH

2021-04-19 Thread Alexander Egorenkov
Christoph Hellwig writes: > On Sun, Apr 18, 2021 at 08:14:41AM +, Alexander Egorenkov wrote: >> If CONFIG_NEED_SG_DMA_LENGTH is NOT enabled then sg_dma_len() is an alias >> for the length field in a SGL. In that case sg_split() wrongly resets >> the length of split SGLs to zero after it was s

[PATCH v2 2/2] delayacct: add a proc file to dump the delay info

2021-04-19 Thread brookxu
From: Chunguang Xu Many distributions do not install the getdelay tool by default, similar to task_io_accounting, adding a proc file to make access easier. v2: Fix some errors prompted by the kernel test robot. Signed-off-by: Chunguang Xu Reported-by: kernel test robot --- fs/proc/base.c

[PATCH v2 1/2] delayacct: refactor the code to simplify the implementation

2021-04-19 Thread brookxu
From: Chunguang Xu The existing data structure is not very convenient for expansion, and part of the code can be saved. Here, try to optimize, which can make the code more concise and easy to expand. delayacct_is_task_waiting_on_io() is currently only referenced by cgroup v1, but I have submitte

Re: [PATCHv2 2/2] iommu/arm-smmu-qcom: Move the adreno smmu specific impl earlier

2021-04-19 Thread Bjorn Andersson
On Fri 26 Feb 03:55 CST 2021, Sai Prakash Ranjan wrote: > Adreno(GPU) SMMU and APSS(Application Processor SubSystem) SMMU > both implement "arm,mmu-500" in some QTI SoCs and to run through > adreno smmu specific implementation such as enabling split pagetables > support, we need to match the "qcom

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 5:15 PM Geert Uytterhoeven wrote: > On Mon, Apr 19, 2021 at 3:58 PM Andy Shevchenko > wrote: > Please tell me how this driver will be probed when CONFIG_ACPI > is disabled (it cannot, as nothing instantiates platform devices of the > right type, so there is no reason to b

Re: [PATCH v13 00/12] Add AMD SEV guest live migration support

2021-04-19 Thread Ashish Kalra
On Fri, Apr 16, 2021 at 02:43:48PM -0700, Steve Rutherford wrote: > On Thu, Apr 15, 2021 at 8:52 AM Ashish Kalra wrote: > > > > From: Ashish Kalra > > > > The series add support for AMD SEV guest live migration commands. To > > protect the > > confidentiality of an SEV protected guest memory whi

Re: [syzbot] KASAN: use-after-free Read in __cpuhp_state_remove_instance

2021-04-19 Thread syzbot
syzbot suspects this issue was fixed by commit: commit 470ec4ed8c91b4db398ad607c700e9ce88365202 Author: Jens Axboe Date: Fri Feb 26 17:20:34 2021 + io-wq: fix double put of 'wq' in error path bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=11e89cc5d0 start commit: c

Re: [PATCH v1 1/1] tee: optee: Provide special parameter field for UUID values

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 5:30 PM Jens Wiklander wrote: > On Mon, Apr 19, 2021 at 3:40 PM Andy Shevchenko > wrote: > > On Mon, Apr 19, 2021 at 4:30 PM Jens Wiklander > > wrote: > > > On Mon, Apr 19, 2021 at 2:01 PM Andy Shevchenko > > > wrote: > > > > On Mon, Apr 19, 2021 at 01:35:51PM +0200, Jen

[PATCH] ASoC: sigmadsp: Disable cache mechanism for readbacks

2021-04-19 Thread Niklas Carlsson
From: Niklas Carlsson The ALSA control readback functionality only works for non-volatile controls, i.e. control values that does not change on their own without driver interaction. This doesn't work for readbacks since the DSP firmware updates the control value. Disable the cache mechanism in t

Re: [PATCH] ARM: dts: keystone-k2g: Rename message-manager node

2021-04-19 Thread Suman Anna
On 4/13/21 7:19 PM, Nishanth Menon wrote: > Rename message-manager instance node name to be better aligned with > current style of device tree nodes for mailboxes. > > Signed-off-by: Nishanth Menon Acked-by: Suman Anna > --- > > Santosh: > - This is'nt critical to queue up for 5.13-rc1 window

Re: [PATCH net-next v3 2/5] mm: add a signature in struct page

2021-04-19 Thread Shakeel Butt
On Sun, Apr 18, 2021 at 10:12 PM Ilias Apalodimas wrote: > > On Wed, Apr 14, 2021 at 01:09:47PM -0700, Shakeel Butt wrote: > > On Wed, Apr 14, 2021 at 12:42 PM Jesper Dangaard Brouer > > wrote: > > > > > [...] > > > > > > > > > > Can this page_pool be used for TCP RX zerocopy? If yes then PageTyp

Re: [PATCH net v3] net: sched: fix packet stuck problem for lockless qdisc

2021-04-19 Thread Michal Kubecek
On Mon, Apr 19, 2021 at 10:04:27AM +0800, Yunsheng Lin wrote: > > > > I tried this patch o top of 5.12-rc7 with real devices. I used two > > machines with 10Gb/s Intel ixgbe NICs, sender has 16 CPUs (2 8-core CPUs > > with HT disabled) and 16 Rx/Tx queues, receiver has 48 CPUs (2 12-core > > CPUs

[PATCH v2] qtnfmac: Fix possible buffer overflow in qtnf_event_handle_external_auth

2021-04-19 Thread Lee Gibson
Function qtnf_event_handle_external_auth calls memcpy without checking the length. A user could control that length and trigger a buffer overflow. Fix by checking the length is within the maximum allowed size. Signed-off-by: Lee Gibson --- v2: use clamp_val() instead of min_t() drivers/net/wir

Re: [PATCH v4] dma-buf: Add DmaBufTotal counter in meminfo

2021-04-19 Thread Michal Hocko
On Mon 19-04-21 12:41:58, peter.enderb...@sony.com wrote: > On 4/19/21 2:16 PM, Michal Hocko wrote: > > On Sat 17-04-21 12:40:32, Peter Enderborg wrote: > >> This adds a total used dma-buf memory. Details > >> can be found in debugfs, however it is not for everyone > >> and not always available. dm

Re: [External] [PATCH v4 5/5] mm/memcg: Improve refill_obj_stock() performance

2021-04-19 Thread Shakeel Butt
On Sun, Apr 18, 2021 at 11:07 PM Muchun Song wrote: > > On Mon, Apr 19, 2021 at 8:01 AM Waiman Long wrote: > > > > There are two issues with the current refill_obj_stock() code. First of > > all, when nr_bytes reaches over PAGE_SIZE, it calls drain_obj_stock() to > > atomically flush out remainin

Re: [syzbot] WARNING in __percpu_ref_exit (2)

2021-04-19 Thread syzbot
Hello, syzbot has tested the proposed patch and the reproducer did not trigger any issue: Reported-and-tested-by: syzbot+d6218cb2fae0b2411...@syzkaller.appspotmail.com Tested on: commit: 75c4021a io_uring: check register restriction afore quiesce git tree: git://git.kernel.dk/lin

Re: [PATCH net-next 2/2] net: ethernet: mediatek: support custom GMAC label

2021-04-19 Thread Ilya Lipnitskiy
On Mon, Apr 19, 2021 at 5:15 AM Andrew Lunn wrote: > > On Sun, Apr 18, 2021 at 09:03:52PM -0700, Ilya Lipnitskiy wrote: > > The MAC device name can now be set within DTS file instead of always > > being "ethX". This is helpful for DSA to clearly label the DSA master > > device and distinguish it f

Re: [PATCH 0/5] Bring the BusLogic host bus adapter driver up to Y2021

2021-04-19 Thread Khalid Aziz
On 4/18/21 2:21 PM, Ondrej Zary wrote: > On Friday 16 April 2021 23:25:18 Maciej W. Rozycki wrote: >> On Fri, 16 Apr 2021, Khalid Aziz wrote: >> Sadly I didn't get to these resources while they were still there, and neither did archive.org, and now they not appear available from anywher

Re: [RFC PATCH 0/3] Separate BE DAI HW constraints from FE ones

2021-04-19 Thread Mark Brown
On Fri, Apr 16, 2021 at 02:39:25PM -0500, Pierre-Louis Bossart wrote: > On 4/16/21 1:55 PM, Mark Brown wrote: > > to the maximum supported bit width for internal operation so bit width > > only matters on external interfaces) but I think for a first pass we can > > get away with forcing everything

RE: pull request: linux-firmware: update cxgb4 firmware to 1.25.4.0

2021-04-19 Thread Raju Rangoju
Josh, thanks for pointing that out. I'll send the new pull request shortly. -Raju -Original Message- From: Josh Boyer Sent: Monday, 19 April, 2021 19:28 To: Raju Rangoju Cc: linux-firmw...@kernel.org; linux-kernel@vger.kernel.org; Ramaraju Yelavarthy ; Rahul Lakkireddy Subject: Re:

Re: [PATCH v2 09/10] KVM: Don't take mmu_lock for range invalidation unless necessary

2021-04-19 Thread Sean Christopherson
On Mon, Apr 19, 2021, Paolo Bonzini wrote: > On 19/04/21 10:49, Wanpeng Li wrote: > > I saw this splatting: > > > > == > > WARNING: possible circular locking dependency detected > > 5.12.0-rc3+ #6 Tainted: G OE > > -

[PATCH] virtiofs: propagate sync() to file server

2021-04-19 Thread Greg Kurz
Even if POSIX doesn't mandate it, linux users legitimately expect sync() to flush all data and metadata to physical storage when it is located on the same system. This isn't happening with virtiofs though : sync() inside the guest returns right away even though data still needs to be flushed from t

Re: [PATCH net] vsock/vmci: log once the failed queue pair allocation

2021-04-19 Thread Stefano Garzarella
On Fri, Apr 16, 2021 at 12:06:18PM +, Jorgen Hansen wrote: On 16 Apr 2021, at 12:44, Stefano Garzarella mailto:sgarz...@redhat.com>> wrote: VMCI feature is not supported in conjunction with the vSphere Fault Tolerance (FT) feature. VMware Tools can repeatedly try to create a vsock connec

Re: [PATCH] dt-bindings: net: mediatek: support MT7621 SoC

2021-04-19 Thread Ilya Lipnitskiy
On Sun, Apr 18, 2021 at 11:24 PM Bjørn Mork wrote: > > Ilya Lipnitskiy writes: > > > Add missing binding documentation for SoC support that has been in place > > since v5.1 > > > > Fixes: 889bcbdeee57 ("net: ethernet: mediatek: support MT7621 SoC ethernet > > hardware") > > Cc: Bjørn Mork > > S

Re: [PATCH 05/15] x86: Implement function_nocfi

2021-04-19 Thread Sami Tolvanen
On Sat, Apr 17, 2021 at 3:16 AM Thomas Gleixner wrote: > > On Sat, Apr 17 2021 at 01:02, Thomas Gleixner wrote: > > On Fri, Apr 16 2021 at 15:37, Kees Cook wrote: > > > >> On Fri, Apr 16, 2021 at 03:20:17PM -0700, Andy Lutomirski wrote: > >>> But obviously there is code that needs real function po

Re: [PATCH v4 1/5] mm/memcg: Move mod_objcg_state() to memcontrol.c

2021-04-19 Thread Johannes Weiner
On Sun, Apr 18, 2021 at 08:00:28PM -0400, Waiman Long wrote: > The mod_objcg_state() function is moved from mm/slab.h to mm/memcontrol.c > so that further optimization can be done to it in later patches without > exposing unnecessary details to other mm components. > > Signed-off-by: Waiman Long

Re: [PATCH 1/3] arm64: dts: xilinx: Add the clock nodes for zynqmp

2021-04-19 Thread Michal Simek
On 4/19/21 1:48 PM, Jan Kiszka wrote: > On 19.04.21 12:52, Michal Simek wrote: >> Hi Jan, >> >> On 4/18/21 2:12 PM, Jan Kiszka wrote: >>> On 01.04.21 16:52, Jan Kiszka wrote: On 01.04.21 13:42, Michal Simek wrote: > Hi Jan, > > On 3/27/21 8:55 PM, Jan Kiszka wrote: >> On 07.

Re: [PATCH] base: power: runtime.c: Remove a unnecessary space

2021-04-19 Thread Rafael J. Wysocki
On Sun, Apr 18, 2021 at 11:22 AM Joe Perches wrote: > > On Sun, 2021-04-18 at 09:11 +, Sebastian Fricke wrote: > > Hey Joe, > > Hi Sebastian. > > > On 18.04.2021 00:09, Joe Perches wrote: > > > On Sun, 2021-04-18 at 06:08 +, Sebastian Fricke wrote: > > > > Remove a redundant space to impro

Re: [External] [PATCH v4 5/5] mm/memcg: Improve refill_obj_stock() performance

2021-04-19 Thread Waiman Long
On 4/19/21 11:00 AM, Shakeel Butt wrote: On Sun, Apr 18, 2021 at 11:07 PM Muchun Song wrote: On Mon, Apr 19, 2021 at 8:01 AM Waiman Long wrote: There are two issues with the current refill_obj_stock() code. First of all, when nr_bytes reaches over PAGE_SIZE, it calls drain_obj_stock() to atom

Re: [PATCH 05/15] x86: Implement function_nocfi

2021-04-19 Thread Sami Tolvanen
On Sun, Apr 18, 2021 at 3:57 PM Andy Lutomirski wrote: > > On Sun, Apr 18, 2021 at 9:17 AM Thomas Gleixner wrote: > > > > On Sat, Apr 17 2021 at 17:11, Andy Lutomirski wrote: > > > On Sat, Apr 17, 2021 at 4:53 PM Thomas Gleixner > > > wrote: > > >> which works for > > >> > > >> foo = func

Re: [PATCH v4 1/5] mm/memcg: Move mod_objcg_state() to memcontrol.c

2021-04-19 Thread Waiman Long
On 4/19/21 11:14 AM, Johannes Weiner wrote: On Sun, Apr 18, 2021 at 08:00:28PM -0400, Waiman Long wrote: The mod_objcg_state() function is moved from mm/slab.h to mm/memcontrol.c so that further optimization can be done to it in later patches without exposing unnecessary details to other mm comp

Re: [PATCH v4 1/5] mm/memcg: Move mod_objcg_state() to memcontrol.c

2021-04-19 Thread Shakeel Butt
On Sun, Apr 18, 2021 at 5:00 PM Waiman Long wrote: > > The mod_objcg_state() function is moved from mm/slab.h to mm/memcontrol.c > so that further optimization can be done to it in later patches without > exposing unnecessary details to other mm components. > > Signed-off-by: Waiman Long Reviewe

Re: [RFC Part2 PATCH 04/30] x86/mm: split the physmap when adding the page in RMP table

2021-04-19 Thread Brijesh Singh
On 4/19/21 7:32 AM, Borislav Petkov wrote: > On Wed, Mar 24, 2021 at 12:04:10PM -0500, Brijesh Singh wrote: >> A write from the hypervisor goes through the RMP checks. When the >> hypervisor writes to pages, hardware checks to ensures that the assigned >> bit in the RMP is zero (i.e page is share

Re: [Linuxarm] Re: [PATCH net v3] net: sched: fix packet stuck problem for lockless qdisc

2021-04-19 Thread Michal Kubecek
On Mon, Apr 19, 2021 at 08:21:38PM +0800, Yunsheng Lin wrote: > On 2021/4/19 10:04, Yunsheng Lin wrote: > > On 2021/4/19 6:59, Michal Kubecek wrote: > >> I tried this patch o top of 5.12-rc7 with real devices. I used two > >> machines with 10Gb/s Intel ixgbe NICs, sender has 16 CPUs (2 8-core CPUs

pull request: linux-firmware: update cxgb4 firmware to 1.25.4.0

2021-04-19 Thread Raju Rangoju
Hi Josh, I've adjusted the actual file entries now. Can you please pull the new firmware from the following URL? git://git.chelsio.net/pub/git/linux-firmware.git for-upstream Thanks, Raju The following changes since commit f66adc3cde7ee0607ea9198ca460031d3564fb33: Merge branch 'main' of git

RE: [PATCH 05/15] x86: Implement function_nocfi

2021-04-19 Thread David Laight
From: Andy Lutomirski > Sent: 18 April 2021 01:12 .. > Slightly more complicated: > > struct opaque_symbol; > extern struct opaque_symbol entry_SYSCALL_64; > > The opaque_symbol variant avoids any possible confusion over the weird > status of arrays in C, and it's hard to misuse, since struct > o

Re: [PATCH 09/15] x86/alternatives: Use C int3 selftest but disable KASAN

2021-04-19 Thread Sami Tolvanen
On Sat, Apr 17, 2021 at 4:37 AM Peter Zijlstra wrote: > > On Fri, Apr 16, 2021 at 01:38:38PM -0700, Sami Tolvanen wrote: > > From: Kees Cook > > > > Instead of using inline asm for the int3 selftest (which confuses the > > Clang's ThinLTO pass), this restores the C function but disables KASAN > >

Maintainers / Kernel Summit 2021 planning kick-off

2021-04-19 Thread Theodore Ts'o
[ Feel free to forward this to other Linux kernel mailing lists as appropriate -- Ted ] This year, the Maintainers and Kernel Summit is currently planned to be held in Dublin, Ireland, September 27 -- 29th. Of course, this is subject to change depending on how much progress the world makes towa

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