[PATCH v2 19/19] mips/vdso: Migrate to generic vdso_base

2020-11-23 Thread Dmitry Safonov
Generic way to track the landing vma area. As a bonus, after unmapping sigpage, kernel won't try to land on its previous position (due to UNMAPPED_VDSO_BASE check instead of context.vdso ?= 0 check). Cc: Thomas Bogendoerfer Cc: linux-m...@vger.kernel.org Signed-off-by: Dmitry Safonov ---

[PATCH v2 18/19] arm64/vdso: Migrate native signals to generic vdso_base

2020-11-23 Thread Dmitry Safonov
Generic way to track the land vma area. As a bonus, after unmapping vdso, kernel won't try to land on its previous position (due to UNMAPPED_VDSO_BASE check instead of context.vdso ?= 0 check). Signed-off-by: Dmitry Safonov --- arch/arm64/kernel/signal.c | 10 +++---

[PATCH v2 16/19] arm/vdso: Migrate to generic vdso_base

2020-11-23 Thread Dmitry Safonov
Generic way to track the landing vma area. As a bonus, after unmapping sigpage, kernel won't try to land on its previous position (due to UNMAPPED_VDSO_BASE check instead of context.vdso ?= 0 check). Signed-off-by: Dmitry Safonov --- arch/arm/Kconfig | 1 + arch/arm/kernel/process.c |

[PATCH v2 17/19] arm64/vdso: Migrate compat signals to generic vdso_base

2020-11-23 Thread Dmitry Safonov
Generic way to track the landing vma area. As a bonus, after unmapping sigpage, kernel won't try to land on its previous position (due to UNMAPPED_VDSO_BASE check instead of context.vdso ?= 0 check). Signed-off-by: Dmitry Safonov --- arch/arm64/Kconfig | 1 +

[PATCH v2 12/19] x86/signal: Land on >retcode when vdso isn't mapped

2020-11-23 Thread Dmitry Safonov
Since commit 9fbbd4dd17d0 ("x86: Don't require the vDSO for handling a.out signals") after processing 32-bit signal if there is no vdso mapped frame->retcode is used as a landing. Do the same for rt ia32 signals. It also makes the ia32 compat signals match the native ia32 case. This shouldn't be

[PATCH v2 14/19] mm: Add vdso_base in mm_struct

2020-11-23 Thread Dmitry Safonov
Instead of having every architecture to define vdso_base/vdso_addr etc, provide a generic mechanism to track vdso_base for landing in userspace. It'll minimize per-architecture difference, the number of callbacks to provide. Originally, it started from thread [1] where the need for .close()

[PATCH v2 10/19] sparc/vdso: Remove vdso pointer from mm->context

2020-11-23 Thread Dmitry Safonov
Not used any more. Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Dmitry Safonov --- arch/sparc/include/asm/mmu_64.h | 1 - arch/sparc/vdso/vma.c | 5 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/sparc/include/asm/mmu_64.h

[PATCH v2 11/19] mm/mmap: Make vm_special_mapping::mremap return void

2020-11-23 Thread Dmitry Safonov
Previously .mremap() callback needed (int) return to provide way to restrict resizing of a special mapping. Now it's restricted by providing .may_split = special_mapping_split. Removing (int) return simplifies further changes to special_mapping_mremap() as it won't need save ret code from the

[PATCH v2 09/19] s390/vdso: Remove vdso_base pointer from mm->context

2020-11-23 Thread Dmitry Safonov
Not used any more. Cc: Christian Borntraeger Cc: Heiko Carstens Cc: Vasily Gorbik Cc: linux-s...@vger.kernel.org Signed-off-by: Dmitry Safonov --- arch/s390/include/asm/mmu.h | 1 - arch/s390/kernel/vdso.c | 10 -- 2 files changed, 11 deletions(-) diff --git

[PATCH v2 04/19] x86: Remove compat_arch_setup_additional_pages()

2020-11-23 Thread Dmitry Safonov
The same as for x32 task, detect ia32 task by in_ia32_syscall(). It's valid as execed task is pretending to be in a syscall of relevant bitness/ABI, see the comment near in_32bit_syscall(). Removing compat_arch_setup_additional_pages() provides single point of entry -

[PATCH v2 05/19] elf: Remove compat_arch_setup_additional_pages()

2020-11-23 Thread Dmitry Safonov
Now that all users rely on detecting bitness of new-born task checking personality, remove compat_arch_setup_additional_pages() macro, simplifying the code. Signed-off-by: Dmitry Safonov --- fs/compat_binfmt_elf.c | 5 - 1 file changed, 5 deletions(-) diff --git a/fs/compat_binfmt_elf.c

[PATCH v2 07/19] elf: Use sysinfo_ehdr in ARCH_DLINFO()

2020-11-23 Thread Dmitry Safonov
Instead mm->context.vdso use the pointer provided by elf loader. That allows to drop the pointer on arm/s390/sparc. Cc: Christian Borntraeger Cc: Heiko Carstens Cc: Vasily Gorbik Cc: linux-s...@vger.kernel.org Cc: "David S. Miller" Cc: sparcli...@vger.kernel.org Signed-off-by: Dmitry Safonov

[PATCH v2 01/19] x86/elf: Check in_x32_syscall() in compat_arch_setup_additional_pages()

