[PATCH] ARC: build: Better way to detect ISA compatible toolchain

2016-02-26 Thread Vineet Gupta
ARC architecture has 2 instruction sets: ARCompact/ARCv2. While same gcc supports compiling for either (using appropriate toggles), we can't use the same toolchain to build kernel because libgcc needs to be unique and the toolchian (uClibc based) is not multilibed. uClibc toolchain is convenient s

[PATCH] ARC Build system tweak

2016-02-26 Thread Vineet Gupta
Hi Michal, Here's a ARC build system quirk that we are trying to change. I would appreciate if you could take a glance and suggest if that is silly or better way. Would we be inducing more shell invocations now for build ? Also I could not find an existing construct in /scripts/Kbuild.include so o

Re: [PATCH 4/5] ARCv2: Elide sending new cross core intr if receiver didn't ack prev

2016-02-26 Thread Vineet Gupta
On Tuesday 23 February 2016 02:41 PM, Vineet Gupta wrote: > ARConnect/MCIP IPI sending has a retry-wait loop in case caller had > not seen a previous such interrupt. Turns out that it is not needed at > all. Linux cross core calling allows coalescing multiple IPIs to same > receiver - it is fine as

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

2016-02-26 Thread Bjorn Helgaas
On Fri, Feb 26, 2016 at 10:42:55AM +0800, Joao Pinto wrote: > Hi! This patch seems OK also. > I did not received the 3/4 and 4/4 patches. Huh. I do see them in the list archives: http://marc.info/?l=linux-pci&m=145642190422528&w=2 http://marc.info/?l=linux-pci&m=145642190522529&w=2 > On 2/2

[PATCH v11 0/4] ARC: Add PCI support

2016-02-26 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 v11 2/4] PCI: designware: Add generic dw_pcie_wait_for_link()

2016-02-26 Thread Bjorn Helgaas
From: Joao Pinto Several DesignWare-based drivers (dra7xx, exynos, imx6, keystone, qcom, and spear13xx) had similar loops waiting for the link to come up. Add a generic dw_pcie_wait_for_link() for use by all these drivers so the waiting is done consistently, e.g., always using usleep_range() rat

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

2016-02-26 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 v11 3/4] PCI: designware: Add default link up check if sub-driver doesn't override

2016-02-26 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 v11 1/4] ARC: Add PCI support

2016-02-26 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 v11 2/4] PCI: designware: Add generic dw_pcie_wait_for_link()

2016-02-26 Thread Pratyush Anand
On Fri, Feb 26, 2016 at 10:00 PM, Bjorn Helgaas wrote: > From: Joao Pinto > > Several DesignWare-based drivers (dra7xx, exynos, imx6, keystone, qcom, and > spear13xx) had similar loops waiting for the link to come up. > > Add a generic dw_pcie_wait_for_link() for use by all these drivers so the >

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

2016-02-26 Thread Pratyush Anand
On Fri, Feb 26, 2016 at 10:00 PM, Bjorn Helgaas wrote: > 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

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

2016-02-26 Thread Pratyush Anand
On Fri, Feb 26, 2016 at 10:00 PM, Bjorn Helgaas wrote: > 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 Acked-by: