Skip to contentSkip to conversation

hal/arm: Add Zynq v3.14.17 patches

PATCH Superseded Stefan Roese 2 participants 3 messages Jan 21, 2015 – Jan 22, 2015 Arm/Zynq architecture

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hal/arm: Add Zynq v3.14.17 patches

Xilinx Zynq is already supported in the mainline Xenomai git repository. This patch adds support for the v3.14.17 Linux Kernel with the latest arm-6 i-pipe patch additionally to the already present v3.5 and v3.8 support.

---
Please note that the arm-6 patch that is referenced in the README is currently not available in the Xenomai git repository. But Gilles will release it before this Zynq patch is intergrated. You can test this Zynq support with the current arm-4 patch as well.

Thanks,
Stefan

 ksrc/arch/arm/patches/README                       |   9 +
 .../zynq/ipipe-core-3.14.17-zynq-post.patch        |  21 ++
 .../patches/zynq/ipipe-core-3.14.17-zynq-pre.patch | 236 +++++++++++++++++++++
 3 files changed, 266 insertions(+)
 create mode 100644 ksrc/arch/arm/patches/zynq/ipipe-core-3.14.17-zynq-post.patch
 create mode 100644 ksrc/arch/arm/patches/zynq/ipipe-core-3.14.17-zynq-pre.patch
ksrc/arch/arm/patches/README +9 -0
index 8b4f744..6f21c98 100644
@@ -95,6 +95,15 @@ From [5]:
 4- apply ipipe-core-3.5.7-zynq-post.patch
 5- you can resume to generic installation instructions.
 
+---- Zynq (v3.14.17)
+
+1- Checkout the "xilinx-zynq-v3.14.17" branch from the DENX Linux git
+   repository [2]
+2- apply zynq/ipipe-core-3.14.17-zynq-pre.patch
+3- apply ipipe-core-3.14.17-arm-6.patch
+4- apply zynq/ipipe-core-3.14.17-zynq-post.patch
+5- you can resume to generic installation instructions.
+
 -- External links
 
 [1] http://opensource.freescale.com/pub/scm/imx/linux-2.6-imx.git
ksrc/arch/arm/patches/zynq/ipipe-core-3.14.17-zynq-post.patch new file +21 -0
new file mode 100644
index 0000000..3c87d80
@@ -0,0 +1,21 @@
+diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c
+index 1f5fdfc..c4e682a 100644
+--- a/drivers/gpio/gpio-zynq.c
++++ b/drivers/gpio/gpio-zynq.c
+@@ -14,6 +14,7 @@
+ #include <linux/init.h>
+ #include <linux/interrupt.h>
+ #include <linux/io.h>
++#include <linux/ipipe.h>
+ #include <linux/irq.h>
+ #include <linux/irqchip/chained_irq.h>
+ #include <linux/irqdomain.h>
+@@ -446,7 +447,7 @@ static void zynq_gpio_irqhandler(unsigned int irq, struct irq_desc *desc)
+ 			chip->irq_ack(&gpio_irq_desc->irq_data);
+ 
+ 			/* call the pin specific handler */
+-			generic_handle_irq(gpio_irq);
++			ipipe_handle_demuxed_irq(gpio_irq);
+ 		}
+ 		/* shift to first virtual irq of next bank */
+ 		gpio_irq = gpio->irq_base + zynq_gpio_pin_table[bank_num] + 1;
ksrc/arch/arm/patches/zynq/ipipe-core-3.14.17-zynq-pre.patch new file +236 -0

236 lines not on this page · raw message

Signature · 1 line
2.2.2
#1 lore raw
Quoted 4 lines · Stefan Roese

Xilinx Zynq is already supported in the mainline Xenomai git repository. This patch adds support for the v3.14.17 Linux Kernel with the latest arm-6 i-pipe patch additionally to the already present v3.5 and v3.8 support.

It would be nice if Zynq support could be integrated into the mainline I-pipe git, is Zynq support still experimental, do people still need to use a fork ?

Quoted 4 lines

---
Please note that the arm-6 patch that is referenced in the README

One (the only?) interest of -pre and -post patches is to be able to update the I-pipe patch without updating the pre and post patches. So, I believe the README should not mention a particular version of the I-pipe patch. I would rather say: apply ipipe-core-3.1.4.17-arm-*.patch
Maybe you could say that it has been tested with that version, so that people realize that it may be broken if they use a later I-pipe release, but not mention this particular version in the README.

Otherwise, looking at the patches themselves: the pre patch reverts smp.c and git.c to the mainline version, and the post patch does not update them. It means you revert the changes made to these files by the fork you use. Is it OK for you ?

Signature · 1 line
					    Gilles.
#2 lore raw
Quoted 9 lines · Gilles Chanteperdrix
Quoted 4 lines · Stefan Roese

Xilinx Zynq is already supported in the mainline Xenomai git repository. This patch adds support for the v3.14.17 Linux Kernel with the latest arm-6 i-pipe patch additionally to the already present v3.5 and v3.8 support.

It would be nice if Zynq support could be integrated into the mainline I-pipe git, is Zynq support still experimental, do people still need to use a fork ?

At least for v3.14 it might make sense. The Xilinx git repository has quite a lot of patches on top of the kernel.org releases (e.g. v3.14). For even newer kernel versions this is most likely not necessary.

Quoted 9 lines
Quoted 3 lines

---
Please note that the arm-6 patch that is referenced in the README

One (the only?) interest of -pre and -post patches is to be able to update the I-pipe patch without updating the pre and post patches. So, I believe the README should not mention a particular version of the I-pipe patch. I would rather say: apply ipipe-core-3.1.4.17-arm-*.patch

I was just trying to make things clear here. And also following the other examples in the README. I can surely send a v2 patch with your recommendation to use the ipipe-core-3.1.4.17-arm-*.patch.

Quoted 3 lines

Maybe you could say that it has been tested with that version, so that people realize that it may be broken if they use a later I-pipe release, but not mention this particular version in the README.

Okay. I'll send a v2 later today.

Quoted 4 lines

Otherwise, looking at the patches themselves: the pre patch reverts smp.c and git.c to the mainline version, and the post patch does not update them. It means you revert the changes made to these files by the fork you use. Is it OK for you ?

Yes. This is similar to the v3.8 pre and post patches.

Thanks,
Stefan