[PATCH v8 04/10] regulator: add warning flags

2021-04-19 Thread Matti Vaittinen
Add 'warning' level events and error flags to regulator core. Current regulator core notifications are used to inform consumers about errors where HW is misbehaving in such way it is assumed to be broken/unrecoverable. There are PMICs which are designed for system(s) that may have use for regulato

Re: [Nouveau] [PATCH 13/40] drm/nouveau/dispnv50/disp: Include header containing our prototypes

2021-04-19 Thread Karol Herbst
Reviewed-by: Karol Herbst On Fri, Apr 16, 2021 at 4:38 PM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/nouveau/dispnv50/disp.c:2599:1: warning: no previous > prototype for ‘nv50_display_create’ [-Wmissing-prototypes] > > Cc: Ben Skeggs > Cc: David

Re: [PATCH] crypto: hisilicon/hpre - fix unmapping invalid dma address

2021-04-19 Thread Hui Tang
On 2021/4/16 19:26, Herbert Xu wrote: On Sat, Apr 10, 2021 at 05:49:17PM +0800, Hui Tang wrote: Currently, an invalid dma address may be unmapped when calling 'xx_data_clr_all' in error path, so check dma address of sqe in/out whether it has been mapped before calling 'dma_free_coherent' or '

[PATCH v8 05/10] regulator: IRQ based event/error notification helpers

2021-04-19 Thread Matti Vaittinen
Provide helper function for IC's implementing regulator notifications when an IRQ fires. The helper also works for IRQs which can not be acked. Helper can be set to disable the IRQ at handler and then re-enabling it on delayed work later. The helper also adds regulator_get_error_flags() errors in c

[PATCH v8 06/10] regulator: add property parsing and callbacks to set protection limits

2021-04-19 Thread Matti Vaittinen
Add DT property parsing code and setting callback for regulator over/under voltage, over-current and temperature error limits. Signed-off-by: Matti Vaittinen --- No changes since RFC-v3 --- drivers/regulator/core.c | 122 +- drivers/regulator/of_regulator.c

[PATCH v8 07/10] dt-bindings: regulator: bd9576 add FET ON-resistance for OCW

2021-04-19 Thread Matti Vaittinen
BD9576MUF provides over-current protection and detection. Current is measured as voltage loss over external FET. Allow specifying FET's on resistance so current monitoring limits can be converted to voltages. Signed-off-by: Matti Vaittinen Reviewed-by: Rob Herring --- v5 onwards: - No changes

[PATCH v8 08/10] regulator: bd9576: Support error reporting

2021-04-19 Thread Matti Vaittinen
BD9573 and BD9576 support set of "protection" interrupts for "fatal" issues. Those lead to SOC reset as PMIC shuts the power outputs. Thus there is no relevant IRQ handling for them. Few "detection" interrupts were added to the BD9576 with the idea that SOC could take some recovery-action before e

[PATCH v8 09/10] regulator: bd9576: Fix the driver name in id table

2021-04-19 Thread Matti Vaittinen
Driver name was changed in MFD cell: https://lore.kernel.org/lkml/560b9748094392493ebf7af11b6cc558776c4fd5.1613031055.git.matti.vaitti...@fi.rohmeurope.com/ Fix the ID table to match this. Signed-off-by: Matti Vaittinen --- No changes since RFC-v2 --- drivers/regulator/bd9576-regulator.c | 4 ++-

[PATCH v8 10/10] MAINTAINERS: Add reviewer for regulator irq_helpers

2021-04-19 Thread Matti Vaittinen
Add a reviewer entry for the regulator irq_helpers. Signed-off-by: Matti Vaittinen --- Changelog: v7 - onwards - no changes v6: - New patch --- MAINTAINERS | 4 1 file changed, 4 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7fdc513392f4..c917d85feccd 100644 --- a/MAINTA

RE: [PATCH] [v14] wireless: Initial driver submission for pureLiFi STA devices

2021-04-19 Thread Srinivasan Raju
> From: Srinivasan Raju > Sent: 26 February 2021 13:09 > This introduces the pureLiFi LiFi driver for LiFi-X, LiFi-XC > and LiFi-XL USB devices. > > This driver implementation has been based on the zd1211rw driver. > > Driver is based on 802.11 softMAC Architecture and uses > native 802.11 for

Re: [PATCH] rtl8xxxu: Fix device info for RTL8192EU devices

2021-04-19 Thread Jes Sorensen
On 3/23/21 3:36 PM, Pascal Terjan wrote: > Based on 2001:3319 and 2357:0109 which I used to test the fix and > 0bda:818b and 2357:0108 for which I found efuse dumps online. > > == 2357:0109 == > === Before === > Vendor: Realtek > Product: \x03802.11n NI > Serial: > === After === > Vendor: Realtek

Re: [PATCH] secretmem: optimize page_is_secretmem()

2021-04-19 Thread Mike Rapoport
On Mon, Apr 19, 2021 at 12:23:02PM +0100, Matthew Wilcox wrote: > On Mon, Apr 19, 2021 at 11:42:18AM +0300, Mike Rapoport wrote: > > The perf profile of the test indicated that the regression is caused by > > page_is_secretmem() called from gup_pte_range() (inlined by gup_pgd_range): > > Uhh ... y

Re: [PATCH RESEND][next] rtl8xxxu: Fix fall-through warnings for Clang

2021-04-19 Thread Jes Sorensen
On 4/17/21 8:09 PM, Joe Perches wrote: > On Sat, 2021-04-17 at 14:30 -0400, Jes Sorensen wrote: >> On 4/17/21 1:52 PM, Kalle Valo wrote: >>> "Gustavo A. R. Silva" wrote: >>> In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple warnings by replacing /* fall through */ c

