[PATCH v6 2/7] perf tools: Derive trigger class from auxtrace_snapshot

2016-04-20 Thread Wang Nan
auxtrace_snapshot_state matches trigger model. Use trigger to implement it. auxtrace_snapshot_state and auxtrace_snapshot_err are absorbed. Signed-off-by: Wang Nan Cc: Adrian Hunter Cc: He Kuang Cc: Jiri Olsa

[PATCH 2/3] kernel.h: add u64_to_user_ptr()

2016-04-20 Thread Gustavo Padovan
From: Gustavo Padovan This function had copies in 3 different files. Unify them in kernel.h. Cc: Joe Perches Cc: Andrew Morton Cc: David Airlie Cc: Daniel Vetter Cc: Rob

[PATCH 1/3] staging/android: remove redundant comments on sync_merge_data

2016-04-20 Thread Gustavo Padovan
From: Gustavo Padovan struct sync_merge_data already have documentation on top of the struct definition. No need to duplicate it. Signed-off-by: Gustavo Padovan Reviewed-by: Maarten Lankhorst

[PATCH 3/3] staging/android: refactor SYNC IOCTLs

2016-04-20 Thread Gustavo Padovan
From: Gustavo Padovan Change SYNC_IOC_FILE_INFO (former SYNC_IOC_FENCE_INFO) behaviour to avoid future API breaks and optimize buffer allocation. Now num_fences can be filled by the caller to inform how many fences it wants to retrieve from the kernel. If the

[PATCH v3] locking/pvqspinlock: Add lock holder CPU argument to pv_wait()

2016-04-20 Thread Waiman Long
Pan Xinhui was asking for a lock holder cpu argument in pv_wait() to help the porting of pvqspinlock to PPC. The new argument will can help hypervisor expediate the execution of the critical section by the lock holder, if its vCPU isn't running, so that it can release the lock sooner. The

[PATCH 12/14] mm, oom: protect !costly allocations some more

2016-04-20 Thread Michal Hocko
From: Michal Hocko should_reclaim_retry will give up retries for higher order allocations if none of the eligible zones has any requested or higher order pages available even if we pass the watermak check for order-0. This is done because there is no guarantee that the

[PATCH 14/14] mm, oom, compaction: prevent from should_compact_retry looping for ever for costly orders

2016-04-20 Thread Michal Hocko
From: Michal Hocko "mm: consider compaction feedback also for costly allocation" has removed the upper bound for the reclaim/compaction retries based on the number of reclaimed pages for costly orders. While this is desirable the patch did miss a mis interaction between reclaim,

[PATCH 10/14] mm, oom: rework oom detection

2016-04-20 Thread Michal Hocko
From: Michal Hocko __alloc_pages_slowpath has traditionally relied on the direct reclaim and did_some_progress as an indicator that it makes sense to retry allocation rather than declaring OOM. shrink_zones had to rely on zone_reclaimable if shrink_zone didn't make any progress

[PATCH 04/14] mm, compaction: distinguish COMPACT_DEFERRED from COMPACT_SKIPPED

2016-04-20 Thread Michal Hocko
From: Michal Hocko try_to_compact_pages can currently return COMPACT_SKIPPED even when the compaction is defered for some zone just because zone DMA is skipped in 99% of cases due to watermark checks. This makes COMPACT_DEFERRED basically unusable for the page allocator as a

Re: [PATCH] iio: inv_mpu6050: Add support for auxiliary I2C master

2016-04-20 Thread Peter Rosin
Crestez Dan Leonard wrote: > The MPU has an auxiliary I2C bus for connecting external > sensors. This bus has two operating modes: > * pass-through, which connects the primary and auxiliary busses > together. This is already supported via an i2c mux. > * I2C master mode, where the mpu60x0 acts as

[PATCH 2/5] x86, KASLR: Drop CONFIG_RANDOMIZE_BASE_MAX_OFFSET

2016-04-20 Thread Kees Cook
From: Baoquan He Currently CONFIG_RANDOMIZE_BASE_MAX_OFFSET is used to limit the maximum offset for kernel randomization. This limit doesn't need to be a CONFIG since it is tied completely to KERNEL_IMAGE_SIZE, and will make no sense once physical and virtual offsets are

[PATCH 1/5] x86, KASLR: Update description for decompressor worst case size

2016-04-20 Thread Kees Cook
From: Baoquan He The comment that describes the analysis for the size of the decompressor code only took gzip into account (there are currently 6 other decompressors that could be used). The actual z_extract_offset calculation in code was already handling the correct maximum

[PATCH 4/5] x86, boot: Make memcpy handle overlaps

