[PATCH] EDAC/al-mc-edac: Slighly simplify code

2020-11-28 Thread Christophe JAILLET
Use 'devm_add_action_or_reset()' instead of open coding it. This makes the error handling code look more consistent. This also save a few LoC. Signed-off-by: Christophe JAILLET --- drivers/edac/al_mc_edac.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git

Re: scheduling while atomic in z3fold

2020-11-28 Thread Mike Galbraith
On Sun, 2020-11-29 at 07:41 +0100, Mike Galbraith wrote: > On Sat, 2020-11-28 at 15:27 +0100, Oleksandr Natalenko wrote: > > > > > > Shouldn't the list manipulation be protected with > > > > local_lock+this_cpu_ptr instead of get_cpu_ptr+spin_lock? > > > > Totally untested: > > Hrm, the thing

[PATCH] media: saa7146: switch from 'pci_' to 'dma_' API

2020-11-28 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'saa7146_pgtable_alloc()' GFP_KERNEL can be used

[PATCH] SCSI: bnx2i: requires MMU

2020-11-28 Thread Randy Dunlap
The SCSI_BNX2_ISCSI kconfig symbol selects CNIC and CNIC selects UIO, which depends on MMU. Since 'select' does not follow dependency chains, add the same MMU dependency to SCSI_BNX2_ISCSI. Quietens this kconfig warning: WARNING: unmet direct dependencies detected for CNIC Depends on [n]:

[PATCH] net: broadcom CNIC: requires MMU

2020-11-28 Thread Randy Dunlap
The CNIC kconfig symbol selects UIO and UIO depends on MMU. Since 'select' does not follow dependency chains, add the same MMU dependency to CNIC. Quietens this kconfig warning: WARNING: unmet direct dependencies detected for UIO Depends on [n]: MMU [=n] Selected by [m]: - CNIC [=m] &&

[PATCH] vdpa/mlx5: Use random MAC for the vdpa net instance

2020-11-28 Thread Eli Cohen
We should not try to use the VF MAC address as that is used by the regular (e.g. mlx5_core) NIC implementation. Instead, use a random generated MAC address. Suggested by: Cindy Lu Fixes: 1a86b377aa21 ("vdpa/mlx5: Add VDPA driver for supported mlx5 devices") Signed-off-by: Eli Cohen ---

Re: scheduling while atomic in z3fold

2020-11-28 Thread Mike Galbraith
On Sat, 2020-11-28 at 15:27 +0100, Oleksandr Natalenko wrote: > > > > Shouldn't the list manipulation be protected with > > > local_lock+this_cpu_ptr instead of get_cpu_ptr+spin_lock? > > Totally untested: Hrm, the thing doesn't seem to care deeply about preemption being disabled, so adding

Re: [PATCH] hwmon: corsair-psu: update supported devices

2020-11-28 Thread Wilken Gottwalt
On Sat, 28 Nov 2020 17:21:40 -0300 Jonas Malaco wrote: > On Sat, Nov 28, 2020 at 7:35 AM Wilken Gottwalt > wrote: > > > > On Sat, 28 Nov 2020 02:37:38 -0300 > > Jonas Malaco wrote: > > > > > On Thu, Nov 26, 2020 at 8:43 AM Wilken Gottwalt > > > wrote: > > > > > > > > Adds support for another

Re: [PATCH RFC v5 00/13] perf pmu-events: Support event aliasing for system PMUs

2020-11-28 Thread kajoljain
On 11/6/20 6:05 PM, John Garry wrote: > Currently event aliasing and metrics for only CPU and uncore PMUs is > supported. In fact, only uncore PMUs aliasing is supported for when the > uncore PMUs are fixed for a CPU, which may not always be the case for > certain architectures. > > This

Re: [PATCH v2 6/8] venus: venc: add handling for VIDIOC_ENCODER_CMD

2020-11-28 Thread Fritz Koenig
On Wed, Nov 11, 2020 at 6:38 AM Stanimir Varbanov wrote: > > From: Dikshita Agarwal > > Add handling for below commands in encoder: > 1. V4L2_ENC_CMD_STOP > 2. V4L2_ENC_CMD_START > > Signed-off-by: Dikshita Agarwal > Signed-off-by: Stanimir Varbanov > --- >

Re: [PATCH v2 5/8] venus: pm_helpers: Check instance state when calculate instance frequency

2020-11-28 Thread Fritz Koenig
On Wed, Nov 11, 2020 at 6:38 AM Stanimir Varbanov wrote: > > Skip calculating instance frequency if it is not in running state. > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/platform/qcom/venus/pm_helpers.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git

Re: [PATCH v2 8/8] venus: helpers: Delete unused stop streaming helper

2020-11-28 Thread Fritz Koenig
On Wed, Nov 11, 2020 at 6:38 AM Stanimir Varbanov wrote: > > After re-design of encoder driver this helper is not needed > anymore. > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/platform/qcom/venus/helpers.c | 43 - > drivers/media/platform/qcom/venus/helpers.h

Re: [PATCH v2 4/8] venus: helpers: Calculate properly compressed buffer size

2020-11-28 Thread Fritz Koenig
On Wed, Nov 11, 2020 at 6:38 AM Stanimir Varbanov wrote: > > For resolutions below 720p the size of the compressed buffer must > be bigger. Correct this by checking the resolution when calculating > buffer size and multiply by four. I'm confused because the commit message doesn't appear to line