Re: [PATCH RESEND][next] rtl8xxxu: Fix fall-through warnings for Clang

2021-04-19 Thread Jes Sorensen
On 4/17/21 3:24 PM, Gustavo A. R. Silva wrote: > > > On 4/17/21 13:29, Jes Sorensen wrote: >> On 3/10/21 3:59 PM, Kees Cook wrote: >>> On Wed, Mar 10, 2021 at 02:51:24PM -0500, Jes Sorensen wrote: On 3/10/21 2:45 PM, Kees Cook wrote: > On Wed, Mar 10, 2021 at 02:31:57PM -0500, Jes Sorens

Re: [PATCH v1 1/1] tee: optee: Provide special parameter field for UUID values

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 01:35:51PM +0200, Jens Wiklander wrote: > On Thu, Apr 15, 2021 at 4:58 PM Andy Shevchenko > wrote: Thanks for review, my answer below. > > struct optee_msg_param_tmem tmem; > > struct optee_msg_param_rmem rmem; > > struct op

答复: [PATCH v2] mm/compaction:let proactive compaction order configurable

2021-04-19 Thread Chu,Kaiping
Hi Rientjes, We turn off the transparent huge page in our machines, so we don't care about the order 9. There are many user space applications, different application maybe allocate different order of memory, we can't know the "known order of interest" in advance. Our purpose is to keep the overa

[no subject]

2021-04-19 Thread Will C
https://bit.ly/3x8LDhsWill

[tip: x86/build] x86/build: Disable HIGHMEM64G selection for M486SX

2021-04-19 Thread tip-bot2 for Maciej W. Rozycki
The following commit has been merged into the x86/build branch of tip: Commit-ID: 0ef3439cd80ba7770723edb0470d15815914bb62 Gitweb: https://git.kernel.org/tip/0ef3439cd80ba7770723edb0470d15815914bb62 Author:Maciej W. Rozycki AuthorDate:Wed, 14 Apr 2021 12:38:28 +02:00 Commi

Re: [syzbot] WARNING in __percpu_ref_exit (2)

2021-04-19 Thread Pavel Begunkov
On 4/18/21 8:30 PM, syzbot wrote: > syzbot has found a reproducer for the following issue on: > > HEAD commit:c98ff1d0 Merge tag 'scsi-fixes' of git://git.kernel.org/pu.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=163d7229d0 > kernel config: htt

Re: [syzbot] KASAN: use-after-free Read in idr_for_each (2)

2021-04-19 Thread Pavel Begunkov
On 4/15/21 7:28 PM, syzbot wrote: > syzbot suspects this issue was fixed by commit: > > commit 61cf93700fe6359552848ed5e3becba6cd760efa > Author: Matthew Wilcox (Oracle) > Date: Mon Mar 8 14:16:16 2021 + > > io_uring: Convert personality_idr to XArray > > bisection log: https://syzka

Re: [PATCH v4] mm: slub: move sysfs slab alloc/free interfaces to debugfs

2021-04-19 Thread Vlastimil Babka
On 4/16/21 4:27 PM, Faiyaz Mohammed wrote: > alloc_calls and free_calls implementation in sysfs have two issues, > one is PAGE_SIZE limitiation of sysfs and other is it does not adhere > to "one value per file" rule. > > To overcome this issues, move the alloc_calls and free_calls implemeation > t

Re: [PATCH] sched,fair: skip newidle_balance if a wakeup is pending

2021-04-19 Thread Vincent Guittot
On Mon, 19 Apr 2021 at 04:18, Rik van Riel wrote: > > The try_to_wake_up function has an optimization where it can queue > a task for wakeup on its previous CPU, if the task is still in the > middle of going to sleep inside schedule(). > > Once schedule() re-enables IRQs, the task will be woken up

Re: [PATCH net-next 2/2] net: ethernet: mediatek: support custom GMAC label

2021-04-19 Thread Andrew Lunn
On Sun, Apr 18, 2021 at 09:03:52PM -0700, Ilya Lipnitskiy wrote: > The MAC device name can now be set within DTS file instead of always > being "ethX". This is helpful for DSA to clearly label the DSA master > device and distinguish it from DSA slave ports. > > For example, some devices, such as t

[PATCH 0/3] spi: stm32-qspi: Fix and update

2021-04-19 Thread patrice.chotard
From: Patrice Chotard Christophe Kerello (1): spi: stm32-qspi: fix pm_runtime usage_count counter Patrice Chotard (2): spi: stm32-qspi: Trigger DMA only if more than 4 bytes to transfer spi: stm32-qspi: Add dirmap support drivers/spi/spi-stm32-qspi.c | 106 +++

[PATCH 2/3] spi: stm32-qspi: Trigger DMA only if more than 4 bytes to transfer

2021-04-19 Thread patrice.chotard
From: Patrice Chotard In order to optimize accesses to spi flashes, trigger a DMA only if more than 4 bytes has to be transferred. DMA transfer preparation's cost becomes negligible above 4 bytes to transfer. Below this threshold, indirect transfer give more throughput. mtd_speedtest shows that

[PATCH 1/3] spi: stm32-qspi: fix pm_runtime usage_count counter

2021-04-19 Thread patrice.chotard
From: Christophe Kerello pm_runtime usage_count counter is not well managed. pm_runtime_put_autosuspend callback drops the usage_counter but this one has never been increased. Add pm_runtime_get_sync callback to bump up the usage counter. It is also needed to use pm_runtime_force_suspend and pm_r

[PATCH 3/3] spi: stm32-qspi: Add dirmap support

