[PATCH 2/9] clocksource: sh_tmu: Compute rate before registration again

2017-03-30 Thread John Stultz
t first usage. - Set the clockevent device's rate at its registration. - Although not strictly necessary for the upcoming clockevent core changes, set the clocksource's rate at its registration for consistency. Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Daniel Lezcano Cc: Richard Coc

[PATCH 6/9] clockevents: Make clockevents_config() static

2017-03-30 Thread John Stultz
rarit Bhargava Cc: Stephen Boyd Signed-off-by: Nicolai Stange Signed-off-by: John Stultz --- include/linux/clockchips.h | 1 - kernel/time/clockevents.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/clockchips.h b/include/linux/clockchips.h index 5d3053c..ee

[PATCH 7/9] MAINTAINERS: Add Stephen Boyd as timekeeping reviewer

2017-03-30 Thread John Stultz
: Stephen Boyd Acked-by: Stephen Boyd Signed-off-by: John Stultz --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index c776906..68b1a14 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11099,6 +11099,7 @@ F: drivers/power/supply/bq27xxx_battery_i2c.c

[PATCH 5/9] clocksource: h8300_timer8: Don't reset rate in ->set_state_oneshot()

2017-03-30 Thread John Stultz
Ingo Molnar Cc: Thomas Gleixner Cc: Daniel Lezcano Cc: Richard Cochran Cc: Prarit Bhargava Cc: Stephen Boyd Signed-off-by: Nicolai Stange Signed-off-by: John Stultz --- drivers/clocksource/h8300_timer8.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/clocksource/

[PATCH 8/9] timers, sched_clock: Update timeout for clock wrap

2017-03-30 Thread John Stultz
: David Engraf Signed-off-by: John Stultz --- kernel/time/sched_clock.c | 5 + 1 file changed, 5 insertions(+) diff --git a/kernel/time/sched_clock.c b/kernel/time/sched_clock.c index ea6b610..2d8f05a 100644 --- a/kernel/time/sched_clock.c +++ b/kernel/time/sched_clock.c @@ -206,6 +206,11

[PATCH 3/9] clocksource: em_sti: Split clock prepare and enable steps

2017-03-30 Thread John Stultz
handling in later patches. Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Daniel Lezcano Cc: Richard Cochran Cc: Prarit Bhargava Cc: Stephen Boyd Signed-off-by: Nicolai Stange Signed-off-by: John Stultz --- drivers/clocksource/em_sti.c | 21 ++--- 1 file changed, 14 insertions(+),

[PATCH 1/9] clocksource: sh_cmt: Compute rate before registration again

2017-03-30 Thread John Stultz
lnar Cc: Thomas Gleixner Cc: Daniel Lezcano Cc: Richard Cochran Cc: Prarit Bhargava Cc: Stephen Boyd Signed-off-by: Nicolai Stange Signed-off-by: John Stultz --- drivers/clocksource/sh_cmt.c | 45 1 file changed, 25 insertions(+), 20 deletions

[PATCH 9/9] sysrq: Reset the watchdog timers while displaying high-resolution timers

2017-03-30 Thread John Stultz
Cc: Prarit Bhargava Cc: Stephen Boyd Signed-off-by: Tom Hromatka Reviewed-by: Rob Gardner Signed-off-by: John Stultz --- kernel/time/timer_list.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c index ff8d5c1..0e7f542 100644 --- a

[PATCH 4/9] clocksource: em_sti: Compute rate before registration

2017-03-30 Thread John Stultz
d Cochran Cc: Prarit Bhargava Cc: Stephen Boyd Signed-off-by: Nicolai Stange Signed-off-by: John Stultz --- drivers/clocksource/em_sti.c | 25 - 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/clocksource/em_sti.c b/drivers/clocksource/em_sti.c i

Re: Apparent backward time travel in timestamps on file creation

2017-03-30 Thread John Stultz
On Thu, Mar 30, 2017 at 12:35 PM, David Howells wrote: > Linus Torvalds wrote: > >> The difference can be quite noticeable - basically the >> "gettimeofday()" time will interpolate within timer ticks, while >> "xtime" is just the truncated "time at timer tick" value _without_ the >> correction. >

Re: Apparent backward time travel in timestamps on file creation

2017-03-30 Thread John Stultz
On Thu, Mar 30, 2017 at 10:30 AM, David Howells wrote: > Hi Thomas, John, > > I've been writing a testcase for xfstests to test statx. However, it's turned > up what I think is a bug in the kernel's time-tracking system. If I do: > > date +%s.%N > touch foo > dump-timesta

[RESEND][PATCH v2] i2c: designwear: Fix clk warning on suspend/resume

2017-03-29 Thread John Stultz
d and pm_runtime_force_resume. Cc: Jarkko Nikula Cc: Andy Shevchenko Cc: Mika Westerberg Cc: Wolfram Sang Cc: linux-...@vger.kernel.org Suggested-by: Jarkko Nikula Signed-off-by: John Stultz --- v2: Switch to suggested fix by Jarkko. --- drivers/i2c/busses/i2c-designware-platdrv.c | 2 +- 1 file chang

[PATCH v2] usb: dwc2: Make sure we disconnect the gadget state

2017-03-29 Thread John Stultz
h-Hartman Cc: linux-...@vger.kernel.org Acked-by: John Youn Signed-off-by: John Stultz --- v2: Minor typo fix suggested by Sergei Shtylyov --- drivers/usb/dwc2/hcd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index a73722e..91ed5b6 100644 --- a/drivers/

