Re: [PATCH v2] staging: android: ion: Allocate from heap ID directly without mask

2019-02-15 Thread John Stultz
On Fri, Feb 15, 2019 at 11:22 AM Andrew F. Davis wrote: > > On 2/15/19 1:01 PM, John Stultz wrote: > > On Fri, Feb 15, 2019 at 2:51 AM Brian Starkey wrote: > >> On Thu, Feb 14, 2019 at 09:38:29AM -0800, John Stultz wrote: > >>> 2) For patches that cause ABI

Re: [PATCH v2] staging: android: ion: Allocate from heap ID directly without mask

2019-02-15 Thread John Stultz
On Fri, Feb 15, 2019 at 2:51 AM Brian Starkey wrote: > > Hi John, > > On Thu, Feb 14, 2019 at 09:38:29AM -0800, John Stultz wrote: > > > [snip] > > > Some thoughts, as this ABI break has the potential to be pretty painful. > > > > 1) Unfortunately

Re: [PATCH v2] staging: android: ion: Allocate from heap ID directly without mask

2019-02-14 Thread John Stultz
On Mon, Jan 28, 2019 at 1:44 PM Andrew F. Davis wrote: > > Previously the heap to allocate from was selected by a mask of allowed > heap types. This may have been done as a primitive form of constraint > solving, the first heap type that matched any set bit of the heap mask > was allocated from,

[RFC][PATCH] usb: f_fs: Avoid crash due to out-of-scope stack ptr access

2019-02-05 Thread John Stultz
wicz Cc: Greg Kroah-Hartman Cc: Linux USB List Suggested-by: Alan Stern Signed-off-by: John Stultz --- drivers/usb/gadget/function/f_fs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index 1e54304..0f8d16d 100644 -

Re: Frequent dwc3 crashes on suspend or reboot since 5.0-rc1

2019-02-04 Thread John Stultz
On Sat, Feb 2, 2019 at 9:00 AM Alan Stern wrote: > > On Fri, 1 Feb 2019, John Stultz wrote: > > > Hey all, > > Since the 5.0 merge window opened, I've been tripping on frequent > > dwc3 crashes on reboot and suspend, which I've added an example to the > > bott

Re: [PATCH 0/8 v5] k3dma patches to add support for hi3660/HiKey960

2019-02-04 Thread John Stultz
On Mon, Feb 4, 2019 at 1:03 AM Vinod Koul wrote: > > On 24-01-19, 12:24, John Stultz wrote: > > This patch series is based on recent work by Tanglei Han, and > > adds support for hi3660 SoCs as found on the HiKey960 board, > > along with a few patches I've been carryin

Re: Frequent dwc3 crashes on suspend or reboot since 5.0-rc1

2019-02-01 Thread John Stultz
On Fri, Feb 1, 2019 at 4:46 PM Thinh Nguyen wrote: > John Stultz wrote: > > On Fri, Feb 1, 2019 at 4:18 PM John Stultz wrote: > > Bisecting the changes down, it seems like its due to commit > > fec9095bdef4e ("usb: dwc3: gadget: remove wait_end_transfer"). > &g

Re: Frequent dwc3 crashes on suspend or reboot since 5.0-rc1

2019-02-01 Thread John Stultz
On Fri, Feb 1, 2019 at 4:18 PM John Stultz wrote: > > Hey all, > Since the 5.0 merge window opened, I've been tripping on frequent > dwc3 crashes on reboot and suspend, which I've added an example to the > bottom of this mail. > > I've dug in a little bit and sort of have a

Re: Frequent dwc3 crashes on suspend or reboot since 5.0-rc1

2019-02-01 Thread John Stultz
On Fri, Feb 1, 2019 at 4:31 PM Thinh Nguyen wrote: > > Hi John, > > John Stultz wrote: > > Hey all, > > Since the 5.0 merge window opened, I've been tripping on frequent > > dwc3 crashes on reboot and suspend, which I've added an example to the > > b

Frequent dwc3 crashes on suspend or reboot since 5.0-rc1

2019-02-01 Thread John Stultz
Hey all, Since the 5.0 merge window opened, I've been tripping on frequent dwc3 crashes on reboot and suspend, which I've added an example to the bottom of this mail. I've dug in a little bit and sort of have a sense of whats going on. In ffs_epfile_io():

Re: [PATCH] arm64: dts: hikey: Revert "Enable HS200 mode on eMMC"

2019-01-25 Thread John Stultz
On Thu, Jan 24, 2019 at 3:18 AM Robin Murphy wrote: > > Hi John, > > On 23/01/2019 20:06, John Stultz wrote: > > From: Alistair Strachan > > > > This reverts commit abd7d0972a192ee653efc7b151a6af69db58f2bb. This > > change was already partially reverted by Jo

[PATCH 7/8 v5] arm64: dts: hi3660: Add hisi asp dma device

2019-01-24 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 3/8 v5] dma: k3dma: Upgrade k3dma driver to support hisi_asp_dma hardware

