Re: [PATCH] f2fs: fix recover orphan inodes

2015-02-25 Thread Wanpeng Li
Hi Jaegeuk, On Wed, Feb 25, 2015 at 10:35:23AM -0800, Jaegeuk Kim wrote: >Hi Wanpeng, > >On Wed, Feb 25, 2015 at 12:53:37PM +0800, Wanpeng Li wrote: >> recover_orphan_inodes is used to recover orphan inodes, the meta pages >> which readahead should be orphan_blkaddr - start_blk instead of >>

Re: [PATCH] powerpc/smp: Wait until secondaries are active & online

2015-02-25 Thread Stewart Smith
Michael Ellerman writes: > Anton has a busy ppc64le KVM box where guests sometimes hit the infamous > "kernel BUG at kernel/smpboot.c:134!" issue during boot: > > BUG_ON(td->cpu != smp_processor_id()); > > Basically a per CPU hotplug thread scheduled on the wrong CPU. The oops > output

Re: [PATCH 1/2] drivers: cpuidle: remove stale irq disabling call in cpuidle_enter_freeze()

2015-02-25 Thread Rafael J. Wysocki
On Wednesday, February 25, 2015 02:39:17 PM Lorenzo Pieralisi wrote: > On Wed, Feb 25, 2015 at 02:13:23PM +, Daniel Lezcano wrote: > > On 02/24/2015 06:58 PM, Lorenzo Pieralisi wrote: > > > On return from cpuidle_enter_freeze() irqs are re-enabled by the function > > > caller (ie

Re: [PATCH v2 00/30] Refine PCI scan interfaces and make generic pci host bridge

2015-02-25 Thread Bjorn Helgaas
On Wed, Jan 21, 2015 at 08:29:55AM +0800, Yijing Wang wrote: > v1->v2: > Split pci_host_bridge_list into a new patch, remove .phb_probe_mode > and rework powerpc .phb_of_scan_bus() for simpilicty suggested by > Arnd. Refresh some patch description log, and add a new patch to fix

Re: [PATCH 4/7] x86: entry.S: use JZ mnemonic after TEST, not JE

2015-02-25 Thread Borislav Petkov
On Wed, Feb 25, 2015 at 01:00:16AM +0100, Denys Vlasenko wrote: > After TEST insn, JE actually performs "jump if zero", > let's use JZ mnemonic instead. > > No code changes, but less confusion. > > Signed-off-by: Denys Vlasenko > CC: Linus Torvalds > CC: Steven Rostedt > CC: Ingo Molnar >

Re: [PATCH] clk: qcom: Properly change rates for ahbix clock

2015-02-25 Thread Kenneth Westfield
On Wed, Feb 25, 2015 at 02:32:07PM -0800, Stephen Boyd wrote: > The ahbix clock can never be turned off. To switch the rates we > need to switch the mux off the M/N counter to an always on source > (XO), reprogram the M/N counter to get the rate we want and > finally switch back to the M/N

Re: [PATCH] PCI/AER: Avoid info leak in __print_tlp_header

2015-02-25 Thread Borislav Petkov
On Wed, Feb 25, 2015 at 12:18:14PM -0800, Bjorn Helgaas wrote: > Why are we worrying about byte order here at all? I'd think we could > just print t->dw0 directly with %08x. Right, my only concern is since this is user-facing, someone/something might depend on its format/byte order. But since no

Re: [PATCH net-next] net: dsa: Introduce dsa_is_port_initialized

2015-02-25 Thread David Miller
From: Guenter Roeck Date: Tue, 24 Feb 2015 23:02:02 -0800 > To avoid race conditions when using the ds->ports[] array, > we need to check if the accessed port has been initialized. > Introduce and use helper function dsa_is_port_initialized > for that purpose and use it where needed. > >

Re: [PATCH] thermal: armada: read stable temp on Armada XP

2015-02-25 Thread Tyler Hall
Gregory, I instantiated both configurations and verified I get essentially the same temperature from both, with the original register having a slightly larger spread. I didn't reproduce any outliers in this run, but I'll keep it running for a while to see if any occur. I'm running this to gather

Re: [PATCH 2/3 v3] x86: entry_64.S: always allocate complete "struct pt_regs"

2015-02-25 Thread Sabrina Dubroca
2015-02-25, 13:59:06 -0800, Andy Lutomirski wrote: > On Wed, Feb 25, 2015 at 1:28 PM, Denys Vlasenko wrote: > > On 02/25/2015 09:10 PM, Andy Lutomirski wrote: > >> On Wed, Feb 25, 2015 at 11:59 AM, Andrey Wagin wrote: > >>> 2015-02-25 21:42 GMT+03:00 Denys Vlasenko : > On 02/25/2015 01:37

Re: [PATCH] x86: svm: don't intercept CR0 TS or MP bit write

2015-02-25 Thread Joel Schopp
On 02/25/2015 02:26 PM, Radim Krčmář wrote: > 2015-02-24 15:25-0600, Joel Schopp: - clr_cr_intercept(svm, INTERCEPT_CR0_WRITE); } else { set_cr_intercept(svm, INTERCEPT_CR0_READ); >>> (There is no point in checking fpu_active if cr0s are equal.) >>> -

[RFC][PATCH 00/19] Add timekeeping tests to kernel selftest

2015-02-25 Thread John Stultz
I've hosted my timekeeping tests on github for the last few years: https://github.com/johnstultz-work/timetests but I suspect not too many folks have actually used them. I've been meaning to get them reworked and submitted into the selftest infrastructure, but haven't had much time until

Re: [PATCH] ACPI / EC: Remove non-standard log emphasis

2015-02-25 Thread Rafael J. Wysocki
On Wednesday, February 25, 2015 03:01:08 PM Scot Doyle wrote: > On Wed, 25 Feb 2015, Zheng, Lv wrote: > ... > > > I was using "+"/"#"/"*" to filter different EC log entries > > > which makes debugging easier. > > > And, if we changed this from pr_info into pr_debug, then we will have

[PATCH 02/19] selftests/timers: Quiet warning due to lack of return check on brk

2015-02-25 Thread John Stultz
The posix_timers.c test has a loop that tries to keep it in kernel space, repeatedly calling brk(). Since its noise, and a failure won't change what the test would do, add a unused value to quiet the warning. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran

[PATCH 01/19] selftests/timers: Cleanup Makefile to make it easier to add future tests

2015-02-25 Thread John Stultz
Try to streamline the makefile so its easier to add timer/timekeeping tests. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz --- tools/testing/selftests/timers/Makefile | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff

[PATCH 04/19] selftests/timers: Add inconsistency-check test from timetests

2015-02-25 Thread John Stultz
This adds my inconsistency-test from my timetests suite, which checks for (single threaded) time inconsistencies across the various clockids. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz --- tools/testing/selftests/timers/Makefile

[PATCH 08/19] selftests/timers: Add threaded time inconsistency test from timetest suite

2015-02-25 Thread John Stultz
Add the threaded time inconsistency test from the timetest suite. This checks for time inconsistencies between cpus, usually associated with clock skew as sometimes found w/ TSCs. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz ---

[PATCH 10/19] selftests/timers: Add adjtimex validation test from timetest suite

2015-02-25 Thread John Stultz
This adds a adjtimex validation test which checks the behavior for a set of valida and invalid inputs. So far this only tests ADJ_FREQUENCY, but hopefully will grow. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz ---

[PATCH 11/19] selftests/timers: Add alarmtimer-suspend test from timetests suite

2015-02-25 Thread John Stultz
This adds the alarmtimer-suspend test from the timetests suite, which tests that the alarmtimers wake the system up from suspend shortly after the time they were set to fire. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz ---

[PATCH 05/19] selftests/timers: Add nsleep-lat test from timetest suite

2015-02-25 Thread John Stultz
Adds my nanosleep latency test from the timetest suite. This checks to make sure we don't see "unreasonable" latencies (> 40ms) when calling nanosleep. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz ---

[PATCH 09/19] selftests/timers: Add mqueue latency test from the timetest suite

2015-02-25 Thread John Stultz
Add test to validate mqueue timeout latency from the timetest suite Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz --- tools/testing/selftests/timers/Makefile | 3 +- tools/testing/selftests/timers/mqueue-lat.c | 113

[PATCH 07/19] selftests/timers: Add set-timer-lat test from timetest suite

2015-02-25 Thread John Stultz
Add my set-timer-lat test from the timetest suite. This test checks the latency from set_timer and reports if any are unreasonable (>40ms). Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz --- tools/testing/selftests/timers/Makefile

[PATCH 13/19] selftests/timers: Add skew_consistency test from the timetests suite

2015-02-25 Thread John Stultz
This change adds the skew_consistency test, which twists the ADJ_FREQUENCY knob back and forth and watches for timekeeping inconsistencies. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz --- tools/testing/selftests/timers/Makefile

[PATCH 06/19] selftests/timers: Add clock skew estimation test from timetest suite

2015-02-25 Thread John Stultz
This adds my clock skew estimation test from the timetest suite. It measures the drift between CLOCK_MONOTONIC and CLOCK_MONOTONIC_RAW and compares it with the current frequency value from adjtimex. It sometimes can trigger false failures when ntpd isn't in a steady state, but its a useful too

[PATCH 12/19] selftests/timers: Add change_skew test from timetest suite

2015-02-25 Thread John Stultz
This patch adds the change_skew test which validates the adjtimex freq can be set to various values and then using the inconsistency-check, raw_skew, and nanosleep tests ensures time behaves properly. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by:

[PATCH 15/19] selftests/timers: Add leap-a-day test from timetest suite

2015-02-25 Thread John Stultz
This change adds the leap-a-day test which sets STA_INS and STA_DEL each day to trigger leapseconds each day. It also has a mode to jump the time to right before the end of the day each iteration. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John

[PATCH 16/19] selftests/timers: Add leapcrash test from the timetest suite

2015-02-25 Thread John Stultz
This change adds the leapcrash test which tests to see if a leapsecond deadlock which was observed from 2.6.26 to 3.3 is present on this system. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz --- tools/testing/selftests/timers/Makefile

Re: [PATCH] OMAPDSS: restore "name" sysfs entry.

2015-02-25 Thread NeilBrown
On Wed, 25 Feb 2015 11:32:18 +0200 Tomi Valkeinen wrote: > Yep, I don't think so. In any case, all this is to be deprecated, and as > soon as omapdrm driver works reliably that should be the driver to use. How close is that? Is it worth experimenting yet? Is there an xorg driver available?

[PATCH 14/19] selftests/timers: Add clocksource-switch test from timetest suite

2015-02-25 Thread John Stultz
Adds the clocksource-switch tests which continually switches the current clocksource between all the available ones, watching for any timekeeping inconsistencies. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz ---

[PATCH 18/19] selftests/timers: Add set-2038 test from timetest suite

2015-02-25 Thread John Stultz
Adds the set-2038 test which sets the time to near-edge cases like the start and end of the 32 bit epoch and checks that time behaves properly. There is also a dangerous mode, which lets the clock roll over past 2038 on 32bit systems, which on some older kernels will cause system hangs. Cc: Shuah

[PATCH 19/19] MAINTAINERS: Add selftests/timers to the timekeeping maintainance list

2015-02-25 Thread John Stultz
Since I'm adding a bunch of tests to selftests/timers, put me on the hook in the maintainers file. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS

[PATCH 03/19] selftests/timers: Add nanosleep test from timetest suite

2015-02-25 Thread John Stultz
Add my basic nanosleep test from my timetest suite. This test validates that nanosleep dosen't return early against a number of clockids. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz --- tools/testing/selftests/timers/Makefile|

[PATCH 17/19] selftests/timers: Add set-tai from the timetest suite

2015-02-25 Thread John Stultz
This patch adds the set-tai test which ensures the tai offset can be set properly from adjtimex. Cc: Shuah Khan Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Richard Cochran Signed-off-by: John Stultz --- tools/testing/selftests/timers/Makefile | 3 +-

[PATCH] clk: qcom: Properly change rates for ahbix clock

2015-02-25 Thread Stephen Boyd
The ahbix clock can never be turned off. To switch the rates we need to switch the mux off the M/N counter to an always on source (XO), reprogram the M/N counter to get the rate we want and finally switch back to the M/N counter. Add a new ops structure for this type of clock so that we can set

Re: [PATCH 1/2] white space formatting in kvm_main.c

2015-02-25 Thread Marcelo Tosatti
On Fri, Feb 20, 2015 at 08:21:36AM -0500, Kevin Mulvey wrote: > Better alignment of loop using tabs rather than spaces, this > makes checkpatch.pl happier. > > Signed-off-by: Kevin Mulvey > --- > virt/kvm/kvm_main.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied both, thanks.

RE: [PATCH 1/2] Drivers: hv: hv_balloon: report offline pages as being used

2015-02-25 Thread KY Srinivasan
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, February 25, 2015 8:56 AM > To: KY Srinivasan > Cc: de...@linuxdriverproject.org; Haiyang Zhang; linux- > ker...@vger.kernel.org; Dexuan Cui > Subject: Re: [PATCH 1/2] Drivers: hv: hv_balloon:

Re: [PATCH 4/4] HID: uclogic: name the input nodes based on their tool

2015-02-25 Thread Nikolai Kondrashov
On 02/25/2015 11:36 PM, Benjamin Tissoires wrote: On Feb 25 2015 or thereabouts, Nikolai Kondrashov wrote: On 02/25/2015 02:05 AM, Benjamin Tissoires wrote: We append "Pen", "Pad", "Mouse" or "Keyboard" suffix to the appropriate input node to match what the Wacom driver does and be more

Re: [PATCH] OMAP: DSS: DPI: disable vt-switch on suspend/resume.

2015-02-25 Thread NeilBrown
On Wed, 25 Feb 2015 12:03:36 +0200 Tomi Valkeinen wrote: > On 25/02/15 11:37, NeilBrown wrote: > > > > These devices do not need to return to non-graphic console > > for suspend, so disable that option. > > This means there is less work to do in the suspend/resume cycle, > > making it smoother

Re: [PATCH] usb: isp1760: fix peripheral/device controller chip id

2015-02-25 Thread Laurent Pinchart
Hi Sudeep, Thank you for the patch. On Tuesday 24 February 2015 17:53:42 Sudeep Holla wrote: > As per the ISP1761 data sheet, the DcChipID register represents > the hardware version number (0015h) and the chip ID (8210h) for the > Peripheral Controller. > > This patch fixes the chip ID value

Re: [PATCH v2] x86: svm: use kvm_register_write()/read()

2015-02-25 Thread Marcelo Tosatti
On Sat, Feb 21, 2015 at 12:21:16AM +0100, Borislav Petkov wrote: > On Fri, Feb 20, 2015 at 04:02:10PM -0600, Joel Schopp wrote: > > From: David Kaplan > > > > KVM has nice wrappers to access the register values, clean up a few places > > that should use them but currently do not. > > > >

Re: [PATCH 2/4] HID: uclogic: merge hid-huion driver in hid-uclogic

2015-02-25 Thread Nikolai Kondrashov
On 02/25/2015 11:28 PM, Benjamin Tissoires wrote: On Feb 25 2015 or thereabouts, Nikolai Kondrashov wrote: On 02/25/2015 02:05 AM, Benjamin Tissoires wrote: Reviewed-by: Nikolai Kondrashov Could I have your Signed-off-by here, it's mainly your patch, and so I kept your From. Sure:

Re: [PATCH v6 0/7] PCI: get DMA configuration from parent device

2015-02-25 Thread Bjorn Helgaas
On Thu, Feb 05, 2015 at 04:52:52PM -0500, Murali Karicheri wrote: > This patch add an important capability to PCI driver on Keystone. I hope to > have this merged to the upstream branch so that it is available for v3.20. > Also would like thank everyone for the contribution. > > PCI devices on

Re: regression in 4.0.0-rc1 with r8169 ethernet

2015-02-25 Thread Rafael J. Wysocki
On Wednesday, February 25, 2015 06:03:56 PM Dave Airlie wrote: > > * v3.19 ignored [io 0x0cf8-0x0cff], but v4.0 includes it. I think > > it's wrong to include it because that's the configuration space > > address/data registers, so it's consumed by the host bridge and not > > produced on the

Re: [PATCH] power: bq27x00_battery: add bq27510 support

2015-02-25 Thread Sebastian Reichel
Hi Alexandre, On Sun, Feb 22, 2015 at 03:08:31PM +0100, Alexandre Belloni wrote: > Add support for bq27510 to the bq27x00 driver. > > Signed-off-by: Alexandre Belloni patch looks mostly fine to me, I have two comments (inline). -- Sebastian > --- > drivers/power/bq27x00_battery.c | 50 >

Re: [PATCH 0/3] CONFIG_DEBUG_SET_MODULE_RONX fixups

2015-02-25 Thread Kees Cook
On Wed, Feb 25, 2015 at 2:14 PM, Laura Abbott wrote: > Hi, > > CONFIG_DEBUG_SET_MODULE_RONX is currently non-functional on arm and arm64 > because of changes in behavior of is_module_addr. This series fixes > both arm and arm64 to work correctly and corrects a minor bug > related to section

[PATCH 3/3] kernel/module.c: Update debug alignment after symtable generation

2015-02-25 Thread Laura Abbott
When CONFIG_DEBUG_SET_MODULE_RONX is enabled, the sizes of module sections are aligned up so appropriate permissions can be applied. Adjusting for the symbol table may cause them to become unaligned. Make sure to re-align the sizes afterward. Signed-off-by: Laura Abbott --- kernel/module.c | 2

[PATCH 0/3] CONFIG_DEBUG_SET_MODULE_RONX fixups

2015-02-25 Thread Laura Abbott
Hi, CONFIG_DEBUG_SET_MODULE_RONX is currently non-functional on arm and arm64 because of changes in behavior of is_module_addr. This series fixes both arm and arm64 to work correctly and corrects a minor bug related to section alignment in modules. Laura Abbott (3): arm64: Don't use

[PATCH 1/3] arm64: Don't use is_module_addr in setting page attributes

2015-02-25 Thread Laura Abbott
The set_memory_* functions currently only support module addresses. The addresses are validated using is_module_addr. That function is special though and relies on internal state in the module subsystem to work properly. At the time of module initialization and calling set_memory_*, it's too

[PATCH 2/3] arm: Don't use is_module_addr in setting page attributes

2015-02-25 Thread Laura Abbott
The set_memory_* functions currently only support module addresses. The addresses are validated using is_module_addr. That function is special though and relies on internal state in the module subsystem to work properly. At the time of module initialization and calling set_memory_*, it's too

Re: [PATCH 5/5] ohci-tmio.c : missing 'break' statements

2015-02-25 Thread Alan Stern
The "break" statements are missing by intention. On Wed, 25 Feb 2015, Ameen Ali wrote: > Redundant bitwise operation on 'pm' in 'switch' statement. Why do you say the operations are redundant? > Signed-off-by : Ameen Ali > --- > drivers/usb/host/ohci-tmio.c | 3 +++ > 1 file changed, 3

Re: [PATCH v5 1/6] clk: add of_clk_get_parent_rate function

2015-02-25 Thread Stephen Boyd
On 02/04/15 16:55, Ray Jui wrote: > Sometimes a clock needs to know the rate of its parent before itself is > registered to the framework. An example is that a PLL may need to > initialize itself to a specific VCO frequency, before registering to the > framework. The parent rate needs to be known,

[PATCH 6/6] qlcnic_dcb.c : possible division by zero.

2015-02-25 Thread Ameen Ali
Whenever there is a division it is usually worthwhile to add some belt'n'braces code to ensure that cnt != 0, otherwise a machine signal can occur. Signed-off-by : Ameen Ali --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: Mess in the /sysfs: class/power_supply/bq2415x

2015-02-25 Thread Pali Rohár
On Wednesday 25 February 2015 22:44:42 Sebastian Reichel wrote: > Hi Pavel, > > On Sat, Jan 31, 2015 at 10:39:19PM +0100, Pavel Machek wrote: > > So we have multiple values in one sysfs file: > > > > root@n900:/sys/class/power_supply# cat bq24150a-0/registers > > 0x00=0x50 > > 0x01=0xc8 > >

Re: SPDX-License-Identifier

2015-02-25 Thread Felipe Balbi
On Wed, Feb 25, 2015 at 10:49:51PM +0100, Pavel Machek wrote: > Hi! > > > > >Is one tag per directory sufficient? Is one tag per file sufficient? > > > >How about one tag per package? If package, then isn't a single tag for > > > >the whole kernel source tree sufficient, as we all know the

[PATCH 3/3] powerpc/oprofile: reduce mmap_sem hold for exe_file

2015-02-25 Thread Davidlohr Bueso
In the future mm->exe_file will be done without mmap_sem serialization, thus isolate and reorganize the related code to make the transition easier. Good users will, make use of the more standard get_mm_exe_file(), requiring only holding the mmap_sem to read the value, and relying on reference

[PATCH 1/3] tile/elf: reorganize notify_exec()

2015-02-25 Thread Davidlohr Bueso
In the future mm->exe_file will be done without mmap_sem serialization, thus isolate and reorganize the tile elf code to make the transition easier. Good users will, make use of the more standard get_mm_exe_file(), requiring only holding the mmap_sem to read the value, and relying on reference

Re: [PATCH 6/6] qlcnic_dcb.c : possible division by zero.

2015-02-25 Thread David Miller
From: Ameen Ali Date: Wed, 25 Feb 2015 23:56:43 +0200 > @@ -822,7 +822,7 @@ qlcnic_dcb_get_pg_tc_cfg_tx(struct net_device *netdev, > int tc, u8 *prio, > if (temp->valid && (pg == temp->pgid)) > cnt++; > } > - > + if(cnt != 0) >

[PATCH -part2 0/3] mm: improve handling of mm->exe_file

2015-02-25 Thread Davidlohr Bueso
we will remove the need for mmap_sem when dealing with exe_file. Applies on top of linux-next (-20150225). The arch bits are entirely 100% untested, so I apologize if there are any stupid build issues. Thanks! Davidlohr Bueso (3): tile/elf: reorganize notify_exec() oprofile: reduce mmap_sem hold for

[PATCH 2/3] oprofile: reduce mmap_sem hold for mm->exe_file

2015-02-25 Thread Davidlohr Bueso
sync_buffer() needs the mmap_sem for two distinct operations, both only occurring upon user context switch handling: 1) Dealing with the exe_file. 2) Adding the dcookie data as we need to lookup the vma that backs it. This is done via add_sample() and add_data(). This patch isolates 1),

