Re: [RFC][PATCH 2/3] usb: roles: Add usb role switch notifier.

2019-10-03 Thread John Stultz
On Thu, Oct 3, 2019 at 2:25 AM Hans de Goede wrote: > On 03-10-2019 01:16, John Stultz wrote: > > From: Yu Chen > > > > This patch adds notifier for drivers want to be informed of the usb role > > switch. > > I do not see any patches in this series actually usi

[RFC][PATCH] dt-bindings: usb: rt1711h: Add connector bindings

2019-10-02 Thread John Stultz
t CC: ShuFan Lee Cc: Greg Kroah-Hartman Cc: Rob Herring Cc: Mark Rutland Cc: linux-...@vger.kernel.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz --- .../bindings/usb/richtek,rt1711h.txt | 29 +++ 1 file changed, 29 insertions(+) diff --git a/Document

[RFC][PATCH 0/3] dwc3 role-switch handling for HiKey960

2019-10-02 Thread John Stultz
oah-Hartman Cc: Rob Herring Cc: Mark Rutland Cc: Heikki Krogerus Cc: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc: Hans de Goede Cc: Andy Shevchenko Cc: Jun Li Cc: Valentin Schneider Cc: linux-...@vger.kernel.org Cc: devicet...@vger.kernel.org John Stultz (1): dt-bi

[RFC][PATCH 1/3] dt-bindings: usb: generic: Add role-switch-default-host binding

2019-10-02 Thread John Stultz
Shevchenko Cc: Jun Li Cc: Valentin Schneider Cc: linux-...@vger.kernel.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz --- Documentation/devicetree/bindings/usb/generic.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/generic.txt b

[RFC][PATCH 2/3] usb: roles: Add usb role switch notifier.

2019-10-02 Thread John Stultz
Li Cc: Valentin Schneider Cc: linux-...@vger.kernel.org Cc: devicet...@vger.kernel.org Suggested-by: Heikki Krogerus Signed-off-by: Yu Chen Signed-off-by: John Stultz --- drivers/usb/roles/class.c | 35 ++- include/linux/usb/role.h | 16 2 files

[RFC][PATCH 3/3] usb: dwc3: Registering a role switch in the DRD code.

2019-10-02 Thread John Stultz
: Suzuki K Poulose Cc: Chunfeng Yun Cc: Yu Chen Cc: Felipe Balbi Cc: Hans de Goede Cc: Andy Shevchenko Cc: Jun Li Cc: Valentin Schneider Cc: linux-...@vger.kernel.org Cc: devicet...@vger.kernel.org Suggested-by: Heikki Krogerus Signed-off-by: Yu Chen Signed-off-by: John Stultz

Re: [PATCH 4/5] dt-bindings: usb: dwc3: of-simple: add compatible for HiSi

2019-10-02 Thread John Stultz
On Wed, Sep 25, 2019 at 11:42 PM Chunfeng Yun wrote: > On Wed, 2019-09-25 at 21:06 -0700, John Stultz wrote: > > On Wed, Sep 25, 2019 at 6:34 PM Chunfeng Yun > > wrote: > > > On Wed, 2019-09-25 at 23:42 +, John Stultz wrote: > > > > +++ b/Documentation/d

[PATCH] arm64: dts: hisilicon: Add Mali-450 MP4 GPU DT entry

2019-10-01 Thread John Stultz
From: Peter Griffin hi6220 has a Mali450 MP4 so lets add it into the DT. Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Signed-off-by: Peter Griffin Signed-off-by: John Stultz --- arch/arm64/boot/dts/hisilicon/hi6220

[PATCH] clk: hi6220: use CLK_OF_DECLARE_DRIVER

2019-10-01 Thread John Stultz
From: Peter Griffin As now we also need to probe in the reset driver as well. Cc: Michael Turquette Cc: Stephen Boyd Cc: Allison Randal Cc: Peter Griffin Cc: linux-...@vger.kernel.org Signed-off-by: Peter Griffin Signed-off-by: John Stultz --- drivers/clk/hisilicon/clk-hi6220.c | 2 +- 1

[PATCH] reset: hi6220: Add support for AO reset controller

2019-10-01 Thread John Stultz
From: Peter Griffin This is required to bring Mali450 gpu out of reset. Cc: Philipp Zabel Cc: Peter Griffin Cc: Enrico Weigelt Signed-off-by: Peter Griffin Signed-off-by: John Stultz --- drivers/reset/hisilicon/hi6220_reset.c | 51 +- 1 file changed, 50 insertions

Re: [GIT PULL] scheduler fixes

2019-10-01 Thread John Stultz
On Tue, Oct 1, 2019 at 12:19 AM Peter Zijlstra wrote: > > On Mon, Sep 30, 2019 at 04:45:49PM -0700, John Stultz wrote: > > Reverting the following patches: > > > "sched/membarrier: Fix p->mm->membarrier_state racy load" > > ARGH, I fudged it...

