Re: [PATCH 2/2] soc: mediatek: devapc: add devapc-mt6779 driver

2020-07-06 Thread Matthias Brugger
CC linux-mediatek Please you ./scripts/get_maintainers.pl to find out to whom you should send the series. On 06/07/2020 11:28, Neal Liu wrote: > MT6779 bus frabric provides TrustZone security support and data > protection to prevent slaves from being accessed by unexpected > masters. > The securi

[PATCH net 0/4] net: hns3: fixes for -net

2020-07-06 Thread Huazhong Tan
There are some fixes about reset issue and a use-after-free of self-test. Huazhong Tan (3): net: hns3: check reset pending after FLR prepare net: hns3: fix for mishandle of asserting VF reset fail net: hns3: add a missing uninit debugfs when unload driver Yonglong Liu (1): net: hns3: fix

[PATCH net 4/4] net: hns3: fix use-after-free when doing self test

2020-07-06 Thread Huazhong Tan
From: Yonglong Liu Enable promisc mode of PF, set VF link state to enable, and run iperf of the VF, then do self test of the PF. The self test will fail with a low frequency, and may cause a use-after-free problem. [ 87.142126] selftest:04a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0

[PATCH net 2/4] net: hns3: fix for mishandle of asserting VF reset fail

2020-07-06 Thread Huazhong Tan
When asserts VF reset fail, flag HCLGEVF_STATE_CMD_DISABLE and handshake status should not set, otherwise the retry will fail. So adds a check for asserting VF reset and returns directly when fails. Fixes: ef5f8e507ec9 ("net: hns3: stop handling command queue while resetting VF") Signed-off-by: H

[PATCH net 3/4] net: hns3: add a missing uninit debugfs when unload driver

2020-07-06 Thread Huazhong Tan
When unloading driver, if flag HNS3_NIC_STATE_INITED has been already cleared, the debugfs will not be uninitialized, so fix it. Fixes: b2292360bb2a ("net: hns3: Add debugfs framework registration") Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 3 +-- 1 file c

Re: [PATCH v4 14/18] nitro_enclaves: Add Kconfig for the Nitro Enclaves driver

2020-07-06 Thread Alexander Graf
On 22.06.20 22:03, Andra Paraschiv wrote: Signed-off-by: Andra Paraschiv --- Changelog v3 -> v4 * Add PCI and SMP dependencies. v2 -> v3 * Remove the GPL additional wording as SPDX-License-Identifier is already in place. v1 -> v2 * Update path to Kconfig to match the drivers/virt/nit

[PATCH v2] lib/test_bitops: Do the full test during module init

2020-07-06 Thread Geert Uytterhoeven
Currently, the bitops test consists of two parts: one part is executed during module load, the second part during module unload. This is cumbersome for the user, as he has to perform two steps to execute all tests, and is different from most (all?) other tests. Merge the two parts, so both are exe

Re: [PATCH] lib/test_bitops: Do the full test during module init

2020-07-06 Thread Geert Uytterhoeven
Hi Andy, On Mon, Jul 6, 2020 at 12:39 PM Andy Shevchenko wrote: > On Mon, Jul 6, 2020 at 12:53 PM Geert Uytterhoeven > wrote: > > Currently, the bitops test consists of two parts: one part is executed > > during module load, the second part during module unload. This is > > cumbersome for the u

[PATCH net 1/4] net: hns3: check reset pending after FLR prepare

2020-07-06 Thread Huazhong Tan
If there is a PF reset pending before FLR prepare, FLR's preparatory work will not fail, but the FLR rebuild procedure will fail for this pending. So this PF reset pending should be handled in the FLR preparatory. Fixes: 8627bdedc435 ("net: hns3: refactor the precedure of PF FLR") Signed-off-by: H

Re: [PATCH v2 1/7] Documentation: device-tree: sound: Update lpass-cpu driver binding

2020-07-06 Thread Rohit Kumar
On 5/16/2020 11:07 PM, Ajit Pandey wrote: On 5/14/2020 10:14 PM, Mark Brown wrote: On Thu, May 14, 2020 at 10:08:12PM +0530, Ajit Pandey wrote: Done the required cleanups to update lpass-cpu binding with newer yaml formats. Please do YAML conversions as the last thing in any patch series, th

Re: [PATCH v4 15/18] nitro_enclaves: Add Makefile for the Nitro Enclaves driver

2020-07-06 Thread Alexander Graf
On 22.06.20 22:03, Andra Paraschiv wrote: Signed-off-by: Andra Paraschiv Reviewed-by: Alexander Graf Alex Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 1491

Re: UART/TTY console deadlock

2020-07-06 Thread Kurt Kanzenbach
Hi, On Sat Jul 04 2020, Andy Shevchenko wrote: > On Fri, Jul 3, 2020 at 1:32 PM Sergey Senozhatsky > wrote: >> >> On (20/07/02 09:05), Tony Lindgren wrote: >> > * Sergey Senozhatsky [200702 05:13]: >> > > On (20/06/30 11:02), Tony Lindgren wrote: >> > > > This conditional disable for irq_shared

Re: [RFC PATCH] vfio: type1: fix kthread use case

2020-07-06 Thread Markus Elfring
… > +++ b/drivers/vfio/vfio_iommu_type1.c > @@ -2798,7 +2798,8 @@ static int vfio_iommu_type1_dma_rw_chunk … > - bool kthread = current->mm == NULL; > + bool kthread = current->flags & PF_KTHREAD; > + bool use_mm = current->mm == NULL; … Can it be helpful to convert initialisations for

