Re: Linux kernel in-tree Rust support

2020-07-10 Thread Christian Brauner
On Fri, Jul 10, 2020 at 08:28:03AM +0200, Greg KH wrote: > On Thu, Jul 09, 2020 at 11:41:47AM -0700, Nick Desaulniers wrote: > > Hello folks, > > I'm working on putting together an LLVM "Micro Conference" for the > > upcoming Linux Plumbers Conf > > (https://www.linuxplumbersconf.org/event/7/page/4

Re: [PATCH 15/23] seq_file: switch over direct seq_read method calls to seq_read_iter

2020-07-10 Thread Jon Hunter
Hi Christoph, On 07/07/2020 18:47, Christoph Hellwig wrote: > Switch over all instances used directly as methods using these sed > expressions: > > sed -i -e 's/\.read\(\s*=\s*\)seq_read/\.read_iter\1seq_read_iter/g' > > Signed-off-by: Christoph Hellwig > --- > Documentation/filesystems/seq_fi

Re: [PATCH v3 06/14] vfio/type1: Add VFIO_IOMMU_PASID_REQUEST (alloc/free)

2020-07-10 Thread Alex Williamson
On Fri, 10 Jul 2020 05:39:57 + "Liu, Yi L" wrote: > Hi Alex, > > > From: Alex Williamson > > Sent: Thursday, July 9, 2020 10:28 PM > > > > On Thu, 9 Jul 2020 07:16:31 + > > "Liu, Yi L" wrote: > > > > > Hi Alex, > > > > > > After more thinking, looks like adding a r-b tree is still

Re: a question of split_huge_page

2020-07-10 Thread Joerg Roedel
Adding Robin. On Fri, Jul 10, 2020 at 05:34:52PM +0800, Alex Shi wrote: > 在 2020/7/10 下午1:28, Mika Penttilä 写道: > > > > > > On 10.7.2020 7.51, Alex Shi wrote: > >> > >> 在 2020/7/10 上午12:07, Kirill A. Shutemov 写道: > >>> On Thu, Jul 09, 2020 at 04:50:02PM +0100, Matthew Wilcox wrote: > On Thu

Re: [PATCH 1/2] memory: samsung: exynos5422-dmc: Adjust polling interval and uptreshold

2020-07-10 Thread Lukasz Luba
On 7/10/20 1:45 PM, Krzysztof Kozlowski wrote: On Fri, Jul 10, 2020 at 09:34:45AM +0100, Lukasz Luba wrote: Hi Chanwoo, On 7/9/20 5:08 AM, Chanwoo Choi wrote: Hi Lukasz, On 7/9/20 12:34 AM, Lukasz Luba wrote: In order to react faster and make better decisions under some workloads, benchma

Re: [PATCH 4/4] perf-probe: Warn if the target function is GNU Indirect function

2020-07-10 Thread Masami Hiramatsu
On Fri, 10 Jul 2020 08:55:40 -0300 Arnaldo Carvalho de Melo wrote: > Em Fri, Jul 10, 2020 at 12:30:08PM +0900, Masami Hiramatsu escreveu: > > On Thu, 9 Jul 2020 07:36:54 -0700 > > Andi Kleen wrote: > > > > > > diff --git a/tools/perf/util/probe-event.c > > > > b/tools/perf/util/probe-event.c >

Re: [ANNOUNCE] Git v2.28.0-rc0

2020-07-10 Thread Derrick Stolee
On 7/9/2020 5:40 PM, Junio C Hamano wrote: > An early preview release Git v2.28.0-rc0 is now available for > testing at the usual places. This might be part of your new process, or it might be an oversight. It seems that GIT-VERSION-GEN did not update with this RC, so the built version will stil

Re: [PATCH] iommu: Remove unused IOMMU_SYS_CACHE_ONLY flag

2020-07-10 Thread Joerg Roedel
On Fri, Jul 03, 2020 at 05:25:48PM +0100, Will Deacon wrote: > The IOMMU_SYS_CACHE_ONLY flag was never exposed via the DMA API and > has no in-tree users. Remove it. > > Cc: Robin Murphy > Cc: "Isaac J. Manjarres" > Cc: Joerg Roedel > Cc: Christoph Hellwig > Cc: Sai Prakash Ranjan > Cc: Rob C

Re: [PATCH 15/23] seq_file: switch over direct seq_read method calls to seq_read_iter

2020-07-10 Thread Christoph Hellwig
On Fri, Jul 10, 2020 at 01:55:29PM +0100, Jon Hunter wrote: > Following this change, I have noticed that several debugfs entries can > no longer be read on some Tegra platforms. For example ... > > $ sudo cat /sys/kernel/debug/usb/xhci/353.usb/event-ring/cycle > cat: /sys/kernel/debug/usb/xhci

Re: [PATCH v19 08/12] landlock: Add syscall implementation

2020-07-10 Thread Mickaël Salaün
On 09/07/2020 19:47, Christian Brauner wrote: > On Thu, Jul 09, 2020 at 07:26:18PM +0200, Arnd Bergmann wrote: >> On Wed, Jul 8, 2020 at 7:50 PM Mickaël Salaün wrote: >>> On 08/07/2020 15:49, Arnd Bergmann wrote: On Wed, Jul 8, 2020 at 3:04 PM Mickaël Salaün wrote: > On 08/07/2020 10:5

Re: [PATCH v2] mm, oom: make the calculation of oom badness more accurate

2020-07-10 Thread Michal Hocko
On Fri 10-07-20 08:42:53, Qian Cai wrote: > On Thu, Jul 09, 2020 at 11:53:07AM -0400, Yafang Shao wrote: > > Recently we found an issue on our production environment that when memcg > > oom is triggered the oom killer doesn't chose the process with largest > > resident memory but chose the first sc