Re: [GIT PULL] scheduler fixes

2019-09-30 Thread John Stultz
On Sat, Sep 28, 2019 at 5:40 AM Ingo Molnar wrote: > > Please pull the latest sched-urgent-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > sched-urgent-for-linus > ># HEAD: 4892f51ad54ddff2883a60b6ad4323c1f632a9d6 sched/fair: Avoid > redundant EAS

Re: [RESEND][PATCH v8 5/5] kselftests: Add dma-heap test

2019-09-26 Thread John Stultz
On Mon, Sep 23, 2019 at 3:12 PM Brian Starkey wrote: > > I didn't see any response about using the test harness. Did you decide > against it? Hey! Spent a little time looking at this bit and just wanted to reply to this point. So first, apologies, I think I missed the suggestion earlier. That sa

Re: [PATCH 4/5] dt-bindings: usb: dwc3: of-simple: add compatible for HiSi

2019-09-25 Thread John Stultz
On Wed, Sep 25, 2019 at 6:34 PM Chunfeng Yun wrote: > On Wed, 2019-09-25 at 23:42 +0000, John Stultz wrote: > > +++ b/Documentation/devicetree/bindings/usb/hisi,dwc3.txt > > @@ -0,0 +1,52 @@ > > +HiSi SuperSpeed DWC3 USB SoC controller > > + > > +Requi

[PATCH 2/5] usb: dwc3: Execute GCTL Core Soft Reset while switch mode for Hisilicon Kirin Soc

2019-09-25 Thread John Stultz
: devicet...@vger.kernel.org Signed-off-by: Yu Chen Signed-off-by: John Stultz --- drivers/usb/dwc3/core.c | 20 drivers/usb/dwc3/core.h | 3 +++ 2 files changed, 23 insertions(+) diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 999ce5e84d3c..440261432421

[PATCH 3/5] usb: dwc3: Increase timeout for CmdAct cleared by device controller

2019-09-25 Thread John Stultz
Cc: devicet...@vger.kernel.org Signed-off-by: Yu Chen Signed-off-by: John Stultz --- drivers/usb/dwc3/gadget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 8adb59f8e4f1..81907e163252 100644 --- a/drivers/usb/dwc3

[PATCH 4/5] dt-bindings: usb: dwc3: of-simple: add compatible for HiSi

2019-09-25 Thread John Stultz
igned-off-by: John Stultz --- .../devicetree/bindings/usb/hisi,dwc3.txt | 52 +++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/hisi,dwc3.txt diff --git a/Documentation/devicetree/bindings/usb/hisi,dwc3.txt b/Documentation/devic

[PATCH 1/5] dt-bindings: usb: dwc3: Add a property to do a CGTL soft reset on mode switching

2019-09-25 Thread John Stultz
Signed-off-by: John Stultz --- Documentation/devicetree/bindings/usb/dwc3.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/dwc3.txt b/Documentation/devicetree/bindings/usb/dwc3.txt index 66780a47ad85..cf4ef6c22fb3 100644 --- a/Documentation/devicetree

[PATCH 5/5] usb: dwc3: dwc3-of-simple: Add support for dwc3 of Hisilicon Soc Platform

2019-09-25 Thread John Stultz
: devicet...@vger.kernel.org Signed-off-by: Yu Chen Signed-off-by: John Stultz --- drivers/usb/dwc3/dwc3-of-simple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index bdac3e7d7b18..78617500edee 100644

[RFC][PATCH 0/5] dwc3: Changes for HiKey960 support

2019-09-25 Thread John Stultz
r Cc: Chunfeng Yun Cc: linux-...@vger.kernel.org Cc: devicet...@vger.kernel.org John Stultz (2): dt-bindings: usb: dwc3: Add a property to do a CGTL soft reset on mode switching dt-bindings: usb: dwc3: of-simple: add compatible for HiSi Yu Chen (3): usb: dwc3: Execute GCTL Core Soft Reset while switc

Re: [RESEND][PATCH v8 0/5] DMA-BUF Heaps (destaging ION)

2019-09-24 Thread John Stultz
On Tue, Sep 24, 2019 at 9:22 AM Ayan Halder wrote: > I tested these patches using our internal test suite with Arm,komeda > driver and the following node in dts > > reserved-memory { > #address-cells = <0x2>; > #size-cells = <0x2>; > ranges;

[PATCH v5 19/25] drm: kirin: Add register connect helper functions in drm init

2019-08-20 Thread John Stultz
Cc: dri-devel Cc: Sam Ravnborg Acked-by: Xinliang Liu Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- v5: checkpatch --strict whitespace fixups noticed by Sam --- .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 1

[PATCH v4 11/25] drm: kirin: Move kirin_crtc, kirin_plane, kirin_format to kirin_drm_drv.h

2019-08-19 Thread John Stultz
Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Acked-by: Xinliang Liu Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 27 ++- .../gpu

[PATCH v4 22/25] drm: kirin: Make driver_data variable non-global

2019-08-19 Thread John Stultz
Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Acked-by: Xinliang Liu Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: Reworded commit message] Signed-off-by: John Stultz --- .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 43 +++ 1 file