2021-04-19 Thread patrice.chotard
From: Patrice Chotard Add stm32_qspi_dirmap_read() and stm32_qspi_dirmap_create() to get dirmap support. Update the exec_op callback which doens't allow anymore memory map access. Memory map access are only available through the dirmap_read callback. Signed-off-by: Patrice Chotard --- drivers

Re: [PATCH v4] dma-buf: Add DmaBufTotal counter in meminfo

2021-04-19 Thread Michal Hocko
On Sat 17-04-21 12:40:32, Peter Enderborg wrote: > This adds a total used dma-buf memory. Details > can be found in debugfs, however it is not for everyone > and not always available. dma-buf are indirect allocated by > userspace. So with this value we can monitor and detect > userspace application

Re: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-19 Thread Arnd Bergmann
On Mon, Apr 19, 2021 at 11:33 AM Dominique MARTINET wrote: > Geert Uytterhoeven wrote on Mon, Apr 19, 2021 at 11:03:24AM +0200: > > > soc_device_match() should only be used as a last resort, to identify > > systems that cannot be identified otherwise. Typically this is used for > > quirks, which

[PATCH bpf-next v2 0/4] Add TC-BPF API

2021-04-19 Thread Kumar Kartikeya Dwivedi
This is the second version of the TC-BPF series. It adds a simple API that uses netlink to attach the tc filter and its bpf classifier. Currently, a user needs to shell out to the tc command line to be able to create filters and attach SCHED_CLS programs as classifiers. With the help of this API,

[PATCH bpf-next v2 1/4] tools: pkt_cls.h: sync with kernel sources

2021-04-19 Thread Kumar Kartikeya Dwivedi
Update the header file so we can use the new defines in subsequent patches. Also make sure they remain up to date. Reviewed-by: Toke Høiland-Jørgensen Signed-off-by: Kumar Kartikeya Dwivedi --- tools/include/uapi/linux/pkt_cls.h | 174 - tools/lib/bpf/Makefile

[PATCH bpf-next v2 2/4] libbpf: add helpers for preparing netlink attributes

2021-04-19 Thread Kumar Kartikeya Dwivedi
This change introduces a few helpers to wrap open coded attribute preparation in netlink.c. Every nested attribute's closure must happen using the helper nlattr_end_nested, which sets its length properly. NLA_F_NESTED is enforeced using nlattr_begin_nested helper. Other simple attributes can be ad

[PATCH bpf-next v2 3/4] libbpf: add low level TC-BPF API

2021-04-19 Thread Kumar Kartikeya Dwivedi
This adds functions that wrap the netlink API used for adding, manipulating, and removing traffic control filters. These functions operate directly on the loaded prog's fd, and return a handle to the filter using an out parameter named id. The basic featureset is covered to allow for attaching, ma

[PATCH bpf-next v2 4/4] libbpf: add selftests for TC-BPF API

2021-04-19 Thread Kumar Kartikeya Dwivedi
This adds some basic tests for the low level bpf_tc_cls_* API. Reviewed-by: Toke Høiland-Jørgensen Signed-off-by: Kumar Kartikeya Dwivedi --- .../selftests/bpf/prog_tests/test_tc_bpf.c| 112 ++ .../selftests/bpf/progs/test_tc_bpf_kern.c| 12 ++ 2 files changed, 124 inse

Re: [PATCH 1/3] arm64: ptrace: Add is_syscall_success to handle compat

2021-04-19 Thread Will Deacon
On Fri, Apr 16, 2021 at 02:34:41PM +0100, Mark Rutland wrote: > On Fri, Apr 16, 2021 at 01:33:22PM +0100, Catalin Marinas wrote: > > On Fri, Apr 16, 2021 at 03:55:31PM +0800, He Zhe wrote: > > > The general version of is_syscall_success does not handle 32-bit > > > compatible case, which would caus

Re: [PATCH] linux/mount.h: Remove duplicate struct declaration

2021-04-19 Thread Christian Brauner
On Mon, Apr 19, 2021 at 07:33:04PM +0800, Wan Jiabing wrote: > struct path is declared at 85th line. > The declaration here is unnecessary. Remove it. > > Signed-off-by: Wan Jiabing > --- Looks good, Reviewed-by: Christian Brauner

Re: [Linuxarm] Re: [PATCH net v3] net: sched: fix packet stuck problem for lockless qdisc

2021-04-19 Thread Yunsheng Lin
On 2021/4/19 10:04, Yunsheng Lin wrote: > On 2021/4/19 6:59, Michal Kubecek wrote: >> On Thu, Mar 25, 2021 at 11:13:11AM +0800, Yunsheng Lin wrote: >>> Lockless qdisc has below concurrent problem: >>> cpu0 cpu1 >>> . . >>> q->enqueue . >>

Re: [PATCH] ACPI: PM: s2idle: Invoke _PTS for s2idle

2021-04-19 Thread Kai-Heng Feng
On Mon, Apr 19, 2021 at 7:35 PM Rafael J. Wysocki wrote: > > On Mon, Apr 19, 2021 at 11:08 AM Kai-Heng Feng > wrote: > > > > HP EliteBook 840 G8 reboots on s2idle resume, and HP EliteBook 845 G8 > > wakes up immediately on s2idle. Both are caused by the XMM7360 WWAN PCI > > card. > > > > There's

Re: linux-next: build failure after merge of the powerpc tree

2021-04-19 Thread Michael Ellerman
Xiongwei Song writes: > Thank you so much Stephen. Sorry for my negligence. My fault. I forgot to run allyesconfig. > Should I fix this myself on powerpc tree? I'll fix it up. cheers

Re: [RFC PATCH 2/3] vfio/hisilicon: register the driver to vfio

