[PATCH v7 08/15] x86, acpi, numa: cleanup acpi_numa_processor_affinity_init()

2016-05-24 Thread David Daney
From: Hanjun Guo Cleanup acpi_numa_processor_affinity_init() in preparation for its move to drivers/acpi/numa.c. It will be reused by arm64, this has no functional change. Signed-off-by: Hanjun Guo Signed-off-by: Robert Richter Signed-off-by: David Daney --- arch/x86/mm/srat.c | 21 +---

[PATCH v7 04/15] acpi, numa: Move acpi_numa_arch_fixup() to ia64 only

2016-05-24 Thread David Daney
From: Robert Richter Since acpi_numa_arch_fixup() is only used in arch ia64, move it there to make a generic interface easier. This avoids empty function stubs or some complex kconfig options for x86 and arm64. Signed-off-by: Robert Richter Reviewed-by: Hanjun Guo Signed-off-by: David Daney -

[PATCH v7 06/15] arm64, numa: rework numa_add_memblk()

2016-05-24 Thread David Daney
From: Hanjun Guo Rework numa_add_memblk() to update the parameter "u64 size" to "u64 end", this will make it consistent with x86 and simplifies the arm64 ACPI NUMA code to be added later. Signed-off-by: Hanjun Guo Signed-off-by: Robert Richter Signed-off-by: David Daney Acked-by: Catalin Mari

[PATCH v7 00/15] ACPI NUMA support for ARM64