2019-01-24 Thread John Stultz
[jstultz: Reworked to use of_match_data, commit msg improvements] Signed-off-by: John Stultz --- v2: * Reworked to use of_match_data v3: * Further rework of the commit message v5: * Typo, whitespace fixes. Use BIT() macro. --- drivers/dma/k3dma.c | 38 +- 1 fi

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

2019-01-24 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 0/8 v5] k3dma patches to add support for hi3660/HiKey960

2019-01-24 Thread John Stultz
Williams Cc: Vinod Koul Cc: Wei Xu Cc: Mark Rutland Cc: Rob Herring Cc: Guodong Xu Cc: Manivannan Sadhasivam Cc: Ryan Grachek CC: devicet...@vger.kernel.org Cc: dmaeng...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org John Stultz (3): Documentation: bindings: dma: Add binding for dma

[PATCH 5/8 v5] dma: k3dma: Add support for dma-channel-mask

2019-01-24 Thread John Stultz
a channel mask] Signed-off-by: John Stultz --- v3: Rename to hisi-dma-avail-chan v4: Rename to dma-channel-mask v5: Use BIT(i) instead of (1<chan_pending */ spin_lock_irq(>lock); for (pch = 0; pch < d->dma_channels; pch++) { + if (!(d->dma_channel_ma

[PATCH 1/8 v5] Documentation: bindings: k3dma: Extend the k3dma driver binding to support hisi-asp

2019-01-24 Thread John Stultz
-by: Rob Herring Signed-off-by: Youlin Wang Signed-off-by: Tanglei Han Signed-off-by: John Stultz --- v2: Simplify patch, removing extranious examples --- Documentation/devicetree/bindings/dma/k3dma.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree

[PATCH 4/8 v5] dma: k3dma: Delete axi_config

2019-01-24 Thread John Stultz
Cc: Zhuangluan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: dmaeng...@vger.kernel.org Acked-by: Manivannan Sadhasivam Signed-off-by: Li Yu Signed-off-by: Guodong Xu [jstultz: Minor tweaks to commit message] Signed-off-by: John Stultz --- drivers/dma/k3dma.c | 3 --- 1 file changed, 3

[PATCH 6/8 v5] arm64: dts: hi3660: Add dma to uart nodes

2019-01-24 Thread John Stultz
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 reserved channel 0 --- arch/arm64/boot/dts/hisilicon/hi3660

[PATCH 2/8 v5] Documentation: bindings: dma: Add binding for dma-channel-mask

2019-01-24 Thread John Stultz
Cc: Zhuangluan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: dmaeng...@vger.kernel.org Cc: devicet...@vger.kernel.org Reviewed-by: Rob Herring Signed-off-by: John Stultz --- v3: Renamed to hisi-dma-avail-chan v4: Reworked to generic dma-channel-mask --- Documentation/devicetree/bindings

Re: [PATCH 3/8 v4] dma: k3dma: Upgrade k3dma driver to support hisi_asp_dma hardware

2019-01-23 Thread John Stultz
On Wed, Jan 23, 2019 at 4:57 AM Vinod Koul wrote: > On 22-01-19, 15:48, John Stultz wrote: > > Do let me know if there's an example you'd rather I follow. > > To elaborate I was thinking of alternate scheme with: > > compatible = "hisilicon,k3-dma-1.0&q

[PATCH][RESEND] arm64: dts: hikey: Add DMA entries for Bluetooth UART

2019-01-23 Thread John Stultz
Add dma0 references for bluetooth uart to enable dma for bt transfers. Cc: Manivannan Sadhasivam Cc: Ryan Grachek Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz --- arch/arm64/boot/dts/hisilicon

[PATCH] arm64: dts: hikey: Revert "Enable HS200 mode on eMMC"

2019-01-23 Thread John Stultz
From: Alistair Strachan This reverts commit abd7d0972a192ee653efc7b151a6af69db58f2bb. This change was already partially reverted by John Stultz in commit 9c6d26df1fae ("arm64: dts: hikey: Fix eMMC corruption regression"). This change appears to cause controller resets and block rea

Re: [PATCH 5/8 v4] dma: k3dma: Add support for dma-channel-mask

2019-01-22 Thread John Stultz
On Thu, Jan 17, 2019 at 9:14 AM Manivannan Sadhasivam wrote: > > /* Skip the channels which are masked */ > if ((d->dma_channel_mask) & BIT(pch)) > continue; Per the discussion w/ Vinod and Rob, I think I'll leave this bit be, so we use the channels in the bitmask. > PS: Use BIT() macro

Re: [PATCH 3/8 v4] dma: k3dma: Upgrade k3dma driver to support hisi_asp_dma hardware

2019-01-22 Thread John Stultz
On Sun, Jan 20, 2019 at 3:12 AM Vinod Koul wrote: > > On 16-01-19, 09:10, John Stultz wrote: > > From: Youlin Wang > > > > On the hi3660 hardware there are two (at least) DMA controllers, > > the DMA-P (Peripherial DMA) and the DMA-A (Audio DMA). The >

Re: [PATCH 2/8 v4] Documentation: bindings: dma: Add binding for dma-channel-mask

2019-01-17 Thread John Stultz
On Thu, Jan 17, 2019 at 9:08 AM Manivannan Sadhasivam wrote: > > On Wed, Jan 16, 2019 at 09:10:23AM -0800, John Stultz wrote: > > Some dma channels can be reserved for secure mode or other > > hardware on the SoC, so provide a binding for a bitmask > > listin

Re: ufshcd_queuecommand() triggering after ufshcd_suspend()?

2019-01-16 Thread John Stultz
On Sun, Jan 13, 2019 at 7:25 PM Zang Leigang wrote: > I think there are two different issues: > > 1. clk_gating's state(including state's trace event) and is_suspended is not > wrapped by ufshcd_is_clkgating_allowed which Hisilicon's kirin platoform > soc does not need but is set

[PATCH 5/8 v4] dma: k3dma: Add support for dma-channel-mask

2019-01-16 Thread John Stultz
a channel mask] Signed-off-by: John Stultz --- v3: Rename to hisi-dma-avail-chan v4: Rename to dma-channel-mask --- drivers/dma/k3dma.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index b2060bf..ed19b1f 100644

[PATCH 1/8 v4] Documentation: bindings: k3dma: Extend the k3dma driver binding to support hisi-asp

2019-01-16 Thread John Stultz
-by: Rob Herring Signed-off-by: Youlin Wang Signed-off-by: Tanglei Han Signed-off-by: John Stultz --- v2: Simplify patch, removing extranious examples --- Documentation/devicetree/bindings/dma/k3dma.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree

[PATCH 7/8 v4] arm64: dts: hi3660: Add hisi asp dma device

2019-01-16 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 2/8 v4] Documentation: bindings: dma: Add binding for dma-channel-mask

2019-01-16 Thread John Stultz
Cc: Zhuangluan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: dmaeng...@vger.kernel.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz --- v3: Renamed to hisi-dma-avail-chan v4: Reworked to generic dma-channel-mask --- Documentation/devicetree/bindings/dma/dma.txt | 4 1

[PATCH 6/8 v4] arm64: dts: hi3660: Add dma to uart nodes

2019-01-16 Thread John Stultz
Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz --- v3: * Remove dma enablment on uart0 which would use reserved channel 0 --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 1 file changed

[PATCH 4/8 v4] dma: k3dma: Delete axi_config

2019-01-16 Thread John Stultz
Cc: Zhuangluan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: dmaeng...@vger.kernel.org Acked-by: Manivannan Sadhasivam Signed-off-by: Li Yu Signed-off-by: Guodong Xu [jstultz: Minor tweaks to commit message] Signed-off-by: John Stultz --- drivers/dma/k3dma.c | 3 --- 1 file changed, 3

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

2019-01-16 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 3/8 v4] dma: k3dma: Upgrade k3dma driver to support hisi_asp_dma hardware