Re: [PATCH v2 3/8] venus: hfi_cmds: Allow null buffer address on encoder input

2020-11-28 Thread Fritz Koenig
On Wed, Nov 11, 2020 at 6:38 AM Stanimir Varbanov wrote: > > Allow null buffer address for encoder input buffers. This will > be used to send null input buffers to signal end-of-stream. > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/platform/qcom/venus/hfi_cmds.c | 2 +- > 1 file

[PATCH] venus: venc: Add VIDIOC_TRY_ENCODER_CMD support

2020-11-28 Thread Fritz Koenig
V4L2_ENC_CMD_STOP and V4L2_ENC_CMD_START are already supported. Add a way to query for support. --- drivers/media/platform/qcom/venus/venc.c | 26 1 file changed, 26 insertions(+) diff --git a/drivers/media/platform/qcom/venus/venc.c

Re: [PATCH] exit: fix a race in release_task when flushing the dentry

2020-11-28 Thread Greg Kroah-Hartman
On Sat, Nov 28, 2020 at 11:28:53PM +0800, Wen Yang wrote: > > > 在 2020/11/28 下午10:05, Greg Kroah-Hartman 写道: > > On Sat, Nov 28, 2020 at 09:59:09PM +0800, Wen Yang wrote: > > > > > > > > > 在 2020/11/28 下午4:06, Greg Kroah-Hartman 写道: > > > > On Sat, Nov 28, 2020 at 02:47:22PM +0800, Wen Yang

Re: [PATCH v2 1/8] venus: hfi: Use correct state in unload resources

2020-11-28 Thread Fritz Koenig
On Wed, Nov 11, 2020 at 6:38 AM Stanimir Varbanov wrote: > > INST_RELEASE_RESOURCES state is set but not used, correct this > by enter into INIT state once the unload resources is done. > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/platform/qcom/venus/hfi.c | 2 +- >

Re: [PATCH v2 2/8] venus: helpers: Add a new helper for buffer processing

2020-11-28 Thread Fritz Koenig
On Wed, Nov 11, 2020 at 6:38 AM Stanimir Varbanov wrote: > > The new helper will be used from encoder and decoder drivers > to enqueue buffers for processing by firmware. > > Signed-off-by: Stanimir Varbanov > --- > drivers/media/platform/qcom/venus/helpers.c | 20 >

[tip:master] BUILD SUCCESS c1c38fd953ac77525dc0f302c9f69749ce4832d7

2020-11-28 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git master branch HEAD: c1c38fd953ac77525dc0f302c9f69749ce4832d7 Merge branch 'core/entry' elapsed time: 724m configs tested: 93 configs skipped: 2 The following configs have been built successfully. More configs may be

[PATCH v2] phy: rockchip: set pulldown for strobe line in dts

2020-11-28 Thread Chris Ruehl
This patchset add support to set the strobe line pulldown via dt property 2 files modified: drivers/phy/rockchip/phy-rockchip-emmc.c Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt Signed-off-by: Chris Ruehl --- v2: - Fix issues show with checkpatch --strict - Add patch to update

[PATCH v2 1/2] phy: rockchip: set pulldown for strobe line in dts

2020-11-28 Thread Chris Ruehl
This patch add support to set the internal pulldown via dt property and allow simplify the board design for the trace from emmc-phy to the eMMC chipset. Default to not set the pull-down. This patch was inspired from the 4.4 tree of the Rockchip SDK, where it is enabled unconditional. The patch

[PATCH v2 2/2] devicetree: phy: rockchip-emmc: pulldown property

2020-11-28 Thread Chris Ruehl
Update the documentation and add the bool property enable-strobe-pulldown used to enable the internal pull-down for the strobe line. Signed-off-by: Chris Ruehl --- Documentation/devicetree/bindings/phy/rockchip-emmc-phy.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [PATCH] keys: remove trailing semicolon in macro definition

2020-11-28 Thread Joe Perches
On Sun, 2020-11-29 at 06:45 +0200, Jarkko Sakkinen wrote: > On Fri, Nov 27, 2020 at 11:15:43AM -0800, t...@redhat.com wrote: > > From: Tom Rix > > > > The macro use will already have a semicolon. > > > > Signed-off-by: Tom Rix > > I'm in-between whether this is worth of merging. The commit

Re: [PATCH] scsi: ses: Fix crash caused by kfree an invalid pointer

2020-11-28 Thread Douglas Gilbert
On 2020-11-28 6:27 p.m., James Bottomley wrote: On Sat, 2020-11-28 at 20:23 +0800, Ding Hui wrote: We can get a crash when disconnecting the iSCSI session, the call trace like this: [2a00fb70] kfree at 0830e224 [2a00fba0] ses_intf_remove at 01f200e4

Re: [PATCH] nvmet: Kconfig: Fix spelling mistake "incuding" -> "including"

2020-11-28 Thread Chaitanya Kulkarni
On 11/26/20 14:40, Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in the Kconfig help text. Fix it. > > Signed-off-by: Colin Ian King Looks good. Reviewed-by: Chaitanya Kulkarni

[rcu:rcu/next] BUILD SUCCESS 5ca88db79d8d7d8fa645caa17173592ca22003b2

2020-11-28 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git rcu/next branch HEAD: 5ca88db79d8d7d8fa645caa17173592ca22003b2 torture: Add --kcsan-kmake-arg to torture.sh for KCSAN elapsed time: 722m configs tested: 94 configs skipped: 2 The following configs have been