Re: [PATCH v2] lib/test_bitops: Do the full test during module init

2020-07-06 Thread Andy Shevchenko
On Mon, Jul 06, 2020 at 01:29:00PM +0200, Geert Uytterhoeven wrote: > Currently, the bitops test consists of two parts: one part is executed > during module load, the second part during module unload. This is > cumbersome for the user, as he has to perform two steps to execute all > tests, and is d

Re: [PATCH v14 07/20] mm/thp: narrow lru locking

2020-07-06 Thread Matthew Wilcox
On Mon, Jul 06, 2020 at 05:15:09PM +0800, Alex Shi wrote: > Hi Kirill & Johannes & Matthew, > > Would you like to give some comments or share your concern of this patchset, > specialy for THP part? I don't have the brain space to understand this patch set fully at the moment. I'll note that the

Re: [PATCH v4 16/18] nitro_enclaves: Add sample for ioctl interface usage

2020-07-06 Thread Alexander Graf
On 22.06.20 22:03, Andra Paraschiv wrote: Signed-off-by: Alexandru Vasile Signed-off-by: Andra Paraschiv --- Changelog v3 -> v4 * Update usage details to match the updates in v4. * Update NE ioctl interface usage. v2 -> v3 * Remove the include directory to use the uapi from the kernel. *

Re: [PATCH v2] lib/test_bitops: Do the full test during module init

2020-07-06 Thread Geert Uytterhoeven
Hi Andy, On Mon, Jul 6, 2020 at 1:34 PM Andy Shevchenko wrote: > On Mon, Jul 06, 2020 at 01:29:00PM +0200, Geert Uytterhoeven wrote: > > Currently, the bitops test consists of two parts: one part is executed > > during module load, the second part during module unload. This is > > cumbersome for

Re: [PATCH v2 1/7] Documentation: device-tree: sound: Update lpass-cpu driver binding

2020-07-06 Thread Mark Brown
On Mon, Jul 06, 2020 at 04:59:39PM +0530, Rohit Kumar wrote: > @Mark, I was planning to post v3 patchset series for this and keep yaml > change as My name is Mark. > driver change will have checkpatch errors. Can you please suggest if should > make > first Documentation change in text file itse

Re: [PATCH][v2] Drivers: hv: Change flag to write log level in panic msg to false

2020-07-06 Thread Wei Liu
Forgot to CC Michael. On Mon, Jul 06, 2020 at 10:55:49AM +, Wei Liu wrote: > On Wed, Jul 01, 2020 at 07:33:25PM +, Sasha Levin wrote: > > Hi > > > > [This is an automated email] > > > > This commit has been processed because it contains a -stable tag. > > The stable tag indicates that it

Re: [PATCH 3/3] arm64: allwinner: a64: enable Bluetooth On Pinebook

2020-07-06 Thread Maxime Ripard
Hi, On Sun, Jul 05, 2020 at 12:51:10PM -0700, Vasily Khoruzhick wrote: > Pinebook has an RTL8723CS WiFi + BT chip, BT is connected to UART1 > and uses PL5 as device wake GPIO, PL6 as host wake GPIO the I2C > controlling signals are connected to R_I2C bus. > > Enable it in the device tree. > > Si

RE: [PATCH v2] tpm_tis: Remove the HID IFX0102

2020-07-06 Thread Peter.Huewe
Hi, NACK > % git --no-pager grep IFX0102 drivers/char/tpm > drivers/char/tpm/tpm_infineon.c: {"IFX0102", 0}, > drivers/char/tpm/tpm_tis.c: {"IFX0102", 0}, /* Infineon */ > Obviously IFX0102 was added to the HID table for the TCG TIS driver by > mistake. The HID IFX0102 was NOT add

Re: [PATCH v2] mm/page_alloc: skip setting nodemask when we are in interrupt

2020-07-06 Thread Pekka Enberg
On Mon, Jul 6, 2020 at 5:59 AM Muchun Song wrote: > When we are in the interrupt context, it is irrelevant to the > current task context. If we use current task's mems_allowed, we > can fair to alloc pages in the fast path and fall back to slow > path memory allocation when the current node(which

[PATCH v3] kasan: fix KASAN unit tests for tag-based KASAN

2020-07-06 Thread Walter Wu
We use tag-based KASAN, then KASAN unit tests don't detect out-of-bounds memory access. They need to be fixed. With tag-based KASAN, the state of each 16 aligned bytes of memory is encoded in one shadow byte and the shadow value is tag of pointer, so we need to read next shadow byte, the shadow va

Re: [RFC PATCH v2 11/18] media: tegra-video: Add support for external sensor capture

2020-07-06 Thread Hans Verkuil
On 17/06/2020 03:41, Sowjanya Komatineni wrote: > This patch adds support to capture from the external sensor > based on device graph in the device tree. > > Driver walks through the device graph to create media links > between the entities and registers and unregisters video devices > when the co

RE: [PATCH] fs: fat: add check for dir size in fat_calc_dir_size

2020-07-06 Thread Anupam Aggarwal
Hi Ogawa, >Anyway, fsck would be main way. And on other hand, if we want to add >mitigation for corruption, we would have to see much more details of >this corruption. Can you put somewhere to access the corrupted image >(need the only metadata) to reproduce? Sorry, uploading of any file not all