2019-01-16 Thread John Stultz
[jstultz: Reworked to use of_match_data, commit msg improvements] Signed-off-by: John Stultz --- v2: * Reworked to use of_match_data v3: * Further rework of the commit message --- drivers/dma/k3dma.c | 37 - 1 file changed, 32 insertions(+), 5 deletions(-)

[PATCH 0/8 v4] k3dma patches to add support for hi3660/HiKey960

2019-01-16 Thread John Stultz
: Zhuangluan Su Cc: Dan Williams Cc: Vinod Koul Cc: Wei Xu Cc: Mark Rutland Cc: Rob Herring Cc: Guodong Xu Cc: Manivannan Sadhasivam Cc: Ryan Grachek CC: devicet...@vger.kernel.org Cc: dmaeng...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org John Stultz (3): Documentation

Re: [PATCH v4 1/2] mm/memfd: Add an F_SEAL_FUTURE_WRITE seal to memfd

2019-01-15 Thread John Stultz
Signed-off-by: Joel Fernandes (Google) > --- > fs/hugetlbfs/inode.c | 2 +- > include/uapi/linux/fcntl.h | 1 + > mm/memfd.c | 3 ++- > mm/shmem.c | 25 ++--- > 4 files changed, 26 insertions(+), 5 deletions(-) Acked-by: John Stultz

Re: [PATCH 2/8 v3] Documentation: bindings: k3dma: Add binding for hisi-dma-avail-chan

2019-01-11 Thread John Stultz
On Fri, Jan 11, 2019 at 12:04 PM Rob Herring wrote: > > On Fri, Jan 11, 2019 at 1:58 PM Rob Herring wrote: > > > > On Thu, Jan 10, 2019 at 11:34 AM John Stultz wrote: > > > > > > Some dma channels can be reserved for secure mode or other > > &