Re: [PATCH] keys: remove trailing semicolon in macro definition

2020-11-28 Thread Jarkko Sakkinen
On Fri, Nov 27, 2020 at 11:15:43AM -0800, t...@redhat.com wrote: > From: Tom Rix > > The macro use will already have a semicolon. > > Signed-off-by: Tom Rix I'm in-between whether this is worth of merging. The commit message does not help with that decision too much. /Jarkko

Re: [PATCH] mm/memcg: bail out early when !memcg in mem_cgroup_lruvec

2020-11-28 Thread Alex Shi
在 2020/11/28 下午12:02, Andrew Morton 写道: > On Fri, 27 Nov 2020 11:08:35 +0800 Alex Shi > wrote: > >> Sometime, we use NULL memcg in mem_cgroup_lruvec(memcg, pgdat) >> so we could get out early in the situation to avoid useless checking. >> >> Also warning if both parameter are NULL. > > Why

Re: [PATCH 1/5] PCI/DPC: Ignore devices with no AER Capability

2020-11-28 Thread Kuppuswamy, Sathyanarayanan
On 11/28/20 3:25 PM, Bjorn Helgaas wrote: On Sat, Nov 28, 2020 at 01:56:23PM -0800, Kuppuswamy, Sathyanarayanan wrote: On 11/28/20 1:53 PM, Bjorn Helgaas wrote: On Sat, Nov 28, 2020 at 01:49:46PM -0800, Kuppuswamy, Sathyanarayanan wrote: On 11/28/20 12:24 PM, Bjorn Helgaas wrote: On Wed,

Re: [PATCH AUTOSEL 5.9 22/33] vhost scsi: add lun parser helper

2020-11-28 Thread Sasha Levin
On Wed, Nov 25, 2020 at 07:08:54PM +0100, Paolo Bonzini wrote: On 25/11/20 19:01, Sasha Levin wrote: On Wed, Nov 25, 2020 at 06:48:21PM +0100, Paolo Bonzini wrote: On 25/11/20 16:35, Sasha Levin wrote: From: Mike Christie [ Upstream commit 18f1becb6948cd411fd01968a0a54af63732e73c ] Move

Re: [PATCH 6/8] lazy tlb: shoot lazies, a non-refcounting lazy tlb option

2020-11-28 Thread Andy Lutomirski
On Sat, Nov 28, 2020 at 8:02 AM Nicholas Piggin wrote: > > On big systems, the mm refcount can become highly contented when doing > a lot of context switching with threaded applications (particularly > switching between the idle thread and an application thread). > > Abandoning lazy tlb slows

