[PATCH v2] mailbox: Add Altera mailbox driver

2014-12-22 Thread Ley Foon Tan
The Altera mailbox allows for interprocessor communication. It supports only one channel and work as either sender or receiver. Signed-off-by: Ley Foon Tan --- v2: Resolved comment from Dinh and Suman. - Alphabetize the headers. - Removed WARN_ON() checking - Use devm_kzalloc to allocate struct

Re: nios2: is the ptrace ABI correct?

2015-03-09 Thread Ley Foon Tan
On Tue, Mar 10, 2015 at 1:05 AM, Ezequiel Garcia wrote: > > > On 03/09/2015 02:02 PM, Chung-Lin Tang wrote: >> On 2015/3/10 12:54 AM, Chung-Lin Tang wrote: >>> It appears that some of the ways nios2 has organized the >>> ucontext/pt_regs/etc. are remnants of the pre-generic code, some >>> basicall

Re: nios2: is the ptrace ABI correct?

2015-03-11 Thread Ley Foon Tan
On Tue, Mar 10, 2015 at 2:17 PM, Chung-Lin Tang wrote: > On 2015/3/10 10:54 AM, Ley Foon Tan wrote: >> On Tue, Mar 10, 2015 at 1:05 AM, Ezequiel Garcia >> wrote: >>> >>> >>> On 03/09/2015 02:02 PM, Chung-Lin Tang wrote: >>>> On 2015/3/10 12:5

[GIT PULL] arch/nios2 fix for 4.0-rc4

2015-03-12 Thread Ley Foon Tan
Hi Linus There is one arch/nios2 fix for 4.0-rc4. Please consider pulling. Regards Ley Foon The following changes since commit 9eccca0843205f87c00404b663188b88eb248051: Linux 4.0-rc3 (2015-03-08 16:09:09 -0700) are available in the git repository at: git://git.rocketboards.org/linux-socfp

[GIT PULL] arch/nios2 fixes for v4.0-rc5

2015-03-19 Thread Ley Foon Tan
- Remove ucontext.h from exported arch headers - nios2: mm: do not invoke OOM killer on kernel fault OOM Ley Foon Tan (1): nios2: mm: do not invoke OOM killer on kernel fault OOM Tobias Klauser (1): nios2: Remove ucontext.h

[GIT PULL] arch/nios2 for 3.19

2015-02-08 Thread Ley Foon Tan
Hi Linus, There is one arch/nios2 fix for 3.19 final. This fix the incorrect behavior of some user programs. Please consider pulling. Regards Ley Foon The following changes since commit e36f014edff70fc02b3d3d79cead1d58f289332e: Linux 3.19-rc7 (2015-02-01 20:07:21 -0800) are available in the

[GIT PULL] arch/nios2 for 3.19

2015-02-08 Thread Ley Foon Tan
Hi Linus, There is one arch/nios2 fix for 3.19 final. This fix the incorrect behavior of some user programs. Please consider pulling. Regards Ley Foon The following changes since commit e36f014edff70fc02b3d3d79cead1d58f289332e: Linux 3.19-rc7 (2015-02-01 20:07:21 -0800) are available in the

Re: [PATCH v2] mailbox: Add Altera mailbox driver

2015-02-01 Thread Ley Foon Tan
On Mon, Feb 2, 2015 at 3:04 PM, Jassi Brar wrote: > On Mon, Dec 22, 2014 at 3:14 PM, Ley Foon Tan wrote: > ... > >> diff --git a/drivers/mailbox/mailbox-altera.c >> b/drivers/mailbox/mailbox-altera.c >> new file mode 100644 >> index 000..8019795 >>

[PATCH v3] mailbox: Add Altera mailbox driver

2015-02-04 Thread Ley Foon Tan
The Altera mailbox allows for interprocessor communication. It supports only one channel and work as either sender or receiver. Signed-off-by: Ley Foon Tan --- v3: - s/readl/readl_relaxed and s/writel/writel_relaxed - Change polling interval to 5ms - Change to use polling mode if request_irq

Re: [PATCH (resend)] mailbox: Add Altera mailbox driver

2014-12-15 Thread Ley Foon Tan
On Mon, Dec 15, 2014 at 10:22 PM, Dinh Nguyen wrote: > > > On 12/15/14, 12:22 AM, Ley Foon Tan wrote: >> On Fri, Dec 12, 2014 at 10:38 PM, Dinh Nguyen wrote: >> >>>> + >>>> +#include >>>> +#include >>>> +#include >>&

Re: [PATCH 00/18] uaccess: fix sparse warning on get_user for bitwise types

2014-12-15 Thread Ley Foon Tan
On Mon, Dec 15, 2014 at 6:17 PM, Michael S. Tsirkin wrote: > Thanks for the heads up. > No - it will probably need a similar fix for __get_user and get_user. > It's just a parse warning so it's not a blocker. > Can you fix it yourself or prefer me to? Do you have newer revision of this series? If