[PATCH v4 19/25] drm: kirin: Add register connect helper functions in drm init

2019-08-19 Thread John Stultz
Cc: dri-devel Cc: Sam Ravnborg Acked-by: Xinliang Liu Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 1 + .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 43

[PATCH v4 10/25] drm: kirin: Move workqueue to ade_hw_ctx structure

2019-08-19 Thread John Stultz
Vetter Cc: dri-devel Cc: Sam Ravnborg Acked-by: Xinliang Liu Reviewed-by: Sam Ravnborg Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b

[PATCH v4 14/25] drm: kirin: Move channel formats to driver data

2019-08-19 Thread John Stultz
: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Acked-by: Xinliang Liu Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 30

[PATCH v4 18/25] drm: kirin: Move drm driver to driver data

2019-08-19 Thread John Stultz
Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Acked-by: Xinliang Liu Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: Reworded commit message] Signed-off-by: John Stultz --- .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 24

[RESEND][PATCH v3 05/26] drm: kirin: Remove uncessary parameter indirection

2019-08-14 Thread John Stultz
-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/hisilicon

[RESEND][PATCH v3 02/26] drm: kirin: Get rid of drmP.h includes

2019-08-14 Thread John Stultz
Remove use of drmP.h in kirin driver Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Suggested-by: Sam Ravnborg Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 6 +- drivers/gpu/drm/hisilicon/kirin

[RESEND][PATCH v3 06/26] drm: kirin: Remove out_format from ade_crtc

2019-08-14 Thread John Stultz
: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 9 +++-- 1 file changed

[RESEND][PATCH v3 01/26] drm: kirin: Fix for hikey620 display offset problem

2019-08-14 Thread John Stultz
tultz: Reworded the commit message, checkpatch cleanups] Signed-off-by: John Stultz --- v2: Minor cleanups v3: Rename workqueue entry for clarity (suggested by Sam) --- .../gpu/drm/hisilicon/kirin/kirin_ade_reg.h | 1 + .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 22 +++ 2

[RESEND][PATCH v3 11/26] drm: kirin: Move workqueue to ade_hw_ctx structure

2019-08-14 Thread John Stultz
Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b/drivers/gpu/drm

[RESEND][PATCH v3 12/26] drm: kirin: Move kirin_crtc, kirin_plane, kirin_format to kirin_drm_drv.h

2019-08-14 Thread John Stultz
Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 27 ++- .../gpu/drm/hisilicon/kirin

[RESEND][PATCH v3 18/26] drm: kirin: Move config max_width and max_height to driver data

2019-08-14 Thread John Stultz
kirin_drm_data structure. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c

[RESEND][PATCH v3 00/26] drm: Kirin driver cleanups to prep for Kirin960 support

2019-08-14 Thread John Stultz
nborg Da Lv (1): drm: kirin: Fix for hikey620 display offset problem John Stultz (4): drm: kirin: Get rid of drmP.h includes drm: kirin: Remove HISI_KIRIN_DW_DSI config option drm: kirin: Remove unreachable return drm: kirin: Move workqueue to ade_hw_ctx structure Xu YiPing (21):

[RESEND][PATCH v3 03/26] drm: kirin: Remove HISI_KIRIN_DW_DSI config option

2019-08-14 Thread John Stultz
The CONFIG_HISI_KIRIN_DW_DSI option is only used w/ kirin driver, so cut out the middleman and condense the config logic down. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: John Stultz

[RESEND][PATCH v3 13/26] drm: kirin: Reanme dc_ops to kirin_drm_data

2019-08-14 Thread John Stultz
-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 2 +- drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 16 drivers/gpu/drm/hisilicon

[RESEND][PATCH v3 04/26] drm: kirin: Remove unreachable return

2019-08-14 Thread John Stultz
The 'return 0' in kirin_drm_platform_probe() is unreachable code, so remove it. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Suggested by: Xu YiPing Signed-off-by: John Stultz --- drivers/gpu/drm

[RESEND][PATCH v3 15/26] drm: kirin: Move channel formats to driver data

2019-08-14 Thread John Stultz
: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 30 +-- .../gpu/drm/hisilicon

[RESEND][PATCH v3 09/26] drm: kirin: Dynamically allocate the hw_ctx

