Re: [PATCH 10/19] paride/pcd: use bdev_check_media_change

2020-09-02 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn

[RFC PATCH 2/6] mm: Make ondemand_readahead() take a readahead_control struct [ver #2]

2020-09-02 Thread David Howells
Make ondemand_readahead() take a readahead_control struct in preparation for making do_sync_mmap_readahead() pass down an RAC struct. Signed-off-by: David Howells --- mm/readahead.c | 32 ++-- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git

[PATCH 05/13] x86/debug: Remove handle_debug(.user) argument

2020-09-02 Thread Peter Zijlstra
The handle_debug(.user) argument is used to terminate the #DB handler early for the INT1-from-kernel case, since the kernel doesn't use INT1. Remove the argument and handle this explicitly in #DB-from-kernel. Signed-off-by: Peter Zijlstra (Intel) Acked-by: Andy Lutomirski ---

[PATCH v3 3/6] perf tsc: Calculate timestamp with cap_user_time_short

2020-09-02 Thread Leo Yan
The perf mmap'ed buffer contains the flag 'cap_user_time_short' and two extra fields 'time_cycles' and 'time_mask', perf tool needs to know them for handling the counter wrapping case. This patch is to reads out the relevant parameters from the head of the first mmap'ed page and stores into the

Re: [PATCH 2/2] powerpc/vdso32: link vdso64 with linker

2020-09-02 Thread Christophe Leroy
Hi, Le 02/09/2020 à 16:14, Segher Boessenkool a écrit : Hi! On Wed, Sep 02, 2020 at 06:46:45AM +, Christophe Leroy wrote: ld crashes: LD arch/powerpc/kernel/vdso32/vdso32.so.dbg /bin/sh: line 1: 23780 Segmentation fault (core dumped) ppc-linux-ld -EB -m elf32ppc -shared

[PATCH 04/13] x86/debug: Move kprobe_debug_handler() into exc_debug_kernel()

2020-09-02 Thread Peter Zijlstra
Kprobes are on kernel text, and thus only matter for #DB-from-kernel. Kprobes are ordered before the generic notifier, preserve that order. Signed-off-by: Peter Zijlstra (Intel) Acked-by: Masami Hiramatsu Acked-by: Andy Lutomirski --- arch/x86/include/asm/kprobes.h |4

[PATCH 02/13] x86/debug: Allow a single level of #DB recursion

2020-09-02 Thread Peter Zijlstra
From: Andy Lutomirski Trying to clear DR7 around a #DB from usermode malfunctions if we schedule when delivering SIGTRAP. Rather than trying to define a special no-recursion region, just allow a single level of recursion. We do the same thing for NMI, and it hasn't caused any problems yet.

Re: [RFC PATCH 0/7] mm: Make more use of readahead_control

2020-09-02 Thread David Howells
Matthew Wilcox wrote: > He's done it on top of http://git.infradead.org/users/willy/pagecache.git Sorry, yes, I should've mentioned that. > I was hoping he'd include > http://git.infradead.org/users/willy/pagecache.git/commitdiff/c71de787328809026cfabbcc5485cb01caca8646 >

[PATCH v3 0/6] Perf tool: Support TSC for Arm64

2020-09-02 Thread Leo Yan
This patch set is to refactor the changes for the old patch set 'Perf tool: Enable Arm arch timer counter and arm-spe's timestamp' [1]. After reviewed the old patch sets (thanks Wei Li and Al Grant), we think it's right way to consolidate TSC code and extend the TSC implementation to common code

[Re-send][PATCH] gpu/drm: remove drm_modeset_lock protection for drm_error

2020-09-02 Thread Bernard
In function drm_atomic_helper_shutdown, maybe there is no need to protect DRM_ERROR log in DRM_MODESET_LOCK_ALL_BEGIN & DRM_MODESET_LOCK_ALL_END. This change is to make code run a bit fast. Signed-off-by: Bernard Zhao --- drivers/gpu/drm/drm_atomic_helper.c | 4 +--- 1 file changed, 1

Re: [PATCH] mm/memory_hotplug: drain per-cpu pages again during memory offline

2020-09-02 Thread Pavel Tatashin
> > >> But this means that the page is not isolated and so it could be reused > > >> for something else. No? > > > > > > The page is in a movable zone, has zero references, and the section is > > > isolated (i.e. set_pageblock_migratetype(page, MIGRATE_ISOLATE);) is > > > set. The page should be

Re: [PATCH 08/19] xsysace: use bdev_check_media_change

2020-09-02 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn

Re: [PATCH 4/5] Add manpage for fsopen(2) and fsmount(2)

2020-09-02 Thread Michael Kerrisk (man-pages)
Hi David, One further thought... > +++ b/man2/fsopen.2 [...] > +.BR fsopen () > +creates a blank filesystem configuration context within the kernel for the > +filesystem named in the > +.I fsname > +parameter, puts it into creation mode and attaches it to a file descriptor, > +which it then

Re: [PATCH 08/33] ARM: dts: exynos: Add and enable 32 kHz modem clock in Galaxy I9100

2020-09-02 Thread Krzysztof Kozlowski
On Sun, Aug 30, 2020 at 03:51:35PM +0200, Krzysztof Kozlowski wrote: > The PMIC has a 32768 Hz clock used by the modem which is implemented by > driver as a regulator. Add and enable it to be sure modem get's its > signal. > > Signed-off-by: Krzysztof Kozlowski > --- >

Re: [RFC PATCH] tools/x86: add kcpuid tool to show raw CPU features

2020-09-02 Thread Borislav Petkov
On Thu, Aug 27, 2020 at 03:49:03PM +0800, Feng Tang wrote: > output of the tool > -- > > CPUID leafs total: 28 > > cpu family : 6 > model : 13 > stepping: 7 Yeah, this should dump model etc and those numbers should be in hex and

Re: [PATCH V2 2/2] block: move 'q_usage_counter' into front of 'request_queue'

2020-09-02 Thread Christoph Hellwig
On Wed, Sep 02, 2020 at 08:26:43PM +0800, Ming Lei wrote: > The field of 'q_usage_counter' is always fetched in fast path of every > block driver, and move it into front of 'request_queue', so it can be > fetched into 1st cacheline of 'request_queue' instance. Looks good, Reviewed-by: Christoph

Re: [PATCH 1/2] docs/livepatch: Add new compiler considerations doc

2020-09-02 Thread Miroslav Benes
Hi, first, I'm sorry for the late reply. Thanks, Josh, for the reminder. CCing Nicolai. Nicolai, could you take a look at the proposed documentation too, please? You have more up-to-date experience. On Tue, 21 Jul 2020, Joe Lawrence wrote: > +Examples > + > + > +Interprocedural

Re: [PATCH v2] mmc: mmc_spi: Allow the driver to be built when CONFIG_HAS_DMA is unset

2020-09-02 Thread Rich Felker
On Wed, Sep 02, 2020 at 10:31:47AM +0200, Ulf Hansson wrote: > On Tue, 1 Sep 2020 at 17:40, Christoph Hellwig wrote: > > > > On Tue, Sep 01, 2020 at 05:36:17PM +0200, Ulf Hansson wrote: > > > > I still don't think this makes sense, as the dma_mask should always > > > > be non-NULL here. > > > > >

[PATCH 03/13] x86/debug: Sync BTF earlier

2020-09-02 Thread Peter Zijlstra
Move the BTF sync near the DR6 load, as this will be the only common code guaranteed to run on every #DB. Signed-off-by: Peter Zijlstra (Intel) Acked-by: Andy Lutomirski --- arch/x86/kernel/traps.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) ---

Re: [PATCH 07/19] swim3: use bdev_check_media_changed

2020-09-02 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn

[PATCH][next] xsk: Fix null check on error return path

2020-09-02 Thread Gustavo A. R. Silva
Currently, dma_map is being checked, when the right object identifier to be null-checked is dma_map->dma_pages, instead. Fix this by null-checking dma_map->dma_pages. Addresses-Coverity-ID: 1496811 ("Logically dead code") Fixes: 921b68692abb ("xsk: Enable sharing of dma mappings") Signed-off-by:

RE: [PATCH 10/10] powerpc: remove address space overrides using set_fs()

2020-09-02 Thread David Laight
From: Christophe Leroy > Sent: 02 September 2020 15:13 > > > Le 02/09/2020 à 15:51, David Laight a écrit : > > From: Christophe Leroy > >> Sent: 02 September 2020 14:25 > >> Le 02/09/2020 à 15:13, David Laight a écrit : > >>> From: Christoph Hellwig > Sent: 02 September 2020 13:37 > >

Re: [PATCH 07/28] 53c700: improve non-coherent DMA handling

2020-09-02 Thread Helge Deller
Hi Willy, On 01.09.20 18:53, Matthew Wilcox wrote: > On Tue, Sep 01, 2020 at 06:41:12PM +0200, Helge Deller wrote: >>> I still have a zoo of machines running for such testing, including a >>> 715/64 and two 730. >>> I'm going to test this git tree on the 715/64: > > The 715/64 is a 7100LC machine

[PATCH 1/3] clk: imx: Declare clock init functions in header acessible from mach

2020-09-02 Thread Krzysztof Kozlowski
Multiple files from arch/arm/mach-imx/ use clock init functions which are defined in the IMX clock drivers. Declare them in globally accessible header to fix GCC warnings: drivers/clk/imx/clk-imx21.c:122:74: warning: no previous prototype for 'mx21_clocks_init' [-Wmissing-prototypes]

Re: [PATCH 01/33] ARM: dts: exynos: Silence i2c-gpio dtschema warning in Galaxy I9100

2020-09-02 Thread Krzysztof Kozlowski
On Sun, Aug 30, 2020 at 03:51:28PM +0200, Krzysztof Kozlowski wrote: > The name of I2C controller over GPIO lines node ends with '-gpio' which > confuses dtschema: > > /arch/arm/boot/dts/exynos4210-i9100.dt.yaml: /: i2c-gpio: > {'compatible': ['i2c-gpio'], ... 'maxim,over-volt': [[4500]]}}