ufshcd_queuecommand() triggering after ufshcd_suspend()?

2019-01-10 Thread John Stultz
Hey all, Frequently, since support for the HiKey960's UFS code landed in 4.19, I've noticed the following warning on reboot: [ 23.086860] WARNING: CPU: 0 PID: 2507 at drivers/scsi/ufs/ufshcd.c:2460 ufshcd_queuecommand+0x59c/0x5a8 [ 23.096256] Modules linked in: [ 23.099313] CPU: 0 PID:

[PATCH 6/8 v3] arm64: dts: hi3660: Add dma to uart nodes

2019-01-10 Thread John Stultz
Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz --- v3: * Remove dma enablment on uart0 which would use reserved channel 0 --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 8 1 file changed

[PATCH 4/8 v3] dma: k3dma: Delete axi_config

2019-01-10 Thread John Stultz
Cc: Zhuangluan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: dmaeng...@vger.kernel.org Acked-by: Manivannan Sadhasivam Signed-off-by: Li Yu Signed-off-by: Guodong Xu [jstultz: Minor tweaks to commit message] Signed-off-by: John Stultz --- drivers/dma/k3dma.c | 3 --- 1 file changed, 3

[PATCH 1/8 v3] Documentation: bindings: k3dma: Extend the k3dma driver binding to support hisi-asp

2019-01-10 Thread John Stultz
-by: Youlin Wang Signed-off-by: Tanglei Han Signed-off-by: John Stultz --- v2: Simplify patch, removing extranious examples --- Documentation/devicetree/bindings/dma/k3dma.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/k3dma.txt b

[PATCH 3/8 v3] dma: k3dma: Upgrade k3dma driver to support hisi_asp_dma hardware

2019-01-10 Thread John Stultz
[jstultz: Reworked to use of_match_data, commit msg improvements] Signed-off-by: John Stultz --- v2: * Reworked to use of_match_data v3: * Further rework of the commit message --- drivers/dma/k3dma.c | 37 - 1 file changed, 32 insertions(+), 5 deletions(-)

[PATCH 8/8 v3] arm64: dts: hi3660: Fixup unofficial dma-min-chan to hisi-dma-avail-chan

2019-01-10 Thread John Stultz
: devicet...@vger.kernel.org Signed-off-by: John Stultz --- v3: Renamed to hisi-dma-avail-chan --- 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/boot/dts/hisilicon/hi3660.dtsi

[PATCH 7/8 v3] arm64: dts: hi3660: Add hisi asp dma device

2019-01-10 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 2/8 v3] Documentation: bindings: k3dma: Add binding for hisi-dma-avail-chan

2019-01-10 Thread John Stultz
Sadhasivam Cc: dmaeng...@vger.kernel.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz --- v3: Renamed to hisi-dma-avail-chan --- Documentation/devicetree/bindings/dma/k3dma.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/k3dma.txt b

[PATCH 5/8 v3] dma: k3dma: Add support for hisi-dma-avail-chan

2019-01-10 Thread John Stultz
to use a channel mask] Signed-off-by: John Stultz --- v3: Rename to hisi-dma-avail-chan --- drivers/dma/k3dma.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index b2060bf..f4001ca 100644 --- a/drivers/dma/k3dma.c

[PATCH 0/8 v3] k3dma patches to add support for hi3660/HiKey960

2019-01-10 Thread John Stultz
Koul Cc: Wei Xu Cc: Mark Rutland Cc: Rob Herring Cc: Guodong Xu Cc: Manivannan Sadhasivam Cc: Ryan Grachek CC: devicet...@vger.kernel.org Cc: dmaeng...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org John Stultz (3): Documentation: bindings: k3dma: Add binding for hisi-dma-avail

Re: [PATCH 3/8 v2] dma: k3dma: Upgrade k3dma driver to support hisi_asp_dma hardware

2019-01-04 Thread John Stultz
On Fri, Jan 4, 2019 at 9:39 PM Manivannan Sadhasivam wrote: > > On Fri, Jan 04, 2019 at 09:22:46PM -0800, John Stultz wrote: > > On Fri, Jan 4, 2019 at 7:42 PM Manivannan Sadhasivam > > wrote: > > > On Fri, Jan 04, 2019 at 12:56:23PM -0800, John Stultz wrote

Re: [PATCH 6/8 v2] arm64: dts: hi3660: Add dma to uart nodes

2019-01-04 Thread John Stultz
On Fri, Jan 4, 2019 at 8:34 PM John Stultz wrote: > > On Fri, Jan 4, 2019 at 7:49 PM Manivannan Sadhasivam > wrote: > > > > Hi John, > > > > On Fri, Jan 04, 2019 at 12:56:26PM -0800, John Stultz wrote: > > > Try to add DMA support to the uart nodes follo

Re: [PATCH 3/8 v2] dma: k3dma: Upgrade k3dma driver to support hisi_asp_dma hardware