2019-08-14 Thread John Stultz
point to hardware revision specific ctx structures. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- .../gpu/drm

[RESEND][PATCH v3 16/26] drm: kirin: Move mode config function to driver_data

2019-08-14 Thread John Stultz
: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 10 ++ drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c

[RESEND][PATCH v3 07/26] drm: kirin: Rename ade_plane to kirin_plane

2019-08-14 Thread John Stultz
future patch Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 57

[RESEND][PATCH v3 22/26] drm: kirin: Fix dev->driver_data setting

2019-08-14 Thread John Stultz
lie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: Reworded commit message] Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 1 - drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 3 +-- 2 files chan

[RESEND][PATCH v3 26/26] drm: kirin: Move ade drm init to kirin drm drv

2019-08-14 Thread John Stultz
added later) kirin960 specific support code. Cc: Rongrong Zou Cc: Xinliang Liu Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: Reworded commit message] Signed-off-by: John Stultz --- .../gpu/drm/hisilicon

Re: New kernel interface for sys_tz and timewarp?

2019-08-13 Thread John Stultz
On Tue, Aug 13, 2019 at 2:06 AM Arnd Bergmann wrote: > Now, to the actual questions: > > * Should we allow setting the sys_tz on new architectures that use only > time64 interfaces at all, or should we try to get away from that anyway? So I'd probably cut this question a bit differently: 1) Do

[PATCH v3 06/26] drm: kirin: Remove out_format from ade_crtc

2019-07-31 Thread John Stultz
: Rongrong Zou Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 9 +++-- 1 file changed, 3 insertions

[PATCH v3 05/26] drm: kirin: Remove uncessary parameter indirection

2019-07-31 Thread John Stultz
Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: reworded commit message] Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/kirin

[PATCH v3 19/26] drm: kirin: Move drm driver to driver data

2019-07-31 Thread John Stultz
Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel Cc: Sam Ravnborg Reviewed-by: Sam Ravnborg Signed-off-by: Xu YiPing [jstultz: Reworded commit message] Signed-off-by: John Stultz --- .../gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 27 + .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c

Re: Limits for ION Memory Allocator

2019-07-24 Thread John Stultz
On Wed, Jul 24, 2019 at 1:18 PM John Stultz wrote: > > On Wed, Jul 24, 2019 at 12:36 PM Laura Abbott wrote: > > > > On 7/17/19 12:31 PM, Alexander Popov wrote: > > > Hello! > > > > > > The syzkaller [1] has a trouble with fuzzing the Linux

Re: [alsa-devel][PATCH] Signed-off-by: lsh <410860...@qq.com>

2019-07-22 Thread John Stultz
On Fri, Jul 19, 2019 at 11:35 PM lsh wrote: > > From: lsh <410860...@qq.com> > > Modification of leap seconds from 58 59 59 00 to 58 59 00 00 In the future, on other patches, you should provide a rational for *why* you are submitting this change, not what the change does. As for this patch, it w

Re: [GIT PULL] scheduler changes for v5.3

2019-07-10 Thread John Stultz
On Wed, Jul 10, 2019 at 3:57 AM Peter Zijlstra wrote: > > Urgh.. however didn't we find that before :/ stupid stats. > > Something like the below ought to fix, but let me see if I can come up > with something saner... Yep. This works for me, but let me know if you have anything else you want me t

Re: [PATCH v2] arm64: vdso: Fix ABI regression in compat vdso

2019-07-10 Thread John Stultz
so layer is not built and this causes a regression in the > expected behavior of the ABI. > > Restore the ABI behavior making sure that AT_SYSINFO_EHDR for compat > tasks is defined only when CONFIG_COMPAT_VDSO is enabled. > > Reported-by: John Stultz > Signed-off-by: Vincen

Re: [GIT PULL] scheduler changes for v5.3

2019-07-09 Thread John Stultz
On Mon, Jul 8, 2019 at 9:33 AM Ingo Molnar wrote: > Please pull the latest sched-core-for-linus git tree from: > >git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > sched-core-for-linus > Peter Zijlstra (1): > sched/core: Optimize try_to_wake_up() for local wakeups Hey Pe

Re: [PATCH v7 10/25] arm64: compat: Add vDSO

2019-07-09 Thread John Stultz
On Fri, Jun 21, 2019 at 3:18 AM Vincenzo Frascino wrote: > > Provide the arm64 compat (AArch32) vDSO in kernel/vdso32 in a similar > way to what happens in kernel/vdso. > > The compat vDSO leverages on an adaptation of the arm architecture code > with few changes: > - Use of lib/vdso for gettimeo

[PATCH v6 5/5] kselftests: Add dma-heap test

