[PATCH] PCI: mvebu: Check if reset gpio is defined

2020-07-24 Thread Pali Rohár
Reset gpio is optional and it does not have to be defined for all boards. So in mvebu_pcie_powerdown() like in mvebu_pcie_powerup() check that reset gpio is defined prior usage to prevent NULL pointer dereference. Signed-off-by: Pali Rohár --- drivers/pci/controller/pci-mvebu.c | 3 ++- 1 file

Re: [PATCH v5 0/6] arm64: add the time namespace support

2020-07-24 Thread Christian Brauner
On Thu, Jul 23, 2020 at 10:41:40AM -0700, Andrei Vagin wrote: > On Wed, Jul 22, 2020 at 07:15:06PM +0100, Catalin Marinas wrote: > > On Mon, Jul 13, 2020 at 06:57:43PM -0700, Andrei Vagin wrote: > > > On Sat, Jul 04, 2020 at 11:40:55PM -0700, Andrei Vagin wrote: > > > > On Wed, Jun 24, 2020 at 01:3

RE: [PATCH v13 1/2] ACPI / APEI: Add a notifier chain for unknown (vendor) CPER records

2020-07-24 Thread Shiju Jose
>-Original Message- >From: Bjorn Helgaas [mailto:helg...@kernel.org] >Sent: 24 July 2020 13:54 >To: Shiju Jose >Cc: linux-a...@vger.kernel.org; linux-...@vger.kernel.org; linux- >ker...@vger.kernel.org; r...@rjwysocki.net; b...@alien8.de; >james.mo...@arm.com; l...@kernel.org; tony.l...@in

Re: [PATCH] selinux: add tracepoint on denials

2020-07-24 Thread Stephen Smalley
On Fri, Jul 24, 2020 at 5:15 AM Thiébaud Weksteen wrote: > > The audit data currently captures which process and which target > is responsible for a denial. There is no data on where exactly in the > process that call occurred. Debugging can be made easier by being able to > reconstruct the unifie