Re: [PATCH 2/3 v3] x86: entry_64.S: always allocate complete "struct pt_regs"

2015-02-25 Thread Andy Lutomirski
On Wed, Feb 25, 2015 at 1:28 PM, Denys Vlasenko wrote: > On 02/25/2015 09:10 PM, Andy Lutomirski wrote: >> On Wed, Feb 25, 2015 at 11:59 AM, Andrey Wagin wrote: >>> 2015-02-25 21:42 GMT+03:00 Denys Vlasenko : On 02/25/2015 01:37 PM, Andrey Wagin wrote: > 2015-02-13 0:54 GMT+03:00 Denys

[PATCH 1/2] f2fs: remove obsolete code

2015-02-25 Thread Jaegeuk Kim
This patch removes obsolete code in which summary variable is not needed. Signed-off-by: Jaegeuk Kim --- fs/f2fs/recovery.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index 188a034..b2a92d4 100644 --- a/fs/f2fs/recovery.c +++

[PATCH 01/21] perf trace: Only insert blank duration bracket when tracing syscalls

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When printing just events, i.e. '--no-sys --ev some:events' it makes no sense to waste screen space. Before: # trace --no-sys --ev probe:* 84481.704 ( ): probe:vfs_getname:(811ed023) pathname="/etc/services") 84481.892 ( ):

