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 > ++ >  

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

2019-10-01 Thread Ley Foon Tan
rncpy() 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 +++--- >  1

[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:  

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 Foon Tan

[PATCH v2] PCI: altera: Fix configuration type based on secondary number

2019-06-12 Thread Ley Foon Tan
is 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 --- v2: - Add get_tlp_header() function. --- drivers/pci

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

2019-06-11 Thread Ley Foon Tan
On Thu, May 30, 2019 at 11:25 PM Lorenzo Pieralisi wrote: > > On Fri, May 24, 2019 at 02:07:25PM +0800, Ley Foon Tan wrote: > > This fix issue when access config from PCIe switch. > > > > Stratix 10 PCIe controller does not support Type 1 to Type 0 conversion > >

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

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

2019-05-24 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

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

2019-05-24 Thread Ley Foon Tan
is 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-24 Thread Ley Foon Tan
is 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

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] PCI: altera: Fix no return warning for altera_pcie_irq_teardown()

2019-05-23 Thread Ley Foon Tan
Signed-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-msi: Allow building as module

2019-05-15 Thread Ley Foon Tan
On Wed, May 15, 2019 at 9:59 PM Lorenzo Pieralisi wrote: > > On Tue, May 14, 2019 at 01:35:20PM +0800, Ley Foon Tan wrote: > > On Wed, Apr 24, 2019 at 12:57 PM Ley Foon Tan > > wrote: > > > > > > Altera MSI IP is a soft IP and is only available

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] 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

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

2019-04-23 Thread Ley Foon Tan
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 load MSI driver module. Signed-off-by: Ley Foon Tan --- drivers/pci/controller

[PATCH] PCI: altera: Allow building as module

2019-04-23 Thread Ley Foon Tan
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 kernel then only load PCIe driver module. Signed-off-by: Ley Foon Tan --- drivers/pci

[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:  

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 10/14] nios2: define syscall_get_arch()

2019-02-28 Thread Ley Foon Tan
er to extend the generic > ptrace API with PTRACE_GET_SYSCALL_INFO request. > > Acked-by: Paul Moore > Cc: Elvira Khabirova > Cc: Eugene Syromyatnikov > Cc: Ley Foon Tan > Cc: Oleg Nesterov > Cc: Andy Lutomirski > Cc: nios2-...@lists.rocketboards.org > Cc: linux-

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