Re: [PATCH (resend)] mailbox: Add Altera mailbox driver

2014-12-15 Thread Ley Foon Tan
On Tue, Dec 16, 2014 at 4:54 AM, Suman Anna wrote: > Hi Ley Foon, > > On 12/12/2014 08:38 AM, Dinh Nguyen wrote: >> >> >> On 12/12/14, 4:04 AM, Ley Foon Tan wrote: >>> The Altera mailbox allows for interprocessor communication. It supports >>>

[PATCH] serial: altera-juart: fix NULL device in log message

2014-12-15 Thread Ley Foon Tan
Add device pointer to port->dev. Before: "(NULL device *): ttyJ0 at MMIO 0x1008 (irq = 2, base_baud = 0) is a Altera JTAG UART" After: "altera_jtaguart 1008.serial: ttyJ0 at MMIO 0x1008 (irq = 2, base_baud = 0) is a Altera JTAG UART" Signed-off-by: Ley Foon Tan

[PATCH] serial: altera-uart: fix NULL device in log message

2014-12-15 Thread Ley Foon Tan
Add device pointer to port->dev. Before: "(NULL device *): ttyAL0 at MMIO 0x2020 (irq = 6, base_baud = 3125000) is a Altera UART" After: "altera_uart 2020.serial: ttyAL0 at MMIO 0x2020 (irq = 6, base_baud = 3125000) is a Altera UART" Signed-off-by: Ley Foon Tan

Re: [PATCH (resend)] mailbox: Add Altera mailbox driver

2014-12-16 Thread Ley Foon Tan
On Wed, Dec 17, 2014 at 3:53 AM, Suman Anna wrote: >>> I think this logic in general will conflict between interrupt and poll >>> mode. send_data is supposed to return -EBUSY only in polling mode and >>> not in interrupt mode. >> What is the recommended error code for this case? BTW, omap-mailbox

Re: [PATCH (resend)] mailbox: Add Altera mailbox driver

2014-12-17 Thread Ley Foon Tan
On Thu, Dec 18, 2014 at 1:17 AM, Dinh Nguyen wrote: > +MODULE_DEVICE_TABLE(of, altera_mbox_match); > + > +static struct platform_driver altera_mbox_driver = { > +.probe = altera_mbox_probe, > +.remove = altera_mbox_remove, > +.driver = { > +.nam

[GIT PULL] arch/nios2 fixes for 3.19

2014-12-17 Thread Ley Foon Tan
3:41 +0800) nios2 fixes for v3.19 - add definition of ioremap_wc to io.h to fix build error from make allmodconfig - fix make defconfig - fix sparse error Guenter Roeck (1): nios2: add definition of ioremap_wc to io.h

Re: [PATCH 00/18] uaccess: fix sparse warning on get_user for bitwise types

2014-12-17 Thread Ley Foon Tan
On Wed, Dec 17, 2014 at 12:45 AM, Michael S. Tsirkin wrote: > On Tue, Dec 16, 2014 at 02:06:50PM +0800, Ley Foon Tan wrote: >> On Mon, Dec 15, 2014 at 6:17 PM, Michael S. Tsirkin wrote: >> > Thanks for the heads up. >> > No - it will probably need a similar fix

Re: [PATCH] nios2: __kuser_sigtramp placement fix

2015-01-21 Thread Ley Foon Tan
g to behave properly when there are other > .word directives in between. Probably a binutils gas bug. > > Thanks, > Chung-Lin > > Cc: Ley Foon Tan > Cc: Tobias Klauser > Signed-off-by: Chung-Lin Tang > > diff --git a/arch/nios2/kernel/entry.S b/arch/nios2/kernel/

Re: [PATCH] nios2: __kuser_sigtramp placement fix

2015-01-22 Thread Ley Foon Tan
On Thu, Jan 22, 2015 at 4:15 PM, Chung-Lin Tang wrote: > On 2015/1/22 03:54 PM, Ley Foon Tan wrote: >> On Thu, Jan 22, 2015 at 3:14 PM, Chung-Lin Tang >> wrote: >>> The address of __kuser_sigtramp is wrong by one word, due to padding >>> __kuser_cmpxchg to fu

Re: [PATCH] nios2: __kuser_sigtramp placement fix

2015-01-22 Thread Ley Foon Tan
On Thu, Jan 22, 2015 at 5:07 PM, Chung-Lin Tang wrote: > On 2015/1/22 下午 04:43, Ley Foon Tan wrote: >> On Thu, Jan 22, 2015 at 4:15 PM, Chung-Lin Tang >> wrote: >>> On 2015/1/22 03:54 PM, Ley Foon Tan wrote: >>>> On Thu, Jan 22, 2015 at 3:14 PM, Chung-Lin Tan

[GIT PULL] arch/nios2 for 3.19-rc6

2015-01-22 Thread Ley Foon Tan
address. Ley Foon Tan (1): nios2: fix kuser trampoline address arch/nios2/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

[GIT PULL] arch/nios2 update for 3.20

2015-02-16 Thread Ley Foon Tan
) nios2 for v3.20 Add support for early printk, compressed kernel, kgdb and some bugfixes. Ley Foon Tan (6): nios2: Port OOM changes to do_page_fault() nios2: add early printk support nios2: Add support for