[PATCH 05/21] perf trace: Introduce --filter-pids

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When tracing in X we get event loops due to the tracing activity, i.e. updates to a gnome-terminal that generate syscalls for X.org, etc. To get a more useful view of what is happening, syscall wise, system wide, we need to filter those, like in: # ps ax|egrep

[PATCH 6/6] qlcnic_dcb.c : possible division by zero.

2015-02-25 Thread Ameen Ali
Whenever there is a division it is usually worthwhile to add some belt'n'braces code to ensure that cnt != 0, otherwise a machine signal can occur. Signed-off-by : Ameen Ali --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 2/2] f2fs: avoid wrong error during recovery

2015-02-25 Thread Jaegeuk Kim
From: Jaegeuk Kim During the roll-forward recovery, -ENOENT for f2fs_iget can be skipped. So, this error value should not be propagated. Change-Id: I230ad2371e3fb4b9df42059c4a61f92c1f9838de Signed-off-by: Jaegeuk Kim --- fs/f2fs/recovery.c | 4 +++- 1 file changed, 3 insertions(+), 1

[PATCH 06/21] perf trace: Add man page entry for --event

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Forgot to do it when adding the feature. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link:

Re: [PATCH] vhost: drop hard-coded num_buffers size

2015-02-25 Thread David Miller
From: "Michael S. Tsirkin" Date: Tue, 24 Feb 2015 17:31:10 +0100 > The 2 that we use for copy_to_iter comes from sizeof(u16), > it used to be that way before the iov iter update. > Fix it up, making it obvious the size of stack access > is right. > > Signed-off-by: Michael S. Tsirkin Michael,