2019-06-24 Thread John Stultz
y: Benjamin Gaignard Signed-off-by: John Stultz Change-Id: Ib98569fdda6378eb086b8092fb5d6bd419b8d431 --- v2: * Switched to use reworked dma-heap apis v3: * Add simple mmap * Utilize dma-buf testdev to test importing v4: * Rework to use vgem * Pass in fd_flags to match interface changes * Skip . and

[PATCH v6 1/5] dma-buf: Add dma-buf heaps framework

2019-06-24 Thread John Stultz
ri-de...@lists.freedesktop.org Reviewed-by: Benjamin Gaignard Signed-off-by: Andrew F. Davis Signed-off-by: John Stultz Change-Id: I4af43a137ad34ff6f7da4d6b2864f3cd86fb7652 --- v2: * Folded down fixes I had previously shared in implementing heaps * Make flags a u64 (Suggested by Laura) * Ad

[PATCH v3 1/3] dt-bindings: power: reset: qcom: Add qcom,pm8998-pon compatibility line

2019-06-14 Thread John Stultz
-off-by: John Stultz --- v3: Typo fix in commit log suggeted by Marc Gonzalez --- Documentation/devicetree/bindings/power/reset/qcom,pon.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.txt b/Documentation/devicetree/bindings/power

[PATCH v3 3/3] arm64: dts: qcom: pm8998: Use qcom,pm8998-pon binding for second gen pon

2019-06-14 Thread John Stultz
-...@vger.kernel.org Cc: devicet...@vger.kernel.org Reviewed-by: Bjorn Andersson Signed-off-by: John Stultz --- arch/arm64/boot/dts/qcom/pm8998.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pm8998.dtsi b/arch/arm64/boot/dts/qcom/pm8998.dtsi index d3ca35a940fb6

[PATCH v3 2/3] reset: qcom-pon: Add support for gen2 pon

2019-06-14 Thread John Stultz
eviewed-by: Bjorn Andersson Signed-off-by: John Stultz v2: * Split out dts changes into separate path * Minor cleanups and remove unused variables --- drivers/power/reset/qcom-pon.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/power/reset/qcom-pon.c b/dri

Re: [PATCH] usb: gadget: f_fs: data_len used before properly set

2019-06-13 Thread John Stultz
On Wed, Jun 12, 2019 at 3:13 PM wrote: > > From: Fei Yang > > The following line of code in function ffs_epfile_io is trying to set > flag io_data->use_sg in case buffer required is larger than one page. > > io_data->use_sg = gadget->sg_supported && data_len > PAGE_SIZE; > > However at this p

Re: [PATCH 0/3] (Qualcomm) UFS device reset support

2019-06-04 Thread John Stultz
t; scsi: ufs: Allow resetting the UFS device > arm64: dts: qcom: sdm845-mtp: Specify UFS device-reset GPIO Adding similar change as in sdm845-mtp to the not yet upstream blueline dts, I validated this allows my micron UFS pixel3 to boot. Tested-by: John Stultz thanks -john

Re: [EXT] [PATCH 2/3] scsi: ufs: Allow resetting the UFS device