Re: [PATCH v8 03/14] media: rkisp1: Add user space ABI definitions

2020-07-10 Thread Dafna Hirschfeld
On 15.08.19 20:46, Laurent Pinchart wrote: Hi Helen, Thank you ofor the patch. On Tue, Jul 30, 2019 at 03:42:45PM -0300, Helen Koike wrote: From: Jeffy Chen Add the header for userspace Signed-off-by: Jeffy Chen Signed-off-by: Jacob Chen [update for upstream] Signed-off-by: Helen Koike

RE: [PATCH v3 06/14] vfio/type1: Add VFIO_IOMMU_PASID_REQUEST (alloc/free)

2020-07-10 Thread Liu, Yi L
> From: Alex Williamson > Sent: Friday, July 10, 2020 8:55 PM > > On Fri, 10 Jul 2020 05:39:57 + > "Liu, Yi L" wrote: > > > Hi Alex, > > > > > From: Alex Williamson > > > Sent: Thursday, July 9, 2020 10:28 PM > > > > > > On Thu, 9 Jul 2020 07:16:31 + > > > "Liu, Yi L" wrote: > > > > >

Re: [PATCH RFC] kprobes: Remove MODULES dependency

2020-07-10 Thread Christoph Hellwig
On Fri, Jul 10, 2020 at 01:32:38PM +0200, Peter Zijlstra wrote: > On Fri, Jul 10, 2020 at 07:32:57PM +0900, Masami Hiramatsu wrote: > > > - page = module_alloc(PAGE_SIZE); > > > + page = vmalloc(PAGE_SIZE); > > > > No, you can not use vmalloc here. The reason why we use module_alloc() > > is to al

Re: [PATCH] iommu: Remove unused IOMMU_SYS_CACHE_ONLY flag

2020-07-10 Thread Will Deacon
Hi Joerg, On Fri, Jul 10, 2020 at 02:58:32PM +0200, Joerg Roedel wrote: > On Fri, Jul 03, 2020 at 05:25:48PM +0100, Will Deacon wrote: > > The IOMMU_SYS_CACHE_ONLY flag was never exposed via the DMA API and > > has no in-tree users. Remove it. > > > > Cc: Robin Murphy > > Cc: "Isaac J. Manjarres

Re: [PATCH 2/2] debugfs: Add access restriction option

2020-07-10 Thread Greg Kroah-Hartman
On Mon, Jun 22, 2020 at 10:30:19AM +0200, Peter Enderborg wrote: > Since debugfs include sensitive information it need to be treated > carefully. But it also has many very useful debug functions for userspace. > With this option we can have same configuration for system with > need of debugfs and a

[GIT PULL] Second batch of KVM changes for Linux 5.8-rc5

2020-07-10 Thread Paolo Bonzini
Linus, The following changes since commit 8038a922cf9af5266eaff29ce996a0d1b788fc0d: Merge tag 'kvmarm-fixes-5.8-3' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into kvm-master (2020-07-06 13:05:38 -0400) are available in the Git repository at: https://git.kernel.org/pub/

Re: [PATCH 1/2] memory: samsung: exynos5422-dmc: Adjust polling interval and uptreshold

2020-07-10 Thread Krzysztof Kozlowski
On Fri, Jul 10, 2020 at 01:56:33PM +0100, Lukasz Luba wrote: > > > On 7/10/20 1:45 PM, Krzysztof Kozlowski wrote: > > On Fri, Jul 10, 2020 at 09:34:45AM +0100, Lukasz Luba wrote: > > > Hi Chanwoo, > > > > > > On 7/9/20 5:08 AM, Chanwoo Choi wrote: > > > > Hi Lukasz, > > > > > > > > On 7/9/20 12

Re: [PATCH v2] mm, oom: make the calculation of oom badness more accurate

2020-07-10 Thread Michal Hocko
On Fri 10-07-20 14:58:54, Michal Hocko wrote: [...] > I will have a closer look. Is the full dmesg available somewhere? Ups, I have missed this: diff --git a/mm/oom_kill.c b/mm/oom_kill.c index 2dd5a90f2f81..7f01835862f4 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -306,7 +306,7 @@ static enu

Re: [PATCH 5/5] tracing: toplevel d_entry already initialized

2020-07-10 Thread Steven Rostedt
On Fri, 10 Jul 2020 09:11:19 +0800 Wei Yang wrote: > Yep, if you think there is no need. > > Do you want me to send v2 based on you comments? I already applied patch 2 and 3. Please send a v2 with the 4-5 folded, and you can also include a patch to remove the dentry of tracing_init_dentry() ret

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Christoph Hellwig
On Thu, Jul 09, 2020 at 12:50:27PM -0600, Jens Axboe wrote: > It might, if you have IRQ context for the completion. task_work isn't > expensive, however. It's not like a thread offload. > > > Using flags have not been liked here, but given the upheaval involved so > > far I have begun to feel - it

[PATCH v2 0/4] perf-probe: Fix GNU IFUNC probe issue etc.

2020-07-10 Thread Masami Hiramatsu
Hi, Here are the v2 patches to fix some issues of probing on GNU IFUNC, duplicated symbols, and memory leak, which were reported by Andi. V1 is here: https://lkml.kernel.org/r/159428201109.56570.3802208017109058146.stgit@devnote2 In this version, I've added Srikar's reviewed-by and Andi's Teste

Re: [PATCH] doc:kmsg: explictly state the return value in case of SEEK_CUR