Re: [v3 24/26] KVM: Update Posted-Interrupts Descriptor when vCPU is blocked

2015-02-25 Thread Marcelo Tosatti
On Fri, Dec 12, 2014 at 11:14:58PM +0800, Feng Wu wrote: > This patch updates the Posted-Interrupts Descriptor when vCPU > is blocked. > > pre-block: > - Add the vCPU to the blocked per-CPU list > - Clear 'SN' > - Set 'NV' to POSTED_INTR_WAKEUP_VECTOR > > post-block: > - Remove the vCPU from the

Re: [PATCH] ltc2941-battery-gauge: Fix typo in conversion formula (58 instead of 85)

2015-02-25 Thread Sebastian Reichel
Hi, On Wed, Feb 11, 2015 at 12:36:51PM +0100, Mike Looijmans wrote: > The driver reported 30% less than actually measured. This turned out to > be caused by a simple typo in the formula to calculate the LSB quantity. This is in my for-next queue since some time already and will be send to

Re: bq2415x_charger, bq27x00_battery.c: comment cleanups

2015-02-25 Thread Sebastian Reichel
Hi Pavel, On Wed, Feb 11, 2015 at 11:47:16AM +0100, Pavel Machek wrote: > Cleanup comments for bq2415x_charger, bq27x00_battery.c. Thanks, added to battery-2.6.git. -- Sebastian signature.asc Description: Digital signature