2019-01-04 Thread John Stultz
On Fri, Jan 4, 2019 at 7:42 PM Manivannan Sadhasivam wrote: > On Fri, Jan 04, 2019 at 12:56:23PM -0800, John Stultz wrote: > > From: Youlin Wang > > > > There is an new "hisi-pcm-asp-dma-1.0" device added in > > "arch/arm64/boot/dts/hisilicon/hi3660.

Re: [PATCH 2/8 v2] Documentation: bindings: k3dma: Add binding for dma-avail-chan

2019-01-04 Thread John Stultz
On Fri, Jan 4, 2019 at 8:53 PM Manivannan Sadhasivam wrote: > > On Fri, Jan 04, 2019 at 08:39:34PM -0800, John Stultz wrote: > > On Fri, Jan 4, 2019 at 8:00 PM Manivannan Sadhasivam > > wrote: > > > > > > Hi John, > > > > > > On Fr

Re: [PATCH 2/8 v2] Documentation: bindings: k3dma: Add binding for dma-avail-chan

2019-01-04 Thread John Stultz
On Fri, Jan 4, 2019 at 8:00 PM Manivannan Sadhasivam wrote: > > Hi John, > > On Fri, Jan 04, 2019 at 12:56:22PM -0800, John Stultz wrote: > > Some dma channels can be reserved for secure mode or other > > hardware on the SoC, so provide a binding for a bitmask > >

Re: [PATCH 6/8 v2] arm64: dts: hi3660: Add dma to uart nodes

2019-01-04 Thread John Stultz
On Fri, Jan 4, 2019 at 7:49 PM Manivannan Sadhasivam wrote: > > Hi John, > > On Fri, Jan 04, 2019 at 12:56:26PM -0800, John Stultz wrote: > > Try to add DMA support to the uart nodes following > > the assignments made in the dts from the victoria vendor ke

Re: [PATCH 0/8 v2] k3dma patches to add support for hi3660/HiKey960

2019-01-04 Thread John Stultz
On Fri, Jan 4, 2019 at 7:37 PM Manivannan Sadhasivam wrote: > > Hi John, > > On Fri, Jan 04, 2019 at 12:56:20PM -0800, John Stultz wrote: > > This patch series is based on recent work by Tanglei Han, and > > adds support for hi3660 SoCs as found on the HiKey960 b

[PATCH 1/8 v2] Documentation: bindings: k3dma: Extend the k3dma driver binding to support hisi-asp

2019-01-04 Thread John Stultz
-by: Youlin Wang Signed-off-by: Tanglei Han Signed-off-by: John Stultz --- v2: Simplify patch, removing extranious examples --- Documentation/devicetree/bindings/dma/k3dma.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/k3dma.txt b

[PATCH 3/8 v2] dma: k3dma: Upgrade k3dma driver to support hisi_asp_dma hardware

2019-01-04 Thread John Stultz
ng Signed-off-by: Tanglei Han [jstultz: Reworked to use of_match_data] Signed-off-by: John Stultz --- v2: * Reworked to use of_match_data --- drivers/dma/k3dma.c | 37 - 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/drivers/dma/k3dma.c b/dri

[PATCH 6/8 v2] arm64: dts: hi3660: Add dma to uart nodes

2019-01-04 Thread John Stultz
Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660

[PATCH 5/8 v2] dma: k3dma: Add support to dma_avail_chan

2019-01-04 Thread John Stultz
a channel mask] Signed-off-by: John Stultz --- drivers/dma/k3dma.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index b2060bf..431094b 100644 --- a/drivers/dma/k3dma.c +++ b/drivers/dma/k3dma.c @@ -111,6 +111,7

[PATCH 2/8 v2] Documentation: bindings: k3dma: Add binding for dma-avail-chan

2019-01-04 Thread John Stultz
Sadhasivam Cc: dmaeng...@vger.kernel.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz --- Documentation/devicetree/bindings/dma/k3dma.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/k3dma.txt b/Documentation/devicetree/bindings/dma/k3dma.txt

[PATCH 7/8 v2] arm64: dts: hi3660: Add hisi asp dma device

2019-01-04 Thread John Stultz
-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/hi3660.dtsi index aaa2b04..df4e96d

[PATCH 8/8 v2] arm64: dts: hi3660: Fixup unofficial dma-min-chan to dma-avail-chan

2019-01-04 Thread John Stultz
: devicet...@vger.kernel.org Signed-off-by: John Stultz --- 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/boot/dts/hisilicon/hi3660.dtsi index df4e96d..654da63 100644 --- a/arch

[PATCH 4/8 v2] dma: k3dma: Delete axi_config

2019-01-04 Thread John Stultz
Cc: Zhuangluan Su Cc: Ryan Grachek Cc: Manivannan Sadhasivam Cc: dmaeng...@vger.kernel.org Signed-off-by: Li Yu Signed-off-by: Guodong Xu [jstultz: Minor tweaks to commit message] Signed-off-by: John Stultz --- drivers/dma/k3dma.c | 3 --- 1 file changed, 3 deletions(-) diff --git

