[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

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 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

[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 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

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,

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: [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] 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: [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 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 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] 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 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 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 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: 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: > > > >

[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

[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 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 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 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 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

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

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 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

[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.

[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: 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

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 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.

[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 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 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 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 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 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 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 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 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 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 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

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 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

[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 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 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 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 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 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 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 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

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

Re: [PATCH] reset: Add reset controller API

2020-10-01 Thread Amjad Ouled-Ameur
An update on the patch title, since we don't add an API but extend it, The title should rather be: Add a new call to the reset framework Le jeu. 1 oct. 2020 à 15:28, Amjad Ouled-Ameur a écrit : > > The current reset framework API does not allow to release what is done by > reset_control_reset(),

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

2020-10-01 Thread Christoph Hellwig
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: > > 4caf017ee937 ("drm/i915/gem: Avoid implicit vmap for highmem on x86-32") >

[PATCH v2] ARM: dts: exynos: Add a placeholder for a MAC address

2020-10-01 Thread Łukasz Stelmach
Add a placeholder for a MAC address. A bootloader may fill it to set the MAC address and override EEPROM settings. Signed-off-by: Łukasz Stelmach --- Changes in v2: - use local-mac-address and leave mac-address to be added by a bootloader arch/arm/boot/dts/exynos5422-odroidxu3.dts | 18

Re: [PATCH V4 1/3] arm64/mm/hotplug: Register boot memory hot remove notifier earlier

2020-10-01 Thread Catalin Marinas
On Tue, Sep 29, 2020 at 07:24:45PM +0530, Anshuman Khandual wrote: > This moves memory notifier registration earlier in the boot process from > device_initcall() to early_initcall() which will help in guarding against > potential early boot memory offline requests. Even though there should not >

Re: [PATCH v4 4/4] mm: convert page kmemcg type to a page memcg flag

2020-10-01 Thread Johannes Weiner
On Wed, Sep 30, 2020 at 05:27:10PM -0700, Roman Gushchin wrote: > PageKmemcg flag is currently defined as a page type (like buddy, > offline, table and guard). Semantically it means that the page > was accounted as a kernel memory by the page allocator and has > to be uncharged on the release. >

Re: [PATCH] pwm: sysfs: Set class on pwm devices

2020-10-01 Thread Lars Poeschel
On Thu, Oct 01, 2020 at 01:24:49PM +0200, Greg Kroah-Hartman wrote: > On Thu, Oct 01, 2020 at 11:05:31AM +0200, Lars Poeschel wrote: > > On Wed, Sep 30, 2020 at 11:41:46AM +0200, Uwe Kleine-König wrote: > > > Hello, > > > > > > I added Greg Kroah-Hartman who I discussed this with via irc a bit to

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

2020-10-01 Thread Dave Hansen
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 = _mm; > I was hoping that using ->active_mm would give us the *actual*

Re: [PATCH v4 1/4] mm: memcontrol: use helpers to access page's memcg data

2020-10-01 Thread Johannes Weiner
On Wed, Sep 30, 2020 at 05:27:07PM -0700, Roman Gushchin wrote: > +/* > + * set_page_memcg - associate a page with a memory cgroup > + * @page: a pointer to the page struct > + * @memcg: a pointer to the memory cgroup > + * > + * Associates a page with a memory cgroup. > + */ > +static inline void

Re: [PATCH v4 3/4] mm: introduce page memcg flags

2020-10-01 Thread Johannes Weiner
On Wed, Sep 30, 2020 at 05:27:09PM -0700, Roman Gushchin wrote: > @@ -448,7 +451,12 @@ static inline void set_page_memcg(struct page *page, > struct mem_cgroup *memcg) > */ > static inline struct obj_cgroup **page_objcgs(struct page *page) > { > - return (struct obj_cgroup

Re: [PATCH v3] ACPI / APEI: do memory failure on the physical address reported by ARM processor error section

2020-10-01 Thread James Morse
Hi Tanxiaofei, (sorry for the late reply) On 28/09/2020 03:02, Xiaofei Tan wrote: > After the commit 8fcc4ae6faf8 ("arm64: acpi: Make apei_claim_sea() > synchronise with APEI's irq work") applied, do_sea() return directly > for user-mode if apei_claim_sea() handled any error record. Therefore, >

Re: [PATCH v3] pipe: Fix memory leaks in create_pipe_files()

2020-10-01 Thread Al Viro
On Thu, Oct 01, 2020 at 09:37:02AM -0400, Qian Cai wrote: > > Fixed by providing a dummy wath_queue_init() in !CONFIG_WATCH_QUEUE watch_queue_init(), that is > > case and by having failures of wath_queue_init() handled the same way

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

2020-10-01 Thread Joe Perches
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 (...) {...} > > > blocks from MULTISTATEMENT_MACRO_USE_DO_WHILE

Re: KASAN: use-after-free Read in btrfs_scan_one_device

2020-10-01 Thread David Sterba
On Thu, Oct 01, 2020 at 03:08:34PM +0200, Dmitry Vyukov wrote: > On Thu, Oct 1, 2020 at 3:05 PM Dmitry Vyukov wrote: > > > > On Wed, Sep 30, 2020 at 8:06 PM David Sterba wrote: > > > > > > On Wed, Sep 30, 2020 at 06:57:56PM +0200, David Sterba wrote: > > > > On Sun, Sep 20, 2020 at 07:12:14AM

Re:Inquiry

2020-10-01 Thread SEDAT SEVİNÇ
-- Dear Sir/Ma, I am Steve Anderson, the Purchase Manager of Sedat SEVİNÇ. We are interested in a large or wholesale supply of your Company Products. Please send us your product catalog and prices. Also kindly inform us about your Minimum Order Quantity, delivery time or CIF and payment

Re: [PATCH v3] pipe: Fix memory leaks in create_pipe_files()

2020-10-01 Thread Qian Cai
On Thu, 2020-10-01 at 14:16 +0100, Al Viro wrote: > On Thu, Oct 01, 2020 at 08:50:55AM -0400, Qian Cai wrote: > > Calling pipe2() with O_NOTIFICATION_PIPE could results in memory leaks > > in an error path or CONFIG_WATCH_QUEUE=n. Plug them. > > [snip the copy of bug report] > > No objections on

Re: [PATCH v4 04/29] objtool: Add a pass for generating __mcount_loc

2020-10-01 Thread Peter Zijlstra
On Thu, Oct 01, 2020 at 03:17:07PM +0200, Miroslav Benes wrote: > I also wonder about making 'mcount' command separate from 'check'. Similar > to what is 'orc' now. But that could be done later. I'm not convinced more commands make sense. That only begets us the problem of having to run

Re: [PATCH] PCI: dwc: Added link up check in map_bus of dw_child_pcie_ops

2020-10-01 Thread Kishon Vijay Abraham I
Hi Rob, On 30/09/20 8:31 pm, Rob Herring wrote: > On Wed, Sep 30, 2020 at 8:22 AM Kishon Vijay Abraham I wrote: >> >> Hi, >> >> On 29/09/20 10:41 pm, Rob Herring wrote: >>> On Tue, Sep 29, 2020 at 10:24 AM Gustavo Pimentel >>> wrote: On Tue, Sep 29, 2020 at 5:5:41, Z.q. Hou wrote:

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 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, eMMC and SPI NOR. The matching baseboards

[PATCH -next] pci: Fix -Wunused-function warnings for pci_ltr_*

2020-10-01 Thread Qian Cai
When CONFIG_PCIEASPM=n, drivers/pci/pci.c:3098:12: warning: 'pci_ltr_encode' defined but not used [-Wunused-function] static u16 pci_ltr_encode(u64 val) ^~ drivers/pci/pci.c:3076:12: warning: 'pci_ltr_decode' defined but not used [-Wunused-function] static u64

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

2020-10-01 Thread Liang, Kan
On 9/30/2020 6:45 PM, Stephane Eranian wrote: On Wed, Sep 30, 2020 at 10:30 AM Peter Zijlstra wrote: On Wed, Sep 30, 2020 at 07:48:48AM -0700, Dave Hansen wrote: On 9/30/20 7:42 AM, Liang, Kan wrote: When I tested on my kernel, it panicked because I suspect current->active_mm could be

Re: mb2q experience and couple issues

2020-10-01 Thread Thomas Gleixner
On Thu, Oct 01 2020 at 11:13, Thomas Gleixner wrote: > Yes, it's ugly and I haven't figured out a proper way to deal with > that. There are quite some mbox formats out there and they all are > incompatible with each other and all of them have different horrors. > > Let me think about it. I've

Re: [RFC PATCH 10/24] vdpa: introduce config operations for associating ASID to a virtqueue group

2020-10-01 Thread Eli Cohen
On Thu, Sep 24, 2020 at 11:21:11AM +0800, Jason Wang wrote: > This patch introduces a new bus operation to allow the vDPA bus driver > to associate an ASID to a virtqueue group. > So in case of virtio_net, I would expect that all the data virtqueues will be associated with the same address space

Re: [PATCH v2] rtw88: pci: Power cycle device during shutdown

2020-10-01 Thread Kalle Valo
Kai-Heng Feng wrote: > There are reports that 8822CE fails to work rtw88 with "failed to read DBI > register" error. Also I have a system with 8723DE which freezes the whole > system when the rtw88 is probing the device. > > According to [1], platform firmware may not properly power manage the

[PATCH] reset: Add reset controller API

2020-10-01 Thread Amjad Ouled-Ameur
The current reset framework API does not allow to release what is done by reset_control_reset(), IOW decrement triggered_count. Add the new reset_control_resettable() call to do so. When reset_control_reset() has been called once, the counter triggered_count, in the reset framework, is

Re: [PATCH 20/25] ASoC: sun8i-codec: Protect the clock rate while streams are open

2020-10-01 Thread kernel test robot
suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Samuel-Holland/ASoC-sun8i-codec-support-for-AIF2-and-AIF3/20201001-101451 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next config

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

2020-10-01 Thread Dwaipayan Ray
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 (...) {...} > > blocks from MULTISTATEMENT_MACRO_USE_DO_WHILE error. > > > > For example, running checkpatch.pl on the file

Re: [net-next PATCH v1 1/7] Documentation: ACPI: DSD: Document MDIO PHY

2020-10-01 Thread Calvin Johnson
Hi Rafael, On Wed, Sep 30, 2020 at 06:37:09PM +0200, Rafael J. Wysocki wrote: > On Wed, Sep 30, 2020 at 6:05 PM Calvin Johnson > wrote: > > > > Introduce ACPI mechanism to get PHYs registered on a MDIO bus and > > provide them to be connected to MAC. > > > > Describe properties "phy-handle" and

[PATCH v1] acpi: processor_throttling: Add supprt for System Memory

2020-10-01 Thread kuldip dwivedi
The existing driver does not support System Memory so adding support of system meory so that this can be used on platforms which has ACPI_ADR_SPACE_SYSTEM_MEMORY type system registers. Function that creates sysfs entries in processor_driver in Linux, is enabled to be compiled for arm64 platform

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