[PATCH 14/21] perf tools: Introduce dump_stack signal helper

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To use in stdio based tools, like 'trace'. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane Eranian Link:

Re: [GIT PULL 00/21] perf/record improvements and fixes

2015-02-25 Thread Arnaldo Carvalho de Melo
Bummer, the subject should've been: [GIT PULL 00/21] perf/core improvements and fixes ;-\ - Arnaldo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 1/2] ab8500_fg: match return type of wait_for_completion_timeout

2015-02-25 Thread Sebastian Reichel
Hi, On Mon, Feb 09, 2015 at 12:20:45PM -0500, Nicholas Mc Guire wrote: > return type of wait_for_completion_timeout is unsigned long not int. as > timeout is used for wait_for_completion_timeout exclusively here its > type is simply changed to unsigned long. thanks, applied to battery-2.6.git.

[PATCH 12/21] perf session: Remove perf_session from dump_event

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo All it wants is session->evlist. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link:

Re: [PATCH v2 2/2] HID: wacom: add full support of the Wacom Bamboo PAD

2015-02-25 Thread Benjamin Tissoires
On Feb 25 2015 or thereabouts, Ping Cheng wrote: > On Wed, Feb 25, 2015 at 8:43 AM, Benjamin Tissoires > wrote: > > The stylus of this device works just fine out of the box. > > The touch is seen by default as a mouse with relative events and some > > gestures. > > The wireless and the wired