2020-07-10 Thread Bruno Meneguele
On Fri, Jul 10, 2020 at 02:19:23PM +0200, Petr Mladek wrote: > On Thu 2020-07-09 12:54:15, Bruno Meneguele wrote: > > The commit 625d3449788f ("Revert "kernel/printk: add kmsg SEEK_CUR > > handling"") reverted a change done to the return value in case a SEEK_CUR > > operation was performed for kmsg

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Christoph Hellwig
On Fri, Jul 10, 2020 at 12:35:43AM +0530, Kanchan Joshi wrote: > Append required special treatment (conversion for sector to bytes) for > io_uring. > And we were planning a user-space wrapper to abstract that. > > But good part (as it seems now) was: append result went along with cflags at > virt

[PATCH v2 3/4] perf-probe: Fix memory leakage when the probe point is not found

2020-07-10 Thread Masami Hiramatsu
Fix the memory leakage in debuginfo__find_trace_events() when the probe point is not found in the debuginfo. If there is no probe point found in the debuginfo, debuginfo__find_probes() will NOT return -ENOENT, but 0. Thus the caller of debuginfo__find_probes() must check the tf.ntevs and release th

[PATCH v2 1/4] perf-probe: Avoid setting probes on same address on same event

2020-07-10 Thread Masami Hiramatsu
There is a case that the several same-name symbols points same address. In that case, perf probe returns an error. E.g. perf probe -x /lib64/libc-2.30.so -v -a "memcpy arg1=%di" probe-definition(0): memcpy arg1=%di symbol:memcpy file:(null) line:0 offset:0 return:0 lazy:(null) parsing arg

[PATCH v2 2/4] perf-probe: Fix wrong variable warning when the probe point is not found

2020-07-10 Thread Masami Hiramatsu
Fix a wrong "variable not found" warning when the probe point is not found in the debuginfo. Since the debuginfo__find_probes() can return 0 even if it does not find given probe point in the debuginfo, fill_empty_trace_arg() can be called with tf.ntevs == 0 and it can warn a wrong warning. To fix t

[PATCH v2 4/4] perf-probe: Warn if the target function is GNU Indirect function

2020-07-10 Thread Masami Hiramatsu
Warn if the probe target function is GNU indirect function (GNU_IFUNC) because it may not what the user want to probe. The GNU indirect function ( https://sourceware.org/glibc/wiki/GNU_IFUNC ) is the dynamic solved symbol at runtime. IFUNC function is a selector which is invoked from the elf loade

Re: [PATCH v5 2/8] lib/mpi: Extend the MPI library

2020-07-10 Thread Marcelo Henrique Cerri
Hi, Tianjia. On Thu, Jul 09, 2020 at 04:40:09PM +0800, Tianjia Zhang wrote: > Expand the mpi library based on libgcrypt, and the ECC algorithm of > mpi based on libgcrypt requires these functions. > Some other algorithms will be developed based on mpi ecc, such as SM2. > > Signed-off-by: Tianjia

Re: [PATCH 1/2] memory: samsung: exynos5422-dmc: Adjust polling interval and uptreshold

2020-07-10 Thread Marek Szyprowski
Hi Lukasz, On 10.07.2020 10:34, Lukasz Luba wrote: > Hi Chanwoo, > > On 7/9/20 5:08 AM, Chanwoo Choi wrote: >> Hi Lukasz, >> >> On 7/9/20 12:34 AM, Lukasz Luba wrote: >>> In order to react faster and make better decisions under some >>> workloads, >>> benchmarking the memory subsystem behavior, a

RE: [PATCH v4 0/2] Fix and enable pmem as RAM device on arm64

2020-07-10 Thread Justin He
Hi David > -Original Message- > From: David Hildenbrand > Sent: Friday, July 10, 2020 4:30 PM > To: Justin He ; Catalin Marinas > ; Will Deacon ; Tony Luck > ; Fenghua Yu ; Yoshinori Sato > ; Rich Felker ; Dave Hansen > ; Andy Lutomirski ; Peter > Zijlstra ; Thomas Gleixner ; > Ingo Molna

drivers/irqchip/irq-loongson-liointc.c:134:12: warning: no previous prototype for 'liointc_of_init'

2020-07-10 Thread kernel test robot
-20200710 (attached as .config) compiler: mips64el-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout

Re: [PATCH v3 09/17] perf: util: add general function to parse sublevel options

2020-07-10 Thread Changbin Du
On Wed, Jul 08, 2020 at 02:34:23PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jul 09, 2020 at 12:45:57AM +0800, Changbin Du escreveu: > > This factors out a general function perf_parse_sublevel_options() to parse > > sublevel options. The 'sublevel' options is something like the '--debug' > >

Re: [PATCH RFC] kprobes: Remove MODULES dependency

2020-07-10 Thread Masami Hiramatsu
On Fri, 10 Jul 2020 13:32:38 +0200 Peter Zijlstra wrote: > On Fri, Jul 10, 2020 at 07:32:57PM +0900, Masami Hiramatsu wrote: > > > - page = module_alloc(PAGE_SIZE); > > > + page = vmalloc(PAGE_SIZE); > > > > No, you can not use vmalloc here. The reason why we use module_alloc() > > is to allocat

Re: [PATCH 1/2] memory: samsung: exynos5422-dmc: Adjust polling interval and uptreshold

2020-07-10 Thread Krzysztof Kozlowski
On Fri, Jul 10, 2020 at 03:13:18PM +0200, Marek Szyprowski wrote: > Hi Lukasz, > > On 10.07.2020 10:34, Lukasz Luba wrote: > > Hi Chanwoo, > > > > On 7/9/20 5:08 AM, Chanwoo Choi wrote: > >> Hi Lukasz, > >> > >> On 7/9/20 12:34 AM, Lukasz Luba wrote: > >>> In order to react faster and make better

Re: [RFC PATCH 14/16] irq: Add support for core-wide protection of IRQ and softirq

2020-07-10 Thread Joel Fernandes
On Fri, Jul 10, 2020 at 08:19:24PM +0800, Li, Aubrey wrote: > Hi Joel/Vineeth, > > On 2020/7/1 5:32, Vineeth Remanan Pillai wrote: > > From: "Joel Fernandes (Google)" > > > > With current core scheduling patchset, non-threaded IRQ and softirq > > victims can leak data from its hyperthread to a s

Re: [SchedulerWakeupLatency] Per-task vruntime wakeup bonus

2020-07-10 Thread Vincent Guittot
Hi Patrick, On Tue, 23 Jun 2020 at 09:49, Patrick Bellasi wrote: > > > On Tue, Jun 23, 2020 at 09:29:03 +0200, Patrick Bellasi > wrote... > > > .:: Scheduler Wakeup Path Requirements Collection Template > > == > > > > A) Name > > Runtime t