[PATCH 0/8 v2] k3dma patches to add support for hi3660/HiKey960

2019-01-04 Thread John Stultz
Koul Cc: Wei Xu Cc: Mark Rutland Cc: Rob Herring Cc: Guodong Xu Cc: Manivannan Sadhasivam Cc: Ryan Grachek CC: devicet...@vger.kernel.org Cc: dmaeng...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org John Stultz (3): Documentation: bindings: k3dma: Add binding for dma-avail-chan

Re: [PATCH 1/3] k3dma: Upgrade k3dma drever to support hisi_asp_dma hardware

2019-01-04 Thread John Stultz
On Fri, Jan 4, 2019 at 9:25 AM Vinod Koul wrote: > > On 28-12-18, 14:36, h00249924 wrote: > > From: Youlin Wang > > > > There is an new "hisi-pcm-asp-dma-1.0" device added in > > "arch/arm64/boot/dts/hisilicon/hi3660.dtsi". > > So we have to add a matching id in the driver file: > > "{

[PATCH] arm64: dts: hikey: Add DMA entries for Bluetooth UART

2019-01-03 Thread John Stultz
Add dma0 references for bluetooth uart to enable dma for bt transfers. Cc: Manivannan Sadhasivam Cc: Ryan Grachek Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz Change-Id

Re: [PATCH] arm64: dts: hikey: Give wifi some time after power-on

2019-01-02 Thread John Stultz
Adding a few folks to cc from the thread here: https://patchwork.kernel.org/patch/10734021/ As this sounds like a very similar issue. thanks -john On Sun, Dec 30, 2018 at 3:38 AM Jan Kiszka wrote: > > From: Jan Kiszka > > Somewhere along recent changes to power control of the wl1835, power-on

Re: [PATCH 2/3] dmaengine: Extend the k3dma driver binding

2019-01-02 Thread John Stultz
On Thu, Dec 27, 2018 at 10:39 PM h00249924 wrote: > > From: Youlin Wang > > Extend the k3dma driver binding to support hisi-asp hardware variants. > > Signed-off-by: Youlin Wang > Signed-off-by: Tanglei Han > Cc: Vinod Koul > Cc: Rob Herring > Cc: Mark Rutland > --- >

[RFC][PATCH] arm64: dts: hikey: Add DMA entries for Bluetooth UART

2018-12-11 Thread John Stultz
Add dma0 references for bluetooth uart to enable dma for bt transfers. Cc: Manivannan Sadhasivam Cc: Ryan Grachek Cc: Wei Xu Cc: Rob Herring Cc: Mark Rutland Cc: linux-arm-ker...@lists.infradead.org Cc: devicet...@vger.kernel.org Signed-off-by: John Stultz Change-Id

Re: [PATCH 8/8] timekeeping: remove obsolete time accessors

2018-12-07 Thread John Stultz
ivers that contain calls to this function. > > Signed-off-by: Arnd Bergmann > --- > include/linux/timekeeping.h | 14 -- > include/linux/timekeeping32.h | 9 - > 2 files changed, 23 deletions(-) Acked-by: John Stultz

Re: [PATCH 5/8] timekeeping: remove unused {read,update}_persistent_clock

2018-12-07 Thread John Stultz
off-by: Arnd Bergmann > --- > include/linux/timekeeping32.h | 6 -- > kernel/time/ntp.c | 10 +- > kernel/time/timekeeping.c | 12 ++-- > 3 files changed, 3 insertions(+), 25 deletions(-) Acked-by: John Stultz thanks -john

Re: [PATCH 6/8] timekeeping: remove timespec_add/timespec_del

2018-12-07 Thread John Stultz
emove that as well. > > Signed-off-by: Arnd Bergmann > --- > include/linux/time32.h | 25 - > kernel/time/time.c | 36 > 2 files changed, 61 deletions(-) Acked-by: John Stultz

Re: [PATCH] timers: Make the lower-level timer function first call than higher-level

2018-11-19 Thread John Stultz
On Mon, Nov 19, 2018 at 6:10 AM, Muchun Song wrote: > The elements of the heads array are a linked list of timer events that > expire at the current time. And it can contain up to LVL_DEPTH levels > and the lower the level represents the smaller the time granularity. > > Now the result is that

Re: [PATCH] timers: Make the lower-level timer function first call than higher-level

2018-11-19 Thread John Stultz
On Mon, Nov 19, 2018 at 6:10 AM, Muchun Song wrote: > The elements of the heads array are a linked list of timer events that > expire at the current time. And it can contain up to LVL_DEPTH levels > and the lower the level represents the smaller the time granularity. > > Now the result is that

Re: [PATCH] softirq: don't push timer softirq handling to ksoftirqd

