Re: [RFC v2] Support volatile range for anon vma

2012-11-28 Thread John Stultz
On 11/21/2012 04:36 PM, John Stultz wrote: 2) Being able to use this with tmpfs files. I'm currently trying to better understand the rmap code, looking to see if there's a way to have try_to_unmap_file() work similarly to try_to_unmap_anon(), to allow allow users to madvise() on mma

Re: [RFC v7 00/11] Support vrange for anonymous page

2013-03-20 Thread John Stultz
ks? I'll continue working with the patches and try to get tmpfs support added here soon. Also, attached is a simple cleanup patch that you might want to fold in. thanks -john >From 10f50e53ae706d61591b3247bc494b47a79f2b69 Mon Sep 17 00:00:00 2001 From: John Stultz Date: Wed, 20 Mar

Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2013-02-05 Thread John Stultz
On 02/05/2013 02:13 PM, Stephane Eranian wrote: On Fri, Feb 1, 2013 at 3:18 PM, Pawel Moll wrote: Hello, I'd like to revive the topic... On Tue, 2012-10-16 at 18:23 +0100, Peter Zijlstra wrote: On Tue, 2012-10-16 at 12:13 +0200, Stephane Eranian wrote: Hi, There are many situations where w

Re: [RFE PATCH] time, Fix setting of hardware clock in NTP code

2013-02-07 Thread John Stultz
ardware clock in the ntp code. This patch adds sys_time_offset which > indicates that an offset has been applied in warp_clock(). > > Signed-off-by: Prarit Bhargava > Cc: John Stultz > Cc: Thomas Gleixner > --- > include/linux/time.h |1 + > kernel/time.c|

Re: [RFE PATCH] time, Fix setting of hardware clock in NTP code

2013-02-07 Thread John Stultz
On 02/07/2013 10:20 AM, Prarit Bhargava wrote: On 02/07/2013 12:24 PM, John Stultz wrote: On Thu, Feb 7, 2013 at 5:29 AM, Prarit Bhargava wrote: We do not see this manifest on some architectures because they limit changes to the rtc to +/-15 minutes of the current value of the rtc (x86

Re: [RFC PATCH 1/6] kernel: implement queue spinlock API

2013-02-07 Thread John Stultz
but this can be stored in the lock word. I believe that John Stultz worked on something like this some years back, so added him to CC. Oh yea, its been quite awhile. Here are some of the discussion threads google remembers for me: http://marc.info/?l=lse-tech&m=101227079817027&w=

Re: [PATCH] time, Fix setting of hardware clock in NTP code

2013-02-08 Thread John Stultz
On Fri, Feb 8, 2013 at 4:55 AM, Prarit Bhargava wrote: > diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c > index 24174b4..e98f6b7 100644 > --- a/kernel/time/ntp.c > +++ b/kernel/time/ntp.c > @@ -510,8 +510,12 @@ static void sync_cmos_clock(struct work_struct *work) > } > > getns

Re: [PATCH] time, Fix setting of hardware clock in NTP code

2013-02-08 Thread John Stultz
On 02/08/2013 02:59 PM, Prarit Bhargava wrote: At init time, if the system time is "warped" forward in warp_clock() it will differ from the hardware clock by sys_tz.tz_minuteswest. This time difference is not taken into account when ntp updates the hardware clock, and this causes the system time

Re: [PATCH] time, Fix setting of hardware clock in NTP code

2013-02-08 Thread John Stultz
On 02/08/2013 03:44 PM, Prarit Bhargava wrote: On 02/08/2013 06:12 PM, John Stultz wrote: On 02/08/2013 02:59 PM, Prarit Bhargava wrote: Ok, I've got this queued in my tree. What sort of testing did you do with it? I want to make sure we don't run into any bad interactions with th

[GIT PULL] time: One more change for 3.9