2019-06-04 Thread John Stultz
On Tue, Jun 4, 2019 at 1:14 AM Bean Huo (beanhuo) wrote: > > Hi, Bjorn > > >Acquire the device-reset GPIO and toggle this to reset the UFS device during > >initialization and host reset. > > > >+/** > >+ ufshcd_device_reset() - toggle the (optional) device reset line > >+ * @hba: per-adapter insta

[PATCH 3/3 v2] arm64: dts: qcom: pm8998: Use qcom,pm8998-pon binding for second gen pon

2019-06-03 Thread John Stultz
-...@vger.kernel.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz --- arch/arm64/boot/dts/qcom/pm8998.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/pm8998.dtsi b/arch/arm64/boot/dts/qcom/pm8998.dtsi index d3ca35a940fb6..051a52df80f9e 100644 --- a

[PATCH 1/3 v2] dt-bindings: power: reset: qcom: Add qcom,pm8998-pon compatability line

2019-06-03 Thread John Stultz
-off-by: John Stultz --- Documentation/devicetree/bindings/power/reset/qcom,pon.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.txt b/Documentation/devicetree/bindings/power/reset/qcom,pon.txt index 5705f575862df..0c0dc3a1e693e 100644

[PATCH 2/3 v2] reset: qcom-pon: Add support for gen2 pon

2019-06-03 Thread John Stultz
eviewed-by: Bjorn Andersson Signed-off-by: John Stultz v2: * Split out dts changes into separate path * Minor cleanups and remove unused variables --- drivers/power/reset/qcom-pon.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/power/reset/qcom-pon.c b/dri

Re: [RFC][PATCH 2/2] reset: qcom-pon: Add support for gen2 pon

2019-05-31 Thread John Stultz
On Fri, May 31, 2019 at 4:53 PM Bjorn Andersson wrote: > > On Fri 31 May 16:47 PDT 2019, John Stultz wrote: > > > Add support for gen2 pon register so "reboot bootloader" can > > work on pixel3 and db845. > > > > Cc: Andy Gross > > Cc: David Br

[RFC][PATCH 1/2] dt-bindings: power: reset: qcom: Add qcom,pm8998-pon compatability line

2019-05-31 Thread John Stultz
Update bindings to support for qcom,pm8998-pon which uses gen2 pon Cc: Andy Gross Cc: David Brown Cc: Bjorn Andersson Cc: Amit Pundir Cc: Rob Herring Cc: Mark Rutland Cc: Sebastian Reichel Cc: linux-arm-...@vger.kernel.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz

[RFC][PATCH 2/2] reset: qcom-pon: Add support for gen2 pon

2019-05-31 Thread John Stultz
ned-off-by: John Stultz --- arch/arm64/boot/dts/qcom/pm8998.dtsi | 2 +- drivers/power/reset/qcom-pon.c | 15 --- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/pm8998.dtsi b/arch/arm64/boot/dts/qcom/pm8998.dtsi index d3ca35a940fb..05

Re: [PATCH net-next 1/5] timecounter: Add helper for reconstructing partial timestamps

2019-05-28 Thread John Stultz
On Tue, May 28, 2019 at 4:58 PM Vladimir Oltean wrote: > > Some PTP hardware offers a 64-bit free-running counter whose snapshots > are used for timestamping, but only makes part of that snapshot > available as timestamps (low-order bits). > > In that case, timecounter/cyclecounter users must brin

Re: [REGRESSION] usb: gadget: f_fs: Allow scatter-gather buffers

2019-05-21 Thread John Stultz
On Tue, May 21, 2019 at 3:04 AM Andrzej Pietrasiewicz wrote: > > One thing that becomes evident now is that adb uses async io. > It seems that interaction of async io and s-g mode should be further > investigated. Although on our devices, we have async io disabled w/ adb, as there is an existing/

Re: [REGRESSION] usb: gadget: f_fs: Allow scatter-gather buffers

2019-05-20 Thread John Stultz
On Mon, May 20, 2019 at 9:23 AM Yang, Fei wrote: > > >> One question that comes to my mind is this: Does the USB transmission > >> stall (e.g. endpoint stall) or not? In other words, is adb connection > >> broken because USB stops transmitting anything, or because the data is > >> transmitted but

[RFC][PATCH 1/5 v4] dma-buf: Add dma-buf heaps framework

2019-05-13 Thread John Stultz
ri-de...@lists.freedesktop.org Signed-off-by: Andrew F. Davis Signed-off-by: John Stultz --- v2: * Folded down fixes I had previously shared in implementing heaps * Make flags a u64 (Suggested by Laura) * Add PAGE_ALIGN() fix to the core alloc funciton * IOCTL fixups suggested by Brian * Add

Re: [REGRESSION] usb: gadget: f_fs: Allow scatter-gather buffers

2019-05-09 Thread John Stultz
On Thu, May 9, 2019 at 11:25 AM John Stultz wrote: > > On Thu, May 9, 2019 at 7:02 AM Andrzej Pietrasiewicz > wrote: > > > > Hi John, > > W dniu 08.05.2019 o 04:18, John Stultz pisze: > > > Since commit 772a7a724f69 ("usb: gadget: f_fs: Allow scatter

Re: [REGRESSION] usb: gadget: f_fs: Allow scatter-gather buffers

2019-05-08 Thread John Stultz
On Wed, May 8, 2019 at 12:01 AM Andrzej Pietrasiewicz wrote: > W dniu 08.05.2019 o 04:18, John Stultz pisze: > > Andrzej: Do you have any ideas or suggestions on this? I'm happy to > > test or run any debug patches, if it would help narrow the issue down. > > >

Re: [PATCH 24/25] drm: kirin: Pass driver data to crtc init and plane init

2019-04-24 Thread John Stultz
On Wed, Apr 24, 2019 at 2:15 PM Sam Ravnborg wrote: > > > I missed where ade_driver_data came from. > > > This looks an extra patch to intoduce driver_data, > > > that maybe should be merged with an earlier version? > > > > I'm not sure I'm following you here. Can you clarify a bit more? > > So I

[PATCH 25/25] drm: kirin: Move ade drm init to kirin drm drv

2019-04-23 Thread John Stultz
added later) kirin960 specific support code. Signed-off-by: Xu YiPing [jstultz: Reworded commit message] Signed-off-by: John Stultz --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 123 - drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 141

[RESEND][PATCH 2/3] arm64: dts: hi3660: Add hisi asp dma device

2019-04-04 Thread John Stultz
-by: Youlin Wang Signed-off-by: Tanglei Han Signed-off-by: John Stultz --- v2: Removed undocumented bindings --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon

[RESEND][PATCH 3/3] arm64: dts: hi3660: Fixup unofficial dma-min-chan to dma-channel-mask

2019-04-04 Thread John Stultz
: devicet...@vger.kernel.org Signed-off-by: John Stultz --- v3: Renamed to hisi-dma-avail-chan v4: Renamed to dma-channel-mask --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64

[RESEND][PATCH 1/3] arm64: dts: hi3660: Add dma to uart nodes

2019-04-04 Thread John Stultz
uan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Acked-by: Manivannan Sadhasivam Signed-off-by: John Stultz --- v3: * Remove dma enablment on uart0 which would use re

[RESEND][PATCH 0/3] DMA dts changes for hi3660

2019-04-04 Thread John Stultz
ei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org John Stultz (2): arm64: dts: hi3660: Add dma to uart nodes arm64: dts: hi3660: Fixup unofficial dma-min-chan to dma-channel-mask Youlin Wang (1): arm64: dts: hi3660: Add hisi as

Re: [RFC][PATCH 1/5 v2] dma-buf: Add dma-buf heaps framework

2019-03-27 Thread John Stultz
On Wed, Mar 27, 2019 at 11:25 AM Greg KH wrote: > > On Tue, Mar 05, 2019 at 12:54:29PM -0800, John Stultz wrote: > > From: "Andrew F. Davis" > > > > This framework allows a unified userspace interface for dma-buf > > exporters, allowing userland to alloc

[PATCH 3/3] arm64: dts: hi3660: Fixup unofficial dma-min-chan to dma-channel-mask

2019-03-20 Thread John Stultz
: devicet...@vger.kernel.org Signed-off-by: John Stultz --- v3: Renamed to hisi-dma-avail-chan v4: Renamed to dma-channel-mask --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64

[PATCH 1/3] arm64: dts: hi3660: Add dma to uart nodes

2019-03-20 Thread John Stultz
uan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Acked-by: Manivannan Sadhasivam Signed-off-by: John Stultz --- v3: * Remove dma enablment on uart0 which would use re

[PATCH 2/3] arm64: dts: hi3660: Add hisi asp dma device

2019-03-20 Thread John Stultz
-by: Youlin Wang Signed-off-by: Tanglei Han Signed-off-by: John Stultz --- v2: Removed undocumented bindings --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon

[PATCH 0/3] DMA dts changes for hi3660

2019-03-20 Thread John Stultz
ei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org John Stultz (2): arm64: dts: hi3660: Add dma to uart nodes arm64: dts: hi3660: Fixup unofficial dma-min-chan to dma-channel-mask Youlin Wang (1): arm64: dts: hi3660: Add hisi as

REGRESSION: dwc2: gadget: Add scatter-gather mode

2019-03-08 Thread John Stultz
Hey Andrzej, I just wanted to let you know, trying to boot linus/master on the hikey board today, I've been seeing lots of errors on boot (which sometimes crash the board, and sometimes doesn't). See the example below. I've bisected the issue down to 10209abe87f5 ("usb: dwc2: gadget: Add scatter

Re: [PATCH][v2] time: Introduce jiffies64_to_msecs()

2019-03-08 Thread John Stultz
t; > > Signed-off-by: Zhang Yu > > Signed-off-by: Li RongQing > > Acked-by: Pablo Neira Ayuso > > This is touching kernel/time.c bits, which is far from my realm. > > What should I do with this? I can just place it in nf-next.git if I > get an ACK to do so. Otherwise, ple

Re: [RFC][PATCH 1/5 v2] dma-buf: Add dma-buf heaps framework

2019-03-06 Thread John Stultz
On Wed, Mar 6, 2019 at 10:18 AM Andrew F. Davis wrote: > > On 3/5/19 2:54 PM, John Stultz wrote: > > From: "Andrew F. Davis" > > > > This framework allows a unified userspace interface for dma-buf > > exporters, allowing userland to allocate specifi

Re: [RFC][PATCH 5/5 v2] kselftests: Add dma-heap test

2019-03-06 Thread John Stultz
On Wed, Mar 6, 2019 at 10:15 AM Andrew F. Davis wrote: > > On 3/6/19 10:14 AM, Benjamin Gaignard wrote: > > Le mar. 5 mars 2019 à 21:54, John Stultz a écrit : > >> > >> Add very trivial allocation test for dma-heaps. > >> > >> TODO: Need to actu

Re: [RFC][PATCH 5/5 v2] kselftests: Add dma-heap test

2019-03-06 Thread John Stultz
On Wed, Mar 6, 2019 at 8:14 AM Benjamin Gaignard wrote: > Le mar. 5 mars 2019 à 21:54, John Stultz a écrit : > > + > > + printf("Allocating 1 MEG\n"); > > + ret = dmabuf_heap_alloc(heap_fd, ONE_MEG, 0, &dmabuf_fd); > > +

Re: [RFC][PATCH 1/5 v2] dma-buf: Add dma-buf heaps framework

2019-03-06 Thread John Stultz
On Wed, Mar 6, 2019 at 8:12 AM Benjamin Gaignard wrote: > Le mar. 5 mars 2019 à 21:54, John Stultz a écrit : > > +/** > > + * DOC: DMABUF Heaps Userspace API > > + * > > + */ > > + > > +/* Currently no flags */ > > +#define DMA_HEAP_VALID_FLAGS (0)