Re: rework check_disk_change()

2020-09-02 Thread Douglas Gilbert
On 2020-09-02 10:11 a.m., Christoph Hellwig wrote: Hi Jens, this series replaced the not very nice check_disk_change() function with a new bdev_media_changed that avoids having the ->revalidate_disk call at its end. As a result ->revalidate_disk can be removed from a lot of drivers. For

Re: [PATCH 09/10] clk: davinci: Add missing kerneldoc

2020-09-02 Thread David Lechner
On 9/2/20 10:03 AM, Krzysztof Kozlowski wrote: Add missing kerneldoc to fix compile warning: drivers/clk/davinci/da8xx-cfgchip.c:578: warning: Function parameter or member 'dev' not described in 'da8xx_cfgchip_register_usb1_clk48' Signed-off-by: Krzysztof Kozlowski --- Reviewed-by:

Re: [PATCH 1/2] seccomp: don't leak memory when filter install races

2020-09-02 Thread Tycho Andersen
On Wed, Sep 02, 2020 at 11:08:49AM +0200, Christian Brauner wrote: > On Tue, Sep 01, 2020 at 07:40:16PM -0600, Tycho Andersen wrote: > > In seccomp_set_mode_filter() with TSYNC | NEW_LISTENER, we first initialize > > the listener fd, then check to see if we can actually use it later in > >

