[RESEND PATCH v2 0/6] dmaengine: axi-dmac: add support for reading bus attributes from register

2020-08-25 Thread Alexandru Ardelean
The series adds support for reading the DMA bus attributes from the INTERFACE_DESCRIPTION (0x10) register. The first 5 changes are a bit of rework prior to adding the actual change in patch 6, as things need to be shifted around a bit, to enable the clock to be enabled earlier, to be able to read

[RESEND PATCH v2 2/6] dmaengine: axi-dmac: move active_descs list init after device-tree init

2020-08-25 Thread Alexandru Ardelean
We want to enable the clock right after it is obtained. Then later we'll want to read the core version via register-access (which requires the clock to be enabled). The initialization of the active_descs list can be postponed after reading from registers (or reading the device-tree). Signed-off-b

[RESEND PATCH v2 1/6] dmaengine: axi-dmac: move version read in probe

2020-08-25 Thread Alexandru Ardelean
The 'version' of the IP core will be needed to adapt the driver to a new feature (i.e. reading some DMA parameters from registers). To do that, the version will be checked, so this is being moved out of the axi_dmac_detect_caps() function. Signed-off-by: Alexandru Ardelean --- drivers/dma/dma-ax

Re: [PATCH] x86/asm: Replace __force_order with memory clobber

2020-08-25 Thread Arvind Sankar
On Mon, Aug 24, 2020 at 09:13:34PM +0200, Miguel Ojeda wrote: > Hi Arvind, > > On Sun, Aug 23, 2020 at 11:25 PM Arvind Sankar wrote: > > > > - Using a dummy input operand with an arbitrary constant address for the > > read functions, instead of a global variable. This will prevent reads > > f

Re: [PATCH 0/2] ARM: dts: sun8i: r40: Enable DMA

2020-08-25 Thread Maxime Ripard
On Tue, Aug 25, 2020 at 12:00:28PM +0200, Jernej Skrabec wrote: > Allwinner R40 contains DMA engine similar to that in A64. > > Following two patches enable it so DMA users can be added later. > > Please take a look. Applied both, thanks! Maxime signature.asc Description: PGP signature

Re: [PATCH 2/7] dt-bindings: media: i2c: Add documentation for ov8865

2020-08-25 Thread Kévin L'hôpital
Hello, Le Mon, 24 Aug 2020 18:59:10 +0200, Maxime Ripard a écrit : > Hi, > > On Fri, Aug 21, 2020 at 04:59:30PM +0200, Kévin L'hôpital wrote: > > Add a documentation for the sensor ov8865 from Omnivision. > > > > Signed-off-by: Kévin L'hôpital > > In order to ease the submission of both dr

Re: [PATCH v2 2/2] i2c: eg20t: use generic power management

2020-08-25 Thread Bjorn Helgaas
On Tue, Aug 25, 2020 at 11:53:42AM +0200, Jean Delvare wrote: > Hi Bjorn, Vaibhav, > > On Fri, 07 Aug 2020 15:23:21 -0500, Bjorn Helgaas wrote: > > Also, i801_suspend() looks suspicious because it writes SMBHSTCFG, but > > I don't see anything corresponding in i801_resume(). > > You're right, it'

Re: [PATCH v2 0/6] dmaengine: axi-dmac: add support for reading bus attributes from register

2020-08-25 Thread Alexandru Ardelean
On Tue, Aug 25, 2020 at 5:46 PM Vinod Koul wrote: > > On 25-08-20, 15:48, Alexandru Ardelean wrote: > > The series adds support for reading the DMA bus attributes from the > > INTERFACE_DESCRIPTION (0x10) register. > > > > The first 5 changes are a bit of rework prior to adding the actual > > chan

Re: [PATCH v2 2/5] cpufreq: intel_pstate: Always return last EPP value from sysfs

2020-08-25 Thread Rafael J. Wysocki
On Tue, Aug 25, 2020 at 5:06 PM Srinivas Pandruvada wrote: > > On Tue, 2020-08-25 at 16:51 +0200, Rafael J. Wysocki wrote: > > On Tue, Aug 25, 2020 at 8:20 AM Artem Bityutskiy > > wrote: > > > On Mon, 2020-08-24 at 19:42 +0200, Rafael J. Wysocki wrote: > > > > From: "Rafael J. Wysocki" > > > > >

Re: [REGRESSION] x86/cpu fsgsbase breaks TLS in 32 bit rr tracees on a 64 bit system

2020-08-25 Thread hpa
On August 24, 2020 5:30:56 PM PDT, Andy Lutomirski wrote: >On Mon, Aug 24, 2020 at 4:52 PM H. Peter Anvin wrote: >> >> On 2020-08-24 14:10, Andy Lutomirski wrote: >> > >> > PTRACE_READ_SEGMENT_DESCRIPTOR to read a segment descriptor. >> > >> > PTRACE_SET_FS / PTRACE_SET_GS: Sets FS or GS and upda

Re: [PATCH v2 0/5] cpufreq: intel_pstate: Address some HWP-related oddities

2020-08-25 Thread Srinivas Pandruvada
Hi Doug, On Mon, 2020-08-24 at 18:00 -0700, Doug Smythies wrote: > Hi Srinivas, > > I think there is a disconnect between your written > description of what is going on and your supporting MSR reads. > I reproduced again. I see the copy paste individual at the first place swapped. I pasted the f

Re: [PATCH v2 7/9] spi: spi-s3c64xx: Ensure cur_speed holds actual clock value