Re: [PATCH 2/2] ab8500_fg: use jiffies_to_msecs for jiffies conversion

2015-02-25 Thread Sebastian Reichel
Hi, On Mon, Feb 09, 2015 at 12:21:05PM -0500, Nicholas Mc Guire wrote: > Converting jiffies to milliseconds by "val * 1000 / HZ" is technically > OK but jiffies_to_msecs(val) is the cleaner solution and handles all > corner cases correctly. This is a minor API consolidation only and > should make

[PATCH 15/21] perf trace: Dump stack on segfaults

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo [root@ssdandy ~]# perf trace --filter-pids 16348 0.000 ( 0.000 ms): tuned/1027 ... [continued]: select()) = 0 Timeout 793.770 ( 0.000 ms): lsmd/895 ... [continued]: select()) = 0 Timeout 793.775 (793.724 ms): tuned/1027 select(tvp: 0x7f766e50)

Re: [PATCH] powerpc/smp: Wait until secondaries are active & online

2015-02-25 Thread Stewart Smith
Michael Ellerman writes: > Anton has a busy ppc64le KVM box where guests sometimes hit the infamous > "kernel BUG at kernel/smpboot.c:134!" issue during boot: > > BUG_ON(td->cpu != smp_processor_id()); > > Basically a per CPU hotplug thread scheduled on the wrong CPU. The oops > output confirms