mapping.c:undefined reference to `phys_to_dma'

2020-11-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: aae5ab854e38151e69f261dbf0e3b7e396403178 commit: 5ceda74093a5c1c3f42a02b894df031f3bbc9af1 dma-direct: rename and cleanup __phys_to_dma date: 3 months ago config: mips-randconfig-r031-20201129 (attached as

Re: [PATCH 0/9] keys: Miscellaneous fixes

2020-11-28 Thread Jarkko Sakkinen
On Fri, Nov 27, 2020 at 04:45:24PM +, David Howells wrote: > > Hi Jarkko, > > I've collected together a bunch of minor keyrings fixes, but I'm not sure > there's anything that can't wait for the next merge window. > > The patches can be found on the following branch: > > >

Re: [PATCH v3] char: tpm: add i2c driver for cr50

2020-11-28 Thread Jarkko Sakkinen
On Fri, Nov 27, 2020 at 01:01:09PM +0200, Adrian Ratiu wrote: > From: "dlau...@chromium.org" > > Add TPM 2.0 compatible I2C interface for chips with cr50 firmware. > > The firmware running on the currently supported H1 MCU requires a > special driver to handle its specific protocol, and this

Re: [PATCH 2/2] tools/memory-model: Fix typo in klitmus7 compatibility table

2020-11-28 Thread Paul E. McKenney
On Sat, Nov 28, 2020 at 03:01:49PM +0900, Akira Yokosawa wrote: > >From 4f577823fa60e14ae58caa2d3c0b2ced64e6eb43 Mon Sep 17 00:00:00 2001 > From: Akira Yokosawa > Date: Sat, 28 Nov 2020 14:32:15 +0900 > Subject: [PATCH 2/2] tools/memory-model: Fix typo in klitmus7 compatibility > table > >

Re: [PATCH v2] char: tpm: add i2c driver for cr50

2020-11-28 Thread Jarkko Sakkinen
On Thu, Nov 26, 2020 at 03:19:24AM -0300, Ezequiel Garcia wrote: > On Thu, 2020-11-26 at 05:30 +0200, Jarkko Sakkinen wrote: > > On Tue, 2020-11-24 at 10:14 -0300, Ezequiel Garcia wrote: > > > Hi Jarkko, > > > > > > Thanks for your review. > > > > > > On Tue, 2020-11-24 at 00:06 +0200, Jarkko

Re: [PATCH] x86/signals: Fix save/restore signal stack to correctly support sigset_t

2020-11-28 Thread Al Viro
On Sat, Nov 28, 2020 at 06:19:31PM -0800, Walt Drummond wrote: > Thanks Al. I want to understand the nuance, so please bear with me as I > reason this out. The cast in stone nature of this is due to both the need > to keep userspace and kernel space in sync (ie, you'd have to coordinate > libc

Re: [PATCH] tpm_tis: Disable interrupts on ThinkPad T490s

2020-11-28 Thread Jarkko Sakkinen
On Tue, Nov 24, 2020 at 10:45:01PM +0100, Hans de Goede wrote: > Hi, > > On 11/24/20 6:52 PM, Jerry Snitselaar wrote: > > > > Jarkko Sakkinen @ 2020-11-23 20:26 MST: > > > >> On Wed, Nov 18, 2020 at 11:36:20PM -0700, Jerry Snitselaar wrote: > >>> > >>> Matthew Garrett @ 2020-10-15 15:39 MST: >

Re: [PATCH] tpm_tis: Disable interrupts on ThinkPad T490s

2020-11-28 Thread Jarkko Sakkinen
On Tue, Nov 24, 2020 at 10:10:21AM -0800, James Bottomley wrote: > On Tue, 2020-11-24 at 10:52 -0700, Jerry Snitselaar wrote: > > Before diving further into that though, does anyone else have an > > opinion on ripping out the irq code, and just using polling? We've > > been only polling since 2015

Re: [PATCH] tpm_tis: Disable interrupts on ThinkPad T490s

2020-11-28 Thread Jarkko Sakkinen
On Tue, Nov 24, 2020 at 10:52:56AM -0700, Jerry Snitselaar wrote: > > Jarkko Sakkinen @ 2020-11-23 20:26 MST: > > > On Wed, Nov 18, 2020 at 11:36:20PM -0700, Jerry Snitselaar wrote: > >> > >> Matthew Garrett @ 2020-10-15 15:39 MST: > >> > >> > On Thu, Oct 15, 2020 at 2:44 PM Jerry Snitselaar

[PATCHv3] media: vb2: always set buffer cache sync hints

2020-11-28 Thread Sergey Senozhatsky
We need to always set ->need_cache_sync_on_prepare and ->need_cache_sync_on_finish when we initialize vb2 buffer. Currently these flags are set/adjusted only in V4L2's vb2_queue_or_prepare_buf(), which means that for the code paths that don't use V4L2 vb2 will always tell videobuf2 core to skip

Re: [PATCH v2 3/4] input: touchscreen: usbtouchscreen: Remove unused variable 'ret'

2020-11-28 Thread Dmitry Torokhov
Hi Lee, On Thu, Nov 26, 2020 at 01:36:06PM +, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/input/touchscreen/usbtouchscreen.c: In function ‘nexio_read_data’: > drivers/input/touchscreen/usbtouchscreen.c:1052:50: warning: variable ‘ret’ > set but not used

Re: [PATCH v2 2/4] input: touchscreen: melfas_mip4: Remove a bunch of unused variables

2020-11-28 Thread Dmitry Torokhov
Hi Lee, On Thu, Nov 26, 2020 at 01:36:05PM +, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/input/touchscreen/melfas_mip4.c: In function ‘mip4_report_touch’: > drivers/input/touchscreen/melfas_mip4.c:474:5: warning: variable ‘size’ set > but not used

Re: [PATCH] x86/signals: Fix save/restore signal stack to correctly support sigset_t

2020-11-28 Thread Walt Drummond
(Sorry, resending as Gmail decided to ignore "Plaintext mode") Thanks Al. I want to understand the nuance, so please bear with me as I reason this out. The cast in stone nature of this is due to both the need to keep userspace and kernel space in sync (ie, you'd have to coordinate libc and

From Mrs Marie Smith

2020-11-28 Thread Mrs Marie Smith
Hello, With Due Respect, My name is Mrs Marie Smith, I am an Canadian, was married to Late Dr. IDRISU Smith , We were married for 32 years without a child. My late husband was a businessman and Gold merchant but he was poisoned by his business partners. And Recently, My Doctor told me that I

[RFC PATCH] blk-iocost: Optimize the ioc_refreash_vrate() function

2020-11-28 Thread Baolin Wang
The ioc_refreash_vrate() will only be called in ioc_timer_fn() after starting a new period or stopping the period. So when starting a new period, the variable 'pleft' in ioc_refreash_vrate() is always the period's time, which means if the abs(ioc->vtime_err) is less than the period's time, the

Re: [PATCH v12 12/17] s390/vfio-ap: allow hot plug/unplug of AP resources using mdev device

2020-11-28 Thread Halil Pasic
On Tue, 24 Nov 2020 16:40:11 -0500 Tony Krowiak wrote: > Let's hot plug/unplug adapters, domains and control domains assigned to or > unassigned from an AP matrix mdev device while it is in use by a guest per > the following rules: > > * Assign an adapter to mdev's matrix: > > The adapter

Re: [PATCH v2 bpf-next 00/13] Atomics for eBPF

2020-11-28 Thread Alexei Starovoitov
On Fri, Nov 27, 2020 at 09:53:05PM -0800, Yonghong Song wrote: > > > On 11/27/20 9:57 AM, Brendan Jackman wrote: > > Status of the patches > > = > > > > Thanks for the reviews! Differences from v1->v2 [1]: > > > > * Fixed mistakes in the netronome driver > > > > * Addd

Re: [RESEND PATCH 17/19] mmc: sunxi: add support for A100 mmc controller

2020-11-28 Thread André Przywara
On 28/11/2020 19:56, André Przywara wrote: > On 10/11/2020 06:46, Frank Lee wrote: Hi, one more thing below ... >> From: Yangtao Li >> >> This patch adds support for A100 MMC controller, which use word address >> for internal dma. >> >> Signed-off-by: Yangtao Li >> --- >>

Re: [PATCH v2 bpf-next 11/13] bpf: Add bitwise atomic instructions

2020-11-28 Thread Alexei Starovoitov
On Fri, Nov 27, 2020 at 09:39:10PM -0800, Yonghong Song wrote: > > > On 11/27/20 9:57 AM, Brendan Jackman wrote: > > This adds instructions for > > > > atomic[64]_[fetch_]and > > atomic[64]_[fetch_]or > > atomic[64]_[fetch_]xor > > > > All these operations are isomorphic enough to implement

Re: [PATCH v2 bpf-next 10/13] bpf: Add instructions for atomic[64]_[fetch_]sub

2020-11-28 Thread Alexei Starovoitov
On Fri, Nov 27, 2020 at 09:35:07PM -0800, Yonghong Song wrote: > > > On 11/27/20 9:57 AM, Brendan Jackman wrote: > > Including only interpreter and x86 JIT support. > > > > x86 doesn't provide an atomic exchange-and-subtract instruction that > > could be used for BPF_SUB | BPF_FETCH, however we

Re: [PATCH v2 bpf-next 08/13] bpf: Add instructions for atomic_[cmp]xchg

2020-11-28 Thread Alexei Starovoitov
On Fri, Nov 27, 2020 at 05:57:33PM +, Brendan Jackman wrote: > > /* atomic op type fields (stored in immediate) */ > -#define BPF_FETCH0x01/* fetch previous value into src reg */ > +#define BPF_XCHG (0xe0 | BPF_FETCH) /* atomic exchange */ > +#define BPF_CMPXCHG (0xf0 |

Re: [PATCH] media: solo6x10: switch from 'pci_' to 'dma_' API

2020-11-28 Thread Ismael Luceno
On 27/Nov/2020 21:34, Christophe JAILLET wrote: > The wrappers in include/linux/pci-dma-compat.h should go away. > > The patch has been generated with the coccinelle script below and has been > hand modified to replace GFP_ with a correct flag. > It has been compile tested. > > When memory is

Re: [PATCH v12 11/17] s390/vfio-ap: allow assignment of unavailable AP queues to mdev device

2020-11-28 Thread Halil Pasic
On Tue, 24 Nov 2020 16:40:10 -0500 Tony Krowiak wrote: > The current implementation does not allow assignment of an AP adapter or > domain to an mdev device if each APQN resulting from the assignment > does not reference an AP queue device that is bound to the vfio_ap device > driver. This patch

Re: [PATCH v2 bpf-next 01/13] bpf: x86: Factor out emission of ModR/M for *(reg + off)

2020-11-28 Thread Alexei Starovoitov
On Fri, Nov 27, 2020 at 05:57:26PM +, Brendan Jackman wrote: > +/* Emit the ModR/M byte for addressing *(r1 + off) and r2 */ > +static void emit_modrm_dstoff(u8 **pprog, u32 r1, u32 r2, int off) same concern as in the another patch. If you could avoid intel's puzzling names like above it will

drivers/net/dsa/ocelot/seville_vsc9953.c:1107:34: warning: unused variable 'seville_of_match'

2020-11-28 Thread kernel test robot
Hi Vladimir, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 45e885c439e825c19f3a51e46ef8210984bc0a9c commit: d60bc62de4ae068ed4b215c24cdfdd5035aa986e net: dsa: seville: build as separate module date: 2 months

Re: [PATCH v2 bpf-next 02/13] bpf: x86: Factor out emission of REX byte

2020-11-28 Thread Alexei Starovoitov
On Fri, Nov 27, 2020 at 05:57:27PM +, Brendan Jackman wrote: > The JIT case for encoding atomic ops is about to get more > complicated. In order to make the review & resulting code easier, > let's factor out some shared helpers. > > Signed-off-by: Brendan Jackman > --- >

Re: [PATCH v12 10/17] s390/vfio-ap: initialize the guest apcb

2020-11-28 Thread Halil Pasic
On Tue, 24 Nov 2020 16:40:09 -0500 Tony Krowiak wrote: > The APCB is a control block containing the masks that specify the adapters, > domains and control domains to which a KVM guest is granted access. When > the vfio_ap device driver is notified that the KVM pointer has been set, > the guest's

Re: [PATCH bpf-next 1/2] bpf: Add a bpf_kallsyms_lookup helper

2020-11-28 Thread Alexei Starovoitov
On Thu, Nov 26, 2020 at 05:57:47PM +0100, Florent Revest wrote: > This helper exposes the kallsyms_lookup function to eBPF tracing > programs. This can be used to retrieve the name of the symbol at an > address. For example, when hooking into nf_register_net_hook, one can > audit the name of the

[RFC PATCH 11/13] fs/userfaultfd: complete write asynchronously

2020-11-28 Thread Nadav Amit
From: Nadav Amit Userfaultfd writes can now be used for copy/zeroing. When using iouring with userfaultfd, performing the copying/zeroing on the faulting thread instead of the handler/iouring thread has several advantages: (1) The data of the faulting thread will be available on the local

[RFC PATCH 10/13] fs/userfaultfd: add write_iter() interface

2020-11-28 Thread Nadav Amit
From: Nadav Amit In order to use userfaultfd with io-uring, there are two options for extensions: support userfaultfd ioctls or provide similar functionality through the "write" interface. The latter approach seems more compelling as it does not require io-uring changes, and keeps all the logic

[RFC PATCH 09/13] fs/userfaultfd: use iov_iter for copy/zero

2020-11-28 Thread Nadav Amit
From: Nadav Amit Use iov_iter for copy and zero ioctls. This is done in preparation to support a write_iter() interface that would provide similar services as UFFDIO_COPY/ZERO. In the case of UFFDIO_ZERO, the iov_iter is not really used for any purpose other than providing the length of the

[RFC PATCH 08/13] fs/userfaultfd: complete reads asynchronously

2020-11-28 Thread Nadav Amit
From: Nadav Amit Complete reads asynchronously to allow io_uring to complete reads asynchronously. Reads, which report page-faults and events, can only be performed asynchronously if the read is performed into a kernel buffer, and therefore guarantee that no page-fault would occur during the

[RFC PATCH 13/13] selftests/vm/userfaultfd: iouring and polling tests

2020-11-28 Thread Nadav Amit
From: Nadav Amit Add tests to check the use of userfaultfd with iouring, "write" interface of userfaultfd and with the "poll" feature of userfaultfd. Enabling the tests is done through new test "modifiers": "poll", "write" "iouring" that are added to the test name after colon. The "shmem" test

[RFC PATCH 07/13] fs/userfaultfd: support read_iter to use io_uring

2020-11-28 Thread Nadav Amit
From: Nadav Amit iouring with userfaultfd cannot currently be used fixed buffers since userfaultfd does not provide read_iter(). This is required to allow asynchronous (queued) reads from userfaultfd. To support async-reads of userfaultfd provide read_iter() instead of read(). Cc: Jens Axboe

[RFC PATCH 06/13] iov_iter: support atomic copy_page_from_iter_iovec()

2020-11-28 Thread Nadav Amit
From: Nadav Amit copy_page_from_iter_iovec() cannot be used when preemption is enabled. Change copy_page_from_iter_iovec() into __copy_page_from_iter_iovec() with an additional parameter that says whether the caller runs in atomic context. When __copy_page_from_iter_iovec() is used in an atomic

[RFC PATCH 05/13] fs/userfaultfd: introduce UFFD_FEATURE_POLL

2020-11-28 Thread Nadav Amit
From: Nadav Amit Add a feature UFFD_FEATURE_POLL that makes the faulting thread spin while waiting for the page-fault to be handled. Users of this feature should be wise by setting the page-fault handling thread on another physical CPU and to potentially ensure that there are available cores to

[RFC PATCH 12/13] fs/userfaultfd: kmem-cache for wait-queue objects

2020-11-28 Thread Nadav Amit
From: Nadav Amit Allocating work-queue objects on the stack has usually negative performance side-effects. First, it is hard to ensure alignment to cache-lines without increasing the stack size. Second, it might cause false sharing. Third, it is more likely to encounter TLB misses as objects are

[RFC PATCH 01/13] fs/userfaultfd: fix wrong error code on WP & !VM_MAYWRITE

2020-11-28 Thread Nadav Amit
From: Nadav Amit It is possible to get an EINVAL error instead of EPERM if the following test vm_flags have VM_UFFD_WP but do not have VM_MAYWRITE, as "ret" is overwritten since commit cab350afcbc9 ("userfaultfd: hugetlbfs: allow registration of ranges containing huge pages"). Fix it. Cc: Mike

[RFC PATCH 03/13] selftests/vm/userfaultfd: wake after copy failure

2020-11-28 Thread Nadav Amit
From: Nadav Amit When userfaultfd copy-ioctl fails since the PTE already exists, an -EEXIST error is returned and the faulting thread is not woken. The current userfaultfd test does not wake the faulting thread in such case. The assumption is presumably that another thread set the PTE through

[RFC PATCH 04/13] fs/userfaultfd: simplify locks in userfaultfd_ctx_read

2020-11-28 Thread Nadav Amit
From: Nadav Amit Small refactoring to reduce the number of locations in which locks are released in userfaultfd_ctx_read(), as this makes the understanding of the code and its changes harder. No functional change intended. Cc: Jens Axboe Cc: Andrea Arcangeli Cc: Peter Xu Cc: Alexander Viro

[RFC PATCH 00/13] fs/userfaultfd: support iouring and polling

2020-11-28 Thread Nadav Amit
From: Nadav Amit While the overhead of userfaultfd is usually reasonable, this overhead can still be prohibitive for low-latency backing storage, such as RDMA, persistent memory or in-memory compression. In such cases the overhead of scheduling and entering/exiting the kernel becomes dominant.

Re: [PATCH v12 09/17] s390/vfio-ap: sysfs attribute to display the guest's matrix

2020-11-28 Thread Halil Pasic
On Tue, 24 Nov 2020 16:40:08 -0500 Tony Krowiak wrote: > The matrix of adapters and domains configured in a guest's APCB may > differ from the matrix of adapters and domains assigned to the matrix mdev, > so this patch introduces a sysfs attribute to display the matrix of > adapters and domains

[RFC PATCH 02/13] fs/userfaultfd: fix wrong file usage with iouring

2020-11-28 Thread Nadav Amit
From: Nadav Amit Using io-uring with userfaultfd for reads can lead upon a fork event to the installation of the userfaultfd file descriptor on the worker kernel thread instead of the process that initiated the read. io-uring assumes that no new file descriptors are installed during read. As a

Re: [PATCH v12 08/17] s390/vfio-ap: introduce shadow APCB

2020-11-28 Thread Halil Pasic
On Tue, 24 Nov 2020 16:40:07 -0500 Tony Krowiak wrote: > The APCB is a field within the CRYCB that provides the AP configuration > to a KVM guest. Let's introduce a shadow copy of the KVM guest's APCB and > maintain it for the lifespan of the guest. > > Signed-off-by: Tony Krowiak >

Re: [PATCH 1/8] lazy tlb: introduce exit_lazy_tlb

2020-11-28 Thread Andy Lutomirski
On Sat, Nov 28, 2020 at 8:01 AM Nicholas Piggin wrote: > > This is called at points where a lazy mm is switched away or made not > lazy (by its owner switching back). > > Signed-off-by: Nicholas Piggin > --- > arch/arm/mach-rpc/ecard.c| 1 + > arch/powerpc/mm/book3s64/radix_tlb.c |

Re: [PATCH 5/8] lazy tlb: allow lazy tlb mm switching to be configurable

2020-11-28 Thread Andy Lutomirski
On Sat, Nov 28, 2020 at 8:02 AM Nicholas Piggin wrote: > > NOMMU systems could easily go without this and save a bit of code > and the refcount atomics, because their mm switch is a no-op. I > haven't flipped them over because haven't audited all arch code to > convert over to using the _lazy_tlb

Re: [GIT PULL] RISC-V Fixes for 5.10-rc6

2020-11-28 Thread pr-tracker-bot
The pull request you sent on Sat, 28 Nov 2020 15:00:47 -0800 (PST): > git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > tags/riscv-for-linus-5.10-rc6 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/aae5ab854e38151e69f261dbf0e3b7e396403178 Thank you! --

mapping.c:undefined reference to `dma_to_phys'