2020-08-25 Thread Tomasz Figa
On Tue, Aug 25, 2020 at 11:02 AM Lukasz Stelmach wrote: > > It was <2020-08-24 pon 15:21>, when Tomasz Figa wrote: > > On Mon, Aug 24, 2020 at 3:17 PM Lukasz Stelmach > > wrote: > >> > >> It was <2020-08-22 sob 14:43>, when Krzysztof Kozlowski wrote: > >> > On Fri, Aug 21, 2020 at 06:13:59PM +02

Re: [PATCH v5 5/6] can: ctucanfd: CTU CAN FD open-source IP core - platform and next steps and mainlining chances

2020-08-25 Thread Randy Dunlap
On 8/25/20 2:25 AM, Pavel Pisa wrote: > Hello Randy and Rob, > > thanks much for review, I have corrected FPGA spelling > and binding YAML license. > > On Sunday 16 of August 2020 01:28:13 Randy Dunlap wrote: >> On 8/15/20 12:43 PM, Pavel Pisa wrote: >>> diff --git a/drivers/net/can/ctucanfd/Kcon

Re: KASAN: use-after-free Write in page_counter_uncharge

2020-08-25 Thread Johannes Weiner
On Thu, Aug 20, 2020 at 11:03:41AM +0200, Michal Hocko wrote: > From 73a40589cab12122170fb9f90222982e81d41423 Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Thu, 20 Aug 2020 10:44:58 +0200 > Subject: [PATCH] memcg: fix use-after-free in uncharge_batch > > syzbot has reported an use-after-f

Re: [PATCH v11 9/9] x86: Disallow vsyscall emulation when CET is enabled

2020-08-25 Thread Yu, Yu-cheng
On 8/25/2020 2:14 AM, Florian Weimer wrote: * Andy Lutomirski: On Mon, Aug 24, 2020 at 5:30 PM Yu-cheng Yu wrote: From: "H.J. Lu" Emulation of the legacy vsyscall page is required by some programs built before 2013. Newer programs after 2013 don't use it. Disallow vsyscall emulation when

Re: [PATCH v2 2/5] cpufreq: intel_pstate: Always return last EPP value from sysfs

2020-08-25 Thread Srinivas Pandruvada
On Tue, 2020-08-25 at 16:51 +0200, Rafael J. Wysocki wrote: > On Tue, Aug 25, 2020 at 8:20 AM Artem Bityutskiy > wrote: > > On Mon, 2020-08-24 at 19:42 +0200, Rafael J. Wysocki wrote: > > > From: "Rafael J. Wysocki" > > > > > > Make the energy_performance_preference policy attribute in sysfs > >

Re: [PATCH v4 29/78] drm/vc4: crtc: Add a delay after disabling the PixelValve output

2020-08-25 Thread Maxime Ripard
Hi Stefan, On Wed, Jul 29, 2020 at 05:50:31PM +0200, Stefan Wahren wrote: > Am 29.07.20 um 16:42 schrieb Maxime Ripard: > > Hi, > > > > On Wed, Jul 29, 2020 at 03:09:21PM +0100, Dave Stevenson wrote: > >> On Wed, 8 Jul 2020 at 18:43, Maxime Ripard wrote: > >>> In order to avoid pixels getting stu

Re: [PATCH v2 1/1] mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary

2020-08-25 Thread Michal Hocko
On Mon 24-08-20 08:30:36, Suren Baghdasaryan wrote: > Currently __set_oom_adj loops through all processes in the system to > keep oom_score_adj and oom_score_adj_min in sync between processes > sharing their mm. This is done for any task with more that one mm_users, > which includes processes with

Re: [PATCH] ALSA: hda/realtek: Add quirk for Samsung Galaxy Book Ion 15 inches

2020-08-25 Thread Takashi Iwai
On Tue, 25 Aug 2020 16:36:13 +0200, Adrien Crivelli wrote: > > [1 ] > > I believe the code is correct (even though the diff is confusing), but I can > edit the commit message to also mention the model name. > > Should I submit the patch here as a reply ? or should I create a brand new > submiss

Re: [PATCH] rcu-tasks: Fix compilation warning with !CONFIG_TASKS_RCU and CONFIG_TINY_RCU

2020-08-25 Thread Paul E. McKenney
On Sun, Aug 23, 2020 at 06:04:05AM +0300, Laurent Pinchart wrote: > Commit 8344496e8b49 ("rcu-tasks: Conditionally compile > show_rcu_tasks_gp_kthreads()") introduced conditional compilation of > several functions, but forgot one occurrence of > show_rcu_tasks_classic_gp_kthread() that causes the c

[PATCH v7 12/12] powerpc/64s/radix: Enable huge vmalloc mappings

2020-08-25 Thread Nicholas Piggin
Cc: linuxppc-...@lists.ozlabs.org Signed-off-by: Nicholas Piggin --- Documentation/admin-guide/kernel-parameters.txt | 2 ++ arch/powerpc/Kconfig| 1 + 2 files changed, 3 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin

[PATCH v7 11/12] mm/vmalloc: Hugepage vmalloc mappings

2020-08-25 Thread Nicholas Piggin
Support huge page vmalloc mappings. Config option HAVE_ARCH_HUGE_VMALLOC enables support on architectures that define HAVE_ARCH_HUGE_VMAP and supports PMD sized vmap mappings. vmalloc will attempt to allocate PMD-sized pages if allocating PMD size or larger, and fall back to small pages if that wa

[PATCH v7 08/12] x86: inline huge vmap supported functions