2019-02-28 Thread Ley Foon Tan
On Thu, 2019-02-28 at 10:56 +, Lorenzo Pieralisi wrote: > On Thu, Feb 28, 2019 at 06:52:50PM +0800, Ley Foon Tan wrote: > > [...] > > > > > +static int s10_tlp_read_packet(struct altera_pcie *pcie, u32 > > *value) > > +{ > > + int i; > > +

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

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

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

2019-02-27 Thread Ley Foon Tan
Enable PCIE_ALTERA on ARM64 platform. Signed-off-by: Ley Foon Tan --- drivers/pci/controller/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig index 6671946dbf66..6012f3059acd 100644 --- a/drivers/pci

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

2019-02-27 Thread Ley Foon Tan
Foon Tan --- drivers/pci/controller/pcie-altera.c | 264 --- 1 file changed, 240 insertions(+), 24 deletions(-) diff --git a/drivers/pci/controller/pcie-altera.c b/drivers/pci/controller/pcie-altera.c index 7d05e51205b3..c57fd7f4e848 100644 --- a/drivers/pci/controller/pcie

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

2019-02-27 Thread Ley Foon Tan
2019/1/2/16 [v4]: https://lkml.org/lkml/2019/2/14/58 [v5]: https://lkml.org/lkml/2019/2/26/200 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

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

2019-02-27 Thread Ley Foon Tan
On Wed, 2019-02-27 at 17:38 +, Lorenzo Pieralisi wrote: > On Tue, Feb 26, 2019 at 05:15:46PM +0800, Ley Foon Tan wrote: > > > > Add PCIe Root Port support for Stratix 10 device. > > > > Main differences compare with PCIe Root Port IP on Cyclone V > > and

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

2019-02-26 Thread Ley Foon Tan
Enable PCIE_ALTERA on ARM64 platform. Signed-off-by: Ley Foon Tan --- drivers/pci/controller/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/Kconfig b/drivers/pci/controller/Kconfig index 6671946dbf66..6012f3059acd 100644 --- a/drivers/pci

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

2019-02-26 Thread Ley Foon Tan
me StratixXX to stratix10. History: [v1]: https://lkml.org/lkml/2018/12/26/68 [v2]: https://lkml.org/lkml/2018/12/31/46 [v3]: https://lkml.org/lkml/2019/1/2/16 [v4]: https://lkml.org/lkml/2019/2/14/58 Ley Foon Tan (3): PCI: altera: Add Stratix 10 PCIe support PCI: altera: Enable driver o

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

2019-02-26 Thread Ley Foon Tan
Foon Tan --- drivers/pci/controller/pcie-altera.c | 266 --- 1 file changed, 242 insertions(+), 24 deletions(-) diff --git a/drivers/pci/controller/pcie-altera.c b/drivers/pci/controller/pcie-altera.c index 7d05e51205b3..b3c05f2f309b 100644 --- a/drivers/pci/controller/pcie

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

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

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

2019-02-25 Thread Ley Foon Tan
On Mon, Feb 25, 2019 at 5:35 PM Ley Foon Tan wrote: > > 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. > > > >

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

[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 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 | 246

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 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. > >

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

2019-01-01 Thread Ley Foon Tan
embers to NULL/zero. - Rename *_funcs to *_data. - Update comment and fix coding style warning from checkpatch.pl. - Rename StratixXX to stratix10. History: [v1]: https://lkml.org/lkml/2018/12/26/68 [v2]: https://lkml.org/lkml/2018/12/31/46 Ley Foon Tan (2): PCI: altera: Add Stratix 10 PCIe s

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

2019-01-01 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/Kconfig |2

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

2019-01-01 Thread Ley Foon Tan
Add support for altr,pcie-root-port-2.0. Signed-off-by: Ley Foon Tan --- .../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/Documentation/devicetree/bindings/pci

Re: [PATCH v2 1/2] pci: altera: Add Stratix10 PCIe support

2019-01-01 Thread Ley Foon Tan
>   2a7275a3d867 PCI: altera: Fix TLP_CFG_DW0 for TLP write > > One of these is not like the others. Okay, will change it. > > On Mon, Dec 31, 2018 at 04:24:52PM +0800, Ley Foon Tan wrote: > ... > > > > +struct altera_pcie_data { > > + int (*tlp_read_pkt)(struc

Re: [PATCH v2 0/2] Add Stratix10 PCIe Root Port support

2019-01-01 Thread Ley Foon Tan
On Mon, 2018-12-31 at 10:15 -0600, Bjorn Helgaas wrote: > On Mon, Dec 31, 2018 at 04:24:51PM +0800, Ley Foon Tan wrote: > > > > Add PCIe Root Port support for Stratix10 device and also update > "Stratix10" is a big step better than "StratixXX" because a web &

[PATCH v2 1/2] pci: altera: Add Stratix10 PCIe support

2018-12-31 Thread Ley Foon Tan
Add PCIe Root Port support for Stratix10 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/Kconfig |2 +- drivers

[PATCH v2 0/2] Add Stratix10 PCIe Root Port support

2018-12-31 Thread Ley Foon Tan
rom checkpatch.pl. - Rename StratixXX to stratix10. History: [v1]: https://lkml.org/lkml/2018/12/26/68 Ley Foon Tan (2): pci: altera: Add Stratix10 PCIe support Documentation: dt-bindings: pci: altera: Add altr,pcie-root-port-2.0 .../devicetree/bindings/pci/altera-pcie.txt|

[PATCH v2 2/2] Documentation: dt-bindings: pci: altera: Add altr,pcie-root-port-2.0

2018-12-31 Thread Ley Foon Tan
Add support for altr,pcie-root-port-2.0. Signed-off-by: Ley Foon Tan --- .../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/Documentation/devicetree/bindings/pci

Re: [PATCH 1/2] pci: altera: Add StratixXX PCIe support

2018-12-30 Thread Ley Foon Tan
On Fri, 2018-12-28 at 21:12 -0600, Bjorn Helgaas wrote: > Run "git log --oneline drivers/pci/controller" and make your subject > line > match in style, phrasing, and capitalization. > > On Thu, Dec 27, 2018 at 01:09:45AM +0800, Ley Foon Tan wrote: > > > > Ad

[PATCH 1/2] pci: altera: Add StratixXX PCIe support

2018-12-26 Thread Ley Foon Tan
Add PCIe rootport support for StratixXX device. Main differences: - HIP interface - TLP programming flow Signed-off-by: Ley Foon Tan --- drivers/pci/controller/Kconfig |2 +- drivers/pci/controller/pcie-altera.c | 228 +++--- 2 files changed, 209

[PATCH 2/2] Documentation: dt-bindings: pci: altera: Add altr,pcie-root-port-2.0

2018-12-26 Thread Ley Foon Tan
Add support for altr,pcie-root-port-2.0. Signed-off-by: Ley Foon Tan --- .../devicetree/bindings/pci/altera-pcie.txt|4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) mode change 100644 => 100755 Documentation/devicetree/bindings/pci/altera-pcie.txt diff --

[PATCH 0/2] Add StratixXX PCIe Rootport support

2018-12-26 Thread Ley Foon Tan
Add PCIe rootport support for StratixXX device family and also update device tree binding documentation. Ley Foon Tan (2): pci: altera: Add StratixXX PCIe support Documentation: dt-bindings: pci: altera: Add altr,pcie-root-port-2.0 .../devicetree/bindings/pci/altera-pcie.txt|4

Re: [PATCH] nios2: remove redundant 'default n' from Kconfig-s

2018-11-09 Thread Ley Foon Tan
That might make it clearer to people that a bare 'default n' is >     redundant. > ... > > Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Ley Foon Tan > --- >  arch/nios2/Kconfig   |1 - >  arch/nios2/platform/Kc

Re: [PATCH] nios2: remove redundant 'default n' from Kconfig-s

2018-11-09 Thread Ley Foon Tan
That might make it clearer to people that a bare 'default n' is >     redundant. > ... > > Signed-off-by: Bartlomiej Zolnierkiewicz Acked-by: Ley Foon Tan > --- >  arch/nios2/Kconfig   |1 - >  arch/nios2/platform/Kc

Re: [PATCH] nios2: ksyms: Add missing symbol exports

2018-11-09 Thread Ley Foon Tan
ined! > > The problem is seen with gcc 7.3.0. > > Export the missing symbols. > > Fixes: 2fc8483fdcde ("nios2: Build infrastructure") > Signed-off-by: Guenter Roeck Acked-by: Ley Foon Tan > --- >  arch/nios2/kernel/nios2_ksyms.c | 12 >  1 file ch

Re: [PATCH] nios2: ksyms: Add missing symbol exports

2018-11-09 Thread Ley Foon Tan
ined! > > The problem is seen with gcc 7.3.0. > > Export the missing symbols. > > Fixes: 2fc8483fdcde ("nios2: Build infrastructure") > Signed-off-by: Guenter Roeck Acked-by: Ley Foon Tan > --- >  arch/nios2/kernel/nios2_ksyms.c | 12 >  1 file ch

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-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: Rob He

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: Rob He

[GIT PULL] arch/nios2 update for v4.19-rc2

2018-08-28 Thread Ley Foon Tan
Hi Linus There is one arch/nios2 update for v4.19-rc2. Please consider pulling. Regards Ley Foon The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3:   Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the git repository at:  

[GIT PULL] arch/nios2 update for v4.19-rc2

2018-08-28 Thread Ley Foon Tan
Hi Linus There is one arch/nios2 update for v4.19-rc2. Please consider pulling. Regards Ley Foon The following changes since commit 5b394b2ddf0347bef56e50c69a58773c94343ff3:   Linux 4.19-rc1 (2018-08-26 14:11:59 -0700) are available in the git repository at:  

Re: [PATCH] nios2: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Ley Foon Tan
On Mon, 2018-08-27 at 20:52 -0500, Rob Herring wrote: > In preparation to remove the node name pointer from struct > device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Ley Foon Tan > Cc: nios2-...@lists.rocketboards.org > Signed-off-by: Rob Herrin

Re: [PATCH] nios2: Convert to using %pOFn instead of device_node.name

2018-08-28 Thread Ley Foon Tan
On Mon, 2018-08-27 at 20:52 -0500, Rob Herring wrote: > In preparation to remove the node name pointer from struct > device_node, > convert printf users to use the %pOFn format specifier. > > Cc: Ley Foon Tan > Cc: nios2-...@lists.rocketboards.org > Signed-off-by: Rob Herrin

Re: [PATCH] nios2: kconfig: remove duplicate DEBUG_STACK_USAGE symbol defintions

2018-08-20 Thread Ley Foon Tan
On Tue, 2018-08-21 at 01:15 +0900, Masahiro Yamada wrote: > 2018-08-16 16:05 GMT+09:00 Tobias Klauser : > > > > DEBUG_STACK_USAGE is already defined in lib/Kconfig.debug > > > > Signed-off-by: Tobias Klauser > > Reviewed-by: Masahiro

Re: [PATCH] nios2: kconfig: remove duplicate DEBUG_STACK_USAGE symbol defintions

2018-08-20 Thread Ley Foon Tan
On Tue, 2018-08-21 at 01:15 +0900, Masahiro Yamada wrote: > 2018-08-16 16:05 GMT+09:00 Tobias Klauser : > > > > DEBUG_STACK_USAGE is already defined in lib/Kconfig.debug > > > > Signed-off-by: Tobias Klauser > > Reviewed-by: Masahiro

Re: [PATCH 2/3] nios2: use generic early_init_dt_add_memory_arch

2018-08-02 Thread Ley Foon Tan
>  #include >  #include >  #include > @@ -147,6 +148,7 @@ void __init setup_arch(char **cmdline_p) > > console_verbose(); > > +   memory_size = memblock_phys_mem_size(); > memory_start = PAGE_ALIGN((unsigned long)__pa(_end)); > memory_end = (unsigned long) CONFIG_NIOS2_MEM_BASE + > memory_size; > > -- Acked-by: Ley Foon Tan

Re: [PATCH 2/3] nios2: use generic early_init_dt_add_memory_arch

2018-08-02 Thread Ley Foon Tan
>  #include >  #include >  #include > @@ -147,6 +148,7 @@ void __init setup_arch(char **cmdline_p) > > console_verbose(); > > +   memory_size = memblock_phys_mem_size(); > memory_start = PAGE_ALIGN((unsigned long)__pa(_end)); > memory_end = (unsigned long) CONFIG_NIOS2_MEM_BASE + > memory_size; > > -- Acked-by: Ley Foon Tan

Re: [PATCH 3/3] nios2: switch to NO_BOOTMEM

2018-08-02 Thread Ley Foon Tan
 memblock_reserve(dram_start, memory_start - dram_start); >  #ifdef CONFIG_BLK_DEV_INITRD > if (initrd_start) { > -       reserve_bootmem(virt_to_phys((void *)initrd_start), > -   initrd_end - initrd_start, > BOOTMEM_DEFAULT); > +   memblock_reserve(virt_to_phys((void *)initrd_start), > +   initrd_end - initrd_start); > } >  #endif /* CONFIG_BLK_DEV_INITRD */ > > -- > 2.7.4 Acked-by: Ley Foon Tan

Re: [PATCH 3/3] nios2: switch to NO_BOOTMEM

2018-08-02 Thread Ley Foon Tan
 memblock_reserve(dram_start, memory_start - dram_start); >  #ifdef CONFIG_BLK_DEV_INITRD > if (initrd_start) { > -       reserve_bootmem(virt_to_phys((void *)initrd_start), > -   initrd_end - initrd_start, > BOOTMEM_DEFAULT); > +   memblock_reserve(virt_to_phys((void *)initrd_start), > +   initrd_end - initrd_start); > } >  #endif /* CONFIG_BLK_DEV_INITRD */ > > -- > 2.7.4 Acked-by: Ley Foon Tan

Re: [PATCH v4] MAINTAINERS: Add file patterns for nios2 device tree bindings

2018-06-24 Thread Ley Foon Tan
t;   - No changes. > > Impact on "scripts/get_maintainer.pl -f > Documentation/devicetree/bindings/nios2/": > > -Rob Herring (maintainer:OPEN FIRMWARE AND > FLATTENED DEVICE TREE > BINDINGS,commit_signer:2/2=100%,authored:1/2=50%) > +Ley Foon Tan (maintain

Re: [PATCH v4] MAINTAINERS: Add file patterns for nios2 device tree bindings

2018-06-24 Thread Ley Foon Tan
t;   - No changes. > > Impact on "scripts/get_maintainer.pl -f > Documentation/devicetree/bindings/nios2/": > > -Rob Herring (maintainer:OPEN FIRMWARE AND > FLATTENED DEVICE TREE > BINDINGS,commit_signer:2/2=100%,authored:1/2=50%) > +Ley Foon Tan (maintain

Re: [PATCH v2] PCI: controller: Move PCI_DOMAINS selection to arch Kconfig

2018-06-22 Thread Ley Foon Tan
it and move the > > > > PCI_DOMAINS selection from PCI controllers configuration file > > > > to ARM > > > > sub-arch config entries that currently require it, fixing the > > > > issue. > > > > > > > > Fixes: 51bc085d6454 ("PCI

Re: [PATCH v2] PCI: controller: Move PCI_DOMAINS selection to arch Kconfig

2018-06-22 Thread Ley Foon Tan
it and move the > > > > PCI_DOMAINS selection from PCI controllers configuration file > > > > to ARM > > > > sub-arch config entries that currently require it, fixing the > > > > issue. > > > > > > > > Fixes: 51bc085d6454 ("PCI

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

2018-04-11 Thread Ley Foon Tan
Hi Linus Here is nios2 update for v4.17-rc1. Please consider pulling. Regards Ley Foon The following changes since commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda:   Linux 4.16 (2018-04-01 14:20:27 -0700) are available in the git repository at:  

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

2018-04-11 Thread Ley Foon Tan
Hi Linus Here is nios2 update for v4.17-rc1. Please consider pulling. Regards Ley Foon The following changes since commit 0adb32858b0bddf4ada5f364a84ed60b196dbcda:   Linux 4.16 (2018-04-01 14:20:27 -0700) are available in the git repository at:  

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

2018-04-02 Thread Ley Foon Tan
gt; implementation) and x86_64 (which doesn't). > > Signed-off-by: Shea Levy <s...@shealevy.com> Acked-by: Ley Foon Tan <ley.foon@intel.com> > --- >  arch/nios2/mm/init.c | 7 --- >  1 file changed, 7 deletions(-) > > diff --git a/arch/nios2/mm/init.c b/arch

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

2018-04-02 Thread Ley Foon Tan
gt; implementation) 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..3df75ff8c768 1

Re: linux-next: Signed-off-by missing for commits in the nios2 tree

2018-02-11 Thread Ley Foon Tan
On Mon, 2018-02-12 at 13:14 +1100, Stephen Rothwell wrote: > Hi Ley, > > On Mon, 12 Feb 2018 09:23:49 +0800 Ley Foon Tan <ley.foon.tan@intel.c > om> wrote: > > > > > > On Mon, 2018-02-12 at 09:20 +1100, Stephen Rothwell wrote: > > > > > >

Re: linux-next: Signed-off-by missing for commits in the nios2 tree

2018-02-11 Thread Ley Foon Tan
On Mon, 2018-02-12 at 13:14 +1100, Stephen Rothwell wrote: > Hi Ley, > > On Mon, 12 Feb 2018 09:23:49 +0800 Ley Foon Tan om> wrote: > > > > > > On Mon, 2018-02-12 at 09:20 +1100, Stephen Rothwell wrote: > > > > > > > > > Commits &g

Re: linux-next: Signed-off-by missing for commits in the nios2 tree

2018-02-11 Thread Ley Foon Tan
On Mon, 2018-02-12 at 09:20 +1100, Stephen Rothwell wrote: > Hi Ley, > > Commits > >   5d13c7317998 ("nios2: dts: Remove leading 0x and 0s from bindings > notation") >   e0691ebb33c1 ("nios2: defconfig: Cleanup from old Kconfig options") > > are missing a Signed-off-by from their committer. >

Re: linux-next: Signed-off-by missing for commits in the nios2 tree

2018-02-11 Thread Ley Foon Tan
On Mon, 2018-02-12 at 09:20 +1100, Stephen Rothwell wrote: > Hi Ley, > > Commits > >   5d13c7317998 ("nios2: dts: Remove leading 0x and 0s from bindings > notation") >   e0691ebb33c1 ("nios2: defconfig: Cleanup from old Kconfig options") > > are missing a Signed-off-by from their committer. >

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

2018-02-11 Thread Ley Foon Tan
Hi Linus Here is nios2 update for v4.16-rc1. Please consider pulling. Regards Ley Foon The following changes since commit d8a5b80568a9cb66810e75b182018e9edb68e8ff:   Linux 4.15 (2018-01-28 13:20:33 -0800) are available in the git repository at:  

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

2018-02-11 Thread Ley Foon Tan
Hi Linus Here is nios2 update for v4.16-rc1. Please consider pulling. Regards Ley Foon The following changes since commit d8a5b80568a9cb66810e75b182018e9edb68e8ff:   Linux 4.15 (2018-01-28 13:20:33 -0800) are available in the git repository at:  

Re: [PATCH 10/11] nios2: kconfig: Remove blank help text

2018-02-01 Thread Ley Foon Tan
ttings for advanced configuration options are > used" > depends on !ADVANCED_OPTIONS > -- > 2.14.1 > Acked-by: Ley Foon Tan <ley.foon@intel.com>

Re: [PATCH 10/11] nios2: kconfig: Remove blank help text

2018-02-01 Thread Ley Foon Tan
ios2/Kconfig > +++ b/arch/nios2/Kconfig > @@ -152,7 +152,6 @@ menu "Advanced setup" > >  config ADVANCED_OPTIONS > bool "Prompt for advanced kernel configuration options" > -   help > >  comment "Default settings for advanced configuration options are > used" > depends on !ADVANCED_OPTIONS > -- > 2.14.1 > Acked-by: Ley Foon Tan

Re: [PATCH] PCI: altera: Fix bool initialization in tlp_read_packet

2018-01-21 Thread Ley Foon Tan
+   bool sop = false; > u32 ctrl; > u32 reg0, reg1; > u32 comp_status = 1; > -- > 2.7.4 Acked-by: Ley Foon Tan <ley.foon@intel.com>

Re: [PATCH] PCI: altera: Fix bool initialization in tlp_read_packet

2018-01-21 Thread Ley Foon Tan
se; > u32 ctrl; >         u32 reg0, reg1; > u32 comp_status = 1; > -- > 2.7.4 Acked-by: Ley Foon Tan

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

2017-09-15 Thread Ley Foon Tan
Hi Linus Here is nios2 update for v4.14-rc1. Please consider pulling. Regards Ley Foon The following changes since commit 569dbb88e80deb68974ef6fdd6a13edb9d686261:   Linux 4.13 (2017-09-03 13:56:17 -0700) are available in the git repository at:  

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

2017-09-15 Thread Ley Foon Tan
Hi Linus Here is nios2 update for v4.14-rc1. Please consider pulling. Regards Ley Foon The following changes since commit 569dbb88e80deb68974ef6fdd6a13edb9d686261:   Linux 4.13 (2017-09-03 13:56:17 -0700) are available in the git repository at:  

[GIT PULL] arch/nios2 update for v4.12

2017-05-11 Thread Ley Foon Tan
: implement flush_dcache_mmap_lock/unlock Ley Foon Tan (1):   nios2: use generic strncpy_from_user() and strnlen_user() Marek Vasut (3):   nios2: Add NIOS2_ARCH_REVISION to select between R1 and R2   nios2: Add BMX support   nios2: Add CDX support Tobias Klauser (5):   nios2: add

[GIT PULL] arch/nios2 update for v4.12

2017-05-11 Thread Ley Foon Tan
: implement flush_dcache_mmap_lock/unlock Ley Foon Tan (1):   nios2: use generic strncpy_from_user() and strnlen_user() Marek Vasut (3):   nios2: Add NIOS2_ARCH_REVISION to select between R1 and R2   nios2: Add BMX support   nios2: Add CDX support Tobias Klauser (5):   nios2: add

Re: [PATCH 1/1] nios2: implement flush_dcache_mmap_lock/unlock

2017-04-11 Thread Ley Foon Tan
   spin_lock_irq(&(mapping)->tree_lock) > +#define flush_dcache_mmap_unlock(mapping) \ > +   spin_unlock_irq(&(mapping)->tree_lock) > >  #endif /* _ASM_NIOS2_CACHEFLUSH_H */ > -- > 2.11.0 > Acked-by: Ley Foon Tan <ley.foon@intel.com> Regards Ley Foon

Re: [PATCH 1/1] nios2: implement flush_dcache_mmap_lock/unlock

2017-04-11 Thread Ley Foon Tan
lock) > +#define flush_dcache_mmap_unlock(mapping) \ > +   spin_unlock_irq(&(mapping)->tree_lock) > >  #endif /* _ASM_NIOS2_CACHEFLUSH_H */ > -- > 2.11.0 > Acked-by: Ley Foon Tan Regards Ley Foon

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

2017-04-04 Thread Ley Foon Tan
Hi Linus There is one arch/nios2 fix for v4.11. Please consider pulling. Regards Ley Foon The following changes since commit a71c9a1c779f2499fb2afc0553e543f18aff6edf:   Linux 4.11-rc5 (2017-04-02 17:23:54 -0700) are available in the git repository at:  

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

2017-04-04 Thread Ley Foon Tan
Hi Linus There is one arch/nios2 fix for v4.11. Please consider pulling. Regards Ley Foon The following changes since commit a71c9a1c779f2499fb2afc0553e543f18aff6edf:   Linux 4.11-rc5 (2017-04-02 17:23:54 -0700) are available in the git repository at:  

Re: [PATCH] nios2: reserve boot memory for device tree

2017-04-02 Thread Ley Foon Tan
; Reported-by: Guenter Roeck <li...@roeck-us.net> > Reference: http://lkml.kernel.org/r/20170226210338.GA19476@roeck-us.n > et > Tested-by: Guenter Roeck <li...@roeck-us.net> > Signed-off-by: Tobias Klauser <tklau...@distanz.ch> Acked-by: Ley Foon Tan <ley.foon@i

Re: [PATCH] nios2: reserve boot memory for device tree

2017-04-02 Thread Ley Foon Tan
gt; Reported-by: Guenter Roeck > Reference: http://lkml.kernel.org/r/20170226210338.GA19476@roeck-us.n > et > Tested-by: Guenter Roeck > Signed-off-by: Tobias Klauser Acked-by: Ley Foon Tan Thanks for the fix. Will add this for 4.11. Regards Ley Foon > --- >  arch/nios2/ker

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 <ley.foon@intel.com> 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.

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

[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 <ley.foon@intel.com> Cc: sta...@vger.kernel.org --- drivers/pc

  1   2   3   4   5   6   7   8   9   10   >