[PATCH 3/3] clk: imx: Fix and update kerneldoc

2020-09-02 Thread Krzysztof Kozlowski
Fix and add missing kerneldoc to fix compile warnings like: drivers/clk/imx/clk-pfd.c:27: warning: Function parameter or member 'hw' not described in 'clk_pfd' drivers/clk/imx/clk-pllv3.c:53: warning: Function parameter or member 'ref_clock' not described in 'clk_pllv3' Signed-off-by:

Re: [PATCH 10/10] clk: davinci: Simplify with dev_err_probe()

2020-09-02 Thread David Lechner
On 9/2/20 10:03 AM, Krzysztof Kozlowski wrote: Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- Reviewed-by: David Lechner

[PATCH 2/3] ARM: imx: Include global clock header

2020-09-02 Thread Krzysztof Kozlowski
Do not declare in mach-imx functions defined in clock drivers but include the respective header. Signed-off-by: Krzysztof Kozlowski --- arch/arm/mach-imx/common.h | 4 arch/arm/mach-imx/mach-armadillo5x0.c | 1 + arch/arm/mach-imx/mach-bug.c| 1 +

[git pull] epoll fixup

2020-09-02 Thread Al Viro
Fixup for epoll regression; there's a better solution longer term, but this is the least intrusive fix. The following changes since commit 52c479697c9b73f628140dcdfcd39ea302d05482: do_epoll_ctl(): clean the failure exits up a bit (2020-08-22 18:25:52 -0400) are available in the git

[PATCH 01/10] clk: at91: Drop unused at91sam9g45_pcr_layout

2020-09-02 Thread Krzysztof Kozlowski
The at91sam9g45_pcr_layout is not used so drop it to fix build warning: drivers/clk/at91/at91sam9g45.c:49:36: warning: 'at91sam9g45_pcr_layout' defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/clk/at91/at91sam9g45.c | 7 --- 1 file

Re: [PATCH v1] regmap: Add can_sleep configuration option

2020-09-02 Thread Dmitry Osipenko
02.09.2020 17:53, Marek Szyprowski пишет: > Hi Dmitry, > > On 02.09.2020 16:18, Dmitry Osipenko wrote: >> Regmap can't sleep if spinlock is used for the locking protection. >> This patch fixes regression caused by a previous commit that switched >> regmap to use fsleep() and this broke Amlogic