2020-08-25 Thread Nicholas Piggin
This allows unsupported levels to be constant folded away, and so p4d_free_pud_page can be removed because it's no longer linked to. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: x...@kernel.org Cc: "H. Peter Anvin" Signed-off-by: Nicholas Piggin --- Ack or objection if this go

[PATCH v7 09/12] mm: Move vmap_range from mm/ioremap.c to mm/vmalloc.c

2020-08-25 Thread Nicholas Piggin
This is a generic kernel virtual memory mapper, not specific to ioremap. Signed-off-by: Nicholas Piggin --- include/linux/vmalloc.h | 3 + mm/ioremap.c| 197 mm/vmalloc.c| 196 +++ 3 files chan

[PATCH v7 06/12] powerpc: inline huge vmap supported functions

2020-08-25 Thread Nicholas Piggin
This allows unsupported levels to be constant folded away, and so p4d_free_pud_page can be removed because it's no longer linked to. Cc: linuxppc-...@lists.ozlabs.org Signed-off-by: Nicholas Piggin --- Ack or objection if this goes via the -mm tree? arch/powerpc/include/asm/vmalloc.h |

[PATCH v7 07/12] arm64: inline huge vmap supported functions

2020-08-25 Thread Nicholas Piggin
This allows unsupported levels to be constant folded away, and so p4d_free_pud_page can be removed because it's no longer linked to. Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Signed-off-by: Nicholas Piggin --- Ack or objection if this goes via the -mm tree?

[PATCH v7 05/12] mm: HUGE_VMAP arch support cleanup

2020-08-25 Thread Nicholas Piggin
This changes the awkward approach where architectures provide init functions to determine which levels they can provide large mappings for, to one where the arch is queried for each call. This removes code and indirection, and allows constant-folding of dead code for unsupported levels. This also

[PATCH v7 10/12] mm/vmalloc: add vmap_range_noflush variant

2020-08-25 Thread Nicholas Piggin
As a side-effect, the order of flush_cache_vmap() and arch_sync_kernel_mappings() calls are switched, but that now matches the other callers in this file. Signed-off-by: Nicholas Piggin --- mm/vmalloc.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/mm/vmal

[PATCH v7 03/12] mm/vmalloc: rename vmap_*_range vmap_pages_*_range

2020-08-25 Thread Nicholas Piggin
The vmalloc mapper operates on a struct page * array rather than a linear physical address, re-name it to make this distinction clear. Signed-off-by: Nicholas Piggin --- mm/vmalloc.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mm/vmalloc.c b/mm/vmalloc.c

[PATCH v7 01/12] mm/vmalloc: fix vmalloc_to_page for huge vmap mappings

2020-08-25 Thread Nicholas Piggin
vmalloc_to_page returns NULL for addresses mapped by larger pages[*]. Whether or not a vmap is huge depends on the architecture details, alignments, boot options, etc., which the caller can not be expected to know. Therefore HUGE_VMAP is a regression for vmalloc_to_page. This change teaches vmallo

[PATCH v7 02/12] mm: apply_to_pte_range warn and fail if a large pte is encountered

2020-08-25 Thread Nicholas Piggin
apply_to_pte_range might mistake a large pte for bad, or treat it as a page table, resulting in a crash or corruption. Add a test to warn and return error if large entries are found. Signed-off-by: Nicholas Piggin --- mm/memory.c | 60 +++-- 1 file

[PATCH v7 04/12] mm/ioremap: rename ioremap_*_range to vmap_*_range

2020-08-25 Thread Nicholas Piggin
This will be used as a generic kernel virtual mapping function, so re-name it in preparation. Signed-off-by: Nicholas Piggin --- mm/ioremap.c | 64 +++- 1 file changed, 33 insertions(+), 31 deletions(-) diff --git a/mm/ioremap.c b/mm/ioremap.c ind

[PATCH v7 00/12] huge vmalloc mappings

2020-08-25 Thread Nicholas Piggin
I think it's ready to go into -mm if it gets acks for the arch changes. Thanks, Nick Since v6: - Fixed a false positive warning introduced in patch 2, found by kbuild test robot. Since v5: - Split arch changes out better and make the constant folding work - Avoid most of the 80 column wrap, fi

[PATCH 09/13] lib/generic-radix-tree: Check sizeof(_type) when defining a tree.

2020-08-25 Thread David Laight
Move the check for the structure type being larger than PAGE_SIZE from every use to the definition of a tree. Signed-off-by: David Laight --- include/linux/generic-radix-tree.h | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/linux/generic-radix-tree.h b/incl

Re: [PATCH v5 9/9] arm64: dts: renesas: salvator: add a connection from adv748x codec (HDMI input) to the R-Car SoC

2020-08-25 Thread Kieran Bingham
Hi Alex, On 18/06/2020 17:32, Kieran Bingham wrote: > Hi Alex, > > On 02/04/2020 19:35, Alex Riesen wrote: >> As all known variants of the Salvator board have the HDMI decoder >> chip (the ADV7482) connected to the SSI4 on R-Car SoC, the ADV7482 >> endpoint and the connection definitions are plac

[PATCH 07/13] lib/generic-radix-tree: Optimise __genradix_iter_peek()

2020-08-25 Thread David Laight
Use the the 'shift' rather than the 'level'. NB There are exactly zero users of this code. Signed-off-by: David Laight --- lib/generic-radix-tree.c | 24 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/lib/generic-radix-tree.c b/lib/generic-radix-tree.c in

Re: [PATCH v2] x86/boot/compressed: Disable relocation relaxation