[PATCH v17 00/15] Introduce Data Access MONitor (DAMON)

2020-07-06 Thread SeongJae Park
From: SeongJae Park Changes from Previous Version = - Wordsmith/cleanup the documentations and the code - user space tool: Cleanup and add an option for reuse histogram (patch 11) - recording: Check disablement condition properly - recording: Force minimal recording b

[PATCH v17 01/15] mm/page_ext: Export lookup_page_ext() to GPL modules

2020-07-06 Thread SeongJae Park
From: SeongJae Park This commit exports 'lookup_page_ext()' to GPL modules. It will be used by DAMON in following commit for the implementation of the region based sampling. Signed-off-by: SeongJae Park Reviewed-by: Leonard Foerster Reviewed-by: Varad Gautam --- mm/page_ext.c | 1 + 1 file

[PATCH v17 02/15] mm: Introduce Data Access MONitor (DAMON)

2020-07-06 Thread SeongJae Park
From: SeongJae Park DAMON is a data access monitoring framework subsystem for the Linux kernel. The core mechanisms of DAMON make it - accurate (the monitoring output is useful enough for DRAM level memory management; It might not appropriate for CPU Cache levels, though), - light-weigh

[PATCH v17 03/15] mm/damon: Implement region based sampling

2020-07-06 Thread SeongJae Park
From: SeongJae Park This commit implements DAMON's target address space independent high level logics for basic access check and region based sampling. This doesn't work alone, but needs the target address space specific low level pritimives implementation for the monitoring target address range

[PATCH v17 04/15] mm/damon: Adaptively adjust regions

2020-07-06 Thread SeongJae Park
From: SeongJae Park Even somehow the initial monitoring target regions are well constructed to fulfill the assumption (pages in same region have similar access frequencies), the data access pattern can be dynamically changed. This will result in low monitoring quality. To keep the assumption as

[PATCH v17 05/15] mm/damon: Track dynamic monitoring target regions update

2020-07-06 Thread SeongJae Park
From: SeongJae Park The monitoring target address range can be dynamically changed. For example, virtual memory could be dynamically mapped and unmapped. Physical memory could be hot-plugged. As the changes could be quite frequent in some cases, DAMON checks the dynamic memory mapping changes a

[PATCH v17 06/15] mm/damon: Implement callbacks for the virtual memory address spaces

2020-07-06 Thread SeongJae Park
From: SeongJae Park This commit introduces a reference implementation of the address space specific low level primitives for the virtual address space. Now users can easily monitor the data accesses on virtual address spaces of specific processes by simply configuring the implementation to be us

Re: [PATCH 1/1] perf report TUI: Remove needless 'dummy' event from menu

2020-07-06 Thread Arnaldo Carvalho de Melo
Em Fri, Jul 03, 2020 at 10:44:28PM +0900, Namhyung Kim escreveu: > Hi Arnaldo, > > On Fri, Jul 3, 2020 at 9:34 PM Arnaldo Carvalho de Melo > wrote: > > > > Please Ack, > > > > - Arnaldo > > > > > > > > Fixing the common case of: > > > > perf record > > perf report > > > > And getting ju

[PATCH v17 07/15] mm/damon: Implement access pattern recording

2020-07-06 Thread SeongJae Park
From: SeongJae Park This commit implements the recording feature of DAMON. If this feature is enabled, DAMON writes the monitored access patterns in its binary format into a file which specified by the user. This is already able to be implemented by each user using the callbacks. However, as t

[PATCH v17 08/15] mm/damon: Add a tracepoint

2020-07-06 Thread SeongJae Park
From: SeongJae Park This commit adds a tracepoint for DAMON. It traces the monitoring results of each region for each aggregation interval. Using this, DAMON can easily integrated with tracepoints supporting tools such as perf. Signed-off-by: SeongJae Park Reviewed-by: Leonard Foerster ---

[PATCH v17 09/15] mm/damon: Implement a debugfs interface

2020-07-06 Thread SeongJae Park
From: SeongJae Park This commit implements a debugfs interface for DAMON. It works for the virtual address spaces monitoring. DAMON exports four files, ``attrs``, ``pids``, ``record``, and ``monitor_on`` under its debugfs directory, ``/damon/``. Attributes -- Users can read and write

[PATCH v17 11/15] tools/damon/wss: Implement '--thres' option

2020-07-06 Thread SeongJae Park
From: SeongJae Park Currently, 'wss' treats every region as working set if accessed at least once. Someone who want to know performance important working set only would want to ignore regions having low access frequency. '--thres' option can be used to set the minimal access frequency of the re

[PATCH v17 10/15] tools: Introduce a minimal user-space tool for DAMON

2020-07-06 Thread SeongJae Park
From: SeongJae Park This commit imtroduces a shallow wrapper python script, ``/tools/damon/damo`` that provides more convenient interface. Note that it is only aimed to be used for minimal reference of the DAMON's debugfs interfaces and for debugging of the DAMON itself. Signed-off-by: SeongJae

[PATCH v17 13/15] mm/damon: Add kunit tests

2020-07-06 Thread SeongJae Park
From: SeongJae Park This commit adds kunit based unit tests for DAMON. Signed-off-by: SeongJae Park Reviewed-by: Brendan Higgins --- mm/Kconfig | 11 + mm/damon-test.h | 661 mm/damon.c | 6 + 3 files changed, 678 insertions(+) cr