Re: [PATCH v1] driver core: Fix suspend/resume order issue with deferred probe

2020-07-10 Thread Greg Kroah-Hartman
On Tue, Jun 30, 2020 at 10:11:01AM -0700, Saravana Kannan wrote: > On Tue, Jun 30, 2020 at 9:11 AM Rafael J. Wysocki wrote: > > > > On Tue, Jun 30, 2020 at 5:39 PM Greg Kroah-Hartman > > wrote: > > > > > > On Tue, Jun 30, 2020 at 03:50:58PM +0200, Rafael J. Wysocki wrote: > > > > On Fri, Jun 26,

Re: [PATCH RFC] kprobes: Remove MODULES dependency

2020-07-10 Thread Steven Rostedt
On Fri, 10 Jul 2020 22:18:02 +0900 Masami Hiramatsu wrote: > > Agreed. As far as I know, ftrace and bpf also depends on module_alloc(), > so text_alloc() will help them too. > Yes please. arch/x86/kernel/ftrace.c: #ifdef CONFIG_MODULES #include /* Module allocation simplifies allocating mem

Re: [PATCH v3 0/3] driver core: Add device link related sysfs files

2020-07-10 Thread Greg Kroah-Hartman
On Mon, Jul 06, 2020 at 03:45:02PM -0700, Saravana Kannan wrote: > On Tue, Jun 16, 2020 at 8:45 PM Saravana Kannan wrote: > > > > On Fri, May 29, 2020 at 5:30 AM Greg Kroah-Hartman > > wrote: > > > Looks semi-sane, but it's too close to the merge window at the moment > > > for me to take this. I

[PATCH 1/3] ARM: dts: colibri-imx6: remove pinctrl-names orphan

2020-07-10 Thread Philippe Schenker
This is not necessary without a pinctrl-0 statement. Remove this orphan. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index 240b86d2

[PATCH 2/3] ARM: dts: colibri-imx6: add usb dual-role switch capability

2020-07-10 Thread Philippe Schenker
Since the runtime-pm wakeup bug was fixed in drivers/usb/chipidea/core.c usb dual-role host/device switching is working. So make use of it. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 8 arch/arm/boot/dts/imx6qdl-colibri.dtsi | 2 +- 2 file

[PATCH 3/3] ARM: dts: colibri-imx7: add usb dual-role switch capability

2020-07-10 Thread Philippe Schenker
Since the runtime-pm wakeup bug was fixed in drivers/usb/chipidea/core.c usb dual-role host/device switching is working. So make use of it. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 9 + arch/arm/boot/dts/imx7-colibri.dtsi | 4 ++-- 2 fi

Re: [PATCH] efi: avoid error message when booting under Xen

2020-07-10 Thread Ard Biesheuvel
On Fri, 10 Jul 2020 at 13:17, Bartlomiej Zolnierkiewicz wrote: > > > [ added EFI Maintainer & ML to Cc: ] > > Hi, > > On 7/9/20 11:17 AM, Jürgen Groß wrote: > > On 28.06.20 10:50, Jürgen Groß wrote: > >> Ping? > >> > >> On 10.06.20 16:10, Juergen Gross wrote: > >>> efifb_probe() will issue an erro

Re: generic DMA bypass flag v4

2020-07-10 Thread Jesper Dangaard Brouer
On Wed, 8 Jul 2020 17:24:44 +0200 Christoph Hellwig wrote: > Note that as-is this breaks the XSK buffer pool, which unfortunately > poked directly into DMA internals. A fix for that is already queued > up in the netdev tree. > > Jesper and XDP gang: this should not regress any performance as >

RE: [PATCH 3/3] ARM: imx_v6_v7_defconfig: Build in CONFIG_GPIO_MXC by default

2020-07-10 Thread Anson Huang
Hi, Andreas > Subject: Re: [PATCH 3/3] ARM: imx_v6_v7_defconfig: Build in > CONFIG_GPIO_MXC by default > > Hi, > > On Wed, 8 Jul 2020 07:25:23 +0800 > Anson Huang wrote: > > > i.MX GPIO is NOT default enabled now, so select CONFIG_GPIO_MXC as > > built-in manually. > > > > Signed-off-by: Ans

Re: [PATCH v5 6/6] PCI: uniphier: Use devm_platform_ioremap_resource_byname()

2020-07-10 Thread Lorenzo Pieralisi
On Fri, Jul 10, 2020 at 09:54:12AM +0900, Kunihiko Hayashi wrote: > Hi Lorenzo, > > This 6/6 patch has just been covered with the following patch: > https://patchwork.ozlabs.org/project/linux-pci/patch/20200708164013.5076-1-zhengdej...@gmail.com/ > > As a result, my other patches conflict with th

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Kanchan Joshi
On Fri, Jul 10, 2020 at 6:39 PM Christoph Hellwig wrote: > > On Thu, Jul 09, 2020 at 12:50:27PM -0600, Jens Axboe wrote: > > It might, if you have IRQ context for the completion. task_work isn't > > expensive, however. It's not like a thread offload. > > > > > Using flags have not been liked here,

