[PATCH v6 14/29] nios2: DMA mapping API

2014-11-03 Thread Ley Foon Tan
This patch adds support for the DMA mapping API. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/dma-mapping.h | 140 ++ arch/nios2/mm/dma-mapping.c | 186 +++ 2 files changed, 326 insertions(+) create mode 100644 arch

[PATCH v6 06/29] nios2: Memory management

2014-11-03 Thread Ley Foon Tan
This patch contains the initialisation of the memory blocks, MMU attributes and the memory map. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/mmu.h | 16 +++ arch/nios2/include/asm/page.h| 111 +++ arch/nios2/include/asm/uaccess.h | 231

[PATCH v6 08/29] nios2: MMU Fault handling

2014-11-03 Thread Ley Foon Tan
This patch adds support for the handling of the MMU faults (exception entry code introduced by a previous patch, kernel/entry.S). Signed-off-by: Ley Foon Tan --- arch/nios2/mm/extable.c | 25 + arch/nios2/mm/fault.c | 251 2 files changed

[PATCH v6 10/29] nios2: Process management

2014-11-03 Thread Ley Foon Tan
This patch adds support for thread creation and context switching. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/mmu_context.h | 66 + arch/nios2/include/asm/processor.h | 103 ++ arch/nios2/include/asm/switch_to.h | 31 + arch/nios2/include/asm

[PATCH v6 04/29] nios2: Exception handling

2014-11-03 Thread Ley Foon Tan
This patch contains the exception entry code (kernel/entry.S) and misaligned exception. Signed-off-by: Ley Foon Tan --- arch/nios2/kernel/entry.S | 555 + arch/nios2/kernel/misaligned.c | 256 +++ 2 files changed, 811 insertions

[PATCH v6 03/29] nios2: Kernel booting and initialization

2014-11-03 Thread Ley Foon Tan
This patch adds the kernel booting and the initial setup code. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/entry.h | 120 +++ arch/nios2/include/asm/setup.h | 38 +++ arch/nios2/kernel/head.S | 175 + arch/nios2/kernel

Re: [PATCH v6 21/29] nios2: Time keeping

2014-11-03 Thread Ley Foon Tan
On Mon, Nov 3, 2014 at 8:26 PM, Thomas Gleixner wrote: > On Mon, 3 Nov 2014, Ley Foon Tan wrote: > >> Add time keeping code for nios2. >> >> Signed-off-by: Ley Foon Tan > > Reviewed-by: Thomas Gleixner Thanks for reviewing. Regards Ley Foon -- To unsubscribe

[PATCH v5 5/5] MAINTAINERS: Add Altera PCIe and MSI drivers maintainer

2015-08-25 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 569568f..c87e451 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7779,6 +7779,14 @@ F: include/linux/pci* F: arch/x86/pci/ F: arch/x86

[PATCH v5 0/5] Altera PCIe host controller driver with MSI support

2015-08-25 Thread Ley Foon Tan
ixup_res History: --- [v1]: https://lkml.org/lkml/2015/7/28/395 [v2]: https://lkml.org/lkml/2015/7/31/267 [v3]: http://www.kernelhub.org/?msg=811940&p=2 [v4]: https://lkml.org/lkml/2015/8/17/141 Ley Foon Tan (5): arm: add msi.h to Kbuild pci:host: Add Altera PCIe host controller driver pc

[PATCH v5 1/5] arm: add msi.h to Kbuild

2015-08-25 Thread Ley Foon Tan
Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. This to fix compilation error: "include/linux/msi.h:123:21: fatal error: asm/msi.h: No such file or directory" Signed-off-by: Ley Foon Tan --- arch/arm/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH v5 4/5] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-08-25 Thread Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/pci/altera-pcie-msi.txt| 28 + .../devicetree/bindings/pci/altera-pcie.txt| 49 ++ 2 files changed

[PATCH v5 2/5] pci:host: Add Altera PCIe host controller driver

2015-08-25 Thread Ley Foon Tan
This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan --- drivers/pci/host/Kconfig | 7 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 588 + 3 files changed, 596 insertions(+) create mode

[PATCH v5 3/5] pci: altera: Add Altera PCIe MSI driver

2015-08-25 Thread Ley Foon Tan
This patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter. Signed-off-by: Ley Foon Tan --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera-msi.c | 322

Re: [PATCH v5 3/5] pci: altera: Add Altera PCIe MSI driver

2015-08-26 Thread Ley Foon Tan
"vector_slave"); > > + if (!res) { > > + dev_err(&pdev->dev, > > + "no vector_slave memory resource defined\n"); > > + return -ENODEV; > > + } > > + > >