Re: sequential I/O on SSD disk varies from 20 to 300 MBytes/s every week

2015-02-25 Thread Pavel Machek
Hi! > During the testing period of about 5 months I have concluded: > > 1) There are 3 identical Fujitsu RX200 S6 test servers which all show the > same problem, but I also reproduced it on some Sun Fire and Dell server. > > 2) The problem happens with both HW RAID (MegaRAID SAS 2108) and when

Re: SPDX-License-Identifier

2015-02-25 Thread Pavel Machek
Hi! > > >Is one tag per directory sufficient? Is one tag per file sufficient? > > >How about one tag per package? If package, then isn't a single tag for > > >the whole kernel source tree sufficient, as we all know the overall > > >license for the kernel source tree. > > > > We really need one

Re: [PATCH perf/core ] perf-probe: Check kprobes blacklist when adding new events

2015-02-25 Thread Arnaldo Carvalho de Melo
Em Thu, Feb 19, 2015 at 11:31:13PM +0900, Masami Hiramatsu escreveu: > Recent linux kernel provides a blacklist of the functions which > can not be probed. perf probe can now check this blacklist before > setting new events and indicate better error message for users. > > Without this patch, >

Re: [capabilities] Allow normal inheritance for a configurable set of capabilities

2015-02-25 Thread Pavel Machek
On Mon 2015-02-02 18:08:06, Serge Hallyn wrote: > Quoting Casey Schaufler (ca...@schaufler-ca.com): > > I'm game to participate in such an effort. The POSIX scheme > > is workable, but given that it's 20 years old and hasn't > > developed real traction it's hard to call it successful. > > Over

Re: [capabilities] Allow normal inheritance for a configurable set of capabilities

