[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 Molnar Cc: Sebastian Andrzej Siewior Cc: David S. Miller Cc:

[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 Cc: Sebastian Andrzej Siewior Cc: David S. Miller Cc: Benjamin

[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 Molnar Cc: Sebastian Andrzej Siewior Cc: David S. Miller Cc: B

[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 Cc: David S. Miller Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael

[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 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 u

[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 Molnar Cc: Sebastian Andrzej Siewior Cc: David S. Miller Cc: B

[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 Cc: David S. Miller Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael

[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 Cc: Sebastian Andrzej Siewior Cc: David S. Miller Cc: Benjamin Herrens

[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 Cc: David S. Miller Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Michael

[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 Molnar Cc: Sebastian Andrzej Siewior Cc: David S. Miller Cc:

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 array in the kernel a

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 calling find_vma() > again. To achi

Re: [PATCH v2 04/21] kconfig: reference environments directly and remove 'option env=' syntax

2018-03-28 Thread Ulf Magnusson
I've been kinda busy lately, so that's why I disappeared. I'll try to go over this patchset in more detail over the weekend. On Tue, Mar 27, 2018 at 7:29 AM, Masahiro Yamada wrote: > To get an environment value, Kconfig needs to define a symbol using > "option env=" syntax. It is tedious to add

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 curre

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 compare Signed-off-by: Wang Yu --- kernel/tra

[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 deletion(-) diff --git a/sound/

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

2018-03-28 Thread Minchan Kim
On Wed, Mar 28, 2018 at 06:59:41PM -0700, Arve Hjønnevåg wrote: > 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 binde

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 polling

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 such file or directory >

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 be mapped in advance b

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 = &priv->apTD1Rings[i]; > > desc->td_info = kzalloc(sizeof(*desc

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 fi

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 of

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 KASLR-ed

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 > &ecryptfs_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 cras

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 changed, 1 insertion(+), 1 deletion(-) > > diff --gi

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: > > > > > > No, this is exactly the sort of use

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, D

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: [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 ot

[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: [REVIEW][PATCH 00/11] ipc: Fixing the pid namespace support

2018-03-28 Thread Davidlohr Bueso
On Fri, 23 Mar 2018, Eric W. Biederman wrote: Still I would like to see this fixed and I plan on merging this code. Yes, it needs fixed, but 1) there are pending issues (such as the extra atomics) and 2) its late in the -rc cycle. Plus this issue has existed for 11 years without the world end

[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 doesn

[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

[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 chain

Re: [PATCH 4/6] rhashtable: allow a walk of the hash table without missing objects.

2018-03-28 Thread NeilBrown
On Thu, Mar 29 2018, NeilBrown wrote: > > How about storing the hash chains in order by object address? > Then rhashtable_walk_start() can easily find it's place regardless of > whether the old object was still present or not, using <= on the > address. > "Insert" would need to record an insert lo

[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: gi

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 parallel interface

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 v2] 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 bider_mma

答复: 答复: 答复: 答复: [PATCH v8 2/5] dt-bindings: scsi: ufs: add document for hisi-ufs

2018-03-28 Thread liwei (CM)
Hi, Arnd Thanks for your patiences. -邮件原件- 发件人: arndbergm...@gmail.com [mailto:arndbergm...@gmail.com] 代表 Arnd Bergmann 发送时间: 2018年3月28日 20:50 收件人: liwei (CM) 抄送: Rob Herring; Mark Rutland; xuwei (O); Catalin Marinas; Will Deacon; Vinayak Holikatti; James E.J. Bottomley; Martin K. Peters

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 t

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 ne

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 2.14.1 Thanks, Ingo

[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 si

[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| 3 +++ 2 files change

[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 a/scripts/Makefile.host

[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 a/tools/objtool/Makefile b/tools/objt

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. > > It was just one round and the m/l patch ac

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 res

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

[PATCH] macintosh/adb: Use C99 initializers for struct adb_driver instances

2018-03-28 Thread Finn Thain
No change to object files. Cc: Benjamin Herrenschmidt Signed-off-by: Finn Thain --- drivers/macintosh/adb-iop.c| 14 +++--- drivers/macintosh/macio-adb.c | 15 +++ drivers/macintosh/via-macii.c | 14 +++--- drivers/macintosh/via-pmu.c| 14 +++--- d

[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: [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 it >> when there is n

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 tr

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 stru

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. Sign

[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 each slice is enumerated to Lin

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. Biederma

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 horribly wrong that I won

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 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 --- s

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 shoul

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

2018-03-28 Thread Martin Kelly
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 parallel interface. This is not documented in datasheet but by test and guess. This patchset im

Re: HELP PLEASE: Without ugly hacks, no interrupt delivery at all to our driver; 3.10.0 kernel (RHEL7.4) on Intel 82X38/X48 chipset, Shuttle (SX38/FX38, Core 2 Duo)

2018-03-28 Thread Alan Cox
> I suspect a large part of the problem is that our device isn't really > a PCIe device. It's a PCI device retrofitted with a TI > XIO2000(A)/XIO2200A PCI Express-to-PCI Bridge. Large numbers of this That really shouldn't be an issue. Just about every PC up to a few years ago has something that

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 ; gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; de...@linuxdriverproject.org; o...@aepfle.de;

Re: [REVIEW][PATCH 09/11] ipc/shm: Fix shmctl(..., IPC_STAT, ...) between pid namespaces.

2018-03-28 Thread Nagarathnam Muthusamy
On 03/28/2018 04:04 PM, ebied...@xmission.com wrote: NAGARATHNAM MUTHUSAMY writes: On 3/23/2018 2:33 PM, ebied...@xmission.com wrote: NAGARATHNAM MUTHUSAMY writes: Thanks! Reviewed-by: Nagarathnam Muthusamy Does this look like it will address the issue you have been fighting with pids

RE: [Resend Patch 1/3] Vmbus: Add function to report available ring buffer to write in total ring size percentage

2018-03-28 Thread Stephen Hemminger
Maybe best through greg's char-misc tree since it has generic hv code and sometime updates both network and scsi. Alternatively, put common code through one tree, and hold off the network device change till next release. -Original Message- From: Long Li Sent: Wednesday, March 28, 2018

Re: [PATCH for v3.18 00/18] Backport CVE-2017-13166 fixes to Kernel 3.18

2018-03-28 Thread Inki Dae
Hi Mauro, 2018년 03월 29일 03:12에 Mauro Carvalho Chehab 이(가) 쓴 글: > Hi Greg, > > Those are the backports meant to solve CVE-2017-13166 on Kernel 3.18. > > It contains two v4l2-ctrls fixes that are required to avoid crashes > at the test application. > > I wrote two patches myself for Kernel 3.18 i

Re: [PATCH] ore: fix spelling mistake: "Multples" -> "multiples"

2018-03-28 Thread Joe Perches
On Thu, 2018-03-29 at 00:07 +0100, Colin King wrote: > From: Colin Ian King > > Trivial fix to spelling mistake in ORE_ERR error message text and > make it all lowercase. thanks and more trivially: > diff --git a/fs/exofs/ore.c b/fs/exofs/ore.c [] > @@ -68,7 +68,7 @@ int ore_verify_layout(unsig

[PATCH] atm: iphase: fix spelling mistake: "Receiverd" -> "Received"

2018-03-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in message text Signed-off-by: Colin Ian King --- drivers/atm/iphase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c index 98a3a43484c8..44abb8a0a5e5 100644 --- a/drivers/atm/

Re: WARNING in refcount_dec

2018-03-28 Thread Cong Wang
(Cc'ing netdev and Willem) On Wed, Mar 28, 2018 at 12:03 PM, Byoungyoung Lee wrote: > Another crash patterns observed: race between (setsockopt$packet_int) > and (bind$packet). > > -- > [ 357.731597] kernel BUG at > /home/blee/project/race-fuzzer/kernels/kernel_v4.16-

General protection fault with use_blk_mq=1.

2018-03-28 Thread Zephaniah E. Loss-Cutler-Hull
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 The crash looks like: [ 5466.075993] general protection fault:

Re: [RFT][PATCH v7 6/8] sched: idle: Select idle state before stopping the tick

2018-03-28 Thread Rafael J. Wysocki
On Wed, Mar 28, 2018 at 10:41 PM, Doug Smythies wrote: > On 2018.03.28 08:15 Thomas Ilsche wrote: >> On 2018-03-28 12:56, Rafael J. Wysocki wrote: >>> On Wed, Mar 28, 2018 at 12:37 PM, Rafael J. Wysocki >>> wrote: On Wed, Mar 28, 2018 at 10:38 AM, Thomas Ilsche wrote: > On 2018-03

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

2018-03-28 Thread Dave Chinner
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 run

[PATCH] ore: fix spelling mistake: "Multples" -> "multiples"

2018-03-28 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in ORE_ERR error message text and make it all lowercase. Signed-off-by: Colin Ian King --- fs/exofs/ore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/exofs/ore.c b/fs/exofs/ore.c index 3c6a9c156b7a..0df0b6d25d06 10

mmotm 2018-03-28-16-05 uploaded

2018-03-28 Thread akpm
The mm-of-the-moment snapshot 2018-03-28-16-05 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You wi

Re: [REVIEW][PATCH 09/11] ipc/shm: Fix shmctl(..., IPC_STAT, ...) between pid namespaces.

2018-03-28 Thread Eric W. Biederman
NAGARATHNAM MUTHUSAMY writes: > On 3/23/2018 2:33 PM, ebied...@xmission.com wrote: >> NAGARATHNAM MUTHUSAMY writes: >> >>> Thanks! >>> >>> Reviewed-by: Nagarathnam Muthusamy >> Does this look like it will address the issue you have been fighting >> with pids? > > We do use IPC shared memory but

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 false. > Normally

Re: [PATCH V4 1/2] mmc: sdhci-msm: Add support to store supported vdd-io voltages

2018-03-28 Thread Doug Anderson
Hi, On Wed, Mar 28, 2018 at 6:08 AM, Vijay Viswanath wrote: > During probe check whether the vdd-io regulator of sdhc platform device > can support 1.8V and 3V and store this information as a capability of > platform device. > > Signed-off-by: Vijay Viswanath > --- > drivers/mmc/host/sdhci-msm.

Re: [PATCH V4 2/2] mmc: sdhci-msm: support voltage pad switching

2018-03-28 Thread Doug Anderson
Hi, On Wed, Mar 28, 2018 at 6:08 AM, Vijay Viswanath wrote: > From: Krishna Konda > > The PADs for SD card are dual-voltage that support 3v/1.8v. Those PADs > have a control signal (io_pad_pwr_switch/mode18 ) that indicates > whether the PAD works in 3v or 1.8v. > > SDHC core on msm platforms s

[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 a/drivers/power/supply/ab8500_fg.c b/drivers/power/supply/ab8500_fg.c index c569f82a

Re: [PATCH v4 0/8] ARM: davinci: complete the conversion to using the reset framework

2018-03-28 Thread Suman Anna
On 03/27/2018 12:24 AM, Sekhar Nori wrote: > Hi Suman, > > On Tuesday 27 March 2018 06:12 AM, Suman Anna wrote: >> I tried booting your tree [3] on the OMAPL138-LCDK board. I am using >> NFS, and I am unable to get to the console. I don't have any issues >> booting latest -next branch (next-201803

[PATCH net-next v2 1/2] net: phy: phylink: Provide PHY interface to mac_link_{up,down}

2018-03-28 Thread Florian Fainelli
In preparation for having DSA transition entirely to PHYLINK, we need to pass a PHY interface type to the mac_link_{up,down} callbacks because we may have to make decisions on that (e.g: turn on/off RGMII interfaces etc.). We do not pass an entire phylink_link_state because not all parameters (paus

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

2018-03-28 Thread Florian Fainelli
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 hook for it. Reviewed-by: Andrew Lunn Signed-off-by: Russell King Signed-off-by: Florian Fainelli --- d

[PATCH net-next v2 0/2] phylink: API changes

2018-03-28 Thread Florian Fainelli
Hi all, This patch series contains two API changes to PHYLINK which will later be used by DSA to migrate to PHYLINK. Because these are API changes that impact other outstanding work (e.g: MVPP2) I would rather get them included sooner to minimize conflicts. Thank you! Changes in v2: - added mi

RE: [Resend Patch 1/3] Vmbus: Add function to report available ring buffer to write in total ring size percentage

2018-03-28 Thread Long Li
> Subject: Re: [Resend Patch 1/3] Vmbus: Add function to report available ring > buffer to write in total ring size percentage > > > Long, > > > Netvsc has a function to calculate how much ring buffer in percentage > > is available to write. This function is also useful for storvsc and > > other

Re: [PATCH v3 0/8] ARM: davinci: complete the conversion to using the reset framework

2018-03-28 Thread Suman Anna
Hi Bjorn, On 03/27/2018 04:20 AM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > This series converts the only user of the handcoded, mach-specific reset > routines in the davinci platform to using the reset framework. > > Patches 1-3 add necessary lookups/DT-properties. > > Patche

[PATCH net-next] MAINTAINERS: update vmxnet3 driver maintainer

2018-03-28 Thread Ronak Doshi
Shrikrishna Khare would no longer maintain the vmxnet3 driver. Taking over the role of vmxnet3 maintainer. Signed-off-by: Ronak Doshi Signed-off-by: Shrikrishna Khare --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 9107d9241564

Re: [PATCH] proc: register filesystem last

2018-03-28 Thread Alexey Dobriyan
On Wed, Mar 28, 2018 at 03:47:49PM +0100, Al Viro wrote: > On Wed, Mar 28, 2018 at 10:26:57AM +0300, Alexey Dobriyan wrote: > > On Wed, Mar 28, 2018 at 05:48:23AM +0100, Al Viro wrote: > > > On Sat, Mar 10, 2018 at 03:06:34AM +0300, Alexey Dobriyan wrote: > > > > On Fri, Mar 09, 2018 at 02:49:38PM

RE: [PATCH] scsi: devinfo: Add Microsoft iSCSI target to 1024 sector blacklist

2018-03-28 Thread Long Li
> Subject: Re: [PATCH] scsi: devinfo: Add Microsoft iSCSI target to 1024 sector > blacklist > > > Long, KY: Please confirm. > > > The Windows Server 2016 iSCSI target doesn't work with the Linux > > kernel initiator since the kernel started sending larger requests by > > default, nor does it imp

Re: [PATCH v3 7/8] remoteproc/davinci: use the reset framework

2018-03-28 Thread Suman Anna
Hi Bart, On 03/27/2018 04:20 AM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Switch to using the reset framework instead of handcoded reset routines > we used so far. > > Signed-off-by: Bartosz Golaszewski > --- > drivers/remoteproc/da8xx_remoteproc.c | 33 +

Re: [PATCH] serial: 8250: omap: Provide ability to enable/disable UART as wakeup source

2018-03-28 Thread Tony Lindgren
* Vignesh R [180327 12:03]: > Enable/Clear module level UART wakeup in UART_OMAP_WER register based on > return value of device_may_wakeup() in .suspend(). This allows > userspace to use sysfs to control the ability of UART to wakeup the > system from deep sleep state. Register is restored back in

[PATCH] [mmc_block] Prevent bus reference leak in mmc_blk_init

2018-03-28 Thread Alexander Kappner
Upon module load, mmc_block allocates a bus with bus_register in mmc_blk_init. This reference never gets freed during module unload. Subsequent re-insertions of the module fail and BUG() is triggered: [ 84.583342] sysfs: cannot create duplicate filename '/bus/mmc_rpmb' [ 84.583373] CPU: 6 PID:

[PATCH 2/2] staging: rtl8723bs: Remove yield call, replace with cond_resched()

2018-03-28 Thread Thomas Avery
Remove yield() call. Yield does not guarantee progress, cond_resched() is a safer alternative Signed-off-by: Thomas Avery --- drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/s

[PATCH 1/2] staging: rtl8723bs: Replace yield() call with cond_resched()

2018-03-28 Thread Thomas Avery
Remove yield call(). yield does not guarantee progress, and should not be used. cond_resched() is a safe alternative. Signed-off-by: Thomas Avery --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/r

Regression in 4.16-rc7 - ipsec vpn broken

2018-03-28 Thread Derek Robson
The ipsec VPN is broken in 4.16-rc7 and seems to have been broken in all of 4.15 connecting from an iphone seems to give a timeout. A bisect brings me to this commit as the one that is the issue. commit: acf568ee859f098279eadf551612f103afdacb4e (xfrm: Reinject transport-mode packets through ta

[PATCH v2] 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. Signed-off-by: Kyle Spiers --- sound/core/pcm_native.c | 11 +++ 1 file c

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