2020-11-23 Thread Dmitry Safonov
Partly revert commit 3316ec8ccd34 ("x86/elf: Use e_machine to check for x32/ia32 in setup_additional_pages()") and commit 9a29a671902c ("elf: Expose ELF header on arch_setup_additional_pages()". Both patches did a good thing: removed usage of TIF_X32, but with a price of additional macros

[PATCH v2 00/19] Add generic vdso_base tracking

2020-11-23 Thread Dmitry Safonov
noted that currently a couple of architectures support mremap() for vdso/sigpage, but not munmap(). If an application maps something on the ex-place of vdso/sigpage, later after processing signal it will land there (good luck!) Patches set is based on linux-next (next-20201123) and it depends on cha

[PATCH v2 03/19] arm64: Use in_compat_task() in arch_setup_additional_pages()

2020-11-23 Thread Dmitry Safonov
Instead of providing compat_arch_setup_additional_pages(), check if the task is compatible from personality, which is set earlier in load_elf_binary(). That will align code with powerpc and sparc, also it'll allow to completely remove compat_arch_setyp_addtional_pages() macro after doing the same

arch/s390/include/asm/atomic_ops.h:56:45: error: invalid operand for inline asm constraint 'i'

2020-11-23 Thread kernel test robot
Hi Vasily, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 418baf2c28f3473039f2f7377760bd8f6897ae18 commit: f0cbd3b83ed47803df941865f720934c69abb803 s390/atomic: circumvent gcc 10 build regression date: 3 months

Re: [PATCH v2 1/6] bus: mhi: core: Allow receiving a STOP channel command response

2020-11-23 Thread Bhaumik Bhatt
On 2020-11-21 09:16 AM, Manivannan Sadhasivam wrote: On Mon, Nov 16, 2020 at 09:36:09AM -0800, Bhaumik Bhatt wrote: Hi Mani, On 2020-11-15 23:13, Manivannan Sadhasivam wrote: > On Wed, Nov 11, 2020 at 11:21:08AM -0800, Bhaumik Bhatt wrote: > > Add support to receive the response to a STOP

Re: linux-next: build failure in Linus' tree

2020-11-23 Thread Daniel Axtens
Thanks sfr and mpe. > Applied to powerpc/fixes. > > [1/1] powerpc/64s: Fix allnoconfig build since uaccess flush > > https://git.kernel.org/powerpc/c/b6b79dd53082db11070b4368d85dd6699ff0b063 We also needed a similar fix for stable, which has also been applied. I guess I should build some

Re: [patch 14/19] softirq: Make softirq control and processing RT aware

2020-11-23 Thread Thomas Gleixner
Frederic, On Tue, Nov 24 2020 at 01:13, Frederic Weisbecker wrote: > On Tue, Nov 24, 2020 at 01:06:15AM +0100, Thomas Gleixner wrote: >> Good point. Haven't thought about that. Let me have a look again. > > But I'm cooking a patchset which moves account_irq_enter_time() after > HARDIRQ_OFFSET or

[PATCH] input: soc_button_array: fix IRQ-related build errors

2020-11-23 Thread Randy Dunlap
Input: soc_button_array - work around DSDTs which modify the irqflags") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Hans de Goede Cc: Dmitry Torokhov Cc: linux-in...@vger.kernel.org --- drivers/input/misc/soc_button_array.c |1 + 1 file changed, 1 insertion(+) --- linux-nex

Re: [RFC PATCH 5/9] cxl/mem: Find device capabilities

2020-11-23 Thread Ben Widawsky
On 20-11-17 15:15:19, Jonathan Cameron wrote: > On Tue, 10 Nov 2020 21:43:52 -0800 > Ben Widawsky wrote: > > > CXL devices contain an array of capabilities that describe the > > interactions software can interact with the device, or firmware running > > on the device. A CXL compliant device must

Re: [patch 14/19] softirq: Make softirq control and processing RT aware

2020-11-23 Thread Frederic Weisbecker
On Tue, Nov 24, 2020 at 01:06:15AM +0100, Thomas Gleixner wrote: > On Tue, Nov 24 2020 at 00:58, Frederic Weisbecker wrote: > > On Mon, Nov 23, 2020 at 08:27:33PM +0100, Thomas Gleixner wrote: > >> On Mon, Nov 23 2020 at 14:44, Frederic Weisbecker wrote: > >> > On Fri, Nov 13, 2020 at 03:02:21PM

Re: [PATCH v5] arm64: dts: marvell: add DT for ESPRESSObin-Ultra

2020-11-23 Thread Pali Rohár
On Monday 26 October 2020 19:44:42 Vladimir Vid wrote: > This adds support for ESPRESSObin-Ultra from Globalscale. > > Specifications are similar to the base ESPRESSObin board, with main > difference being being WAN port with PoE capability and 2 additional ethernet > ports. > > Full

Re: [PATCH bpf-next v7 00/34] bpf: switch to memcg-based memory accounting

2020-11-23 Thread Roman Gushchin
On Mon, Nov 23, 2020 at 02:30:09PM +0100, Daniel Borkmann wrote: > On 11/19/20 6:37 PM, Roman Gushchin wrote: > > Currently bpf is using the memlock rlimit for the memory accounting. > > This approach has its downsides and over time has created a significant > > amount of problems: > > > > 1) The

Re: [patch 14/19] softirq: Make softirq control and processing RT aware