[PATCH v17 14/15] mm/damon: Add user space selftests

2020-07-06 Thread SeongJae Park
From: SeongJae Park This commit adds a simple user space tests for DAMON. The tests are using kselftest framework. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/Makefile| 7 + .../selftests/damon/_chk_dependency.sh| 28 tools/testing/selftests/damon/_c

[PATCH v17 15/15] MAINTAINERS: Update for DAMON

2020-07-06 Thread SeongJae Park
From: SeongJae Park This commit updates MAINTAINERS file for DAMON related files. Signed-off-by: SeongJae Park --- MAINTAINERS | 12 1 file changed, 12 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 50659d76976b..2396a9098715 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

Re: [PATCH v5 1/2] gpio: add GPO driver for PCA9570

2020-07-06 Thread Andy Shevchenko
On Mon, Jul 6, 2020 at 2:21 PM Bartosz Golaszewski wrote:> > On Sun, Jul 5, 2020 at 3:31 PM Sungbo Eo wrote: > > > > NXP PCA9570 is a 4-bit I2C GPO expander without interrupt functionality. > > Its ports are controlled only by a data byte without register address. > > > > Datasheet: https://www.

Re: [PATCH] kbuild: introduce ccflags-remove-y and asflags-remove-y

2020-07-06 Thread Anders Roxell
On Mon, 6 Jul 2020 at 13:24, Anders Roxell wrote: > > Hi, > > When I built an allmodconfig kernel for arm64, and boot that in qemu > guest I see the following issues: > > [...] > [ 10.451561][T1] Testing tracer function: PASSED > [ 33.087895][T1] Testing dynamic ftrace: .. filter did n

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

2020-07-06 Thread Alexander Sverdlin
Hello Alexander, On 06/07/2020 08:27, 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 doesn't

Re: [PATCH] serial: Remove duplicated macro definition of port type

2020-07-06 Thread Greg Kroah-Hartman
On Mon, Jul 06, 2020 at 05:01:12PM +0800, Tiezhu Yang wrote: > On 05/11/2020 02:40 PM, Jiri Slaby wrote: > > On 07. 05. 20, 14:03, Tiezhu Yang wrote: > > > There exists the same macro definition of port type from 0 to 13 > > > in include/uapi/linux/serial.h, remove these duplicated code in > > > in

Re: [PATCH V4 0/4] mm/debug_vm_pgtable: Add some more tests

2020-07-06 Thread Alexander Gordeev
On Mon, Jul 06, 2020 at 06:18:32AM +0530, Anshuman Khandual wrote: [...] > Tested on arm64, x86 platforms but only build tested on all other enabled > platforms through ARCH_HAS_DEBUG_VM_PGTABLE i.e powerpc, arc, s390. The Sorry for missing to test earlier. Works for me on s390. Also, tried with

Re: [PATCH net-next v2 0/7] Add devlink-health support for devlink ports

2020-07-06 Thread Moshe Shemesh
On 7/5/2020 7:48 PM, Jakub Kicinski wrote: On Sat, 4 Jul 2020 16:16:42 +0200 Jiri Pirko wrote: Sat, Jul 04, 2020 at 01:44:39AM CEST, k...@kernel.org wrote: On Fri, 3 Jul 2020 06:27:31 +0300 Moshe Shemesh wrote: Implement support for devlink health reporters on per-port basis. First part in

[PATCH][next] bnx2x: fix spelling mistake "occurd" -> "occurred"

2020-07-06 Thread Colin King
From: Colin Ian King There are spelling mistakes in various literal strings. Fix these. Signed-off-by: Colin Ian King --- drivers/net/ethernet/broadcom/bnx2x/bnx2x_self_test.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx

Re: [PATCH 1/8] cpufreq: allow drivers to flag custom support for freq invariance

2020-07-06 Thread Dietmar Eggemann
On 02/07/2020 13:44, Ionela Voinescu wrote: > Hi, > > On Thursday 02 Jul 2020 at 08:28:18 (+0530), Viresh Kumar wrote: >> On 01-07-20, 18:05, Rafael J. Wysocki wrote: >>> On Wed, Jul 1, 2020 at 3:33 PM Ionela Voinescu >>> wrote: On Wednesday 01 Jul 2020 at 16:16:17 (+0530), Viresh Kumar wro

Re: [PATCH v3] kasan: fix KASAN unit tests for tag-based KASAN

2020-07-06 Thread Dmitry Vyukov
On Mon, Jul 6, 2020 at 1:50 PM Walter Wu wrote: > > We use tag-based KASAN, then KASAN unit tests don't detect out-of-bounds > memory access. They need to be fixed. > > With tag-based KASAN, the state of each 16 aligned bytes of memory is > encoded in one shadow byte and the shadow value is tag of

RE: [PATCH v4 02/15] iommu: Report domain nesting info

2020-07-06 Thread Liu, Yi L
Hi Eric, > From: Auger Eric > Sent: Monday, July 6, 2020 5:34 PM > > On 7/4/20 1:26 PM, Liu Yi L wrote: > > IOMMUs that support nesting translation needs report the capability info > need to report > > to userspace, e.g. the format of first level/stage paging structures. > > > > This patch repor