2021-04-19 Thread liulongfang
On 2021/4/16 6:01, Jason Gunthorpe wrote: > On Tue, Apr 13, 2021 at 11:36:22AM +0800, Longfang Liu wrote: >> Register the live migration driver of the accelerator module to vfio >> >> Signed-off-by: Longfang Liu >> drivers/vfio/pci/vfio_pci.c | 11 +++ >> drivers/vfio/pci/vfio_pci

Re: [PATCH] secretmem: optimize page_is_secretmem()

2021-04-19 Thread Matthew Wilcox
On Mon, Apr 19, 2021 at 02:56:17PM +0300, Mike Rapoport wrote: > On Mon, Apr 19, 2021 at 12:23:02PM +0100, Matthew Wilcox wrote: > > So you're calling page_is_secretmem() on a struct page without having > > a refcount on it. That is definitely not allowed. secretmem seems to > > be full of these

[PATCH] capabilities: require CAP_SETFCAP to map uid 0 (v3.3)

2021-04-19 Thread Serge E. Hallyn
cap_setfcap is required to create file capabilities. Since 8db6c34f1dbc ("Introduce v3 namespaced file capabilities"), a process running as uid 0 but without cap_setfcap is able to work around this as follows: unshare a new user namespace which maps parent uid 0 into the child namespace. While th

Re: [PATCH v2 2/2] iio: accel: Add driver for Murata SCA3300 accelerometer

2021-04-19 Thread Andy Shevchenko
On Mon, Apr 19, 2021 at 2:36 PM Tomas Melin wrote: > On 4/19/21 2:14 PM, Andy Shevchenko wrote: > > On Mon, Apr 19, 2021 at 1:29 PM Tomas Melin wrote: > >> On 4/17/21 3:39 PM, Andy Shevchenko wrote: > >>> On Fri, Apr 16, 2021 at 5:21 PM Tomas Melin > >>> wrote: > Add initial support for Mu

[PATCH] mmc: core: Move eMMC cache flushing to a new bus_ops callback

2021-04-19 Thread Ulf Hansson
To prepare to add internal cache management for SD cards, let's start by moving the eMMC specific code into a new ->flush_cache() bus_ops callback. In this way, it becomes more straight-forward to add the SD specific parts, as subsequent changes are about to show. Signed-off-by: Ulf Hansson ---

Re: [PATCH v3 0/4] kernfs: proposed locking and concurrency improvement

2021-04-19 Thread Ian Kent
On Mon, 2021-04-19 at 15:56 +0800, Fox Chen wrote: > On Fri, Apr 9, 2021 at 9:14 AM Ian Kent wrote: > > There have been a few instances of contention on the kernfs_mutex > > during > > path walks, a case on very large IBM systems seen by myself, a > > report by > > Brice Goglin and followed up by

Re: [RFC Part2 PATCH 04/30] x86/mm: split the physmap when adding the page in RMP table

2021-04-19 Thread Borislav Petkov
On Wed, Mar 24, 2021 at 12:04:10PM -0500, Brijesh Singh wrote: > A write from the hypervisor goes through the RMP checks. When the > hypervisor writes to pages, hardware checks to ensures that the assigned > bit in the RMP is zero (i.e page is shared). If the page table entry that > gives the sPA i

Re: [RFC PATCH 2/3] vfio/hisilicon: register the driver to vfio

2021-04-19 Thread Jason Gunthorpe
On Mon, Apr 19, 2021 at 08:24:40PM +0800, liulongfang wrote: > > I'm also confused how this works securely at all, as a general rule a > > VFIO PCI driver cannot access the MMIO memory of the function it is > > planning to assign to the guest. There is a lot of danger that the > > guest could acce

Re: [PATCH V6 1/4] arch_topology: Rename freq_scale as arch_freq_scale

2021-04-19 Thread Will Deacon
On Wed, Mar 10, 2021 at 10:53:23AM +0530, Viresh Kumar wrote: > Rename freq_scale to a less generic name, as it will get exported soon > for modules. Since x86 already names its own implementation of this as > arch_freq_scale, lets stick to that. > > Suggested-by: Will Deacon > Signed-off-by: Vir

Re: [PATCH] kbuild: deb-pkg: change the source package name to 'linux'

2021-04-19 Thread Ben Hutchings
On Mon, 2021-04-19 at 16:01 +0900, Masahiro Yamada wrote: > Change the source package name from 'linux-$(KERNELRELEASE)' to 'linux', > which is aligned with the source package from the Debian community. I would prefer that the source package name is *not* the same, so that it is clearly distinguis

Re: [PATCH net] gro: fix napi_gro_frags() Fast GRO breakage due to IP alignment check

2021-04-19 Thread Alexander Lobakin
From: Eric Dumazet Date: Mon, 19 Apr 2021 13:05:16 +0200 > On Sun, Apr 18, 2021 at 1:43 PM Alexander Lobakin wrote: > > > > Commit 38ec4944b593 ("gro: ensure frag0 meets IP header alignment") > > did the right thing, but missed the fact that napi_gro_frags() logics > > calls for skb_gro_reset_of

Re: [net-next] net: dsa: felix: disable always guard band bit for TAS config

2021-04-19 Thread Vladimir Oltean
Hi Xiaoliang, On Mon, Apr 19, 2021 at 06:25:30PM +0800, Xiaoliang Yang wrote: > ALWAYS_GUARD_BAND_SCH_Q bit in TAS config register is descripted as > this: > 0: Guard band is implemented for nonschedule queues to schedule > queues transition. > 1: Guard band is implemented for

Re: [PATCH v2] perf vendor events: Initial json/events list for power10 platform