2013-02-08 Thread John Stultz
Hey Thomas, Wanted to get one more change queued for 3.9 from Prarit. Let me know if you have any objections. thanks -john The following changes since commit 6f16eebe1ff82176339a0439c98ebec9768b0ee2: timekeeping: Switch HAS_PERSISTENT_CLOCK to ALWAYS_USE_PERSISTENT_CLOCK (2013-01-29 14

Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2013-04-02 Thread John Stultz
On 04/02/2013 12:54 AM, Peter Zijlstra wrote: On Mon, 2013-04-01 at 11:29 -0700, John Stultz wrote: I'm still not sold on the CLOCK_PERF posix clock. The semantics are still too hand-wavy and implementation specific. How about we define the semantics as: match whatever comes out of perf

Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2013-04-03 Thread John Stultz
On 04/03/2013 10:19 AM, Pawel Moll wrote: On Tue, 2013-04-02 at 17:19 +0100, John Stultz wrote: But if we're going to have to do this via a clockid, I'm going to want it to be done via a dynamic posix clockid, so its clear its tightly tied with perf and not considered a generic interf

Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2013-04-03 Thread John Stultz
On 04/03/2013 10:35 AM, Pawel Moll wrote: On Wed, 2013-04-03 at 18:29 +0100, John Stultz wrote: On 04/03/2013 10:19 AM, Pawel Moll wrote: On Tue, 2013-04-02 at 17:19 +0100, John Stultz wrote: But if we're going to have to do this via a clockid, I'm going to want it to be done via

Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2013-04-03 Thread John Stultz
On 04/03/2013 07:22 AM, Stephane Eranian wrote: On Wed, Apr 3, 2013 at 4:14 PM, David Ahern wrote: On 4/3/13 8:00 AM, Stephane Eranian wrote: Why not have perf convert its perf_clock timestamps into monotonic or realtime when dumping events? So this is exactly what I've been wondering throug

[RFC PATCH 1/4] vrange: Make various vrange.c local functions static

2013-04-03 Thread John Stultz
: san...@google.com Cc: Paul Turner Cc: Johannes Weiner Cc: Michel Lespinasse Cc: Andrew Morton Cc: Minchan Kim Signed-off-by: John Stultz --- mm/vrange.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mm/vrange.c b/mm/vrange.c index c0c5d50..d07884d

[RFC PATCH 2/4] vrange: Introduce vrange_root to make vrange structures more flexible

2013-04-03 Thread John Stultz
Cc: Minchan Kim Signed-off-by: John Stultz --- fs/proc/task_mmu.c | 10 +-- include/linux/mm_types.h |4 +- include/linux/vrange.h | 35 +- include/linux/vrange_types.h | 21 ++ kernel/fork.c|2 +- mm/vrange.c | 156

[RFC PATCH 4/4] vrange: Enable purging of file backed volatile ranges

2013-04-03 Thread John Stultz
Hiroyuki Cc: Jason Evans Cc: san...@google.com Cc: Paul Turner Cc: Johannes Weiner Cc: Michel Lespinasse Cc: Andrew Morton Cc: Minchan Kim Signed-off-by: John Stultz --- include/linux/vrange.h |8 mm/vrange.c| 118 +--- 2 files

[RFC PATCH 0/4] Support vranges on files

2013-04-03 Thread John Stultz
Dave Hansen Cc: Rik van Riel Cc: Neil Brown Cc: Mike Hommey Cc: Taras Glek Cc: KOSAKI Motohiro Cc: KAMEZAWA Hiroyuki Cc: Jason Evans Cc: san...@google.com Cc: Paul Turner Cc: Johannes Weiner Cc: Michel Lespinasse Cc: Andrew Morton Cc: Minchan Kim John Stultz (4): vrange: Make vari

[RFC PATCH 3/4] vrange: Support fvrange() syscall for file based volatile ranges

2013-04-03 Thread John Stultz
Glek Cc: KOSAKI Motohiro Cc: KAMEZAWA Hiroyuki Cc: Jason Evans Cc: san...@google.com Cc: Paul Turner Cc: Johannes Weiner Cc: Michel Lespinasse Cc: Andrew Morton Cc: Minchan Kim Signed-off-by: John Stultz --- arch/x86/syscalls/syscall_64.tbl |1 + fs/file_table.c |5

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-04 Thread John Stultz
On 04/03/2013 11:55 PM, Minchan Kim wrote: On Wed, Apr 03, 2013 at 04:52:19PM -0700, John Stultz wrote: Next we introduce a parallel fvrange() syscall for creating volatile ranges directly against files. Okay. It seems you want to replace ashmem interface with fvrange. I dobut we have to eat a

[PATCH] merge_config.sh: Avoid creating unnessary source softlinks

2013-04-04 Thread John Stultz
Viresh Kumar Signed-off-by: John Stultz --- scripts/kconfig/merge_config.sh | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh index 05274fc..81b0c61 100755 --- a/scripts/kconfig/merge_config.sh +

Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2013-04-04 Thread John Stultz
On 04/04/2013 01:12 AM, Stephane Eranian wrote: On Wed, Apr 3, 2013 at 7:57 PM, John Stultz wrote: I'm not sure I follow this. If perf exported data came with CLOCK_MONOTONIC timestamps, no correlation would need to be exposed. perf would just have to do the extra overhead of doin

Re: One of these things (CONFIG_HZ) is not like the others..

2013-01-28 Thread John Stultz
On 01/27/2013 10:08 PM, Santosh Shilimkar wrote: On Tuesday 22 January 2013 08:35 PM, Santosh Shilimkar wrote: On Tuesday 22 January 2013 08:21 PM, Russell King - ARM Linux wrote: On Tue, Jan 22, 2013 at 03:44:03PM +0530, Santosh Shilimkar wrote: Sorry for not being clear enough. On OMAP, 32KHz

Re: One of these things (CONFIG_HZ) is not like the others..

2013-01-29 Thread John Stultz
On 01/28/2013 10:43 PM, Santosh Shilimkar wrote: Jon, On Tuesday 29 January 2013 05:31 AM, John Stultz wrote: On 01/27/2013 10:08 PM, Santosh Shilimkar wrote: On Tuesday 22 January 2013 08:35 PM, Santosh Shilimkar wrote: On Tuesday 22 January 2013 08:21 PM, Russell King - ARM Linux wrote

Re: [PATCH v2 3/3] timekeeping: Add CONFIG_HAS_PERSISTENT_CLOCK option

2013-01-25 Thread John Stultz
On 01/22/2013 11:49 AM, John Stultz wrote: On 01/22/2013 11:44 AM, Jason Gunthorpe wrote: On Tue, Jan 15, 2013 at 11:50:18AM -0800, John Stultz wrote: On 01/15/2013 08:09 AM, Feng Tang wrote: Make the persistent clock check a kernel config option, so that some platform can explicitely select

Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2013-02-22 Thread John Stultz
On 02/20/2013 02:29 AM, Peter Zijlstra wrote: On Tue, 2013-02-19 at 10:25 -0800, John Stultz wrote: So describe how the perf time domain is different then CLOCK_MONOTONIC_RAW. The primary difference is that the trace/sched/perf time domain is not strictly monotonic, it is only locally

Re: [PATCH] staging: android: ashmem: Add support for 32bit ashmem calls in a 64bit kernel

2013-02-25 Thread John Stultz
ARMv8 AEM(64bit platform model) and Versatile Express A9(32bit platform). Signed-off-by: Serban Constantinescu Acked-by: John Stultz thanks -john -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More ma

[PATCH 1/5] staging: android: lowmemorykiller: Add config option to support oom_adj values

2013-02-26 Thread John Stultz
Cc: Greg Kroah-Hartman Signed-off-by: Arve Hjønnevåg Signed-off-by: John Stultz --- drivers/staging/android/Kconfig |9 +++ drivers/staging/android/lowmemorykiller.c | 85 + 2 files changed, 94 insertions(+) diff --git a/drivers/staging/android

[PATCH 2/5] staging: android: lowmemorykiller: Don't count reserved free memory

2013-02-26 Thread John Stultz
From: Arve Hjønnevåg The amount of reserved memory varies between devices. Subtract it here to reduce the amount of devices specific tuning needed for the minfree values. Cc: Android Kernel Team Cc: Arve Hjønnevåg Cc: Greg Kroah-Hartman Signed-off-by: Arve Hjønnevåg Signed-off-by: John

[PATCH 3/5] staging: android: lowmemorykiller: Change default debug_level to 1

2013-02-26 Thread John Stultz
Signed-off-by: Arve Hjønnevåg Signed-off-by: John Stultz --- drivers/staging/android/lowmemorykiller.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c index 2f28763..e0435a9 100644 --- a

[PATCH 0/5] staging: Updates from the Android tree (for 3.10)

2013-02-26 Thread John Stultz
Hey Greg, I was looking over the current Android tree and noticed there were a few updates that should be pushed into staging so upstream stays in sync with what Android is using. I've already checked with the folks at Google (cc'ed) and they had no objections to sending these to you. Let