[PATCH 04/10] clk: gpio: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-gpio.c | 16 1 file changed, 4 insertions(+), 12 deletions(-) diff --git

Re: [PATCH 4/4] ARM: dts: exynos: Remove snps,dwc2 compatible in Exynos3250

2020-09-02 Thread Krzysztof Kozlowski
On Sat, Aug 29, 2020 at 07:25:32PM +0200, Krzysztof Kozlowski wrote: > The binding for DesignWare HS OTG USB 2.0 in Samsung SoCs take only one > compatible. This fixes dtbs_check warnings like: > > arch/arm/boot/dts/exynos3250-artik5-eval.dt.yaml: hsotg@1248: > compatible:

Re: general protection fault in snd_ctl_release

2020-09-02 Thread Al Viro
On Wed, Sep 02, 2020 at 05:22:00PM +0200, Takashi Iwai wrote: > Marc, Al, could you guys check this bug? That's racy; the first one should be get_file_rcu() instead of file_count()+get_file(), the second is not needed at all (we have the file pinned down by the caller). See vfs.git#work.epoll

[PATCH 02/10] clk: fixed: Add missing kerneldoc

2020-09-02 Thread Krzysztof Kozlowski
Add missing kerneldoc to fix compile warnings like: drivers/clk/clk-fixed-factor.c:211: warning: Function parameter or member 'node' not described in 'of_fixed_factor_clk_setup' Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-fixed-factor.c | 1 + drivers/clk/clk-fixed-rate.c | 1 +

[PATCH] usb: typec: tcpm: Fix if vbus before cc, hard_reset_count not reset issue

2020-09-02 Thread cy_huang
From: ChiYuan Huang Fix: If vbus event is before cc_event trigger, hard_reset_count won't bt reset for some case. Signed-off-by: ChiYuan Huang --- Below's the flow. _tcpm_pd_vbus_off() -> run_state_machine to change state to SNK_UNATTACHED call tcpm_snk_detach() -> tcpm_snk_detach() ->

[PATCH 03/10] clk: bulk: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/clk-bulk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk-bulk.c

Re: [PATCH] perf/core: Fix hung issue on perf stat command during cpu hotplug

2020-09-02 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 27, 2020 at 12:17:32PM +0530, Kajol Jain escreveu: > Commit 2ed6edd33a21 ("perf: Add cond_resched() to task_function_call()") > added assignment of ret value as -EAGAIN in case function > call to 'smp_call_function_single' fails. > For non-zero ret value, it did > 'ret = !ret ?

Re: [PATCH] power: supply: charger-manager: Fix info message in check_charging_duration()

2020-09-02 Thread Randy Dunlap
On 9/2/20 8:38 AM, Gustavo A. R. Silva wrote: > A few months ago, commit e132fc6bb89b ("power: supply: charger-manager: Make > decisions focussed on battery status") > changed the expression in the if statement from "duration > > desc->discharging_max_duration_ms" > to "duration >

[PATCH 08/10] clk: qcom: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/qcom/apcs-msm8916.c | 9 +++-- drivers/clk/qcom/clk-spmi-pmic-div.c | 10 -- 2 files changed, 7

[PATCH 10/10] clk: davinci: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/clk/davinci/da8xx-cfgchip.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH net v6 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-09-02 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

[PATCH v2] x86/asm: Replace __force_order with memory clobber

2020-09-02 Thread Arvind Sankar
The CRn accessor functions use __force_order as a dummy operand to prevent the compiler from reordering the inline asm. The fact that the asm is volatile should be enough to prevent this already, however older versions of GCC had a bug that could sometimes result in reordering. This was fixed in

[PATCH net v6 2/6] net: marvell: prestera: Add PCI interface support

2020-09-02 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 the device is reset. The driver is

[PATCH] coccinelle: misc: add excluded_middle.cocci script

2020-09-02 Thread Denis Efremov
Check for "!A || A && B" condition. It's equivalent to "!A || B" condition. Signed-off-by: Denis Efremov --- scripts/coccinelle/misc/excluded_middle.cocci | 40 +++ 1 file changed, 40 insertions(+) create mode 100644 scripts/coccinelle/misc/excluded_middle.cocci diff --git

Re: [PATCH 02/19] amiflop: use bdev_check_media_change

2020-09-02 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn

[PATCH 1/4] crypto: caam - Fix kerneldoc

2020-09-02 Thread Krzysztof Kozlowski
Fix kerneldoc warnings: drivers/crypto/caam/caamalg_qi2.c:73: warning: cannot understand function prototype: 'struct caam_ctx ' drivers/crypto/caam/caamalg_qi2.c:2962: warning: cannot understand function prototype: 'struct caam_hash_ctx ' Signed-off-by: Krzysztof Kozlowski ---