2020-08-25 Thread Arvind Sankar
On Sat, Aug 15, 2020 at 01:56:49PM -0700, Nick Desaulniers wrote: > Hi Ingo, > I saw you picked up Arvind's other series into x86/boot. Would you > mind please including this, as well? Our CI is quite red for x86... > > EOM > Hi Ingo, while this patch is unnecessary after the series in tip/x86

Re: [PATCH 16/29] 8390: Avoid comma separated statements

2020-08-25 Thread David Miller
From: Joe Perches Date: Mon, 24 Aug 2020 21:56:13 -0700 > Use semicolons and braces. > > Signed-off-by: Joe Perches Applied.

[PATCH 12/13] lib/generic-radix-tree: Inline genradix_ptr() for simple trees.

2020-08-25 Thread David Laight
Inline genradix_ptr() for trees that only contain 1 data page. While this increases code size somewhat it should improve performance. Signed-off-by: David Laight --- include/linux/generic-radix-tree.h | 38 ++ lib/generic-radix-tree.c | 19 +-- 2

[PATCH 2/2] media: v4l2-mem2mem: simplify poll logic a bit

2020-08-25 Thread Alexandre Courbot
Factorize redundant checks into a single code block, remove the early return, and declare variables in their innermost block. Hopefully this makes this code a little bit easier to follow. Signed-off-by: Alexandre Courbot --- drivers/media/v4l2-core/v4l2-mem2mem.c | 35 +++---

[PATCH 1/2] media: v4l2-mem2mem: consider OUTPUT queue first when polling

2020-08-25 Thread Alexandre Courbot
If poll() is called on a m2m device with the EPOLLOUT event after the last buffer of the CAPTURE queue is dequeued, any buffer available on OUTPUT queue will never be signaled because v4l2_m2m_poll_for_data() starts by checking whether dst_q->last_buffer_dequeued is set and returns EPOLLIN in this

[PATCH 0/2] media: v4l2-mem2mem: fix poll() bug

2020-08-25 Thread Alexandre Courbot
This addresses a very corner case that probably nobody ever encounters, but I have hit it when playing with vicoded so here is a tentative fix. Patch 1/2 addresses the issue that when the last buffer of a m2m device has been dequeued, any attempt to poll with EPOLLOUT will result in only EPOLLIN b

Re: [PATCH 27/29] ipv6: fib6: Avoid comma separated statements

2020-08-25 Thread David Miller
From: Joe Perches Date: Mon, 24 Aug 2020 21:56:24 -0700 > Use semicolons and braces. > > Signed-off-by: Joe Perches Applied.

Re: [PATCH 17/29] fs_enet: Avoid comma separated statements

2020-08-25 Thread David Miller
From: Joe Perches Date: Mon, 24 Aug 2020 21:56:14 -0700 > Use semicolons and braces. > > Signed-off-by: Joe Perches Applied.

Re: [PATCH 18/29] wan: sbni: Avoid comma separated statements

2020-08-25 Thread David Miller
From: Joe Perches Date: Mon, 24 Aug 2020 21:56:15 -0700 > Use semicolons and braces. > > Signed-off-by: Joe Perches Applied.

Re: [PATCH 28/29] sunrpc: Avoid comma separated statements

2020-08-25 Thread David Miller
From: Joe Perches Date: Mon, 24 Aug 2020 21:56:25 -0700 > Use semicolons and braces. > > Signed-off-by: Joe Perches Applied.

[PATCH 10/13] lib/generic-radix-tree: Simplify offset calculation:

2020-08-25 Thread David Laight
Since these are equivalent: (idx / objs_per_page) * PAGE_SIZE + (idx % objs_per_page) * obj_size; idx * obj_size + (idx / objs_per_page) * (PAGE_SIZE % obj_size); Use the latter since it is slightly faster. It also deosn't need an extra check for obj_size being a power of 2. Signed-off-by:

Re: [PATCH v2] kobject: Restore old behaviour of kobject_del(NULL)

2020-08-25 Thread Andy Shevchenko
On Mon, Aug 03, 2020 at 11:46:59AM +0200, Greg Kroah-Hartman wrote: > On Mon, Aug 03, 2020 at 11:27:06AM +0300, Andy Shevchenko wrote: > > The commit 079ad2fb4bf9 ("kobject: Avoid premature parent object freeing in > > kobject_cleanup()") inadvertently dropped a possibility to call > > kobject_del

[PATCH 05/13] lib/generic-radix-tree: Optimise __genradix_ptr_alloc()

2020-08-25 Thread David Laight
Take the code that allocates an new page and inserts it in the tree out of line. It is uncommon (and already expensive). Optimise for the common case where the entire tree fits in one page. Signed-off-by: David Laight --- lib/generic-radix-tree.c | 111 ++- 1

Re: [PATCH 0/3] PM operations for software nodes

2020-08-25 Thread Andy Shevchenko
On Tue, Aug 25, 2020 at 04:59:48PM +0300, Heikki Krogerus wrote: > Hi guys, > > Unfortunately the last patch depends on this: > https://lore.kernel.org/linux-usb/20200821131101.81915-1-heikki.kroge...@linux.intel.com/ > > Would it be easiest that Felipe took care of these (assuming they are > acc

[PATCH 08/13] lib/generic-radix-tree: Save number of bits to shift instead of tree level.

2020-08-25 Thread David Laight
Saving the 'number of bits to shift' to get the array index rather than the 'level' saves the shift = level * 9 + 3 calculations. In addition a shift of zero only happens for an NULL pointer, so the 'indirect into a single page' check can be optimised for. Signed-off-by: David Laight --- lib/gen