2021-04-19 Thread Michael Ellerman
Kajol Jain writes: > Patch adds initial json/events for POWER10. Acked-by: Michael Ellerman cheers > Signed-off-by: Kajol Jain > Tested-by: Paul A. Clarke > Reviewed-by: Paul A. Clarke > --- > .../perf/pmu-events/arch/powerpc/mapfile.csv | 1 + > .../arch/powerpc/power10/cache.json

Re: [PATCH v2 1/2] mmc: block: Issue flush only if allowed

2021-04-19 Thread Ulf Hansson
On Sun, 18 Apr 2021 at 08:00, Avri Altman wrote: > > The cache may be flushed to the nonvolatile storage by writing to > FLUSH_CACHE byte (EXT_CSD byte [32]). When in command queueing mode, the > cache may be flushed by issuing a CMDQ_TASK_ DEV_MGMT (CMD48) with a > FLUSH_CACHE op-code. Either wa

Re: [PATCH v4] dma-buf: Add DmaBufTotal counter in meminfo

2021-04-19 Thread Peter.Enderborg
On 4/19/21 2:16 PM, Michal Hocko wrote: > On Sat 17-04-21 12:40:32, Peter Enderborg wrote: >> This adds a total used dma-buf memory. Details >> can be found in debugfs, however it is not for everyone >> and not always available. dma-buf are indirect allocated by >> userspace. So with this value we

Re: [PATCH v4] PCI: Add quirk for preventing bus reset on TI C667X

2021-04-19 Thread Kishon Vijay Abraham I
On 15/03/21 3:56 pm, Antti Järvinen wrote: > Some TI KeyStone C667X devices do not support bus/hot reset. Its PCIESS > automatically disables LTSSM when secondary bus reset is received and > device stops working. Prevent bus reset by adding quirk_no_bus_reset to > the device. With this change de

RE: [PATCH] mmc: core: Move eMMC cache flushing to a new bus_ops callback

2021-04-19 Thread Avri Altman
> To prepare to add internal cache management for SD cards, let's start by > moving the eMMC specific code into a new ->flush_cache() bus_ops callback. > > In this way, it becomes more straight-forward to add the SD specific parts, > as subsequent changes are about to show. > > Signed-off-by: U

RE: [PATCH v2 1/2] mmc: block: Issue flush only if allowed

2021-04-19 Thread Avri Altman
> > On Sun, 18 Apr 2021 at 08:00, Avri Altman wrote: > > > > The cache may be flushed to the nonvolatile storage by writing to > > FLUSH_CACHE byte (EXT_CSD byte [32]). When in command queueing mode, > the > > cache may be flushed by issuing a CMDQ_TASK_ DEV_MGMT (CMD48) with a > > FLUSH_CACHE op

RE: [PATCH v2 1/2] mmc: block: Issue flush only if allowed

2021-04-19 Thread Avri Altman
> > On Sun, 18 Apr 2021 at 08:00, Avri Altman wrote: > > > > The cache may be flushed to the nonvolatile storage by writing to > > FLUSH_CACHE byte (EXT_CSD byte [32]). When in command queueing mode, > the > > cache may be flushed by issuing a CMDQ_TASK_ DEV_MGMT (CMD48) with a > > FLUSH_CACHE op

[PATCH] io_uring: check ctx->sq_data before io_sq_offload_start

2021-04-19 Thread Palash Oswal
syzkaller identified KASAN: null-ptr-deref Read in io_uring_create bug on the stable 5.11-y tree. BUG: KASAN: null-ptr-deref in io_sq_offload_start fs/io_uring.c:8254 [inline] BUG: KASAN: null-ptr-deref in io_disable_sqo_submit fs/io_uring.c:8999 [inline] BUG: KASAN: null-ptr-deref in io_uring_cre

Re: [PATCH v2 2/2] iio: accel: Add driver for Murata SCA3300 accelerometer

2021-04-19 Thread Tomas Melin
On 4/19/21 3:29 PM, Andy Shevchenko wrote: On Mon, Apr 19, 2021 at 2:36 PM Tomas Melin wrote: On 4/19/21 2:14 PM, Andy Shevchenko wrote: On Mon, Apr 19, 2021 at 1:29 PM Tomas Melin wrote: On 4/17/21 3:39 PM, Andy Shevchenko wrote: On Fri, Apr 16, 2021 at 5:21 PM Tomas Melin wrote: Add i

[PATCH v2 net] gro: fix napi_gro_frags() Fast GRO breakage due to IP alignment check

2021-04-19 Thread Alexander Lobakin
Commit 38ec4944b593 ("gro: ensure frag0 meets IP header alignment") did the right thing, but missed the fact that napi_gro_frags() logics calls for skb_gro_reset_offset() *before* pulling Ethernet header to the skb linear space. That said, the introduced check for frag0 address being aligned to 4 a

[PATCH][next] bcache: Set error return err to -ENOMEM on allocation failure

2021-04-19 Thread Colin King
From: Colin Ian King Currently when ns fails to be allocated the error return path returns an uninitialized return code in variable 'err'. Fix this by setting err to -ENOMEM. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: 688330711e9a ("bcache: initialize the nvm pages allocator")

Re: [PATCH] mmc: core: Move eMMC cache flushing to a new bus_ops callback

2021-04-19 Thread Ulf Hansson
On Mon, 19 Apr 2021 at 14:46, Avri Altman wrote: > > > > To prepare to add internal cache management for SD cards, let's start by > > moving the eMMC specific code into a new ->flush_cache() bus_ops callback. > > > > In this way, it becomes more straight-forward to add the SD specific parts, > > a

Re: [PATCH 2/2] sched/fair: Relax task_hot() for misfit tasks