Re: [PATCH] x86/special_insn: reverse __force_order logic

2020-09-02 Thread Nadav Amit
> On Sep 2, 2020, at 5:54 AM, pet...@infradead.org wrote: > > On Tue, Sep 01, 2020 at 09:18:57AM -0700, Nadav Amit wrote: > >> Unless I misunderstand the logic, __force_order should also be used by >> rdpkru() and wrpkru() which do not have dependency on __force_order. I >> also did not

[PATCH net v6 3/6] net: marvell: prestera: Add basic devlink support

2020-09-02 Thread Vadym Kochan
Add very basic support for devlink interface: - driver name - fw version - devlink ports Signed-off-by: Vadym Kochan --- PATCH v5: 1) Simplified some error path handling by simple return error code in: - prestera_dl_info_get(...) 2) Remove not-needed err assignment

Re: [PATCH] memory: fsl-corenet-cf: Fix handling of platform_get_irq() error

2020-09-02 Thread Krzysztof Kozlowski
On Thu, Aug 27, 2020 at 09:33:15AM +0200, Krzysztof Kozlowski wrote: > platform_get_irq() returns -ERRNO on error. In such case comparison > to 0 would pass the check. > > Fixes: 54afbec0d57f ("memory: Freescale CoreNet Coherency Fabric error > reporting driver") > Signed-off-by: Krzysztof

[PATCH] power: supply: charger-manager: Fix info message in check_charging_duration()

2020-09-02 Thread Gustavo A. R. Silva
A few months ago, commit e132fc6bb89b ("power: supply: charger-manager: Make decisions focussed on battery status") changed the expression in the if statement from "duration > desc->discharging_max_duration_ms" to "duration > desc->charging_max_duration_ms", but the arguments for dev_info()

Re: [PATCH 06/19] swim: simplify media change handling

2020-09-02 Thread Johannes Thumshirn
And down by one, Reviewed-by: Johannes Thumshirn

Re: [PATCH 05/19] swim: use bdev_check_media_change

2020-09-02 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn > +static int floppy_revalidate(struct gendisk *disk); Completely unrelated to this series but, this is the 3rd floppy driver in the series defining it's own floppy_revalidate() and naming it floppy_revalidate(). This makes grepping and reviewing a

Re: [PATCH] arm64: dts: qcom: sc7180: Add 'sustainable_power' for CPU thermal zones

2020-09-02 Thread Doug Anderson
Hi, On Tue, Sep 1, 2020 at 10:36 PM Rajendra Nayak wrote: > > > > * In terms of the numbers here, I believe that you're claiming that we > > can dissipate 768 mW * 6 + 1202 mW * 2 = ~7 Watts of power. My memory > > of how much power we could dissipate in previous laptops I worked on > > is a

[PATCH net-next RFC v1 2/4] devlink: Add devlink traps under devlink_ports context

2020-09-02 Thread Aya Levin
There are some cases where we would like to trap dropped packets only for a single port on a device without affecting the others. For that purpose trap_mngr was added to devlink_port and corresponding Trap API with devlink_port were added too. Signed-off-by: Aya Levin ---

[PATCH net-next RFC v1 3/4] devlink: Add hierarchy between traps in device level and port level

2020-09-02 Thread Aya Levin
Managing large scale port's traps may be complicated. This patch introduces a shortcut: when setting a trap on a device and this trap is not registered on this device, the action will take place on all related ports that did register this trap. Signed-off-by: Aya Levin --- net/core/devlink.c |

Re: [PATCH RFC 2/2] sysfs: add helper macro for showing simple integer values

2020-09-02 Thread Alex Dewar
On Sun, Aug 30, 2020 at 11:13:53AM +0200, Greg Kroah-Hartman wrote: > On Sun, Aug 30, 2020 at 12:37:17AM +0100, Alex Dewar wrote: > > sysfs attributes are supposed to be only single values, which are > > printed into a buffer of PAGE_SIZE. Accordingly, for many simple > > attributes, sprintf() can

[PATCH net-next RFC v1 4/4] net/mlx5e: Add devlink trap to catch oversize packets

2020-09-02 Thread Aya Levin
Register MTU error trap to allow visibility of oversize packets. Display a naive use of devlink trap in devlink port context. Signed-off-by: Aya Levin --- drivers/net/ethernet/mellanox/mlx5/core/Makefile | 2 +- drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 ++

[PATCH net-next RFC v1 1/4] devlink: Wrap trap related lists and ops in trap_mngr