2020-11-28 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 45e885c439e825c19f3a51e46ef8210984bc0a9c commit: 7bc5c428a660d4d1bc95ba54bf4cb6bccf8c3029 dma-direct: remove __dma_to_phys date: 3 months ago config: mips-randconfig-r031-20201129 (attached as .config)

Re: Lockdep warning on io_file_data_ref_zero() with 5.10-rc5

2020-11-28 Thread Nadav Amit
> On Nov 28, 2020, at 4:13 PM, Pavel Begunkov wrote: > > On 28/11/2020 23:59, Nadav Amit wrote: >> Hello Pavel, >> >> I got the following lockdep splat while rebasing my work on 5.10-rc5 on the >> kernel (based on 5.10-rc5+). >> >> I did not actually confirm that the problem is triggered

Re: Lockdep warning on io_file_data_ref_zero() with 5.10-rc5

2020-11-28 Thread Pavel Begunkov
On 28/11/2020 23:59, Nadav Amit wrote: > Hello Pavel, > > I got the following lockdep splat while rebasing my work on 5.10-rc5 on the > kernel (based on 5.10-rc5+). > > I did not actually confirm that the problem is triggered without my changes, > as my iouring workload requires some kernel

[BISECTED REGRESSION] Broken USB/GPIO on OMAP1 OSK