2021-04-19 Thread Phil Auld
On Fri, Apr 16, 2021 at 10:43:38AM +0100 Valentin Schneider wrote: > On 15/04/21 16:39, Rik van Riel wrote: > > On Thu, 2021-04-15 at 18:58 +0100, Valentin Schneider wrote: > >> Consider the following topology: > >> > >> Long story short, preempted misfit tasks are affected by task_hot(), > >> whil

Re: [PATCH v1 1/6] mmc: core: Correct descriptions in mmc_of_parse()

2021-04-19 Thread Ulf Hansson
On Mon, 19 Apr 2021 at 13:24, Andy Shevchenko wrote: > > Since it has been converted to use device property API, the function > and field descriptions become outdated. Correct them. > > Fixes: 73a47a9bb3e2 ("mmc: core: Use device_property_read instead of > of_property_read") > Signed-off-by: Andy

[PATCH net-next v3 1/6] net: phy: execute genphy_loopback() per default on all PHYs

2021-04-19 Thread Oleksij Rempel
The generic loopback is really generic and is defined by the 802.3 standard, we should just mandate that drivers implement a custom loopback if the generic one cannot work. Suggested-by: Florian Fainelli Signed-off-by: Oleksij Rempel --- drivers/net/phy/phy_device.c | 7 +-- 1 file changed,

[PATCH net-next v3 0/6] provide generic net selftest support

2021-04-19 Thread Oleksij Rempel
changes v3: - make more granular tests - enable loopback for all PHYs by default - fix allmodconfig build errors - poll for link status update after switching to the loopback mode changes v2: - make generic selftests available for all networking devices. - make use of net_selftest* on FEC, ag71xx

[PATCH net-next v3 6/6] net: dsa: enable selftest support for all switches by default

2021-04-19 Thread Oleksij Rempel
Most of generic selftest should be able to work with probably all ethernet controllers. The DSA switches are not exception, so enable it by default at least for DSA. This patch was tested with SJA1105 and AR9331. Signed-off-by: Oleksij Rempel --- include/net/dsa.h | 2 ++ net/dsa/Kconfig |

[PATCH net-next v3 5/6] net: ag71xx: make use of generic NET_SELFTESTS library

2021-04-19 Thread Oleksij Rempel
With this patch the ag71xx on Atheros AR9331 will able to run generic net selftests. Signed-off-by: Oleksij Rempel --- drivers/net/ethernet/atheros/Kconfig | 1 + drivers/net/ethernet/atheros/ag71xx.c | 20 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/dr

[PATCH net-next v3 4/6] net: fec: make use of generic NET_SELFTESTS library

2021-04-19 Thread Oleksij Rempel
With this patch FEC on iMX will able to run generic net selftests Signed-off-by: Oleksij Rempel --- drivers/net/ethernet/freescale/Kconfig| 1 + drivers/net/ethernet/freescale/fec_main.c | 7 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/net/ethernet/freescale/Kconfig b/dri

[PATCH net-next v3 3/6] net: add generic selftest support

2021-04-19 Thread Oleksij Rempel
Port some parts of the stmmac selftest and reuse it as basic generic selftest library. This patch was tested with following combinations: - iMX6DL FEC -> AT8035 - iMX6DL FEC -> SJA1105Q switch -> KSZ8081 - iMX6DL FEC -> SJA1105Q switch -> KSZ9031 - AR9331 ag71xx -> AR9331 PHY - AR9331 ag71xx -> AR9

[PATCH net-next v3 2/6] net: phy: genphy_loopback: add link speed configuration

2021-04-19 Thread Oleksij Rempel
In case of loopback, in most cases we need to disable autoneg support and force some speed configuration. Otherwise, depending on currently active auto negotiated link speed, the loopback may or may not work. This patch was tested with following PHYs: TJA1102, KSZ8081, KSZ9031, AT8035, AR9331. Si

Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI

2021-04-19 Thread Geert Uytterhoeven
Hi Andy, On Thu, Apr 15, 2021 at 10:50 AM Andy Shevchenko wrote: > On Thu, Apr 15, 2021 at 3:43 AM Geert Uytterhoeven > wrote: > > On Wed, Apr 14, 2021 at 9:14 PM Andy Shevchenko > > wrote: > > > On Wed, Apr 14, 2021 at 08:55:21PM +0200, Geert Uytterhoeven wrote: > > > > On Wed, Apr 14, 2021 a

Re: [PATCH net-next v3 2/5] mm: add a signature in struct page

2021-04-19 Thread Matthew Wilcox
On Mon, Apr 19, 2021 at 01:22:04PM +0200, Jesper Dangaard Brouer wrote: > On Wed, 14 Apr 2021 13:09:47 -0700 > Shakeel Butt wrote: > > > On Wed, Apr 14, 2021 at 12:42 PM Jesper Dangaard Brouer > > wrote: > > > > > [...] > > > > > > > > > > Can this page_pool be used for TCP RX zerocopy? If yes

Re: [PATCH RESEND 0/4] Add support for HiSilicon PCIe Tune and Trace device

2021-04-19 Thread Yicong Yang
On 2021/4/17 21:56, Alexander Shishkin wrote: > Yicong Yang writes: > >> The reason for not using perf is because there is no current support >> for uncore tracing in the perf facilities. > > Not unless you count > > $ perf list|grep -ic uncore > 77 > these are uncore events probably do not s

[PATCH] spi: Handle SPI device setup callback failure.

2021-04-19 Thread Joe Burmeister
If the setup callback failed, but the controller has auto_runtime_pm and set_cs, the setup failure could be missed. Signed-off-by: Joe Burmeister --- drivers/spi/spi.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 8b283b2c