2020-09-02 Thread Aya Levin
Bundle the trap related lists: trap_list, trap_group_list and trap_policer_list and trap ops like: trap_init, trap_fini, trap_action_set... together in trap_mngr. This will be handy in the coming patches in the set introducing traps in devlink port context. With trap_mngr, code reuse is much

[PATCH net-next RFC v1 0/4] Add devlink traps in devlink port context

2020-09-02 Thread Aya Levin
Implement support for devlink traps on per-port basis. Dropped packets in the RX flow are related to the Ethernet port and thus should be in port context. Traps per device should trap global configuration which can cause drops. On top of that, enabling a trap on a device level should trigger this

Re: [PATCH 2/2] memory: tegra186-emc: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
On Fri, Aug 28, 2020 at 05:37:47PM +0200, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and the error value gets printed. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/memory/tegra/tegra186-emc.c | 10

Re: [PATCH 7/9] sound: line6: convert to use new usb control function...

2020-09-02 Thread Greg Kroah-Hartman
On Wed, Sep 02, 2020 at 04:41:29PM +0200, Takashi Iwai wrote: > On Wed, 02 Sep 2020 13:01:10 +0200, > Greg Kroah-Hartman wrote: > > > > Signed-off-by: Greg Kroah-Hartman > > I guess this and a few others with (x/9) are stale patches, right? Ugh, yes, those were still in my directory, my fault

Re: [PATCH net-next RFC v3 01/14] devlink: Add reload action option to devlink reload command

2020-09-02 Thread Jakub Kicinski
On Wed, 2 Sep 2020 11:46:27 +0200 Jiri Pirko wrote: > >? Do we need such change there too or keep it as is, each action by itself > >and return what was performed ? > > Well, I don't know. User asks for X, X should be performed, not Y or Z. > So perhaps the return value is not needed. > Just

Re: [PATCH 04/19] floppy: use bdev_check_media_change

2020-09-02 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn

Re: linux-next: build warning after merge of the dma-mapping tree

2020-09-02 Thread Christoph Hellwig
Adding Santosh, I'm trying to understand the code that Jim changed for the range dma offsets. Do I miss something or can the whole DMA offset case for keystone only happen when CONFIG_LPAE is enabled? Which means we could ifdef out this section to avoid the warning?

Re: [PATCH RFC 0/2] simple sysfs wrappers for single values

2020-09-02 Thread Alex Dewar
On Sat, Aug 29, 2020 at 06:23:13PM -0700, Joe Perches wrote: > On Sat, 2020-08-29 at 17:28 -0700, Joe Perches wrote: > > On Sun, 2020-08-30 at 00:37 +0100, Alex Dewar wrote: > > > Hi all, > > > > > > I've noticed there seems to have been a fair amount of discussion around > > > the subject of

Re: [PATCH 2/2] iommu: amd: Use cmpxchg_double() when updating 128-bit IRTE

2020-09-02 Thread Joao Martins
On 9/2/20 5:51 AM, Suravee Suthikulpanit wrote: > When using 128-bit interrupt-remapping table entry (IRTE) (a.k.a GA mode), > current driver disables interrupt remapping when it updates the IRTE > so that the upper and lower 64-bit values can be updated safely. > > However, this creates a small

Re: [PATCH 3/9] i2c: bcm2835: Simplify with dev_err_probe()

2020-09-02 Thread Florian Fainelli
On 9/2/2020 8:06 AM, Krzysztof Kozlowski wrote: Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski Acked-by: Florian Fainelli -- Florian

Re: [RFC v4 1/1] selftests/cpuidle: Add support for cpuidle latency measurement

2020-09-02 Thread Artem Bityutskiy
On Wed, 2020-09-02 at 17:15 +0530, Pratik Rajesh Sampat wrote: > Measure cpuidle latencies on wakeup to determine and compare with the > advertsied wakeup latencies for each idle state. It looks like the measurements include more than just C-state wake, they also include the overhead of waking up

Re: [PATCH] KVM: VMX: fix crash cleanup when KVM wasn't used

2020-09-02 Thread Sean Christopherson
On Tue, Sep 01, 2020 at 12:36:40PM +0200, Vitaly Kuznetsov wrote: > Sean Christopherson writes: > > > On Mon, Aug 24, 2020 at 03:45:26PM -0700, Jim Mattson wrote: > >> On Mon, Aug 24, 2020 at 11:57 AM Jim Mattson wrote: > >> > > >> > On Fri, Aug 21, 2020 at 8:40 PM Sean Christopherson > >> >

Re: [PATCH 1/2] iommu: amd: Restore IRTE.RemapEn bit after programming IRTE

