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
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
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
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
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
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
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
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
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
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 --
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
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
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
"vector_slave");
> > + if (!res) {
> > + dev_err(&pdev->dev,
> > + "no vector_slave memory resource defined\n");
> > + return -ENODEV;
> > + }
> > +
> >
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.
>
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 ++
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 +
>>
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
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
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
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
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"
>> +
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;
>>
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
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
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
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
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 --
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
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
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
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
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
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
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
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
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 --
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
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
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
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
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
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
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 --
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 |
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
>> ---
>>
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
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
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
&
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
.
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
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.
-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
.
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
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
.
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
-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
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.
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
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
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
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
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:
>>&
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
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
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-
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
>> +{
>>
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
401 - 500 of 632 matches
Mail list logo