[PATCH 5/5] staging: android: logger: enforce GID and CAP check on log flush

2013-02-26 Thread John Stultz
From: Charndeep Grewal Restrict log flushing to those in the logs group, or anyone with CAP_SYSLOG. Cc: Android Kernel Team Cc: Charndeep Grewal Cc: Greg Kroah-Hartman Signed-off-by: Charndeep Grewal Signed-off-by: John Stultz --- drivers/staging/android/logger.c |5 + 1 file

[PATCH 4/5] staging: android: logger: Allow a UID to read it's own log entries

2013-02-26 Thread John Stultz
upgrade log formats, so they can get additional information from the kernel. Cc: Android Kernel Team Cc: Nick Kralevich Cc: Greg Kroah-Hartman Signed-off-by: Nick Kralevich Signed-off-by: John Stultz --- drivers/staging/android/logger.c | 191 +- drivers

[RFD] Proposal for merging Android sync driver in staging

2013-02-27 Thread John Stultz
I'd like to get a discussion going about submitting the Android sync driver to staging. I know there is currently some very similar work going on with the dmabuf-fences, and rather then both approaches being worked out individually on their own, I suspect there could be better collaboration a

Re: [RFD] Proposal for merging Android sync driver in staging

2013-02-28 Thread John Stultz
On 02/27/2013 06:32 PM, Greg KH wrote: On Wed, Feb 27, 2013 at 06:14:24PM -0800, John Stultz wrote: I'd like to get a discussion going about submitting the Android sync driver to staging. I know there is currently some very similar work going on with the dmabuf-fences, and rather then