2020-09-02 Thread Joao Martins
On 9/2/20 5:51 AM, Suravee Suthikulpanit wrote: > Currently, the RemapEn (valid) bit is accidentally cleared when > programming IRTE w/ guestMode=0. It should be restored to > the prior state. > Probably requires: Fixes: b9fc6b56f478 ("iommu/amd: Implements irq_set_vcpu_affinity() hook to

Re: [Cocci] [PATCH] coccinelle: misc: add excluded_middle.cocci script

2020-09-02 Thread Jim Davis
On Wed, Sep 2, 2020 at 8:19 AM Denis Efremov wrote: > > Check for "!A || A && B" condition. It's equivalent to > "!A || B" condition. > > Signed-off-by: Denis Efremov > --- > scripts/coccinelle/misc/excluded_middle.cocci | 40 +++ > 1 file changed, 40 insertions(+) > create

Re: [PATCH 05/19] swim: use bdev_check_media_change

2020-09-02 Thread Christoph Hellwig
On Wed, Sep 02, 2020 at 03:30:14PM +, Johannes Thumshirn wrote: > Looks good, > Reviewed-by: Johannes Thumshirn > > > +static int floppy_revalidate(struct gendisk *disk); > > Completely unrelated to this series but, this is the 3rd floppy > driver in the series defining it's own

Re: [PATCH v3 -next] memory: omap-gpmc: Fix -Wunused-function warnings

2020-09-02 Thread Krzysztof Kozlowski
On Tue, Sep 01, 2020 at 07:28:32PM +0800, YueHaibing wrote: > If CONFIG_OF is not set, make W=1 warns: > > drivers/memory/omap-gpmc.c:987:12: warning: ‘gpmc_cs_remap’ defined but not > used [-Wunused-function] > static int gpmc_cs_remap(int cs, u32 base) > ^ >

Re: general protection fault in snd_ctl_release

2020-09-02 Thread Takashi Iwai
On Wed, 02 Sep 2020 08:57:22 +0200, syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:b51594df Merge tag 'docs-5.9-3' of git://git.lwn.net/linux > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=172fea1590 > kernel

Re: [PATCH] memory: tegra: Remove GPU from DRM IOMMU group

2020-09-02 Thread Krzysztof Kozlowski
On Tue, Sep 01, 2020 at 05:32:48PM +0200, Thierry Reding wrote: > From: Thierry Reding > > Commit 63a613fdb16c ("memory: tegra: Add gr2d and gr3d to DRM IOMMU > group") added the GPU to the DRM IOMMU group, which doesn't make any > sense. This causes problems when Nouveau tries to attach to the

Re: [PATCH] net: usb: dm9601: Add USB ID of Keenetic Plus DSL

2020-09-02 Thread Kamil Lorenc
W dniu 2020-09-02 00:40, David Miller napisał(a): From: Kamil Lorenc Date: I received an error from Peter Korsgaard's mailserver informing that his email address does not exist. Should I do something with that fact? Probably need a MAINTAINERS update. Is there any other email address by

Re: [RFC PATCH v7 17/23] kernel/entry: Add support for core-wide protection of kernel-mode

2020-09-02 Thread Joel Fernandes
Hi Thomas, On Wed, Sep 02, 2020 at 09:53:29AM +0200, Thomas Gleixner wrote: [...] > >> --- /dev/null > >> +++ b/include/linux/pretend_ht_secure.h > >> @@ -0,0 +1,21 @@ > >> +#ifndef _LINUX_PRETEND_HT_SECURE_H > >> +#define _LINUX_PRETEND_HT_SECURE_H > >> + > >> +#ifdef CONFIG_PRETEND_HT_SECURE >

[PATCH v2] coresight: etm4x: Handle unreachable sink in perf mode

2020-09-02 Thread Suzuki K Poulose
If the specified/hinted sink is not reachable from a subset of the CPUs, we could end up unable to trace the event on those CPUs. This is the best effort we could do until we support 1:1 configurations. Fail gracefully in such cases avoiding a WARN_ON, which can be easily triggered by the user on

[PATCH 6/9] i2c: imx: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/i2c/busses/i2c-imx.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH 1/2] dt-bindings: arm64: add compatible for LX2162A QDS Board

2020-09-02 Thread meenakshi . aggarwal
From: Meenakshi Aggarwal Add support for LX2162A, LX2162A is LX2160A based SoC. Signed-off-by: Meenakshi Aggarwal --- Documentation/devicetree/bindings/arm/fsl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml

[PATCH 3/9] i2c: bcm2835: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/i2c/busses/i2c-bcm2835.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