[PATCH 13/13] lib/generic-radix-tree: Simplify __genradix_ptr()

2020-08-25 Thread David Laight
Now that requests for small trees are inlined there is no need to aggressively optimise for them in __genradix_ptr(). Signed-off-by: David Laight --- lib/generic-radix-tree.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/generic-radix-tree.c b/lib/generic-radix

[PATCH 03/13] lib/generic-radix-tree: Always use low 8 bits of 'root' for depth.

2020-08-25 Thread David Laight
There is no need to calculate the minimum number of bits needed for the depth (stored in the low bits of the pointer to the root). Since the root is PAGE_SIZE aligned and we can't need more than 64bits just use the low 8 bits for the depth. This (probably) generates better code on x86 then using (s

[PATCH 06/13] lib/generic-radix-tree: Rename gfp_mask to gfp to shorten lines.

2020-08-25 Thread David Laight
Rename gfp_mask to gfp to shorten lines. Signed-off-by: David Laight --- lib/generic-radix-tree.c | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/lib/generic-radix-tree.c b/lib/generic-radix-tree.c index b378e10c8fa4..219b43250a06 100644 --- a/l

[PATCH 02/13] lib/generic-radix-tree: Optimise out ilog2(variable).

2020-08-25 Thread David Laight
ilog2() is relatively expensive (especially without bit-scan instructions). Replace the comparisons 'ilog2(x) >= y' with '(x >> y) != 0'. Signed-off-by: David Laight --- lib/generic-radix-tree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/generic-radix-tree.c b/

[PATCH 01/13] lib/generic-radix-tree: Fix potentially corrupt tree

2020-08-25 Thread David Laight
If the last cmpxchg() done when increasing the tree depth fails (because another caller has done a concurrent update) the 'new_node' is reused later for either a array of pointers or the user data. However the new_node->children[0] has been set non-zero this will either end up being treated as a po

[PATCH 11/13] lib/generic-radix-tree: Pass the root pointer to __genradix_ptr.

2020-08-25 Thread David Laight
It can't modify it, so no point passing the address of the pointer. Signed-off-by: David Laight --- include/linux/generic-radix-tree.h | 4 ++-- lib/generic-radix-tree.c | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/linux/generic-radix-tree.h b/includ

[PATCH 04/13] lib/generic-radix-tree: Optimise __genradix_ptr()

2020-08-25 Thread David Laight
While gcc managed to convert the 'level' loop into one that changed the 'shift' it couldn't convert '(offset & mask) >> n' to '(offset >> n) & 511' so avoiding body of genradix_depth_size(). Perform both optimisations in the source. Also optimise for the common (given the only users of this code)

Re: [PATCH v2 2/5] cpufreq: intel_pstate: Always return last EPP value from sysfs

2020-08-25 Thread Rafael J. Wysocki
On Tue, Aug 25, 2020 at 8:20 AM Artem Bityutskiy wrote: > > On Mon, 2020-08-24 at 19:42 +0200, Rafael J. Wysocki wrote: > > From: "Rafael J. Wysocki" > > > > Make the energy_performance_preference policy attribute in sysfs > > always return the last EPP value written to it instead of the one > >

[PATCH 00/13] lib/generic-radix-tree: genradix bug fix and optimisations.

2020-08-25 Thread David Laight
The genradix code is used by SCTP for accessing per-stream data. This means there are quite a lot of lookups but the code wasn't really optimised at all. Patch 1 fixes a rather nasty bug that could cause all sorts of oddities including having a loop in a tree. Fortunately the only 2 users of the g

Re: [PATCH] arm64: traps: clean up arm64_ras_serror_get_severity()

2020-08-25 Thread James Morse
Hi Zhang, On 12/08/2020 12:09, Liguang Zhang wrote: > Function arm64_is_fatal_ras_serror() is always called after > arm64_is_ras_serror(), so we should remove some needless > arm64_is_ras_serror() call in function arm64_ras_serror_get_severity(). > diff --git a/arch/arm64/include/asm/traps.h b/ar

Re: [PATCH] rtc: sun6i: Fix memleak in sun6i_rtc_clk_init

2020-08-25 Thread Chen-Yu Tsai
On Sun, Aug 23, 2020 at 3:59 PM Dinghao Liu wrote: > > When clk_hw_register_fixed_rate_with_accuracy() fails, > clk_data should be freed. It's the same for the subsequent > error paths. I suppose you should also unregister the already registered clocks in the latter two error paths? > Signed-off

Re: [PATCH 1/3] dt-bindings: dmaengine: Document qcom,gpi dma binding

2020-08-25 Thread Vinod Koul
Hey Rob, On 24-08-20, 11:40, Rob Herring wrote: > On Mon, 24 Aug 2020 14:17:10 +0530, Vinod Koul wrote: > > Add devicetree binding documentation for GPI DMA controller > > implemented on Qualcomm SoCs > > > > Signed-off-by: Vinod Koul > > --- > > .../devicetree/bindings/dma/qcom-gpi.yaml |

Re: [PATCH] net: caif: fix error code handling

2020-08-25 Thread David Miller
From: Tong Zhang Date: Mon, 24 Aug 2020 18:08:06 -0400 > cfpkt_peek_head return 0 and 1, caller is checking error using <0 > > Signed-off-by: Tong Zhang Applied, thank you.

Re: [PATCH] iomap: Fix the write_count in iomap_add_to_ioend().