Re: [PATCH v8 2/5] driver core: add deferring probe reason to devices_deferred property

2020-07-10 Thread Greg Kroah-Hartman
On Thu, Jul 02, 2020 at 03:44:21PM +0200, Andrzej Hajda wrote: > /sys/kernel/debug/devices_deferred property contains list of deferred devices. > This list does not contain reason why the driver deferred probe, the patch > improves it. > The natural place to set the reason is dev_err_probe function

Re: [PATCH v2 5/6] devres: provide devm_krealloc()

2020-07-10 Thread Greg Kroah-Hartman
On Mon, Jul 06, 2020 at 06:38:10PM +0200, Bartosz Golaszewski wrote: > On Thu, Jul 2, 2020 at 3:11 PM Bartosz Golaszewski wrote: > > > > On Thu, Jul 2, 2020 at 2:42 PM Greg Kroah-Hartman > > wrote: > > > > > > On Mon, Jun 29, 2020 at 08:50:07AM +0200, Bartosz Golaszewski wrote: > > > > From: Bart

Re: [PATCH v1] regmap: Switch to use fwnode instead of OF one

2020-07-10 Thread Mark Brown
On Fri, Jul 10, 2020 at 01:08:56PM +0100, Mark Brown wrote: > On Fri, Jul 10, 2020 at 02:46:22PM +0300, Andy Shevchenko wrote: > > You mean it's being synchronised with git.kernel.org, but not yet contains > > that > > patch? Okay, I will monitor the regmap tree (as of now I didn't see any > > u

Re: [RFC v2 0/4] futex2: Add new futex interface

2020-07-10 Thread Oleksandr Natalenko
Hello. On 09.07.2020 19:59, André Almeida wrote: This RFC is a followup to the previous discussion initiated from my last patch "futex: Implement mechanism to wait on any of several futexes"[1]. As stated in the thread, the correct approach to move forward with the wait multiple operation woul

Re: [PATCH] arm64: dts: mt8173: Re-measure capacity-dmips-mhz

2020-07-10 Thread Matthias Brugger
On 08/07/2020 20:55, Hsin-Yi Wang wrote: On Thu, Jul 9, 2020 at 1:01 AM Matthias Brugger wrote: On 06/07/2020 10:37, Hsin-Yi Wang wrote: Re measure capacity-dmips-mhz on elm and hana: cpu 1: 9502 DMIPS @ 1703 Mhz cpu 3: 16250 DMIPS @ 2106 Mhz ==> 740 : 1024 I have some trouble to ma

Re: [PATCH v8 00/12] Introduce CAP_PERFMON to secure system performance monitoring and observability

2020-07-10 Thread Ravi Bangoria
Hi Alexey, Currently access to perf_events, i915_perf and other performance monitoring and observability subsystems of the kernel is open only for a privileged process [1] with CAP_SYS_ADMIN capability enabled in the process effective set [2]. This patch set introduces CAP_PERFMON capability de

Re: 回复: WARNING in submit_audio_out_urb/usb_submit_urb

2020-07-10 Thread Takashi Iwai
On Fri, 10 Jul 2020 10:38:31 +0200, Takashi Iwai wrote: > > On Fri, 10 Jul 2020 10:12:43 +0200, > Zhang, Qiang wrote: > > > > > > > > > > 发件人: linux-kernel-ow...@vger.kernel.org > > 代表 syzbot > > > > 发送时间: 2020年7月9日 21:34 > > 收件人: andreyk...@google.c

Re: [PATCH 1/1] tty: serial: owl: Initialize lock before registering port

2020-07-10 Thread Greg Kroah-Hartman
On Fri, Jul 10, 2020 at 03:05:49PM +0300, Cristian Ciocaltea wrote: > On Fri, May 29, 2020 at 01:34:19PM +0200, Greg Kroah-Hartman wrote: > > On Fri, May 29, 2020 at 02:06:47PM +0300, Cristian Ciocaltea wrote: > > > Running a lockdep-enabled kernel leads to the following splat when > > > probing th

Re: [PATCH v2 0/7] arm64: dts: mediatek: Add support for Lenovo IdeaPad Duet Chromebook

2020-07-10 Thread Matthias Brugger
On 25/06/2020 12:17, Enric Balletbo i Serra wrote: These series adds basic support for the Lenovo IdeaPad Duet Chromebook, a 2-in-1 detachable devices using the MediaTek MT8183 SoC. The first patch only adds the new compatible names in the mediatek binding. The second patch, adds the missing c

Re: [PATCH v3 00/17] perf: ftrace enhancement

2020-07-10 Thread Changbin Du
On Wed, Jul 08, 2020 at 02:39:59PM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jul 09, 2020 at 12:45:48AM +0800, Changbin Du escreveu: > > Here is a glance of all ftrace functions with this serias: > > > > $ sudo perf ftrace -h > > > Usage: perf ftrace [] [] > > or: perf ftrace [] --

Re: [RFC PATCH 14/16] irq: Add support for core-wide protection of IRQ and softirq

2020-07-10 Thread Vineeth Remanan Pillai
Hi Aubrey, On Fri, Jul 10, 2020 at 8:19 AM Li, Aubrey wrote: > > Hi Joel/Vineeth, > [...] > The problem is gone when we reverted this patch. We are running multiple > uperf threads(equal to cpu number) in a cgroup with coresched enabled. > This is 100% reproducible on our side. > > Just wonder if