Re: [PATCH v9 02/15] tools/libperf: add properties to struct pollfd *entries objects

2020-07-06 Thread Jiri Olsa
On Fri, Jul 03, 2020 at 10:41:45AM +0300, Alexey Budankov wrote: > > Store boolean properties per struct pollfd *entries object in a > bitmap of int size. Implement fdarray_prop__nonfilterable property > to skip object from counting by fdarray_filter(). ok, I think can do it like this, few commen

Re: [PATCH v9 09/15] perf stat: factor out event handling loop into dispatch_events()

2020-07-06 Thread Jiri Olsa
On Fri, Jul 03, 2020 at 10:46:15AM +0300, Alexey Budankov wrote: > > Consolidate event dispatching loops for fork, attach and system > wide monitoring use cases into common dispatch_events() function. > > Signed-off-by: Alexey Budankov > --- > tools/perf/builtin-stat.c | 42

[PATCH rdma-next v2 0/3] Convert XRC to use xarray

2020-07-06 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v2: Rewrote mlx5 part to avoid ib_xrcd allocation. v1: https://lore.kernel.org/lkml/20200623111531.1227013-1-l...@kernel.org Changed ib_dealloc_xrcd_user() do not iterate over tgt list, because it is expected to be empty. v0: https://lore.kernel.org/lkml/202006211

Re: [PATCH v5 1/2] gpio: add GPO driver for PCA9570

2020-07-06 Thread Andy Shevchenko
On Sun, Jul 5, 2020 at 4:31 PM Sungbo Eo wrote: > > NXP PCA9570 is a 4-bit I2C GPO expander without interrupt functionality. > Its ports are controlled only by a data byte without register address. Thank you for an update, my comments (besides what Bart has) below. > Datasheet: https://www.nxp.c

Re: [PATCH v12 00/31] Speculative page faults

2020-07-06 Thread Laurent Dufour
Le 06/07/2020 à 11:25, Chinwen Chang a écrit : On Thu, 2019-06-20 at 16:19 +0800, Haiyan Song wrote: Hi Laurent, I downloaded your script and run it on Intel 2s skylake platform with spf-v12 patch serials. Here attached the output results of this script. The following comparison result is st

[PATCH] drm/radeon: fix double free

2020-07-06 Thread trix
From: Tom Rix clang static analysis flags this error drivers/gpu/drm/radeon/ci_dpm.c:5652:9: warning: Use of memory after it is freed [unix.Malloc] kfree(rdev->pm.dpm.ps[i].ps_priv); ^~ drivers/gpu/drm/radeon/ci_dpm.c:5654:2: warning

RE: [PATCH v4 01/15] vfio/type1: Refactor vfio_iommu_type1_ioctl()

2020-07-06 Thread Liu, Yi L
Hi Eric, > From: Auger Eric > Sent: Monday, July 6, 2020 5:34 PM > > Hi Yi, > > On 7/4/20 1:26 PM, Liu Yi L wrote: > > This patch refactors the vfio_iommu_type1_ioctl() to use switch > > instead of if-else, and each cmd got a helper function. > command I see. :-) > > > > Cc: Kevin Tian > > C

[PATCH] riscv: use 16KB kernel stack on 64-bit

2020-07-06 Thread Andreas Schwab
With the current 8KB stack size there are frequent overflows in a 64-bit configuration. Signed-off-by: Andreas Schwab --- arch/riscv/include/asm/thread_info.h | 4 1 file changed, 4 insertions(+) diff --git a/arch/riscv/include/asm/thread_info.h b/arch/riscv/include/asm/thread_info.h inde

Re: [PATCH v29 00/16] Multicolor Framework v29

2020-07-06 Thread Dan Murphy
Pavel On 7/4/20 7:47 AM, Pavel Machek wrote: Hi! This is the multi color LED framework. This framework presents clustered colored LEDs into an array and allows the user space to adjust the brightness of the cluster using a single file write. The individual colored LEDs intensities are contr

Re: [PATCH v9 11/15] perf stat: implement control commands handling

2020-07-06 Thread Jiri Olsa
On Fri, Jul 03, 2020 at 10:47:22AM +0300, Alexey Budankov wrote: > > Implement handling of 'enable' and 'disable' control commands > coming from control file descriptor. process_evlist() function > checks for events on control fds and makes required operations. > If poll event splits initiated tim

RE: [PATCH 1/3] arm64/numa: set numa_off to false when numa node is fake

2020-07-06 Thread Justin He
Hi David, thanks for the comments. See my answer please: > -Original Message- > From: David Hildenbrand > Sent: Monday, July 6, 2020 4:03 PM > To: Justin He ; Catalin Marinas > ; Will Deacon > Cc: Andrew Morton ; Mike Rapoport > ; Baoquan He ; Chuhong Yuan > ; linux-arm-ker...@lists.infr

Re: [PATCH v9 11/15] perf stat: implement control commands handling