2018-11-15 Thread John Stultz
On Thu, Nov 15, 2018 at 9:07 AM, Michael Zhivich wrote: > Require TIMER_SOFTIRQ to be handled immediately instead of delaying until > ksoftirqd runs, thus preventing problems with reading clocksources that > wrap often (e.g. acpi_pm). > > If acpi_pm is used as the clocksource watchdog, and

Re: [PATCH] softirq: don't push timer softirq handling to ksoftirqd

2018-11-15 Thread John Stultz
On Thu, Nov 15, 2018 at 9:07 AM, Michael Zhivich wrote: > Require TIMER_SOFTIRQ to be handled immediately instead of delaying until > ksoftirqd runs, thus preventing problems with reading clocksources that > wrap often (e.g. acpi_pm). > > If acpi_pm is used as the clocksource watchdog, and

Re: [PATCH] Revert "clocksource: Make clocksource validation work for all clocksources"

2018-11-12 Thread John Stultz
On Mon, Nov 12, 2018 at 10:56 AM, Michael Zhivich wrote: > Revert commit 1f45f1f33c8c ("clocksource: Make clocksource validation work > for all clocksources") to restore correct clocksource_delta() computation > for clocksources that wrap frequently, while retaining the check for tsc > drifting.

Re: [PATCH] Revert "clocksource: Make clocksource validation work for all clocksources"

2018-11-12 Thread John Stultz
On Mon, Nov 12, 2018 at 10:56 AM, Michael Zhivich wrote: > Revert commit 1f45f1f33c8c ("clocksource: Make clocksource validation work > for all clocksources") to restore correct clocksource_delta() computation > for clocksources that wrap frequently, while retaining the check for tsc > drifting.

Re: TSC to Mono-raw Drift

2018-11-01 Thread John Stultz
On Thu, Nov 1, 2018 at 10:44 AM, Thomas Gleixner wrote: > On Tue, 23 Oct 2018, John Stultz wrote: >> On Fri, Oct 19, 2018 at 3:36 PM, John Stultz wrote: >> I spent a little bit of time thinking this out. Unfortunately I don't >> think its a simple matter of calculating

Re: TSC to Mono-raw Drift

2018-11-01 Thread John Stultz
On Thu, Nov 1, 2018 at 10:44 AM, Thomas Gleixner wrote: > On Tue, 23 Oct 2018, John Stultz wrote: >> On Fri, Oct 19, 2018 at 3:36 PM, John Stultz wrote: >> I spent a little bit of time thinking this out. Unfortunately I don't >> think its a simple matter of calculating

Re: [patch 0/9] time: Add SPDX identifiers and cleanup boilerplates

2018-10-31 Thread John Stultz
ay by this work. > > This work is based on a script and data from Philippe Ombredanne, Kate > Stewart and myself. The data has been created with two independent license > scanners and manual inspection. Looks ok by me. Acked-by: John Stultz thanks -john

Re: [patch 0/9] time: Add SPDX identifiers and cleanup boilerplates

2018-10-31 Thread John Stultz
ay by this work. > > This work is based on a script and data from Philippe Ombredanne, Kate > Stewart and myself. The data has been created with two independent license > scanners and manual inspection. Looks ok by me. Acked-by: John Stultz thanks -john

Re: [PATCH] proc: use ns_capable instead of capable for timerslack_ns

2018-10-25 Thread John Stultz
ss is > allowed to do other activities controlled by CAP_SYS_NICE inside a > namespace, it should also be able to adjust timerslack_ns. > > Signed-off-by: Benjamin Gordon > Cc: John Stultz > Cc: Kees Cook > Cc: "Serge E. Hallyn" > Cc: Thomas Gleixner >

Re: [PATCH] proc: use ns_capable instead of capable for timerslack_ns

2018-10-25 Thread John Stultz
ss is > allowed to do other activities controlled by CAP_SYS_NICE inside a > namespace, it should also be able to adjust timerslack_ns. > > Signed-off-by: Benjamin Gordon > Cc: John Stultz > Cc: Kees Cook > Cc: "Serge E. Hallyn" > Cc: Thomas Gleixner >

Re: Regression: OOPs on boot due to "wlcore: Add support for optional wakeirq"

2018-10-25 Thread John Stultz
On Thu, Oct 25, 2018 at 10:04 AM, John Stultz wrote: > Hey Tony, > In testing linus/master on my hikey board, I'm hitting the following > OOPS on bootup: > > [1.870279] Unable to handle kernel read from unreadable memory at > virtual address 0010 > [1.8

Re: Regression: OOPs on boot due to "wlcore: Add support for optional wakeirq"

2018-10-25 Thread John Stultz
On Thu, Oct 25, 2018 at 10:04 AM, John Stultz wrote: > Hey Tony, > In testing linus/master on my hikey board, I'm hitting the following > OOPS on bootup: > > [1.870279] Unable to handle kernel read from unreadable memory at > virtual address 0010 > [1.8

Regression: OOPs on boot due to "wlcore: Add support for optional wakeirq"