[PATCH 00/17] VFS: Filesystem information [ver #20]

2020-07-24 Thread David Howells
Here's a set of patches that adds a system call, fsinfo(), that allows information about the VFS, mount topology, superblock and files to be retrieved. The patchset is based on top of the notifications patchset and allows event counters implemented in the latter to be retrieved to allow overruns

[PATCH 01/17] fsinfo: Introduce a non-repeating system-unique superblock ID [ver #20]

2020-07-24 Thread David Howells
Introduce an (effectively) non-repeating system-unique superblock ID that can be used to determine that two objects are in the same superblock without needing to worry about the ID changing in the meantime (as is possible with device IDs). The counter could also be used to tag other features, such

[PATCH 02/17] fsinfo: Add fsinfo() syscall to query filesystem information [ver #20]

2020-07-24 Thread David Howells
Add a system call to allow filesystem information to be queried. A request value can be given to indicate the desired attribute. Support is provided for enumerating multi-value attributes. === NEW SYSTEM CALL === The new system call looks like: int ret = fsinfo(

[PATCH 03/17] fsinfo: Provide a bitmap of the features a filesystem supports [ver #20]

2020-07-24 Thread David Howells
Provide a bitmap of features that a filesystem may provide for the path being queried. Features include such things as: (1) The general class of filesystem, such as kernel-interface, block-based, flash-based, network-based. (2) Supported inode features, such as which timestamps are suppor

[PATCH 05/17] fsinfo: Allow fsinfo() to look up a mount object by ID [ver #20]

2020-07-24 Thread David Howells
Allow the fsinfo() syscall to look up a mount object by ID rather than by pathname. This is necessary as there can be multiple mounts stacked up at the same pathname and there's no way to look through them otherwise. This is done by passing FSINFO_FLAGS_QUERY_MOUNT to fsinfo() in the parameters a

[PATCH 06/17] fsinfo: Add a uniquifier ID to struct mount [ver #20]

2020-07-24 Thread David Howells
Add a uniquifier ID to struct mount that is effectively unique over the kernel lifetime to deal around mnt_id values being reused. This can then be exported through fsinfo() to allow detection of replacement mounts that happen to end up with the same mount ID. The normal mount handle is still use

[PATCH 04/17] fsinfo: Allow retrieval of superblock devname, options and stats [ver #20]

2020-07-24 Thread David Howells
Provide fsinfo() attributes to retrieve superblock device name, options, and statistics in string form. The following attributes are defined: FSINFO_ATTR_SOURCE - Mount-specific device name FSINFO_ATTR_CONFIGURATION - Mount options FSINFO_ATTR_FS_STATIST

[PATCH 07/17] fsinfo: Allow mount information to be queried [ver #20]

2020-07-24 Thread David Howells
Allow mount information, including information about a mount object to be queried with the fsinfo() system call. Setting FSINFO_FLAGS_QUERY_MOUNT allows overlapping mounts to be queried by indicating that the syscall should interpret the pathname as a number indicating the mount ID. To this end,

[PATCH 10/17] fsinfo: sample: Mount listing program [ver #20]

2020-07-24 Thread David Howells
Implement a program to demonstrate mount listing using the new fsinfo() syscall. For example, to dump the tree from mount 21: # ./test-mntinfo -m 21 MOUNTMOUNT ID CHANGE# AT P DEV TYPE -- -- - - 21

[PATCH 08/17] fsinfo: Allow mount topology and propagation info to be retrieved [ver #20]

2020-07-24 Thread David Howells
Add a couple of attributes to allow information about the mount topology and propagation to be retrieved: (1) FSINFO_ATTR_MOUNT_TOPOLOGY. Information about a mount's parentage in the mount topology tree and its propagation attributes. This has to be collected with the VFS namespa

[PATCH 12/17] fsinfo: Add support for AFS [ver #20]

2020-07-24 Thread David Howells
Add fsinfo support to the AFS filesystem. This allows the export of server lists, amongst other things, which is necessary to implement some of the AFS 'fs' command set, such as "checkservers", "getserverprefs" and "whereis". Signed-off-by: David Howells --- fs/afs/internal.h |1

Re: [PATCH] mmc: core: Initial support for SD express card/host

2020-07-24 Thread Arnd Bergmann
On Fri, Jul 24, 2020 at 12:06 PM Ulf Hansson wrote: > On Thu, 16 Jul 2020 at 20:23, Arnd Bergmann wrote: > > On Thu, Jul 16, 2020 at 4:16 PM Ulf Hansson wrote: > > > > > + /* Continue with the SD express init, if the card supports it. */ > > > + resp &= 0x3000; > > > + if (pcie

[PATCH 09/17] fsinfo: Provide notification overrun handling support [ver #20]

2020-07-24 Thread David Howells
Provide support for the handling of an overrun in a watch queue. In the event that an overrun occurs, the watcher needs to be able to find out what it was that they missed. To this end, previous patches added event counters to struct mount. To make them accessible, they can be retrieved using fs

[PATCH 14/17] fsinfo: Add an attribute that lists all the visible mounts in a namespace [ver #20]

2020-07-24 Thread David Howells
Add a filesystem attribute that exports a list of all the visible mounts in a namespace, given the caller's chroot setting. The returned list is an array of: struct fsinfo_mount_child { __u64 mnt_unique_id; __u32 mnt_id; __u32 parent_i

[PATCH 11/17] fsinfo: Add API documentation [ver #20]

2020-07-24 Thread David Howells
Add API documentation for fsinfo. Signed-off-by: David Howells --- Documentation/filesystems/fsinfo.rst | 574 ++ 1 file changed, 574 insertions(+) create mode 100644 Documentation/filesystems/fsinfo.rst diff --git a/Documentation/filesystems/fsinfo.rst b/Doc

[PATCH 13/17] fsinfo: Add support to ext4 [ver #20]

2020-07-24 Thread David Howells
Add support to ext4, including the following: (1) FSINFO_ATTR_SUPPORTS: Information about supported STATX attributes and support for ioctls like FS_IOC_[GS]ETFLAGS and FS_IOC_FS[GS]ETXATTR. (2) FSINFO_ATTR_FEATURES: Information about features supported by an ext4 filesystem, such as w

[PATCH 17/17] samples: add error state information to test-fsinfo.c [ver #20]

2020-07-24 Thread David Howells
From: Jeff Layton Signed-off-by: Jeff Layton Signed-off-by: David Howells --- samples/vfs/test-fsinfo.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/samples/vfs/test-fsinfo.c b/samples/vfs/test-fsinfo.c index 5209b6a44fb0..9525ef72378a 100644 --- a/samples/vfs/test-fsinfo

[PATCH 15/17] errseq: add a new errseq_scrape function [ver #20]

2020-07-24 Thread David Howells
From: Jeff Layton To grab the current value of an errseq_t, mark it as seen and then return the value with the seen bit masked off. Signed-off-by: Jeff Layton Reviewed-by: David Howells Reviewed-by: Carlos Maiolino Signed-off-by: David Howells --- include/linux/errseq.h |1 + lib/errse

Re: [PATCH] RDMA/mlx5: fix typo in structure name

2020-07-24 Thread Leon Romanovsky
On Fri, Jul 24, 2020 at 10:41:12AM +0200, Pavel Machek wrote: > This is user API, but likely noone uses it...? Fix it before it > becomes problem. > > Signed-off-by: Pavel Machek (CIP) > > > diff --git a/include/uapi/rdma/mlx5_user_ioctl_cmds.h > b/include/uapi/rdma/mlx5_user_ioctl_cmds.h > index

[PATCH 16/17] vfs: allow fsinfo to fetch the current state of s_wb_err [ver #20]

2020-07-24 Thread David Howells
From: Jeff Layton Add a new "error_state" struct to fsinfo, and teach the kernel to fill that out from sb->s_wb_err. There are two fields: wb_error_last: the most recently recorded errno for the filesystem wb_error_cookie: this value will change vs. the previously fetched value

Re: [PATCH 2/2] Add a new sysctl knob: unprivileged_userfaultfd_user_mode_only

2020-07-24 Thread Michael S. Tsirkin
On Thu, Jul 23, 2020 at 05:13:28PM -0700, Nick Kralevich wrote: > On Thu, Jul 23, 2020 at 10:30 AM Lokesh Gidra wrote: > > From the discussion so far it seems that there is a consensus that > > patch 1/2 in this series should be upstreamed in any case. Is there > > anything that is pending on that

Re: [patch 06/15] mm/memcg: fix refcount error while moving and swapping

2020-07-24 Thread Alex Shi
在 2020/7/24 下午12:15, Andrew Morton 写道: > From: Hugh Dickins > Subject: mm/memcg: fix refcount error while moving and swapping > > It was hard to keep a test running, moving tasks between memcgs with > move_charge_at_immigrate, while swapping: mem_cgroup_id_get_many()'s > refcount is discovered

Re: [PATCH] dma-pool: Do not allocate pool memory from CMA

2020-07-24 Thread Christoph Hellwig
Yes, the iommu is an interesting case, and the current code is wrong for that. Can you try the patch below? It contains a modified version of Nicolas' patch to try CMA again for the expansion and a new (for now hackish) way to not apply the addressability check for dma-iommu allocations. diff --

[RESEND RFC PATCH v1] arm64: kvm: flush tlbs by range in unmap_stage2_range function

2020-07-24 Thread Zhenyu Ye
Now in unmap_stage2_range(), we flush tlbs one by one just after the corresponding pages cleared. However, this may cause some performance problems when the unmap range is very large (such as when the vm migration rollback, this may cause vm downtime too loog). This patch moves the kvm_tlb_flush_

Re: [PATCH V7 07/14] perf/core: Add a new PERF_EV_CAP_COEXIST event capability

2020-07-24 Thread Liang, Kan
On 7/24/2020 7:46 AM, pet...@infradead.org wrote: On Fri, Jul 24, 2020 at 12:55:43PM +0200, pet...@infradead.org wrote: + event_sched_out(event, cpuctx, ctx); + perf_event_set_state(event, PERF_EVENT_STATE_ERROR); +} Ah, so the problem here is that ERROR is actually recoverable

Re: [PATCH] mmc: core: Initial support for SD express card/host

2020-07-24 Thread Christoph Hellwig
On Fri, Jul 24, 2020 at 03:35:47PM +0200, Arnd Bergmann wrote: > Starting simple is generally a good idea, yes. > > It would be good to have feedback from the nvme driver maintainers. > > One way I can see the handshake working would be to have > an sdexpress class_driver that provides interfaces

Re: [PATCH v2 2/4] soc: mediatek: pwrap: add arbiter capability

2020-07-24 Thread Nicolas Boichat
On Thu, Jul 23, 2020 at 11:40 AM Hsin-Hsiung Wang wrote: > > Add arbiter capability for pwrap driver. > This patch is preparing for adding mt6873/8192 pwrap support. > > Signed-off-by: Hsin-Hsiung Wang > --- > drivers/soc/mediatek/mtk-pmic-wrap.c | 67 > ++-- > 1

Re: [PATCH v2 05/29] memory: jz4780-nemc: Do not enable by default on every compile test

2020-07-24 Thread Arnd Bergmann
On Fri, Jul 24, 2020 at 9:41 AM Krzysztof Kozlowski wrote: > > When compile testing, enable the driver by default only on MIPS > architecture. > > Signed-off-by: Krzysztof Kozlowski > > --- > > Changes since v1: > 1. New patch @@ -141,7 +141,7 @@ config FSL_IFC > > config JZ4780_NEMC >

Re: [PATCH 0/3] Add USB role switch support to DWC2

2020-07-24 Thread Felipe Balbi
(please, no top-posting ;-) Hi, Amelie DELAUNAY writes: > Hi Felipe, > > I saw that you took DT patch (ARM: dts: stm32: enable usb-role-switch on > USB OTG on stm32mp15xx-dkx) in your next branch. As it was already in > Alex' stm32-next branch, a potential merge conflict could occurred. Than

[ANNOUNCE] v4.4.231-rt202

2020-07-24 Thread Daniel Wagner
Hello RT-list! I'm pleased to announce the v4.4.231-rt202 stable release. This release is an update to the new stable v4.4.231 version. It also includes the backport ("BPF: Disable on PREEMPT_RT") as Sebastian suggested to include in v4.4-rt. Known issues: sigwaittest with hackbench as workl

[PATCH net-next] net: hix5hd2_gmac: Remove unneeded cast from memory allocation

2020-07-24 Thread Wang Hai
Remove casting the values returned by memory allocation function. Coccinelle emits WARNING: ./drivers/net/ethernet/hisilicon/hix5hd2_gmac.c:1027:9-23: WARNING: casting value returned by memory allocation function to (struct sg_desc *) is useless. This issue was detected by using the Coccinelle

Re: [PATCH v5 00/18] dynamic_debug fixes, cleanups, features, export

2020-07-24 Thread Jason Baron
On 7/19/20 7:10 PM, Jim Cromie wrote: > this is v5, changes from previous: > - moved a chunk from patch 13 to 12, per Jason > - shorten logging prefix to "dyndbg", drop __func__ > - now with more commit-log advocacy > - shuffle EXPORT_GPL(ddebug_exec_queries) last. > - v4+ series Acked-by:

Re: [v7, PATCH 3/7] mtk-mmsys: add mt8183 mmsys support

2020-07-24 Thread Nicolas Boichat
On Thu, Jul 23, 2020 at 10:05 AM Yongqiang Niu wrote: > > add mt8183 mmsys support > > Feature: drm/mediatek > Signed-off-by: Yongqiang Niu > --- > drivers/soc/mediatek/mmsys/Makefile | 1 + > drivers/soc/mediatek/mmsys/mt8183-mmsys.c | 161 > ++ > drivers/so

Re: [PATCH v3 0/3] Add USB role switch support to DWC2

2020-07-24 Thread Felipe Balbi
(no top-posting, please) Hi, Amelie DELAUNAY writes: > Series dropped. what do you mean with this? Should I drop all patches related with this series? -- balbi signature.asc Description: PGP signature

Re: [PATCH v2 00/29] *memory: Cleanup, improve and compile test memory drivers

2020-07-24 Thread Arnd Bergmann
On Fri, Jul 24, 2020 at 9:41 AM Krzysztof Kozlowski wrote: > > Dear All, > > Changes since v1: > 1. Few new patches, > 2. Please see individual logs (per patch). > > > The drivers/memory directory contains generic code (of_memory.c) and a > bunch of drivers. Changes to generic code were coming us

Re: [PATCH] selinux: add tracepoint on denials

2020-07-24 Thread Steven Rostedt
On Fri, 24 Jul 2020 11:15:03 +0200 "Thiébaud Weksteen" wrote: > diff --git a/security/selinux/avc.c b/security/selinux/avc.c > index d18cb32a242a..85d2e22ab656 100644 > --- a/security/selinux/avc.c > +++ b/security/selinux/avc.c > @@ -31,6 +31,9 @@ > #include "avc_ss.h" > #include "classmap.h" >

Re: [PATCH 2/3] scripts/sorttable: Build orc fast lookup table via sorttable tool

2020-07-24 Thread Ingo Molnar
* Huaixin Chang wrote: > Since orc tables are already sorted by sorttable tool, let us move > building of fast lookup table into sorttable tool too. This saves us > 6380us from boot time under Intel(R) Xeon(R) CPU E5-2682 v4 @ 2.50GHz > with 64 cores. Neat! > +struct orc_sort_param { > +

Re: [PATCH v2 05/29] memory: jz4780-nemc: Do not enable by default on every compile test

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 03:45:37PM +0200, Arnd Bergmann wrote: > On Fri, Jul 24, 2020 at 9:41 AM Krzysztof Kozlowski wrote: > > > > When compile testing, enable the driver by default only on MIPS > > architecture. > > > > Signed-off-by: Krzysztof Kozlowski > > > > --- > > > > Changes since v1: >

Re: [PATCH V7 07/14] perf/core: Add a new PERF_EV_CAP_COEXIST event capability

2020-07-24 Thread Peter Zijlstra
On Fri, Jul 24, 2020 at 09:43:44AM -0400, Liang, Kan wrote: > > > On 7/24/2020 7:46 AM, pet...@infradead.org wrote: > > On Fri, Jul 24, 2020 at 12:55:43PM +0200, pet...@infradead.org wrote: > > > > + event_sched_out(event, cpuctx, ctx); > > > > + perf_event_set_state(event, PERF_EVENT

Re: [PATCH] selinux: add tracepoint on denials

2020-07-24 Thread Paul Moore
On Fri, Jul 24, 2020 at 9:32 AM Stephen Smalley wrote: > On Fri, Jul 24, 2020 at 5:15 AM Thiébaud Weksteen wrote: > > The audit data currently captures which process and which target > > is responsible for a denial. There is no data on where exactly in the > > process that call occurred. Debuggin

Re: [PATCH 1/3] scripts/sorttable: Change section type of orc_lookup to SHT_PROGBITS

2020-07-24 Thread Ingo Molnar
* Huaixin Chang wrote: > In order to edit orc_lookup table via sorttable, type of section > orc_lookup needs to be SHT_PROGBITS instead of SHT_NOBITS. > > Linker script doesn't seem to allow manual specification of the section > type, so just write a byte into the section instead. > > Signed-

Re: [Phishing Risk] [External] Re: [PATCH v2] mm/hugetlb: add mempolicy check in the reservation routine

2020-07-24 Thread Muchun Song
On Fri, Jul 24, 2020 at 7:34 PM Michal Hocko wrote: > > On Fri 24-07-20 18:03:06, Muchun Song wrote: > > In the reservation routine, we only check whether the cpuset meets > > the memory allocation requirements. But we ignore the mempolicy of > > MPOL_BIND case. If someone mmap hugetlb succeeds, b

Re: [PATCH v3 0/3] Add USB role switch support to DWC2

2020-07-24 Thread Amelie DELAUNAY
Hi, On 7/24/20 3:50 PM, Felipe Balbi wrote: (no top-posting, please) Hi, Amelie DELAUNAY writes: Series dropped. what do you mean with this? Should I drop all patches related with this series? As v1 patches were in your next branch, I've prepared a new patchset which contains fixes, o

Re: [PATCH 0/2] Control over userfaultfd kernel-fault handling

2020-07-24 Thread Michael S. Tsirkin
On Wed, Apr 22, 2020 at 05:26:30PM -0700, Daniel Colascione wrote: > This small patch series adds a new flag to userfaultfd(2) that allows > callers to give up the ability to handle user-mode faults with the > resulting UFFD file object. In then add a new sysctl to require > unprivileged callers to

[PATCH v4] scsi: ufs: Quiesce all scsi devices before shutdown

2020-07-24 Thread Stanley Chu
Currently I/O request could be still submitted to UFS device while UFS is working on shutdown flow. This may lead to racing as below scenarios and finally system may crash due to unclocked register accesses. To fix this kind of issues, specifically quiesce all SCSI devices before UFS shutdown to b

[PATCH v4] scsi: ufs: Cleanup completed request without interrupt notification

2020-07-24 Thread Stanley Chu
If somehow no interrupt notification is raised for a completed request and its doorbell bit is cleared by host, UFS driver needs to cleanup its outstanding bit in ufshcd_abort(). Otherwise, system may behave abnormally by below flow: After ufshcd_abort() returns, this request will be requeued by S

Re: [PATCH v2 00/29] *memory: Cleanup, improve and compile test memory drivers

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 03:51:04PM +0200, Arnd Bergmann wrote: > On Fri, Jul 24, 2020 at 9:41 AM Krzysztof Kozlowski wrote: > > > > Dear All, > > > > Changes since v1: > > 1. Few new patches, > > 2. Please see individual logs (per patch). > > > > > > The drivers/memory directory contains generic c

[tip: perf/urgent] uprobes: Change handle_swbp() to send SIGTRAP with si_code=SI_KERNEL, to fix GDB regression

2020-07-24 Thread tip-bot2 for Oleg Nesterov
The following commit has been merged into the perf/urgent branch of tip: Commit-ID: fe5ed7ab99c656bd2f5b79b49df0e9ebf2cead8a Gitweb: https://git.kernel.org/tip/fe5ed7ab99c656bd2f5b79b49df0e9ebf2cead8a Author:Oleg Nesterov AuthorDate:Thu, 23 Jul 2020 17:44:20 +02:00 Committ

Re: [PATCH v4 06/12] ppc64/kexec_file: restrict memory usage of kdump kernel

2020-07-24 Thread Hari Bathini
On 24/07/20 5:36 am, Thiago Jung Bauermann wrote: > > Hari Bathini writes: > >> Kdump kernel, used for capturing the kernel core image, is supposed >> to use only specific memory regions to avoid corrupting the image to >> be captured. The regions are crashkernel range - the memory reserved >

Re: [PATCH v8 6/7] x86: Add support for ZSTD compressed kernel

2020-07-24 Thread Adam Borowski
On Fri, Jul 24, 2020 at 02:26:40PM +0200, Ingo Molnar wrote: > > -#ifdef CONFIG_KERNEL_BZIP2 > > +#if defined(CONFIG_KERNEL_BZIP2) > > # define BOOT_HEAP_SIZE0x40 > > -#else /* !CONFIG_KERNEL_BZIP2 */ > > +#elif defined(CONFIG_KERNEL_ZSTD) > > +# define BOOT_HEAP_SIZE 0

Re: [PATCH v2 03/29] memory: omap-gpmc: Include for SZ_16M

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:12AM +0200, Krzysztof Kozlowski wrote: > The driver uses SZ_16M which is defined in include/linux/sizes.h. On > ARM it was pulled by other headers but its inclusion is necessary for > compile testing on other architectures. > > This fixes build error when compile tes

Re: [PATCH v8 3/7] init: add support for zstd compressed kernel

2020-07-24 Thread Randy Dunlap
On 7/24/20 5:17 AM, Ingo Molnar wrote: > > * Randy Dunlap wrote: > >> On 7/23/20 12:27 PM, Nick Terrell wrote: >>> +config KERNEL_ZSTD >>> + bool "ZSTD" >>> + depends on HAVE_KERNEL_ZSTD >>> + help >>> + ZSTD is a compression algorithm targeting intermediate compression >>> + with

Re: [PATCH v3 3/3] ARM: dts: stm32: add initial support for stm32mp157-odyssey board

2020-07-24 Thread Marcin Słoniewski
Hi, pt., 24 lip 2020 o 11:17 Ahmad Fatoum napisał(a): > > Hi, > > On 7/23/20 9:43 PM, Marcin Słoniewski wrote: > > Hello Ahmad, > > > > First of all thank you very much for your feedback, it was very helpful! > > > > śr., 22 lip 2020 o 08:40 Ahmad Fatoum napisał(a): > >> > >> On 7/21/20 8:53 PM,

Re: [PATCH v2 12/29] memory: emif: Put constant in comparison on the right side

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:21AM +0200, Krzysztof Kozlowski wrote: > Fixes checkpatch warning: > > WARNING: Comparisons should place the constant on the right side of the > test > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/memory/emif.c | 2 +- > 1 file changed, 1 insertion(+),

Re: [PATCH v4 4/5] arm64: dts: sdm845: Add OPP tables and power-domains for venus

2020-07-24 Thread Stanimir Varbanov
Hi, On 7/23/20 9:06 PM, Stanimir Varbanov wrote: > Hi Rajendra, > > After applying 2,3 and 4/5 patches on linaro-integration v5.8-rc2 I see > below messages on db845: > > qcom-venus aa0.video-codec: dev_pm_opp_set_rate: failed to find > current OPP for freq 53397 (-34) > > ^^^ This one

Re: [PATCH v2 11/29] memory: emif-asm-offsets: Add GPLv2 SPDX license header

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:20AM +0200, Krzysztof Kozlowski wrote: > Add GPLv2 license header and remove GPL boiler plate text. > > Signed-off-by: Krzysztof Kozlowski > > --- > > Changes since v1: > 1. Use "GPL-2.0" instead of "GPL-2.0-only". It's shorter. > --- > drivers/memory/emif-asm-off

Re: [PATCH v2 04/29] memory: ti-aemif: Rename SS to SSTROBE to avoid name conflicts

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:13AM +0200, Krzysztof Kozlowski wrote: > SS conflicts with compile test build on i386: > > drivers/memory/ti-aemif.c:40:0: warning: "SS" redefined > In file included from arch/x86/include/uapi/asm/ptrace.h:6:0, > from arch/x86/include/asm/

Re: [PATCH v2 13/29] memory: emif: Fix whitespace coding style violations

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:22AM +0200, Krzysztof Kozlowski wrote: > Make the code and printed messages slightly more readable. Fixes > checkpatch warnings: > > WARNING: quoted string split across lines > ERROR: space prohibited before that ',' (ctx:WxW) > > Signed-off-by: Krzysztof Ko

Re: [PATCH v2 14/29] memory: emif: Silence platform_get_irq() error in driver

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:23AM +0200, Krzysztof Kozlowski wrote: > The platform_get_irq() already prints error message so there is no need > to do it again in the driver. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/memory/emif.c | 5 + > 1 file changed, 1 insertion(+), 4 delet

Re: [PATCH v2 15/29] memory: ti-emif-pm: Fix cast to iomem pointer

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:24AM +0200, Krzysztof Kozlowski wrote: > Cast pointer to iomem memory properly to fix sparse warning: > > drivers/memory/ti-emif-pm.c:251:38: warning: incorrect type in argument 1 > (different address spaces) > drivers/memory/ti-emif-pm.c:251:38:expected

Re: [PATCH v2 17/29] memory: brcmstb_dpfe: Constify the contents of string

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:26AM +0200, Krzysztof Kozlowski wrote: > The string itself can be made const for safety. > > Signed-off-by: Krzysztof Kozlowski > Acked-by: Florian Fainelli > Acked-by: Markus Mayer > --- > drivers/memory/brcmstb_dpfe.c | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH v2 7/7] arm64: dts: qcom: sm8250: add interconnect nodes

2020-07-24 Thread Sibi Sankar
Hey Jonathan, Thanks for the patch! Please use the suggested register space definitions instead. On 2020-07-13 21:11, Jonathan Marek wrote: Add the interconnect dts nodes for sm8250. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 82 1 f

Re: [PATCH v2 6/7] arm64: dts: qcom: sm8150: add interconnect nodes

2020-07-24 Thread Sibi Sankar
Hey Jonathan, Thanks for the patch! Please use the suggested register space definitions instead. On 2020-07-13 21:11, Jonathan Marek wrote: Add the interconnect dts nodes for sm8150. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 82 1 f

Re: [PATCH v2 18/29] memory: brcmstb_dpfe: Remove unneeded braces

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:27AM +0200, Krzysztof Kozlowski wrote: > Single statement blocks don't need braces. Fixes checkpatch warning: > > WARNING: braces {} are not necessary for single statement blocks > > Signed-off-by: Krzysztof Kozlowski > Acked-by: Florian Fainelli > Acked-by: M

Re: [PATCH v2 19/29] memory: mtk-smi: Add argument to function pointer definition

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:28AM +0200, Krzysztof Kozlowski wrote: > Fix checkpatch warning: > WARNING: function definition argument 'struct device *' should also have > an identifier name > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/memory/mtk-smi.c | 2 +- > 1 file changed, 1

Re: [PATCH v2 26/29] memory: fsl_ifc: Fix whitespace issues

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:35AM +0200, Krzysztof Kozlowski wrote: > Fix minor whitespace and comment issues. Do not break message strings. > No functional changes. > > Signed-off-by: Krzysztof Kozlowski > > --- > > Changes since v1: > 1. New patch > --- > drivers/memory/fsl_ifc.c | 30

Re: [PATCH v2 27/29] memory: da8xx-ddrctl: Remove unused 'node' variable

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:36AM +0200, Krzysztof Kozlowski wrote: > The variable 'node' is not used. Remove it to silence compile warning: > > drivers/memory/da8xx-ddrctl.c: In function 'da8xx_ddrctl_probe': > drivers/memory/da8xx-ddrctl.c:105:22: warning: variable 'node' set but > no

Re: [PATCH v2 23/29] memory: pl172: Add GPLv2 SPDX license header

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:32AM +0200, Krzysztof Kozlowski wrote: > Add GPLv2 license header and remove GPL boiler plate text. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/memory/pl172.c | 5 + > 1 file changed, 1 insertion(+), 4 deletions(-) Applied (and part of pull request t

[PATCH v1] scsi: ufs-mediatek: Prevent LPM operation on undeclared VCC

2020-07-24 Thread Stanley Chu
In some platforms, VCC regulator may not be declared in device tree to keep itself "always-on". In this case, hba->vreg_info.vcc is NULL and shall not be operated during any flow. Prevent possible NULL hba->vreg_info.vcc access in LPM mode by checking if it is valid first. Signed-off-by: Stanley

Re: [PATCH v2 22/29] memory: omap-gpmc: Fix whitespace issue

2020-07-24 Thread Krzysztof Kozlowski
On Fri, Jul 24, 2020 at 09:40:31AM +0200, Krzysztof Kozlowski wrote: > Fix minor whitespace and comment issues. No functional changes. > > Signed-off-by: Krzysztof Kozlowski > > --- Applied (and part of pull request to arm-soc). For the other omap-gpmc testing is welcomed. Best regards, Krzy

Re: [PATCH] media: davinci: vpif_capture: fix potential double free

2020-07-24 Thread Lad, Prabhakar
Hi Evgeny, Thank you for the patch. On Thu, Jul 23, 2020 at 6:04 PM Evgeny Novikov wrote: > > In case of errors vpif_probe_complete() releases memory for vpif_obj.sd > and unregisters the V4L2 device. But then this is done again by > vpif_probe() itself. The patch removes the cleaning from > vpi

Re: [PATCH V7 07/14] perf/core: Add a new PERF_EV_CAP_COEXIST event capability

2020-07-24 Thread Liang, Kan
On 7/24/2020 9:54 AM, Peter Zijlstra wrote: On Fri, Jul 24, 2020 at 09:43:44AM -0400, Liang, Kan wrote: On 7/24/2020 7:46 AM, pet...@infradead.org wrote: On Fri, Jul 24, 2020 at 12:55:43PM +0200, pet...@infradead.org wrote: + event_sched_out(event, cpuctx, ctx); + perf_event_s

[net-next v2 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-07-24 Thread Vadym Kochan
Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely wireless SMB deployment. Prestera Switchdev is a firmware based driver that operates via PCI bus. The current implementation supports only boards designed for the

[net-next v2 3/6] net: marvell: prestera: Add basic devlink support

2020-07-24 Thread Vadym Kochan
Add very basic support for devlink interface: - driver name - fw version - devlink ports Signed-off-by: Vadym Kochan --- drivers/net/ethernet/marvell/prestera/Kconfig | 1 + .../net/ethernet/marvell/prestera/Makefile| 2 +- .../net/ethernet/marvell/prestera/prestera.h | 4

[net-next v2 6/6] dt-bindings: marvell,prestera: Add description for device-tree bindings

2020-07-24 Thread Vadym Kochan
Add brief description how to configure base mac address binding in device-tree. Describe requirement for the PCI port which is connected to the ASIC, to allow access to the firmware related registers. Signed-off-by: Vadym Kochan --- .../bindings/net/marvell,prestera.txt | 34 +++

[net-next v2 5/6] net: marvell: prestera: Add Switchdev driver implementation

2020-07-24 Thread Vadym Kochan
The following features are supported: - VLAN-aware bridge offloading - VLAN-unaware bridge offloading - FDB offloading (learning, ageing) - Switchport configuration Currently there are some limitations like: - Only 1 VLAN-aware bridge instance supported - FDB ageing timeo

[net-next v2 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-07-24 Thread Vadym Kochan
Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely wireless SMB deployment. The current implementation supports only boards designed for the Marvell Switchdev solution and requires special firmware. The core Preste

[net-next v2 2/6] net: marvell: prestera: Add PCI interface support

2020-07-24 Thread Vadym Kochan
Add PCI interface driver for Prestera Switch ASICs family devices, which provides: - Firmware loading mechanism - Requests & events handling to/from the firmware - Access to the firmware on the bus level The firmware has to be loaded each time device is reset. The driver is loading it

[net-next v2 4/6] net: marvell: prestera: Add ethtool interface support

2020-07-24 Thread Vadym Kochan
The ethtool API provides support for the configuration of the following features: speed and duplex, auto-negotiation, MDI-x, forward error correction, port media type. The API also provides information about the port status, hardware and software statistic. The following limitation exists: - p

Re: [PATCHv2 2/2] hwrng: optee: fix wait use case

2020-07-24 Thread Jorge Ramirez-Ortiz, Foundries
On 24/07/20, Sumit Garg wrote: > On Thu, 23 Jul 2020 at 14:16, Jorge Ramirez-Ortiz wrote: > > > > The current code waits for data to be available before attempting a > > second read. However the second read would not be executed as the > > while loop exits. > > > > This fix does not wait if all da

Re: [patch V5 15/15] x86/kvm: Use generic xfer to guest work function

2020-07-24 Thread Ingo Molnar
* Thomas Gleixner wrote: > From: Thomas Gleixner > > Use the generic infrastructure to check for and handle pending work before > transitioning into guest mode. > > This now handles TIF_NOTIFY_RESUME as well which was ignored so > far. Handling it is important as this covers task work and ta

Re: [Phishing Risk] [External] Re: [PATCH v2] mm/hugetlb: add mempolicy check in the reservation routine

2020-07-24 Thread Michal Hocko
On Fri 24-07-20 21:56:29, Muchun Song wrote: > On Fri, Jul 24, 2020 at 7:34 PM Michal Hocko wrote: [...] > > I believe you can simplify this and use a similar pattern as the page > > allocator. Something like > > > > for_each_node_mask(node, mpol_allowed) { > > if (node_iss

Re: [PATCH 1/2] Add UFFD_USER_MODE_ONLY

2020-07-24 Thread Michael S. Tsirkin
On Wed, Apr 22, 2020 at 05:26:31PM -0700, Daniel Colascione wrote: > userfaultfd handles page faults from both user and kernel code. Add a > new UFFD_USER_MODE_ONLY flag for userfaultfd(2) that makes the > resulting userfaultfd object refuse to handle faults from kernel mode, > treating these faul

Re: [patch V5 13/15] x86/entry: Use generic interrupt entry/exit code

2020-07-24 Thread Ingo Molnar
* Thomas Gleixner wrote: > From: Thomas Gleixner > > Replace the x86 code with the generic variant. Use temporary defines for > idtentry_* which will be cleaned up in the next step. > > Signed-off-by: Thomas Gleixner There was a comment that still referenced the old x86-specific API names

Re: [PATCH v2 4/7] interconnect: qcom: Add SM8150 interconnect provider driver

2020-07-24 Thread Sibi Sankar
Hey Jonathan, Thanks for the patch! On 2020-07-13 21:11, Jonathan Marek wrote: Add driver for the Qualcomm interconnect buses found in SM8150 based platforms. The topology consists of several NoCs that are controlled by a remote processor that collects the aggregated bandwidth for each master-sl

Re: [PATCH v2 5/7] interconnect: qcom: Add SM8250 interconnect provider driver

2020-07-24 Thread Sibi Sankar
Hey Jonathan, Thanks for the patch! On 2020-07-13 21:11, Jonathan Marek wrote: Add driver for the Qualcomm interconnect buses found in SM8250 based platforms. The topology consists of several NoCs that are controlled by a remote processor that collects the aggregated bandwidth for each master-sl

Re: [PATCH v8 6/7] x86: Add support for ZSTD compressed kernel

2020-07-24 Thread Arvind Sankar
On Fri, Jul 24, 2020 at 02:50:34AM +0200, Sedat Dilek wrote: > On Thu, Jul 23, 2020 at 9:30 PM Nick Terrell wrote: > > > > From: Nick Terrell > > > > * Add support for zstd compressed kernel > > * Define __DISABLE_EXPORTS in misc.c > > * Bump the heap size for zstd. > > * Update the documentation

[PATCH V4] Softirq:avoid large sched delay from the pending softirqs

2020-07-24 Thread qianjun . kernel
From: jun qian When get the pending softirqs, it need to process all the pending softirqs in the while loop. If the processing time of each pending softirq is need more than 2 msec in this loop, or one of the softirq will running a long time, according to the original code logic, it will process

Re: 5.7 regression: Lots of PCIe AER errors and suspend failure without pcie=noaer

2020-07-24 Thread Kai-Heng Feng
Hi Robert, > On Jul 22, 2020, at 07:55, Robert Hancock wrote: > > On Fri, Jul 10, 2020 at 6:28 PM Robert Hancock wrote: >> >> On Fri, Jul 10, 2020 at 6:23 PM Robert Hancock wrote: >>> >>> Noticed a problem on my desktop with an Asus PRIME H270-PRO >>> motherboard after Fedora 32 upgraded to

Re: [PATCH v2 0/9] s390: implement and optimize vmemmap_free()

2020-07-24 Thread Heiko Carstens
On Wed, Jul 22, 2020 at 11:45:49AM +0200, David Hildenbrand wrote: > This series is based on the latest s390/features branch [1]. It > consolidates vmem_add_range(), vmem_remove_range(), and vmemmap_populate() > into a single, recursive page table walker. It then implements > vmemmap_free() and opt

Re: [PATCH] rtc: ds1307: provide an indication that the watchdog has fired

2020-07-24 Thread Guenter Roeck
On 7/23/20 9:50 PM, Chris Packham wrote: > There's not much feedback when the ds1388 watchdog fires. Generally it > yanks on the reset line and the board reboots. To provide some feedback > indicate that the watchdog has fired in the past. This should help > distinguish a watchdog triggered reset f

Re: [PATCH V7 07/14] perf/core: Add a new PERF_EV_CAP_COEXIST event capability

2020-07-24 Thread Peter Zijlstra
On Fri, Jul 24, 2020 at 10:19:25AM -0400, Liang, Kan wrote: > There will be a problem for the current perf tool, which assumes that the > leader event is the sampling event. > > I will check how can we specially handle it in the perf tool. Ah, okay. I've long lost track of how the tool works :/

Re: [PATCH v2 4/4] xen: add helpers to allocate unpopulated memory

2020-07-24 Thread Jürgen Groß
On 24.07.20 14:42, Roger Pau Monne wrote: To be used in order to create foreign mappings. This is based on the ZONE_DEVICE facility which is used by persistent memory devices in order to create struct pages and kernel virtual mappings for the IOMEM areas of such devices. Note that on kernels with

Re: [PATCH v2 4/4] xen: add helpers to allocate unpopulated memory

2020-07-24 Thread David Hildenbrand
CCing Dan On 24.07.20 14:42, Roger Pau Monne wrote: > To be used in order to create foreign mappings. This is based on the > ZONE_DEVICE facility which is used by persistent memory devices in > order to create struct pages and kernel virtual mappings for the IOMEM > areas of such devices. Note tha

Re: [PATCH 2/2] fsi/sbefifo: Fix reset timeout

2020-07-24 Thread Guenter Roeck
On 7/24/20 12:15 AM, Joel Stanley wrote: > From: Joachim Fenkes > > On BMCs with lower timer resolution than 1ms, msleep(1) will take > way longer than 1ms, so looping 10k times won't wait for 10s but > significantly longer. > > Fix this by using jiffies like the rest of the code. > > Fixes: 9f

Re: nouveau regression with 5.7 caused by "PCI/PM: Assume ports without DLL Link Active train links in 100 ms"

2020-07-24 Thread Bjorn Helgaas
On Fri, Jul 24, 2020 at 12:57:51PM +0300, Mika Westerberg wrote: > On Thu, Jul 23, 2020 at 10:30:58PM +0200, Karol Herbst wrote: > > On Wed, Jul 22, 2020 at 11:25 AM Mika Westerberg > > wrote: > > > > > > On Tue, Jul 21, 2020 at 01:37:12PM -0500, Patrick Volkerding wrote: > > > > On 7/21/20 10:27

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