Re: [RFE PATCH 2/2] rtc, add write functionality to sysfs

2013-02-28 Thread John Stultz
On 02/24/2013 09:03 AM, Prarit Bhargava wrote: On 02/23/2013 06:11 PM, Alessandro Zummo wrote: On 22/feb/2013, at 22:05, John Stultz wrote: On 02/22/2013 12:55 PM, Prarit Bhargava wrote: On 02/22/2013 03:43 PM, John Stultz wrote: On 02/14/2013 09:02 AM, Prarit Bhargava wrote: /sys/class

[PATCH 07/30] staging: sw_sync: Add fill_driver_data support

2013-02-28 Thread John Stultz
message] Signed-off-by: John Stultz --- drivers/staging/android/sw_sync.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/staging/android/sw_sync.c b/drivers/staging/android/sw_sync.c index 64c5ebb..081e4d1 100644 --- a/drivers/staging/android/sw_sync.c +++ b/drivers

[PATCH 16/30] staging: sync: Fix error paths

2013-02-28 Thread John Stultz
Cc: Greg KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Rebecca Schultz Zavin Signed-off-by: John Stultz --- drivers/staging/android/sync.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/sync.c b/drivers

[PATCH 26/30] staging: sw_sync: Convert to use new value_str debug ops

2013-02-28 Thread John Stultz
Gilling [jstultz: Add commit message] Signed-off-by: John Stultz --- drivers/staging/android/sw_sync.c | 36 +--- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/drivers/staging/android/sw_sync.c b/drivers/staging/android/sw_sync.c index d768893

[PATCH 28/30] staging: sync: Fix race condition between merge and signal

2013-02-28 Thread John Stultz
Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling Signed-off-by: John Stultz --- drivers/staging/android/sync.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index 1ddc40

[PATCH 30/30] staging: sync: Fix timeout = 0 wait behavior

2013-02-28 Thread John Stultz
-off-by: John Stultz --- drivers/staging/android/sync.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index 9b8b0e9..b9bb974 100644 --- a/drivers/staging/android/sync.c +++ b/drivers/staging/android

[PATCH 29/30] staging: sync: Don't log wait timeouts when timeout = 0

2013-02-28 Thread John Stultz
ommit message] Signed-off-by: John Stultz --- drivers/staging/android/sync.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index bd18c75..9b8b0e9 100644 --- a/drivers/staging/android/sync.c +++ b/drivers/st

[PATCH 23/30] staging: sync: Update new fence status with sync_fence_signal_pt

2013-02-28 Thread John Stultz
ated. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling Signed-off-by: John Stultz --- drivers/staging/android/sync.c | 14 +- 1 file chan

[PATCH 25/30] staging: sync: Refactor sync debug printing

2013-02-28 Thread John Stultz
...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling Signed-off-by: John Stultz --- drivers/staging/android/sync.c | 18 -- drivers/staging/android/sync.h | 19 +-- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/drivers/staging/android

[PATCH 19/30] staging: sync: Dump sync state to console on timeout

2013-02-28 Thread John Stultz
, whitespace fixups] Signed-off-by: John Stultz --- drivers/staging/android/sync.c | 34 -- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index 7fccfcd..d54fa8d 100644 --- a/drivers

[PATCH 18/30] staging: sync: Change wait timeout to mirror poll semantics

2013-02-28 Thread John Stultz
typo-fix] Signed-off-by: John Stultz --- drivers/staging/android/sync.c |6 +++--- drivers/staging/android/sync.h |8 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index c4a3c1d..7fccfcd 100644 --- a

[PATCH 21/30] staging: sync: Dump sync state on fence errors

2013-02-28 Thread John Stultz
-off-by: John Stultz --- drivers/staging/android/sync.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index 92cdfe8..36ffa20 100644 --- a/drivers/staging/android/sync.c +++ b/drivers/staging/android/sync.c

[PATCH 27/30] staging: sync: Add tracepoint support

2013-02-28 Thread John Stultz
, move to staging] Signed-off-by: John Stultz --- drivers/staging/android/sync.c | 11 + drivers/staging/android/trace/sync.h | 82 ++ 2 files changed, 93 insertions(+) create mode 100644 drivers/staging/android/trace/sync.h diff --git a/drivers/staging

[PATCH 24/30] staging: sync: Use proper barriers when waiting indefinitely

2013-02-28 Thread John Stultz
From: Erik Gilling The previous fix only addressed waiting with a timeout. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling Signed-off-by: John

[PATCH 22/30] staging: sync: Protect unlocked access to fence status

2013-02-28 Thread John Stultz
KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling Signed-off-by: John Stultz --- drivers/staging/android/sync.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging

[PATCH 20/30] staging: sync: Improve timeout dump messages