2018-10-25 Thread John Stultz
Hey Tony, In testing linus/master on my hikey board, I'm hitting the following OOPS on bootup: [1.870279] Unable to handle kernel read from unreadable memory at virtual address 0010 [1.870283] Mem abort info: [1.870287] ESR = 0x9605 [1.870292] Exception class

Regression: OOPs on boot due to "wlcore: Add support for optional wakeirq"

2018-10-25 Thread John Stultz
Hey Tony, In testing linus/master on my hikey board, I'm hitting the following OOPS on bootup: [1.870279] Unable to handle kernel read from unreadable memory at virtual address 0010 [1.870283] Mem abort info: [1.870287] ESR = 0x9605 [1.870292] Exception class

Re: TSC to Mono-raw Drift

2018-10-23 Thread John Stultz
On Fri, Oct 19, 2018 at 3:36 PM, John Stultz wrote: > On Fri, Oct 19, 2018 at 1:50 PM, Thomas Gleixner wrote: >> John, >> >> On Fri, 19 Oct 2018, John Stultz wrote: >>> On Fri, Oct 19, 2018 at 11:57 AM, Thomas Gleixner >>> wrote: >>&

Re: TSC to Mono-raw Drift

2018-10-23 Thread John Stultz
On Fri, Oct 19, 2018 at 3:36 PM, John Stultz wrote: > On Fri, Oct 19, 2018 at 1:50 PM, Thomas Gleixner wrote: >> John, >> >> On Fri, 19 Oct 2018, John Stultz wrote: >>> On Fri, Oct 19, 2018 at 11:57 AM, Thomas Gleixner >>> wrote: >>&

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 1:50 PM, Thomas Gleixner wrote: > John, > > On Fri, 19 Oct 2018, John Stultz wrote: >> On Fri, Oct 19, 2018 at 11:57 AM, Thomas Gleixner wrote: >> > I don't think you need complex oscillation for that. The error is constant >> > and sma

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 1:50 PM, Thomas Gleixner wrote: > John, > > On Fri, 19 Oct 2018, John Stultz wrote: >> On Fri, Oct 19, 2018 at 11:57 AM, Thomas Gleixner wrote: >> > I don't think you need complex oscillation for that. The error is constant >> > and sma

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 11:57 AM, Thomas Gleixner wrote: > On Fri, 19 Oct 2018, John Stultz wrote: >> On Fri, Oct 19, 2018 at 11:37 AM, Thomas Gleixner wrote: >> > On Fri, 19 Oct 2018, Thomas Gleixner wrote: >> >> On Mon, 15 Oct 2018, Christopher Hall wrote: >

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 11:57 AM, Thomas Gleixner wrote: > On Fri, 19 Oct 2018, John Stultz wrote: >> On Fri, Oct 19, 2018 at 11:37 AM, Thomas Gleixner wrote: >> > On Fri, 19 Oct 2018, Thomas Gleixner wrote: >> >> On Mon, 15 Oct 2018, Christopher Hall wrote: >

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 11:37 AM, Thomas Gleixner wrote: > On Fri, 19 Oct 2018, Thomas Gleixner wrote: >> On Mon, 15 Oct 2018, Christopher Hall wrote: >> > TSC kHz used to calculate mult/shift value: 3312000 >> >> Now the most interesting information here would be the resulting mult/shift >>

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 11:37 AM, Thomas Gleixner wrote: > On Fri, 19 Oct 2018, Thomas Gleixner wrote: >> On Mon, 15 Oct 2018, Christopher Hall wrote: >> > TSC kHz used to calculate mult/shift value: 3312000 >> >> Now the most interesting information here would be the resulting mult/shift >>

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 11:34 AM, John Stultz wrote: > On Fri, Oct 19, 2018 at 8:25 AM, Thomas Gleixner wrote: >> Christopher, >> >> Please Cc LKML on such issues in the future. >> >> On Mon, 15 Oct 2018, Christopher Hall wrote: >> >> Leaving c

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 11:34 AM, John Stultz wrote: > On Fri, Oct 19, 2018 at 8:25 AM, Thomas Gleixner wrote: >> Christopher, >> >> Please Cc LKML on such issues in the future. >> >> On Mon, 15 Oct 2018, Christopher Hall wrote: >> >> Leaving c

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 8:25 AM, Thomas Gleixner wrote: > Christopher, > > Please Cc LKML on such issues in the future. > > On Mon, 15 Oct 2018, Christopher Hall wrote: > > Leaving context around for new readers: > >> Problem Statement: >> >> The TSC clocksource mult/shift values are derived from

Re: TSC to Mono-raw Drift

2018-10-19 Thread John Stultz
On Fri, Oct 19, 2018 at 8:25 AM, Thomas Gleixner wrote: > Christopher, > > Please Cc LKML on such issues in the future. > > On Mon, 15 Oct 2018, Christopher Hall wrote: > > Leaving context around for new readers: > >> Problem Statement: >> >> The TSC clocksource mult/shift values are derived from

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