Re: [PATCH v5 2/5] pci:host: Add Altera PCIe host controller driver

2015-08-26 Thread Ley Foon Tan
On Tue, Aug 25, 2015 at 7:39 PM, Marc Zyngier wrote: > > > + > > +static void altera_pcie_retrain(struct pci_dev *dev) > > +{ > > + u16 linkcap, linkstat; > > + > > + /* > > + * Set the retrain bit if the PCIe rootport support > 2.5GB/s, but > > + * current speed is 2.5 GB/s. >

Re: [PATCH 2/6] arm: mach-socfpga: enable pci support

2015-07-28 Thread Ley Foon Tan
On Tue, Jul 28, 2015 at 9:26 PM, Rob Herring wrote: > On Tue, Jul 28, 2015 at 5:45 AM, Ley Foon Tan wrote: >> Enable CONFIG_ARCH_SUPPORT_MSI and CONFIG_PCI in SOCFPGA platform. >> >> Signed-off-by: Ley Foon Tan >> --- >> arch/arm/mach-socfpga/Kconfig | 2 ++

Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-28 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 12:45 AM, Dinh Nguyen wrote: > On Tue, Jul 28, 2015 at 5:45 AM, Ley Foon Tan wrote: >> This patch adds the Altera PCIe host controller driver. >> >> Signed-off-by: Ley Foon Tan >> --- >> drivers/pci/host/Kconfig | 9 + >>

Re: [PATCH 4/6] pci: altera: Add Altera PCIe MSI driver

2015-07-28 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 1:00 AM, Dinh Nguyen wrote: > On Tue, Jul 28, 2015 at 5:45 AM, Ley Foon Tan wrote: >> This patch adds Altera PCIe MSI driver. This soft IP supports configurable >> number of vectors, which is a dts parameter. >> @@ -154,4 +154,11 @@ config PCIE_ALTE

Re: [PATCH 4/6] pci: altera: Add Altera PCIe MSI driver

2015-07-29 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 1:58 AM, Marc Zyngier wrote: > Hi Ley, > > On 28/07/15 11:45, Ley Foon Tan wrote: >> This patch adds Altera PCIe MSI driver. This soft IP supports configurable >> number of vectors, which is a dts parameter. > > Can't you read this configu

Re: [PATCH 4/6] pci: altera: Add Altera PCIe MSI driver

2015-07-29 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 1:00 AM, Dinh Nguyen wrote: > On Tue, Jul 28, 2015 at 5:45 AM, Ley Foon Tan wrote: >> This patch adds Altera PCIe MSI driver. This soft IP supports configurable >> number of vectors, which is a dts parameter. >> >> Signed-off-by: Ley Foon Tan

Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-29 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 11:43 AM, Rob Herring wrote: > On Tue, Jul 28, 2015 at 5:45 AM, Ley Foon Tan wrote: >> This patch adds the Altera PCIe host controller driver. >> >> Signed-off-by: Ley Foon Tan >> + >> +static int altera_pcie_setup

Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-29 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 4:35 PM, Paul Bolle wrote: > On di, 2015-07-28 at 18:45 +0800, Ley Foon Tan wrote: >> --- a/drivers/pci/host/Kconfig >> +++ b/drivers/pci/host/Kconfig > >> +config PCIE_ALTERA >> + bool "Altera PCIe controller" >> +

Re: [PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-29 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 9:19 PM, Lorenzo Pieralisi wrote: > On Tue, Jul 28, 2015 at 11:45:42AM +0100, Ley Foon Tan wrote: > > [...] > >> +static int altera_pcie_parse_request_of_pci_ranges(struct altera_pcie *pcie) >> +{ >> + int err, res_valid = 0; >>

Re: [PATCH 4/6] pci: altera: Add Altera PCIe MSI driver

2015-07-30 Thread Ley Foon Tan
On Wed, Jul 29, 2015 at 5:15 PM, Marc Zyngier wrote: > > On 29/07/15 09:52, Ley Foon Tan wrote: > > On Wed, Jul 29, 2015 at 1:58 AM, Marc Zyngier wrote: > >> Hi Ley, > >> > >> On 28/07/15 11:45, Ley Foon Tan wrote: > >>> This patch adds Altera

[PATCH v3 0/5] Altera PCIe host controller driver with MSI support

2015-08-07 Thread Ley Foon Tan
ltera-msi: remove MODULE_DEVICE_TABLE - pcie-altera-msi: move INTMASK to _alloc() - change from clear_bit to __clear_bit - change to use irq_set_chained_handler_and_data - fix coding style History: --- [v1]: https://lkml.org/lkml/2015/7/28/395 [v2]: https://lkml.org/lkml/2015/7/31/267 Ley Foon Ta

[PATCH v3 4/5] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-08-07 Thread Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/pci/altera-pcie-msi.txt| 27 .../devicetree/bindings/pci/altera-pcie.txt| 49 ++ 2 files changed

[PATCH v3 5/5] MAINTAINERS: Add Altera PCIe and MSI drivers maintainer

2015-08-07 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index fd60784..32f5287 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7759,6 +7759,14 @@ F: include/linux/pci* F: arch/x86/pci/ F: arch/x86

[PATCH v3 1/5] arm: add msi.h to Kbuild

2015-08-07 Thread Ley Foon Tan
Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. This to fix compilation error: "include/linux/msi.h:123:21: fatal error: asm/msi.h: No such file or directory" Signed-off-by: Ley Foon Tan --- arch/arm/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH v3 2/5] pci:host: Add Altera PCIe host controller driver

2015-08-07 Thread Ley Foon Tan
This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan --- drivers/pci/host/Kconfig | 7 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 532 + 3 files changed, 540 insertions(+) create mode

[PATCH v3 3/5] pci: altera: Add Altera PCIe MSI driver

2015-08-07 Thread Ley Foon Tan
This patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter. Signed-off-by: Ley Foon Tan --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera-msi.c | 309

Re: [PATCH v2 02/11] nios2: Export strncpy_from_user / strnlen_user to modules

2015-08-10 Thread Ley Foon Tan
On Fri, Aug 7, 2015 at 11:21 PM, James Hogan wrote: > Update the nios2 architecture code to export strncpy_from_user() and > strnlen_user() to modules. The test_user_copy module will soon test > them. > > Signed-off-by: James Hogan > Cc: Ley Foon Tan > Cc: nios2-...@l

[PATCH 3/6] pci:host: Add Altera PCIe host controller driver

2015-07-28 Thread Ley Foon Tan
This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan --- drivers/pci/host/Kconfig | 9 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 576 + 3 files changed, 586 insertions(+) create mode

[PATCH 6/6] MAINTAINERS: Add Altera PCIe driver maintainer

2015-07-28 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index fd60784..32f5287 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7759,6 +7759,14 @@ F: include/linux/pci* F: arch/x86/pci/ F: arch/x86

[PATCH 0/6] Altera PCIe host controller driver with MSI support

2015-07-28 Thread Ley Foon Tan
msi_controller. [1]: https://lkml.org/lkml/2015/7/23/172 Ley Foon Tan (6): arm: add msi.h to Kbuild arm: mach-socfpga: enable pci support pci:host: Add Altera PCIe host controller driver pci: altera: Add Altera PCIe MSI driver Documentation: dt-bindings: pci: altera pcie devic

[PATCH 2/6] arm: mach-socfpga: enable pci support

2015-07-28 Thread Ley Foon Tan
Enable CONFIG_ARCH_SUPPORT_MSI and CONFIG_PCI in SOCFPGA platform. Signed-off-by: Ley Foon Tan --- arch/arm/mach-socfpga/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-socfpga/Kconfig b/arch/arm/mach-socfpga/Kconfig index 90efdeb..7ff4576 100644 --- a/arch/arm/mach

[PATCH 5/6] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-07-28 Thread Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/pci/altera-pcie-msi.txt| 27 .../devicetree/bindings/pci/altera-pcie.txt| 49 ++ 2 files changed

[PATCH 1/6] arm: add msi.h to Kbuild

2015-07-28 Thread Ley Foon Tan
Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. This to fix compilation error: "include/linux/msi.h:123:21: fatal error: asm/msi.h: No such file or directory" Signed-off-by: Ley Foon Tan --- arch/arm/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --

[PATCH 4/6] pci: altera: Add Altera PCIe MSI driver

2015-07-28 Thread Ley Foon Tan
This patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter. Signed-off-by: Ley Foon Tan --- drivers/pci/host/Kconfig | 7 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera-msi.c | 318

[PATCH v4 0/5] Altera PCIe host controller driver with MSI support

2015-08-17 Thread Ley Foon Tan
t_resource_byname History: --- [v1]: https://lkml.org/lkml/2015/7/28/395 [v2]: https://lkml.org/lkml/2015/7/31/267 [v3]: http://www.kernelhub.org/?msg=811940&p=2 Ley Foon Tan (5): arm: add msi.h to Kbuild pci:host: Add Altera PCIe host controller driver pci: altera: Add Altera PCIe MSI d

[PATCH v4 3/5] pci: altera: Add Altera PCIe MSI driver

2015-08-17 Thread Ley Foon Tan
This patch adds Altera PCIe MSI driver. This soft IP supports configurable number of vectors, which is a dts parameter. Signed-off-by: Ley Foon Tan --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera-msi.c | 322

[PATCH v4 4/5] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-08-17 Thread Ley Foon Tan
This patch adds the bindings for Altera PCIe host controller driver and Altera PCIe MSI driver. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/pci/altera-pcie-msi.txt| 27 .../devicetree/bindings/pci/altera-pcie.txt| 49 ++ 2 files changed

[PATCH v4 5/5] MAINTAINERS: Add Altera PCIe and MSI drivers maintainer

2015-08-17 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index fd60784..32f5287 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7759,6 +7759,14 @@ F: include/linux/pci* F: arch/x86/pci/ F: arch/x86

[PATCH v4 2/5] pci:host: Add Altera PCIe host controller driver

2015-08-17 Thread Ley Foon Tan
This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan --- drivers/pci/host/Kconfig | 7 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 543 + 3 files changed, 551 insertions(+) create mode

[PATCH v4 1/5] arm: add msi.h to Kbuild

2015-08-17 Thread Ley Foon Tan
Include asm-generic/msi.h to support CONFIG_GENERIC_MSI_IRQ_DOMAIN. This to fix compilation error: "include/linux/msi.h:123:21: fatal error: asm/msi.h: No such file or directory" Signed-off-by: Ley Foon Tan --- arch/arm/include/asm/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --

Re: [PATCH v4 2/5] pci:host: Add Altera PCIe host controller driver

2015-08-18 Thread Ley Foon Tan
On Wed, Aug 19, 2015 at 3:11 AM, Dinh Nguyen wrote: > > On Mon, Aug 17, 2015 at 4:09 AM, Ley Foon Tan wrote: > > This patch adds the Altera PCIe host controller driver. > > > > Signed-off-by: Ley Foon Tan > > --- > > drivers/pci/host/Kconfig |

Re: [PATCH v4 4/5] Documentation: dt-bindings: pci: altera pcie device tree binding

2015-08-18 Thread Ley Foon Tan
On Wed, Aug 19, 2015 at 3:22 AM, Dinh Nguyen wrote: > On Mon, Aug 17, 2015 at 4:09 AM, Ley Foon Tan wrote: >> This patch adds the bindings for Altera PCIe host controller driver and >> Altera PCIe MSI driver. >> >> Signed-off-by: Ley Foon Tan >> --- >>

[GIT PULL] arch/nios2 update for 4.7

2016-05-24 Thread Ley Foon Tan
Hi Linus Here is nios2 update for v4.7. Please consider pulling. Regards Ley Foon The following changes since commit 2dcd0af568b0cf583645c8a317dd12e344b1c72a: Linux 4.6 (2016-05-15 15:43:13 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lft

[GIT PULL] arch/nios2 fix for v4.6

2016-04-27 Thread Ley Foon Tan
Hi Linus There is one arch/nios2 fix for v4.6. Please consider pulling. Regards Ley Foon The following changes since commit 02da2d72174c61988eb4456b53f405e3ebdebce4: Linux 4.6-rc5 (2016-04-24 16:17:05 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel

Re: [PATCH 0/3] fixes to support multi-functions device

2015-12-06 Thread Ley Foon Tan
On Sat, Dec 5, 2015 at 6:28 AM, Bjorn Helgaas wrote: > On Thu, Dec 03, 2015 at 07:17:51PM +0800, Ley Foon Tan wrote: >> This series of patch fixes the issues when work with multi-functions PCIe >> devices. Host controller can't access to endpoint with non-zero devfn, due to &

[GIT PULL] arch/nios2 fix for v4.4-rc3

2015-11-27 Thread Ley Foon Tan
Ley Foon Tan (1): nios2: fix cache coherency arch/nios2/mm/cacheflush.c | 24 1 file changed, 4 insertions(+), 20 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kerne

[PATCH 2/3] PCI: altera: check TLP completion status

2015-12-03 Thread Ley Foon Tan
. Signed-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index f05180f..e4176b3 100644 --- a/drivers/pci/host/pcie-altera.c +++ b/drivers/pci

[PATCH 0/3] fixes to support multi-functions device

2015-12-03 Thread Ley Foon Tan
multi-functions enabled. Ley Foon Tan (3): PCI: altera: fix incorrect devfn for requester ID PCI: altera: check TLP completion status PCI: altera: fix error when INTX is 4 drivers/pci/host/pcie-altera.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) -- 1.

[PATCH 1/3] PCI: altera: fix incorrect devfn for requester ID

2015-12-03 Thread Ley Foon Tan
-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index e5dda38..f05180f 100644 --- a/drivers/pci/host/pcie-altera.c +++ b/drivers/pci/host/pcie-altera.c

[PATCH 3/3] PCI: altera: fix error when INTX is 4

2015-12-03 Thread Ley Foon Tan
. Signed-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index e4176b3..8b30d4a 100644 --- a/drivers/pci/host/pcie-altera.c +++ b/drivers/pci/host/pcie-altera.c

Re: [PATCH 0/3] fixes to support multi-functions device

2015-12-03 Thread Ley Foon Tan
On Thu, Dec 3, 2015 at 5:54 PM, Ley Foon Tan wrote: > This series of patch fixes the issues when work with multi-functions PCIe > devices. Host controller can't access to endpoint with non-zero devfn, due to > incorrect rootport devfn. It also add checking for TLP status an

[PATCH 2/3] PCI: altera: check TLP completion status

2015-12-03 Thread Ley Foon Tan
. Signed-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index f05180f..e4176b3 100644 --- a/drivers/pci/host/pcie-altera.c +++ b/drivers/pci

[PATCH 1/3] PCI: altera: fix incorrect devfn for requester ID

2015-12-03 Thread Ley Foon Tan
-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index e5dda38..f05180f 100644 --- a/drivers/pci/host/pcie-altera.c +++ b/drivers/pci/host/pcie-altera.c

[PATCH 0/3] fixes to support multi-functions device

2015-12-03 Thread Ley Foon Tan
multi-functions enabled. Ley Foon Tan (3): PCI: altera: fix incorrect devfn for requester ID PCI: altera: check TLP completion status PCI: altera: fix error when INTX is 4 drivers/pci/host/pcie-altera.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) -- 1.

[PATCH 3/3] PCI: altera: fix error when INTX is 4

2015-12-03 Thread Ley Foon Tan
Ethernet adapter card with multi-functions. Signed-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index e4176b3..1a2d4a6 100644 --- a/drivers/pci/host/pcie

Re: [PATCH 00/10] drivers/pci: avoid module_init in non-modular host/pci*

2015-12-14 Thread Ley Foon Tan
On Mon, Dec 14, 2015 at 4:24 PM, Thierry Reding wrote: > On Mon, Dec 14, 2015 at 09:19:30AM +0100, Geert Uytterhoeven wrote: >> Hi Paul, >> >> On Sun, Dec 13, 2015 at 2:41 AM, Paul Gortmaker >> wrote: >> > This series of commits is a slice of a larger project to ensure >> > people don't have dead

Re: [PATCH v6 0/6] Altera PCIe host controller driver with MSI support

2015-09-13 Thread Ley Foon Tan
On Tue, Sep 1, 2015 at 6:40 PM, Marc Zyngier wrote: > On 01/09/15 11:30, Ley Foon Tan wrote: >> This is the 6th version of patch set to add support for Altera PCIe host >> controller with MSI feature on Altera FPGA device families. This patchset >> mainly resolve comments fr

Re: [PATCH v12 0/6] Altera PCIe host controller driver with MSI support

2015-10-27 Thread Ley Foon Tan
On Tue, Oct 27, 2015 at 10:26 PM, Bjorn Helgaas wrote: > Hi Ley, > > On Fri, Oct 23, 2015 at 06:27:09PM +0800, Ley Foon Tan wrote: >> This is the 12th version of patch set to add support for Altera PCIe host >> controller with MSI feature on Altera FPGA device families. Th

Re: [PATCH v12 0/6] Altera PCIe host controller driver with MSI support

2015-10-27 Thread Ley Foon Tan
On Wed, Oct 28, 2015 at 9:02 AM, Bjorn Helgaas wrote: > On Tue, Oct 27, 2015 at 7:56 PM, Ley Foon Tan wrote: >> On Tue, Oct 27, 2015 at 10:26 PM, Bjorn Helgaas wrote: >>> Hi Ley, >>> >>> On Fri, Oct 23, 2015 at 06:27:09PM +0800, Ley Foon Tan wrote: >>&

Re: [Nios2-dev] [PATCH 11/23] nios2/time: Migrate to new 'set-state' interface

2015-07-21 Thread Ley Foon Tan
t;> now. >> >> This also enables us to implement callbacks for new states of clockevent >> devices, for example: ONESHOT_STOPPED. >> >> Cc: Ley Foon Tan >> Cc: Tobias Klauser >> Cc: Herbert Xu >> Cc: Dmitry Torokhov >> Cc: nios2-...@lists.rocket

Re: [PATCH v6 00/29] nios2 Linux kernel port

2014-11-10 Thread Ley Foon Tan
On Isn, 2014-11-10 at 00:12 +1100, Stephen Rothwell wrote: > Hi, > > On Fri, 7 Nov 2014 17:24:43 +0800 Ley Foon Tan wrote: > > > > On Fri, Nov 7, 2014 at 3:39 PM, LF.Tan wrote: > > > > > > Review for Nios2 port is completed and ready for upstream. Can

Re: [PATCH] nios2: fix error handling of irq_of_parse_and_map

2014-11-17 Thread Ley Foon Tan
On Mon, Nov 17, 2014 at 5:24 PM, Tobias Klauser wrote: > On 2014-11-14 at 23:04:19 +0100, Dmitry Torokhov wrote: >> Return value of irq_of_parse_and_map() is unsigned int, with 0 >> indicating failure, so testing for negative result never works. >> >> Signed-off-by: Dmitry Torokhov > > Reviewed-

[PATCH v4 00/29] nios2 Linux kernel port

2014-10-08 Thread Ley Foon Tan
ory - [v1] : https://lkml.org/lkml/2014/4/18/216 [v2] : https://lkml.org/lkml/2014/7/15/120 [v3] : https://lkml.org/lkml/2014/9/8/139 Ley Foon Tan (29): asm-generic: add generic futex for !CONFIG_SMP nios2: Assembly macros and definitions nios2: Kernel booting and initializat

[PATCH v4 02/29] nios2: Assembly macros and definitions

2014-10-08 Thread Ley Foon Tan
This patch add assembly macros and definitions used in the .S files across arch/nios2/ and together with asm-offsets.c. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/asm-macros.h | 309 ++ arch/nios2/include/asm/asm-offsets.h | 20 +++ arch/nios2

[PATCH v4 08/29] nios2: MMU Fault handling

2014-10-08 Thread Ley Foon Tan
This patch adds support for the handling of the MMU faults (exception entry code introduced by a previous patch, kernel/entry.S). Signed-off-by: Ley Foon Tan --- arch/nios2/mm/extable.c | 25 + arch/nios2/mm/fault.c | 251 +++ 2 files changed

[PATCH v4 09/29] nios2: Page table management

2014-10-08 Thread Ley Foon Tan
This patch adds support for page table management. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/pgalloc.h | 86 + arch/nios2/include/asm/pgtable-bits.h | 35 arch/nios2/include/asm/pgtable.h | 305 + arch/nios2/mm/pgtable.c

[PATCH v4 10/29] nios2: Process management

2014-10-08 Thread Ley Foon Tan
This patch adds support for thread creation and context switching. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/mmu_context.h | 66 + arch/nios2/include/asm/processor.h | 103 ++ arch/nios2/include/asm/switch_to.h | 31 arch/nios2/include/asm

[PATCH v4 15/29] Add ELF machine define for Nios2

2014-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan Acked-by: Arnd Bergmann --- include/uapi/linux/elf-em.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/uapi/linux/elf-em.h b/include/uapi/linux/elf-em.h index 01529bd..7f06c0d 100644 --- a/include/uapi/linux/elf-em.h +++ b/include

[PATCH v4 13/29] nios2: Interrupt handling

2014-10-08 Thread Ley Foon Tan
This patch adds the support for IRQ handling. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/irq.h | 28 +++ arch/nios2/include/asm/irqflags.h | 69 +++ arch/nios2/kernel/irq.c | 93 + 3 files

[PATCH v4 19/29] nios2: Library functions

2014-10-08 Thread Ley Foon Tan
Add optimised library functions for nios2. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/checksum.h | 78 +++ arch/nios2/include/asm/string.h | 24 + arch/nios2/lib/memcpy.c | 199 + arch/nios2/lib/memmove.c

[PATCH v4 17/29] nios2: System calls handling

2014-10-08 Thread Ley Foon Tan
This patch adds support for system calls from userspaces. It uses the asm-generic/unistd.h definitions with architecture spcific syscall. The sys_call_table is just an array defined in a C file and it contains pointers to the syscall functions. Signed-off-by: Ley Foon Tan --- arch/nios2

[PATCH v4 18/29] nios2: Signal handling support

2014-10-08 Thread Ley Foon Tan
This patch adds support for signal handling. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/signal.h | 22 ++ arch/nios2/include/asm/ucontext.h| 32 +++ arch/nios2/include/uapi/asm/sigcontext.h | 28 +++ arch/nios2/include/uapi/asm/signal.h | 23 +++ arch

[PATCH v4 25/29] nios2: Module support

2014-10-08 Thread Ley Foon Tan
This patch adds support for loadable modules. Signed-off-by: Ley Foon Tan --- arch/nios2/kernel/module.c | 137 1 files changed, 137 insertions(+), 0 deletions(-) create mode 100644 arch/nios2/kernel/module.c diff --git a/arch/nios2/kernel

[PATCH v4 21/29] nios2: Time keeping

2014-10-08 Thread Ley Foon Tan
Add time keeping code for nios2. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/delay.h | 21 +++ arch/nios2/include/asm/timex.h | 26 arch/nios2/kernel/time.c | 318 arch/nios2/lib/delay.c | 52 +++ 4 files changed

[PATCH v4 23/29] nios2: Miscellaneous header files

2014-10-08 Thread Ley Foon Tan
This patch introduces a few nios2-specific header files. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/cmpxchg.h| 61 +++ arch/nios2/include/asm/linkage.h| 25 + arch/nios2/include/asm/mutex.h |1 + arch/nios2

[PATCH v4 28/29] Documentation: Add documentation for Nios2 architecture

2014-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- Documentation/nios2/README | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 Documentation/nios2/README diff --git a/Documentation/nios2/README b/Documentation/nios2/README new file mode 100644 index 000

[PATCH v4 29/29] nios2: Build infrastructure

2014-10-08 Thread Ley Foon Tan
This patch adds Makefile and Kconfig files required for building a nios2 kernel. Signed-off-by: Ley Foon Tan --- arch/nios2/Kconfig | 201 ++ arch/nios2/Kconfig.debug | 17 +++ arch/nios2/Makefile | 73

[PATCH v4 26/29] nios2: ptrace support

2014-10-08 Thread Ley Foon Tan
Add ptrace support for nios2. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/ptrace.h | 33 +++ arch/nios2/include/uapi/asm/ptrace.h | 120 arch/nios2/kernel/ptrace.c | 166 ++ 3 files changed, 319

[PATCH v4 27/29] MAINTAINERS: Add nios2 maintainer

2014-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index a12edf2..580499e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6421,6 +6421,13 @@ S: Maintained F: Documentation/scsi

[PATCH v4 24/29] nios2: Nios2 registers

2014-10-08 Thread Ley Foon Tan
This file contains constants for the instruction macros, cpu registers, fields and bits. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/registers.h | 71 1 files changed, 71 insertions(+), 0 deletions(-) create mode 100644 arch/nios2/include/asm

[PATCH v4 22/29] nios2: Cpuinfo handling

2014-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/cpuinfo.h | 57 +++ arch/nios2/kernel/cpuinfo.c | 201 ++ 2 files changed, 258 insertions(+), 0 deletions(-) create mode 100644 arch/nios2/include/asm/cpuinfo.h create mode 100644 arch

[PATCH v4 20/29] nios2: Device tree support

2014-10-08 Thread Ley Foon Tan
Add device tree support to arch/nios2. Signed-off-by: Ley Foon Tan --- Documentation/devicetree/bindings/nios2/nios2.txt | 62 Documentation/devicetree/bindings/nios2/timer.txt | 19 +++ arch/nios2/boot/dts/3c120_devboard.dts| 164 + arch/nios2/boot

[PATCH v4 16/29] nios2: ELF definitions

2014-10-08 Thread Ley Foon Tan
This patch adds definitions for the ELF format Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/elf.h | 101 + arch/nios2/include/uapi/asm/elf.h | 67 2 files changed, 168 insertions(+), 0 deletions(-) create mode

[PATCH v4 14/29] nios2: DMA mapping API

2014-10-08 Thread Ley Foon Tan
This patch adds support for the DMA mapping API. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/dma-mapping.h | 130 arch/nios2/mm/dma-mapping.c | 185 ++ 2 files changed, 315 insertions(+), 0 deletions(-) create mode

[PATCH v4 11/29] nios2: Cache handling

2014-10-08 Thread Ley Foon Tan
This patch adds functionality required for cache maintenance. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/cache.h | 36 + arch/nios2/include/asm/cacheflush.h | 52 +++ arch/nios2/mm/cacheflush.c | 270 +++ 3 files changed

[PATCH v4 12/29] nios2: TLB handling

2014-10-08 Thread Ley Foon Tan
This patch adds the TLB maintenance functions. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/tlb.h | 34 + arch/nios2/include/asm/tlbflush.h | 46 ++ arch/nios2/mm/tlb.c | 274 + 3 files changed, 354 insertions(+), 0

[PATCH v4 06/29] nios2: Memory management

2014-10-08 Thread Ley Foon Tan
This patch contains the initialisation of the memory blocks, MMU attributes and the memory map. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/mmu.h | 16 +++ arch/nios2/include/asm/page.h| 111 ++ arch/nios2/include/asm/uaccess.h | 231

[PATCH v4 07/29] nios2: I/O Mapping

2014-10-08 Thread Ley Foon Tan
This patch adds several definitions for I/O accessors and ioremap(). Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/io.h | 84 +++ arch/nios2/lib/io.c | 138 arch/nios2/mm/ioremap.c | 186

[PATCH v4 03/29] nios2: Kernel booting and initialization

2014-10-08 Thread Ley Foon Tan
This patch adds the kernel booting and the initial setup code. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/entry.h | 120 ++ arch/nios2/include/asm/setup.h | 38 +++ arch/nios2/kernel/head.S | 175 arch/nios2/kernel

[PATCH v4 05/29] nios2: Traps exception handling

2014-10-08 Thread Ley Foon Tan
This patch contains traps exception handling. Signed-off-by: Ley Foon Tan --- arch/nios2/include/asm/traps.h | 19 ++ arch/nios2/kernel/insnemu.S| 592 arch/nios2/kernel/traps.c | 185 + 3 files changed, 796 insertions(+), 0

[PATCH v4 01/29] asm-generic: add generic futex for !CONFIG_SMP

2014-10-08 Thread Ley Foon Tan
Follow m68k futex implementation for !CONFIG_SMP. Signed-off-by: Ley Foon Tan Acked-by: Arnd Bergmann --- include/asm-generic/futex.h | 82 +++ 1 files changed, 82 insertions(+), 0 deletions(-) diff --git a/include/asm-generic/futex.h b/include/asm

[PATCH v4 04/29] nios2: Exception handling

2014-10-08 Thread Ley Foon Tan
This patch contains the exception entry code (kernel/entry.S) and misaligned exception. Signed-off-by: Ley Foon Tan --- arch/nios2/kernel/entry.S | 559 arch/nios2/kernel/misaligned.c | 255 ++ 2 files changed, 814 insertions

Re: [PATCH v4 04/29] nios2: Exception handling

2014-10-09 Thread Ley Foon Tan
On Thu, Oct 9, 2014 at 6:27 AM, Al Viro wrote: > >> +Lsignal_return: >> + ANDI32 r1, r10, _TIF_SIGPENDING | _TIF_NOTIFY_RESUME >> + beq r1, r0, restore_all >> + mov r4, sp /* pt_regs */ >> + SAVE_SWITCH_STACK >> + calldo_notify_resume >> + beq

Re: [PATCH v4 18/29] nios2: Signal handling support

2014-10-09 Thread Ley Foon Tan
On Wed, Oct 8, 2014 at 7:29 PM, Richard Weinberger wrote: > On Wed, Oct 8, 2014 at 11:29 AM, Ley Foon Tan wrote: >> This patch adds support for signal handling. >> >> Signed-off-by: Ley Foon Tan > > Maybe I'm misreading your code but where do you check for multip

Re: [PATCH v4 17/29] nios2: System calls handling

2014-10-09 Thread Ley Foon Tan
On Thu, Oct 9, 2014 at 3:47 PM, Tobias Klauser wrote: >> +#if defined(CONFIG_FB) || defined(CONFIG_FB_MODULE) >> +#include >> +unsigned long get_fb_unmapped_area(struct file *filp, unsigned long >> orig_addr, >> + unsigned long len, unsigned long pgoff, unsigned long flags) >> +{ >>

Re: [PATCH v4 21/29] nios2: Time keeping

2014-10-09 Thread Ley Foon Tan
On Wed, Oct 8, 2014 at 6:44 PM, Thomas Gleixner wrote: > On Wed, 8 Oct 2014, Ley Foon Tan wrote: >> +static void nios2_timer_set_mode(enum clock_event_mode mode, >> + struct clock_event_device *evt) >> +{ >> + unsigned long period; >> + struc

<    1   2   3   4   5   6   7   >