2020-08-25 Thread Brian Foster
cc Ming On Tue, Aug 25, 2020 at 10:42:03AM +1000, Dave Chinner wrote: > On Mon, Aug 24, 2020 at 11:48:41AM -0400, Brian Foster wrote: > > On Mon, Aug 24, 2020 at 04:04:17PM +0100, Christoph Hellwig wrote: > > > On Mon, Aug 24, 2020 at 10:28:23AM -0400, Brian Foster wrote: > > > > Do I understand t

Re: [PATCH V4] net: dsa: mt7530: Add of_node_put() before break and return statements

2020-08-25 Thread David Miller
From: Sumera Priyadarsini Date: Tue, 25 Aug 2020 01:33:11 +0530 > Every iteration of for_each_child_of_node() decrements > the reference count of the previous node, however when control > is transferred from the middle of the loop, as in the case of > a return or break or goto, there is no decrem

[PATCH 1/2] cper, apei, mce: Pass x86 CPER through the MCA handling chain

2020-08-25 Thread Smita Koralahalli
Linux Kernel uses ACPI Boot Error Record Table (BERT) to report fatal errors that occurred in a previous boot. The MCA errors in the BERT are reported using the x86 Processor Error Common Platform Error Record (CPER) format. Currently, the record prints out the raw MSR values and AMD relies on the

[PATCH 0/2] Decode raw MSR values of MCA registers in BERT

2020-08-25 Thread Smita Koralahalli
This series provides better decoding for SMCA specific raw MSR values in BERT reported using x86 Processor Error Common Platform Error Record (CPER) format. Patch 1 extracts the raw MSR values of MCA registers in BERT and passes it through the MCA handling chain. Patch 2 provides a fix of missing

[PATCH 2/2] x86/mce/dev-mcelog: Fix updating kflags in AMD systems

2020-08-25 Thread Smita Koralahalli
The mcelog utility is not commonly used on AMD systems. Therefore, errors logged only by the dev_mce_log() notifier will be missed. This may occur if the EDAC modules are not loaded in which case it's preferable to print the error record by the default notifier. However, the mce->kflags set by dev

Re: [linux-sunxi] [PATCH] clk: sunxi-ng: sun8i: r40: Use sigma delta modulation for audio PLL

2020-08-25 Thread Chen-Yu Tsai
On Tue, Aug 25, 2020 at 9:11 PM Jernej Skrabec wrote: > > Audio cores need specific clock rates which can't be simply obtained by > adjusting integer multipliers and dividers. HW for such cases supports > delta-sigma modulation which enables fractional multipliers. > > Port H3 delta-sigma table to

Re: [PATCH v2 0/6] dmaengine: axi-dmac: add support for reading bus attributes from register

2020-08-25 Thread Vinod Koul
On 25-08-20, 15:48, Alexandru Ardelean wrote: > The series adds support for reading the DMA bus attributes from the > INTERFACE_DESCRIPTION (0x10) register. > > The first 5 changes are a bit of rework prior to adding the actual > change in patch 6, as things need to be shifted around a bit, to ena

Re: [PATCH] MAINTAINERS: add LLVM maintainers

2020-08-25 Thread Sedat Dilek
On Tue, Aug 25, 2020 at 4:35 PM 'Nick Desaulniers' via Clang Built Linux wrote: > > Nominate Nathan and myself to be point of contact for clang/LLVM related > support, after a poll at the LLVM BoF at Linux Plumbers Conf 2020. > > While corporate sponsorship is beneficial, its important to not entr

Re: [PATCH] MAINTAINERS: add LLVM maintainers

2020-08-25 Thread Nathan Chancellor
On Tue, Aug 25, 2020 at 07:35:40AM -0700, Nick Desaulniers wrote: > Nominate Nathan and myself to be point of contact for clang/LLVM related > support, after a poll at the LLVM BoF at Linux Plumbers Conf 2020. > > While corporate sponsorship is beneficial, its important to not entrust > the keys t

Re: [PATCH] net: usb: Fix uninit-was-stored issue in asix_read_cmd()

2020-08-25 Thread Greg Kroah-Hartman
On Tue, Aug 25, 2020 at 10:39:46AM -0400, Alan Stern wrote: > On Tue, Aug 25, 2020 at 08:51:35AM +0200, Greg Kroah-Hartman wrote: > > At first glance, I think this can all be cleaned up, but it will take a > > bit of tree-wide work. I agree, we need a "read this message and error > > if the whole

Re: [PATCH] clk: sunxi-ng: sun8i: r40: Use sigma delta modulation for audio PLL

2020-08-25 Thread Maxime Ripard
On Tue, Aug 25, 2020 at 03:10:49PM +0200, Jernej Skrabec wrote: > Audio cores need specific clock rates which can't be simply obtained by > adjusting integer multipliers and dividers. HW for such cases supports > delta-sigma modulation which enables fractional multipliers. > > Port H3 delta-sigma

[PATCH] drm/vkms: fix warning in vkms_get_vblank_timestamp

2020-08-25 Thread Sidong Yang
From: Sidong Yang , Haneen Mohammed When vkms_get_vblank_timestamp() is called very first time without enabling vblank before, vblank time has just intial value and it makes warning message. this patch prevents warning message by setting vblank time to current time. Cc: Daniel Vetter Cc: Rodri

Re: [PATCH v2 2/2] mm/rmap: Fixup copying of soft dirty and uffd ptes