2020-11-28 Thread Aaro Koskinen
Hi, I tried to upgrade my OMAP1 OSK board to v5.9, but the rootfs cannot be accessed anymore due to broken USB. It fails to probe with the following logs: [9.219940] ohci ohci: cannot find GPIO chip i2c-tps65010, deferring [9.250366] ohci ohci: cannot find GPIO chip i2c-tps65010,

[PATCH Xilinx Alveo 4/8] fpga: xrt: core infrastructure for xrt-lib module

2020-11-28 Thread Sonal Santan
From: Sonal Santan Add xrt-lib kernel module infrastructrure code which defines APIs for working with device nodes, iteration and lookup of platform devices, common interfaces for platform devices, plumbing of function call and ioctls between platform devices and parent partitions.

[PATCH Xilinx Alveo 8/8] fpga: xrt: Kconfig and Makefile updates for XRT drivers

2020-11-28 Thread Sonal Santan
From: Sonal Santan Update fpga Kconfig/Makefile and add Kconfig/Makefile for new drivers. Signed-off-by: Sonal Santan --- drivers/fpga/Kconfig | 2 ++ drivers/fpga/Makefile| 3 +++ drivers/fpga/alveo/Kconfig | 7 ++ drivers/fpga/alveo/lib/Kconfig | 11