Re: [PATCH] nios2: enable "make defconfig"

2014-12-12 Thread Ley Foon Tan
On Wed, Dec 10, 2014 at 4:02 AM, Paul Bolle wrote: > Running "make defconfig" currently fails for nios2: > $ make ARCH=nios2 defconfig > scripts/kconfig/conf --defconfig Kconfig > *** > *** Can't find default configuration "arch/nios2/defconfig"! > *** > make[1]: *** [defco

Re: [PATCH] nios2: add definition of ioremap_wc to io.h

2014-12-12 Thread Ley Foon Tan
On Thu, Dec 11, 2014 at 12:59 AM, Guenter Roeck wrote: > Fix > > drivers/gpu/drm/drm_bufs.c: In function 'drm_addmap_core': > drivers/gpu/drm/drm_bufs.c:213:5: > error: implicit declaration of function 'ioremap_wc' > > seen when building nios2:allmodconfig. > > Signed-off-b

[PATCH] mailbox: Add Altera mailbox driver

2014-12-12 Thread Ley Foon Tan
The Altera mailbox allows for interprocessor communication. It supports only one channel and work as either sender or receiver. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/mailbox/altera-mailbox.txt | 49 +++ drivers/mailbox/Kconfig| 7 + drivers

[PATCH (resend)] mailbox: Add Altera mailbox driver

2014-12-12 Thread Ley Foon Tan
The Altera mailbox allows for interprocessor communication. It supports only one channel and work as either sender or receiver. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/mailbox/altera-mailbox.txt | 49 +++ drivers/mailbox/Kconfig| 6 + drivers

Re: [PATCH (resend)] mailbox: Add Altera mailbox driver

2014-12-14 Thread Ley Foon Tan
On Fri, Dec 12, 2014 at 10:38 PM, Dinh Nguyen wrote: >> + >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include >> +#include > > Alphabetize the headers. Okay. >> +static int altera_mbox_startup_sender(struct mbox_chan *chan) >> +{ >> + int ret;

Re: [PATCH] nios2: Replace fdt_translate_address with of_flat_dt_translate_address

2016-03-18 Thread Ley Foon Tan
On Thu, 2016-03-17 at 20:22 -0700, Peter Hurley wrote: > Hi Guenter, > > On 03/17/2016 07:49 PM, Guenter Roeck wrote: > > nios2 builds fail with the following build error. > > > > arch/nios2/kernel/prom.c: In function 'early_init_dt_scan_serial': > > arch/nios2/kernel/prom.c:100:2: error: > >

Re: [PATCH resend 1/3] nios2: use correct void* return type for page_to_virt()

2016-04-19 Thread Ley Foon Tan
signed long paddr = page_to_virt(pte_page(pteval)); > + unsigned long paddr = (unsigned long)page_to_virt(pte_page(pteval)); > > flush_dcache_range(paddr, paddr + PAGE_SIZE); > set_pte(ptep, pteval); > -- Acked-by: Ley Foon Tan

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

2016-03-30 Thread Ley Foon Tan
Hi Linus There is one arch/nios2 fix for v4.6-rc2. Please consider pulling. Regards Ley Foon The following changes since commit f55532a0c0b8bb6148f4e07853b876ef73bc69ca: Linux 4.6-rc1 (2016-03-26 16:03:24 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/k

Re: [PATCH] PCI: altera: use fwnode API for pci_msi_create_irq_domain

2015-11-04 Thread Ley Foon Tan
7; > > This changes the new driver use the modified API. > > Signed-off-by: Arnd Bergmann > Fixes: af1169b48b17 ("PCI: altera: Add Altera PCIe MSI driver") > Fixes: be5436c83ac8 ("irqdomain/msi: Use fwnode instead of of_node") Acked-by: Ley Foon Tan Than

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

2015-10-29 Thread Ley Foon Tan
On Fri, Oct 30, 2015 at 7:22 AM, Bjorn Helgaas wrote: >> >>> >> >>> I applied these to pci/host-altera for v4.4, thanks! >> >>> >> >>> I squashed these into three patches: >> >>> >> >>> - add msi.h to Kbuild >> >>> - add Altera host driver (including DT binding and MAINTAINERS update) >> >>>

Re: linux-next: build failure after merge of the pci tree

2015-11-01 Thread Ley Foon Tan
On Isn, 2015-11-02 at 02:23 +1100, Stephen Rothwell wrote: > Hi Bjorn, > > After merging the pci tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > In file included from include/linux/kvm_host.h:20:0, > from arch/powerpc/kernel/asm-offsets.c:54: > include

Re: linux-next: build failure after merge of the pci tree

2015-11-01 Thread Ley Foon Tan
On Isn, 2015-11-02 at 02:23 +1100, Stephen Rothwell wrote: > Hi Bjorn, > > After merging the pci tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > In file included from include/linux/kvm_host.h:20:0, > from arch/powerpc/kernel/asm-offsets.c:54: > inclu

[GIT PULL] arch/nios2 update for 4.2

2015-07-03 Thread Ley Foon Tan
Ley Foon Tan (1): nios2: check number of timer instances arch/nios2/kernel/time.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

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

2015-10-08 Thread Ley Foon Tan
kml/2015/9/20/193 Ley Foon Tan (6): arm: add msi.h to Kbuild pci: add Altera PCI vendor ID pci:host: Add Altera PCIe host controller driver pci: altera: Add Altera PCIe MSI driver Documentation: dt-bindings: pci: altera pcie device tree binding MAINTAINERS: Add Altera PCIe and MSI drive

[PATCH v8 2/6] pci: add Altera PCI vendor ID

2015-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index d9ba49c..08e4462 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1550,6 +1550,8 @@ #define

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

2015-10-08 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 v8 3/6] pci:host: Add Altera PCIe host controller driver