2016-04-20 Thread Kees Cook
Two uses of memcpy (screen scrolling and ELF parsing) were handling overlapping memory areas. While there were no explicitly noticed bugs here (yet), it is best to fix this so that the copying will always be safe. Instead of making a new memmove function that might collide with other memmove

Re: [PATCH] drivers: led: is31fl319x: 6/9-channel light effect led driver

2016-04-20 Thread Jacek Anaszewski
Hi Nikolaus, On 04/19/2016 07:21 PM, H. Nikolaus Schaller wrote: Hi David, Am 19.04.2016 um 03:25 schrieb David Rivshin (Allworx) : [...] +struct is31fl319x_chip { + struct i2c_client *client; + struct work_struct work; + bool

Re: fs: GPF in locked_inode_to_wb_and_lock_list

2016-04-20 Thread Tejun Heo
Hello, Dmitry. On Mon, Apr 18, 2016 at 11:44:11AM +0200, Dmitry Vyukov wrote: > general protection fault: [#1] SMP DEBUG_PAGEALLOC KASAN ... > RIP: 0010:[] [] > locked_inode_to_wb_and_lock_list+0xa2/0x750 > RSP: 0018:88006cdaf7d0 EFLAGS: 00010246 > RAX: RBX:

Re: [PATCH for-4.6-fixes] memcg: remove lru_add_drain_all() invocation from mem_cgroup_move_charge()

2016-04-20 Thread Tejun Heo
Hello, Michal. On Sun, Apr 17, 2016 at 08:07:48AM -0400, Michal Hocko wrote: > On Fri 15-04-16 15:17:19, Tejun Heo wrote: > > mem_cgroup_move_charge() invokes lru_add_drain_all() so that the pvec > > pages can be moved too. lru_add_drain_all() schedules and flushes > > work items on system_wq

Re: [RFC PATCH 02/13] tools: Add ubpf feature test

2016-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 20, 2016 at 06:01:42PM +, Wang Nan escreveu: > Add test-ubpf.c to find libubpf, which can be found from [1]. > > ubpf is user space BPF engine. Following commits will utilize ubpf > to make perf dynamically run some profiling scripts in user space. > > [1]

Re: [PATCH] mm: move huge_pmd_set_accessed out of huge_memory.c

2016-04-20 Thread kbuild test robot
Hi, [auto build test ERROR on v4.6-rc4] [also build test ERROR on next-20160420] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Yang-Shi/mm-move-huge_pmd_set_accessed-out-of-huge_memory-c

Re: [RFC PATCH 04/13] bpf tools: Replace fd array to union array

2016-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 20, 2016 at 06:01:44PM +, Wang Nan escreveu: > Following commits will add new types for instance of a bpf program. > For kernel bpf program, a program instance is fd. For ubpf program, > the instance of a program is a 'struct ubpf_vm'. This patch promote > original 'fds' array to

[for-next][PATCH 17/30] tracing: Add hist trigger syscall modifier

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to have syscall id fields displayed as syscall names in the output by appending '.syscall' to field names: # echo hist:keys=aaa.syscall ... \ [ if filter] > event/trigger Link:

[for-next][PATCH 07/30] tracing: Update some tracing_map constants and comments

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Make it clear exactly how many keys and values are supported through better defines, and add 1 to the vals count, since normally clients want support for at least a hitcount and two other values. Also, note the error return value for

Re: [RFC PATCH 06/13] bpf tools: Introduce ubpf_vm to program instance union

2016-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 20, 2016 at 06:01:46PM +, Wang Nan escreveu: > Add 'struct ubpf_vm *' into prog_instance union. Introduce if_engine() > macro to merge common code. > > Signed-off-by: Wang Nan > Cc: Arnaldo Carvalho de Melo > Cc: Alexei Starovoitov

[for-next][PATCH 03/30] tracing: Add infrastructure to allow set_event_pid to follow children

2016-04-20 Thread Steven Rostedt
From: Steven Rostedt Add the infrastructure needed to have the PIDs in set_event_pid to automatically add PIDs of the children of the tasks that have their PIDs in set_event_pid. This will also remove PIDs from set_event_pid when a task exits This is implemented by adding

[for-next][PATCH 00/30] tracing: Add features for event-fork and histograms

2016-04-20 Thread Steven Rostedt
git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace.git for-next Head SHA1: d50c744ecde7ee3ba4d7ffb0e1c55e7a2f6bbc8e Masami Hiramatsu (3): kselftests/ftrace : Add event trigger testcases kselftests/ftrace: Add hist trigger testcases kselftests/ftrace: Add a

Re: [PATCH 1/2] kernfs_path_from_node_locked: don't overwrite nlen

2016-04-20 Thread Tejun Heo
On Sun, Apr 17, 2016 at 03:04:31PM -0500, serge.hal...@ubuntu.com wrote: > From: Serge Hallyn > > We've calculated @len to be the bytes we need for '/..' entries from > @kn_from to the common ancestor, and calculated @nlen to be the extra > bytes we need to get from the

Re: [PATCH] char: Drop bogus dependency of DEVPORT on !M68K

2016-04-20 Thread Al Stone
On 04/11/2016 02:40 AM, Geert Uytterhoeven wrote: > According to full-history-linux commit d3794f4fa7c3edc3 ("[PATCH] M68k > update (part 25)"), port operations are allowed on m68k if CONFIG_ISA is > defined. > > However, commit 153dcc54df826d2f ("[PATCH] mem driver: fix conditional > on isa i/o

[PATCH 11/14] mm: throttle on IO only when there are too many dirty and writeback pages

2016-04-20 Thread Michal Hocko
From: Michal Hocko wait_iff_congested has been used to throttle allocator before it retried another round of direct reclaim to allow the writeback to make some progress and prevent reclaim from looping over dirty/writeback pages without making any progress. We used to do

[PATCH 13/14] mm: consider compaction feedback also for costly allocation

2016-04-20 Thread Michal Hocko
From: Michal Hocko PAGE_ALLOC_COSTLY_ORDER retry logic is mostly handled inside should_reclaim_retry currently where we decide to not retry after at least order worth of pages were reclaimed or the watermark check for at least one zone would succeed after reclaiming all pages if

[PATCH 09/14] mm: use compaction feedback for thp backoff conditions

2016-04-20 Thread Michal Hocko
From: Michal Hocko THP requests skip the direct reclaim if the compaction is either deferred or contended to reduce stalls which wouldn't help the allocation success anyway. These checks are ignoring other potential feedback modes which we have available now. It clearly doesn't

[PATCH v3] MCS spinlock: Use smp_cond_load_acquire() in spin loop

2016-04-20 Thread Jason Low
This patch applies on top of: git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/rfc --- For qspinlocks on ARM64, we would like to use WFE instead of purely spinning. Qspinlocks internally have lock contenders spin on an MCS lock. Update arch_mcs_spin_lock_contended() such

Re: [PATCH -tip v3 3/3] locking/pvqspinlock: Robustify init_qspinlock_stat()

2016-04-20 Thread Waiman Long
On 04/20/2016 12:17 AM, Davidlohr Bueso wrote: locking/pvqspinlock: Robustify init_qspinlock_stat() Specifically around the debugfs file creation calls, I have no idea if they could ever possibly fail, but this is core code (debug aside) so lets at least check the return value and inform

[GIT PULL 1/2] bcm2835 DT changes for 4.7

2016-04-20 Thread Eric Anholt
Linux 4.6-rc1 (2016-03-26 16:03:24 -0700) are available in the git repository at: https://github.com/anholt/linux tags/bcm2835-dt-next-2016-04-20 for you to fetch changes up to 896ad420db8d5ec4cc4727b786d15e28eb59b366: dt/bindings: bcm2835: correct description for DMA-int (2016-04-19

Re: [PATCH] lib: make sg_pool explicitly non-modular

2016-04-20 Thread Ming Lin
On Wed, 2016-04-20 at 15:13 -0400, Paul Gortmaker wrote: > The recently added Kconfig controlling compilation of this code is: > > lib/Kconfig:config SG_POOL > lib/Kconfig:def_bool n > > ...meaning that it currently is not being built as a module by anyone. > > Lets remove the modular code

Re: [PATCH 10/11] x86, rwsem: provide __down_write_killable

2016-04-20 Thread Borislav Petkov
On Wed, Apr 20, 2016 at 11:04:05AM -0700, H. Peter Anvin wrote: > The reason it breaks is because the same register can't be an > input-output register and a separate input. However, the input side of > the input-output is probably undefined, and so gcc may not notice. So Michal and I talked

[PATCH 3/5] x86, boot: Clean up things used by decompressors

2016-04-20 Thread Kees Cook
This rearranges the pieces needed to include the decompressor code in misc.c. It wasn't obvious why things were there, so a comment was added and definitions consolidated. Signed-off-by: Kees Cook --- arch/x86/boot/compressed/misc.c | 8 1 file changed, 4

[PATCH] coresight: etb10: fixing the right amount of words to read

2016-04-20 Thread Mathieu Poirier
This patch rectifies the amount of words to read when the internal buffer is deemed bigger than the amount of space available in the perf ring buffer. The amount to read is set to the amount of space in the perf ring buffer rather than being subtracted by it. Reported-by: Suzuki K Poulose

Re: [PATCH] mm: move huge_pmd_set_accessed out of huge_memory.c

2016-04-20 Thread kbuild test robot
Hi, [auto build test ERROR on v4.6-rc4] [also build test ERROR on next-20160420] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Yang-Shi/mm-move-huge_pmd_set_accessed-out-of-huge_memory-c

[for-next][PATCH 08/30] tracing: Add hist event trigger command

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi 'hist' triggers allow users to continually aggregate trace events, which can then be viewed afterwards by simply reading a 'hist' file containing the aggregation in a human-readable format. The basic idea is very simple and boils down to a

[for-next][PATCH 25/30] tracing: Add support for named hist triggers

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to define 'named' hist triggers. All triggers created with the same 'name=xxx' option will update the same shared histogram data. This expands the hist trigger syntax from this: # echo hist:keys=xxx ... [ if filter] >

[for-next][PATCH 12/30] tracing: Add hist trigger support for pausing and continuing a trace

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to append 'pause' or 'continue' to an existing trigger in order to have it paused or to have a paused trace continue. This expands the hist trigger syntax from this: # echo hist:keys=xxx:vals=yyy:sort=zzz.descending \ [ if

[for-next][PATCH 13/30] tracing: Add hist trigger support for clearing a trace

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to append 'clear' to an existing trigger in order to have the hash table cleared. This expands the hist trigger syntax from this: # echo hist:keys=xxx:vals=yyy:sort=zzz.descending:pause/cont \ [ if filter] >>

[for-next][PATCH 30/30] tracing: Fix unsigned comparison to zero in hist trigger code

2016-04-20 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Fengguang Wu's bot found two comparisons of unsigned integers to zero. These were real bugs, as it would miss error conditions returned to zero. trace_events_hist.c:426:6-9: WARNING: Unsigned expression compared with zero: idx < 0

[for-next][PATCH 21/30] tracing: Add enable_hist/disable_hist triggers

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Similar to enable_event/disable_event triggers, these triggers enable and disable the aggregation of events into maps rather than enabling and disabling their writing into the trace buffer. They can be used to automatically start and stop hist

[GIT PULL 2/2] bcm2835 defconfig changes for 4.7

2016-04-20 Thread Eric Anholt
Linux 4.6-rc1 (2016-03-26 16:03:24 -0700) are available in the git repository at: https://github.com/anholt/linux tags/bcm2835-defconfig-next-2016-04-20 for you to fetch changes up to 3652bb35abf6ee11333cbec1d2855c1c0f9f6b27: ARM: bcm2835: Enable NFS root support. (2016-04-04 11:03:30

[RFC 0/3] net: dsa: cross-chip operations

2016-04-20 Thread Vivien Didelot
This patchset aims to start a thread on cross-chips operations in DSA, no need to spend time on reviewing the details of the code (especially for mv88e6xxx). So when several switch chips are interconnected, we need to configure them all to ensure correct hardware switching. We can think about

Re: [PATCH v3 1/2] ext4: Pass in DIO_SKIP_DIO_COUNT flag if inode_dio_begin() called

2016-04-20 Thread Christoph Hellwig
FYI, none of the Dax code even needs to ever touch the dio_count, as dax I/O can't be asynchronous, and we thus don't need it to protect against truncate. I'd suggest to remove it and then end_io callback from the DAX code entirely as a start and then move from there.

Re: [PATCH 10/11] x86, rwsem: provide __down_write_killable

2016-04-20 Thread Michal Hocko
On Wed 20-04-16 22:45:01, Borislav Petkov wrote: > On Wed, Apr 20, 2016 at 11:04:05AM -0700, H. Peter Anvin wrote: > > The reason it breaks is because the same register can't be an > > input-output register and a separate input. However, the input side of > > the input-output is probably

Re: [RFC PATCH 05/13] bpf tools: Save engine type in bpf_program

2016-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 20, 2016 at 06:01:45PM +, Wang Nan escreveu: > Add an 'engine' field in bpf_program to indicate whether a program is a > ubpf program or kernel bpf program. For compatibility, the default > engine is kernel bpf, unless explicitly set to ubpf using > bpf_program__set_ubpf(). > >

[for-next][PATCH 05/30] tracing: Add lock-free tracing_map

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Add tracing_map, a special-purpose lock-free map for tracing. tracing_map is designed to aggregate or 'sum' one or more values associated with a specific object of type tracing_map_elt, which is associated by the map to a given key. It provides

[for-next][PATCH 22/30] tracing: Add hist trigger Documentation

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Add documentation and usage examples for 'hist' triggers. Link: http://lkml.kernel.org/r/2e13f35f47fea6d647f0efefccfc9673ea84b29f.1457029949.git.tom.zanu...@linux.intel.com Signed-off-by: Tom Zanussi Tested-by:

[for-next][PATCH 11/30] tracing: Add hist trigger support for user-defined sorting (sort= param)

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to specify keys and/or values to sort on. With this addition, keys and values specified using the 'keys=' and 'vals=' keywords can be used to sort the hist trigger output via a new 'sort=' keyword. If multiple sort keys are specified,

[for-next][PATCH 14/30] tracing: Add hist trigger hex modifier for displaying numeric fields

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to have numeric fields displayed as hex values in the output by appending '.hex' to field names: # echo hist:keys=aaa,bbb.hex:vals=ccc.hex ... \ [ if filter] > event/trigger Link:

[for-next][PATCH 15/30] tracing: Add hist trigger sym and sym-offset modifiers

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to have address fields displayed as symbols in the output by appending '.sym' or 'sym-offset' to field names: # echo hist:keys=aaa.sym,bbb.sym-offset ... \ [ if filter] > event/trigger Link:

[for-next][PATCH 28/30] tracing: Add hist trigger log2 modifier

2016-04-20 Thread Steven Rostedt
From: Namhyung Kim Allow users to have numeric fields displayed as log2 values in case value range is very wide by appending '.log2' to field names. For example, # echo 'hist:key=bytes_req' > kmalloc/trigger # cat kmalloc/hist { bytes_req:504 } hitcount:

[PATCH 03/14] mm, compaction: cover all compaction mode in compact_zone

2016-04-20 Thread Michal Hocko
From: Michal Hocko the compiler is complaining after "mm, compaction: change COMPACT_ constants into enum" mm/compaction.c: In function ‘compact_zone’: mm/compaction.c:1350:2: warning: enumeration value ‘COMPACT_DEFERRED’ not handled in switch [-Wswitch] switch (ret) { ^

[PATCH 0.14] oom detection rework v6

2016-04-20 Thread Michal Hocko
Hi, This is v6 of the series. The previous version was posted [1]. The code hasn't changed much since then. I have found one old standing bug (patch 1) which just got much more severe and visible with this series. Other than that I have reorganized the series and put the compaction feedback

[PATCH 08/14] mm, compaction: Abstract compaction feedback to helpers

2016-04-20 Thread Michal Hocko
From: Michal Hocko Compaction can provide a wild variation of feedback to the caller. Many of them are implementation specific and the caller of the compaction (especially the page allocator) shouldn't be bound to specifics of the current implementation. This patch abstracts

[PATCH 05/14] mm, compaction: distinguish between full and partial COMPACT_COMPLETE

2016-04-20 Thread Michal Hocko
From: Michal Hocko COMPACT_COMPLETE now means that compaction and free scanner met. This is not very useful information if somebody just wants to use this feedback and make any decisions based on that. The current caller might be a poor guy who just happened to scan tiny portion

Re: [PATCH v2 2/2] asus-laptop: correct error handling in sysfs_acpi_set

2016-04-20 Thread Darren Hart
On Sat, Apr 16, 2016 at 03:01:57AM +0300, Giedrius Statkevičius wrote: > Properly return rv back to the caller in the case of an error in > parse_arg. In the process remove a unused variable 'out'. The initial problem if I recall was value being uninitialized. Is that correct? > >

Re: [PATCH 0/7] IB/hfi1: Remove write() and use ioctl() for user access

2016-04-20 Thread Jason Gunthorpe
On Thu, Apr 14, 2016 at 01:52:44PM -0400, Dennis Dalessandro wrote: > The eprom device is for low level programming of the eprom on the > chip. We do not use i2c for this because the eprom is directly > attached to the chip and not accessible via i2c, requires register > access. Okay, but the

[PATCH] media: fix media_open() to not release lock too soon

2016-04-20 Thread Shuah Khan
media_open() releases media_devnode_lock before open is complete. Hold the lock to call mdev->fops->open and release at the end. Signed-off-by: Shuah Khan --- drivers/media/media-devnode.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

Re: [PATCH] drivers: led: is31fl319x: 6/9-channel light effect led driver

2016-04-20 Thread Jacek Anaszewski
Hi Nikolaus, On 04/19/2016 07:21 PM, H. Nikolaus Schaller wrote: Hi Jacek, Am 19.04.2016 um 11:14 schrieb Jacek Anaszewski : Hi Nikolaus, Thanks for the patch. Please refer to my remarks in the code. Thanks for the remarks! You're welcome. On 04/18/2016

Re: [PATCH V2 2/9] ras: acpi/apei: cper: generic error data entry v3 per ACPI 6.1

2016-04-20 Thread Baicar, Tyler
Hello Suzuki, On 4/14/2016 4:22 AM, Suzuki K Poulose wrote: On 06/04/16 16:12, Tyler Baicar wrote: Currently when a RAS error is reported it is not timestamped. The ACPI 6.1 spec adds the timestamp field to the generic error data entry v3 structure. The timestamp of when the firmware generated

Re: [PATCH 7/8] drm/qxl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:47, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:28PM +0200, Noralf Trønnes wrote: Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, instead of

Re: [PATCH v10 RESEND 2/3] kernel.h: add u64_to_user_ptr()

2016-04-20 Thread Gustavo Padovan
2016-04-20 Maarten Lankhorst : > Op 19-04-16 om 22:42 schreef Gustavo Padovan: > > From: Gustavo Padovan > > > > This function had copies in 3 different files. Unify them in kernel.h. > > > > Cc: Joe Perches >

Re: [PATCH v7 0/8]/[PULL REQUEST] Trim unused exported kernel symbols

2016-04-20 Thread Nicolas Pitre
On Wed, 20 Apr 2016, Nicolas Pitre wrote: > On Wed, 20 Apr 2016, Michal Marek wrote: > > > Dne 19.4.2016 v 05:32 Nicolas Pitre napsal(a): > > > Ping ! > > > > > > /me only hears back empty cave echoes ... > > > > Pulled now, sorry for the delay. > > Thanks! Looking at your kbuild branch, I

[for-next][PATCH 24/30] tracing: Add support for named triggers

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Named triggers are sets of triggers that share a common set of trigger data. An example of functionality that could benefit from this type of capability would be a set of inlined probes that would each contribute event counts, for example, to a

[for-next][PATCH 20/30] tracing: Remove restriction on string position in hist trigger keys

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi If we assume the maximum size for a string field, we don't have to worry about its position. Since we only allow two keys in a compound key and having more than one string key in a given compound key doesn't make much sense anyway, trading a bit of

[for-next][PATCH 06/30] tracing: Fix TRACING_MAP Kconfig

2016-04-20 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The config option for TRACING_MAP has "default n", which is not needed because the default of configs is 'n'. Also, since the TRACING_MAP has no config prompt, there's no reason to include "If in doubt, say N" in the help text. Fixed a typo

[for-next][PATCH 18/30] tracing: Add hist trigger support for stacktraces as keys

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi It's often useful to be able to use a stacktrace as a hash key, for keeping a count of the number of times a particular call path resulted in a trace event, for instance. Add a special key named 'stacktrace' which can be used as key in a 'keys='

[PATCH v3] ARM: dts: imx6: Add dts for Embest MarS Board

2016-04-20 Thread Sergio Prado
Embest MarS Board [1] is a multi-core platform based on Freescale i.MX6 Cortex-A9 Dual Core, running up to 1GHz with 1 GB of RAM, 4GB of eMMC and with a 4MB SPI flash. [1] http://www.embest-tech.com/shop/star/marsboard.html Signed-off-by: Sergio Prado --- Changes

[RESEND] Re: updating carl9170-1.fw in linux-firmware.git

2016-04-20 Thread Christian Lamparter
On Wednesday, April 20, 2016 10:59:44 AM Kalle Valo wrote: > Christian Lamparter writes: > > > On Monday, April 18, 2016 07:42:05 PM Kalle Valo wrote: > >> Christian Lamparter writes: > >> > >> > On Monday, April 18, 2016 06:45:09 PM Kalle Valo

[PATCH v6 0/7] perf tools: Use SIGUSR2 control data dumpping

2016-04-20 Thread Wang Nan
v5 -> v6: Improve trigger class: rename (Suggested by Namhyung Kim) toggle -> hit; don't generate functions for each trigger, use generic functions instead. Patch cleanup: switch auxtrace_snapshot to trigger in a isolated patch (2/7). Cc: Wang Nan

[PATCH v6 1/7] perf tools: Introduce trigger class

2016-04-20 Thread Wang Nan
Use 'trigger' to model operations which need to be executed when an event (a signal, for example) is observed. States and transits: OFF--(on)--> READY --(hit)--> HIT ^ | |(ready) | |

[PATCH v6 4/7] perf record: Force enable --timestamp-filename when --switch-output is provided

2016-04-20 Thread Wang Nan
Without this patch, the last output doesn't have timestamp appended if --timestamp-filename is not explicitly provided. For example: # perf record -a --switch-output & [1] 11224 # kill -s SIGUSR2 11224 [ perf record: dump data: Woken up 1 times ] # [ perf record: Dump

[PATCH v6 3/7] perf record: Split output into multiple files via '--switch-output'

2016-04-20 Thread Wang Nan
Allow 'perf record' to split its output into multiple files. For example: # ~/perf record -a --timestamp-filename --switch-output & [1] 10763 # kill -s SIGUSR2 10763 [ perf record: dump data: Woken up 1 times ] # [ perf record: Dump perf.data.2015122622314468 ] # kill -s SIGUSR2

[PATCH v6 5/7] perf record: Disable buildid cache options by default in switch output mode

2016-04-20 Thread Wang Nan
The cost of buildid cache processing is high: reading all events in output perf.data, opening each elf file to read buildids then copying them into ~/.debug directory. In switch output mode, these heavy works block perf from receiving perf events for too long. Enable no-buildid and

Re: [PATCH 8/8] drm/udl: Use drm_fb_helper deferred_io support

2016-04-20 Thread Noralf Trønnes
Den 20.04.2016 19:59, skrev Daniel Vetter: On Wed, Apr 20, 2016 at 05:25:29PM +0200, Noralf Trønnes wrote: Use the fbdev deferred io support in drm_fb_helper. The (struct fb_ops *)->fb_{fillrect,copyarea,imageblit} functions will now be deferred in the same way that mmap damage is, instead of

[for-next][PATCH 23/30] tracing: Add support for multiple hist triggers per event

2016-04-20 Thread Steven Rostedt
From: Tom Zanussi Allow users to define any number of hist triggers per trace event. Any number of hist triggers may be added for a given event, which may differ by key, value, or filter. Reading the event's 'hist' file will display the output of all the hist

[for-next][PATCH 27/30] kselftests/ftrace: Add hist trigger testcases

2016-04-20 Thread Steven Rostedt
From: Masami Hiramatsu Add the hist trigger testcases for ftracetest. This checks the basic histogram trigger behaviors like as; - Histogram trigger itself - Histogram with string key - Histogram with compound keys - Histogram with sort key - Histogram

Re: [PATCH 1/3] staging/android: remove redundant comments on sync_merge_data

2016-04-20 Thread Gustavo Padovan
I messed up with the subject prefix, but this is v11, adds typecheck() to patch 2. 2016-04-20 Gustavo Padovan : > From: Gustavo Padovan > > struct sync_merge_data already have documentation on top of the > struct definition. No need to

Re: [RFC PATCH 07/13] bpf tools: Load ubpf program

2016-04-20 Thread Arnaldo Carvalho de Melo
Em Wed, Apr 20, 2016 at 06:01:47PM +, Wang Nan escreveu: > In bpf_program__load(), load ubpf program according to its engine type. > > API is improvemented to hold 'struct ubpf_vm *'. > > Signed-off-by: Wang Nan > Cc: Arnaldo Carvalho de Melo > Cc:

Re: [PATCH v2] ARM: dts: imx6: Add dts for Embest MarS Board

2016-04-20 Thread Sergio Prado
Hi Fabio, On 19-04-2016 08:34, Fabio Estevam wrote: On Mon, Apr 11, 2016 at 9:25 PM, Sergio Prado wrote: + { + pinctrl-names = "default"; + pinctrl-0 = <_enet>; + phy-mode = "rgmii"; + phy-reset-gpios = < 31 GPIO_ACTIVE_HIGH>; Are you

[PATCH 02/14] mm, compaction: change COMPACT_ constants into enum

2016-04-20 Thread Michal Hocko
From: Michal Hocko compaction code is doing weird dances between COMPACT_FOO -> int -> unsigned long but there doesn't seem to be any reason for that. All functions which return/use one of those constants are not expecting any other value so it really makes sense to define an

stable-security kernel updates

2016-04-20 Thread Sasha Levin
Hi all, Updates for stable-security kernels have been released: - v3.12.58-security - v3.14.67-security - v3.18.31-security - v4.1.22-security - v4.4.8-security - v4.5.2-security They are available at:

[RFC 3/3] net: dsa: mv88e6xxx: setup PVT

2016-04-20 Thread Vivien Didelot
Instead of allowing any external frame to egress any internal port, configure the Cross-chip Port VLAN Table (PVT) to forbid that. When an external source port joins or leaves a bridge crossing this switch, mask it in the PVT to allow or forbid frames to egress. Add support for the cross-chip

[RFC 2/3] net: dsa: mv88e6xxx: initialize PVT

2016-04-20 Thread Vivien Didelot
Expand the Cross-chip Port Based VLAN Table initilization code, and make sure the "5 Bit Port" bit is cleared. This commit doesn't make any functional change to the current code. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx.c | 48

[RFC 1/3] net: dsa: add cross-chip notification for bridge

2016-04-20 Thread Vivien Didelot
When multiple switch chips are chained together, one needs to know about the bridge membership of others. For instance, switches like Marvell 6352 have cross-chip port-based VLAN table to allow or forbid cross-chip frames to egress. Add a cross_chip_bridge DSA driver function, used to notify a

Re: [PATCH] mm: move huge_pmd_set_accessed out of huge_memory.c

2016-04-20 Thread Shi, Yang
Hi folks, I didn't realize pmd_* functions are protected by CONFIG_TRANSPARENT_HUGEPAGE on the most architectures before I made this change. Before I fix all the affected architectures code, I want to check if you guys think this change is worth or not? Thanks, Yang On 4/20/2016 11:24

Re: [PATCH 10/11] x86, rwsem: provide __down_write_killable

2016-04-20 Thread H. Peter Anvin
On 04/20/2016 01:45 PM, Borislav Petkov wrote: > On Wed, Apr 20, 2016 at 11:04:05AM -0700, H. Peter Anvin wrote: >> The reason it breaks is because the same register can't be an >> input-output register and a separate input. However, the input side of >> the input-output is probably undefined, and

Re: [Letux-kernel] [PATCH 5/5] input: twl6040-vibra: remove mutex

2016-04-20 Thread H. Nikolaus Schaller
Hi Dmitry, > Am 20.04.2016 um 20:15 schrieb Dmitry Torokhov : > > On Wed, Apr 20, 2016 at 08:10:28PM +0200, H. Nikolaus Schaller wrote: >> Hi, >> >>> Am 20.04.2016 um 19:49 schrieb Dmitry Torokhov : >>> >>> On Wed, Apr 20, 2016 at

[PATCH v6 6/7] perf record: Re-synthesize tracking events after output switching

2016-04-20 Thread Wang Nan
Tracking events describe kernel and threads. They are generated by reading /proc/kallsyms, /proc/*/maps and /proc/*/task/* during initialization of 'perf record', serialized into event sequences and put at the head of 'perf.data'. In case of output switching, each output file should contain those

[PATCH v6 7/7] perf record: Generate tracking events for process forked by perf

2016-04-20 Thread Wang Nan
With 'perf record --switch-output' without -a, record__synthesize() in record__switch_output() won't generate tracking events because there's no thread_map in evlist. Which causes newly created perf.data doesn't contain map and comm information. This patch creates a fake thread_map and directly

Re: [PATCH v2 1/1] arm64: dts: NS2 secondary core enablement via PSCI

2016-04-20 Thread Scott Branden
Looks good while we are using PSCI-1.0 Acked-by: Scott Branden On 16-04-20 10:40 AM, Luke Starrett wrote: Declare PSCI-1.0 node and enable CPU_ON method via PSCI. Spin-table memreserve has been removed as well as syscon based reset, as PSCI-1.0 expects reset

Re: [PATCH] mm: move huge_pmd_set_accessed out of huge_memory.c

2016-04-20 Thread kbuild test robot
Hi, [auto build test ERROR on v4.6-rc4] [also build test ERROR on next-20160420] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Yang-Shi/mm-move-huge_pmd_set_accessed-out-of-huge_memory-c

Re: [PATCH 1/2] x86/arch_prctl: add ARCH_SET_{COMPAT,NATIVE} to change compatible mode

2016-04-20 Thread Peter Zijlstra
On Wed, Apr 20, 2016 at 08:40:23AM -0700, Andy Lutomirski wrote: > Do LBR, PEBS, and similar report user regs or do they merely want to > know the instruction format? If the latter, I could whip up a tiny > function to do just that (like perf_get_regs_user but just for ABI -- > it would be

[PATCH 06/14] mm, compaction: Update compaction_result ordering

2016-04-20 Thread Michal Hocko
From: Michal Hocko compaction_result will be used as the primary feedback channel for compaction users. At the same time try_to_compact_pages (and potentially others) assume a certain ordering where a more specific feedback takes precendence. This gets a bit awkward when we have

[PATCH 01/14] vmscan: consider classzone_idx in compaction_ready

2016-04-20 Thread Michal Hocko
From: Michal Hocko while playing with the oom detection rework [1] I have noticed that my heavy order-9 (hugetlb) load close to OOM ended up in an endless loop where the reclaim hasn't made any progress but did_some_progress didn't reflect that and compaction_suitable was

[PATCH] drm/vc4: Add support for gamma ramps.

2016-04-20 Thread Eric Anholt
We could possibly save a bit of power by not requesting gamma conversion when the ramp happens to be 1:1, but at least if all the CRTCs are off the SRAM will be disabled. This should fix brightness sliders in a lot of fullscreen games. Signed-off-by: Eric Anholt ---

Re: [PATCH v2 5/5] dax: handle media errors in dax_do_io

2016-04-20 Thread Christoph Hellwig
On Fri, Apr 15, 2016 at 12:11:36PM -0400, Jeff Moyer wrote: > > + if (IS_DAX(inode)) { > > + ret = dax_do_io(iocb, inode, iter, offset, blkdev_get_block, > > NULL, DIO_SKIP_DIO_COUNT); > > + if (ret == -EIO && (iov_iter_rw(iter) == WRITE)) > > +

  1   2   3   4   5   6   7   8   9   10   >