Re: [PATCH v4 03/13] task_isolation: userspace hard isolation from kernel

2020-10-01 Thread Frederic Weisbecker
On Wed, Jul 22, 2020 at 02:49:49PM +, Alex Belits wrote: > +/* > + * Description of the last two tasks that ran isolated on a given CPU. > + * This is intended only for messages about isolation breaking. We > + * don't want any references to actual task while accessing this from > + * CPU that

[PATCH V9 2/4] perf/x86/intel: Support PERF_SAMPLE_DATA_PAGE_SIZE

2020-10-01 Thread kan . liang
From: Kan Liang The new sample type, PERF_SAMPLE_DATA_PAGE_SIZE, requires the virtual address. Update the data->addr if the sample type is set. The large PEBS is disabled with the sample type, because perf doesn't support munmap tracking yet. The PEBS buffer for large PEBS cannot be flushed for

[PATCH V9 3/4] powerpc/perf: Support PERF_SAMPLE_DATA_PAGE_SIZE

2020-10-01 Thread kan . liang
From: Kan Liang The new sample type, PERF_SAMPLE_DATA_PAGE_SIZE, requires the virtual address. Update the data->addr if the sample type is set. Signed-off-by: Kan Liang --- arch/powerpc/perf/core-book3s.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

Re: [RFC PATCH] kthread: do not modify running work

2020-10-01 Thread Thomas Gleixner
On Thu, Oct 01 2020 at 17:51, Hillf Danton wrote: > On Wed, 30 Sep 2020 17:01:09 +0200 Petr Mladek wrote: >> On Sat 2020-09-26 12:04:26, Hillf Danton wrote: >> > >> > It does not make much sense to rearm timer for the delayed work if >> > it is worker's current work atm because it's good to do

[PATCH V9 1/4] perf/core: Add PERF_SAMPLE_DATA_PAGE_SIZE

2020-10-01 Thread kan . liang
From: Kan Liang Current perf can report both virtual addresses and physical addresses, but not the MMU page size. Without the MMU page size information of the utilized page, users cannot decide whether to promote/demote large pages to optimize memory usage. Add a new sample type for the data

[PATCH V9 0/4] Add the page size in the perf record (kernel)

2020-10-01 Thread kan . liang
From: Kan Liang Changes since V8 - Drop active_mm which can cause kernel panic Changes since V7 - Use active_mm to replace mm and init_mm - Update the commit message of the patch 1 Changes since V6 - Return the MMU page size of a given virtual address, not the kernel software page size - Add

[PATCH V9 4/4] perf/core: Add support for PERF_SAMPLE_CODE_PAGE_SIZE

2020-10-01 Thread kan . liang
From: Stephane Eranian When studying code layout, it is useful to capture the page size of the sampled code address. Add a new sample type for code page size. The new sample type requires collecting the ip. The code page size can be calculated from the NMI-safe perf_get_page_size(). For large

[PATCH net-next 14/16] net/mlx5: Add support for fw live patch event

2020-10-01 Thread Moshe Shemesh
Firmware live patch event notifies the driver that the firmware was just updated using live patch. In such case the driver should not reload or re-initiate entities, part to updating the firmware version and re-initiate the firmware tracer which can be updated by live patch with new strings

[PATCH net-next 04/16] devlink: Add reload stats

2020-10-01 Thread Moshe Shemesh
Add reload stats to hold the history per reload action type and limit. For example, the number of times fw_activate has been performed on this device since the driver module was added or if the firmware activation was performed with or without reset. Add devlink notification on stats update.

[PATCH net-next 01/16] devlink: Change devlink_reload_supported() param type

2020-10-01 Thread Moshe Shemesh
Change devlink_reload_supported() function to get devlink_ops pointer param instead of devlink pointer param. This change will be used in the next patch to check if devlink reload is supported before devlink instance is allocated. Signed-off-by: Moshe Shemesh --- RFCv5 -> v1: - New patch ---

[PATCH net-next 02/16] devlink: Add reload action option to devlink reload command

2020-10-01 Thread Moshe Shemesh
Add devlink reload action to allow the user to request a specific reload action. The action parameter is optional, if not specified then devlink driver re-init action is used (backward compatible). Note that when required to do firmware activation some drivers may need to reload the driver. On the

[PATCH net-next 08/16] net/mlx5: Handle sync reset request event

2020-10-01 Thread Moshe Shemesh
Once the driver gets sync_reset_request from firmware it prepares for the coming reset and sends acknowledge. After getting this event the driver expects device reset, either it will trigger PCI reset on sync_reset_now event or such PCI reset will be triggered by another PF of the same device. So

[PATCH v4 2/9] arm64: perf: Enable pmu counter direct access for perf event on armv8

2020-10-01 Thread Rob Herring
From: Raphael Gault Keep track of event opened with direct access to the hardware counters and modify permissions while they are open. The strategy used here is the same which x86 uses: everytime an event is mapped, the permissions are set if required. The atomic field added in the mm_context

[PATCH v4 9/9] Documentation: arm64: Document PMU counters access from userspace

2020-10-01 Thread Rob Herring
From: Raphael Gault Add a documentation file to describe the access to the pmu hardware counters from userspace Signed-off-by: Raphael Gault Signed-off-by: Rob Herring --- v2: - Update links to test examples Changes from Raphael's v4: - Convert to rSt - Update chained event status -

[PATCH net-next 05/16] devlink: Add remote reload stats

2020-10-01 Thread Moshe Shemesh
Add remote reload stats to hold the history of actions performed due devlink reload commands initiated by remote host. For example, in case firmware activation with reset finished successfully but was initiated by remote host. The function devlink_remote_reload_actions_performed() is exported to

[PATCH net-next 16/16] devlink: Add Documentation/networking/devlink/devlink-reload.rst

2020-10-01 Thread Moshe Shemesh
Add devlink reload rst documentation file. Update index file to include it. Signed-off-by: Moshe Shemesh --- RFCv5 -> v1: - Rename reload_action_limit_level to reload_limit RFCv4 -> RFCv5: - Rephrase namespace chnage section - Rephrase note on actions performed RFCv3 -> RFCv4: - Remove reload

Re: [PATCH] x86/kvm: hide KVM options from menuconfig when KVM is not compiled

2020-10-01 Thread Vitaly Kuznetsov
Matteo Croce writes: > From: Matteo Croce > > Let KVM_WERROR depend on KVM, so it doesn't show in menuconfig alone. > > Signed-off-by: Matteo Croce I'd even say Fixes: 4f337faf1c55e ("KVM: allow disabling -Werror") > --- > arch/x86/kvm/Kconfig | 1 + > 1 file changed, 1 insertion(+) > >

[PATCH v4 7/9] libperf: Add arm64 support to perf_mmap__read_self()

2020-10-01 Thread Rob Herring
Add the arm64 variants for read_perf_counter() and read_timestamp(). Unfortunately the counter number is encoded into the instruction, so the code is a bit verbose to enumerate all possible counters. Signed-off-by: Rob Herring --- tools/lib/perf/mmap.c | 98

[PATCH net-next 06/16] net/mlx5: Add functions to set/query MFRL register

2020-10-01 Thread Moshe Shemesh
Add functions to query and set the MFRL reset options supported by firmware. Signed-off-by: Moshe Shemesh Reviewed-by: Saeed Mahameed --- RFCv5 -> v1: - Renamed non-static functions to have module prefix --- .../net/ethernet/mellanox/mlx5/core/Makefile | 2 +-

[PATCH net-next 03/16] devlink: Add devlink reload limit option

2020-10-01 Thread Moshe Shemesh
Add reload limit to demand restrictions on reload actions. Reload limits supported: no_reset: No reset allowed, no down time allowed, no link flap and no configuration is lost. By default reload limit is unspecified and so no constrains on reload actions are required. Some combinations

[PATCH v4 4/9] libperf: Add libperf_evsel__mmap()

2020-10-01 Thread Rob Herring
In order to support usersapce access, an event must be mmapped. While there's already mmap support for evlist, the usecase is a bit different than the self monitoring with userspace access. So let's add a new perf_evsel__mmap() function to mmap an evsel. This allows implementing userspace access

[PATCH v4 1/9] arm64: pmu: Add function implementation to update event index in userpage

2020-10-01 Thread Rob Herring
From: Raphael Gault In order to be able to access the counter directly for userspace, we need to provide the index of the counter using the userpage. We thus need to override the event_idx function to retrieve and convert the perf_event index to armv8 hardware index. Since the arm_pmu driver

[PATCH net-next 13/16] net/mlx5: Add devlink param enable_remote_dev_reset support

2020-10-01 Thread Moshe Shemesh
The enable_remote_dev_reset devlink param flags that the host admin allows resets by other hosts. In case it is cleared mlx5 host PF driver will send NACK on pci sync for firmware update reset request and the command will fail. By default enable_remote_dev_reset parameter is true, so pci sync for

[PATCH v4 8/9] perf: arm64: Add test for userspace counter access on heterogeneous systems

2020-10-01 Thread Rob Herring
Userspace counter access only works on heterogeneous systems with some restrictions. The userspace process must be pinned to a homogeneous subset of CPUs and must open the corresponding PMU for those CPUs. This commit adds a test implementing these requirements. Signed-off-by: Rob Herring ---

[PATCH v4 6/9] libperf: Add support for user space counter access

2020-10-01 Thread Rob Herring
x86 and arm64 can both support direct access of event counters in userspace. The access sequence is less than trivial and currently exists in perf test code (tools/perf/arch/x86/tests/rdpmc.c) with copies in projects such as PAPI and libpfm4. In order to support usersapce access, an event must be

[PATCH net-next 00/16] Add devlink reload action and limit options

2020-10-01 Thread Moshe Shemesh
Introduce new options on devlink reload API to enable the user to select the reload action required and constrains limits on these actions that he may want to ensure. Complete support for reload actions in mlx5. The following reload actions are supported: driver_reinit: driver entities

[PATCH v4 0/9] libperf and arm64 userspace counter access support

2020-10-01 Thread Rob Herring
This is resurrecting Raphael's series[1] to enable userspace counter access on arm64. My previous versions are here[2][3][4]. A git branch is here[5]. Changes in v4: - Dropped 'arm64: pmu: Add hook to handle pmu-related undefined instructions'. The onus is on userspace to pin itself to a

[PATCH v4 3/9] tools/include: Add an initial math64.h

2020-10-01 Thread Rob Herring
Add an initial math64.h similar to linux/math64.h with functions mul_u64_u64_div64() and mul_u64_u32_shr(). This isn't a direct copy of include/linux/math64.h as that doesn't define mul_u64_u64_div64(). Implementation was written by Peter Zilkstra based on linux/math64.h and div64.h[1]. The

[PATCH v4 5/9] libperf: tests: Add support for verbose printing

2020-10-01 Thread Rob Herring
Add __T_VERBOSE() so tests can add verbose output. The verbose output is enabled with the '-v' command line option. Signed-off-by: Rob Herring --- v3: - New patch --- tools/lib/perf/include/internal/tests.h | 32 + tools/lib/perf/tests/Makefile | 4 +++- 2

[PATCH net-next 11/16] net/mlx5: Add support for devlink reload action fw activate

2020-10-01 Thread Moshe Shemesh
Add support for devlink reload action fw_activate. To activate firmware image the mlx5 driver resets the firmware and reloads it from flash. If a new image was stored on flash it will be loaded. Once this reload command is executed the driver initiates fw sync reset flow, where the firmware

[PATCH net-next 09/16] net/mlx5: Handle sync reset now event

2020-10-01 Thread Moshe Shemesh
On sync_reset_now event the driver does reload and PCI link toggle to activate firmware upgrade reset. When the firmware sends this event it syncs the event on all PFs, so all PFs will do PCI link toggle at once. To do PCI link toggle, the driver ensures that no other device ID under the same

[PATCH net-next 12/16] devlink: Add enable_remote_dev_reset generic parameter

2020-10-01 Thread Moshe Shemesh
The enable_remote_dev_reset devlink param flags that the host admin allows device resets that can be initiated by other hosts. This parameter is useful for setups where a device is shared by different hosts, such as multi-host setup. Once the user set this parameter to false, the driver should

[PATCH net-next 10/16] net/mlx5: Handle sync reset abort event

2020-10-01 Thread Moshe Shemesh
If firmware sends sync_reset_abort to driver the driver should clear the reset requested mode as reset is not expected any more. Signed-off-by: Moshe Shemesh Reviewed-by: Saeed Mahameed --- .../net/ethernet/mellanox/mlx5/core/fw_reset.c| 15 +++ 1 file changed, 15 insertions(+)

[PATCH net-next 07/16] net/mlx5: Set cap for pci sync for fw update event

2020-10-01 Thread Moshe Shemesh
Set capability to notify the firmware that this host driver is capable of handling pci sync for firmware update events. Signed-off-by: Moshe Shemesh Reviewed-by: Saeed Mahameed --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH net-next 15/16] net/mlx5: Add support for devlink reload limit no reset

2020-10-01 Thread Moshe Shemesh
Add support for devlink reload action fw_activate with reload limit no_reset which does firmware live patching, updating the firmware image without reset, no downtime and no configuration lose. The driver checks if the firmware is capable of handling the pending firmware changes as a live patch.

Re: BUG: amdgpu: NULL pointer dereference introduced in 5.9-rc1

2020-10-01 Thread Alex Deucher
On Wed, Sep 30, 2020 at 4:46 PM Dirk Gouders wrote: > > Commit c1cf79ca5ced46 (drm/amdgpu: use IP discovery table for renoir) > introduced a NULL pointer dereference when booting with > amdgpu.discovery=0. > > For amdgpu.discovery=0 that commit effectively removed the call of >

[PATCH] iio: dac: ad7303: remove platform data header

2020-10-01 Thread Alexandru Ardelean
The information in the ad7303 platform_data header is unused, so it's dead code. This change removes it and it's inclusion from the driver. Signed-off-by: Alexandru Ardelean --- drivers/iio/dac/ad7303.c | 2 -- include/linux/platform_data/ad7303.h | 20 2 files

[PATCH] iio: adc: ad7298: rework external ref setup & remove platform data

2020-10-01 Thread Alexandru Ardelean
This change removes the old platform data for ad7298. It is only used to provide whether to use an external regulator as a reference. So, the logic is inverted a bit. The driver now tries to obtain a regulator. If one is provided, then the external ref is used. The rest of the logic should work

[PATCH] iio: adc: ad7887: invert/rework external ref logic

2020-10-01 Thread Alexandru Ardelean
This change inverts/reworks the logic to use an external reference via a provided regulator. Now the driver tries to obtain a regulator. If one is found, then it is used. The rest of the driver logic already checks if there is a non-NULL reference to a regulator, so it should be fine.

Re: [RFC PATCH 1/2] mtd: spi-nor: atmel: remove global SNOR_F_HAS_LOCK

2020-10-01 Thread Tudor.Ambarus
On 10/1/20 3:28 PM, Michael Walle wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > This is considered bad for the following reasons: > (1) We only support the block protection with BPn bits for write > protection. Not all Atmel parts

Re: [PATCH 1/2] docs: Clarify abstract scale usage for power values in Energy Model

2020-10-01 Thread Lukasz Luba
Hi Douglas On 9/30/20 6:24 PM, Doug Anderson wrote: Hi, On Wed, Sep 30, 2020 at 8:48 AM Rajendra Nayak wrote: On 9/30/2020 7:34 PM, Lukasz Luba wrote: On 9/30/20 11:55 AM, Rajendra Nayak wrote: On 9/30/2020 1:55 PM, Lukasz Luba wrote: Hi Douglas, On 9/30/20 12:53 AM, Doug Anderson

Re: [RFC PATCH 1/2] mtd: spi-nor: atmel: remove global SNOR_F_HAS_LOCK

2020-10-01 Thread Michael Walle
Am 2020-10-01 16:06, schrieb tudor.amba...@microchip.com: On 10/1/20 3:28 PM, Michael Walle wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe This is considered bad for the following reasons: (1) We only support the block protection with BPn

[PATCH v3 08/10] ARM: uaccess: add __{get,put}_kernel_nofault

2020-10-01 Thread Arnd Bergmann
These mimic the behavior of get_user and put_user, except for domain switching, address limit checking and handling of mismatched sizes, none of which are relevant here. To work with pre-Armv6 kernels, this has to avoid TUSER() inside of the new macros, the new approach passes the "t" string

[PATCH v3 06/10] ARM: oabi-compat: rework sys_semtimedop emulation

2020-10-01 Thread Arnd Bergmann
sys_oabi_semtimedop() is one of the last users of set_fs() on Arm. To remove this one, expose the internal code of the actual implementation that operates on a kernel pointer and call it directly after copying. There should be no measurable impact on the normal execution of this function, and it

[PATCH v3 09/10] ARM: provide a TASK_SIZE_MAX definition

2020-10-01 Thread Arnd Bergmann
Define TASK_SIZE_MAX to allow building without CONFIG_SET_FS Signed-off-by: Arnd Bergmann --- arch/arm/include/asm/memory.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/memory.h b/arch/arm/include/asm/memory.h index 99035b5891ef..285b32fd1a12 100644 ---

[PATCH v3 02/10] ARM: traps: use get_kernel_nofault instead of set_fs()

2020-10-01 Thread Arnd Bergmann
ARM uses set_fs() and __get_user() to allow the stack dumping code to access possibly invalid pointers carefully. These can be changed to the simpler get_kernel_nofault(), and allow the eventual removal of set_fs(). dump_instr() will print either kernel or user space pointers, depending on how it

[PATCH v3 03/10] ARM: oabi-compat: add epoll_pwait handler

2020-10-01 Thread Arnd Bergmann
The epoll_wait() syscall has a special version for OABI compat mode to convert the arguments to the EABI structure layout of the kernel. However, the later epoll_pwait() syscall was added in arch/arm in linux-2.6.32 without this conversion. Use the same kind of handler for both. Fixes:

[PATCH v3 04/10] ARM: syscall: always store thread_info->syscall

2020-10-01 Thread Arnd Bergmann
The system call number is used in a a couple of places, in particular ptrace, seccomp and /proc//syscall. The last one apparently never worked reliably on ARM for tasks that are not currently getting traced. Storing the syscall number in the normal entry path makes it work, as well as allowing

[PATCH v3 10/10] ARM: uaccess: remove set_fs() implementation

2020-10-01 Thread Arnd Bergmann
There are no remaining callers of set_fs(), so just remove it along with all associated code that operates on thread_info->addr_limit. There are still further optimizations that can be done: - In get_user(), the address check could be moved entirely into the out of line code, rather than

[PATCH v3 05/10] ARM: oabi-compat: rework epoll_wait/epoll_pwait emulation

2020-10-01 Thread Arnd Bergmann
The epoll_wait() system call wrapper is one of the remaining users of the set_fs() infrasturcture for Arm. Changing it to not require set_fs() is rather complex unfortunately. The approach I'm taking here is to allow architectures to override the code that copies the output to user space, and let

[PATCH v3 07/10] ARM: oabi-compat: rework fcntl64() emulation

2020-10-01 Thread Arnd Bergmann
This is one of the last users of get_fs(), and this is fairly easy to change, since the infrastructure for it is already there. The replacement here is essentially a copy of the existing fcntl64() syscall entry function. Signed-off-by: Arnd Bergmann --- arch/arm/kernel/sys_oabi-compat.c | 93

[PATCH v3 01/10] mm/maccess: fix unaligned copy_{from,to}_kernel_nofault

2020-10-01 Thread Arnd Bergmann
On machines such as ARMv5 that trap unaligned accesses, these two functions can be slow when each access needs to be emulated, or they might not work at all. Change them so that each loop is only used when both the src and dst pointers are naturally aligned. Reviewed-by: Christoph Hellwig

[PATCH v3 00/10] ARM: remove set_fs callers and implementation

2020-10-01 Thread Arnd Bergmann
Hi Christoph, Russell, This is the updated version of my ARM set_fs patches, hopefully I managed to address your previous concerns. I have tested the oabi-compat changes using the LTP tests for the three modified syscalls using an Armv7 kernel and a Debian 5 OABI user space. I also tested the

Re: linux-next: manual merge of the akpm tree with the drm-intel tree

2020-10-01 Thread Daniel Vetter
On Thu, Oct 1, 2020 at 3:53 PM Christoph Hellwig wrote: > > On Thu, Oct 01, 2020 at 08:39:17PM +1000, Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the akpm tree got a conflict in: > > > > drivers/gpu/drm/i915/gem/i915_gem_pages.c > > > > between commit: > > > >

Re: [PATCH v3 0/2] add Intel MAX 10 BMC MFD driver & hwmon sub driver

2020-10-01 Thread Xu Yilun
Hi Guenter, On Wed, Sep 30, 2020 at 01:52:49PM -0700, Guenter Roeck wrote: > On Mon, Sep 21, 2020 at 02:17:49PM +0800, Xu Yilun wrote: > > I recently realized that maintainers may have trouble to apply patches to > > their trees if the patches depend on other being-reviewed patches. So I'm > >

Re: [PATCH v3 7/9] clk: mediatek: Fix asymmetrical PLL enable and disable control

2020-10-01 Thread Matthias Brugger
On 03/09/2020 05:22, Weiyi Lu wrote: The en_mask actually is a combination of divider enable mask and pll enable bit(bit0). Before this patch, we enabled both divider mask and bit0 in prepare(), but only cleared the bit0 in unprepare(). Now, setting the enable register(CON0) in 2 steps: first

Re: [PATCH RFC] checkpatch: fix multi-statement macro checks

2020-10-01 Thread Dwaipayan Ray
On Thu, Oct 1, 2020 at 7:12 PM Joe Perches wrote: > > On Thu, 2020-10-01 at 18:57 +0530, Dwaipayan Ray wrote: > > On Thu, Oct 1, 2020 at 6:47 PM Joe Perches wrote: > > > On Thu, 2020-10-01 at 16:03 +0530, Dwaipayan Ray wrote: > > > > Checkpatch.pl doesn't have a check for excluding while (...)

Re: [PATCH] mtd: spi-nor: Fix 3-or-4 address byte mode logic

2020-10-01 Thread Tudor.Ambarus
On 10/1/20 9:34 AM, Pratyush Yadav wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Hi, > > On 01/10/20 01:56AM, Bert Vermeulen wrote: >> Flash chips that announce BFPT_DWORD1_ADDRESS_BYTES_3_OR_4 capability >> get an addr_width of 3.

Re: [PATCH v3 0/9] Mediatek MT8192 clock support

2020-10-01 Thread Matthias Brugger
Hi Weiyi, On 03/09/2020 05:22, Weiyi Lu wrote: This series is based on v5.9-rc1 and MT8192 dts[1]. [1] https://patchwork.kernel.org/cover/11713555/ changes since v2: - update and split dt-binding documents by functionalities - add error checking in probe() function - fix incorrect clock

Re: [PATCH 3/3] nvmem: qfprom: Don't touch certain fuses

2020-10-01 Thread Srinivas Kandagatla
Hi Evan, On 29/09/2020 21:58, Evan Green wrote: Some fuse ranges are protected by the XPU such that the AP cannot access them. Attempting to do so causes an SError. Use the newly introduced per-soc compatible string to attach the set of regions we should not access. Then tiptoe around those

Re: [PATCH 0/4] fs: add mount_setattr()

2020-10-01 Thread Pavel Tikhomirov
mount_setattr() can be expected to grow over time and is designed with extensibility in mind. It follows the extensible syscall pattern we have used with other syscalls such as openat2(), clone3(), sched_{set,get}attr(), and others. The set of mount options is passed in the uapi struct

Re: [PATCH] x86/kvm: hide KVM options from menuconfig when KVM is not compiled

2020-10-01 Thread Matteo Croce
On Thu, Oct 1, 2020 at 4:01 PM Vitaly Kuznetsov wrote: > > Matteo Croce writes: > > > From: Matteo Croce > > > > Let KVM_WERROR depend on KVM, so it doesn't show in menuconfig alone. > > > > Signed-off-by: Matteo Croce > > I'd even say > > Fixes: 4f337faf1c55e ("KVM: allow disabling -Werror")

Re: [v5,0/4] watchdog: mt8192: add wdt support

2020-10-01 Thread Matthias Brugger
Hi Crystal, It seems you forgot to send the email to one of the maintainers, Wim. Please make sure you add all the maintainers from get_maintainers.pl when you send a series. Regards, Matthias On 29/09/2020 05:20, Crystal Guo wrote: v5 changes: fix typos on:

Re: [PATCH V8 1/4] perf/core: Add PERF_SAMPLE_DATA_PAGE_SIZE

2020-10-01 Thread Peter Zijlstra
On Thu, Oct 01, 2020 at 06:49:36AM -0700, Dave Hansen wrote: > On 9/30/20 10:30 AM, Peter Zijlstra wrote: > > In general though; I think using ->active_mm is a mistake though. That > > code should be doing something like: > > > > > > mm = current->mm; > > if (!mm) > > mm =

Re: [PATCH v3 1/2] arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards

2020-10-01 Thread Frieder Schrempf
On 01.10.20 15:30, Frieder Schrempf wrote: On 01.10.20 14:57, Krzysztof Kozlowski wrote: On Thu, Oct 01, 2020 at 02:06:58PM +0200, Schrempf Frieder wrote: From: Frieder Schrempf Kontron Electronics GmbH offers small and powerful SoMs based on the i.MX8M Mini SoC including PMIC, LPDDR4-RAM,

[PATCH v2 2/3] firmware: Keem Bay: Add support for Arm Trusted Firmware Service call

2020-10-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add generic firmware driver for Keem Bay SOC to support Arm Trusted Firmware Services call. Signed-off-by: Muhammad Husaini Zulkifli --- drivers/firmware/Kconfig | 1 + drivers/firmware/Makefile | 1 +

Re: [PATCH v3 1/2] arm64: dts: Add the Kontron i.MX8M Mini SoMs and baseboards

2020-10-01 Thread Krzysztof Kozlowski
On Thu, 1 Oct 2020 at 16:24, Frieder Schrempf wrote: > > On 01.10.20 15:30, Frieder Schrempf wrote: > > On 01.10.20 14:57, Krzysztof Kozlowski wrote: > >> On Thu, Oct 01, 2020 at 02:06:58PM +0200, Schrempf Frieder wrote: > >>> From: Frieder Schrempf > >>> > >>> Kontron Electronics GmbH offers

[PATCH v2 0/3] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Hi. The first patch is to document DT bindings for Keem Bay Firmware Driver and update the Maintainers list. The second patch is the firmware driver file. The third patch is to enable UHS-1 Support for Keem Bay EVM. The patch was tested with Keem Bay

[PATCH v2 3/3] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Voltage switching sequence is needed to support UHS-1 interface. There are 2 places to control the voltage. 1) By setting the AON register using firmware driver calling system-level platform management layer (SMC) to set the register. 2) By controlling the GPIO

[PATCH v3] pinctrl: mediatek: Free eint data on failure

2020-10-01 Thread Enric Balletbo i Serra
The pinctrl driver can work without the EINT resource, but, if it is expected to have this resource but the mtk_build_eint() function fails after allocating their data (because can't get the resource or can't map the irq), the data is not freed and you end with a NULL pointer dereference. Fix this

Re: [RFC PATCH 1/2] mtd: spi-nor: atmel: remove global SNOR_F_HAS_LOCK

2020-10-01 Thread Tudor.Ambarus
On 10/1/20 5:12 PM, Michael Walle wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Am 2020-10-01 16:06, schrieb tudor.amba...@microchip.com: >> On 10/1/20 3:28 PM, Michael Walle wrote: >>> EXTERNAL EMAIL: Do not click links or open

[PATCH v2 1/3] dt-bindings: arm: firmware: Add binding for Keem Bay Firmware Support

2020-10-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add bindings for Keem Bay implementation of Arm Trusted Firmware Services call. Update the MAINTAINERS list. Signed-off-by: Muhammad Husaini Zulkifli --- .../arm/firmware/keembay,firmware.yaml| 36 +++ MAINTAINERS

[PATCH RFC] kernel: decouple TASK_WORK TWA_SIGNAL handling from signals

2020-10-01 Thread Jens Axboe
Users of TWA_SIGNAL need to have system calls interrupted and go through a kernel/user transition to ensure they are run. This currently works well from a functional standpoint, but it is heavy handed on a multithreaded application where sighand is shared between the threads and main process.

scripts/gdb: issues when loading modules after lx-symbols

2020-10-01 Thread Stefano Garzarella
Hi, I had some issues with gdb scripts and kernel modules in Linux 5.9-rc7. If the modules are already loaded, and I do 'lx-symbols', all work fine. But, if I load a kernel module after 'lx-symbols', I had this issue: [ 5093.393940] invalid opcode: [#1] SMP PTI [ 5093.395134] CPU: 0 PID:

Re: [PATCH] mm: swapfile: avoid split_swap_cluster() NULL pointer dereference

2020-10-01 Thread Rafael Aquini
On Fri, Sep 25, 2020 at 11:21:58AM +0800, Huang, Ying wrote: > Rafael Aquini writes: > >> Or, can you help to run the test with a debug kernel based on upstream > >> kernel. I can provide some debug patch. > >> > > > > Sure, I can set your patches to run with the test cases we have that tend >

Re: [PATCH] memcg: introduce per-memcg reclaim interface

2020-10-01 Thread Johannes Weiner
On Wed, Sep 30, 2020 at 08:45:17AM -0700, Shakeel Butt wrote: > On Tue, Sep 29, 2020 at 2:55 PM Johannes Weiner wrote: > > > > On Tue, Sep 29, 2020 at 05:04:44PM +0200, Michal Hocko wrote: > > > On Mon 28-09-20 17:02:16, Johannes Weiner wrote: > > > [...] > > > > My take is that a proactive

Re: [PATCH RFC v1 12/18] asm-generic/hyperv: update hv_interrupt_entry

2020-10-01 Thread Rob Herring
On Mon, 14 Sep 2020 11:59:21 +, Wei Liu wrote: > We will soon use the same structure to handle IO-APIC interrupts as > well. Introduce an enum to identify the source and a data structure for > IO-APIC RTE. > > While at it, update pci-hyperv.c to use the enum. > > No functional change. > >

Re: [PATCH v17 06/12] soc: mediatek: Add support for hierarchical scpsys device node

2020-10-01 Thread Matthias Brugger
On 30/09/2020 05:37, Weiyi Lu wrote: On Mon, 2020-09-28 at 15:14 +0800, Nicolas Boichat wrote: On Thu, Aug 6, 2020 at 5:22 PM Weiyi Lu wrote: Try to list all the power domains of under power controller node to show the dependency between each power domain directly instead of filling the

Re: [PATCH v5] kthread: Add debugobject support

2020-10-01 Thread Thomas Gleixner
On Mon, Aug 17 2020 at 14:37, Qianli Zhao wrote: > From: Qianli Zhao > > Add debugobject support to track the life time of kthread_work > which is used to detect reinitialization/free active object problems > Add kthread_init_work_onstack()/kthread_init_delayed_work_onstack() for > kthread

Re: [PATCH -next] PCI: iproc: use module_bcma_driver to simplify the code

2020-10-01 Thread Rob Herring
On Fri, 18 Sep 2020 11:08:29 +0800, Liu Shixin wrote: > module_bcma_driver() makes the code simpler by eliminating > boilerplate code. > > Signed-off-by: Liu Shixin > --- > drivers/pci/controller/pcie-iproc-bcma.c | 13 + > 1 file changed, 1 insertion(+), 12 deletions(-) >

Re: [RFC PATCH 1/2] mtd: spi-nor: atmel: remove global SNOR_F_HAS_LOCK

2020-10-01 Thread Michael Walle
Am 2020-10-01 16:25, schrieb tudor.amba...@microchip.com: On 10/1/20 5:12 PM, Michael Walle wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe Am 2020-10-01 16:06, schrieb tudor.amba...@microchip.com: On 10/1/20 3:28 PM, Michael Walle wrote:

Re: [PATCH -next] PCI: mobiveil: simplify the return expression of mobiveil_pcie_init_irq_domain

2020-10-01 Thread Rob Herring
On Mon, 21 Sep 2020 16:24:47 +0800, Liu Shixin wrote: > Simplify the return expression. > > Signed-off-by: Liu Shixin > --- > drivers/pci/controller/mobiveil/pcie-mobiveil-host.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > Reviewed-by: Rob Herring

Re: [PATCH RFC] checkpatch: fix multi-statement macro checks

2020-10-01 Thread Joe Perches
On Thu, 2020-10-01 at 19:44 +0530, Dwaipayan Ray wrote: > On Thu, Oct 1, 2020 at 7:12 PM Joe Perches wrote: > > On Thu, 2020-10-01 at 18:57 +0530, Dwaipayan Ray wrote: > > > On Thu, Oct 1, 2020 at 6:47 PM Joe Perches wrote: > > > > On Thu, 2020-10-01 at 16:03 +0530, Dwaipayan Ray wrote: > > > >

Re: [PATCH -next] PCI: cadence: simplify the return expression of cdns_pcie_host_init_address_translation()

2020-10-01 Thread Rob Herring
On Mon, 21 Sep 2020 21:10:53 +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao > --- > drivers/pci/controller/cadence/pcie-cadence-host.c | 8 ++-- > 1 file changed, 2 insertions(+), 6 deletions(-) > Reviewed-by: Rob Herring

Re: [PATCH -next] PCI: loongson: simplify the return expression of loongson_pci_probe()

2020-10-01 Thread Rob Herring
On Mon, 21 Sep 2020 21:10:54 +0800, Qinglang Miao wrote: > Simplify the return expression. > > Signed-off-by: Qinglang Miao > --- > drivers/pci/controller/pci-loongson.c | 7 +-- > 1 file changed, 1 insertion(+), 6 deletions(-) > Reviewed-by: Rob Herring

[tip: core/debugobjects] debugobjects: Free per CPU pool after CPU unplug

2020-10-01 Thread tip-bot2 for Zqiang
The following commit has been merged into the core/debugobjects branch of tip: Commit-ID: 88451f2cd3cec2abc30debdf129422d2699d1eba Gitweb: https://git.kernel.org/tip/88451f2cd3cec2abc30debdf129422d2699d1eba Author:Zqiang AuthorDate:Tue, 08 Sep 2020 14:27:09 +08:00

[PATCH v1] fuse: Abort waiting for a response if the daemon receives a fatal signal

2020-10-01 Thread Alexey Gladkov
This patch removes one kind of the deadlocks inside the fuse daemon. The problem appear when the fuse daemon itself makes a file operation on its filesystem and receives a fatal signal. This deadlock can be interrupted via fusectl filesystem. But if you have many fuse mountpoints, it will be

Re: [PATCH v4 03/13] task_isolation: userspace hard isolation from kernel

2020-10-01 Thread Frederic Weisbecker
On Wed, Jul 22, 2020 at 02:49:49PM +, Alex Belits wrote: > +/** > + * task_isolation_kernel_enter() - clear low-level task isolation flag > + * > + * This should be called immediately after entering kernel. > + */ > +static inline void task_isolation_kernel_enter(void) > +{ > + unsigned

Re: [PATCH] cgroup: Delete unnecessary if statement in css_visible()

2020-10-01 Thread Hao Lee
Hi, ping... On Sat, Aug 29, 2020 at 10:03:16AM +, Hao Lee wrote: > css_visible() is called in either cgroup_apply_control_enable() > or cgroup_apply_control_disable(). > In cgroup_apply_control_enable(), we have checked ss_mask before calling > css_visible(), so there is no need to do the

Re: [PATCH] selftests/ftrace: check for do_sys_openat2 in user-memory test

2020-10-01 Thread Steven Rostedt
On Thu, 1 Oct 2020 09:56:41 +0100 Colin King wrote: > From: Colin Ian King > > More recent libc implementations are now using openat/openat2 system > calls so also add do_sys_openat2 to the tracing so that the test > passes on these systems because do_sys_open may not be called. > >

Re: [PATCH v4 10/13] task_isolation: don't interrupt CPUs with tick_nohz_full_kick_cpu()

2020-10-01 Thread Frederic Weisbecker
On Wed, Jul 22, 2020 at 02:57:33PM +, Alex Belits wrote: > From: Yuri Norov > > For nohz_full CPUs the desirable behavior is to receive interrupts > generated by tick_nohz_full_kick_cpu(). But for hard isolation it's > obviously not desirable because it breaks isolation. > > This patch adds

Re: [PATCH] cgroup: Remove unnecessary call to strstrip()

2020-10-01 Thread Hao Lee
Ping. Thanks. On Tue, Sep 08, 2020 at 01:33:50PM +, Hao Lee wrote: > The string buf will be stripped in cgroup_procs_write_start() before it > is converted to int, so remove this unnecessary call to strstrip(). > > Signed-off-by: Hao Lee > --- > kernel/cgroup/cgroup.c | 2 -- > 1 file

Re: [PATCH 02/10] rpmsg: core: Add channel creation internal API

2020-10-01 Thread Arnaud POULIQUEN
On 9/30/20 8:35 AM, Guennadi Liakhovetski wrote: > On Mon, Sep 21, 2020 at 06:09:52PM -0600, Mathieu Poirier wrote: >> From: Arnaud Pouliquen >> >> Add the channel creation API as a first step to be able to define the >> name service announcement as a rpmsg driver independent from the RPMsg >>

Re: [PATCH v4 11/13] task_isolation: net: don't flush backlog on CPUs running isolated tasks

2020-10-01 Thread Frederic Weisbecker
On Wed, Jul 22, 2020 at 02:58:24PM +, Alex Belits wrote: > From: Yuri Norov > > If CPU runs isolated task, there's no any backlog on it, and > so we don't need to flush it. What guarantees that we have no backlog on it? > Currently flush_all_backlogs() > enqueues corresponding work on all

Re: [RFC][PATCH 5/6] dma-buf: system_heap: Add pagepool support to system heap

2020-10-01 Thread Chris Goldsworthy
On 2020-09-29 21:46, Chris Goldsworthy wrote: On 2020-09-25 21:24, John Stultz wrote: Reuse/abuse the pagepool code from the network code to speed up allocation performance. This is similar to the ION pagepool usage, but tries to utilize generic code instead of a custom implementation. Cc:

[PATCH v2][next] x86/uv/time: Replace one-element array and save heap space

2020-10-01 Thread Gustavo A. R. Silva
There is a regular need in the kernel to provide a way to declare having a dynamically sized set of trailing elements in a structure. Kernel code should always use “flexible array members”[1] for these cases. The older style of one-element or zero-length arrays should no longer be used[2]. struct

Re: [PATCH 00/13] iommu: amd: Add Generic IO Page Table Framework Support

2020-10-01 Thread Suravee Suthikulpanit
Joerg, On 10/1/20 7:59 PM, Joerg Roedel wrote: On Thu, Sep 24, 2020 at 05:50:37PM +0700, Suravee Suthikulpanit wrote: On 9/24/20 5:34 PM, Joerg Roedel wrote: Hi Suravee, On Wed, Sep 23, 2020 at 10:14:29AM +, Suravee Suthikulpanit wrote: The framework allows callable implementation of

Re: [PATCH 00/13] iommu: amd: Add Generic IO Page Table Framework Support

2020-10-01 Thread Joerg Roedel
On Thu, Oct 01, 2020 at 09:51:51PM +0700, Suravee Suthikulpanit wrote: > Sure. Let me send out v2 for this with some more clean up. Great, while at it please also change the "iommu: amd:" subjects to "iommu/amd:". Thanks, Joerg

[PATCH net-next 00/23] rxrpc: Fixes and preparation for RxGK

2020-10-01 Thread David Howells
Here are some fixes for problems encountered whilst writing the RxGK security class (this will allow AF_RXRPC to use GSSAPI-negotiated tokens and better crypto). The RxGK security class is not included in this patchset. Firstly, there's a keyrings patch to provide the original key description,

[PATCH net-next 01/23] keys: Provide the original description to the key preparser

2020-10-01 Thread David Howells
Provide the proposed description (add key) or the original description (update/instantiate key) when preparsing a key so that the key type can validate it against the data. This is important for rxrpc server keys as we need to check that they have the right amount of key material present - and

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