2015-10-08 Thread Ley Foon Tan
This patch adds the Altera PCIe host controller driver. Signed-off-by: Ley Foon Tan Reviewed-by: Marc Zyngier --- drivers/pci/host/Kconfig | 7 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera.c | 588 + 3 files changed, 596

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

2015-10-08 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 v8 6/6] MAINTAINERS: Add Altera PCIe and MSI drivers maintainer

2015-10-08 Thread Ley Foon Tan
Signed-off-by: Ley Foon Tan --- MAINTAINERS | 16 1 file changed, 16 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9f6685f..482de0b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7943,6 +7943,14 @@ F: include/linux/pci* F: arch/x86/pci/ F: arch/x86

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

2015-10-08 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 Reviewed-by: Marc Zyngier --- drivers/pci/host/Kconfig | 8 + drivers/pci/host/Makefile | 1 + drivers/pci/host/pcie-altera

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

2015-10-08 Thread Ley Foon Tan
On Thu, Oct 8, 2015 at 5:47 PM, Russell King - ARM Linux wrote: > > On Thu, Oct 08, 2015 at 05:43:11PM +0800, Ley Foon Tan wrote: > > +static int altera_pcie_cfg_write(struct pci_bus *bus, unsigned int devfn, > > + int where, i

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

2015-10-11 Thread Ley Foon Tan
On Kha, 2015-10-08 at 22:05 +0200, Corentin LABBE 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 > > Reviewed-by: Marc Zyngier > >

[GIT PULL] arch/nios2 update for v4.4-rc1

2015-11-08 Thread Ley Foon Tan
Hi Linus, Here are the arch/nios2 update for v4.4. Please consider pulling. Regards Ley Foon The following changes since commit 6a13feb9c82803e2b815eca72fa7a9f5561d7861: Linux 4.3 (2015-11-01 16:05:25 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kerne

Re: [PATCH 1/2] nios2: Add architectural support for PCIe

2015-09-29 Thread Ley Foon Tan
On Tue, Sep 29, 2015 at 3:37 PM, Arnd Bergmann wrote: > On Tuesday 29 September 2015 11:12:24 Ley Foon Tan wrote: >> > >> > I think that would be good, yes. We probably picked defaults for the >> > asm-generic version that are enough to build with CONFIG_PCI disab

Re: linux-next: build failure after merge of the pci tree

2015-11-03 Thread Ley Foon Tan
On Isn, 2015-11-02 at 12:12 -0600, Bjorn Helgaas wrote: > On Sun, Nov 1, 2015 at 6:00 PM, Ley Foon Tan wrote: > > On Isn, 2015-11-02 at 02:23 +1100, Stephen Rothwell wrote: > >> Hi Bjorn, > >> > >> After merging the pci tree, today's linux-next build (po

Re: [PATCH v3 1/2] PCI: altera: Add Stratix 10 PCIe support

2019-02-10 Thread Ley Foon Tan
On Sat, Feb 9, 2019 at 12:29 AM Lorenzo Pieralisi wrote: > > Apologies, I have dropped the ball on this one. > > On Wed, Jan 02, 2019 at 02:16:48PM +0800, Ley Foon Tan wrote: > > Add PCIe Root Port support for Stratix 10 device. > > > > Main differences: > >

Re: [PATCH] nios2: force the string buffer NULL-terminated

2019-10-01 Thread Ley Foon Tan
de uses strncpy() when copying > boot_command_line. > > Use strlcpy() instead. > > This issue is identified by a Coccinelle script. > > Signed-off-by: Wang Xiayang Merged to v5.4-rc1. Thanks. Acked-by: Ley Foon Tan > --- >  arch/nios2/kernel/setup.c | 6 +++--

[GIT PULL] arch/nios2 update for v5.4

2019-09-27 Thread Ley Foon Tan
Hi Linus Please pull the arch/nios2 update below. Thanks. Regards Ley Foon The following changes since commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8:   Linux 5.3 (2019-09-15 14:19:32 -0700) are available in the git repository at:   git://git.kernel.org/pub/scm/linux/kernel/git/lftan/nios2

Re: [PATCHv2] arm64: dts: agilex: add QSPI support for Intel Agilex

2019-10-17 Thread Ley Foon Tan
On Wed, 2019-10-16 at 02:40 -0700, Ooi, Joyce wrote: > This patch adds QSPI flash interface in device tree for Intel Agilex > > Signed-off-by: Ooi, Joyce > --- > v2: update the qspi_rootfs partition size > --- >  arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dts | 35 > ++ >  

[PATCH v4 1/3] PCI: altera: Add Stratix 10 PCIe support

2019-02-13 Thread Ley Foon Tan
Add PCIe Root Port support for Stratix 10 device. Main differences: - HIP interface to access Root Port configuration register. - TLP programming flow: - One REG0 register - Don't need to check alignment Signed-off-by: Ley Foon Tan --- drivers/pci/controller/pcie-altera.c |

[PATCH v4 2/3] PCI: altera: Enable driver on ARM64

2019-02-13 Thread Ley Foon Tan
Enable PCIE_ALTERA on ARM64 platform. Signed-off-by: Ley Foon Tan --- drivers/pci/controller/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig index 6671946..6012f30 100644 --- a/drivers/pci

[PATCH v4 0/3] Add Stratix 10 PCIe Root Port support

2019-02-13 Thread Ley Foon Tan
/lkml.org/lkml/2018/12/31/46 [v3]: https://lkml.org/lkml/2019/1/2/16 Ley Foon Tan (3): PCI: altera: Add Stratix 10 PCIe support PCI: altera: Enable driver on ARM64 dt-bindings: PCI: altera: Add altr,pcie-root-port-2.0 .../devicetree/bindings/pci/altera-pcie.txt|4 +- dr

[PATCH v4 3/3] dt-bindings: PCI: altera: Add altr,pcie-root-port-2.0

2019-02-13 Thread Ley Foon Tan
Add support for altr,pcie-root-port-2.0. Signed-off-by: Ley Foon Tan Reviewed-by: Rob Herring --- .../devicetree/bindings/pci/altera-pcie.txt|4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/Documentation/devicetree/bindings/pci/altera-pcie.txt b

[PATCH] PCI: altera: Fix no return warning for altera_pcie_irq_teardown()

2019-05-23 Thread Ley Foon Tan
ned-off-by: Ley Foon Tan --- drivers/pci/controller/pcie-altera.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/pcie-altera.c b/drivers/pci/controller/pcie-altera.c index 6c86bc69ace8..27222071ace7 100644 --- a/drivers/pci/controller/pcie-altera.c +++

Re: [PATCH] PCI: altera: Fix no return warning for altera_pcie_irq_teardown()

2019-05-23 Thread Ley Foon Tan
On Fri, May 24, 2019 at 10:15 AM Ley Foon Tan wrote: > > Fix compilation warning caused by patch "PCI: altera: Allow building as > module". > > drivers/pci/controller/pcie-altera.c: In function ‘altera_pcie_irq_teardown’: > drivers/pci/controller/pcie-altera.c:723:1:

[PATCH 0/2] Fix Altera PCIe configuration type handling

2019-05-23 Thread Ley Foon Tan
targeting the immediate device on the link. The PCIe controller send Type 1 config TLP if the targeting bus is larger than the secondary bus, which is when the TLP is targeting the device not immediate on the link. Ley Foon Tan (2): PCI: altera: Fix configuration type based on secondary number PCI

[PATCH 1/2] PCI: altera: Fix configuration type based on secondary number

2019-05-23 Thread Ley Foon Tan
targeting the immediate device on the link. The PCIe controller send Type 1 config TLP if the targeting bus is larger than the secondary bus, which is when the TLP is targeting the device not immediate on the link. Signed-off-by: Ley Foon Tan --- drivers/pci/controller/pcie-altera.c | 22

[PATCH 2/2] PCI: altera: Remove cfgrdX and cfgwrX

2019-05-23 Thread Ley Foon Tan
No longer need cfgrdX and cfgwrX since we have separate defines for TLP_CFG*_DW0 and S10_TLP_CFG*_DW0, so remove them. Signed-off-by: Ley Foon Tan --- drivers/pci/controller/pcie-altera.c | 33 +++- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/drivers

Re: [PATCH] PCI: altera: Allow building as module

2019-05-13 Thread Ley Foon Tan
On Wed, Apr 24, 2019 at 12:57 PM Ley Foon Tan wrote: > > Altera PCIe Rootport IP is a soft IP and is only available after > FPGA image is programmed. > > Make driver modulable to support use case FPGA image is programmed > after kernel is booted. User proram FPGA image in ker

Re: [PATCH] PCI: altera-msi: Allow building as module

2019-05-13 Thread Ley Foon Tan
On Wed, Apr 24, 2019 at 12:57 PM Ley Foon Tan wrote: > > Altera MSI IP is a soft IP and is only available after > FPGA image is programmed. > > Make driver modulable to support use case FPGA image is programmed > after kernel is booted. User proram FPGA image in kernel then only

Re: [PATCH] nios2: remove pointless second entry for CONFIG_TRACE_IRQFLAGS_SUPPORT

2019-06-24 Thread Ley Foon Tan
re [2]. In the Kconfig syntax, the first one > > is effective. So, TRACE_IRQFLAGS_SUPPORT is always 'n'. > > > > The second define in arch/nios2/Kconfig.debug is dead code. > > > > Signed-off-by: Masahiro Yamada > > --- > Ping. > > Acked-by: Ley F

Re: [PATCH] PCI: altera: Allow building as module

2019-06-11 Thread Ley Foon Tan
On Tue, Jun 4, 2019 at 9:18 PM Bjorn Helgaas wrote: > > On Wed, Apr 24, 2019 at 12:57:14PM +0800, Ley Foon Tan wrote: > > Altera PCIe Rootport IP is a soft IP and is only available after > > FPGA image is programmed. > > > > Make driver modulable to support use

[GIT PULL] arch/nios2 updates for v5.1

2019-03-08 Thread Ley Foon Tan
Hi Linus Please pull the arch/nios2 updates below. Most of updates are MMU related. Thanks. Regards Ley Foon The following changes since commit 1c163f4c7b3f621efff9b28a47abb36f7378d783:   Linux 5.0 (2019-03-03 15:21:29 -0800) are available in the git repository at:   git://git.kernel.org/pub

Re: [PATCH v4 1/3] PCI: altera: Add Stratix 10 PCIe support

2019-02-25 Thread Ley Foon Tan
On Tue, 2019-02-19 at 16:23 +, Lorenzo Pieralisi wrote: > On Thu, Feb 14, 2019 at 11:20:36PM +0800, Ley Foon Tan wrote: > > > > Add PCIe Root Port support for Stratix 10 device. > > > > Main differences: > Main differences with what ? We need to rewrite this c

Re: [PATCH 05/11] tracing: consolidate the TRACE_IRQFLAGS_SUPPORT symbol

2019-02-18 Thread Ley Foon Tan
On Fri, 2019-02-15 at 16:55 +0900, Masahiro Yamada wrote: > +CC: Ley Foon Tan > +CC: nios2-...@lists.rocketboards.org > > > On Thu, Feb 14, 2019 at 2:40 AM Christoph Hellwig wrote: > > > > > diff --git a/arch/nios2/Kconfig b/arch/nios2/Kconfig > > ind

Re: [PATCH v6 1/3] PCI: altera: Add Stratix 10 PCIe support

2019-03-03 Thread Ley Foon Tan
On Fri, 2019-03-01 at 14:15 +, Lorenzo Pieralisi wrote: > On Fri, Mar 01, 2019 at 08:50:48AM +0800, Ley Foon Tan wrote: > > > > On Thu, 2019-02-28 at 10:56 +, Lorenzo Pieralisi wrote: > > > > > > On Thu, Feb 28, 2019 at 06:

Re: [PATCH v3 0/2] Add Stratix 10 PCIe Root Port support

2019-01-10 Thread Ley Foon Tan
On Wed, 2019-01-02 at 14:16 +0800, Ley Foon Tan wrote: > Add PCIe Root Port support for Stratix 10 device and also update > device tree binding documentation. > > v2 -> v3: > - > - Rename Stratix10 to Stratix 10. > - Change bool s10_flag to enum version. > >

Re: [PATCH v2 2/9] nios2: build .dtb files in dts directory

2018-09-11 Thread Ley Foon Tan
On Fri, 2018-09-07 at 13:09 -0500, Rob Herring wrote: > On Thu, Sep 6, 2018 at 9:21 PM Ley Foon Tan > wrote: > > > > > > On Wed, 2018-09-05 at 18:53 -0500, Rob Herring wrote: > > > > > > Align nios2 with other architectures which build the dtb files in

Re: [PATCH v2 2/9] nios2: build .dtb files in dts directory

2018-09-06 Thread Ley Foon Tan
help enable the 'dtbs' target which builds all the > dtbs > regardless of kernel config. > > This transition could break some scripts if they expect dtb files in > the old location. > > Cc: Ley Foon Tan > Cc: nios2-...@lists.rocketboards.org > Signed-off-by:

Re: [PATCH v6 11/16] nios2: Switch to generic free_initrd_mem.

2018-04-02 Thread Ley Foon Tan
mplementation) and x86_64 (which doesn't). > > Signed-off-by: Shea Levy Acked-by: Ley Foon Tan > --- >  arch/nios2/mm/init.c | 7 --- >  1 file changed, 7 deletions(-) > > diff --git a/arch/nios2/mm/init.c b/arch/nios2/mm/init.c > index c92fe4234009..3df75ff8c

[PATCH v3] ARM: socfpga: add PCIe to socfpga_defconfig

2016-06-15 Thread Ley Foon Tan
Enable Altera PCIe host driver, Altera MSI driver and PCIe devices. CONFIG_PCI=y CONFIG_PCI_MSI=y CONFIG_PCIE_ALTERA=y CONFIG_PCIE_ALTERA_MSI=y CONFIG_BLK_DEV_NVME=m CONFIG_E1000E=m CONFIG_IGB=m CONFIG_IXGBE=m Signed-off-by: Ley Foon Tan Signed-off-by: Tien Hock Loh Cc: Dinh Nguyen --- v2

Re: [PATCH 0/2] PCI: altera: fix link retrain

2016-07-24 Thread Ley Foon Tan
On Sat, Jul 23, 2016 at 5:07 AM, Bjorn Helgaas wrote: > > On Tue, Jun 21, 2016 at 04:53:11PM +0800, Ley Foon Tan wrote: > > This 2 patches fix the issue before and after retrain link. > > > > Ley Foon Tan (2): > > PCI: altera: check link status before retrain link

Re: [PATCH 26/28] nios2: fix timer initcall return value

2016-10-23 Thread Ley Foon Tan
default: > + ret = 0; > break; > } Acked-by: Ley Foon Tan

Re: [PATCH] PCI: altera: use builtin_platform_driver

2016-11-24 Thread Ley Foon Tan
On Rab, 2016-11-23 at 14:52 +, Geliang Tang wrote: > Use builtin_platform_driver() helper to simplify the code. > > Signed-off-by: Geliang Tang Acked-by: Ley Foon Tan > --- >  drivers/pci/host/pcie-altera.c | 6 +- >  1 file changed, 1 insertion(+), 5 deletions(-)

Re: [PATCH] asm-generic: Drop getrlimit and setrlimit syscalls from default list

2016-10-24 Thread Ley Foon Tan
td.h, and adjust all >> architectures using the generic syscall list to define it so that no >> in-tree architectures are affected. >> >> Cc: Vineet Gupta >> Cc: Catalin Marinas >> Cc: Will Deacon >> Cc: Mark Salter >> Cc: Aurelien Jacquiot >&

[GIT PULL] arch/nios2 update for 4.10

2016-12-16 Thread Ley Foon Tan
to static inline - Extend !__ASSEMBLY__ section in asm/page.h Ley Foon Tan (1):   nios2: add screen_info Tobias Klauser (2):   nios2: Extend !__ASSEMBLY__ section in asm/page.h   nios2: Convert pfn_valid to static inline

[PATCH] PCI: altera: Fix TLP_CFG_DW0 for TLP write

2017-02-28 Thread Ley Foon Tan
Commit eb5767122feba1 used the TLP_FMTTYPE_CFGRD* for TLP write operation and this cause writing to configuration space will fail. This patch fix it by using correct FMTTYPE for write operation. Signed-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 10 +++--- 1 file changed, 7

[PATCH] PCI: altera: Fix TLP_CFG_DW0 for TLP write

2017-02-28 Thread Ley Foon Tan
Commit eb5767122feba1 used the TLP_FMTTYPE_CFGRD* for TLP write operation and this cause writing to configuration space will fail. This patch fix it by using correct FMTTYPE for write operation. Signed-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 10 +++--- 1 file changed, 7

Re: [PATCH] PCI: altera: Fix TLP_CFG_DW0 for TLP write

2017-02-28 Thread Ley Foon Tan
On Tue, Feb 28, 2017 at 6:37 PM, Ley Foon Tan wrote: > Commit eb5767122feba1 used the TLP_FMTTYPE_CFGRD* for TLP write operation > and this cause writing to configuration space will fail. This patch > fix it by using correct FMTTYPE for write operation. > > Signed-off-by: Ley Foon

[PATCH] PCI: altera: Fix TLP_CFG_DW0 for TLP write

2017-02-28 Thread Ley Foon Tan
Commit eb5767122feba1 used the TLP_FMTTYPE_CFGRD* for TLP write operation and this cause writing to configuration space will fail. This patch fix it by using correct FMTTYPE for write operation. Signed-off-by: Ley Foon Tan Cc: sta...@vger.kernel.org --- drivers/pci/host/pcie-altera.c | 10

Re: [PATCH] PCI: altera: Fix TLP_CFG_DW0 for TLP write

2017-02-28 Thread Ley Foon Tan
On Tue, Feb 28, 2017 at 6:31 PM, Ley Foon Tan wrote: > Commit eb5767122feba1 used the TLP_FMTTYPE_CFGRD* for TLP write operation > and this cause writing to configuration space will fail. This patch > fix it by using correct FMTTYPE for write operation. > > Signed-off-b

Re: [PATCH 0/2] PCI: altera: fix link retrain

2016-07-12 Thread Ley Foon Tan
On Tue, Jun 21, 2016 at 4:53 PM, Ley Foon Tan wrote: > > This 2 patches fix the issue before and after retrain link. > > Ley Foon Tan (2): > PCI: altera: check link status before retrain link > PCI: altera: Polling for link up status after retrain the link > > driver

Re: [PATCH] PCI: altera: Poll for link training status after retraining the link

2016-08-19 Thread Ley Foon Tan
On Fri, Aug 19, 2016 at 4:19 AM, Bjorn Helgaas wrote: > On Mon, Aug 15, 2016 at 02:06:02PM +0800, Ley Foon Tan wrote: >> Poll for link training status is cleared before poll for link up status. >> This can help to get the reliable link up status, especially when PCIe >&

Re: [PATCH] PCI: altera: Retrain link in rootport mode only

2016-08-19 Thread Ley Foon Tan
On Fri, Aug 19, 2016 at 4:18 AM, Bjorn Helgaas wrote: > > On Mon, Aug 15, 2016 at 04:36:19PM +0800, Ley Foon Tan wrote: > > Altera PCIe IP can be configured as rootport or device and they might have > > same vendor ID. It will cause the system hang issue if Altera PCIe is in >

[PATCH v2] PCI: altera: Retrain link in rootport mode only

2016-08-19 Thread Ley Foon Tan
-off-by: Ley Foon Tan --- v2: change to check PCIe type is PCI_EXP_TYPE_ROOT_PORT --- drivers/pci/host/pcie-altera.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c index 58eef99..33b6968 100644 --- a/drivers/pci/host/pcie

[PATCH] ARM: socfpga: add PCIe to socfpga_defconfig

2016-06-13 Thread Ley Foon Tan
Enable Altera PCIe host driver, Altera MSI driver and PCIe devices. CONFIG_PCI=y CONFIG_PCI_MSI=y CONFIG_PCIE_ALTERA=y CONFIG_PCIE_ALTERA_MSI=y CONFIG_BLK_DEV_NVME=m CONFIG_E1000E=m CONFIG_IGB=m CONFIG_IXGBE=m Signed-off-by: Ley Foon Tan Signed-off-by: Tien Hock Loh Cc: Dinh Nguyen --- arch

[PATCH] ARM: socfpga: add PCIe to socfpga_defconfig

2016-06-13 Thread Ley Foon Tan
Enable Altera PCIe host driver, Altera MSI driver and PCIe devices. CONFIG_PCI=y CONFIG_PCI_MSI=y CONFIG_PCIE_ALTERA=y CONFIG_PCIE_ALTERA_MSI=y CONFIG_BLK_DEV_NVME=m CONFIG_E1000E=m CONFIG_IGB=m CONFIG_IXGBE=m Signed-off-by: Ley Foon Tan Signed-off-by: Tien Hock Loh Cc: Dinh Nguyen

[PATCH] PCI: altera: fix altera_pcie_link_is_up()

2016-03-02 Thread Ley Foon Tan
The original code return true if RP_LTSSM register return non-zero value. This fix to return true only RP_LTSSM register is in L0 state (link up). Signed-off-by: Ley Foon Tan --- drivers/pci/host/pcie-altera.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci

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

2015-09-27 Thread Ley Foon Tan
On Sat, Sep 26, 2015 at 11:55 AM, Rob Herring wrote: > > On 09/20/2015 09:13 PM, 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 > > --- > >

Re: [PATCH 1/2] nios2: Add architectural support for PCIe

2015-09-28 Thread Ley Foon Tan
On Tue, Sep 22, 2015 at 7:42 PM, Arnd Bergmann wrote: > On Tuesday 22 September 2015 18:53:50 Ley Foon Tan wrote: >> On Tue, Sep 22, 2015 at 4:18 PM, Arnd Bergmann wrote: >> > On Tuesday 22 September 2015 15:19:26 Ley Foon Tan wrote: >> > I might be miss

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

2015-09-23 Thread Ley Foon Tan
On Wed, Sep 23, 2015 at 2:33 AM, Marc Zyngier wrote: > On Mon, 21 Sep 2015 10:13:04 +0800 > Ley Foon Tan wrote: > >> This patch adds the Altera PCIe host controller driver. >> >> Signed-off-by: Ley Foon Tan >> --- >> drivers/pci/host/Kconfig

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

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

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

2015-07-31 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 v2 5/5] MAINTAINERS: Add Altera PCIe and MSI drivers maintainer

2015-07-31 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 v2 3/5] pci: altera: Add Altera PCIe MSI driver

2015-07-31 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 | 324

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

2015-07-31 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 v2 0/5] Altera PCIe host controller driver with MSI support

2015-07-31 Thread Ley Foon Tan
kml.org/lkml/2015/7/28/395 Ley Foon Tan (5): arm: add msi.h to Kbuild pci:host: Add Altera PCIe host controller driver pci: altera: Add Altera PCIe MSI driver Documentation: dt-bindings: pci: altera pcie device tree binding MAINTAINERS: Add Altera PCIe and MSI drivers maintainer .../de

<    1   2   3   4   5   6   7   >