2020-08-25 Thread Peter Xu
On Tue, Aug 25, 2020 at 04:42:32PM +1000, Alistair Popple wrote: > During memory migration a pte is temporarily replaced with a migration > swap pte. Some pte bits from the existing mapping such as the soft-dirty > and uffd write-protect bits are preserved by copying these to the > temporary migrat

Re: [PATCH v2 1/1] mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary

2020-08-25 Thread Christian Brauner
On Tue, Aug 25, 2020 at 07:24:34AM -0700, Suren Baghdasaryan wrote: > On Tue, Aug 25, 2020 at 4:15 AM Christian Brauner > wrote: > > > > On Mon, Aug 24, 2020 at 08:30:36AM -0700, Suren Baghdasaryan wrote: > > > Currently __set_oom_adj loops through all processes in the system to > > > keep oom_sco

Re: [PATCH 7/7] [NOT FOR MERGE] ARM: dts: sun8i: a83t: bananapi-m3: Enable OV8865 camera

2020-08-25 Thread Maxime Ripard
Hi, On Fri, Aug 21, 2020 at 04:59:35PM +0200, Kévin L'hôpital wrote: > The Bananapi M3 supports a camera module which includes an > OV8865 sensor connected via the parallel CSI interface and > an OV8865 sensor connected via MIPI CSI-2. > > The I2C2 bus is shared by the two sensors as well as acti

Re: (EXT) Re: (EXT) Re: [PATCH 2/2] ARM: dts: imx6qdl: tqma6: minor fixes

2020-08-25 Thread Matthias Schiffer
On Tue, 2020-08-25 at 11:24 -0300, Fabio Estevam wrote: > Hi Matthias, > > On Tue, Aug 25, 2020 at 4:22 AM Matthias Schiffer > wrote: > > > Hmm, unless I'm overlooking something, this is not going to work: > > > > - spi_get_gpio_descs() sets num_chipselect to the maximum of the > > num_chipsele

Re: [PATCH] net: usb: Fix uninit-was-stored issue in asix_read_cmd()

2020-08-25 Thread Alan Stern
On Tue, Aug 25, 2020 at 08:51:35AM +0200, Greg Kroah-Hartman wrote: > At first glance, I think this can all be cleaned up, but it will take a > bit of tree-wide work. I agree, we need a "read this message and error > if the whole thing is not there", as well as a "send this message and > error if

Re: [PATCH 5/7] media: sunxi: sun6i-csi: Add support of MIPI CSI-2 for A83T

2020-08-25 Thread Maxime Ripard
Hi, On Fri, Aug 21, 2020 at 04:59:33PM +0200, Kévin L'hôpital wrote: > This patch add the support only for the Allwinner A83T MIPI CSI2 > > Currently, the driver is not supported the other Allwinner V3's MIPI CSI2 > > It has been tested with the ov8865 image sensor. > > Signed-off-by: Kévin L'h

Re: [PATCH 5/9] rpmsg: introduce reserved rpmsg driver for ns announcement

2020-08-25 Thread Mathieu Poirier
On Tue, 25 Aug 2020 at 05:57, Arnaud POULIQUEN wrote: > > Hi Mathieu > > Thanks for the review! please find few comments below. > > On 8/25/20 12:47 AM, Mathieu Poirier wrote: > > On Fri, Jul 31, 2020 at 01:47:28PM +0200, Arnaud Pouliquen wrote: > >> The name service announcement should not be lin

Re: [PATCH] drm/msm: drop cache sync hack

2020-08-25 Thread Rob Clark
On Mon, Aug 24, 2020 at 11:52 PM Christoph Hellwig wrote: > > On Sat, Aug 22, 2020 at 10:52:54AM -0700, Rob Clark wrote: > > From: Rob Clark > > > > Now that it isn't causing problems to use dma_map/unmap, we can drop the > > hack of using dma_sync in certain cases. > > Great to see! What did so

[PATCH] MAINTAINERS: add LLVM maintainers

2020-08-25 Thread Nick Desaulniers
Nominate Nathan and myself to be point of contact for clang/LLVM related support, after a poll at the LLVM BoF at Linux Plumbers Conf 2020. While corporate sponsorship is beneficial, its important to not entrust the keys to the nukes with any one entity. Should Nathan and I find ourselves at the s

Re: [PATCH v2 1/1] mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary

2020-08-25 Thread Oleg Nesterov
On 08/24, Suren Baghdasaryan wrote: > > v2: > - Implemented proposal from Michal Hocko in: > https://lore.kernel.org/linux-fsdevel/20200820124109.gi5...@dhcp22.suse.cz/ > - Updated description to reflect the change Looks good to me, Oleg.

Re: [PATCH 2/3] software node: Introduce device_add_software_node()

2020-08-25 Thread Andy Shevchenko
On Tue, Aug 25, 2020 at 05:32:28PM +0300, Andy Shevchenko wrote: > On Tue, Aug 25, 2020 at 04:59:50PM +0300, Heikki Krogerus wrote: > > This helper will register a software node and then assign > > it to device at the same time. The function will also make > > sure that the device can't have more t

Re: linux-next: build failure after merge of the bpf-next tree

2020-08-25 Thread Alexei Starovoitov
On Mon, Aug 24, 2020 at 11:50 PM Stephen Rothwell wrote: > > Hi Alexei, > > On Mon, 24 Aug 2020 20:27:28 -0700 Alexei Starovoitov > wrote: > > > > I didn't receive the first email you've replied to. > > The build error is: > > " > > No libelf found > > make[5]: *** [Makefile:284: elfdep] Error 1