Re: [PATCH] net: usb: dm9601: Add USB ID of Keenetic Plus DSL

2020-09-02 Thread Kamil Lorenc
W dniu 2020-09-02 00:36, David Miller napisał(a): Applied, thanks. You're welcome.

Re: [PATCH 1/2] memory: brcmstb_dpfe: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
On Fri, Aug 28, 2020 at 05:37:46PM +0200, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and the error value gets printed. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/memory/brcmstb_dpfe.c | 7 ++-

Re: [PATCH 03/19] ataflop: use bdev_check_media_change

2020-09-02 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn

Re: [PATCH 04/10] USB: core: hub.c: use usb_control_msg_send() in a few places

2020-09-02 Thread Greg Kroah-Hartman
On Wed, Sep 02, 2020 at 10:57:01AM -0400, Alan Stern wrote: > On Wed, Sep 02, 2020 at 01:01:06PM +0200, Greg Kroah-Hartman wrote: > > There are a few calls to usb_control_msg() that can be converted to use > > usb_control_msg_send() instead, so do that in order to make the error > > checking a bit

Re: [PATCH 01/19] block: add a bdev_check_media_change helper

2020-09-02 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn

[PATCH 2/9] i2c: xiic: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/i2c/busses/i2c-xiic.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git

[PATCH 3/4] crypto: stm32-hash - Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/crypto/stm32/stm32-hash.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git

Re: [PATCH 10/10] powerpc: remove address space overrides using set_fs()

2020-09-02 Thread Christophe Leroy
Le 02/09/2020 à 14:36, Christoph Hellwig a écrit : On Wed, Sep 02, 2020 at 08:15:12AM +0200, Christophe Leroy wrote: - return 0; - return (size == 0 || size - 1 <= seg.seg - addr); + if (addr >= TASK_SIZE_MAX) + return false; + if (size == 0) +

Re: [PATCH 06/14] block: lift setting the readahead size into the block layer

2020-09-02 Thread Christoph Hellwig
On Wed, Aug 26, 2020 at 06:07:38PM -0400, Mike Snitzer wrote: > On Sun, Jul 26 2020 at 11:03am -0400, > Christoph Hellwig wrote: > > > Drivers shouldn't really mess with the readahead size, as that is a VM > > concept. Instead set it based on the optimal I/O size by lifting the > > algorithm

[PATCH 1/9] i2c: stm32: Simplify with dev_err_probe()

2020-09-02 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/i2c/busses/i2c-stm32.c | 11 --- drivers/i2c/busses/i2c-stm32f4.c | 6 ++ drivers/i2c/busses/i2c-stm32f7.c

Re: [PATCH] mm/memory_hotplug: drain per-cpu pages again during memory offline

2020-09-02 Thread Michal Hocko
On Wed 02-09-20 16:55:05, Vlastimil Babka wrote: > On 9/2/20 4:26 PM, Pavel Tatashin wrote: > > On Wed, Sep 2, 2020 at 10:08 AM Michal Hocko wrote: > >> > >> > > >> > Thread#1 - continue > >> > free_unref_page_commit > >> >migratetype = get_pcppage_migratetype(page); > >> >

[PATCH 2/2] arm64: dts: lx2160a: add device tree for lx2162aqds board

2020-09-02 Thread meenakshi . aggarwal
From: Meenakshi Aggarwal Add device tree support for LX2162AQDS board. LX2162A has same die as of LX2160A with different packaging. Signed-off-by: Ioana Ciornei Signed-off-by: Kuldeep Singh Signed-off-by: Meenakshi Aggarwal --- arch/arm64/boot/dts/freescale/Makefile| 1 +

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

2020-09-02 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

Re: [PATCH][next] xsk: Fix null check on error return path

2020-09-02 Thread Björn Töpel
On 2020-09-02 17:07, Gustavo A. R. Silva wrote: Currently, dma_map is being checked, when the right object identifier to be null-checked is dma_map->dma_pages, instead. Fix this by null-checking dma_map->dma_pages. Addresses-Coverity-ID: 1496811 ("Logically dead code") Fixes: 921b68692abb

Re: [PATCH 4.19 108/125] USB: yurex: Fix bad gfp argument

2020-09-02 Thread Alan Stern
On Wed, Sep 02, 2020 at 02:58:27PM +0200, Pavel Machek wrote: > Hi! > > > The syzbot fuzzer identified a bug in the yurex driver: It passes > > GFP_KERNEL as a memory-allocation flag to usb_submit_urb() at a time > > when its state is TASK_INTERRUPTIBLE, not TASK_RUNNING: > > Yeah, and instead

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