Re: [RFC PATCH] ntp: Avoid undefined behaviour in second_overflow()

2019-03-05 Thread John Stultz
++ > 1 file changed, 2 insertions(+) > > diff --git a/kernel/time/ntp.c b/kernel/time/ntp.c > index 36a2bef..38e1b65 100644 > --- a/kernel/time/ntp.c > +++ b/kernel/time/ntp.c > @@ -677,6 +677,8 @@ static inline void process_adjtimex_modes(const struct > timex *txc, s32 *tim

[RFC][PATCH 2/5 v2] dma-buf: heaps: Add heap helpers

2019-03-05 Thread John Stultz
! Cc: Laura Abbott Cc: Benjamin Gaignard Cc: Greg KH Cc: Sumit Semwal Cc: Liam Mark Cc: Brian Starkey Cc: Andrew F. Davis Cc: Chenbo Feng Cc: Alistair Strachan Cc: dri-de...@lists.freedesktop.org Signed-off-by: John Stultz --- v2: * Removed cache management performance hack that I had

[RFC][PATCH 5/5 v2] kselftests: Add dma-heap test

2019-03-05 Thread John Stultz
...@lists.freedesktop.org Signed-off-by: John Stultz --- v2: Switched to use reworked dma-heap apis --- tools/testing/selftests/dmabuf-heaps/Makefile | 11 +++ tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c | 96 ++ 2 files changed, 107 insertions(+) create mode 100644

[RFC][PATCH 4/5 v2] dma-buf: heaps: Add CMA heap to dmabuf heapss

2019-03-05 Thread John Stultz
: Benjamin Gaignard Cc: Greg KH Cc: Sumit Semwal Cc: Liam Mark Cc: Brian Starkey Cc: Andrew F. Davis Cc: Chenbo Feng Cc: Alistair Strachan Cc: dri-de...@lists.freedesktop.org Signed-off-by: John Stultz --- v2: * Switch allocate to return dmabuf fd * Simplify init code * Checkpatch fixups

[RFC][PATCH 0/5 v2] DMA-BUF Heaps (destaging ION)

2019-03-05 Thread John Stultz
Semwal Cc: Liam Mark Cc: Brian Starkey Cc: Andrew F. Davis Cc: Chenbo Feng Cc: Alistair Strachan Cc: dri-de...@lists.freedesktop.org Andrew F. Davis (1): dma-buf: Add dma-buf heaps framework John Stultz (4): dma-buf: heaps: Add heap helpers dma-buf: heaps: Add system heap to dmabuf heaps

[RFC][PATCH 3/5 v2] dma-buf: heaps: Add system heap to dmabuf heaps

2019-03-05 Thread John Stultz
Cross, Laura Abbott, and others! Cc: Laura Abbott Cc: Benjamin Gaignard Cc: Greg KH Cc: Sumit Semwal Cc: Liam Mark Cc: Brian Starkey Cc: Andrew F. Davis Cc: Chenbo Feng Cc: Alistair Strachan Cc: dri-de...@lists.freedesktop.org Signed-off-by: John Stultz --- v2: * Switch allocate to return

[RFC][PATCH 1/5 v2] dma-buf: Add dma-buf heaps framework

2019-03-05 Thread John Stultz
c: Greg KH Cc: Sumit Semwal Cc: Liam Mark Cc: Brian Starkey Cc: Andrew F. Davis Cc: Chenbo Feng Cc: Alistair Strachan Cc: dri-de...@lists.freedesktop.org Signed-off-by: Andrew F. Davis [jstultz: reworded commit message, and lots of cleanups] Signed-off-by: John Stultz --- v2: * Folded down f

Re: [PATCH v3 10/12] hikey960: Support usb functionality of Hikey960

2019-03-03 Thread John Stultz
On Sat, Mar 2, 2019 at 4:05 AM Yu Chen wrote: > +static int hisi_hikey_usb_probe(struct platform_device *pdev) > +{ > + struct device *dev = &pdev->dev; > + struct device_node *root = dev->of_node; Minor nit: root is unused and generates build warnings. thanks -john

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