[PATCH] pinctrl: devicetree: Keep deferring even on timeout

2020-08-25 Thread Thierry Reding
From: Thierry Reding driver_deferred_probe_check_state() may return -ETIMEDOUT instead of -EPROBE_DEFER after all built-in drivers have been probed. This can cause issues for built-in drivers that depend on resources provided by loadable modules. One such case happens on Tegra where I2C controll

Re: [PATCH 2/3] software node: Introduce device_add_software_node()

2020-08-25 Thread Andy Shevchenko
On Tue, Aug 25, 2020 at 04:59:50PM +0300, Heikki Krogerus wrote: > This helper will register a software node and then assign > it to device at the same time. The function will also make > sure that the device can't have more than one software node. > + /* Only one software node per device. */

[PATCH] ath11k: return error if firmware request fails

2020-08-25 Thread Alex Dewar
In ath11k_qmi_prepare_bdf_download(), ath11k_core_firmware_request() is called, but the returned pointer is not checked for errors. Rather the variable ret (which will always be zero) is checked by mistake. Fix this and replace the various gotos with simple returns for clarity. While we are at it,

Re: [PATCH] drm/bridge/tc358775: Fixes bus formats read

2020-08-25 Thread Vinay Simha B N
laurent, Please review or give some feedback. On Thu, Aug 13, 2020 at 9:09 PM Vinay Simha B N wrote: > > laurent, > > The code sequence was a problem. *num_inputs_fmts = > ARRAY_SIZE(tc_lvds_in_bus_fmts); should come first and then allocate > the kcalloc. > > input_fmts = kcalloc(*num_input_fmts

Re: [PATCH v2 1/1] mm, oom_adj: don't loop through tasks in __set_oom_adj when not necessary

2020-08-25 Thread Suren Baghdasaryan
On Tue, Aug 25, 2020 at 4:15 AM Christian Brauner wrote: > > On Mon, Aug 24, 2020 at 08:30:36AM -0700, Suren Baghdasaryan wrote: > > Currently __set_oom_adj loops through all processes in the system to > > keep oom_score_adj and oom_score_adj_min in sync between processes > > sharing their mm. Thi

Re: (EXT) Re: [PATCH 2/2] ARM: dts: imx6qdl: tqma6: minor fixes

2020-08-25 Thread Fabio Estevam
Hi Matthias, On Tue, Aug 25, 2020 at 4:22 AM Matthias Schiffer wrote: > Hmm, unless I'm overlooking something, this is not going to work: > > - spi_get_gpio_descs() sets num_chipselect to the maximum of the > num_chipselect set in the driver and the number of cs-gpios > > - spi_imx_probe() sets

Re: [PATCH] regulator: rt4801: Specify additionalProperties: false

2020-08-25 Thread Rob Herring
On Tue, Aug 25, 2020 at 4:13 AM Mark Brown wrote: > > Reported-by: Rob Herring > Signed-off-by: Mark Brown > --- > .../devicetree/bindings/regulator/richtek,rt4801-regulator.yaml | 2 ++ > 1 file changed, 2 insertions(+) Thanks. Reviewed-by: Rob Herring

Re: x86/kprobes: kretprobe fails to triggered if kprobe at function entry is not optimized (trigger by int3 breakpoint)

2020-08-25 Thread Masami Hiramatsu
On Tue, 25 Aug 2020 16:10:58 +0200 pet...@infradead.org wrote: > On Tue, Aug 25, 2020 at 03:30:05PM +0200, pet...@infradead.org wrote: > > On Tue, Aug 25, 2020 at 10:15:55PM +0900, Masami Hiramatsu wrote: > > > > OK, this looks good to me too. > > > I'll make a series to rewrite kretprobe based o

[PATCH 1/2] dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a7742 support

2020-08-25 Thread Lad Prabhakar
Document RZ/G1H (R8A7742) SoC bindings. No driver change is needed due to the fallback compatible value "renesas,ipmmu-vmsa". Signed-off-by: Lad Prabhakar Reviewed-by: Chris Paterson --- Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 1 + 1 file changed, 1 insertion(+) diff

[PATCH 2/2] ARM: dts: r8a7742: Add IPMMU DT nodes

2020-08-25 Thread Lad Prabhakar
Add the five IPMMU instances found in the r8a7742 to DT with a disabled status. Signed-off-by: Lad Prabhakar Reviewed-by: Chris Paterson --- arch/arm/boot/dts/r8a7742.dtsi | 48 ++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/boot/dts/r8a7742.dtsi b/ar

[PATCH 0/2] r8a7742 SoC add IPMMU support

2020-08-25 Thread Lad Prabhakar
Hi All, This patch series adds IPMMU support to R8A7742 (RZ/G1H) SoC dtsi. Cheers, Prabhakar Lad Prabhakar (2): dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a7742 support ARM: dts: r8a7742: Add IPMMU DT nodes .../bindings/iommu/renesas,ipmmu-vmsa.yaml| 1 + arch/arm/boot/dts/r8a7742.

Re: [PATCH 4/5] ARM: dts: aspeed: minipack: Update 64MB FMC flash layout

2020-08-25 Thread Patrick Williams
On Mon, Aug 24, 2020 at 02:19:47PM -0700, rentao.b...@gmail.com wrote: > From: Tao Ren > > Set 64Mb FMC flash layout in Minipack device tree explicitly because the > flash layout was removed from "ast2500-facebook-netbmc-common.dtsi". > > Please note "data0" partition' size is updated to 4MB to

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