2020-07-06 Thread Jiri Olsa
On Fri, Jul 03, 2020 at 10:47:22AM +0300, Alexey Budankov wrote: SNIP > > while (1) { > if (forks) > @@ -574,11 +610,22 @@ static int dispatch_events(bool forks, int timeout, int > interval, int *times, st > if (done || stop || child_exited) >

Re: [PATCH] HID: logitech-hidpp: avoid repeated "multiplier = " log messages

2020-07-06 Thread Filipe Laíns
On Sun, 2020-07-05 at 19:34 +0200, Maciej S. Szmigiero wrote: > These messages appear each time the mouse wakes from sleep, in my > case > (Logitech M705), every minute or so. > Let's downgrade them to the "debug" level so they don't fill the > kernel log > by default. > > While we are at it, let'

Re: [PATCH] perf/tools/pmu-events/powerpc: Added nest imc metric events

2020-07-06 Thread Arnaldo Carvalho de Melo
Em Sun, Jul 05, 2020 at 06:30:30PM -0700, Ian Rogers escreveu: > On Thu, Jul 2, 2020 at 11:57 PM Kajol Jain wrote: > > > > Added nest imc metric events. > > Acked-by: Ian Rogers Thanks, applied. - Arnaldo > > Signed-off-by: Kajol Jain > > --- > > .../arch/powerpc/power9/nest_metrics.json

[PATCH] scsi: ufs: change upiu_flags to be u8

2020-07-06 Thread Bean Huo
From: Bean Huo According to the UFS Spec, the Flags in the UPIU is one-byte length, not 4 bytes. change it to be u8. Signed-off-by: Bean Huo --- drivers/scsi/ufs/ufshcd.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/u

Re: [PATCH] HID: logitech: Use HIDPP_RECEIVER_INDEX instead of 0xff

2020-07-06 Thread Filipe Laíns
On Sun, 2020-07-05 at 02:48 +, Mazin Rezk wrote: > Some parts of hid-logitech-dj explicitly referred to 0xff for the > receiver index. This patch changes those references to the > HIDPP_RECEIVER_INDEX definition. > > Signed-off-by: Mazin Rezk > --- > drivers/hid/hid-logitech-dj.c | 6 +++---

Re: [PATCH] HID: logitech-hidpp: avoid repeated "multiplier = " log messages

2020-07-06 Thread Maciej S. Szmigiero
On 06.07.2020 14:38, Filipe Laíns wrote: > On Sun, 2020-07-05 at 19:34 +0200, Maciej S. Szmigiero wrote: >> These messages appear each time the mouse wakes from sleep, in my >> case >> (Logitech M705), every minute or so. >> Let's downgrade them to the "debug" level so they don't fill the >> kernel

[PATCH v3 05/13] bus/fsl-mc: Cache the DPRC API version

2020-07-06 Thread Diana Craciun
From: Diana Craciun There are already firmware API commands that have multiple versions. For each multiple version command, another command to retrieve the API version is issued. This may introduce an important overhead. The version does not change while the system is running, so the DPRC API ver

[PATCH v3 06/13] bus/fsl-mc: Add dprc-reset-container support

2020-07-06 Thread Diana Craciun
From: Bharat Bhushan DPRC reset is required by VFIO-mc in order to stop a device to further generate DMA transactions. Signed-off-by: Bharat Bhushan Signed-off-by: Laurentiu Tudor Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/dprc.c | 71 + drivers

[PATCH v3 03/13] bus/fsl-mc: add support for 'driver_override' in the mc-bus

2020-07-06 Thread Diana Craciun
From: Bharat Bhushan This patch is required for vfio-fsl-mc meta driver to successfully bind layerscape container devices for device passthrough. This patch adds a mechanism to allow a layerscape device to specify a driver rather than a layerscape driver provide a device match. Example to allow

[PATCH v3 10/13] bus/fsl_mc: Do not rely on caller to provide non NULL mc_io

2020-07-06 Thread Diana Craciun
From: Diana Craciun Before destroying the mc_io, check first that it was allocated. Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/mc-io.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/bus/fsl-mc/mc-io.c b/drivers/bus/fsl-mc/mc-io.c index 6ae48ad80409..

[PATCH v3 12/13] bus/fsl-mc: Extend ICID size from 16bit to 32bit

2020-07-06 Thread Diana Craciun
From: Bharat Bhushan In virtual machines the device-id range is defined between 0x1-0x2. The reason for using such a large range is to avoid overlapping with the PCI range. Signed-off-by: Bharat Bhushan Signed-off-by: Laurentiu Tudor Signed-off-by: Diana Craciun --- drivers/bus/fsl-m

[PATCH v3 09/13] bus/fsl-mc: Add a container setup function

2020-07-06 Thread Diana Craciun
From: Diana Craciun Both DPRC driver and VFIO driver use the same initialization code for the DPRC. Introduced a new function which groups this initialization code. The function is exported and may be used by VFIO as well. Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/dprc-driver.c | 78

[PATCH v3 11/13] bus/fsl-mc: Export IRQ pool handling functions to be used by VFIO

2020-07-06 Thread Diana Craciun
From: Diana Craciun The IRQ pool handling functions can be used by both DPRC driver and VFIO. Adapt and export those functions. Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/dprc-driver.c | 7 +++ drivers/bus/fsl-mc/fsl-mc-allocator.c | 12 drivers/bus/fsl-mc/fsl-m

[PATCH v3 00/13] bus/fsl-mc: Extend mc-bus driver functionalities in preparation for mc-bus VFIO support

2020-07-06 Thread Diana Craciun
From: Diana Craciun The vfio-mc bus driver needs some additional services to be exported by the mc-bus driver like: - a way to reset the DPRC container - driver_override support - functions to setup/tear down a DPRC - functions for allocating the pool of interrupts. In case of VFIO the interrupts

[PATCH v3 02/13] bus/fsl-mc: Add a new parameter to dprc_scan_objects function

2020-07-06 Thread Diana Craciun
From: Diana Craciun Prepare the dprc_scan_objects function to be used by the VFIO mc driver code. The function is used to scan the mc objects by the bus driver. The same functionality is needed by the VFIO mc driver, but in this case the interrupt configuration is delayed until the userspace conf

[PATCH v3 04/13] bus/fsl-mc: Set the QMAN/BMAN region flags

2020-07-06 Thread Diana Craciun
From: Diana Craciun The QMAN region is memory mapped, so it should be of type IORESOURCE_MEM. The region flags bits were wrongly used to pass additional information. Use the bus specific bits for this purpose. Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/fsl-mc-bus.c | 7 ++- dr

[PATCH v3 07/13] bus/fsl-mc: Export a dprc scan function to be used by multiple entities

2020-07-06 Thread Diana Craciun
From: Diana Craciun Currently the DPRC scan function is used only by the bus driver. But the same functionality will be needed by the VFIO driver. To support this, the dprc scan function was exported and a little bit adjusted to fit both scenarios. Also the scan mutex initialization is done when

drivers/interconnect/qcom/icc-rpmh.c:132:28: sparse: sparse: incorrect type in assignment (different base types)

2020-07-06 Thread kernel test robot
-20200706 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.2-14-g8fce3d7a

[PATCH v3 08/13] bus/fsl-mc: Export a cleanup function for DPRC

2020-07-06 Thread Diana Craciun
From: Diana Craciun Create and export a cleanup function for DPRC. The function is used by the DPRC driver, but it will be used by the VFIO driver as well. Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/dprc-driver.c | 52 include/linux/fsl/mc.h

Re: [PATCH v2 16/18] media: mtk-vcodec: venc: make S_PARM return -ENOTTY for CAPTURE queue

2020-07-06 Thread Hans Verkuil
On 04/07/2020 14:36, Alexandre Courbot wrote: > On Fri, Jul 3, 2020 at 5:30 PM Hans Verkuil wrote: >> >> On 26/06/2020 10:04, Alexandre Courbot wrote: >>> v4l2-compliance expects ENOTTY to be returned when a given queue does >>> not support S_PARM. >>> >>> Signed-off-by: Alexandre Courbot >>> ---

[PATCH v3 13/13] bus/fsl-mc: Add a new version for dprc_get_obj_region command

2020-07-06 Thread Diana Craciun
From: Diana Craciun The region size reported by the firmware for mc and software portals was less than allocated by the hardware. This may be problematic when mmapping the region in user space because the region size is less than page size. However the size as reserved by the hardware is 64K. Si

[PATCH v3 01/13] bus/fsl-mc: Do no longer export the total number of irqs outside dprc_scan_objects

2020-07-06 Thread Diana Craciun
From: Diana Craciun The total number of interrupts is only used for some checks outside the dprc_scan_objects function. Furthermore, in some situations the check is made twice. Move the bounds check inside the function for all situations. Signed-off-by: Diana Craciun --- drivers/bus/fsl-mc/dpr

[PATCH net-next] selftests: mptcp: capture pcap on both sides

2020-07-06 Thread Matthieu Baerts
When investigating performance issues that involve latency / loss / reordering it is useful to have the pcap from the sender-side as it allows to easier infer the state of the sender's congestion-control, loss-recovery, etc. Allow the selftests to capture a pcap on both sender and receiver so that

[PATCH v3] hung_task:add detecting task in D state milliseconds timeout

2020-07-06 Thread yang che
current hung_task_check_interval_secs and hung_task_timeout_secs only supports seconds. In some cases,the TASK_UNINTERRUPTIBLE state takes less than 1 second,may need to hung task trigger panic get ramdump or print all cpu task. modify hung_task_check_interval_secs to hung_task_check_interval_msec

Re: [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Chris Mason
On 5 Jul 2020, at 0:55, Willy Tarreau wrote: > On Sat, Jul 04, 2020 at 01:02:51PM -0700, Dan Williams wrote: >> +Non-inclusive terminology has that same distracting effect which is >> why >> +it is a style issue for Linux, it injures developer efficiency. > > I'm personally thinking that for a no

RE: [PATCH v4 03/15] iommu/smmu: Report empty domain nesting info

2020-07-06 Thread Liu, Yi L
Hi Eric, > From: Auger Eric > > Hi Yi, > > Please add a commit message: instead of returning a boolean for > DOMAIN_ATTR_NESTING, arm_smmu_domain_get_attr() returns a > iommu_nesting_info handle. will do. thanks for the suggestion. > > On 7/4/20 1:26 PM, Liu Yi L wrote: > > Cc: Will Deacon

RE: [PATCH 1/3] arm64/numa: set numa_off to false when numa node is fake

2020-07-06 Thread Justin He
Hi Jonathan, thanks for the comments. > -Original Message- > From: Jonathan Cameron > Sent: Monday, July 6, 2020 6:46 PM > To: Justin He > Cc: Catalin Marinas ; Will Deacon > ; Andrew Morton ; Mike > Rapoport ; Baoquan He ; Chuhong Yuan > ; linux-arm-ker...@lists.infradead.org; linux- >

Re: mainline/master bisection: baseline.dmesg.crit on qemu_arm-vexpress-a15

2020-07-06 Thread Sudeep Holla
Hi, On Sun, Jul 05, 2020 at 07:12:58PM -0700, kernelci.org bot wrote: > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * This automated bisection report was sent to you on the basis * > * that you may be involved with the breaking commit it has * > * found. No manual in

Re: [Ksummit-discuss] [PATCH] CodingStyle: Inclusive Terminology

2020-07-06 Thread Matthew Wilcox
On Mon, Jul 6, 2020 at 3:54 AM Geert Uytterhoeven wrote: > On Mon, Jul 6, 2020 at 9:22 AM Greg Kroah-Hartman > wrote: > > On Mon, Jul 06, 2020 at 05:10:37PM +1000, NeilBrown wrote: > > > On Sat, Jul 04 2020, Matthew Wilcox wrote: > > > > Another suggestion for "slave" replacement should be "devic

Re: [Intel-gfx] [PATCH v9 5/5] drm/i915: Enable support for integrated privacy screen

2020-07-06 Thread Hans de Goede
Hi, On 3/12/20 7:56 PM, Rajat Jain wrote: Add support for an ACPI based integrated privacy screen that is available on some systems. Signed-off-by: Rajat Jain So as discussed a while ago I'm working on adding support for the privacy-screen on Lenovo Thinkpads, introducing a small new subsyst

[PATCH] pidfd: fix memory leak in pidfd_getfd()

2020-07-06 Thread Vamshi K Sthambamkadi
kmemleak backtrace: comm "pidfd_getfd_tes", pid 1406, jiffies 4294936898 (age 8.644s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 90 da d8 f6 80 d5 6f f2 ..o. b8 fb 9b ea c0 91 99 d1 00 00 00 00 00 00 00 00 backtrace: [<8da987ad>] kmem_cache_al

Re: [qemu] boot failed: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000

2020-07-06 Thread Arnd Bergmann
On Mon, Jul 6, 2020 at 1:03 PM Naresh Kamboju wrote: > > While booting qemu_arm64 and qemu_arm with Linux version > 5.8.0-rc3-next-20200706 > the kernel panic noticed due to kernel NULL pointer dereference. > > metadata: > git branch: master > git repo: > htt

Re: [PATCH 1/3] thermal/cpu-cooling, sched/core: Cleanup thermal pressure definition

2020-07-06 Thread Vincent Guittot
On Sun, 5 Jul 2020 at 16:19, Valentin Schneider wrote: > > > Sorry for getting back to this only now; > > On 22/06/20 09:37, Vincent Guittot wrote: > > On Sun, 21 Jun 2020 at 00:28, Valentin Schneider > > wrote: > >> On 20/06/20 18:49, Ionela Voinescu wrote: > >> > On Thursday 18 Jun 2020 at 17:

Re: [PATCH v4 01/15] vfio/type1: Refactor vfio_iommu_type1_ioctl()

2020-07-06 Thread Auger Eric
Hi Yi, On 7/6/20 2:27 PM, Liu, Yi L wrote: > Hi Eric, > >> From: Auger Eric >> Sent: Monday, July 6, 2020 5:34 PM >> >> Hi Yi, >> >> On 7/4/20 1:26 PM, Liu Yi L wrote: >>> This patch refactors the vfio_iommu_type1_ioctl() to use switch >>> instead of if-else, and each cmd got a helper function.

Re: [PATCH 02/17] Documentation/driver-api: firmware/built-in-fw: drop doubled word

2020-07-06 Thread Luis Chamberlain
On Fri, Jul 03, 2020 at 08:44:47PM -0700, Randy Dunlap wrote: > Drop the doubled word "for". > > Signed-off-by: Randy Dunlap > Cc: Jonathan Corbet > Cc: linux-...@vger.kernel.org > Cc: Luis Chamberlain > Cc: Greg Kroah-Hartman For all the firmware patches you sent: Acked-by: Luis Chamberlain

Re: [RFC 1/3] perf jevents: Add support for parsing perchip/percore events

2020-07-06 Thread Jiri Olsa
On Fri, Jul 03, 2020 at 11:50:28AM +0530, kajoljain wrote: SNIP > ] > diff --git a/tools/perf/pmu-events/jevents.c b/tools/perf/pmu-events/jevents.c > index fa86c5f997cc..dd2b14cc147c 100644 > --- a/tools/perf/pmu-events/jevents.c > +++ b/tools/perf/pmu-events/jevents.c > @@ -53,6 +53,23 @@ > i

Re: [PATCH] pidfd: fix memory leak in pidfd_getfd()

2020-07-06 Thread Christian Brauner
On Mon, Jul 06, 2020 at 06:22:55PM +0530, Vamshi K Sthambamkadi wrote: > kmemleak backtrace: > > comm "pidfd_getfd_tes", pid 1406, jiffies 4294936898 (age 8.644s) > hex dump (first 32 bytes): > 00 00 00 00 00 00 00 00 90 da d8 f6 80 d5 6f f2 ..o. > b8 fb 9b ea c0 91 99 d1 00

Re: [PATCH] usb: core: fix quirks_param_set() writing to a const pointer

2020-07-06 Thread Kars Mulder
On Monday, July 06, 2020 12:34 CEST, Greg Kroah-Hartman wrote: > That's a lot of stack space, is it really needed? Can we just use a > static variable instead, or dynamically allocate this? It is very possible to statically or dynamically allocate this. Statically reserving an additional 128 by

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