2013-02-28 Thread John Stultz
: Added commit message] Signed-off-by: John Stultz --- drivers/staging/android/sync.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index d54fa8d..92cdfe8 100644 --- a/drivers/staging/android/sync.c +++ b

[PATCH 12/30] staging: sync: Reorder sync_fence_release

2013-02-28 Thread John Stultz
Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling Signed-off-by: John Stultz --- drivers/staging/android/sync.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/syn

[PATCH 11/30] staging: sw_sync: Export sw_sync API

2013-02-28 Thread John Stultz
From: Erik Gilling Needed to let modules link against sw_sync. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling Signed-off-by: John Stultz

[PATCH 17/30] staging: sw_sync: Fix error paths

2013-02-28 Thread John Stultz
Cc: Greg KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Rebecca Schultz Zavin Signed-off-by: John Stultz --- drivers/staging/android/sw_sync.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/staging/android/sw_sync.c b

[PATCH 15/30] staging: sync: Add reference counting to timelines

2013-02-28 Thread John Stultz
H Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Squished in compiler warning fix] Signed-off-by: John Stultz --- drivers/staging/android/sync.c | 29 + drivers/staging/android/sync.h |2 ++ 2 files change

[PATCH 14/30] staging: sync: Add internal refcounting to fences

2013-02-28 Thread John Stultz
lling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling Signed-off-by: John Stultz --- drivers/staging/android/sync.c | 54 ++-- drivers/staging/android/s

[PATCH 13/30] staging: sync: Optimize fence merges

2013-02-28 Thread John Stultz
...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Whitespace fixes] Signed-off-by: John Stultz --- drivers/staging/android/sync.c | 52 +++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH 10/30] staging: sync: Export sync API symbols

2013-02-28 Thread John Stultz
: John Stultz --- drivers/staging/android/sync.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index 54f84d9..6739a84 100644 --- a/drivers/staging/android/sync.c +++ b/drivers/staging/android/sync.c @@ -15,6

[PATCH 06/30] staging: sync: Add ioctl to get fence data

2013-02-28 Thread John Stultz
From: Erik Gilling Add ioctl to get fence data Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Commit message tweaks] Signed-off-by: John

[PATCH 09/30] staging: sync: Allow async waits to be canceled

2013-02-28 Thread John Stultz
Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling Signed-off-by: John Stultz --- drivers/staging/android/sync.c | 46 +++- drivers/staging/android/sync.h | 36

[PATCH 08/30] staging: sync: Add poll support

2013-02-28 Thread John Stultz
From: Erik Gilling Support poll on sync fence Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Add commit message] Signed-off-by: John

[PATCH 02/30] staging: sw_sync: Add cpu based sync driver

2013-02-28 Thread John Stultz
commit message, whitespace fixes and move to staging directory] Signed-off-by: John Stultz --- drivers/staging/android/Kconfig | 18 +++ drivers/staging/android/Makefile |1 + drivers/staging/android/sw_sync.c | 224 + drivers/staging/android/sw_sync.h

[PATCH 01/30] staging: sync: Add synchronization framework

2013-02-28 Thread John Stultz
: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Added commit message, moved to staging, squished minor fix in] Signed-off-by: John Stultz --- drivers/staging/android/Kconfig |9 + drivers/staging/android/Makefile |1 + drivers/staging/android

[PATCH 05/30] staging: sw_sync: Add debug support

2013-02-28 Thread John Stultz
From: Erik Gilling Add debugfs support hooks. Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Add commit message] Signed-off-by: John

[PATCH 04/30] staging: sync: Add debugfs support

2013-02-28 Thread John Stultz
From: Erik Gilling Add support for debugfs Cc: Maarten Lankhorst Cc: Erik Gilling Cc: Daniel Vetter Cc: Rob Clark Cc: Sumit Semwal Cc: Greg KH Cc: dri-de...@lists.freedesktop.org Cc: Android Kernel Team Signed-off-by: Erik Gilling [jstultz: Add commit message] Signed-off-by: John Stultz

[PATCH 03/30] staging: sync: Add timestamps to sync_pts

2013-02-28 Thread John Stultz
: Added commit message] Signed-off-by: John Stultz --- drivers/staging/android/sync.c |5 + drivers/staging/android/sync.h |5 + 2 files changed, 10 insertions(+) diff --git a/drivers/staging/android/sync.c b/drivers/staging/android/sync.c index 4a9e63d..88d7e66 100644 --- a

[RFC][PATCH 00/30] staging: Android sync driver

