[PATCH v2 2/6] drm/msm: Refactor complete_commit() to look more the helpers

2018-03-28 Thread Sean Paul
Factor out the commit_tail() portions of complete_commit() into a separate function to facilitate moving to the atomic helpers in future patches. Changes in v2: - None Cc: Jeykumar Sankaran Signed-off-by: Sean Paul ---

[PATCH v2 4/6] drm/msm: Issue queued events when disabling crtc

2018-03-28 Thread Sean Paul
Ensure that any queued events are issued when disabling the crtc. This avoids timeouts when we come back and wait for dependencies (like the previous frame's flip_done). Changes in v2: - None Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c | 9

[PATCH v2 6/6] drm/msm: Switch to atomic_helper_commit()

2018-03-28 Thread Sean Paul
Now that all of the msm-specific goo is tucked safely away we can switch over to using the atomic helper commit directly. \o/ Changes in v2: - None Cc: Abhinav Kumar Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/msm_atomic.c | 120

Re: [PATCH v3 1/4] dt-bindings: mfd: Add Gateworks System Controller bindings

2018-03-28 Thread Tim Harvey
On Wed, Mar 28, 2018 at 9:24 AM, Guenter Roeck wrote: > On Wed, Mar 28, 2018 at 08:14:00AM -0700, Tim Harvey wrote: >> This patch adds documentation of device-tree bindings for the >> Gateworks System Controller (GSC). >> >> Signed-off-by: Tim Harvey >>

Re: [PATCH 4.9 00/67] 4.9.91-stable review

2018-03-28 Thread Greg Kroah-Hartman
On Wed, Mar 28, 2018 at 01:28:28PM -0500, Dan Rue wrote: > On Wed, Mar 28, 2018 at 06:21:04PM +0200, Greg Kroah-Hartman wrote: > > On Wed, Mar 28, 2018 at 10:50:35AM -0500, Dan Rue wrote: > > > On Wed, Mar 28, 2018 at 10:21:45AM +0200, Greg Kroah-Hartman wrote: > > > > On Tue, Mar 27, 2018 at

[PATCH v2 02/19] powerpc/powermac: Mark variable x as unused

2018-03-28 Thread Mathieu Malaterre
Since the value of x is never intended to be read, remove it. Fix warning treated as error with W=1: arch/powerpc/platforms/powermac/udbg_scc.c:76:9: error: variable ‘x’ set but not used [-Werror=unused-but-set-variable] Suggested-by: Christophe Leroy Signed-off-by:

Re: [PATCH] xfs: always free inline data before resetting inode fork during ifree

2018-03-28 Thread Darrick J. Wong
On Wed, Mar 28, 2018 at 07:30:06PM +, Sasha Levin wrote: > On Wed, Mar 28, 2018 at 02:32:28PM +1100, Dave Chinner wrote: > >How much time are your test rigs going to be able to spend running > >xfstests? A single pass on a single filesysetm config on spinning > >disks will take 3-4 hours of

Re: [PATCH 2/8] PCI: Add pci_find_common_upstream_dev()

2018-03-28 Thread Logan Gunthorpe
On 28/03/18 01:44 PM, Christian König wrote: > Well, isn't that exactly what dma_map_resource() is good for? As far as > I can see it makes sure IOMMU is aware of the access route and > translates a CPU address into a PCI Bus address. > I'm using that with the AMD IOMMU driver and at least

RE: [PATCH AUTOSEL for 4.4 093/167] ACPICA: Recognize the Windows 10 version 1607 and 1703 OSI strings

2018-03-28 Thread Moore, Robert
> -Original Message- > From: mario.limoncie...@dell.com [mailto:mario.limoncie...@dell.com] > Sent: Wednesday, March 28, 2018 10:18 AM > To: Moore, Robert ; > alexander.le...@microsoft.com; linux-kernel@vger.kernel.org; > sta...@vger.kernel.org > Cc: Schmauss,

Re: [PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support

2018-03-28 Thread Alan Tull
On Wed, Mar 28, 2018 at 11:26 AM, Alan Tull wrote: > On Fri, Mar 23, 2018 at 7:27 AM, Paolo Pisati wrote: > > Hi Paolo, One more thing. The api for registering a FPGA manager is changing. It won't be hard to adapt. I've pushed a branch that includes the

[PATCH v3] x86,sched: allow topologies where NUMA nodes share an LLC

2018-03-28 Thread Alison Schofield
From: Alison Schofield Intel's Skylake Server CPUs have a different LLC topology than previous generations. When in Sub-NUMA-Clustering (SNC) mode, the package is divided into two "slices", each containing half the cores, half the LLC, and one memory controller and

Re: [PATCH v3] gpio: Remove VLA from stmpe driver

2018-03-28 Thread Phil Reid
On 29/03/2018 01:59, Laura Abbott wrote: The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) The number of GPIOs on the supported chips is fairly small so stack allocate to a known upper bound and spit out a warning if any new chips have more gpios.

Re: [REVIEW][PATCH 13/11] ipc/smack: Tidy up from the change in type of the ipc security hooks

2018-03-28 Thread Davidlohr Bueso
On Sat, 24 Mar 2018, Eric W. Biederman wrote: /** - * smack_of_shm - the smack pointer for the shm - * @shp: the object + * smack_of_ipc - the smack pointer for the ipc + * @isp: the object Nit, but while at it the @isp description does need some love: "@isp: the pointer for the ipc perm

[PATCH 1/3] kbuild: Support HOSTLDFLAGS

2018-03-28 Thread Laura Abbott
In addition to HOSTCFLAGS, there's HOSTLDFLAGS. Ensure these get passed to calls to build host binaries. Signed-off-by: Laura Abbott --- scripts/Makefile.host | 6 +++--- tools/build/Makefile.build | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 0/3] HOSTCFLAGS and HOSTLDFLAGS from the environment

2018-03-28 Thread Laura Abbott
Hi, Someone noted that scripts/tools userspace binaries packaged as part of the Fedora kernel were not picking up the recommended compiler flags (https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md) This series lets the host ld and C flags be set on the command line

Re: [PATCH 2/2] KVM: X86: Fix disable pv tlb flush when steal time is enabled

2018-03-28 Thread Wanpeng Li
2018-03-29 4:14 GMT+08:00 Radim Krčmář : > 2018-03-24 21:18-0700, Wanpeng Li: >> From: Wanpeng Li >> >> PV TLB FLUSH can be turned on when steal time is enabled. The condition >> reverse when the patch is sent out for several rounds review by mistake. >

[PATCH 2/3] objtool: Support HOSTCFLAGS and HOSTLDFLAGS

2018-03-28 Thread Laura Abbott
It may be useful to compile host programs with different flags (e.g. hardening). Ensure that objtool picks up the appropriate flags. Signed-off-by: Laura Abbott --- tools/objtool/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 3/3] kbuild: Allow passing additional HOSTCFLAGS and HOSTLDFLAGS

2018-03-28 Thread Laura Abbott
Similar to AFLAGS_KBUILD, there may be uses (e.g. hardening) for passing in additional flags to host programs. Allow these to be passed in from the environment. Signed-off-by: Laura Abbott --- Documentation/kbuild/kbuild.txt | 9 + Makefile|

Re: [PATCH v2 4/4] perf: Support perf -vv

2018-03-28 Thread Jin, Yao
On 3/28/2018 11:46 PM, Ingo Molnar wrote: * Jin Yao wrote: $ ./perf -vv or ./perf -version --build-options perf version 4.13.rc5.gcb1183 My suggestion was to add the 'version' subcommand like Git has, not a "-version" option: $ git version git version

[git pull] drm fixes for 4.16 final

2018-03-28 Thread Dave Airlie
Hi Linus, Nothing serious, two amdkfd and two tegra fixes. I'll be submitting -next early, in the next couple of hours. Dave. The following changes since commit 3eb2ce825ea1ad89d20f7a3b5780df850e4be274: Linux 4.16-rc7 (2018-03-25 12:44:30 -1000) are available in the Git repository at:

Re: [REVIEW][PATCH 11/11] ipc/sem: Fix semctl(..., GETPID, ...) between pid namespaces

2018-03-28 Thread Davidlohr Bueso
On Fri, 23 Mar 2018, Eric W. Biederman wrote: Today the last process to update a semaphore is remembered and reported in the pid namespace of that process. If there are processes in any other pid namespace querying that process id with GETPID the result will be unusable nonsense as it does not

Re: [linux-sunxi] [PATCH v9 0/2] Initial Allwinner V3s CSI Support

2018-03-28 Thread Yong
Hi, On Wed, 28 Mar 2018 16:29:47 -0700 Martin Kelly wrote: > On 03/05/2018 05:51 PM, Yong Deng wrote: > > This patchset add initial support for Allwinner V3s CSI. > > > > Allwinner V3s SoC features two CSI module. CSI0 is used for MIPI CSI-2 > > interface and CSI1 is used for

Re: [PATCH] staging: vt6655: check for memory allocation failures

2018-03-28 Thread Ji-Hun Kim
On Wed, Mar 28, 2018 at 05:55:57PM +0800, Jia-Ju Bai wrote: > >@@ -646,7 +649,8 @@ static void device_init_td1_ring(struct vnt_private > >*priv) > > i++, curr += sizeof(struct vnt_tx_desc)) { > > desc = >apTD1Rings[i]; > > desc->td_info =

Re: [RESEND] [PATCH] rtc: snvs: Fix usage of snvs_rtc_enable

2018-03-28 Thread Shawn Guo
On Wed, Mar 28, 2018 at 08:14:05PM +0100, Bryan O'Donoghue wrote: > commit 179a502f8c46 ("rtc: snvs: add Freescale rtc-snvs driver") introduces > the SNVS RTC driver with a function snvs_rtc_enable(). > > snvs_rtc_enable() can return an error on the enable path however this > driver does not

Re: [PATCH v8 22/24] mm: Speculative page fault handler return VMA

2018-03-28 Thread Ganesh Mahendran
Hi, Laurent 2018-02-16 23:25 GMT+08:00 Laurent Dufour : > When the speculative page fault handler is returning VM_RETRY, there is a > chance that VMA fetched without grabbing the mmap_sem can be reused by the > legacy page fault handler. By reusing it, we avoid

Re: [RFC][PATCH] ipc: Remove IPCMNI

2018-03-28 Thread Davidlohr Bueso
Cc'ing mtk, Manfred and linux-api. See below. On Thu, 15 Mar 2018, Waiman Long wrote: On 03/15/2018 03:00 PM, Eric W. Biederman wrote: Waiman Long writes: On 03/14/2018 08:49 PM, Eric W. Biederman wrote: The define IPCMNI was originally the size of a statically sized

Re: [PATCH v8 22/24] mm: Speculative page fault handler return VMA

2018-03-28 Thread Ganesh Mahendran
2018-03-29 10:26 GMT+08:00 Ganesh Mahendran : > Hi, Laurent > > 2018-02-16 23:25 GMT+08:00 Laurent Dufour : >> When the speculative page fault handler is returning VM_RETRY, there is a >> chance that VMA fetched without grabbing the mmap_sem

Re: General protection fault with use_blk_mq=1.

2018-03-28 Thread Zephaniah E. Loss-Cutler-Hull
On 03/28/2018 06:02 PM, Jens Axboe wrote: > On 3/28/18 5:03 PM, Zephaniah E. Loss-Cutler-Hull wrote: >> I am not subscribed to any of the lists on the To list here, please CC >> me on any replies. >> >> I am encountering a fairly consistent crash anywhere from 15 minutes to >> 12 hours after boot

Re: [REVIEW][PATCH 01/11] sem/security: Pass kern_ipc_perm not sem_array into the sem security hooks

2018-03-28 Thread Davidlohr Bueso
On Fri, 23 Mar 2018, Casey Schaufler wrote: A kern_ipc_perm pointer is conventionally named isp in this code. So the ideal name would be ipcp, used in core ipc, but I have no strong preference over isp, ipp or whatever other name is used in LSMs. The important thing is that kern_ipc_perm

Re: [REVIEW][PATCH 13/11] ipc/smack: Tidy up from the change in type of the ipc security hooks

2018-03-28 Thread Davidlohr Bueso
On Sat, 24 Mar 2018, Casey Schaufler wrote: On 3/23/2018 10:42 PM, Eric W. Biederman wrote: Rename the variables shp, sma, msq to isp. As that is how the code already refers to those variables. Thanks. It's important to keep the code readable. Ah great, ignore my last email then.

Re: [PATCH 1/2] perf: riscv: preliminary RISC-V support

2018-03-28 Thread Palmer Dabbelt
On Wed, 28 Mar 2018 15:31:30 PDT (-0700), s...@sifive.com wrote: Also, core IDs and socket IDs are wrong in perf report: It looks like for this we need the stuff in topology.h. I've cobbled something together quickly for Alex to use for now to see if that fixes other problems, I'll submit a

linux-next: manual merge of the vfs tree with the syscalls tree

2018-03-28 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: arch/sparc/kernel/sys_sparc32.c between commits: 4b5d3cc0fff9 ("fs: add ksys_ftruncate() wrapper; remove in-kernel calls to sys_ftruncate()") 316dd9ee7b15 ("fs: add ksys_sync_file_range helper(); remove in-kernel calls

linux-next: manual merge of the vfs tree with the syscall tree

2018-03-28 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in: fs/internal.h fs/open.c between various commits from the syscall tree and commit: cab64df19466 ("fs: fold open_check_o_direct into do_dentry_open") from the vfs tree. I fixed it up (see below) and can carry the fix as

[PATCH 1/2] rhashtable: fix insertion of in rhltable when duplicate found.

2018-03-28 Thread NeilBrown
When rhltable_insert() finds an entry with the same key, it splices the new entry at the start of a list of entries with the same key. It stores the address of the new object in *pprev, but in general this is *not* the location where the match was found (though in a common case where the hash

[PATCH 0/2] rhashtable_walk fixes

2018-03-28 Thread NeilBrown
These two patches apply on top of my previous "rhashtable: reset iter when rhashtable_walk_start sees new table" patch. The first fixes a bug that I found in rhltable_insert(). The second is an alternate to my "rhashtable: allow a walk of the hash table without missing object." This version

[PATCH 2/2] rhashtable: improve rhashtable_walk stability when stop/start used.

2018-03-28 Thread NeilBrown
When a walk of an rhashtable is interrupted with rhastable_walk_stop() and then rhashtable_walk_start(), the location to restart from is based on a 'skip' count in the current hash chain, and this can be incorrect if insertions or deletions have happened. This does not happen when the walk is not

Re: [PATCH 1/2] af_key: Use DIV_ROUND_UP() instead of open-coded equivalent

2018-03-28 Thread Kevin Easton
On Wed, Mar 28, 2018 at 07:59:25AM +0200, Steffen Klassert wrote: > On Mon, Mar 26, 2018 at 07:39:16AM -0400, Kevin Easton wrote: > > Several places use (x + 7) / 8 to convert from a number of bits to a number > > of bytes. Replace those with DIV_ROUND_UP(x, 8) instead, for consistency > > with

Re: [PATCH] ecryptfs: fix spelling mistake: "cadidate" -> "candidate"

2018-03-28 Thread Tyler Hicks
On 03/02/2018 03:07 AM, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in debug message text. > > Signed-off-by: Colin Ian King Looks good to me. Thanks! Tyler > --- > fs/ecryptfs/keystore.c | 2 +- > 1 file

Re: [PATCH] ecryptfs: lookup: Don't check if mount_crypt_stat is NULL

2018-03-28 Thread Tyler Hicks
On 01/18/2018 08:40 PM, Guenter Roeck wrote: > mount_crypt_stat is assigned to > _superblock_to_private(ecryptfs_dentry->d_sb)->mount_crypt_stat, > and mount_crypt_stat is not the first object in struct ecryptfs_sb_info. > mount_crypt_stat is therefore never NULL. At the same time, no crash > in

Re: [PATCH v9 0/5] x86/KASLR: Add parameter kaslr_boot_mem=nn[KMG]@ss[KMG]

2018-03-28 Thread Dou Liyang
Hi Ingo, Kees, Baoquan and Chao At 03/12/2018 06:57 PM, Ingo Molnar wrote: [...] So there's apparently a mis-design here: - KASLR needs to be done very early on during bootup: - it's not realistic to expect KASLR to be done with a booted up kernel, because pointers to various

Re: [PATCH v4 2/2] locking/debug: Restructure the lock debugging menu

2018-03-28 Thread Davidlohr Bueso
On Wed, 28 Mar 2018, Waiman Long wrote: Two config options in the lock debugging menu that are probably the most frequently used, as far as I am concerned, is the PROVE_LOCKING and LOCK_STAT. From a UI perspective, they should be front and center. So these two options are now moved to the top

Re: [PATCH] vhost-net: add time limitation for tx polling(Internet mail)

2018-03-28 Thread Jason Wang
On 2018年03月28日 23:31, Michael S. Tsirkin wrote: On Wed, Mar 28, 2018 at 02:37:04PM +0800, Jason Wang wrote: On 2018年03月28日 12:01, haibinzhang(张海斌) wrote: On 2018年03月27日 19:26, Jason wrote On 2018年03月27日 17:12, haibinzhang wrote: handle_tx() will delay rx for a long time when busy tx

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

2018-03-28 Thread Masahiro Yamada
Hi Stephen, 2018-03-29 6:58 GMT+09:00 Stephen Rothwell : > Hi Masahiro, > > After merging the kbuild tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > net/ipv4/netfilter/nf_nat_snmp_basic_main.c:57:10: fatal err > or: nf_nat_snmp_basic.asn1.h: No

[PATCH 03/10] softirq: Turn default irq_cpustat_t to standard per-cpu

2018-03-28 Thread Frederic Weisbecker
In order to optimize and consolidate softirq mask accesses, let's convert the default irq_cpustat_t implementation to per-CPU standard API. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar

[PATCH 10/10] softirq: Remove __ARCH_SET_SOFTIRQ_PENDING

2018-03-28 Thread Frederic Weisbecker
The last user of __ARCH_SET_SOFTIRQ_PENDING has been converted to generic per-cpu softirq mask. We can now remove this conditional. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar

[PATCH 09/10] x86: Switch to generic local_softirq_pending() implementation

2018-03-28 Thread Frederic Weisbecker
Remove the ad-hoc implementation, the generic code now allows us not to reinvent the wheel. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Sebastian Andrzej Siewior

[PATCH 00/10] softirq: Consolidate and optimize softirq mask

2018-03-28 Thread Frederic Weisbecker
The softirq mask and its accessors/mutators have many implementations scattered around many architectures. Most do the same things consisting in a field in a per-cpu struct (often irq_cpustat_t) accessed through per-cpu ops. We can provide instead a generic efficient version that most of them can

[PATCH 08/10] sparc: Switch to generic local_softirq_pending() implementation

2018-03-28 Thread Frederic Weisbecker
Benefit from the generic softirq mask implementation that rely on per-CPU mutators instead of working with raw operators on top of this_cpu_ptr(). Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo

[PATCH 06/10] parisc: Switch to generic local_softirq_pending() implementation

2018-03-28 Thread Frederic Weisbecker
Remove the ad-hoc implementation, the generic code now allows us not to reinvent the wheel. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Sebastian Andrzej Siewior

[PATCH 05/10] ia64: Switch to generic local_softirq_pending() implementation

2018-03-28 Thread Frederic Weisbecker
Benefit from the generic softirq mask implementation that rely on per-CPU mutators instead of working with raw operators on top of this_cpu_ptr(). Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo

[PATCH 07/10] powerpc: Switch to generic local_softirq_pending() implementation

2018-03-28 Thread Frederic Weisbecker
Remove the ad-hoc implementation, the generic code now allows us not to reinvent the wheel. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Sebastian Andrzej Siewior

[PATCH 04/10] softirq: Consolidate default local_softirq_pending() implementations

2018-03-28 Thread Frederic Weisbecker
Consolidate and optimize default softirq mask API implementations. Per-CPU operations are expected to be faster and a few architectures already rely on them to implement local_softirq_pending() and related accessors/mutators. Those will be migrated to the new generic code. Signed-off-by: Frederic

[PATCH 01/10] ia64: Convert local_softirq_pending() to per-cpu ops

2018-03-28 Thread Frederic Weisbecker
In order to consolidate and optimize generic softirq mask accesses, we first need to convert architectures to use per-cpu operations when possible. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo

Re: [PATCH v3] ANDROID: binder: change down_write to down_read

2018-03-28 Thread Minchan Kim
On Thu, Mar 29, 2018 at 11:37:12AM +0900, Minchan Kim wrote: > binder_update_page_range needs down_write of mmap_sem because > vm_insert_page need to change vma->vm_flags to VM_MIXEDMAP unless > it is set. However, when I profile binder working, it seems > every binder buffers should be mapped in

Re: [PATCH v2 07/21] kconfig: add function support and implement 'shell' function

2018-03-28 Thread Ulf Magnusson
On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > This commit adds a new concept 'function' to do more text processing > in Kconfig. > > A function call looks like this: > > $(function arg1, arg2, arg3, ...) > > (Actually, this syntax was inspired by

Re: [REVIEW][PATCH 12/11] ipc: Directly call the security hook in ipc_ops.associate

2018-03-28 Thread Davidlohr Bueso
On Sat, 24 Mar 2018, Eric W. Biederman wrote: After the last round of cleanups the shm, sem, and msg associate operations just became trivial wrappers around the appropriate security method. Simplify things further by just calling the security method directly. Signed-off-by: "Eric W.

Re: [PATCH v12 07/22] selftests/vm: fixed bugs in pkey_disable_clear()

2018-03-28 Thread Thiago Jung Bauermann
Dave Hansen writes: > On 03/28/2018 01:47 PM, Thiago Jung Bauermann wrote: if (flags) - assert(rdpkey_reg() > orig_pkey_reg); + assert(rdpkey_reg() < orig_pkey_reg); } void pkey_write_allow(int pkey) >>> This seems so

Re: [RESEND] rtc: snvs: Fix usage of snvs_rtc_enable

2018-03-28 Thread Trent Piepho
On Wed, 2018-03-28 at 20:14 +0100, Bryan O'Donoghue wrote: > commit 179a502f8c46 ("rtc: snvs: add Freescale rtc-snvs driver") introduces > the SNVS RTC driver with a function snvs_rtc_enable(). > > snvs_rtc_enable() can return an error on the enable path however this > driver does not currently

[PATCH] eCryptfs: don't pass up plaintext names when using filename encryption

2018-03-28 Thread Tyler Hicks
Both ecryptfs_filldir() and ecryptfs_readlink_lower() use ecryptfs_decode_and_decrypt_filename() to translate lower filenames to upper filenames. The function correctly passes up lower filenames, unchanged, when filename encryption isn't in use. However, it was also passing up lower filenames when

Re: General protection fault with use_blk_mq=1.

2018-03-28 Thread Jens Axboe
On 3/28/18 5:03 PM, Zephaniah E. Loss-Cutler-Hull wrote: > I am not subscribed to any of the lists on the To list here, please CC > me on any replies. > > I am encountering a fairly consistent crash anywhere from 15 minutes to > 12 hours after boot with scsi_mod.use_blk_mq=1 dm_mod.use_blk_mq=1>

[PATCH i2c/slave-mqueue v3] i2c: slave-mqueue: add a slave backend to receive and queue messages

2018-03-28 Thread Haiyue Wang
Some protocols over I2C are designed for bi-directional transferring messages by using I2C Master Write protocol. Like the MCTP (Management Component Transport Protocol) and IPMB (Intelligent Platform Management Bus), they both require that the userspace can receive messages from I2C dirvers under

Re: omap4-droid4: voice call support was Re: [PATCHv5,5/5] ARM: dts: omap4-droid4: add soundcard

2018-03-28 Thread Tony Lindgren
Hi, * Sebastian Reichel [180328 14:03]: > Hi, > > On Wed, Mar 28, 2018 at 10:29:10AM +0800, Mark Brown wrote: > > On Wed, Mar 28, 2018 at 12:22:37AM +0200, Sebastian Reichel wrote: > > > On Tue, Mar 27, 2018 at 08:14:41PM +0800, Mark Brown wrote: > > > > > >

Re: [PATCH v4 1/2] locking/rwsem: Add DEBUG_RWSEMS to look for lock/unlock mismatches

2018-03-28 Thread Davidlohr Bueso
On Wed, 28 Mar 2018, Waiman Long wrote: +config DEBUG_RWSEMS + bool "RW Semaphore debugging: basic checks" + depends on DEBUG_KERNEL && RWSEM_SPIN_ON_OWNER Why depend on RWSEM_SPIN_ON_OWNER? Doesn't everyone benefit from this? For example, DEBUG_MUTEXES does not need it. Thanks,

Re: [PATCH] x86/build: drop a superfluous macro

2018-03-28 Thread Cao jin
ping? On 03/16/2018 04:49 PM, Cao jin wrote: > Some ..cmd files under arch/x86 report -D__KERNEL__ appears two > times in the command line, like arch/x86/boot, arch/x86/realmode/rm. > It is already defined in KBUILD_CPPFLAGS from top Makefile. so it can be > dropped saftely from these Makefiles.

Re: [RESEND] rtc: snvs: Fix usage of snvs_rtc_enable

2018-03-28 Thread Bryan O'Donoghue
On 29/03/18 01:12, Trent Piepho wrote: I sent a patch a couple weeks ago that addressed a similar issue, see https://patchwork.ozlabs.org/patch/887090/ Does this also fix the problem you see? It breaks the endless loop that happens later on in the RTC read path. This patch though is about

Re: [PATCH 1/2] perf: riscv: preliminary RISC-V support

2018-03-28 Thread Alan Kao
Hi Alex, I'm appreciated for your reply and tests. On Wed, Mar 28, 2018 at 03:58:41PM -0700, Alex Solomatnikov wrote: > Did you test this code? I did test this patch on QEMU's virt model with multi-hart, which is the only RISC-V machine I have for now. But as I mentioned in

[PATCH 02/10] sparc: Convert local_softirq_pending() to use per-cpu op

2018-03-28 Thread Frederic Weisbecker
In order to consolidate and optimize generic softirq mask accesses, we first need to convert architectures to use per-cpu operations when possible. Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Peter Zijlstra Cc: Ingo

[PATCH v3] ANDROID: binder: change down_write to down_read

2018-03-28 Thread Minchan Kim
binder_update_page_range needs down_write of mmap_sem because vm_insert_page need to change vma->vm_flags to VM_MIXEDMAP unless it is set. However, when I profile binder working, it seems every binder buffers should be mapped in advance by binder_mmap. It means we could set VM_MIXEDMAP in

Re: [PATCH v2] pcm_native: Remove VLA usage

2018-03-28 Thread Takashi Sakamoto
Hi, On Mar 29 2018 07:24, Kyle Spiers wrote: As part of the effort to remove VLAs from the kernel[1], this changes the allocation of the rstamps array from being on the stack to being kcalloc()ed. This also allows for the removal of the explicit zeroing loop. Signed-off-by: Kyle Spiers

Re: [PATCH 00/11] Use global pages with PTI

2018-03-28 Thread Dave Hansen
On 03/27/2018 01:07 PM, Ingo Molnar wrote: > * Thomas Gleixner wrote: >>> systems. Atoms are going to be the easiest thing to get my hands on, >>> but I tend to shy away from them for performance work. >> What I have in mind is that I wonder whether the whole circus is worth

Re: [PATCH 4.15 000/105] 4.15.14-stable review

2018-03-28 Thread Mike Kravetz
On 03/28/2018 12:06 PM, Mike Kravetz wrote: > On 03/28/2018 11:44 AM, Dan Rue wrote: >> On Tue, Mar 27, 2018 at 06:26:40PM +0200, Greg Kroah-Hartman wrote: >>> This is the start of the stable review cycle for the 4.15.14 release. >>> There are 105 patches in this series, all will be posted as a

Re: [PATCH v2] ANDROID: binder: change down_write to down_read

2018-03-28 Thread Arve Hjønnevåg
On Wed, Mar 28, 2018 at 6:00 PM, Minchan Kim wrote: > binder_update_page_range needs down_write of mmap_sem because > vm_insert_page need to change vma->vm_flags to VM_MIXEDMAP unless > it is set. However, when I profile binder working, it seems > every binder buffers should

[PATCH -next] ASoC: amd: acp-da7219-max98357: Make symbol da7219_dai_clk static

2018-03-28 Thread Wei Yongjun
Fixes the following sparse warning: sound/soc/amd/acp-da7219-max98357a.c:46:12: warning: symbol 'da7219_dai_clk' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- sound/soc/amd/acp-da7219-max98357a.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] ftrace: fix task's invalid comm of <...> when big pid

2018-03-28 Thread Wang Yu
于 18/3/28 下午11:44, Steven Rostedt 写道: On Wed, 28 Mar 2018 11:35:22 -0400 Steven Rostedt wrote: On Wed, 28 Mar 2018 20:32:27 +0800 Wang Yu wrote: when pid is bigger than PID_MAX_DEFAULT, the comm of task is <...>, it is better use pid_max to

Re: [PATCH] media: i2c: wm9090: replace codec to component

2018-03-28 Thread kbuild test robot
Hi Kuninori, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on next-20180328] [cannot apply to v4.16-rc7] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https

[PATCH v2 1/1] xen-netback: process malformed sk_buff correctly to avoid BUG_ON()

2018-03-28 Thread Dongli Zhang
The "BUG_ON(!frag_iter)" in function xenvif_rx_next_chunk() is triggered if the received sk_buff is malformed, that is, when the sk_buff has pattern (skb->data_len && !skb_shinfo(skb)->nr_frags). Below is a sample call stack: [ 438.652658] [ cut here ] [ 438.652660]

[patch 6/8] mtd: diskonchip: Allocate rs control per instance

2018-03-28 Thread Thomas Gleixner
The reed solomon library is moving the on stack decoder buffers into the rs control structure. That would break the DoC driver because multiple instances share the same control structure and can operate in parallel. At least in theory Instantiate a rs control instance per DoC device to avoid

[patch 8/8] rslib: Allocate decoder buffers to avoid VLAs

2018-03-28 Thread Thomas Gleixner
To get rid of the variable length arrays on stack in the RS decoder it's necessary to allocate the decoder buffers per control structure instance. All usage sites have been checked for potential parallel decoder usage and fixed where necessary. Kees confirmed that the pstore decoding is strictly

[patch 7/8] dm verity fec: Check result of init_rs()

2018-03-28 Thread Thomas Gleixner
The allocation of the reed solomon control structure can fail, but fec_alloc_bufs() ignores that and subsequent operations in dm verity use the potential NULL pointer unconditionally. Add a proper check and abort if init_rs() fails. Signed-off-by: Thomas Gleixner ---

[patch 1/8] rslib: Cleanup whitespace damage

2018-03-28 Thread Thomas Gleixner
Instead of mixing the whitespace cleanup into functional changes, mop it up first. Signed-off-by: Thomas Gleixner --- include/linux/rslib.h | 14 +++--- lib/reed_solomon/reed_solomon.c | 20 ++-- 2 files changed, 17 insertions(+), 17

[patch 3/8] rslib: Add SPDX identifiers

2018-03-28 Thread Thomas Gleixner
The Reed-Solomon library is based on code from Phil Karn who granted permission to import it into the kernel under the GPL V2. See commit 15b5423757a7 ("Shared Reed-Solomon ECC library") in the history git tree at: git://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git ... The

RE: [PATCH v2 3/5] KVM: VMX: Bring the common code to header file

2018-03-28 Thread Moger, Babu
> -Original Message- > From: Radim Krčmář > Sent: Wednesday, March 28, 2018 3:27 PM > To: Moger, Babu > Cc: j...@8bytes.org; t...@linutronix.de; mi...@redhat.com; > h...@zytor.com; x...@kernel.org; pbonz...@redhat.com; > k...@vger.kernel.org;

Re: [pci PATCH v7 2/5] virtio_pci: Add support for unmanaged SR-IOV on virtio_pci devices

2018-03-28 Thread Rustad, Mark D
On Mar 15, 2018, at 11:42 AM, Alexander Duyck wrote: > From: Alexander Duyck > > Hardware-realized virtio_pci devices can implement SR-IOV, so this > patch enables its use. The device in question is an upcoming Intel > NIC that implements

Re: [PATCH v7 0/2] hid-steam driver with user mode client dection

2018-03-28 Thread Rodrigo Rivas Costa
On Wed, Mar 28, 2018 at 08:14:48PM +0200, Rodrigo Rivas Costa wrote: > On Mon, Mar 26, 2018 at 10:12:19AM +0200, Benjamin Tissoires wrote: > > Also, I think there will be races if a user changes the value of the > > parameter while running the system. You might want to add an > > additional patch

[PATCH] usb: musb: Support gadget mode when the port is set to dual role

2018-03-28 Thread Paul Kocialkowski
This allows dual-role ports to be reported as having gadget mode by the musb_has_gadget helper. This is required to enable MUSB at all with MUSB glue layers that set the port mode to MUSB_PORT_MODE_DUAL_ROLE at init. Most notably, this allows calling musb_start when needed in the virtual MUSB

Re: [PATCH] gfs2: Stop using rhashtable_walk_peek

2018-03-28 Thread NeilBrown
On Wed, Mar 28 2018, Andreas Gruenbacher wrote: > Function rhashtable_walk_peek is problematic because there is no > guarantee that the glock previously returned still exists; when that key > is deleted, rhashtable_walk_peek can end up returning a different key, > which would cause an

Re: [PATCH v3 2/2] drivers: soc: Add LLCC driver

2018-03-28 Thread Evan Green
Hi Rishabh, On Tue, Mar 27, 2018 at 11:54 AM Rishabh Bhatnagar wrote: > LLCC (Last Level Cache Controller) provides additional cache memory > in the system. LLCC is partitioned into muliple slices and each > slice getting its own priority, size, ID and other config

Re: [PATCH v3] scsi: ufs: add trace event for ufs upiu

2018-03-28 Thread Martin K. Petersen
Ohad, > Add UFS Protocol Information Units(upiu) trace events for ufs driver, > used to trace various ufs transaction types- command, task-management > and device management. The trace-point format is generic and can be > easily adapted to trace other upius if needed. Currently tracing ufs >

Re: [PATCH net-next 2/2] sfp/phylink: move module EEPROM ethtool access into netdev core ethtool

2018-03-28 Thread Andrew Lunn
On Wed, Mar 28, 2018 at 12:03:39PM -0700, Florian Fainelli wrote: > From: Russell King > > Provide a pointer to the SFP bus in struct net_device, so that the > ethtool module EEPROM methods can access the SFP directly, rather > than needing every user to provide a

[PATCH] pcm_native: Remove VLA usage

2018-03-28 Thread Kyle Spiers
As part of the effort to remove VLAs from the kernel[1], this changes the allocation of the rstamps array from being on the stack to being kcalloc()ed. This also allows for the removal of the explicit zeroing loop. [1] https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Kyle Spiers

Re: [PATCH][scsi-next] scsi: core: remove redundant assignment to shost->use_blk_mq

2018-03-28 Thread Martin K. Petersen
Colin, > The first assignment to shost->use_blk_mq is redundant as it is > overwritten by the following statement. Remove this redundant code. Applied to 4.16/scsi-fixes. Thank you! -- Martin K. Petersen Oracle Linux Engineering

[PATCH] power: supply: ab8500_fg: fix spelling mistake: "Disharge" -> "Discharge"

2018-03-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in dev_dbg message text Signed-off-by: Colin Ian King --- drivers/power/supply/ab8500_fg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH] gfs2: Stop using rhashtable_walk_peek

2018-03-28 Thread Andreas Gruenbacher
On 28 March 2018 at 23:53, NeilBrown wrote: > Thank for this patch! > The above looks a bit fragile to me. > gfs2_glock_iter_next() (And hence gfs2_glock_seq_start()) will sometimes > exit with gl_held true, and sometimes with it false. > gfs2_glock_seq_stop() assumes that it is

RE: [PATCH 1/1] Drivers: hv: vmbus: Fix ring buffer signaling

2018-03-28 Thread Stephen Hemminger
Thanks, I hadn't updated to rc7 yet -Original Message- From: Joshua R. Poulson Sent: Wednesday, March 28, 2018 12:18 PM To: Stephen Hemminger Cc: K. Y. Srinivasan ; KY Srinivasan ;

[PATCH v4 14/16] powerpc: Use generic free_initrd_mem.

2018-03-28 Thread Shea Levy
Signed-off-by: Shea Levy --- arch/powerpc/mm/mem.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index fe8c61149fb8..e85b2a3cd264 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c @@ -404,13 +404,6 @@ void

[PATCH v4 13/16] parisc: Use generic free_initrd_mem.

2018-03-28 Thread Shea Levy
Signed-off-by: Shea Levy --- arch/parisc/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index cab32ee824d2..3643399230f3 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c @@ -932,10 +932,3 @@ void

[PATCH v4 12/16] openrisc: Use generic free_initrd_mem.

2018-03-28 Thread Shea Levy
Signed-off-by: Shea Levy --- arch/openrisc/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/openrisc/mm/init.c b/arch/openrisc/mm/init.c index 6972d5d6f23f..c1a3dcf9ad40 100644 --- a/arch/openrisc/mm/init.c +++ b/arch/openrisc/mm/init.c @@ -222,13

[PATCH v4 15/16] sh: Use generic free_initrd_mem.

2018-03-28 Thread Shea Levy
Signed-off-by: Shea Levy --- arch/sh/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/sh/mm/init.c b/arch/sh/mm/init.c index ce0bbaa7e404..7451459d0725 100644 --- a/arch/sh/mm/init.c +++ b/arch/sh/mm/init.c @@ -477,13 +477,6 @@ void free_initmem(void)

[PATCH v4 11/16] nios2: Use generic free_initrd_mem.

2018-03-28 Thread Shea Levy
Signed-off-by: Shea Levy --- arch/nios2/mm/init.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/nios2/mm/init.c b/arch/nios2/mm/init.c index c92fe4234009..3df75ff8c768 100644 --- a/arch/nios2/mm/init.c +++ b/arch/nios2/mm/init.c @@ -82,13 +82,6 @@ void __init

[PATCH v4 16/16] um: Use generic free_initrd_mem.

2018-03-28 Thread Shea Levy
Signed-off-by: Shea Levy --- arch/um/kernel/mem.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/arch/um/kernel/mem.c b/arch/um/kernel/mem.c index 3c0e470ea646..2d26eec92126 100644 --- a/arch/um/kernel/mem.c +++ b/arch/um/kernel/mem.c @@ -170,13 +170,6 @@ void

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