Content-Type: text/plain; charset="utf-8" In-Reply-To: From: =?utf-8?q?Fran=C3=A7ois_Legal?= Date: Wed, 04 Mar 2020 15:40:08 +0100 MIME-Version: 1.0 Message-ID: <7232-5e5fbe00-7-2896e5c0@29286471> Subject: =?utf-8?q?Re=3A?= GPIO interrupt not working on Zynq7000 Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Gallagher Cc: xenomai@xenomai.org Le Mercredi, Mars 04, 2020 14:57 CET, Greg Gallagher a =C3=A9crit: > Hi, > > On Wed, Mar 4, 2020 at 4:01 AM Fran=C3=A7ois Legal via Xenomai < > xenomai@xenomai.org> wrote: > > > Hello, > > > > trying to diagnose an interrupt problem on a Zynq 7000 hardware. Th= e > > environment is linux 4.4.189, xenomai 3.0.9. > > > > I'm trying to trig some realtime thread pending on a gpio read. > > > > At the beginning, the system would freeze if the GPIO pin was toggl= ed, > > because the GPIO int pending status was never cleared by the existi= ng code. > > how do you clear it? Do you call one of the irqchip functions? > > > > > So now I don't get the system freeze anymore, however, the RTDM gpi= o irq > > handler never gets called whenever the interrupt is raised. > > > It=E2=80=99s possible what you called to clear the irq has also maske= d the > interrupt and requires a unmask. Can you post a patch of what you did= ? > > > > I'm not sure how to diagnose that. For what I could see, the IRQ is= > > registered in ipipe domain "xnsched=5Frealtime=5Fdomain", and I'm n= ot sure if > > that matches "ipipe=5Fhead=5Fdomain" that is > > > Are you using the rtdm gpio driver? Or is this a custom rtdm driver u= sing > the gpio directly? > I also forgot to mention here, whenever the program is being run, I can= see my gpio pin (gpio957) in /proc/xenomai/irq, but not in /proc/inter= rupts. However, the irq count does not increment in /proc/xenomai/irq > > > > > Any help appreciated > > > > Fran=C3=A7ois > > > > Greg > > > > > > >