Re: [PATCH resend] timers, sched_clock: Update timeout for clock wrap

2017-03-23 Thread John Stultz
On Thu, Mar 2, 2017 at 1:02 AM, David Engraf wrote: > The scheduler clock framework may not use the correct timeout for the clock > wrap. This happens when a new clock driver calls sched_clock_register() > after the kernel called sched_clock_postinit(). In this case the clock wrap > timeout is too

Re: [PATCH v2] i2c: designwear: Fix clk warning on suspend/resume

2017-03-02 Thread John Stultz
On Tue, Feb 14, 2017 at 7:30 AM, Jarkko Nikula wrote: > On 14.02.2017 06:05, John Stultz wrote: >> >> On my HiKey board, I'm seeing clk warnings on suspend/resume, >> which seem to be caused by runtime pm suspending the device, >> then the same suspend hook be

[PATCH] usb: dwc2: Make sure we disconnect the gadget state

2017-03-02 Thread John Stultz
h-Hartman Cc: linux-...@vger.kernel.org Acked-by: John Youn Signed-off-by: John Stultz --- drivers/usb/dwc2/hcd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index a73722e..91ed5b6 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c @@ -3264

dwc2_hc_chhltd_intr_dma - ChHltd set errors?

2017-03-02 Thread John Stultz
Hey John, We've noticed that when using usb ethernet adapters on HiKey, we occasionally see errors like: dwc2 f72c.usb: dwc2_hc_chhltd_intr_dma: Channel 0 - ChHltd set, but reason is unknown dwc2 f72c.usb: hcint 0x0002, intsts 0x06200029 dwc2 f72c.usb: dwc2_hc_chhltd_intr_dma: C

Re: [PATCH 4/5] ARM: dts: qcom-apq8064: Collapse usb support into one node

2017-02-28 Thread John Stultz
three nodes into one USB device > node, reflecting the true nature of the hardware. > > Since we're here, we also mark the irq trigger flags correctly, > as IRQ_TYPE_LEVEL_HIGH instead of IRQ_TYPE_NONE. > > Cc: Bjorn Andersson > Cc: Srinivas Kandagatla > Cc: Nicolas Dec