2013-02-28 Thread John Stultz
As proposed yesterday, here's the Android sync driver patches for staging. I've preserved the commit history, but moved all the changes over to be against the staging directory (instead of drivers/base). The goal of submitting this driver to staging is to try to get more collaberation, as there

Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2013-02-19 Thread John Stultz
On 02/18/2013 12:35 PM, Thomas Gleixner wrote: On Tue, 5 Feb 2013, John Stultz wrote: On 02/05/2013 02:13 PM, Stephane Eranian wrote: But if people are strongly opposed to the clock_gettime() approach, then I can go with the ioctl() because the functionality is definitively needed ASAP. I

Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2013-02-19 Thread John Stultz
On 02/19/2013 12:15 PM, Thomas Gleixner wrote: On Tue, 19 Feb 2013, Thomas Gleixner wrote: On Tue, 19 Feb 2013, John Stultz wrote: Would be interesting to compare and contrast that. Though you can't do that in the kernel as the write hold time of the timekeeper seq is way larger than the

Re: [RFC] perf: need to expose sched_clock to correlate user samples with kernel samples

2013-02-19 Thread John Stultz
On 02/19/2013 01:50 PM, Thomas Gleixner wrote: On Tue, 19 Feb 2013, John Stultz wrote: On 02/19/2013 12:15 PM, Thomas Gleixner wrote: Depending on the length of the delay which kept VCPU0 away from executing and depending on the direction of the ntp update of the timekeeping variables

Re: Origen board hang with functionfs

2013-02-21 Thread John Stultz
On 02/20/2013 06:01 PM, John Stultz wrote: Hey Kukjin, Andrzej, I recently started playing around with functionfs, and have noticed some strange behavior with my origen board. If I enable the FunctionFS gadget driver, I see the board hang at boot here: [2.36] USB Mass Storage

[PATCH] [RFC] usb: gadget: composite: Allow idVendor and other module_params to be writable

2013-02-21 Thread John Stultz
l.org Signed-off-by: John Stultz --- include/linux/usb/composite.h | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index b09c37e..22b1b02 100644 --- a/include/linux/usb/composite.h +++ b/include/linu

Re: [PATCH] [RFC] usb: gadget: composite: Allow idVendor and other module_params to be writable

2013-02-21 Thread John Stultz
On 02/21/2013 02:52 PM, Michal Nazarewicz wrote: On Thu, Feb 21 2013, John Stultz wrote: In many cases, documentation around composite drivers suggest setting the idVendor and other module params as follows: $ insmod g_ffs.ko idVendor= iSerialNumber= However, this won't work if the driv

Re: [PATCH] ARM: EXYNOS: Keep USB related LDOs always active on Origen

2013-02-22 Thread John Stultz
always on. Signed-off-by: Tushar Behera --- Based on v3.8. This works great for me! Thanks so much Tushar! Tested-by: John Stultz -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo inf

Re: Origen board hang with functionfs

2013-02-22 Thread John Stultz
On 02/21/2013 10:55 PM, Tushar Behera wrote: I think the issue is because of the USB phy regulators. LDO3 and LDO8 power the phy regulators for OTG and HOST. These regulators are disabled in OTG probe whereas they are not handled at all in HOST driver. Keeping these LDOs always active should sol

Re: [PATCH] timekeeping: avoid adjust kernel time once hwclock kept in UTC time

2013-02-22 Thread John Stultz
On 12/06/2012 06:03 AM, Dong Zhu wrote: From c126376cf1837b0956e0268056db61870fbbc1d4 Mon Sep 17 00:00:00 2001 From: Dong Zhu Date: Thu, 6 Dec 2012 21:45:00 +0800 Subject: [PATCH] timekeeping: avoid adjust kernel time once hwclock kept in UTC time If the Hardware Clock kept in local time,ker

Re: [RFE PATCH 1/2] x86, rtc, ntp, Do full rtc synchronization with ntp

2013-02-22 Thread John Stultz
used the RTC library functions in this patchset as they do all the required bounds checking. Signed-off-by: Prarit Bhargava Cc: Thomas Gleixner Cc: John Stultz Cc: x...@kernel.org Cc: Matt Fleming Cc: David Vrabel Cc: Andrew Morton Cc: Andi Kleen Cc: linux-...@vger.kernel.org This

Re: [RFE PATCH 2/2] rtc, add write functionality to sysfs

2013-02-22 Thread John Stultz
On 02/14/2013 09:02 AM, Prarit Bhargava wrote: /sys/class/rtc/rtcX/date and /sys/class/rtc/rtcX/time currently have read-only access. This patch introduces write functionality which will set the rtc time. Usage: echo -MM-DD > /sys/class/rtc/rtcX/date echo HH:MM:SS > /sys/class/rtc/r

Re: [RFE PATCH 2/2] rtc, add write functionality to sysfs

2013-02-22 Thread John Stultz
On 02/22/2013 12:55 PM, Prarit Bhargava wrote: On 02/22/2013 03:43 PM, John Stultz wrote: On 02/14/2013 09:02 AM, Prarit Bhargava wrote: /sys/class/rtc/rtcX/date and /sys/class/rtc/rtcX/time currently have read-only access. This patch introduces write functionality which will set the rtc

Re: [RFC patch 7/8] timekeeping: Implement a shadow timekeeper

