Re: Interesting csd deadlock on ARC

2016-02-25 Thread Peter Zijlstra
On Wed, Feb 24, 2016 at 10:21:25AM +0530, Vineet Gupta wrote: > >> What I actually meant was is it OK for irq_work_queue_on() to be called > >> locally > >> (is this a sched bug/optimization(. Further if it is OK to be called, does > >> it need > >> to do behave more like irq_work_queue() i.e. ca

Re: Interesting csd deadlock on ARC

2016-02-25 Thread Vineet Gupta
On Thursday 25 February 2016 07:36 PM, Peter Zijlstra wrote: > On Wed, Feb 24, 2016 at 10:21:25AM +0530, Vineet Gupta wrote: What I actually meant was is it OK for irq_work_queue_on() to be called locally (is this a sched bug/optimization(. Further if it is OK to be called, does >>

Re: Interesting csd deadlock on ARC

2016-02-25 Thread Russell King - ARM Linux
On Thu, Feb 25, 2016 at 07:53:39PM +0530, Vineet Gupta wrote: > But then ARM CONFIG_SMP on UP hardware will still crap out because there > is no way to send IPI to self. Same as the bug in above discussion. I'm > surprised they way ARM guys worked around it. We haven't worked around it - the code

Re: Interesting csd deadlock on ARC

2016-02-25 Thread Vineet Gupta
On Thursday 25 February 2016 08:00 PM, Russell King - ARM Linux wrote: > On Thu, Feb 25, 2016 at 07:53:39PM +0530, Vineet Gupta wrote: >> But then ARM CONFIG_SMP on UP hardware will still crap out because there >> is no way to send IPI to self. Same as the bug in above discussion. I'm >> surprised

Re: [PATCH RESEND v9 1/2] PCI support added to ARC

2016-02-25 Thread Bjorn Helgaas
On Wed, Feb 17, 2016 at 05:46:18PM +, Joao Pinto wrote: > This patch adds PCI support to ARC and updates drivers/pci Makefile > enabling the ARC arch to use the generic PCI setup functions. > > Signed-off-by: Joao Pinto Did we have an ack from the ARC arch maintainer for this? I seem to rem

Re: [PATCH RESEND v9 2/2] pcie-designware platform driver

2016-02-25 Thread Bjorn Helgaas
Hi Joao, On Wed, Feb 17, 2016 at 05:46:19PM +, Joao Pinto wrote: > The "wait for link" routine was centralised and so all drivers using it > (dra7xx, exynos, imx6 and spear13xx) were updated to include the new > function. The keystone driver was not updated because it had some custom > opreati

Re: [PATCH RESEND v9 1/2] PCI support added to ARC

2016-02-25 Thread Vineet Gupta
On Thursday 25 February 2016 10:00 PM, Bjorn Helgaas wrote: > On Wed, Feb 17, 2016 at 05:46:18PM +, Joao Pinto wrote: >> > This patch adds PCI support to ARC and updates drivers/pci Makefile >> > enabling the ARC arch to use the generic PCI setup functions. >> > >> > Signed-off-by: Joao Pinto

Re: [PATCH RESEND v9 2/2] pcie-designware platform driver

2016-02-25 Thread Bjorn Helgaas
[+cc Murali] On Wed, Feb 17, 2016 at 05:46:19PM +, Joao Pinto wrote: > The "wait for link" routine was centralised and so all drivers using it > (dra7xx, exynos, imx6 and spear13xx) were updated to include the new > function. The keystone driver was not updated because it had some custom > opr

[PATCH v10 2/4] PCI: designware: Add generic dw_pcie_wait_for_link()

2016-02-25 Thread Bjorn Helgaas
From: Joao Pinto Several DesignWare-based drivers (dra7xx, exynos, imx6 and spear13xx) had similar loops waiting for the link to come up. FIXME Doesn't update keystone FIXME Doesn't update qcom Add a generic dw_pcie_wait_for_link() for use by all these drivers so the waiting is done consistentl

[PATCH v10 0/4] Add PCI support to AXS10x

2016-02-25 Thread Bjorn Helgaas
>From Joao's v9 posting (http://lkml.kernel.org/r/cover.1454952698.git.jpi...@synopsys.com): "This patch set has the goal to add suppport for DesignWare PCIe RC in ARC AXS10x. It includes the necessary tweaks to: - the ARC architecture (PCI support) - the PCI subsystem (ARC CPU support)

[PATCH v10 4/4] PCI: designware: Add driver for prototyping kits based on ARC SDP

2016-02-25 Thread Bjorn Helgaas
From: Joao Pinto Add a reference platform driver for PCI RC IP Protoyping Kits based on the ARC SDP. [bhelgaas: changelog, split patch up, MAINTAINERS update] Signed-off-by: Joao Pinto Signed-off-by: Bjorn Helgaas --- .../devicetree/bindings/pci/designware-pcie.txt| 17 ++ MAINTAINERS

[PATCH v10 3/4] PCI: designware: Add default link up check if sub-driver doesn't override

2016-02-25 Thread Bjorn Helgaas
From: Joao Pinto Add a default DesignWare "link_up" test for use when a sub-driver doesn't supply its own pcie_host_ops.link_up() method. [bhelgaas: changelog, split into its own patch] Signed-off-by: Joao Pinto Signed-off-by: Bjorn Helgaas --- drivers/pci/host/pcie-designware.c | 10 ++

[PATCH v10 1/4] ARC: Add PCI support

2016-02-25 Thread Bjorn Helgaas
From: Joao Pinto Add PCI support to ARC and update drivers/pci Makefile enabling the ARC arch to use the generic PCI setup functions. Signed-off-by: Joao Pinto Signed-off-by: Bjorn Helgaas Acked-by: Vineet Gupta --- arch/arc/Kconfig | 26 ++ arch/arc/inc

Re: [PATCH v10 1/4] ARC: Add PCI support

2016-02-25 Thread Joao Pinto
Hi! This patch is fine. Joao On 2/26/2016 1:37 AM, Bjorn Helgaas wrote: > From: Joao Pinto > > Add PCI support to ARC and update drivers/pci Makefile enabling the ARC > arch to use the generic PCI setup functions. > > Signed-off-by: Joao Pinto > Signed-off-by: Bjorn Helgaas > Acked-by: Vinee

Re: [PATCH v10 2/4] PCI: designware: Add generic dw_pcie_wait_for_link()

2016-02-25 Thread Joao Pinto
Hi! This patch seems OK also. I did not received the 3/4 and 4/4 patches. Thanks. On 2/26/2016 1:37 AM, Bjorn Helgaas wrote: > From: Joao Pinto > > Several DesignWare-based drivers (dra7xx, exynos, imx6 and spear13xx) had > similar loops waiting for the link to come up. > > FIXME Doesn't updat

Re: [PATCH 2/4 RESEND] ARC: axs10x: Update defconfigs so that audio is enabled

2016-02-25 Thread Vineet Gupta
On Wednesday 24 February 2016 07:42 PM, Alexey Brodkin wrote: >> Further per out off-list discussion - let us have a seperate config for ARC >> HS SDP >> which supports the shipping single hardware configuration and add these fancy >> things there as well as bumping the clk rate to 100 MHz . Curre