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

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

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 versi

[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: http://lkml.kernel.org/n/tip-6w96

[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: http://lkml.kernel.org/n/tip-79kjmerlw6d88csyx1afz...@git.kerne

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

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 http://vger.kernel.org/majordomo-info.html

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

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 Torvald

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,

[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: http://lkml.kernel.org/n/

[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 deletion(

[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 '9

[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 a/dr

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

2015-02-25 Thread Davidlohr Bueso
ill 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), for

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 V

[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 +++ b/fs/f2fs/recovery.c

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

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) > tc_cfg->bwg_perc

[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 ( ): probe:vfs_ge

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

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 overa

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 > > 0x02=

[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 a/dr

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,

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 insert

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

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

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

[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

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 alignm

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: 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 down

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 Key

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: Signed-

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

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 use

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 a

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 conveni

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

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.

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

[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 +- tools/testing/selftests/timers/set-tai.

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

[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 b/MAINTAINE

[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 --- tools/testing/selftests

[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? M

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

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

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

[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 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 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 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 --- tools/testi

[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 --- tools/testing/selftests/timers/Mak

[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 --- tools/testing/selfte

[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 --- tools/

[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

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 Signed-off

[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] 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.) >>> -

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 PM

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

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] 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 counter.

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 > CC:

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

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

[PATCH v2] phy: armada375-usb2: Set drvdata for phy and use it

2015-02-25 Thread Axel Lin
At the context we have pointer to struct phy, it's useful to call phy_get_drvdata() to get the address of cluster_phy. This has slightly better readability than calling dev_get_drvdata(phy->dev.parent). Signed-off-by: Axel Lin --- v2: update commit log drivers/phy/phy-armada375-usb2.c | 3 ++- 1

Re: [PATCH 2/2] drivers: cpuidle: add driver/device checks in cpuidle_enter_freeze()

2015-02-25 Thread Rafael J. Wysocki
On Wednesday, February 25, 2015 02:47:37 PM Lorenzo Pieralisi wrote: > On Wed, Feb 25, 2015 at 02:30:49PM +, Daniel Lezcano wrote: > > On 02/24/2015 06:58 PM, Lorenzo Pieralisi wrote: > > > The changes in commit: > > > > > > 381063133246 ("PM / sleep: Re-implement suspend-to-idle handling") > >

[RFC 00/21] Richacls

2015-02-25 Thread Andreas Gruenbacher
Hello, here is an updated richacl patch queue, also available in git [1]. For those who might not know, richacls are an implementation of NFSv4 ACLs that cleanly integrates into the POSIX file permission model. The goal is to improve interoperability between Linux and other systems, mainly acros

[PATCH v2] coresight-stm: adding driver for CoreSight STM component

2015-02-25 Thread Mathieu Poirier
From: Pratik Patel This driver adds support for the STM CoreSight IP block, allowing any system compoment (HW or SW) to log and aggregate messages via a single entity. The STM exposes an application defined number of channels called stimulus port. Configuration is done using entries in sysfs an

Re: [PATCH 2/2] fbcon: expose cursor blink interval via sysfs

2015-02-25 Thread Scot Doyle
On Wed, 25 Feb 2015, Pavel Machek wrote: > On Mon 2015-01-26 20:41:53, Scot Doyle wrote: > > The fbcon cursor, when set to blink, is hardcoded to toggle display state > > five times per second. Expose this setting via > > /sys/class/graphics/fbcon/cursor_blink_ms > > > > Values written to the inte

Re: [PATCH 2/2] rockchip: efuse: add efuse driver for rk3288 efuse

2015-02-25 Thread Heiko Stübner
Hi Jianqun, Am Dienstag, 2. Dezember 2014, 23:04:57 schrieb Jianqun: > 在 12/01/2014 10:10 PM, Heiko Stübner 写道: > > Am Montag, 1. Dezember 2014, 15:34:41 schrieb Jianqun Xu: > >> Add driver for efuse found on rk3288 board based on rk3288 SoC. > >> Driver will read fuse information of chip at the b

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

2015-02-25 Thread Sabrina Dubroca
2015-02-25, 23:40:55 +0100, Sabrina Dubroca wrote: > I can run some userspace programs, but I have no idea what would be > helpful. > I can also try booting a real machine with archlinux/systemd tomorrow. I got a good boot out of kernels that normally fail. I booted systemd's emergency shell and

Re: [PATCH 0/5] Rename regulator_set_optimum_mode

2015-02-25 Thread Bjorn Andersson
On Wed, Feb 11, 2015 at 7:35 PM, Bjorn Andersson wrote: > Changing the name of the regulator_set_optimum_mode() to > regulator_set_load() better reflects that the API is doing. > Any comments on this? I'm going to propose a patch to the mmc framework calling this api, so it would be good to know

[RFC 04/21] vfs: Add MAY_CREATE_FILE and MAY_CREATE_DIR permission flags

2015-02-25 Thread Andreas Gruenbacher
Richacls distinguish between creating non-directories and directories. To support that, add an isdir parameter to may_create(). When checking inode_permission() for create permission, pass in an additional MAY_CREATE_FILE or MAY_CREATE_DIR mask flag. To allow checking for delete *and* create acces

[RFC 17/21] vfs: Cache base_acl objects in inodes

2015-02-25 Thread Andreas Gruenbacher
POSIX ACLs and richacls are both objects allocated by kmalloc() with a reference count which are freed by kfree_rcu(). An inode can either cache an access and a default POSIX ACL, or a richacl. (Richacls do not have default acls). To allow an inode to cache either of the two kinds of acls, intro

[RFC 20/21] ext4: Implement rich acl for ext4

2015-02-25 Thread Andreas Gruenbacher
From: "Aneesh Kumar K.V" Support the richacl permission model in ext4. The richacls are stored in "system.richacl" xattrs. Richacls need to be enabled by tune2fs or at file system create time. Signed-off-by: Andreas Gruenbacher --- fs/ext4/Kconfig | 15 fs/ext4/Makefile | 1 + fs/

[RFC 21/21] ext4: Add richacl feature flag

2015-02-25 Thread Andreas Gruenbacher
From: "Aneesh Kumar K.V" This feature flag selects richacl instead of posix acl support on the file system. In addition, the "acl" mount option is needed for enabling either of the two kinds of acls. Signed-off-by: Andreas Gruenbacher --- fs/ext4/ext4.h | 6 -- fs/ext4/super.c | 41 +

[RFC 19/21] vfs: Add richacl permission checking

2015-02-25 Thread Andreas Gruenbacher
Hook the richacl permission checking function into the vfs. Signed-off-by: Andreas Gruenbacher --- fs/namei.c | 51 +-- fs/posix_acl.c | 6 +++--- 2 files changed, 52 insertions(+), 5 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index a8

[RFC 18/21] vfs: Cache richacl in struct inode

2015-02-25 Thread Andreas Gruenbacher
Cache richacls in struct inode so that this doesn't have to be done individually in each filesystem. This is similar to POSIX ACLs. Signed-off-by: Andreas Gruenbacher --- fs/inode.c | 11 +-- fs/posix_acl.c | 2 +- fs/richacl_base.c | 81

[RFC 16/21] richacl: xattr mapping functions

2015-02-25 Thread Andreas Gruenbacher
Map between "system.richacl" xattrs and the in-kernel representation. Signed-off-by: Andreas Gruenbacher --- fs/Makefile | 2 +- fs/richacl_xattr.c| 131 ++ include/linux/richacl_xattr.h | 47 +++ 3 files change

[RFC 15/21] richacl: Automatic Inheritance

2015-02-25 Thread Andreas Gruenbacher
Automatic Inheritance (AI) allows changes to the acl of a directory to recursively propagate down to files and directories in the directory. To implement this, the kernel keeps track of which permissions have been inherited, and makes sure that permission propagation is turned off when the file pe

[RFC 13/21] richacl: Create-time inheritance

2015-02-25 Thread Andreas Gruenbacher
When a new file is created, it can inherit an acl from its parent directory; this is similar to how default acls work in POSIX (draft) ACLs. As with POSIX ACLs, if a file inherits an acl from its parent directory, the intersection between the create mode and the permissions granted by the inherite

[RFC 14/21] richacl: Check if an acl is equivalent to a file mode

2015-02-25 Thread Andreas Gruenbacher
This function is used to avoid storing richacls if the acl can be computed from the file permission bits. Signed-off-by: Andreas Gruenbacher --- fs/richacl_base.c | 54 + include/linux/richacl.h | 1 + 2 files changed, 55 insertions(+) diff

[RFC 11/21] richacl: Update the file masks in chmod()

2015-02-25 Thread Andreas Gruenbacher
Doing a chmod() sets the file mode, which includes the file permission bits. When a file has a richacl, the permissions that the richacl grants need to be limited to what the new file permission bits allow. This is done by setting the file masks in the richacl to what the file permission bits map

[RFC 08/21] richacl: In-memory representation and helper functions

2015-02-25 Thread Andreas Gruenbacher
A richacl consists of an NFSv4 acl and an owner, group, and other mask. These three masks correspond to the owner, group, and other file permission bits, but they contain NFSv4 permissions instead of POSIX permissions. Each entry in the NFSv4 acl applies to the file owner (OWNER@), the owning grou

[RFC 10/21] richacl: Compute maximum file masks from an acl

2015-02-25 Thread Andreas Gruenbacher
Compute upper bound owner, group, and other file masks with as few permissions as possible without denying any permissions that the NFSv4 acl in a richacl grants. This algorithm is used when a file inherits an acl at create time and when an acl is set via a mechanism that does not specify file mod

[RFC 12/21] richacl: Permission check algorithm

2015-02-25 Thread Andreas Gruenbacher
A richacl grants a requested access if the NFSv4 acl in the richacl grants the requested permissions (according to the NFSv4 permission check algorithm) and the file mask that applies to the process includes the requested permissions. Signed-off-by: Andreas Gruenbacher --- fs/richacl_base.c

<    2   3   4   5   6   7   8   9   >