Re: [PATCH v8 03/14] media: rkisp1: Add user space ABI definitions

2020-07-10 Thread Laurent Pinchart
Hi Dafna, On Fri, Jul 10, 2020 at 02:59:36PM +0200, Dafna Hirschfeld wrote: > On 15.08.19 20:46, Laurent Pinchart wrote: > > On Tue, Jul 30, 2019 at 03:42:45PM -0300, Helen Koike wrote: > >> From: Jeffy Chen > >> > >> Add the header for userspace > >> > >> Signed-off-by: Jeffy Chen > >> Signed-o

Re: [PATCH] efi: avoid error message when booting under Xen

2020-07-10 Thread Jürgen Groß
On 10.07.20 15:27, Ard Biesheuvel wrote: On Fri, 10 Jul 2020 at 13:17, Bartlomiej Zolnierkiewicz wrote: [ added EFI Maintainer & ML to Cc: ] Hi, On 7/9/20 11:17 AM, Jürgen Groß wrote: On 28.06.20 10:50, Jürgen Groß wrote: Ping? On 10.06.20 16:10, Juergen Gross wrote: efifb_probe() will

[PATCH 2/3] firmware: arm_scmi: Remove unneeded __packed attribute

2020-07-10 Thread Cristian Marussi
Remove __packed attribute from struct scmi_event_header. Signed-off-by: Cristian Marussi --- drivers/firmware/arm_scmi/notify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/arm_scmi/notify.c b/drivers/firmware/arm_scmi/notify.c index c4d006cfde88..7524153

[PATCH 3/3] firmware: arm_scmi: Remove fixed size fields from reports/scmi_event_header

2020-07-10 Thread Cristian Marussi
Event reports are used to convey information describing events to the registered user-callbacks: they are necessarily derived from the underlying raw SCMI events' messages but they are not meant to expose or directly mirror any of those messages data layout, which belong to the protocol layer. Usin

[PATCH 1/3] firmware: arm_scmi: Remove zero-length array in SCMI Notifications

2020-07-10 Thread Cristian Marussi
Substitute zero-length array defined in scmi_base_error_report with a flexible length array definition. Signed-off-by: Cristian Marussi --- include/linux/scmi_protocol.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protoco

Re: [PATCH v7 6/7] clk: mediatek: add UART0 clock support

2020-07-10 Thread Matthias Brugger
On 02/07/2020 14:57, Hanks Chen wrote: Add MT6779 UART0 clock support. Fixes: 710774e04861 ("clk: mediatek: Add MT6779 clock support") Signed-off-by: Wendell Lin Signed-off-by: Hanks Chen Reviewed-by: Matthias Brugger --- drivers/clk/mediatek/clk-mt6779.c |2 ++ 1 file changed,

Re: [PATCH 1/2] memory: samsung: exynos5422-dmc: Adjust polling interval and uptreshold

2020-07-10 Thread Lukasz Luba
On 7/10/20 2:19 PM, Krzysztof Kozlowski wrote: On Fri, Jul 10, 2020 at 03:13:18PM +0200, Marek Szyprowski wrote: Hi Lukasz, On 10.07.2020 10:34, Lukasz Luba wrote: Hi Chanwoo, On 7/9/20 5:08 AM, Chanwoo Choi wrote: Hi Lukasz, On 7/9/20 12:34 AM, Lukasz Luba wrote: In order to react fast

[PATCH v8 1/2] dt-binding: Add DSI/LVDS TC358775 bridge bindings

2020-07-10 Thread Vinay Simha BN
- license modified to (GPL-2.0-only OR BSD-2-Clause) - single-link and dual-link lvds description and examples are added - proper indentation - VESA/JEIDA formats picked from panel-lvds dts - dsi data-lanes property removed, it will be picked from dsi0 ports - dual-link lvds port added and impl

Re: [PATCH] efi: avoid error message when booting under Xen

2020-07-10 Thread Ard Biesheuvel
On Fri, 10 Jul 2020 at 16:38, Jürgen Groß wrote: > > On 10.07.20 15:27, Ard Biesheuvel wrote: > > On Fri, 10 Jul 2020 at 13:17, Bartlomiej Zolnierkiewicz > > wrote: > >> > >> > >> [ added EFI Maintainer & ML to Cc: ] > >> > >> Hi, > >> > >> On 7/9/20 11:17 AM, Jürgen Groß wrote: > >>> On 28.06.20

[PATCH v8 2/2] display/drm/bridge: TC358775 DSI/LVDS driver

2020-07-10 Thread Vinay Simha BN
This driver is tested with two panels individually with Apq8016-IFC6309 board https://www.inforcecomputing.com/products/single-board-computers-sbc/qualcomm-snapdragon-410-inforce-6309-micro-sbc 1. 1366x768@60 auo,b101xtn01 data-mapping = "jeida-24" 2. 800x480@60 innolux,at070tn92 data-mapping = "v

Re: [PATCH v3] kdb: remove unnecessary null check of dbg_io_ops

2020-07-10 Thread Daniel Thompson
On Fri, Jul 10, 2020 at 03:15:55PM +0300, Cengiz Can wrote: > Hello Daniel, > > On 2020-07-01 01:32, Doug Anderson wrote: > > > > Reviewed-by: Douglas Anderson > > Tested-by: Douglas Anderson > > Wanted to ask about the status of this proposed patch. > > I have checked your tree in git.kernel

Re: [PATCH 1/3] ARM: dts: colibri-imx6: remove pinctrl-names orphan