2013-02-22 Thread John Stultz
On 02/21/2013 02:51 PM, Thomas Gleixner wrote: Use the shadow timekeeper to do the update_wall_time() adjustments and then copy it over to the real timekeeper. Keep the shadow timekeeper in sync when updating stuff outside of update_wall_time(). This allows us to limit the timekeeper_seq hold t

Re: [PATCH v4 4/4] timekeeping: utilize the suspend-nonstop clocksource to count suspended time

2013-03-12 Thread John Stultz
On 03/11/2013 08:56 PM, Feng Tang wrote: + /* +* After system resumes, we need to calculate the suspended time and +* compensate it for the OS time. There are 3 sources that could be +* used: Nonstop clocksource during suspend, persistent clock and rtc +* dev

Re: [PATCH v4 1/4] x86: Add cpu capability flag X86_FEATURE_NONSTOP_TSC_S3

2013-03-12 Thread John Stultz
On 03/11/2013 08:56 PM, Feng Tang wrote: On some new Intel Atom processors (Penwell and Cloverview), there is a feature that the TSC won't stop in S3 state, say the TSC value won't be reset to 0 after resume. This feature makes TSC a more reliable clocksource and could benefit the timekeeping cod

Re: [PATCH v4 0/4] Add support for S3 non-stop TSC support.

2013-03-13 Thread John Stultz
On 03/11/2013 08:56 PM, Feng Tang wrote: Hi All, On some new Intel Atom processors (Penwell and Cloverview), there is a feature that the TSC won't stop in S3, say the TSC value won't be reset to 0 after resume. This feature makes TSC a more reliable clocksource and could benefit the timekeeping

Re: [REGRESSION] Xorg doesn't like 4e8b14526 "time: Improve sanity checking of timekeeping inputs"

2012-08-31 Thread John Stultz
I'm ok with the revert if you'd prefer that. thanks -john >From a71cdf72cbd10ae5ef6b061db7ab3019293933a4 Mon Sep 17 00:00:00 2001 From: John Stultz Date: Fri, 31 Aug 2012 13:30:06 -0400 Subject: [PATCH] time: Move ktime_t overflow checking into timespec_valid_strict Andreas

Re: CONFIG_NO_HZ + CONFIG_CPU_IDLE freeze the system (Was Re: [PATCH] acpi : remove power from acpi_processor_cx structure)

2012-09-11 Thread John Stultz
On 09/10/2012 11:58 PM, Daniel Lezcano wrote: Would you mind testing the following patch? It seems to resolve the issue, but I've not yet run it through my test suite to make sure it didn't break anything else. No problem, I will try it this evening. Is this problem related to all 32bits arch ?

[PATCH 0/3] 3.5-stable timekeeping fixes merged in 3.6

2012-09-11 Thread John Stultz
t more testing would be of course appreciated. https://github.com/johnstultz-work/timetests I also have patch queues for all the -stable trees that I'll be sending out as my testing completes for those trees. Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Linux Kernel John Stultz

[PATCH 1/3] 3.5.y: time: Improve sanity checking of timekeeping inputs

2012-09-11 Thread John Stultz
tting the time close to overflowing ktime_t and then letting natural accumulation cause the overflow. Reported-by: CAI Qian Reported-by: Sasha Levin Signed-off-by: John Stultz Cc: Peter Zijlstra Cc: Prarit Bhargava Cc: Zhouping Liu Cc: Ingo Molnar Cc: sta...@vger.kernel.org Link:

[PATCH 2/3] 3.5.y: time: Avoid making adjustments if we haven't accumulated anything

2012-09-11 Thread John Stultz
OARSE/CLOCK_MONOTONIC_COARSE. Signed-off-by: John Stultz Cc: Prarit Bhargava Cc: Ingo Molnar Cc: sta...@vger.kernel.org Link: http://lkml.kernel.org/r/1345595449-34965-5-git-send-email-john.stu...@linaro.org Signed-off-by: Thomas Gleixner Cc: Linux Kernel Signed-off-by: John Stultz --- kernel

[PATCH 3/3] 3.5.y: time: Move ktime_t overflow checking into timespec_valid_strict

2012-09-11 Thread John Stultz
this more strict function. Reported-and-tested-by: Andreas Bombe Cc: Zhouping Liu Cc: Ingo Molnar Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: sta...@vger.kernel.org Signed-off-by: John Stultz Signed-off-by: Linus Torvalds Cc: Linux Kernel Signed-off-by: John Stultz --- include/li

[PATCH 1/3] 3.4.y: time: Improve sanity checking of timekeeping inputs

2012-09-11 Thread John Stultz
tting the time close to overflowing ktime_t and then letting natural accumulation cause the overflow. Reported-by: CAI Qian Reported-by: Sasha Levin Signed-off-by: John Stultz Cc: Peter Zijlstra Cc: Prarit Bhargava Cc: Zhouping Liu Cc: Ingo Molnar Cc: sta...@vger.kernel.org Link:

[PATCH 2/3] 3.4.y: time: Avoid making adjustments if we haven't accumulated anything

2012-09-11 Thread John Stultz
OARSE/CLOCK_MONOTONIC_COARSE. Signed-off-by: John Stultz Cc: Prarit Bhargava Cc: Ingo Molnar Cc: sta...@vger.kernel.org Link: http://lkml.kernel.org/r/1345595449-34965-5-git-send-email-john.stu...@linaro.org Signed-off-by: Thomas Gleixner Cc: Linux Kernel Signed-off-by: John Stultz --- kernel

[PATCH 3/3] 3.4.y: time: Move ktime_t overflow checking into timespec_valid_strict

2012-09-11 Thread John Stultz
this more strict function. Reported-and-tested-by: Andreas Bombe Cc: Zhouping Liu Cc: Ingo Molnar Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: sta...@vger.kernel.org Signed-off-by: John Stultz Signed-off-by: Linus Torvalds Cc: Linux Kernel Signed-off-by: John Stultz --- include/li

[PATCH 0/3] 3.4-stable timekeeping fixes merged in 3.6

2012-09-11 Thread John Stultz
t more testing would be of course appreciated. https://github.com/johnstultz-work/timetests I also have patch queues for all the -stable trees that I'll be sending out as my testing completes for those trees. Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Linux Kernel John Stultz

[PATCH 0/3] 3.2-stable timekeeping fixes merged in 3.6

2012-09-11 Thread John Stultz
t more testing would be of course appreciated. https://github.com/johnstultz-work/timetests I also have patch queues for all the -stable trees that I'll be sending out as my testing completes for those trees. Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Linux Kernel John Stultz

[PATCH 3/3] 3.2.y: time: Move ktime_t overflow checking into timespec_valid_strict

2012-09-11 Thread John Stultz
this more strict function. Reported-and-tested-by: Andreas Bombe Cc: Zhouping Liu Cc: Ingo Molnar Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: sta...@vger.kernel.org Signed-off-by: John Stultz Signed-off-by: Linus Torvalds Cc: Linux Kernel Signed-off-by: John Stultz --- include/li

[PATCH 2/3] 3.2.y: time: Avoid making adjustments if we haven't accumulated anything

2012-09-11 Thread John Stultz
OARSE/CLOCK_MONOTONIC_COARSE. Signed-off-by: John Stultz Cc: Prarit Bhargava Cc: Ingo Molnar Cc: sta...@vger.kernel.org Link: http://lkml.kernel.org/r/1345595449-34965-5-git-send-email-john.stu...@linaro.org Signed-off-by: Thomas Gleixner Cc: Linux Kernel Signed-off-by: John Stultz --- kernel

[PATCH 1/3] 3.2.y: time: Improve sanity checking of timekeeping inputs

2012-09-11 Thread John Stultz
tting the time close to overflowing ktime_t and then letting natural accumulation cause the overflow. Reported-by: CAI Qian Reported-by: Sasha Levin Signed-off-by: John Stultz Cc: Peter Zijlstra Cc: Prarit Bhargava Cc: Zhouping Liu Cc: Ingo Molnar Cc: sta...@vger.kernel.org Link:

[PATCH] time: Fix timeekeping_get_ns overflow on 32bit systems

2012-09-11 Thread John Stultz
nsec field, instead using a 64bit nsec value which can then be added into the timespec via timespec_add_ns(). Cc: Ingo Molnar Cc: Richard Cochran Cc: Prarit Bhargava Cc: Thomas Gleixner Cc: Daniel Lezcano Reported-and-bisected-by: Daniel Lezcano Tested-by: Daniel Lezcano Signed-off-by: J

Re: BUG: soft lockup - CPU#1 stuck for 1024s!

2012-09-11 Thread John Stultz
On 09/11/2012 04:41 PM, Fengguang Wu wrote: On Mon, Sep 10, 2012 at 10:06:33AM -0700, John Stultz wrote: On 09/09/2012 12:59 AM, Fengguang Wu wrote: Hi John, The below lockup warning pops up very occasionally in kvm guest kernels and it's bisected down to c

[PATCH 2/3] 3.0.y: time: Avoid making adjustments if we haven't accumulated anything

2012-09-11 Thread John Stultz
OARSE/CLOCK_MONOTONIC_COARSE. Signed-off-by: John Stultz Cc: Prarit Bhargava Cc: Ingo Molnar Cc: sta...@vger.kernel.org Link: http://lkml.kernel.org/r/1345595449-34965-5-git-send-email-john.stu...@linaro.org Signed-off-by: Thomas Gleixner Cc: Linux Kernel Signed-off-by: John Stultz --- kernel

  1   2   3   4   5   6   7   8   9   10   >