2016-05-24 Thread David Daney
From: David Daney Rebased to Linus' master branch at commit 1d6da87a3241 ("Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux") ACPI 5.1 already introduced NUMA support for ARM64, which can get the NUMA domain information from SRAT and SLIT table, so parse those two tables to

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread David Matlack
On Tue, May 24, 2016 at 12:57 AM, Wanpeng Li wrote: > From: Wanpeng Li > > If an emulated lapic timer will fire soon(in the scope of 10us the > base of dynamic halt-polling, lower-end of message passing workload > latency TCP_RR's poll time < 10us) we can treat it as a short halt, > and poll to w

[PATCH v7 07/15] arm64, numa: Cleanup NUMA disabled messages.

2016-05-24 Thread David Daney
From: David Daney As noted by Dennis Chen, we don't want to print "No NUMA configuration found" if NUMA was forced off from the command line. Change the type of numa_off to bool, and clean up printing code. Print "NUMA disabled" if forced off on command line and "No NUMA configuration found" if

[PATCH v7 05/15] acpi, numa: move acpi_numa_slit_init() to drivers/acpi/numa.c

2016-05-24 Thread David Daney
From: Hanjun Guo Identical implementations of acpi_numa_slit_init() are used by both x86 and follow-on arm64 support. Move it to drivers/acpi/numa.c, and guard with CONFIG_X86 || CONFIG_ARM64 because ia64 has its own architecture specific implementation. No code change. Signed-off-by: Hanjun G

[PATCH v7 03/15] acpi, numa: remove duplicate NULL check

2016-05-24 Thread David Daney
From: Hanjun Guo The argument "header" for acpi_table_print_srat_entry() is always checked before the function is called, it's duplicate to check it again, remove it. Signed-off-by: Hanjun Guo Signed-off-by: Robert Richter Signed-off-by: David Daney --- drivers/acpi/numa.c | 3 --- 1 file ch

Re: zone_reclaimable() leads to livelock in __alloc_pages_slowpath()

2016-05-24 Thread Oleg Nesterov
On 05/24, Michal Hocko wrote: > > On Mon 23-05-16 17:14:19, Oleg Nesterov wrote: > > On 05/23, Michal Hocko wrote: > [...] > > > Could you add some tracing and see what are the numbers > > > above? > > > > with the patch below I can press Ctrl-C when it hangs, this breaks the > > endless loop and t

Re: [GIT PULL] y2038 changes for vfs

2016-05-24 Thread Linus Torvalds
On Tue, May 24, 2016 at 3:23 PM, Linus Torvalds wrote: > > Just as an example: code that does > > dir->i_mtime = dir->i_ctime = CURRENT_TIME_SEC; > > could pretty mechanically be converted to > > dir->i_mtime = dir->i_ctime = current_fs_time(sb); Actually, looking at the users, mo

RE: livepatch: change to a per-task consistency model

2016-05-24 Thread Jiri Kosina
On Tue, 24 May 2016, David Laight wrote: > > > Related, please can we have a flag for the sleep and/or process so that > > > an uninterruptible sleep doesn't trigger the 'hung task' detector > > > > TASK_KILLABLE > > Not sure that does what I want. > It appears to allow some 'kill' actions to wa

[PATCH 5/7] x86/uaccess: Warn on uaccess faults other than #PF

2016-05-24 Thread Andy Lutomirski
If a uaccess instruction fails due to an8 error other than #PF, warn. If the fault is #GP, it most likely indicates access to a non-canonical address, which means that an access_ok check is missing, and that's bad. If the fault is something else (#UD?), then something is very wrong and we should

RE: [PATCH] x86, signals: add missing signal_compat code for x86 features

2016-05-24 Thread Luck, Tony
> Tony / Borislav, do we have tests for the machine check code that could > have caught this? If I had built one of my recovery test programs as a 32-byte binary instead of native 64-bit I might have noticed (I only print the lsb field ... which would have been garbage on the stack, maybe I'd ha

[PATCH 7/7] x86/uaccess: OOPS or warn on a fault with KERNEL_DS and !pagefault_disabled()

2016-05-24 Thread Andy Lutomirski
If someone calls set_fs(KERNEL_DS), then they are responsible for making sure that whatever addresses are accessed are safe. If they get it wrong on a kernel address, OOPS. If they get it wrong on a user address, warn. This will make it harder to exploit bugs in which user code controls a pointe

[PATCH 6/7] x86/uaccess: Don't fix up USER_DS uaccess faults to kernel addresses

2016-05-24 Thread Andy Lutomirski
If a uaccess in USER_DS mode faults on a kernel address, it is reasonably like to be an exploitable bug. Make it more obvious in testing and make it harder to exploit in practice by letting it OOPS. Signed-off-by: Andy Lutomirski --- arch/x86/mm/extable.c | 18 ++ 1 file changed

[PATCH 2/7] x86/extable: Pass error_code and an extra unsigned long to exhandlers

2016-05-24 Thread Andy Lutomirski
Exception handlers might want to know the error code and, for some exceptions, some other auxiliarry info. Pass in the error code and an 'extra' parameter. For page faults, 'extra' is cr2. The kprobe code is incomprehensible to me. For kprobe fixups, just pass zeroes. Signed-off-by: Andy Lutom

[PATCH 4/7] x86/dumpstack: If addr_limit is non-default, display it

2016-05-24 Thread Andy Lutomirski
This will help debug OOPSes related to USER_DS vs KERNEL_DS. Signed-off-by: Andy Lutomirski --- arch/x86/kernel/dumpstack_32.c | 4 arch/x86/kernel/dumpstack_64.c | 5 + 2 files changed, 9 insertions(+) diff --git a/arch/x86/kernel/dumpstack_32.c b/arch/x86/kernel/dumpstack_32.c index

[PATCH 3/7] x86/uaccess: Give uaccess faults their own handler

2016-05-24 Thread Andy Lutomirski
This will give us a single piece of code to edit to harden our uaccess fault handling. Signed-off-by: Andy Lutomirski --- arch/x86/include/asm/uaccess.h | 16 arch/x86/lib/getuser.S | 12 ++-- arch/x86/lib/putuser.S | 10 +- arch/x86/mm/extable.c

[PATCH 0/7] x86: uaccess hardening, easy part

2016-05-24 Thread Andy Lutomirski
This series hardens x86's uaccess code a bit. It adds warnings for some screwups, adds an OOPS for a major exploitable screwup, and it improves debuggability a bit by indicating non-default fs in oopses. It shouldn't cause any new OOPSes except in the particularly dangerous case where the kernel

[PATCH 1/7] x86/xen: Simplify set_aliased_prot

2016-05-24 Thread Andy Lutomirski
In aa1acff356bb ("x86/xen: Probe target addresses in set_aliased_prot() before the hypercall"), I added an explicit probe to work around a hypercall issue. The code can be simplified by using probe_kernel_read. Cc: Andrew Cooper Cc: Boris Ostrovsky Cc: David Vrabel Cc: Jan Beulich Cc: Konrad

[PATCH] tracing: Choose static tp_printk buffer by explicit nesting count

2016-05-24 Thread Andy Lutomirski
Currently, the trace_printk code chooses which static buffer to use based on what type of atomic context (NMI, IRQ, etc) it's in. Simplify the code and make it more robust: simply count the nesting depth and choose a buffer based on the current nesting depth. The new code will only drop an event

[PATCH v2] x86/traps: Don't force in_interrupt() to return true in IST handlers

2016-05-24 Thread Andy Lutomirski
Forcing in_interrupt() to return true if we're not in a bona fide interrupt confuses the softirq code. This fixes warnings like: NOHZ: local_softirq_pending 282 that can happen when running things like selftests/x86. This will change perf's static percpu buffer usage in IST context. I think thi

Re: Mount namespace "dominant peer group"?

2016-05-24 Thread Michael Kerrisk (man-pages)
On 05/23/2016 02:55 AM, Miklos Szeredi wrote: > C is slave of B is slave of A. If a process can see (i.e. has under > its root) A and C but not B then for C it will show > master:B,propagate_from:A. This piece of information is shown because > it can't see the immediate master (B) and so cannot d

Re: [PATCH] tracing: Choose static tp_printk buffer by explicit nesting count

2016-05-24 Thread Steven Rostedt
On Tue, 24 May 2016 15:52:28 -0700 Andy Lutomirski wrote: > Currently, the trace_printk code chooses which static buffer to use based > on what type of atomic context (NMI, IRQ, etc) it's in. Simplify the > code and make it more robust: simply count the nesting depth and choose > a buffer based

Re: [PATCH] iommu/vt-d: reduce extra first level entry in iommu->domains

2016-05-24 Thread Wei Yang
Hi, Joerg Not sure whether you think this calculation is correct. If I missed something for this " + 1" in your formula, I am glad to hear your explanation. So that I could learn something from you :-) Have a good day~ On Sat, May 21, 2016 at 02:41:51AM +, Wei Yang wrote: >In commit <8bf478

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Wanpeng Li
2016-05-25 6:38 GMT+08:00 David Matlack : > On Tue, May 24, 2016 at 12:57 AM, Wanpeng Li wrote: >> From: Wanpeng Li >> >> If an emulated lapic timer will fire soon(in the scope of 10us the >> base of dynamic halt-polling, lower-end of message passing workload >> latency TCP_RR's poll time < 10us)

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Wanpeng Li
2016-05-25 1:15 GMT+08:00 Christian Borntraeger : > On 05/24/2016 09:57 AM, Wanpeng Li wrote: >> From: Wanpeng Li >> >> If an emulated lapic timer will fire soon(in the scope of 10us the >> base of dynamic halt-polling, lower-end of message passing workload >> latency TCP_RR's poll time < 10us) we

Re: [PATCH V3 RESEND] phy: bcm-ns-usb3: new driver for USB 3.0 PHY on Northstar

2016-05-24 Thread Scott Branden
Hi Rafal, some comments in line. On 16-05-22 03:09 PM, Rafał Miłecki wrote: > Northstar is a family of SoCs used in home routers. They have USB 2.0 > and 3.0 controllers with PHYs that need to be properly initialized. > This driver provides PHY init support in a generic way and can be bound > wi

Re: x86: A process doesn't stop on hw breakpoints sometimes

2016-05-24 Thread Oleg Nesterov
On 05/23, Andy Lutomirski wrote: > > I'm guessing you're either hitting a subtle bug in the mess that is > breakpoint handling or you're hitting a bug in perf's context switch > code. yes, same feeling... > Given that the breakpoint gets missed many times in a row, yes, the child specially tries

Re: [PATCH] x86/mm: Add warning to ioremap() for conflicting cache type

2016-05-24 Thread Luis R. Rodriguez
On Wed, Apr 27, 2016 at 09:25:57AM -0600, Toshi Kani wrote: > On x86, ioremap() and remap_pfn_range() fail on conflicting cache > type of an alias mapping request only if the case is not allowed > by the rule set in is_new_memtype_allowed(). While this exemption > is necessary for remap_pfn_range()

Re: [PATCH] devicetree - document using aliases to set spi bus number.

2016-05-24 Thread Frank Rowand
On 5/24/2016 11:32 AM, Mark Brown wrote: > On Tue, May 24, 2016 at 08:03:48PM +0200, Christer Weinigel wrote: >> On 05/24/2016 07:20 PM, Mark Brown wrote: > >>> I'm not sure this is something we want to support at all, I can't >>> immediately see anything that does this deliberately in the SPI >>

Enhancing semantics with memremap() - aliasing with memremap()

2016-05-24 Thread Luis R. Rodriguez
Dan, Toshi, Christoph, I recall a while ago while memremap() was being introduced we discussed making stronger semantics for memremap() a desirable future goal [0], along with removal cleanups of ioremap_cache(). This was when only 2 types were being considered, WB and WT. I see we now have WC as

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread David Matlack
On Tue, May 24, 2016 at 4:11 PM, Wanpeng Li wrote: > 2016-05-25 6:38 GMT+08:00 David Matlack : >> On Tue, May 24, 2016 at 12:57 AM, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> If an emulated lapic timer will fire soon(in the scope of 10us the >>> base of dynamic halt-polling, lower-end of mes

Re: [PATCH v1 1/3] Add the latent_entropy gcc plugin

2016-05-24 Thread PaX Team
On 24 May 2016 at 10:32, Kees Cook wrote: > On Mon, May 23, 2016 at 3:15 PM, Emese Revfy wrote: > > This plugin mitigates the problem of the kernel having too little entropy > > during > > and after boot for generating crypto keys. > > > I'm excited to see this! This looks like it'll help a lot

Re: Regression in 4.6.0-git - bisected to commit dd254f5a382c

2016-05-24 Thread Al Viro
On Tue, May 24, 2016 at 05:31:51PM -0500, Matthew McClintock wrote: > > > On May 24, 2016, at 2:36 PM, Larry Finger wrote: > > > > On 05/24/2016 02:25 PM, Matthew McClintock wrote: > >> On May 24, 2016, at 2:16 PM, Larry Finger > >> wrote: > >>> > >>> On 05/24/2016 02:13 PM, Matthew McClintoc

Re: [PATCH v2] cpufreq: stats: Walk online CPUs with CPU offline/online locked

2016-05-24 Thread Rafael J. Wysocki
On Tuesday, May 24, 2016 05:47:17 PM Viresh Kumar wrote: > On 24-05-16, 14:13, Rafael J. Wysocki wrote: > > I don't really get it why you don't like get/put_online_cpus() so much. > > Not that I don't like them, I just wanted to see if its possible to > work without any additional locking. > > An

[PATCH v2 1/2] media: Media Device Allocator API

2016-05-24 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. Using this API, drivers can allocate a media device with the shared struct device as the key. Once the media device is allocated by a driver, other drivers can get a reference to it. The media device is released when all th

[PATCH v2 2/2] media: change au0828 to use Media Device Allocator API

2016-05-24 Thread Shuah Khan
Change au0828 to use Media Device Allocator API to allocate media device with the parent usb struct device as the key, so it can be shared with the snd usb audio driver. Signed-off-by: Shuah Khan --- drivers/media/usb/au0828/au0828-core.c | 12 drivers/media/usb/au0828/au0828.h

[PATCH v2 0/2] Media Device Allocator API

2016-05-24 Thread Shuah Khan
Media Device Allocator API to allows multiple drivers share a media device. Using this API, drivers can allocate a media device with the shared struct device as the key. Once the media device is allocated by a driver, other drivers can get a reference to it. The media device is released when all th

[PATCH 05/12] f2fs: call mark_inode_dirty_sync for i_field changes

2016-05-24 Thread Jaegeuk Kim
This patch calls mark_inode_dirty_sync() for the following on-disk inode changes. -> largest -> ctime/mtime/atime -> i_current_depth -> i_xattr_nid -> i_pino -> i_advise -> flags Signed-off-by: Jaegeuk Kim --- fs/f2fs/dir.c | 14 ++--- fs/f2fs/extent_cache.c | 24 +++

[PATCH 08/12] f2fs: avoid unnecessary updating inode during fsync

2016-05-24 Thread Jaegeuk Kim
If roll-forward recovery can recover i_size, we don't need to update inode's metadata during fsync. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 3 +++ fs/f2fs/f2fs.h | 23 +-- fs/f2fs/file.c | 4 ++-- fs/f2fs/inode.c| 3 +++ fs/f2fs/node.c | 9

[PATCH 11/12] f2fs: set flush_merge by default

2016-05-24 Thread Jaegeuk Kim
This patch sets flush_merge by default. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index d0426a3..5696dff 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -86,6 +86,7 @@ enum { Opt_inline

[PATCH 12/12] f2fs: remove writepages lock

2016-05-24 Thread Jaegeuk Kim
This patch removes writepages lock. We can improve multi-threading performance. tiobench, 32 threads, 4KB write per fsync on SSD Before: 25.88 MB/s After: 28.03 MB/s Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 7 --- fs/f2fs/f2fs.h | 1 - fs/f2fs/super.c | 1 - 3 files changed, 9 dele

[PATCH 07/12] f2fs: remove syncing inode page in all the cases

2016-05-24 Thread Jaegeuk Kim
This patch reduces to call them across the whole tree. - sync_inode_page() - update_inode_page() - update_inode() - f2fs_write_inode() Instead, checkpoint will flush all the dirty inode metadata before syncing node pages. Note that, this is doable, since we call mark_inode_dirty_sync() for all ino

[PATCH 03/12] f2fs: introduce f2fs_i_blocks_write with mark_inode_dirty_sync

2016-05-24 Thread Jaegeuk Kim
This patch introduces f2fs_i_blocks_write() to call mark_inode_dirty_sync() when changing inode->i_blocks. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 1 - fs/f2fs/f2fs.h | 17 + 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c

[PATCH 09/12] f2fs: add lazytime mount option

2016-05-24 Thread Jaegeuk Kim
This patch adds lazytime support. Signed-off-by: Jaegeuk Kim --- fs/f2fs/super.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index e9e81cb..d0426a3 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -93,6 +93,8 @@ enum { Opt_no

[PATCH 06/12] f2fs: flush inode metadata when checkpoint is doing

2016-05-24 Thread Jaegeuk Kim
This patch registers all the inodes which have dirty metadata to sync when checkpoint is doing. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 36 fs/f2fs/debug.c | 5 +++-- fs/f2fs/f2fs.h | 8 ++-- fs/f2fs/inode.c | 6 +- fs

[PATCH 10/12] f2fs: detect congestion of flush command issues

2016-05-24 Thread Jaegeuk Kim
If flush commands do not incur any congestion, we don't need to throw that to dispatching queue which causes unnecessary latency. Signed-off-by: Jaegeuk Kim --- fs/f2fs/f2fs.h| 1 + fs/f2fs/segment.c | 7 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/f2fs.h b/

[PATCH 01/12] f2fs: use inode pointer for {set, clear}_inode_flag

2016-05-24 Thread Jaegeuk Kim
This patch refactors to use inode pointer for set_inode_flag and clear_inode_flag. Signed-off-by: Jaegeuk Kim --- fs/f2fs/acl.c | 7 ++--- fs/f2fs/checkpoint.c | 15 -- fs/f2fs/data.c | 21 +++--- fs/f2fs/dir.c | 22 +++ fs/f2fs/extent_cac

[PATCH 02/12] f2fs: introduce f2fs_i_size_write with mark_inode_dirty_sync

2016-05-24 Thread Jaegeuk Kim
This patch introduces f2fs_i_size_write() to call mark_inode_dirty_sync() with i_size_write(). Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 10 -- fs/f2fs/dir.c | 2 +- fs/f2fs/f2fs.h | 6 ++ fs/f2fs/file.c | 10 -- fs/f2fs/inline.c | 6 +++--- fs/f2f

[PATCH 04/12] f2fs: introduce f2fs_i_links_write with mark_inode_dirty_sync

2016-05-24 Thread Jaegeuk Kim
This patch introduces f2fs_i_links_write() to call mark_inode_dirty_sync() when changing inode->i_links. Signed-off-by: Jaegeuk Kim --- fs/f2fs/checkpoint.c | 1 + fs/f2fs/dir.c| 10 +- fs/f2fs/f2fs.h | 9 + fs/f2fs/namei.c | 24 ++-- 4 fi

Re: [GIT PULL] y2038 changes for vfs

2016-05-24 Thread Deepa Dinamani
On Tue, May 24, 2016 at 3:44 PM, Linus Torvalds wrote: > On Tue, May 24, 2016 at 3:23 PM, Linus Torvalds > wrote: >> >> Just as an example: code that does >> >> dir->i_mtime = dir->i_ctime = CURRENT_TIME_SEC; >> >> could pretty mechanically be converted to >> >> dir->i_mtime = dir

Re: [PATCH] drm: rcar-du: EPROBE_DEFER case doesn't need error message

2016-05-24 Thread Kuninori Morimoto
Hi Laurent > > From: Kuninori Morimoto > > > > EPROBE_DEFER is not error, thus, error message on kernel log on this > > case is confusable for user. Prints it only error cases. > > > > Signed-off-by: Kuninori Morimoto > > --- > > drivers/gpu/drm/rcar-du/rcar_du_drv.c | 6 -- > > 1 file c

Re: [PATCH] devicetree - document using aliases to set spi bus number.

2016-05-24 Thread Frank Rowand
On 5/24/2016 4:34 PM, Frank Rowand wrote: > On 5/24/2016 11:32 AM, Mark Brown wrote: >> On Tue, May 24, 2016 at 08:03:48PM +0200, Christer Weinigel wrote: >>> On 05/24/2016 07:20 PM, Mark Brown wrote: >> I'm not sure this is something we want to support at all, I can't immediately see an

Re: [PATCH] f2fs: introduce on-disk layout version checking functionality

2016-05-24 Thread Viacheslav Dubeyko
On Tue, 2016-05-24 at 01:53 -0700, Christoph Hellwig wrote: [snipped] > > That goes on to the next question: why do we even need a config option > for 16TB+ volume support? > I believe that it makes sense to have config option during implementation phase. I mean that it needs to protect this ex

Re: [rcutorture] 8704baab9b: WARNING: CPU: 0 PID: 30 at kernel/rcu/rcuperf.c:363 rcu_perf_writer

2016-05-24 Thread Boqun Feng
On Tue, May 24, 2016 at 11:06:52AM -0700, Paul E. McKenney wrote: > On Mon, May 23, 2016 at 12:35:35PM +0800, Boqun Feng wrote: > > On Sun, May 22, 2016 at 08:28:06AM -0700, Paul E. McKenney wrote: > > > On Sun, May 22, 2016 at 02:26:49PM +0800, Boqun Feng wrote: > > > > Hi Paul, > > > > > > > > O

[PATCH] mtd: ofpart: Assign device node to partitions parsed with ofpart

2016-05-24 Thread Moritz Fischer
This patch adds a struct device_node pointer to struct mtd_partition. Partitions parsed via ofpart can now be referenced via devicetree. Cc: David Woodhouse Cc: Brian Norris Signed-off-by: Moritz Fischer --- Hi all, during my work on another patch series for supporting otp regions as nvmem pr

[PATCH 0/2 v2] drm: rcar-du: EPROBE_DEFER case doesn't need error message

2016-05-24 Thread Kuninori Morimoto
Hi David, Laurent These removes unneeded error message from Renesas DU driver. Current this unneeded error message makes user confuse. Kuninori Morimoto (2): drm: rcar-du: error message is not needed for drm_vblank_init() drm: rcar-du: error message is not needed for EPROBE_DEFER d

[PATCH 1/2 v2] drm: rcar-du: error message is not needed for drm_vblank_init()

2016-05-24 Thread Kuninori Morimoto
From: Kuninori Morimoto The only reason drm_vblank_init() could return an error at the moment is a kcalloc() failure. So we can remove current error message completely. Signed-off-by: Kuninori Morimoto --- v1 -> v2 - just removed error message drivers/gpu/drm/rcar-du/rcar_du_drv.c | 4 +---

[PATCH 2/2 v2] drm: rcar-du: error message is not needed for EPROBE_DEFER

2016-05-24 Thread Kuninori Morimoto
From: Kuninori Morimoto EPROBE_DEFER is not error, thus, error message on kernel log on this case is confusable. Print it only error cases Signed-off-by: Kuninori Morimoto --- v1 -> v2 - only for rcar_du_modeset_init() drivers/gpu/drm/rcar-du/rcar_du_drv.c | 3 ++- 1 file changed, 2 inserti

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Wanpeng Li
2016-05-25 7:37 GMT+08:00 David Matlack : > On Tue, May 24, 2016 at 4:11 PM, Wanpeng Li wrote: >> 2016-05-25 6:38 GMT+08:00 David Matlack : >>> On Tue, May 24, 2016 at 12:57 AM, Wanpeng Li wrote: From: Wanpeng Li If an emulated lapic timer will fire soon(in the scope of 10us the >

Re: [PATCH v2] cpufreq: stats: Walk online CPUs with CPU offline/online locked

2016-05-24 Thread Rafael J. Wysocki
On Wed, May 25, 2016 at 2:00 AM, Rafael J. Wysocki wrote: > On Tuesday, May 24, 2016 05:47:17 PM Viresh Kumar wrote: >> On 24-05-16, 14:13, Rafael J. Wysocki wrote: >> > I don't really get it why you don't like get/put_online_cpus() so much. >> >> Not that I don't like them, I just wanted to see i

Re: [PATCH v2 10/32] perf/x86/intel/cqm: introduce (I)state and limbo prmids

2016-05-24 Thread David Carrillo-Cisneros
>> +static inline bool __pmonr__in_instate(struct pmonr *pmonr) >> +{ >> + lockdep_assert_held(&__pkg_data(pmonr, pkg_data_lock)); >> + return __pmonr__in_istate(pmonr) && !__pmonr__in_ilstate(pmonr); >> } > > This state tracking sucks. It's completely non obvious which combinations of > m

RE: [PATCH RFC kernel] balloon: speed up inflating/deflating process

2016-05-24 Thread Li, Liang Z
> On Tue, May 24, 2016 at 02:36:08PM +, Li, Liang Z wrote: > > > > > > > This can be pre-initialized, correct? > > > > > > > > > > > > pre-initialized? I am not quite understand your mean. > > > > > > > > > > I think you can maintain sg as part of device state and init sg > > > > > with the > >

Re: [PATCH] f2fs: introduce on-disk layout version checking functionality

2016-05-24 Thread Viacheslav Dubeyko
On Tue, 2016-05-24 at 01:52 -0700, Christoph Hellwig wrote: > On Mon, May 23, 2016 at 01:08:05PM -0700, Viacheslav Dubeyko wrote: > > I think that it's some confusion. I didn't introduce any new fields in > > struct f2fs_super_block. The "major_ver" and "minor_ver" fields exist in > > F2FS superblo

Re: [x86/cpufeature] 7b5e74e637: BUG: unable to handle kernel paging request at 6b636170

2016-05-24 Thread Fengguang Wu
8a365a8b71dabad7169896c3e75f253e8b # 01:56 27+ > 0 Merge > 'linux-review/Rajneesh-Bhardwaj/platform-x86-Add-PMC-Driver-for-Intel-Core-SoC/20160524-222735' > into devel-catchup-201605250104 > > git bisect bad 5c7f53f3c9182146efd37be1989f8e23e3b796ff # 02:01

Re: Regression in 4.6.0-git - bisected to commit dd254f5a382c

2016-05-24 Thread Matthew McClintock
> On May 24, 2016, at 6:41 PM, Al Viro wrote: > > Again, I understand what's going on kernel-side; the only tricky part is how > to fix it without bringing the nasal daemons back. I think I have a solution > and I'm going to post it tonight if it survives the local beating. In any > case, the

RE: [PATCH RFC kernel] balloon: speed up inflating/deflating process

2016-05-24 Thread Li, Liang Z
> > > > > > > This is grossly inefficient if you only requested a single page. > > > > > > > And it's also allocating memory very aggressively without > > > > > > > ever telling the host what is going on. > > > > > > > > > > > > If only requested a single page, there is no need to send the > > > >

Re: [PATCH] f2fs: introduce on-disk layout version checking functionality

2016-05-24 Thread Viacheslav Dubeyko
Hi Jaegeuk, On Mon, 2016-05-23 at 14:13 -0700, Jaegeuk Kim wrote: > Hi Slava, > > On Thu, May 19, 2016 at 10:46:06AM -0700, Viacheslav Dubeyko wrote: > ... > > > > +#ifdef CONFIG_F2FS_16TB_VOLUME_SUPPORT > > +#define F2FS_MAX_SUPP_MAJOR_VERSION(2) > > +#define F2FS_MIN_16TB_VOLU

Re: Regression in 4.6.0-git - bisected to commit dd254f5a382c

2016-05-24 Thread Al Viro
On Tue, May 24, 2016 at 07:58:13PM -0500, Matthew McClintock wrote: > > > On May 24, 2016, at 6:41 PM, Al Viro wrote: > > > > Again, I understand what's going on kernel-side; the only tricky part is how > > to fix it without bringing the nasal daemons back. I think I have a > > solution > > an

Re: [PATCH v2 02/12] of: add J-Core cpu bindings

2016-05-24 Thread Rob Herring
On Tue, May 24, 2016 at 4:30 PM, Rob Landley wrote: > > > On 05/23/2016 06:29 PM, Rob Herring wrote: >> On Mon, May 23, 2016 at 4:03 PM, Rich Felker wrote: >>> On Mon, May 23, 2016 at 03:48:46PM -0500, Rob Herring wrote: On Fri, May 20, 2016 at 02:53:03AM +, Rich Felker wrote: > Sign

[PATCH][RESEND v2] of: add missing const for of_parse_phandle_with_args() in !CONFIG_OF

2016-05-24 Thread Kuninori Morimoto
From: Kuninori Morimoto commit 93c667ca2598bd84f1bd3f2fa176af69707699fe ("of: *node argument to of_parse_phandle_with_args should be const") changed to const for struct device node *np, but it cares CONFIG_OF case only, !CONFIG_OF case need it too. Signed-off-by: Kuninori Morimoto --- include/

Re: Regression in 4.6.0-git - bisected to commit dd254f5a382c

2016-05-24 Thread Matthew McClintock
> On May 24, 2016, at 8:10 PM, Al Viro wrote: > > Slap the WARN_ON(!size); in the very beginning of iov_iter_advance(), see > where it's triggered... diff --git a/lib/iov_iter.c b/lib/iov_iter.c index 28cb431..d89e154 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c @@ -488,6 +488,7 @@ EXPORT_S

[PATCH] rcuperf: Don't treat gp_exp mis-setting as a WARN

2016-05-24 Thread Boqun Feng
0day found a boot warning triggered in rcu_perf_writer() on !SMP kernel: WARN_ON(rcu_gp_is_normal() && gp_exp); , the root cause of which is trying to measure expedited grace periods(by setting gp_exp to true by default) when all the grace periods are normal(TINY RCU only has normal grace

Re: [PATCH v4 2/5] locking/rwsem: Protect all writes to owner by WRITE_ONCE

2016-05-24 Thread Waiman Long
On 05/23/2016 02:46 PM, Jason Low wrote: On Sat, 2016-05-21 at 09:04 -0700, Peter Hurley wrote: On 05/18/2016 12:58 PM, Jason Low wrote: It should be fine to use the standard READ_ONCE here, even if it's just for documentation, as it's probably not going to cost anything in practice. It would b

Re: Regression in 4.6.0-git - bisected to commit dd254f5a382c

2016-05-24 Thread Al Viro
On Tue, May 24, 2016 at 08:20:46PM -0500, Matthew McClintock wrote: > > > On May 24, 2016, at 8:10 PM, Al Viro wrote: > > > > Slap the WARN_ON(!size); in the very beginning of iov_iter_advance(), see > > where it's triggered... > > diff --git a/lib/iov_iter.c b/lib/iov_iter.c > index 28cb431..d

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Wanpeng Li
2016-05-25 8:47 GMT+08:00 Wanpeng Li : > 2016-05-25 7:37 GMT+08:00 David Matlack : >> On Tue, May 24, 2016 at 4:11 PM, Wanpeng Li wrote: >>> 2016-05-25 6:38 GMT+08:00 David Matlack : On Tue, May 24, 2016 at 12:57 AM, Wanpeng Li wrote: > From: Wanpeng Li > > If an emulated lapic

Re: [git pull] drm for v4.7

2016-05-24 Thread Stephen Rothwell
Hi Linus, On Mon, 23 May 2016 12:10:25 -0700 Linus Torvalds wrote: > > Is there a patch pending for this that I'm not aware of, or is it just > that nobody but me hates spurious warnings? Didn't this show up in > linux-next? And if it _did_ show up in linux-next, why was the pull > request not t

Re: Regression in 4.6.0-git - bisected to commit dd254f5a382c

2016-05-24 Thread Matthew McClintock
> On May 24, 2016, at 8:28 PM, Al Viro wrote: > > The next obvious question is which binary it is and what's the return > address to userland; make that > if (!size) > printk(KERN_ERR "crap in %s[%x]", > current->comm, > current_pt_

Re: [PATCH v2] cpufreq: stats: Walk online CPUs with CPU offline/online locked

2016-05-24 Thread Viresh Kumar
On 25-05-16, 02:48, Rafael J. Wysocki wrote: > I'm actually considering making the stats code non-modular. > > It won't have a reason to use notifiers then and may be simplified > quite a bit this way. As an added benefit, if it doesn't use the > transition notifier, it won't interfere with fast

Re: [PATCH v4] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Yang Zhang
On 2016/5/25 7:37, David Matlack wrote: On Tue, May 24, 2016 at 4:11 PM, Wanpeng Li wrote: 2016-05-25 6:38 GMT+08:00 David Matlack : On Tue, May 24, 2016 at 12:57 AM, Wanpeng Li wrote: From: Wanpeng Li If an emulated lapic timer will fire soon(in the scope of 10us the base of dynamic halt-

Re: [PATCH v3 7/9] powerpc/powernv: Add platform support for stop instruction

2016-05-24 Thread Shreyas B Prabhu
On 05/24/2016 02:17 PM, Madhavan Srinivasan wrote: > > > On Monday 23 May 2016 08:48 PM, Shreyas B. Prabhu wrote: >> POWER ISA v3 defines a new idle processor core mechanism. In summary, >> a) new instruction named stop is added. This instruction replaces >> instructions like nap, sleep,

Re: [PATCH v3] sched/cputime: add steal time support to full dynticks CPU time accounting

2016-05-24 Thread Wanpeng Li
Ping Paolo or Peterz. 2016-05-25 3:22 GMT+08:00 Rik van Riel : > On Wed, 2016-05-18 at 20:27 +0800, Wanpeng Li wrote: >> From: Wanpeng Li >> >> This patch adds steal guest time support to full dynticks CPU >> time accounting. After 'commit ff9a9b4c4334 ("sched, time: Switch >> VIRT_CPU_ACCOUNTING_

Re: [PATCH v3 7/9] powerpc/powernv: Add platform support for stop instruction

2016-05-24 Thread Shreyas B Prabhu
On 05/24/2016 03:54 PM, Gautham R Shenoy wrote: > Hi Shreyas, > > On Mon, May 23, 2016 at 08:48:40PM +0530, Shreyas B. Prabhu wrote: >> @@ -412,7 +517,8 @@ subcore_state_restored: >> first_thread_in_core: >> >> /* >> - * First thread in the core waking up from fastsleep. It needs to >>

Re: [PATCH v4 3/7] perf tools: Enable overwrite settings

2016-05-24 Thread Wangnan (F)
On 2016/5/25 2:40, Arnaldo Carvalho de Melo wrote: Em Tue, May 24, 2016 at 02:29:00AM +, Wang Nan escreveu: This patch allows following config terms and option: Globally setting events to overwrite; # perf record --overwrite ... Set specific events to be overwrite or no-overwrite.

[PATCH 2/4] samples/jprobe: convert the printk to pr_info/pr_err

2016-05-24 Thread Huang Shijie
We prefer to use the pr_* to print out the log now, this patch converts the printk to pr_info. In the error path, use the pr_err to replace the printk. Signed-off-by: Huang Shijie --- samples/kprobes/jprobe_example.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sampl

[PATCH 3/4] samples/kretprobe: convert the printk to pr_info/pr_err

2016-05-24 Thread Huang Shijie
We prefer to use the pr_* to print out the log now, this patch converts the printk to pr_info. In the error path, use the pr_err to replace the printk. Signed-off-by: Huang Shijie --- samples/kprobes/kretprobe_example.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --g

[PATCH 4/4] samples/kretprobe: fix the wrong type

2016-05-24 Thread Huang Shijie
The regs_return_value() returns "unsigned long" or "long" value. But the retval is int type now, it may cause overflow, the log may becomes: . [ 2911.078869] do_brk returned -2003877888 and took 4620 ns to execute This patch converts the retval to "unsi

Re: [PATCH v2 03/12] of: add J-Core interrupt controller bindings

2016-05-24 Thread Rich Felker
On Tue, May 24, 2016 at 09:09:41AM +0100, Marc Zyngier wrote: > On 23/05/16 22:13, Rich Felker wrote: > > On Mon, May 23, 2016 at 03:53:20PM -0500, Rob Herring wrote: > >> On Fri, May 20, 2016 at 02:53:04AM +, Rich Felker wrote: > >>> Signed-off-by: Rich Felker > >>> --- > >>> .../bindings/in

[PATCH 1/4] samples/kprobe: convert the printk to pr_info/pr_err

2016-05-24 Thread Huang Shijie
We prefer to use the pr_* to print out the log now, this patch converts the printk to pr_info. In the error path, use the pr_err to replace the printk. Signed-off-by: Huang Shijie --- samples/kprobes/kprobe_example.c | 29 - 1 file changed, 12 insertions(+), 17 deleti

Re: [PATCH] rcuperf: Don't treat gp_exp mis-setting as a WARN

2016-05-24 Thread Paul E. McKenney
On Wed, May 25, 2016 at 09:25:33AM +0800, Boqun Feng wrote: > 0day found a boot warning triggered in rcu_perf_writer() on !SMP kernel: > > WARN_ON(rcu_gp_is_normal() && gp_exp); > > , the root cause of which is trying to measure expedited grace > periods(by setting gp_exp to true by default

Re: [PATCH v2 02/12] of: add J-Core cpu bindings

2016-05-24 Thread Rich Felker
On Tue, May 24, 2016 at 08:13:14PM -0500, Rob Herring wrote: > On Tue, May 24, 2016 at 4:30 PM, Rob Landley wrote: > > > > > > On 05/23/2016 06:29 PM, Rob Herring wrote: > >> On Mon, May 23, 2016 at 4:03 PM, Rich Felker wrote: > >>> On Mon, May 23, 2016 at 03:48:46PM -0500, Rob Herring wrote: > >

[PATCH v5] KVM: halt-polling: poll for the upcoming fire timers

2016-05-24 Thread Wanpeng Li
From: Wanpeng Li If an emulated lapic timer will fire soon(in the scope of 10us the base of dynamic halt-polling, lower-end of message passing workload latency TCP_RR's poll time < 10us) we can treat it as a short halt, and poll to wait it fire, the fire callback apic_timer_fn() will set KVM_REQ_

Re: [PATCH v8 08/14] usb: otg: add OTG/dual-role core

2016-05-24 Thread Peter Chen
On Tue, May 24, 2016 at 12:45:46PM +0300, Roger Quadros wrote: > Hi Peter, > > I have one question here. Please see below. > > On 13/05/16 13:03, Roger Quadros wrote: > > It provides APIs for the following tasks > > > > - Registering an OTG/dual-role capable controller > > - Registering Host and

Re: [PATCH v1 1/3] Add the latent_entropy gcc plugin

2016-05-24 Thread Kees Cook
On Tue, May 24, 2016 at 4:40 PM, PaX Team wrote: > On 24 May 2016 at 10:32, Kees Cook wrote: > >> On Mon, May 23, 2016 at 3:15 PM, Emese Revfy wrote: >> > This plugin mitigates the problem of the kernel having too little entropy >> > during >> > and after boot for generating crypto keys. >> > >>

Re: Regression in 4.6.0-git - bisected to commit dd254f5a382c

2016-05-24 Thread Al Viro
On Tue, May 24, 2016 at 09:06:03PM -0500, Matthew McClintock wrote: > > > On May 24, 2016, at 8:28 PM, Al Viro wrote: > > > > The next obvious question is which binary it is and what's the return > > address to userland; make that > > if (!size) > > printk(KERN_ERR "crap in %s[%x

Re: [PATCH 3/3] ARM: configs: keystone: Enable PINCTRL_SINGLE Config

2016-05-24 Thread Keerthy
Hi Santosh, On Tuesday 24 May 2016 09:59 PM, Santosh Shilimkar wrote: Hi Keerthy, On 5/23/2016 8:56 PM, Keerthy wrote: On Tuesday 24 May 2016 09:07 AM, Lokesh Vutla wrote: On Monday 23 May 2016 05:59 PM, Keerthy wrote: keystone-k2l devices use pinmux and are compliant with PINCTRL_SINGLE

Re: [PATCH v2 1/5] thermal: Add support for hardware-tracked trip points

2016-05-24 Thread Caesar Wang
Hi Javi, Thanks your reviewing. On 2016年05月24日 20:57, Javi Merino wrote: On Tue, May 03, 2016 at 05:33:29PM +0800, Caesar Wang wrote: From: Sascha Hauer This adds support for hardware-tracked trip points to the device tree thermal sensor framework. The framework supports an arbitrary number

Re: [PATCH v2 2/5] thermal: of: implement .set_trips for device tree thermal zones

2016-05-24 Thread Caesar Wang
Hi Javi, On 2016年05月24日 21:01, Javi Merino wrote: On Tue, May 03, 2016 at 05:33:30PM +0800, Caesar Wang wrote: From: Sascha Hauer This patch implemnets .set_trips for device tree thermal zones. As the hardware-tracked trip points is supported by thermal core patch[0]. patch[0] "thermal: Add

Re: [Patch v5 5/8] firmware: qcom: scm: Convert to streaming DMA APIS

2016-05-24 Thread Andy Gross
On Mon, May 23, 2016 at 04:02:06PM -0500, Andy Gross wrote: > On 23 May 2016 at 14:26, Kevin Hilman wrote: > > Hi Andy, > > > > On Thu, May 12, 2016 at 8:46 PM, Andy Gross wrote: > >> This patch converts the Qualcomm SCM driver to use the streaming DMA APIs > >> for communication buffers. > >> >

<    2   3   4   5   6   7   8   9   >