Re: [RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-27 Thread John Stultz
On Mon, Feb 20, 2017 at 2:32 PM, Daniel Vetter wrote: > I thought about this some more, I think what we need to fix this mess > properly is: > - mode_valid helper callbacks for crtc, encoder, bridges, with the > same interface as for connectors. > - calling all these new mode_valid hooks from the

Re: [RFC][PATCH v2] drm: kirin: Add a mutex to avoid fb initialization race

2017-02-27 Thread John Stultz
On Sat, Feb 25, 2017 at 11:36 AM, Daniel Vetter wrote: > On Fri, Feb 24, 2017 at 05:25:16PM -0800, John Stultz wrote: >> In some cases I've been seeing a race where two framebuffers >> would be initialized, as kirin_fbdev_output_poll_changed() >> might get called quickl

Re: [Regression?] 1ea0ce4069 ("selinux: allow changing labels for cgroupfs") stops Android from booting

2017-02-24 Thread John Stultz
On Fri, Feb 24, 2017 at 7:39 PM, Nick Kralevich wrote: > Can you try adding the androidboot.selinux=permissive line to the kernel > command line, to boot in permissive mode? I suspect the policy just needs to > be adjusted. Yep. It does seem to boot fine in permissive mode, just not in enforcing.

Re: [Regression?] 1ea0ce4069 ("selinux: allow changing labels for cgroupfs") stops Android from booting

2017-02-24 Thread John Stultz
On Thu, Feb 23, 2017 at 4:01 PM, Paul Moore wrote: > On Thu, Feb 23, 2017 at 1:43 PM, John Stultz wrote: >> Hey folks, >>I've not been able to figure out why yet, but I wanted to raise the >> issue that last night I found I couldn't boot Android on my Hikey &

Re: [RFC][PATCH v2] drm: kirin: Add a mutex to avoid fb initialization race

2017-02-24 Thread John Stultz
On Fri, Feb 24, 2017 at 5:45 PM, liuxinliang wrote: > > > On 2017/2/25 9:39, liuxinliang wrote: >> >> Hi John, >> >> The patch seems good to me, except one minus comment. >> Maybe change fb_lock to fbdev_lock would be better. >> >> Thanks, >

Re: [RFC][PATCH v2] drm: kirin: Add a mutex to avoid fb initialization race

2017-02-24 Thread John Stultz
On Fri, Feb 24, 2017 at 5:39 PM, liuxinliang wrote: > Hi John, > > The patch seems good to me, except one minus comment. > Maybe change fb_lock to fbdev_lock would be better. Sure I'll change that too, but I'll wait before next week before resending to see if anyone else has feedback. thanks -jo

[RFC][PATCH v2] drm: kirin: Add a mutex to avoid fb initialization race

2017-02-24 Thread John Stultz
imple mutex to serialize it and seems to avoid the race. Suggestions or feedback would be greatly appreciated! Cc: Xinliang Liu Cc: Rongrong Zou Cc: Xinwei Kong Cc: Chen Feng Cc: David Airlie Cc: Daniel Vetter Cc: Sean Paul Cc: dri-de...@lists.freedesktop.org Signed-off-by: John Stultz --- dr

bug? dwc2: insufficient fifo memory

2017-02-24 Thread John Stultz
Hey John, So after the USB tree landed in 4.11-rc, I've been seeing the following warning at bootup. It seems the fifo_mem/total_fifo_size value on hikey is 1920, but I'm seeing the addresses zip upward quickly as the txfsz values are all 2048. Not exactly sure whats wrong here. Things still s

Re: [RFC][PATCH] drm: kirin: Add a mutex to avoid fb initialization race

2017-02-24 Thread John Stultz
On Thu, Feb 23, 2017 at 5:55 PM, liuxinliang wrote: > Hi John, > > On 2017/2/23 8:56, John Stultz wrote: >> >> In some cases I've been seeing a race where two framebuffers >> would be initialized, as kirin_fbdev_output_poll_changed() >> might get called quic

Re: gcc7 log2 compile issues in kernel/time/timekeeping.c

2017-02-24 Thread John Stultz
On Thu, Feb 23, 2017 at 10:43 AM, Laura Abbott wrote: > Hi, > > Fedora was previously carrying a workaround for a gcc7 issue reported > on arm64 > http://lists.infradead.org/pipermail/linux-arm-kernel/2016-October/461597.html. > The workaround got rid of __ilog2_NaN. I dropped the patch this morn

Re: [PATCH] staging, android: remove lowmemory killer from the tree

2017-02-23 Thread John Stultz
On Wed, Feb 22, 2017 at 4:01 AM, Michal Hocko wrote: > From: Michal Hocko > > Lowmemory killer is sitting in the staging tree since 2008 without any > serious interest for fixing issues brought up by the MM folks. The main > objection is that the implementation is basically broken by design: >

[Regression?] 1ea0ce4069 ("selinux: allow changing labels for cgroupfs") stops Android from booting

2017-02-23 Thread John Stultz
Hey folks, I've not been able to figure out why yet, but I wanted to raise the issue that last night I found I couldn't boot Android on my Hikey board with Linus' HEAD kernel. It seems to cause logd to crash repeatedly so I'm not able to get debug info from logcat. I do see the following over a

[RFC][PATCH] drm: kirin: Add a mutex to avoid fb initialization race

2017-02-22 Thread John Stultz
ng Zou Cc: Xinwei Kong Cc: Chen Feng Cc: David Airlie Cc: Daniel Vetter Cc: Sean Paul Cc: dri-de...@lists.freedesktop.org Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_dr

Re: [RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-14 Thread John Stultz
On Tue, Feb 14, 2017 at 12:32 PM, Daniel Stone wrote: > Hi John, > > On 14 February 2017 at 19:25, John Stultz wrote: >> +static enum drm_mode_status >> +drm_connector_check_crtc_modes(struct drm_connector *connector, >> + st

Re: [RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-14 Thread John Stultz
On Tue, Feb 14, 2017 at 12:22 PM, Daniel Vetter wrote: > On Tue, Feb 14, 2017 at 11:45:54AM -0800, John Stultz wrote: >> >> Not following here. What do you mean by "put it into drivers"? Where? > > In your driver callback for ->mode_valid, call into a shared

Re: [RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-14 Thread John Stultz
On Tue, Feb 14, 2017 at 11:38 AM, Daniel Vetter wrote: > On Tue, Feb 14, 2017 at 8:25 PM, John Stultz wrote: >> Currently, on the hikey board, we have the adv7511 bridge wired >> up to the kirin ade drm driver. Unfortunately, the kirin ade >> core cannot generate accura

[RFC][PATCH 1/2] drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs

2017-02-14 Thread John Stultz
Vetter Cc: Jani Nikula Cc: Sean Paul Cc: David Airlie Cc: Rob Clark Cc: Xinliang Liu Cc: Xinliang Liu Cc: Rongrong Zou Cc: Xinwei Kong Cc: Chen Feng Cc: Archit Taneja Cc: dri-de...@lists.freedesktop.org Signed-off-by: John Stultz --- drivers/gpu/drm/drm_probe_helper.c | 24

[RFC][PATCH 2/2] drm: kirin: Restrict modes to known good mode clocks

2017-02-14 Thread John Stultz
Cc: Rongrong Zou Cc: Xinwei Kong Cc: Chen Feng Cc: Archit Taneja Cc: dri-de...@lists.freedesktop.org Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 38 + 1 file changed, 38 insertions(+) diff --git a/drivers/gpu/drm/hisilicon/k

[RFC][PATCH 0/2] Add mode_valid drm_crtc_helper_funcs for HiKey

2017-02-14 Thread John Stultz
Chen Feng Cc: Archit Taneja Cc: dri-de...@lists.freedesktop.org John Stultz (2): drm/probe-helper: Add mode_valid check to drm_crtc_helper_funcs drm: kirin: Restrict modes to known good mode clocks drivers/gpu/drm/drm_probe_helper.c | 24 drivers/gpu/drm/hisi

Re: [PATCH 1/6] clocksource: sh_cmt: compute rate before registration again

2017-02-13 Thread John Stultz
On Mon, Feb 6, 2017 at 1:11 PM, Nicolai Stange wrote: > With the upcoming NTP correction related rate adjustments to be implemented > in the clockevents core, the latter needs to get informed about every rate > change of a clockevent device made after its registration. > > Currently, sh_cmt violat

[RFC][PATCH] usb: dwc2: Make sure we disconnect the gadget state

2017-02-13 Thread John Stultz
path so the state is properly cleared. With it, the gadget interface initializes properly on every plug in. Cc: Wei Xu Cc: Guodong Xu Cc: Amit Pundir Cc: Rob Herring Cc: John Youn Cc: Douglas Anderson Cc: Chen Yu Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.

[PATCH v2] i2c: designwear: Fix clk warning on suspend/resume

2017-02-13 Thread John Stultz
d and pm_runtime_force_resume. Cc: Jarkko Nikula Cc: Andy Shevchenko Cc: Mika Westerberg Cc: Wolfram Sang Cc: linux-...@vger.kernel.org Suggested-by: Jarkko Nikula Signed-off-by: John Stultz --- v2: Switch to suggested fix by Jarkko. drivers/i2c/busses/i2c-designware-platdrv.c | 2 +- 1 file chang

Re: [PATCH v2 2/5] time: mark syscore_ops as __ro_after_init

2017-02-10 Thread John Stultz
On Fri, Feb 10, 2017 at 5:37 PM, Jess Frazelle wrote: > Marked syscore_ops structs as __ro_after_init when register_syscore_ops was > called only during init. Most of the caller functions were already annotated > as > __init. > unregister_syscore_ops() was never called on these ops. > This protec

Re: alarm timer/timerfd expiration does not abort suspend operation

2017-02-10 Thread John Stultz
On Fri, Feb 10, 2017 at 1:43 AM, Thomas Gleixner wrote: > On Fri, 3 Feb 2017, Gabriel Beddingfield wrote: >> Hi Thomas and John, >> >> TL;DR: if an alarmtimer-backed timerfd expires just prior to >> alarmtimer_suspend() begin called, the system will continue to go into >> suspend (with possibly no

Re: [PATCH] time: Remove CONFIG_TIMER_STATS

2017-02-08 Thread John Stultz
On Wed, Feb 8, 2017 at 2:24 AM, Thomas Gleixner wrote: > On Tue, 7 Feb 2017, John Stultz wrote: >> On Tue, Feb 7, 2017 at 3:40 PM, Kees Cook wrote: >> > Currently CONFIG_TIMER_STATS exposes process information across namespaces: >> > >> >

Re: [PATCH] time: Remove CONFIG_TIMER_STATS

2017-02-07 Thread John Stultz
On Tue, Feb 7, 2017 at 3:40 PM, Kees Cook wrote: > Currently CONFIG_TIMER_STATS exposes process information across namespaces: > > kernel/time/timer_list.c print_timer(): > > SEQ_printf(m, ", %s/%d", tmp, timer->start_pid); > > /proc/timer_list: > > #11: <>, hrtimer_wakeup

[PATCH] i2c: designwear: Fix clk warning on suspend/resume

2017-02-03 Thread John Stultz
n i2c-designware-platdrv. Feedback would be greatly appreciated! Cc: Jarkko Nikula Cc: Andy Shevchenko Cc: Mika Westerberg Cc: Wolfram Sang Cc: linux-...@vger.kernel.org Signed-off-by: John Stultz --- drivers/i2c/busses/i2c-designware-core.h| 1 + drivers/i2c/busses/i2c-designware-plat

[PATCH 2/8] binder: Support multiple context managers

2017-02-03 Thread John Stultz
Lemarchand Cc: Android Kernel Team Signed-off-by: Martijn Coenen [jstultz: Minor checkpatch fix] Signed-off-by: John Stultz --- drivers/android/binder.c | 59 +++- 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/drivers/android/binder.c b

[PATCH 5/8] binder: Refactor binder_transact()

2017-02-03 Thread John Stultz
Signed-off-by: Martijn Coenen Signed-off-by: John Stultz --- drivers/android/binder.c | 309 ++- 1 file changed, 172 insertions(+), 137 deletions(-) diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 705caf5..1a6969c 100644 --- a

[PATCH 3/8] binder: Deal with contexts in debugfs

2017-02-03 Thread John Stultz
From: Martijn Coenen Properly print the context in debugfs entries. Cc: Greg Kroah-Hartman Cc: Martijn Coenen Cc: Arve Hjønnevåg Cc: Amit Pundir Cc: Serban Constantinescu Cc: Dmitry Shmidt Cc: Rom Lemarchand Cc: Android Kernel Team Signed-off-by: Martijn Coenen Signed-off-by: John

[PATCH 7/8] binder: Add support for scatter-gather

2017-02-03 Thread John Stultz
. Cc: Greg Kroah-Hartman Cc: Martijn Coenen Cc: Arve Hjønnevåg Cc: Amit Pundir Cc: Serban Constantinescu Cc: Dmitry Shmidt Cc: Rom Lemarchand Cc: Android Kernel Team Signed-off-by: Martijn Coenen [jstultz: Fold in small fix from Amit Pundir ] Signed-off-by: John Stultz --- drivers

[PATCH 8/8] binder: Add support for file-descriptor arrays

2017-02-03 Thread John Stultz
Shmidt Cc: Rom Lemarchand Cc: Android Kernel Team Signed-off-by: Martijn Coenen Signed-off-by: John Stultz --- drivers/android/binder.c| 137 include/uapi/linux/android/binder.h | 28 2 files changed, 165 insertions(+) diff --git a

[PATCH 6/8] binder: Add extra size to allocator

2017-02-03 Thread John Stultz
security context). Cc: Greg Kroah-Hartman Cc: Martijn Coenen Cc: Arve Hjønnevåg Cc: Amit Pundir Cc: Serban Constantinescu Cc: Dmitry Shmidt Cc: Rom Lemarchand Cc: Android Kernel Team Signed-off-by: Martijn Coenen Signed-off-by: John Stultz --- drivers/android/binder.c | 41

[PATCH 4/8] binder: Support multiple /dev instances

2017-02-03 Thread John Stultz
artman Cc: Martijn Coenen Cc: Arve Hjønnevåg Cc: Amit Pundir Cc: Serban Constantinescu Cc: Dmitry Shmidt Cc: Rom Lemarchand Cc: Android Kernel Team Signed-off-by: Martijn Coenen [jstultz: minor checkpatch warning fix] Signed-off-by: John Stultz --- drivers/android/Kconfig | 12 +++ drive

[PATCH 1/8] binder: Split flat_binder_object

2017-02-03 Thread John Stultz
igned-off-by: Martijn Coenen Signed-off-by: John Stultz --- drivers/android/binder.c| 158 +--- include/uapi/linux/android/binder.h | 31 ++- 2 files changed, 137 insertions(+), 52 deletions(-) diff --git a/drivers/android/binder.c b/drivers/an

[PATCH 0/8] Sync upstream binder code with android-4.9 tree

2017-02-03 Thread John Stultz
Hey All, With the android-4.9 tree being shared recently, I noticed there were some new binder changes that hadn't yet made it upstream (though an earlier version of the patchset was submitted a bit back). Anyway, I wanted to spur some review on the current patchset and try to get upstream back

Re: [PATCH 00/10] android: binder: support for domains and scatter-gather.

2017-02-02 Thread John Stultz
On Mon, Oct 24, 2016 at 6:20 AM, Martijn Coenen wrote: > Android userspace will start using binder IPC for communication with HAL > modules. To clearly separate this IPC domain from the existing framework > IPC domain, this patch series adds support for multiple "binder domains". > This is impleme

Re: Issue with i2c-designware-platdrv's suspend/runtime-suspend handling

2017-01-30 Thread John Stultz
On Tue, Jan 24, 2017 at 2:03 PM, John Stultz wrote: > I noticed that with my hikey board, on resume from suspend I'm getting > the following WARNING: > > [ 54.334054] [ cut here ] > [ 54.334077] WARNING: CPU: 0 PID: 2217 at drivers/clk/clk.c:594 >

[GIT PULL][PATCH 0/3] Timekeeping items for 4.11

2017-01-27 Thread John Stultz
Hey Thomas, Ingo, Just a few items I have queued for 4.11. Let me know if you have any objections thanks -john Cc: Thomas Gleixner Cc: Richard Cochran Cc: Prarit Bhargava Cc: Ingo Molnar The following changes since commit 0c744ea4f77d72b3dcebb7a8f2684633ec79be88: Linux 4.10-rc2 (2017-

[PATCH 3/3] timers: Omit POSIX timer stuff from task_struct when disabled

2017-01-27 Thread John Stultz
abled here. Cc: Thomas Gleixner Cc: Richard Cochran Cc: Prarit Bhargava Cc: Ingo Molnar Signed-off-by: Nicolas Pitre Signed-off-by: John Stultz --- fs/proc/base.c| 4 ++-- include/linux/init_task.h | 40 +--- include/linux/sched.

[PATCH 2/3] delay: Add explanation of udelay() inaccuracy

2017-01-27 Thread John Stultz
region. test_udelay() should be fixed to reflect the real allowable tolerance on udelay(), rather than 0.5%. Cc: David Riley Cc: Thomas Gleixner Cc: Richard Cochran Cc: Prarit Bhargava Cc: Ingo Molnar Signed-off-by: Russell King Signed-off-by: John Stultz --- include/linux/delay.h | 11

[PATCH 1/3] timekeeping: Remove unused timekeeping_{get,set}_tai_offset()

2017-01-27 Thread John Stultz
state, 2014-07-16). Remove these unused functions now that we handle TAI offsets differently. Cc: Thomas Gleixner Cc: Richard Cochran Cc: Prarit Bhargava Cc: Ingo Molnar Signed-off-by: Stephen Boyd Signed-off-by: John Stultz --- kernel/time/timekeeping.c | 39

Issue with i2c-designware-platdrv's suspend/runtime-suspend handling

2017-01-24 Thread John Stultz
I noticed that with my hikey board, on resume from suspend I'm getting the following WARNING: [ 54.334054] [ cut here ] [ 54.334077] WARNING: CPU: 0 PID: 2217 at drivers/clk/clk.c:594 clk_core_disable+0x20/0x78 [ 54.334080] [ 54.334090] CPU: 0 PID: 2217 Comm: system

Re: [PATCH] omit POSIX timer stuff from task_struct when disabled

2017-01-20 Thread John Stultz
On Fri, Jan 20, 2017 at 2:46 PM, Nicolas Pitre wrote: > On Fri, 20 Jan 2017, John Stultz wrote: > >> On Mon, Jan 9, 2017 at 10:49 AM, Nicolas Pitre >> wrote: >> > When CONFIG_POSIX_TIMERS is disabled, it is preferable to remove related >> > structure

Re: [PATCH] timers: Reconcile the code and the comment for the 250HZ case

2017-01-20 Thread John Stultz
On Mon, Jan 2, 2017 at 1:14 PM, Zhihui Zhang wrote: > Adjust the time start of each level to match the comments. Note that > LVL_START(n) is never used for n = 0 case. Also, each level (except > level 0) has more than enough room to accommodate all its timers. So instead of just covering what yo

Re: [PATCH] omit POSIX timer stuff from task_struct when disabled

2017-01-20 Thread John Stultz
On Mon, Jan 9, 2017 at 10:49 AM, Nicolas Pitre wrote: > When CONFIG_POSIX_TIMERS is disabled, it is preferable to remove related > structures from struct task_struct and struct signal_struct as they > won't contain anything useful and shouldn't be relied upon by mistake. > Code still referencing t

Re: [PATCH 0/6 v4] adv7511 EDID probing improvements

2017-01-18 Thread John Stultz
On Wed, Jan 18, 2017 at 9:22 PM, Archit Taneja wrote: > > > On 01/19/2017 04:34 AM, Laurent Pinchart wrote: >> >> Hi John, >> >> Thank you for the patches. >> >> On Monday 16 Jan 2017 16:52:46 John Stultz wrote: >>> >>> Wanted to

[PATCH 5/6] drm/bridge: adv7511: Reuse __adv7511_power_on/off() when probing EDID

2017-01-16 Thread John Stultz
before, so this should address the cases where that helped. Cc: David Airlie Cc: Archit Taneja Cc: Wolfram Sang Cc: Lars-Peter Clausen Cc: Laurent Pinchart Cc: dri-de...@lists.freedesktop.org Signed-off-by: John Stultz --- v4: Reworded commit message, focusing on re-use and HPD pulse

[PATCH 6/6] drm/bridge: adv7511: Re-write the i2c address before EDID probing

2017-01-16 Thread John Stultz
this patch simply re-writes the i2c address to the ADV7511_REG_EDID_I2C_ADDR register to ensure its properly set before we try to read the EDID data. Cc: David Airlie Cc: Archit Taneja Cc: Wolfram Sang Cc: Lars-Peter Clausen Cc: Laurent Pinchart Cc: dri-de...@lists.freedesktop.org Signed-off-by:

[PATCH 2/6] drm/bridge: adv7511: Switch to using drm_kms_helper_hotplug_event()

2017-01-16 Thread John Stultz
: Laurent Pinchart Signed-off-by: John Stultz --- v3: Update connector.status value and only call __hotplug_event() when that status changes, as suggested by Laurent. v4: Set adv7511->connector.status before calling adv7511->connector.status, as suggested by Laurent. --- drivers/g

[PATCH 4/6] drm/bridge: adv7511: Rework adv7511_power_on/off() so they can be reused internally

2017-01-16 Thread John Stultz
Cc: Laurent Pinchart Cc: dri-de...@lists.freedesktop.org Signed-off-by: John Stultz --- v4: Move the regcache_sync() call outside the shared implementation as we don't want to call it on EDID probing, as suggested by Laurent --- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c

[PATCH 3/6] drm/bridge: adv7511: Enable HPD interrupts to support hotplug and improve monitor detection

2017-01-16 Thread John Stultz
commit message] Signed-off-by: John Stultz --- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c index 7b2b5af..405e460 100644 --- a/drivers

[PATCH 1/6] drm/bridge: adv7511: Use work_struct to defer hotplug handing to out of irq context

2017-01-16 Thread John Stultz
ri-de...@lists.freedesktop.org Reviewed-by: Laurent Pinchart Tested-by: Laurent Pinchart Signed-off-by: John Stultz --- v3: Rename irq_work to hpd_work and remove extra whitespace, as suggested by Laurent --- drivers/gpu/drm/bridge/adv7511/adv7511.h | 2 ++ drivers/gpu/drm/bridge/adv7511/adv7511_

[PATCH 0/6 v4] adv7511 EDID probing improvements

2017-01-16 Thread John Stultz
urent Pinchart Cc: dri-de...@lists.freedesktop.org Archit Taneja (1): drm/bridge: adv7511: Enable HPD interrupts to support hotplug and improve monitor detection John Stultz (5): drm/bridge: adv7511: Use work_struct to defer hotplug handing to out of irq context drm/bridge: adv7511: S

Re: [RFC][PATCH] drm/bridge: adv7511: Re-write the i2c address as it may have been lost

2017-01-16 Thread John Stultz
On Mon, Jan 16, 2017 at 3:36 PM, Laurent Pinchart wrote: > Hi John, > > Thank you for the patch. > > On Monday 16 Jan 2017 15:16:51 John Stultz wrote: >> Laurent: Would something like the following be preferred? Seems >> to work as well for me.. > > That looks

Re: [PATCH 1/4 v3] usb: dwc2: Avoid sleeping while holding hsotg->lock

2017-01-16 Thread John Stultz
On Mon, Jan 16, 2017 at 12:57 PM, John Youn wrote: > > >> On Jan 16, 2017, at 12:37 PM, John Stultz wrote: >> >> On Mon, Jan 16, 2017 at 2:36 AM, Felipe Balbi >> wrote: >>> >>> Hi, >>> >>> John Stultz writes: >&

[RFC][PATCH] drm/bridge: adv7511: Re-write the i2c address as it may have been lost

2017-01-16 Thread John Stultz
a Cc: Wolfram Sang Cc: Lars-Peter Clausen Cc: Laurent Pinchart Cc: dri-de...@lists.freedesktop.org Signed-off-by: John Stultz --- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/b

Re: [PATCH 1/4 v3] usb: dwc2: Avoid sleeping while holding hsotg->lock

2017-01-16 Thread John Stultz
On Mon, Jan 16, 2017 at 2:36 AM, Felipe Balbi wrote: > > Hi, > > John Stultz writes: >> Basically when plugging in various cables in different orders, I'm >> occasionally seeing the following BUG splat: >> >> [ 86.215403] BUG: scheduling

Re: [RFC][PATCH 0/5 v2] Fixes and workarounds for dwc2 on HiKey board

2017-01-16 Thread John Stultz
On Mon, Jan 16, 2017 at 2:29 AM, Felipe Balbi wrote: > > Hi, > > John Stultz writes: >> I just wanted to re-send my current queue of patches for dwc2 >> controller on the HiKey board, as my last patchset ended up >> colliding with a number of changes that landed

Re: [PATCH 5/5 v3] drm/bridge: adv7511: Reuse __adv7511_power_on/off() when probing EDID

2017-01-16 Thread John Stultz
On Mon, Jan 16, 2017 at 8:03 AM, Laurent Pinchart wrote: > Hi John, > > Thank you for the patch. > > On Tuesday 03 Jan 2017 11:41:42 John Stultz wrote: >> I've found that by just turning the chip on and off via the >> POWER_DOWN register, I end up getting

Re: [PATCH 2/5 v3] drm/bridge: adv7511: Switch to using drm_kms_helper_hotplug_event()

2017-01-16 Thread John Stultz
On Mon, Jan 16, 2017 at 7:56 AM, Laurent Pinchart wrote: > On Monday 16 Jan 2017 17:47:46 Laurent Pinchart wrote: >> Hi John, >> >> Thank you for the patch. >> >> On Tuesday 03 Jan 2017 11:41:39 John Stultz wrote: >> > In chasing down a pre

Re: [PATCH 0/4 v3] Fixes and workarounds for dwc2 on HiKey board (rebased to synopsys-usb/next)

2017-01-12 Thread John Stultz
On Thu, Jan 12, 2017 at 12:05 AM, Felipe Balbi wrote: > > Hi, > > John Youn writes: >> On 1/11/2017 4:22 PM, John Stultz wrote: >>> Just wanted to resend my patches for dwc2 controller on the >>> HiKey board for consideration for the 4.11 merge window. >

[PATCH 2/4 v3] usb: dwc2: Workaround case where GOTGCTL state is wrong

2017-01-11 Thread John Stultz
Youn Reviewed-by: Vardan Mikayelyan Signed-off-by: John Stultz --- v2: Rework goto logic suggested by Vardan, and add a comment v3: * Rebased to synopsys-usb/next branch --- drivers/usb/dwc2/hcd.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb

[PATCH 1/4 v3] usb: dwc2: Avoid sleeping while holding hsotg->lock

2017-01-11 Thread John Stultz
Cc: Wei Xu Cc: Guodong Xu Cc: Amit Pundir Cc: Rob Herring Cc: John Youn Cc: Douglas Anderson Cc: Chen Yu Cc: Vardan Mikayelyan Cc: Kishon Vijay Abraham I Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Signed-off-by: John Stultz --- v3: * Rebased to synopsys-usb/nex

[PATCH 4/4 v3] usb: dwc2: Add a quirk to allow speed negotiation for Hisilicon Hi6220

2017-01-11 Thread John Stultz
vger.kernel.org Signed-off-by: Chen Yu [jstultz: Reworked to simplify the patch, and made commit log to be more specific about the issue] Signed-off-by: John Stultz --- v2: * Fix build issue reported by kbuildbot * Rework to avoid using new dts entry suggested by RobH * Further tweaks from Chen Yu to

[PATCH 3/4 v3] usb: dwc2: Force port resume on switching to device mode

2017-01-11 Thread John Stultz
u Cc: Amit Pundir Cc: Rob Herring Cc: John Youn Cc: Douglas Anderson Cc: Chen Yu Cc: Vardan Mikayelyan Cc: Kishon Vijay Abraham I Cc: Felipe Balbi Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Signed-off-by: Chen Yu Signed-off-by: John Stultz --- v3: * Rebased to synopsys-usb/next b

[PATCH 0/4 v3] Fixes and workarounds for dwc2 on HiKey board (rebased to synopsys-usb/next)

2017-01-11 Thread John Stultz
licon Hi6220 John Stultz (2): usb: dwc2: Avoid sleeping while holding hsotg->lock usb: dwc2: Workaround case where GOTGCTL state is wrong drivers/usb/dwc2/core.c | 6 ++-- drivers/usb/dwc2/core.h | 9 +- drivers/usb/dwc2/gadget.c | 2 +- drivers/usb/dwc2/hcd.c

Re: [PATCH 0/5 v3] adv7511 EDID probing improvements

2017-01-11 Thread John Stultz
On Wed, Jan 11, 2017 at 12:48 AM, Archit Taneja wrote: > Hi, > > On 01/04/2017 01:11 AM, John Stultz wrote: >> >> Hope everyone had a good newyears! >> >> Wanted to re-send out v3 of this patch set improving the EDID >> probing on the adv7511 used on HiKe

Re: [PATCH 0/5 v2] Fixes and workarounds for dwc2 on HiKey board

2017-01-11 Thread John Stultz
On Wed, Jan 11, 2017 at 2:58 PM, John Youn wrote: > On 1/11/2017 2:39 PM, John Stultz wrote: >> On Wed, Jan 11, 2017 at 2:08 PM, John Youn wrote: >>> On 1/3/2017 11:52 AM, John Stultz wrote: >>>> Hope everyone had a happy new years! >>>> >>>>

Re: [PATCH 0/5 v2] Fixes and workarounds for dwc2 on HiKey board

2017-01-11 Thread John Stultz
On Wed, Jan 11, 2017 at 2:08 PM, John Youn wrote: > On 1/3/2017 11:52 AM, John Stultz wrote: >> Hope everyone had a happy new years! >> >> I just wanted to send out my current queue of patches for dwc2 >> controller on the HiKey board for consideration for the 4.11

Re: [PATCH v2] ARM: dts: qcom: apq8064: Add missing scm clock

2017-01-06 Thread John Stultz
On Thu, Dec 29, 2016 at 4:06 AM, Bjorn Andersson wrote: > As per the device tree binding the apq8064 scm node requires the core > clock to be specified, so add this. > > Signed-off-by: Bjorn Andersson > --- > > Changes since v1: > - Changed clock to Daytona Fabric > > arch/arm/boot/dts/qcom-apq8

Re: [PATCH v3 1/3] timekeeping: Add a fast and NMI safe boot clock

2017-01-06 Thread John Stultz
On Fri, Jan 6, 2017 at 6:39 PM, Joel Fernandes wrote: > Hi John, > > On Fri, Jan 6, 2017 at 4:48 PM, John Stultz wrote: >> On Thu, Nov 24, 2016 at 12:20 PM, Joel Fernandes wrote: >>> This boot clock can be used as a tracing clock and will account for >>> sus

Re: [PATCH 1/5] ARM: dts: qcom: apq8064: Add missing scm clock

2017-01-06 Thread John Stultz
On Wed, Dec 21, 2016 at 3:49 AM, Bjorn Andersson wrote: > As per the device tree binding the apq8064 scm node requires the core > clock to be specified, so add this. > > Cc: John Stultz > Signed-off-by: Bjorn Andersson > --- > arch/arm/boot/dts/qcom-apq8064.dtsi | 3 +++

Re: [PATCH 2/5] ARM: dts: qcom: apq8064: Add riva-pil node

2017-01-06 Thread John Stultz
On Wed, Dec 21, 2016 at 3:49 AM, Bjorn Andersson wrote: > Add nodes for the Riva PIL, IRIS RF module, BT and WiFI services exposed > by the Riva firmware and the related memory reserve. > > Also provides pinctrl nodes for devices enabling the riva-pil. > > Cc: John Stultz >

Re: [PATCH v2 1/4] timekeeping: export do_adjtimex() to modules

2017-01-06 Thread John Stultz
On Wed, Jan 4, 2017 at 9:24 AM, Vitaly Kuznetsov wrote: > While do_adjtimex() is available to userspace via adjtimex syscall it is > not available to modules which may want to implement in-kernel 'NTP > clients'. Hyper-V hv_utils is going to be the first one. > > Signed-off-by: Vitaly Kuznetsov >

Re: [PATCH v2 2/4] hv_util: switch to using timespec64

2017-01-06 Thread John Stultz
On Wed, Jan 4, 2017 at 9:24 AM, Vitaly Kuznetsov wrote: > do_settimeofday() is deprecated, use do_settimeofday64() instead. > > Signed-off-by: Vitaly Kuznetsov Looks sane. Acked-by: John Stultz thanks -john

Re: [PATCH v2 4/4] hv_util: improve time adjustment accuracy by disabling interrupts

2017-01-06 Thread John Stultz
On Wed, Jan 4, 2017 at 9:24 AM, Vitaly Kuznetsov wrote: > If we happen to receive interrupts during hv_set_host_time() execution > our adjustments may get inaccurate. Make the whole function atomic. > Unfortunately, we can's call do_settimeofday64() with interrupts > disabled as some cross-CPU wor

Re: [PATCH v2 3/4] hv_util: use do_adjtimex() to update system time

2017-01-06 Thread John Stultz
On Wed, Jan 4, 2017 at 9:24 AM, Vitaly Kuznetsov wrote: > With TimeSync version 4 protocol support we started updating system time > continuously through the whole lifetime of Hyper-V guests. Every 5 seconds > there is a time sample from the host which triggers do_settimeofday[64](). > While the t

Re: [PATCH v3 1/3] timekeeping: Add a fast and NMI safe boot clock

2017-01-06 Thread John Stultz
k, TK_CLEAR_NTP...); > > (2) On 32-bit systems, the 64-bit boot offset (tk->offs_boot) may be > partially updated. Since the tk->offs_boot update is a rare event, this > should be a rare occurrence which postprocessing should be able to handle. > > Cc: Steven Rostedt > Cc: T

Re: [PATCH] usb: dwc2: use u32 for DT binding parameters

2017-01-06 Thread John Stultz
it against Linus' HEAD and my tree is stale? Anyway, after re-applying it to my tree: Tested-by: John Stultz thanks -john

Re: [PATCH] usb: dwc2: fix panic for coherent memory allocation

2017-01-06 Thread John Stultz
On Thu, Jan 5, 2017 at 6:50 PM, Leo Yan wrote: > When use configfs to configure USB port as as ethernet gadget, the > kernel has panic with below backtrace; it clearly indicates the > coherent memory allocation is happened in the interrupt context, > but the function __get_vm_area_node() is possib

Re: [PATCH 0/5 v2] Fixes and workarounds for dwc2 on HiKey board

2017-01-03 Thread John Stultz
On Tue, Jan 3, 2017 at 4:31 PM, John Youn wrote: > On 1/3/2017 12:05 PM, John Stultz wrote: >> On Tue, Jan 3, 2017 at 11:52 AM, John Stultz wrote: >>> Hope everyone had a happy new years! >>> >>> I just wanted to send out my current queue of patches for dwc2 &

<    5   6   7   8   9   10   11   12   13   14   >