2020-07-10 Thread Oleksandr Suvorov
On Fri, Jul 10, 2020 at 4:25 PM Philippe Schenker wrote: > > This is not necessary without a pinctrl-0 statement. Remove this > orphan. > > Signed-off-by: Philippe Schenker Reviewed-by: Oleksandr Suvorov > --- > > arch/arm/boot/dts/imx6qdl-colibri.dtsi | 1 - > 1 file changed, 1 deletion(-) >

[PATCH v6 09/17] x86/static_call: Add out-of-line static call implementation

2020-07-10 Thread Peter Zijlstra
From: Josh Poimboeuf Add the x86 out-of-line static call implementation. For each key, a permanent trampoline is created which is the destination for all static calls for the given key. The trampoline has a direct jump which gets patched by static_call_update() when the destination function cha

[PATCH v4 01/17] perf ftrace: select function/function_graph tracer automatically

2020-07-10 Thread Changbin Du
The '-g/-G' options have already implied function_graph tracer should be used instead of function tracer. So the extra option '--tracer' can be killed. This patch changes the behavior as below: - By default, function tracer is used. - If '-g' or '-G' option is on, then function_graph tracer is

[PATCH v6 12/17] x86/alternatives: Teach text_poke_bp() to emulate RET

2020-07-10 Thread Peter Zijlstra
Future patches will need to poke a RET instruction, provide the infrastructure required for this. Signed-off-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/text-patching.h | 19 +++ arch/x86/kernel/alternative.c|5 + 2 files changed, 24 insertions(+) --- a

[PATCH v4 04/17] perf ftrace: factor out function write_tracing_file_int()

2020-07-10 Thread Changbin Du
We will reuse this function later. Signed-off-by: Changbin Du --- tools/perf/builtin-ftrace.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tools/perf/builtin-ftrace.c b/tools/perf/builtin-ftrace.c index 1188b82c6541..342861a1d152 100644 --- a/tools/perf/

[PATCH v4 00/17] perf: ftrace enhancement

2020-07-10 Thread Changbin Du
The perf has basic kernel ftrace support but lack support of most tracing options. This serias is target to enhance the perf ftrace functionality so that we can make full use of kernel ftrace with perf. In general, this serias be cataloged into two main changes: 1) Improve usability of existing

Re: [PATCH v3 4/4] io_uring: add support for zone-append

2020-07-10 Thread Christoph Hellwig
On Fri, Jul 10, 2020 at 06:59:45PM +0530, Kanchan Joshi wrote: > > block doesn't work for the case of writes to files that don't have > > to be aligned in any way. And that I think is the more broadly > > applicable use case than zone append on block devices. > > But when can it happen that we do

[PATCH v4 06/17] perf ftrace: show trace column header

2020-07-10 Thread Changbin Du
This makes perf-ftrace display column header before printing trace. $ sudo perf ftrace # tracer: function # # entries-in-buffer/entries-written: 0/0 #P:8 # #TASK-PID CPU# TIMESTAMP FUNCTION # | | | | | <...>-9246 [

[PATCH v6 11/17] static_call: Simple self-test

2020-07-10 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- arch/Kconfig |6 ++ kernel/static_call.c | 28 2 files changed, 34 insertions(+) --- a/arch/Kconfig +++ b/arch/Kconfig @@ -103,6 +103,12 @@ config STATIC_KEYS_SELFTEST help Boot time self

[PATCH v4 03/17] perf ftrace: add option -t/--tid to filter by thread id

2020-07-10 Thread Changbin Du
This allows us to trace single thread instead of the whole process. Signed-off-by: Changbin Du --- tools/perf/Documentation/perf-ftrace.txt | 4 tools/perf/builtin-ftrace.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tools/perf/Documentation/perf-ftrace.txt b/tools/

[PATCH v6 10/17] x86/static_call: Add inline static call implementation for x86-64

2020-07-10 Thread Peter Zijlstra
From: Josh Poimboeuf Add the inline static call implementation for x86-64. The generated code is identical to the out-of-line case, except we move the trampoline into it's own section. Objtool uses the trampoline naming convention to detect all the call sites. It then annotates those call sites

[PATCH v4 05/17] perf ftrace: add option '-m/--buffer-size' to set per-cpu buffer size

2020-07-10 Thread Changbin Du
This adds an option '-m/--buffer-size' to allow us set the size of per-cpu tracing buffer. Signed-off-by: Changbin Du --- v2: support units as a suffix. --- tools/perf/Documentation/perf-ftrace.txt | 5 +++ tools/perf/builtin-ftrace.c | 56 +++- 2 files changed

[PATCH v4 02/17] perf ftrace: add option '-F/--funcs' to list available functions

2020-07-10 Thread Changbin Du
This adds an option '-F/--funcs' to list all available functions to trace, which is read from tracing file 'available_filter_functions'. $ sudo ./perf ftrace -F | head trace_initcall_finish_cb initcall_blacklisted do_one_initcall do_one_initcall trace_initcall_start_cb run_init_process try_to_run_

[PATCH v4 10/17] perf ftrace: add support for trace option sleep-time

2020-07-10 Thread Changbin Du
This adds an option '--graph-opts nosleep-time' which allow us only to measure on-CPU time. This option is function_graph tracer only. Signed-off-by: Changbin Du --- v3: switch to uniform option --graph-opts. v2: option name '--nosleep-time' -> '--graph-nosleep-time'. --- tools/perf/Documentati

Re: [PATCH 2/3] ARM: dts: colibri-imx6: add usb dual-role switch capability

2020-07-10 Thread Oleksandr Suvorov
On Fri, Jul 10, 2020 at 4:26 PM Philippe Schenker wrote: > > Since the runtime-pm wakeup bug was fixed in > drivers/usb/chipidea/core.c usb dual-role host/device switching is > working. So make use of it. > > Signed-off-by: Philippe Schenker Reviewed-by: Oleksandr Suvorov > --- > > arch/arm/b