[PATCH Xilinx Alveo 7/8] fpga: xrt: Alveo management physical function driver

2020-11-28 Thread Sonal Santan
From: Sonal Santan Add management physical function driver core. The driver attaches to management physical function of Alveo devices. It instantiates the root driver and one or more partition drivers which in turn instantiate platform drivers. The instantiation of partition and platform drivers

[PATCH Xilinx Alveo 6/8] fpga: xrt: header file for platform and parent drivers

2020-11-28 Thread Sonal Santan
From: Sonal Santan Add private header files for platform and parent drivers. Each header file defines ioctls supported by the platform or parent driver. The header files also define core data structures for sending and receiving events by platform and parent drivers. Signed-off-by: Sonal Santan

[PATCH Xilinx Alveo 3/8] fpga: xrt: infrastructure support for xmgmt driver

2020-11-28 Thread Sonal Santan
From: Sonal Santan Add infrastructure code for XRT management physical function driver. This provides support for enumerating and extracting sections from xclbin files, interacting with device tree nodes found in xclbin and working with Alveo partitions. Signed-off-by: Sonal Santan ---

[PATCH Xilinx Alveo 1/8] Documentation: fpga: Add a document describing Alveo XRT drivers

2020-11-28 Thread Sonal Santan
From: Sonal Santan Describe Alveo XRT driver architecture and provide basic overview of Xilinx Alveo platform. Signed-off-by: Sonal Santan --- Documentation/fpga/index.rst | 1 + Documentation/fpga/xrt.rst | 588 +++ 2 files changed, 589 insertions(+)