[PATCH 5.11 013/122] dmaengine: plx_dma: add a missing put_device() on error path

2021-04-19 Thread Greg Kroah-Hartman
From: Dan Carpenter [ Upstream commit 07503e6aefe4a6efd777062191944a14f03b3a18 ] Add a missing put_device(&pdev->dev) if the call to dma_async_device_register(dma); fails. Fixes: 905ca51e63be ("dmaengine: plx-dma: Introduce PLX DMA engine PCI driver skeleton") Signed-off-by: Dan Carpenter Rev

[PATCH 5.11 014/122] dmaengine: idxd: clear MSIX permission entry on shutdown

2021-04-19 Thread Greg Kroah-Hartman
From: Dave Jiang [ Upstream commit 6df0e6c57dfc064af330071f372f11aa8c584997 ] Add disabling/clearing of MSIX permission entries on device shutdown to mirror the enabling of the MSIX entries on probe. Current code left the MSIX enabled and the pasid entries still programmed at device shutdown. F

[PATCH 5.11 001/122] AMD_SFH: Removed unused activecontrolstatus member from the amd_mp2_dev struct

2021-04-19 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit a9e54f4b62dcfed4432a5a89b1cd5903737f6e83 ] This value is only used once inside amd_mp2_get_sensor_num(), so there is no need to store this in the amd_mp2_dev struct, amd_mp2_get_sensor_num() can simple use a local variable for this. Fixes: 4f567b9f8141 ("SF

[PATCH 5.11 010/122] dmaengine: idxd: fix wq size store permission state

2021-04-19 Thread Greg Kroah-Hartman
From: Dave Jiang [ Upstream commit 0fff71c5a311e1264988179f7dcc217fda15fadd ] WQ size can only be changed when the device is disabled. Current code allows change when device is enabled but wq is disabled. Change the check to detect device state. Fixes: c52ca478233c ("dmaengine: idxd: add config

[PATCH 5.11 015/122] dmaengine: idxd: fix wq cleanup of WQCFG registers

2021-04-19 Thread Greg Kroah-Hartman
From: Dave Jiang [ Upstream commit ea9aadc06a9f10ad20a90edc0a484f1147d88a7a ] A pre-release silicon erratum workaround where wq reset does not clear WQCFG registers was leaked into upstream code. Use wq reset command instead of blasting the MMIO region. This also address an issue where we clobbe

[PATCH 5.11 011/122] dmaengine: dw: Make it dependent to HAS_IOMEM

2021-04-19 Thread Greg Kroah-Hartman
From: Andy Shevchenko [ Upstream commit 88cd1d6191b13689094310c2405394e4ce36d061 ] Some architectures do not provide devm_*() APIs. Hence make the driver dependent on HAVE_IOMEM. Fixes: dbde5c2934d1 ("dw_dmac: use devm_* functions to simplify code") Reported-by: kernel test robot Signed-off-by

[PATCH 5.11 012/122] dmaengine: Fix a double free in dma_async_device_register

2021-04-19 Thread Greg Kroah-Hartman
From: Lv Yunlong [ Upstream commit ea45b6008f8095db0cc09ad6e03c7785c2986197 ] In the first list_for_each_entry() macro of dma_async_device_register, it gets the chan from list and calls __dma_async_device_channel_register (..,chan). We can see that chan->local is allocated by alloc_percpu() and

[PATCH 5.11 016/122] ACPI: x86: Call acpi_boot_table_init() after acpi_table_upgrade()

2021-04-19 Thread Greg Kroah-Hartman
From: Rafael J. Wysocki [ Upstream commit 6998a8800d73116187aad542391ce3b2dd0f9e30 ] Commit 1a1c130ab757 ("ACPI: tables: x86: Reserve memory occupied by ACPI tables") attempted to address an issue with reserving the memory occupied by ACPI tables, but it broke the initrd-based table override mec

[PATCH 5.11 017/122] ARM: dts: Drop duplicate sha2md5_fck to fix clk_disable race

2021-04-19 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 140a776833957539c84301dbdb4c3013876de118 ] We have a duplicate legacy clock defined for sha2md5_fck that can sometimes race with clk_disable() with the dts configured clock for OMAP4_SHA2MD5_CLKCTRL when unused clocks are disabled during boot causing an "Unh

[PATCH 5.11 018/122] ARM: dts: Fix moving mmc devices with aliases for omap4 & 5

2021-04-19 Thread Greg Kroah-Hartman
From: Tony Lindgren [ Upstream commit 77335a040178a0456d4eabc8bf17a7ca3ee4a327 ] Fix moving mmc devices with dts aliases as discussed on the lists. Without this we now have internal eMMC mmc1 show up as mmc2 compared to the earlier order of devices. Signed-off-by: Tony Lindgren Signed-off-by:

[PATCH 5.11 019/122] remoteproc: pru: Fix loading of GNU Binutils ELF

2021-04-19 Thread Greg Kroah-Hartman
From: Dimitar Dimitrov [ Upstream commit e6d9423d31b2f9bdd0220fd0584e3bb6ed2c4e52 ] PRU port of GNU Binutils lacks support for separate address spaces. PRU IRAM addresses are marked with artificial offset to differentiate them from DRAM addresses. Hence remoteproc must mask IRAM addresses coming

[PATCH 5.11 002/122] AMD_SFH: Add sensor_mask module parameter

2021-04-19 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit 952f7d10c6b1685c6700fb24cf4ecbcf26ede77e ] Add a sensor_mask module parameter which can be used to override the sensor-mask read from the activestatus bits of the AMD_P2C_MSG3 registers. Some BIOS-es do not program the activestatus bits, leading to the AMD-S