2015-02-25 Thread Pavel Machek
Hi! > > A key concept behind posix capabilities is that the privilege comes from > > both the person and the file being executed. As you say below basically > > anything can be executed by the program so that is completely violated. > > Well this patch does not change that. Its just that the

[PATCH 19/21] perf tools: Add new 'perf data' command

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding new 'perf data' command to provide operations over data files. The 'perf data convert' sub command is coming in following patch, but there's possibility for other useful commands like 'perf data ls' (to display perf data file in directory in ls style). Signed-off-by:

Re: [PATCH 05/11] perf data: Add tracepoint events fields CTF conversion support

2015-02-25 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 20, 2015 at 11:17:02PM +0100, Jiri Olsa escreveu: > From: Sebastian Andrzej Siewior > Adding support to convert tracepoint event fields into CTF > event fields. > We parse each tracepoint event for CTF conversion and add > tracepoint fields as regular CTF event fields, so they >

Re: "advanced" LED controllers

2015-02-25 Thread Pavel Machek
On Mon 2015-02-23 16:58:36, Felipe Balbi wrote: > On Mon, Feb 23, 2015 at 11:34:57PM +0100, Pavel Machek wrote: > > On Thu 2015-02-19 15:14:24, Felipe Balbi wrote: > > > Hi, > > > > > > Do we have support for LED controllers which can handle patterns of > > > different kinds ? I mean, currently,

[PATCH 20/21] perf data: Add perf data to CTF conversion support

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding 'perf data convert' to convert perf data file into different format. This patch adds support for CTF format conversion. To convert perf.data into CTF run: $ perf data convert --to-ctf=./ctf-data/ [ perf data convert: Converted 'perf.data' into CTF data './ctf-data/' ]

[PATCH 18/21] perf tools: Add feature check for libbabeltrace

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding feature check for babeltrace library [1], which will be used for perf data file CTF [2] conversion in following patches. The babeltrace library is now automatically detected as standard feature. It's possible to specify LIBBABELTRACE_DIR make variable to specify location

[PATCH 13/21] perf ordered_events: Stop using tool->ordered_events

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To figure out if ordered_events are being used when doing a flush operation, it is enough to check if there were in fact some events queued, i.e. look at oe->nr_events. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic

[PATCH 16/21] perf tools: Print the thread's tid on PERF_RECORD_COMM events when -D is asked

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Namhyung Kim Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-fmto8ft6jrtwz09dxn5d4...@git.kernel.org Signed-off-by: Arnaldo Carvalho de

[PATCH 17/21] perf record: Support recording running/enabled time

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Andi Kleen Add an option to perf record to record running/enabled time for read events, similar to what stat does. This is useful to understand multiplexing problems. Right now the report support is not great, but at least report -D already supports it. Signed-off-by: Andi Kleen

[PATCH 10/21] perf session: Remove perf_session from warn_errors signature

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link:

[PATCH 03/21] perf trace: Filter out the trace pid when no threads are specified

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To avoid tracing the tracer. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link:

[PATCH 21/21] perf data: Add a 'perf' prefix to the generic fields

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Sebastian Andrzej Siewior Some of the tracers bring their own id or pid fields and we can end up having two of them. This patch adds a "perf_" prefix to the 'generic' fields so we avoid a clash of the member names. The change is visible in the babeltrace output: Before: $ babeltrace

[PATCH 04/21] perf evlist: Introduce set_filter_pids method

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We need to filter multiple pids in trace, i.e. trace itself, gnome-terminal, X.org, etc. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Peter Zijlstra Cc:

[PATCH 11/21] perf session: Remove perf_session from some deliver event routines

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Further untangling perf_session from plain event delivery routines. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian

[PATCH 07/21] perf trace: Separate routine that handles an event from the one that reads it

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Because we need to use ordered_events in some cases, so we will need to first have them in a queue, order that queue, and then process the event. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc:

[PATCH 09/21] perf evlist: Adopt events_stats from perf_session

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo For tools that don't deal with perf.data files, thus do not need to use perf_session. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Peter Zijlstra Cc:

[PATCH 08/21] perf session: Remove wrappers to machines__find

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Start to untangle session from delivering samples, as there are tools that want to use ordered_events and don't use perf_session at all. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike

[PATCH 02/21] perf evlist: Introduce set_filter_pid method

2015-02-25 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo To filter out events for a certain pid, for instance, when tracing system wide, so that the tracer itself doesn't creates an event loop. Cc: Adrian Hunter Cc: Borislav Petkov Cc: David Ahern Cc: Don Zickus Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike

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