[PATCH Xilinx Alveo 2/8] fpga: xrt: Add UAPI header files

2020-11-28 Thread Sonal Santan
From: Sonal Santan Add XRT UAPI header files which describe flash layout, XRT mailbox protocol, xclBin/axlf FPGA image container format and XRT management physical function driver ioctl interfaces. flash_xrt_data.h: Layout used by XRT to store private data on flash. mailbox_proto.h: Mailbox

[PATCH Xilinx Alveo 0/8] Xilinx Alveo/XRT patch overview

2020-11-28 Thread Sonal Santan
Hello, This patch series adds management physical function driver for Xilinx Alveo PCIe accelerator cards, https://www.xilinx.com/products/boards-and-kits/alveo.html This driver is part of Xilinx Runtime (XRT) open source stack. The patch depends on the "PATCH Xilinx Alveo libfdt prep" which was

Lockdep warning on io_file_data_ref_zero() with 5.10-rc5

2020-11-28 Thread Nadav Amit
Hello Pavel, I got the following lockdep splat while rebasing my work on 5.10-rc5 on the kernel (based on 5.10-rc5+). I did not actually confirm that the problem is triggered without my changes, as my iouring workload requires some kernel changes (not iouring changes), yet IMHO it seems pretty

[PATCH Xilinx Alveo libfdt prep 0/1] Expose libfdt for use by Alveo/XRT

2020-11-28 Thread Sonal Santan
Hello, This patch series adds support for exporting limited set of libfdt symbols from Linux kernel. It enables drivers and other kernel modules to use libfdt for working with device trees. This may be used by platform vendors to describe HW features inside a PCIe device to its driver in a data

[PATCH Xilinx Alveo libfdt prep 1/1] Export subset of libfdt symbols for use by other drivers.

2020-11-28 Thread Sonal Santan
From: Sonal Santan Some drivers may want to use device tree as metadata format to discover HW subsystems behind PCIe BAR. This is particularly useful for PCIe FPGA devices. Signed-off-by: Sonal Santan --- lib/fdt.c| 6 ++ lib/fdt_empty_tree.c | 3 +++ lib/fdt_ro.c |

Re: [GIT PULL] USB/PHY driver fixes for 5.10-rc6

2020-11-28 Thread Linus Torvalds
On Sat, Nov 28, 2020 at 2:07 PM Randy Dunlap wrote: > > Could it just be a vger issue? vger has been acting ill today... Possible. pr-tracker-bot obviously is back, it just had a very long delay. And yes, the delay might have been due to it not seeing the original pull requests due to vger

Re: [PATCH] Staging: android: ashmem: Fixed a coding style issue.

2020-11-28 Thread kernel test robot
Hi Vishawanath, Thank you for the patch! Yet something to improve: [auto build test ERROR on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Vishawanath-Jadhav/Staging-android-ashmem-Fixed-a-coding-style-issue/20201129-060817 base:

[PATCH] thermal: Constify static attribute_group structs

2020-11-28 Thread Rikard Falkeborn
The only usage of these structs is to assign their address to the thermal_zone_attribute_groups array, which consists of pointers to const, so make them const to allow the compiler to put them in read-only memory. Signed-off-by: Rikard Falkeborn --- drivers/thermal/thermal_sysfs.c | 6 +++--- 1

Re: [PATCH] PCI: Add pci reset quirk for Huawei Intelligent NIC virtual function

2020-11-28 Thread Bjorn Helgaas
[+cc Alex] On Sat, Nov 28, 2020 at 02:18:25PM +0800, Chiqijun wrote: > When multiple VFs do FLR at the same time, the firmware is > processed serially, resulting in some VF FLRs being delayed more > than 100ms, when the virtual machine restarts and the device > driver is loaded, the firmware is

Re: [PATCH] scsi: ses: Fix crash caused by kfree an invalid pointer

2020-11-28 Thread James Bottomley
On Sat, 2020-11-28 at 20:23 +0800, Ding Hui wrote: > We can get a crash when disconnecting the iSCSI session, > the call trace like this: > > [2a00fb70] kfree at 0830e224 > [2a00fba0] ses_intf_remove at 01f200e4 > [2a00fbd0] device_del at

Re: [PATCH 1/5] PCI/DPC: Ignore devices with no AER Capability

2020-11-28 Thread Bjorn Helgaas
On Sat, Nov 28, 2020 at 01:56:23PM -0800, Kuppuswamy, Sathyanarayanan wrote: > On 11/28/20 1:53 PM, Bjorn Helgaas wrote: > > On Sat, Nov 28, 2020 at 01:49:46PM -0800, Kuppuswamy, Sathyanarayanan wrote: > > > On 11/28/20 12:24 PM, Bjorn Helgaas wrote: > > > > On Wed, Nov 25, 2020 at 06:01:57PM

Hey dear

2020-11-28 Thread samera ali
Hey dear Nice to meet you, Am Miss samera I found your email here in google search and I picked interest to contact you. I've something very important which I would like to discuss with you and I would appreciate if you respond back to me through my email address as to tell you more about me with

  1   2   3   4   5   >