Re: [PATCH] Replace HTTP links with HTTPS ones: kprobes

2020-07-10 Thread Naveen N. Rao
Masami Hiramatsu wrote: On Tue, 7 Jul 2020 21:49:59 +0200 "Alexander A. Klimov" wrote: Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If

[PATCH v4 12/17] perf ftrace: add support for tracing option 'irq-info'

2020-07-10 Thread Changbin Du
This adds support to display irq context info for function tracer. To do this, just specify a '--func-opts irq-info' option. Signed-off-by: Changbin Du --- tools/perf/Documentation/perf-ftrace.txt | 1 + tools/perf/builtin-ftrace.c | 21 - 2 files changed, 21 in

[PATCH v6 04/17] jump_label,module: Fix module lifetime for __jump_label_mod_text_reserved

2020-07-10 Thread Peter Zijlstra
Nothing ensures the module exists while we're iterating mod->jump_entries in __jump_label_mod_text_reserved(), take a module reference to ensure the module sticks around. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Steven Rostedt (VMware) --- kernel/jump_label.c | 10 -- 1 file

Re: [PATCH net-next v1 1/5] net: phy: micrel: use consistent indention after define

2020-07-10 Thread Andrew Lunn
On Fri, Jul 10, 2020 at 02:08:47PM +0200, Oleksij Rempel wrote: > This patch changes the indention to one space between "#define" and the > macro. > > Signed-off-by: Oleksij Rempel Reviewed-by: Andrew Lunn Andrew

[PATCH v6 16/17] tracepoint: Optimize using static_call()

2020-07-10 Thread Peter Zijlstra
From: "Steven Rostedt (VMware)" Currently the tracepoint site will iterate a vector and issue indirect calls to however many handlers are registered (ie. the vector is long). Using static_call() it is possible to optimize this for the common case of only having a single handler registered. In th

[PATCH v6 15/17] static_call: Allow early init

2020-07-10 Thread Peter Zijlstra
In order to use static_call() to wire up x86_pmu, we need to initialize earlier; copy some of the tricks from jump_label to enable this. Primarily we overload key->next to store a sites pointer when there are no modules, this avoids having to use kmalloc() to initialize the sites and allows us to

[PATCH v4 09/17] perf ftrace: add support for tracing option 'func_stack_trace'

2020-07-10 Thread Changbin Du
This adds support to display call trace for function tracer. To do this, just specify a '--func-opts call-graph' option. $ sudo perf ftrace -T vfs_read --func-opts call-graph iio-sensor-prox-855 [003] 6168.369657: vfs_read <-ksys_read iio-sensor-prox-855 [003] 6168.369677: => vfs_read

[PATCH v6 06/17] static_call: Add basic static call infrastructure

2020-07-10 Thread Peter Zijlstra
From: Josh Poimboeuf Static calls are a replacement for global function pointers. They use code patching to allow direct calls to be used instead of indirect calls. They give the flexibility of function pointers, but with improved performance. This is especially important for cases where retpo

[PATCH v4 07/17] perf ftrace: add option '--inherit' to trace children processes

2020-07-10 Thread Changbin Du
This adds an option '--inherit' to allow us trace children processes spawned by our target. Signed-off-by: Changbin Du --- v2: option name '--trace-children' -> '--inherit'. --- tools/perf/Documentation/perf-ftrace.txt | 3 ++ tools/perf/builtin-ftrace.c | 38 +

[PATCH v6 01/17] notifier: Fix broken error handling pattern

2020-07-10 Thread Peter Zijlstra
The current notifiers have the following error handling pattern all over the place: int err, nr; err = __foo_notifier_call_chain(&chain, val_up, v, -1, &nr); if (err & NOTIFIER_STOP_MASK) __foo_notifier_call_chain(&chain, val_down, v, nr-1, NULL) And aside

[PATCH v6 14/17] static_call: Handle tail-calls

2020-07-10 Thread Peter Zijlstra
GCC can turn our static_call(name)(args...) into a tail call, in which case we get a JMP.d32 into the trampoline (which then does a further tail-call). Teach objtool to recognise and mark these in .static_call_sites and adjust the code patching to deal with this. Signed-off-by: Peter Zijlstra (In

[PATCH v4 11/17] perf ftrace: add support for trace option funcgraph-irqs

2020-07-10 Thread Changbin Du
This adds an option '--graph-opts noirqs' to filter out functions executed in irq context. Signed-off-by: Changbin Du --- v2: option name '--nofuncgraph-irqs' -> '--graph-noirqs'. --- tools/perf/Documentation/perf-ftrace.txt | 1 + tools/perf/builtin-ftrace.c | 21

[PATCH v4 08/17] perf: util: add general function to parse sublevel options

2020-07-10 Thread Changbin Du
This factors out a general function perf_parse_sublevel_options() to parse sublevel options. The 'sublevel' options is something like the '--debug' options which allow more sublevel options. Signed-off-by: Changbin Du --- v2: add util/parse-sublevel-options.c --- tools/perf/util/Build

[PATCH v6 00/17] Add static_call

2020-07-10 Thread Peter Zijlstra
Hi all, Hopefully for the last time... static_call(), is the idea of static_branch() applied to indirect function calls. Remove a data load (indirection) by modifying the text. The inline implementation still relies on objtool to generate the .static_call_sites section, mostly because this is a

[PATCH] can: j1939: fix double free in j1939_netdev_start

2020-07-10 Thread trix
From: Tom Rix clang static analysis flags this error j1939/main.c:292:2: warning: Attempt to free released memory [unix.Malloc] kfree(priv); ^~~ The problem block of code is ret = j1939_can_rx_register(priv); if (ret < 0) goto out_priv_pu

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