2020-11-23 Thread Thomas Gleixner
On Tue, Nov 24 2020 at 00:58, Frederic Weisbecker wrote: > On Mon, Nov 23, 2020 at 08:27:33PM +0100, Thomas Gleixner wrote: >> On Mon, Nov 23 2020 at 14:44, Frederic Weisbecker wrote: >> > On Fri, Nov 13, 2020 at 03:02:21PM +0100, Thomas Gleixner wrote: >> >> + /* >> >> + * Adjust softirq count

[PATCH 2/3] pinctrl: qcom: Allow SoCs to specify a GPIO function that's not 0

2020-11-23 Thread Douglas Anderson
There's currently a comment in the code saying function 0 is GPIO. Instead of hardcoding it, let's add a member where an SoC can specify it. No known SoCs use a number other than 0, but this just makes the code clearer. NOTE: no SoC code needs to be updated since we can rely on

[PATCH 3/3] pinctrl: qcom: Clear possible pending irq when remuxing GPIOs

2020-11-23 Thread Douglas Anderson
Conceptually, we can envision the input on Qualcomm SoCs to pass through a bunch of blocks between coming into the chip and becoming a GPIO interrupt. From guessing and running a handful of tests, I believe that we can represent the state of the world with a drawing that looks something like

[PATCH 1/3] irqchip: qcom-pdc: Fix phantom irq when changing between rising/falling

2020-11-23 Thread Douglas Anderson
We have a problem if we use gpio-keys and configure wakeups such that we only want one edge to wake us up. AKA: wakeup-event-action = ; wakeup-source; Specifically we end up with a phantom interrupt that blocks suspend if the line was already high and we want wakeups on rising edges (AKA we

[PATCH] ACPI: processor: Drop duplicate setting of shared_cpu_map

2020-11-23 Thread Punit Agrawal
'shared_cpu_map', stored as part of the per-processor acpi_processor_performance structre, is used to store cpus that share a performance domain. By definition it contains the owning cpu. While building the 'shared_cpu_map' it is being set twice - once while initialising the performance domains

Re: [patch 14/19] softirq: Make softirq control and processing RT aware

2020-11-23 Thread Frederic Weisbecker
On Mon, Nov 23, 2020 at 08:27:33PM +0100, Thomas Gleixner wrote: > On Mon, Nov 23 2020 at 14:44, Frederic Weisbecker wrote: > > On Fri, Nov 13, 2020 at 03:02:21PM +0100, Thomas Gleixner wrote: > >> + /* > >> + * Adjust softirq count to SOFTIRQ_OFFSET which makes > >> + * in_serving_softirq()

Re: [PATCH v12 10/15] PCI/ERR: Limit AER resets in pcie_do_recovery()

2020-11-23 Thread Kelley, Sean V
Hi Bjorn, > On Nov 23, 2020, at 3:28 PM, Bjorn Helgaas wrote: > > On Fri, Nov 20, 2020 at 04:10:31PM -0800, Sean V Kelley wrote: >> In some cases a bridge may not exist as the hardware controlling may be >> handled only by firmware and so is not visible to the OS. This scenario is >> also

Re: [PATCH v4 0/2] media: mtk-vcodec: fix builds when remoteproc is disabled

2020-11-23 Thread Alexandre Courbot
Gentle ping about this - we are already well into the 5.10 cycle so we don't have much time left if we want to merge this build breakage fix... On Tue, Oct 13, 2020 at 9:44 PM Alexandre Courbot wrote: > > No functional changes since v3, but it does the job at fixing the build > breakage. :)

Re: [PATCH 3/3] remoteproc: k3-r5: Adjust TCM sizes in Split-mode on J7200 SoCs

2020-11-23 Thread Mathieu Poirier
Good afternoon Suman, On Wed, Nov 18, 2020 at 07:05:31PM -0600, Suman Anna wrote: > The J7200 SoCs have a revised R5FSS IP that adds a unique feature w.r.t > TCM sizing. Each R5F core in a cluster typically has 32 KB each of ATCM > and BTCM, with only the Core0 TCMs usable in LockStep mode. This

[PATCH] keys: Remove outdated __user annotations

2020-11-23 Thread Jann Horn
When the semantics of the ->read() handlers were changed such that "buffer" is a kernel pointer, some __user annotations survived. Since they're wrong now, get rid of them. Fixes: d3ec10aa9581 ("KEYS: Don't write out to userspace while holding key semaphore") Signed-off-by: Jann Horn ---

[PATCH v4] kcov, usbip: collect coverage from vhci_rx_loop

2020-11-23 Thread Andrey Konovalov
From: Nazime Hande Harputluoglu Add kcov_remote_start()/kcov_remote_stop() annotations to the vhci_rx_loop() function, which is responsible for parsing USB/IP packets coming into USB/IP client. Since vhci_rx_loop() threads are spawned per vhci_hcd device instance, the common kcov handle is used

Re: [PATCH v2] mm: memcontrol: account pagetables per node

2020-11-23 Thread kernel test robot
Hi Shakeel, Thank you for the patch! Yet something to improve: [auto build test ERROR on m68k/for-next] [also build test ERROR on driver-core/driver-core-testing linus/master v5.10-rc5 next-20201123] [cannot apply to mmotm/master cgroup/for-next hnaz-linux-mm/master] [If your patch is applied

Re: [RFC 2/2] perf-stat: enable counting events for BPF programs

2020-11-23 Thread Jiri Olsa
On Wed, Nov 18, 2020 at 08:50:46PM -0800, Song Liu wrote: > Introduce perf-stat -b option, which counts events for BPF programs, like: > > [root@localhost ~]# ~/perf stat -e ref-cycles,cycles -b 254 -I 1000 > 1.487903822115,200 ref-cycles > 1.487903822

[PATCH v5] kcov, usb: only collect coverage from __usb_hcd_giveback_urb in softirq

2020-11-23 Thread Andrey Konovalov
Currently there's a kcov remote coverage collection section in __usb_hcd_giveback_urb(). Initially that section was added based on the assumption that usb_hcd_giveback_urb() can only be called in interrupt context as indicated by a comment before it. This is what happens when syzkaller is fuzzing

Re: [PATCH v4 07/27] IB: fix kernel-doc markups

2020-11-23 Thread Jason Gunthorpe
On Mon, Nov 16, 2020 at 11:18:03AM +0100, Mauro Carvalho Chehab wrote: > +/** > + * ib_alloc_pd - Allocates an unused protection domain. > + * @device: The device on which to allocate the protection domain. > + * @flags: protection domain flags > + * > + * A protection domain object provides an

Re: [PATCH 01/29] iov_iter: Switch to using a table of operations

2020-11-23 Thread Pavel Begunkov
On 23/11/2020 10:31, David Howells wrote: > Christoph Hellwig wrote: > >> Please run performance tests. I think the indirect calls could totally >> wreck things like high performance direct I/O, especially using io_uring >> on x86. > > Here's an initial test using fio and null_blk. I left

Re: [PATCH v4] kcov, usb: only collect coverage from __usb_hcd_giveback_urb in softirq

2020-11-23 Thread Andrey Konovalov
On Fri, Nov 13, 2020 at 4:47 PM Marco Elver wrote: > > On Fri, 13 Nov 2020 at 14:42, Andrey Konovalov wrote: > > On Fri, Nov 13, 2020 at 2:28 PM Sebastian Andrzej Siewior > > wrote: > > > > > > On 2020-11-13 13:51:19 [+0100], Andrey Konovalov wrote: > > > > Hi Sebastian, > > > > > > Hi Andrey,

Re: [PATCH v3] kcov, usbip: collect coverage from vhci_rx_loop

2020-11-23 Thread Andrey Konovalov
On Mon, Oct 19, 2020 at 8:52 PM Shuah Khan wrote: > > On 10/19/20 12:49 PM, Shuah Khan wrote: > > On 10/19/20 11:20 AM, Andrey Konovalov wrote: > >> From: Nazime Hande Harputluoglu > >> > >> Add kcov_remote_start()/kcov_remote_stop() annotations to the > >> vhci_rx_loop() function, which is

Re: linux-next: build failure in Linus' tree

2020-11-23 Thread Michael Ellerman
On Mon, 23 Nov 2020 18:40:16 +1100, Stephen Rothwell wrote: > After merging most of the trees, today's linux-next build (powerpc64 > allnoconfig) failed like this: > > In file included from arch/powerpc/include/asm/kup.h:18, > from arch/powerpc/include/asm/uaccess.h:9, >

Re: [GIT PULL] Hyper-V fixes for 5.10-rc6

2020-11-23 Thread pr-tracker-bot
The pull request you sent on Mon, 23 Nov 2020 11:01:23 +: > ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git > tags/hyperv-fixes-signed has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d5beb3140f91b1c8a3d41b14d729aefa4dcc58bc Thank you! --

Re: [PATCH -tip 13/32] sched: Trivial forced-newidle balancer

2020-11-23 Thread Balbir Singh
On Mon, Nov 23, 2020 at 11:07:27PM +0800, Li, Aubrey wrote: > On 2020/11/23 12:38, Balbir Singh wrote: > > On Tue, Nov 17, 2020 at 06:19:43PM -0500, Joel Fernandes (Google) wrote: > >> From: Peter Zijlstra > >> > >> When a sibling is forced-idle to match the core-cookie; search for > >> matching

Re: [PATCH 053/141] selinux: Fix fall-through warnings for Clang

2020-11-23 Thread Paul Moore
On Fri, Nov 20, 2020 at 1:32 PM Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > by explicitly adding a break statement instead of letting the code fall > through to the next case. > > Link: https://github.com/KSPP/linux/issues/115 >

Re: [PATCH -tip 09/32] sched/fair: Snapshot the min_vruntime of CPUs on force idle

2020-11-23 Thread Balbir Singh
On Mon, Nov 23, 2020 at 07:31:31AM -0500, Vineeth Pillai wrote: > Hi Balbir, > > On 11/22/20 6:44 AM, Balbir Singh wrote: > > > > This seems cumbersome, is there no way to track the min_vruntime via > > rq->core->min_vruntime? > Do you mean to have a core wide min_vruntime? We had a > similar

Re: [f2fs-dev] [PATCH 2/2] f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

2020-11-23 Thread Eric Biggers
On Tue, Nov 24, 2020 at 08:02:21AM +0900, Daeho Jeong wrote: > Jaegeuk, > > My mistake~ > > Eric, > > What I want is like do_page_cache_ra(), but I used > page_cache_ra_unbounded() directly, because we already checked that > read is within i_size. > > Or we could use do_page_cache_ra(), but it

Re: [PATCH v12 10/15] PCI/ERR: Limit AER resets in pcie_do_recovery()

2020-11-23 Thread Bjorn Helgaas
On Fri, Nov 20, 2020 at 04:10:31PM -0800, Sean V Kelley wrote: > In some cases a bridge may not exist as the hardware controlling may be > handled only by firmware and so is not visible to the OS. This scenario is > also possible in future use cases involving non-native use of RCECs by > firmware.

Re: [Regression]: Commit 74d905d2 breaks the touchpad and touchscreen of Google Chromebook "samus"

2020-11-23 Thread Linus Walleij
On Wed, Nov 4, 2020 at 9:18 AM Andre wrote: > commit 74d905d2: Input: atmel_mxt_ts - only read messages in > mxt_acquire_irq() when necessary > > breaks the touchpad and touchscreen of the 2015 Chromebook Pixel "Samus". This commit also breaks the touchscreen on the Samsung GT-I9070 mobile

linux-next: manual merge of the s390 tree with the asm-generic tree

2020-11-23 Thread Stephen Rothwell
Hi all, FIXME: Add owner of second tree to To: Add author(s)/SOB of conflicting commits. Today's linux-next merge of the s390 tree got a conflict in: arch/s390/include/asm/mmu_context.h between commit: 93e2dfd39438 ("s390: use asm-generic/mmu_context.h for no-op implementations")

Re: [PATCH 01/29] iov_iter: Switch to using a table of operations

2020-11-23 Thread Pavel Begunkov
On 21/11/2020 14:31, Pavel Begunkov wrote: > On 21/11/2020 14:13, David Howells wrote: >> Switch to using a table of operations. In a future patch the individual >> methods will be split up by type. For the moment, however, the ops tables >> just jump directly to the old functions - which are

Re: [PATCH v2 3/4] Kbuild: make DWARF version a choice

2020-11-23 Thread Arvind Sankar
On Tue, Nov 03, 2020 at 04:53:42PM -0800, Nick Desaulniers wrote: > Modifies CONFIG_DEBUG_INFO_DWARF4 to be a member of a choice. Adds an > explicit CONFIG_DEBUG_INFO_DWARF2, which is the default. Does so in a > way that's forward compatible with existing configs, and makes adding > future

Re: [EXT] Re: [PATCH v5 9/9] task_isolation: kick_all_cpus_sync: don't kick isolated cpus

2020-11-23 Thread Frederic Weisbecker
On Mon, Nov 23, 2020 at 10:39:34PM +, Alex Belits wrote: > > On Mon, 2020-11-23 at 23:29 +0100, Frederic Weisbecker wrote: > > External Email > > > > --- > > --- > > On Mon, Nov 23, 2020 at 05:58:42PM +, Alex Belits wrote: >

[ANNOUNCE] 4.14.207-rt100

2020-11-23 Thread Clark Williams
Hello RT-list! I'm pleased to announce the 4.14.207-rt100 stable release. You can get this release via the git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git branch: v4.14-rt Head SHA1: 22416f5a24532864c6e6aea7496bb56084d7abb6 Or to build 4.14.207-rt100

Re: [patch V4 4/8] sched: Make migrate_disable/enable() independent of RT

2020-11-23 Thread Thomas Gleixner
On Mon, Nov 23 2020 at 14:07, Andy Lutomirski wrote: >> On Nov 23, 2020, at 1:25 PM, Thomas Gleixner wrote: >> On Mon, Nov 23 2020 at 22:15, Thomas Gleixner wrote: On Sun, Nov 22 2020 at 15:16, Andy Lutomirski wrote: The common case of a CPU switching back and forth between a

Re: [PATCH] fanotify: Fix fanotify_mark() on 32-bit archs

2020-11-23 Thread kernel test robot
Hi Jan, I love your patch! Yet something to improve: [auto build test ERROR on ext3/fsnotify] [also build test ERROR on linux/master linus/master tip/x86/asm v5.10-rc5 next-20201123] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest

[PATCH 25/25] perf record: Add --buildid-mmap option to enable mmap's build id

2020-11-23 Thread Jiri Olsa
Adding --buildid-mmap option to enable build id in mmap2 events. It will only work if there's kernel support for that and it disables build id cache (implies --no-buildid). It's also possible to enable it permanently via config option in ~.perfconfig file: [record] build-id=mmap Also added

[PATCH 20/25] perf tools: Add is_perf_data function

2020-11-23 Thread Jiri Olsa
Adding is_perf_data function that returns true if the given path is perf data file. It will be used in following patches. Acked-by: Ian Rogers Signed-off-by: Jiri Olsa --- tools/perf/util/data.c | 19 +++ tools/perf/util/data.h | 1 + 2 files changed, 20 insertions(+) diff

[PATCH 16/25] perf tools: Synthesize build id for kernel/modules/tasks

2020-11-23 Thread Jiri Olsa
Adding build id to synthesized mmap2 events for everything - kernel/modules/tasks. Signed-off-by: Jiri Olsa --- tools/perf/util/synthetic-events.c | 32 ++ 1 file changed, 32 insertions(+) diff --git a/tools/perf/util/synthetic-events.c

[PATCH 24/25] perf buildid-list: Add support for mmap2's buildid events

2020-11-23 Thread Jiri Olsa
Add buildid-list support for mmap2's build id data, so we can display build ids for dso objects for data without the build id cache update. $ perf buildid-list 1805c738c8f3ec0f47b7ea09080c28f34d18a82b /usr/lib64/ld-2.31.so d278249792061c6b74d1693ca59513be1def13f2 /usr/lib64/libc-2.31.so By

[PATCH 17/25] perf tools: Add support to display build id for mmap2 events

2020-11-23 Thread Jiri Olsa
Adding support to display build id in mmap2 events: $ perf script --show-mmap-events | head -4 swapper ... @ 0x8100 ]: ---p [kernel.kallsyms]_text swapper ... @ 0 <5f62adb730272c9417883ae8b8a8ec224df8cddd>]: ---p

[PATCH 13/25] perf tools: Store build id from mmap2 events

2020-11-23 Thread Jiri Olsa
When processing mmap2 event, check on the build id misc bit: PERF_RECORD_MISC_MMAP_BUILD_ID and if it is set, store the build id in mmap's dso object. Also adding the build id data arts to struct perf_record_mmap2 event definition. Signed-off-by: Jiri Olsa ---

Re: [PATCH] iscsi: Do Not set param when sock is NULL

2020-11-23 Thread Michael Christie
> On Nov 4, 2020, at 11:40 PM, Gulam Mohamed wrote: > > Description > = > 1. This Kernel panic could be due to a timing issue when there is a race > between the sync thread and the initiator was processing of a login response > from the target. The session re-open can be invoked

[PATCH 23/25] perf buildid-cache: Add --debuginfod option

2020-11-23 Thread Jiri Olsa
Adding --debuginfod option to specify debuginfod url and support to do that through config file as well. Use following in ~/.perfconfig file: [buildid-cache] debuginfod=http://192.168.122.174:8002 Acked-by: Ian Rogers Signed-off-by: Jiri Olsa ---

[PATCH 19/25] perf tools: Add __perf_session__cache_build_ids function

2020-11-23 Thread Jiri Olsa
Adding __perf_session__cache_build_ids function as an interface for caching sessions build ids with callback function and its data pointer. Signed-off-by: Jiri Olsa --- tools/perf/util/build-id.c | 10 -- tools/perf/util/build-id.h | 3 +++ 2 files changed, 11 insertions(+), 2

[PATCH 21/25] perf tools: Add build_id_cache__add function

2020-11-23 Thread Jiri Olsa
Adding build_id_cache__add function as core function that adds file into build id database. It will be set from another callers in following changes. Acked-by: Ian Rogers Signed-off-by: Jiri Olsa --- tools/perf/util/build-id.c | 42 --

[PATCH 22/25] perf buildid-cache: Add support to add build ids from perf data

2020-11-23 Thread Jiri Olsa
Adding support to specify perf data file as -a option file argument, If the file is detected to be perf data file, it is processed and all dso objects with sample hit are stored to the build id cache. $ DEBUGINFOD_URLS=http://192.168.122.174:8002 perf buildid-cache -a perf.data OK

[PATCH 18/25] perf tools: Use machine__for_each_dso in perf_session__cache_build_ids

2020-11-23 Thread Jiri Olsa
Using machine__for_each_dso in perf_session__cache_build_ids, so we can reuse perf_session__cache_build_ids with different callback in following changes. Signed-off-by: Jiri Olsa --- tools/perf/util/build-id.c | 41 +++--- 1 file changed, 16 insertions(+), 25

[PATCH 15/25] perf tools: Allow mmap2 event to synthesize modules

2020-11-23 Thread Jiri Olsa
Allow mmap2 event to synthesize kernel modules, so we can synthesize module's build id data in following changes. It's enabled by new symbol_conf.buildid_mmap2 bool, which will be switched in following changes. Acked-by: Ian Rogers Signed-off-by: Jiri Olsa ---

[PATCH 12/25] perf tools: Try to load vmlinux from buildid database

2020-11-23 Thread Jiri Olsa
Currently we don't check on kernel's vmlinux the same way as we do for normal binaries, but we either look for kallsyms file in build id database or check on known vmlinux locations (plus some other optional paths). This patch adds the check for standard build id binary location, so we are ready

[PATCH 14/25] perf tools: Allow mmap2 event to synthesize kernel image

2020-11-23 Thread Jiri Olsa
Allow mmap2 event to synthesize kernel image, so we can synthesize kernel build id data in following changes. It's enabled by new symbol_conf.buildid_mmap2 bool, which will be switched in following changes. Signed-off-by: Jiri Olsa --- tools/perf/util/symbol_conf.h | 3 ++-

[PATCH 09/25] perf tools: Add support to read build id from compressed elf

2020-11-23 Thread Jiri Olsa
Adding support to decompress file before reading build id. Adding filename__read_build_id and change its current versions to read_build_id. Shutting down stderr output of perf list in the shell test: 82: Check open filename arg using perf trace + vfs_getname : Ok because with

[PATCH 10/25] perf tools: Add check for existing link in buildid dir

2020-11-23 Thread Jiri Olsa
When adding new build id link we fail if the link is already there. Adding check for existing link and output debug message that the build id is already linked. Signed-off-by: Jiri Olsa --- tools/perf/util/build-id.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-)

[PATCH 11/25] perf tools: Use struct extra_kernel_map in machine__process_kernel_mmap_event

2020-11-23 Thread Jiri Olsa
Using struct extra_kernel_map in machine__process_kernel_mmap_event, to pass mmap details. This way we can used single function for all 3 mmap versions. Acked-by: Ian Rogers Signed-off-by: Jiri Olsa --- tools/perf/util/machine.c | 62 +-- 1 file changed, 33

[PATCH 04/25] tools headers uapi: Sync tools/include/uapi/linux/perf_event.h

2020-11-23 Thread Jiri Olsa
Syncing tools's uapi with mmap2 build id data changes. Signed-off-by: Jiri Olsa --- tools/include/uapi/linux/perf_event.h | 42 +++ 1 file changed, 37 insertions(+), 5 deletions(-) diff --git a/tools/include/uapi/linux/perf_event.h

[PATCH 08/25] perf tools: Add filename__decompress function

2020-11-23 Thread Jiri Olsa
Factor filename__decompress from decompress_kmodule function. It can decompress files with compressions supported in perf - xz and gz, the support needs to be compiled in. It will to be used in following changes to get build id out of compressed elf objects. Signed-off-by: Jiri Olsa ---

[PATCH 06/25] perf tools: Do not swap mmap2 fields in case it contains build id

2020-11-23 Thread Jiri Olsa
If PERF_RECORD_MISC_MMAP_BUILD_ID misc bit is set, mmap2 event carries build id, placed in following union: union { struct { u32 maj; u32 min; u64 ino; u64 ino_generation; };

[PATCH 07/25] perf tools: Add build_id__is_defined function

2020-11-23 Thread Jiri Olsa
Adding build_id__is_defined helper to check build id is defined and is != zero build id. Signed-off-by: Jiri Olsa --- tools/perf/util/build-id.c | 6 ++ tools/perf/util/build-id.h | 1 + 2 files changed, 7 insertions(+) diff --git a/tools/perf/util/build-id.c b/tools/perf/util/build-id.c

[PATCH 05/25] tools lib: Adopt memchr_inv() from kernel

2020-11-23 Thread Jiri Olsa
We'll use it to check for undefined/zero data. Signed-off-by: Jiri Olsa --- tools/include/linux/string.h | 1 + tools/lib/string.c | 58 2 files changed, 59 insertions(+) diff --git a/tools/include/linux/string.h b/tools/include/linux/string.h

[PATCH 03/25] perf: Add build id data in mmap2 event

2020-11-23 Thread Jiri Olsa
Adding support to carry build id data in mmap2 event. The build id data replaces maj/min/ino/ino_generation fields, which are also used to identify map's binary, so it's ok to replace them with build id data: union { struct { u32 maj; u32

[PATCH 02/25] bpf: Add size arg to build_id_parse function

2020-11-23 Thread Jiri Olsa
It's possible to have other build id types (other than default SHA1). Currently there's also ld support for MD5 build id. Adding size argument to build_id_parse function, that returns (if defined) size of the parsed build id, so we can recognize the build id type. Cc: Alexei Starovoitov Cc:

[PATCH 01/25] bpf: Move stack_map_get_build_id into lib

2020-11-23 Thread Jiri Olsa
Moving stack_map_get_build_id into lib with declaration in linux/buildid.h header: int build_id_parse(struct vm_area_struct *vma, unsigned char *build_id); This function returns build id for given struct vm_area_struct. There is no functional change to stack_map_get_build_id function. Cc:

[PATCHv3 00/25] perf: Add mmap2 build id support

2020-11-23 Thread Jiri Olsa
hi, adding the support to have buildid stored in mmap2 event, so we can bypass the final perf record hunt on build ids. This patchset allows perf to record build ID in mmap2 event, and adds perf tooling to store/download binaries to .debug cache based on these build IDs. Note that the build id

[PATCH v2 2/3] docs: media: Document CLL and Mastering display

2020-11-23 Thread Stanimir Varbanov
Document Content light level and Mastering display colour volume. Signed-off-by: Stanimir Varbanov --- .../media/v4l/ext-ctrls-codec.rst | 71 +++ 1 file changed, 71 insertions(+) diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec.rst

Re: [f2fs-dev] [PATCH 1/2] f2fs: add compress_mode mount option

2020-11-23 Thread Daeho Jeong
Jaegeuk, Got it. Eric, Yep. 2020년 11월 24일 (화) 오전 3:46, Eric Biggers 님이 작성: > > On Mon, Nov 23, 2020 at 12:17:50PM +0900, Daeho Jeong wrote: > > From: Daeho Jeong > > > > We will add a new "compress_mode" mount option to control file > > compression mode. This supports "fs-based" and

[PATCH v2 3/3] venus: venc: Add support for CLL and Mastering display controls

2020-11-23 Thread Stanimir Varbanov
Create CLL and Mastering display colour volume v4l2 controls for encoder, add handling of HDR10 PQ SEI packet payloads for v4. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.h | 3 ++ drivers/media/platform/qcom/venus/hfi_cmds.c | 8 +

[PATCH v2 1/3] v4l: Add HDR10 static metadata controls

2020-11-23 Thread Stanimir Varbanov
Add Content light level and Mastering display colour volume v4l2 compounf controls, relevant payload structures and validation. Signed-off-by: Stanimir Varbanov --- drivers/media/v4l2-core/v4l2-ctrls.c | 62 include/media/hdr10-ctrls.h | 55

Re: linux-next: build warnings after merge of the tip tree

2020-11-23 Thread Jarkko Sakkinen
On Mon, Nov 23, 2020 at 06:19:22PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (htmldocs) produced > these warnings: > > arch/x86/kernel/cpu/sgx/ioctl.c:666: warning: Function parameter or member > 'encl' not described in

[PATCH v2 0/3] HDR10 static metadata

2020-11-23 Thread Stanimir Varbanov
Hello, Changes since v1: * moved the controls in hdr10-ctrls.h header. * the structure fields documentation clearer. * fixed some typos. Some thoughts, because these two CLL and Mastering Display controls are borrowed from SEI messages we can introduce sei-ctrls.h instead of hdr10-ctrls.h.

Re: [f2fs-dev] [PATCH 2/2] f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE

2020-11-23 Thread Daeho Jeong
Jaegeuk, My mistake~ Eric, What I want is like do_page_cache_ra(), but I used page_cache_ra_unbounded() directly, because we already checked that read is within i_size. Or we could use do_page_cache_ra(), but it might do the same check in it again. What do you think? I could add some

[PATCH v2] Documentation: kunit: provide guidance for testing many inputs

2020-11-23 Thread Daniel Latypov
usage.rst goes into a detailed section about faking out classes, but currently lacks wording about how one might idiomatically test a range of inputs. Add a new chapter for "Common Patterns" and group "Isolating behvaior" and this new section under there. Give an example of how one might test a

Re: [PATCH 098/141] mmc: sdhci-of-arasan: Fix fall-through warnings for Clang

2020-11-23 Thread Gustavo A. R. Silva
On Mon, Nov 23, 2020 at 08:00:35AM +0100, Michal Simek wrote: > > > On 20. 11. 20 19:37, Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple > > warnings by explicitly adding multiple break statements instead of > > letting the code fall through

Re: [PATCH 090/141] iio: adc: cpcap: Fix fall-through warnings for Clang

2020-11-23 Thread Gustavo A. R. Silva
On Sat, Nov 21, 2020 at 03:05:04PM +, Jonathan Cameron wrote: > On Fri, 20 Nov 2020 12:36:26 -0600 > "Gustavo A. R. Silva" wrote: > > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > > by explicitly adding a break statement instead of letting the code fall > >

Re: [PATCH 079/141] drm: Fix fall-through warnings for Clang

2020-11-23 Thread Gustavo A. R. Silva
On Sun, Nov 22, 2020 at 11:03:22PM +0100, Sam Ravnborg wrote: > Hi Gustavo, > On Fri, Nov 20, 2020 at 12:35:17PM -0600, Gustavo A. R. Silva wrote: > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > > by explicitly adding a break statement instead of letting the code

Re: [PATCH 075/141] crypto: ccree - Fix fall-through warnings for Clang

2020-11-23 Thread Gustavo A. R. Silva
On Sun, Nov 22, 2020 at 09:54:29AM +0200, Gilad Ben-Yossef wrote: > On Fri, Nov 20, 2020 at 8:34 PM Gustavo A. R. Silva > wrote: > > > > In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple > > warnings by explicitly adding multiple break statements instead of > > letting the

Re: [PATCH v6] swiotlb: Adjust SWIOTBL bounce buffer size for SEV guests.

2020-11-23 Thread Ashish Kalra
Hello Konrad, On Mon, Nov 23, 2020 at 12:56:32PM -0500, Konrad Rzeszutek Wilk wrote: > On Mon, Nov 23, 2020 at 06:06:47PM +0100, Borislav Petkov wrote: > > On Thu, Nov 19, 2020 at 09:42:05PM +, Ashish Kalra wrote: > > > From: Ashish Kalra > > > > > > For SEV, all DMA to and from guest has

Re: [PATCH 066/141] ALSA: hdspm: Fix fall-through warnings for Clang

2020-11-23 Thread Gustavo A. R. Silva
On Sat, Nov 21, 2020 at 09:30:00AM +0100, Takashi Iwai wrote: > On Fri, 20 Nov 2020 19:33:52 +0100, > Gustavo A. R. Silva wrote: > > > > In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning > > by explicitly adding a break statement instead of letting the code fall > > through

Re: [PATCH net-next 00/15] net: phy: add support for shared interrupts (part 3)

2020-11-23 Thread Ioana Ciornei
On Mon, Nov 23, 2020 at 02:37:13PM -0800, Jakub Kicinski wrote: > On Mon, 23 Nov 2020 23:13:11 +0100 Martin Blumenstingl wrote: > > > Ioana Ciornei (15): > > > net: phy: intel-xway: implement generic .handle_interrupt() callback > > > net: phy: intel-xway: remove the use of .ack_interrupt() >

Re: [PATCH V4 net-next 0/4] net: hns3: updates for -next

2020-11-23 Thread Jesse Brandeburg
Huazhong Tan wrote: > There are several updates relating to the interrupt coalesce for > the HNS3 ethernet driver. > > #1 adds support for QL(quantity limiting, interrupt coalesce >based on the frame quantity). > #2 queries the maximum value of GL from the firmware instead of >a fixed

<    1   2   3   4   5   6   7   8   9   10   >