[PATCH 5.11 022/122] iwlwifi: Fix softirq/hardirq disabling in iwl_pcie_enqueue_hcmd()

2021-04-19 Thread Greg Kroah-Hartman
From: Jiri Kosina [ Upstream commit 2800aadc18a64c96b051bcb7da8a7df7d505db3f ] It's possible for iwl_pcie_enqueue_hcmd() to be called with hard IRQs disabled (e.g. from LED core). We can't enable BHs in such a situation. Turn the unconditional BH-enable/BH-disable code into hardirq-disable/cond

[PATCH 5.11 003/122] AMD_SFH: Add DMI quirk table for BIOS-es which dont set the activestatus bits

2021-04-19 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit 25615e454a0ec198254f17d2ed79b607cb755d0e ] Some BIOS-es do not initialize the activestatus bits of the AMD_P2C_MSG3 register. This cause the AMD_SFH driver to not register any sensors even though the laptops in question do have sensors. Add a DMI quirk-tabl

Re: [PATCH v3 1/3] tracing: Show real address for trace event arguments

2021-04-19 Thread Jon Hunter
On 15/10/2020 15:55, Masami Hiramatsu wrote: > To help debugging kernel, show real address for trace event arguments > in tracefs/trace{,pipe} instead of hashed pointer value. > > Since ftrace human-readable format uses vsprintf(), all %p are > translated to hash values instead of pointer addres

[PATCH 5.11 007/122] dmaengine: idxd: Fix clobbering of SWERR overflow bit on writeback

2021-04-19 Thread Greg Kroah-Hartman
From: Dave Jiang [ Upstream commit ea941ac294d75d0ace50797aebf0056f6f8f7a7f ] Current code blindly writes over the SWERR and the OVERFLOW bits. Write back the bits actually read instead so the driver avoids clobbering the OVERFLOW bit that comes after the register is read. Fixes: bfe1d56091c1 (

[PATCH 5.11 006/122] gpio: sysfs: Obey valid_mask

2021-04-19 Thread Greg Kroah-Hartman
From: Matti Vaittinen [ Upstream commit 23cf00ddd2e1aacf1873e43f5e0c519c120daf7a ] Do not allow exporting GPIOs which are set invalid by the driver's valid mask. Fixes: 726cb3ba4969 ("gpiolib: Support 'gpio-reserved-ranges' property") Signed-off-by: Matti Vaittinen Reviewed-by: Andy Shevchenko

[PATCH 5.11 008/122] dmaengine: idxd: fix delta_rec and crc size field for completion record

2021-04-19 Thread Greg Kroah-Hartman
From: Dave Jiang [ Upstream commit 4ac823e9cd85f66da274c951d21bf9f6b714b729 ] The delta_rec_size and crc_val in the completion record should be 32bits and not 16bits. Fixes: bfe1d56091c1 ("dmaengine: idxd: Init and probe for Intel data accelerators") Reported-by: Nikhil Rao Signed-off-by: Dav

[PATCH 5.11 000/122] 5.11.16-rc1 review

2021-04-19 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.11.16 release. There are 122 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Wed, 21 Apr 2021 13:05:09 +. Anything re

[PATCH 5.11 009/122] dmaengine: idxd: fix opcap sysfs attribute output

2021-04-19 Thread Greg Kroah-Hartman
From: Dave Jiang [ Upstream commit ea6a5735d2a61b938a302eb3629272342a9e7c46 ] The operation capability register is 256bits. The current output only prints out the first 64bits. Fix to output the entire 256bits. The current code omits operation caps from IAX devices. Fixes: c52ca478233c ("dmaeng

[PATCH 5.11 025/122] ASoC: max98373: Added 30ms turn on/off time delay

2021-04-19 Thread Greg Kroah-Hartman
From: Ryan Lee [ Upstream commit 3a27875e91fb9c29de436199d20b33f9413aea77 ] Amp requires 10 ~ 30ms for the power ON and OFF. Added 30ms delay for stability. Signed-off-by: Ryan Lee Link: https://lore.kernel.org/r/20210325033555.29377-2-ryans@maximintegrated.com Signed-off-by: Mark Brown

[PATCH 5.11 034/122] ASoC: fsl_esai: Fix TDM slot setup for I2S mode

2021-04-19 Thread Greg Kroah-Hartman
From: Alexander Shiyan [ Upstream commit e7a48c710defa0e0fef54d42b7d9e4ab596e2761 ] When using the driver in I2S TDM mode, the fsl_esai_startup() function rewrites the number of slots previously set by the fsl_esai_set_dai_tdm_slot() function to 2. To fix this, let's use the saved slot count val

[PATCH 5.11 035/122] scsi: scsi_transport_srp: Dont block target in SRP_PORT_LOST state

2021-04-19 Thread Greg Kroah-Hartman
From: Martin Wilck [ Upstream commit 5cd0f6f57639c5afbb36100c69281fee82c95ee7 ] rport_dev_loss_timedout() sets the rport state to SRP_PORT_LOST and the SCSI target state to SDEV_TRANSPORT_OFFLINE. If this races with srp_reconnect_work(), a warning is printed: Mar 27 18:48:07 ictm1604s01h4 kerne

[PATCH 5.11 036/122] iwlwifi: add support for Qu with AX201 device

2021-04-19 Thread Greg Kroah-Hartman
From: Matt Chen [ Upstream commit 97195d3cad852063208a1cd4f4d073459547a415 ] Add this specific Samsung AX201 sku to driver so it can be detected and initialized successfully. Signed-off-by: Matt Chen Signed-off-by: Luca Coelho Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/iwlwif

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