Content-Type: text/plain; charset="utf-8" In-Reply-To: <9f7ba85f-501d-d8aa-9c2b-7346b975abc6@siemens.com> From: =?utf-8?q?Fran=C3=A7ois_Legal?= Date: Wed, 04 Mar 2020 18:04:29 +0100 MIME-Version: 1.0 Message-ID: <7231-5e5fdf80-11-3b6a0580@56070941> 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: Jan Kiszka Cc: Greg Gallagher , =?utf-8?q?Xenomai=40xenomai=2Eorg?= Le Mercredi, Mars 04, 2020 17:48 CET, Jan Kiszka a =C3=A9crit: > On 04.03.20 17:28, Fran=C3=A7ois Legal wrote: > > Le Mercredi, Mars 04, 2020 17:12 CET, Greg Gallagher a =C3=A9crit: > > > >> On Wed, Mar 4, 2020 at 11:08 AM Jan Kiszka wrote: > >>> > >>> On 04.03.20 17:00, Fran=C3=A7ois Legal via Xenomai wrote: > >>>> Le Mercredi, Mars 04, 2020 16:48 CET, Greg Gallagher a =C3=A9crit: > >>>> > >>>>> hi, > >>>>> > >>>>> On Wed, Mar 4, 2020 at 9:40 AM Fran=C3=A7ois Legal wrote: > >>>>>> > >>>>>> 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 Xenoma= i < > >>>>>>> xenomai@xenomai.org> wrote: > >>>>>>> > >>>>>>>> Hello, > >>>>>>>> > >>>>>>>> trying to diagnose an interrupt problem on a Zynq 7000 hardw= are. The > >>>>>>>> environment is linux 4.4.189, xenomai 3.0.9. > >>>>> > >>>>> Are you building directly from the ipipe repo or applying one o= f the > >>>>> patches? If it's a patch what patch are you applying? > >>>> > >>>> I'm applying ipipe-core-4.4.176-arm-10.patch with slight modific= ations (KUSER=5FTSC is not enabled for Zynq 7000 in that patch) > >>>> > >>> > >>> You know that you can find a newer version in > >>> https://gitlab.denx.de/Xenomai/ipipe/tree/ipipe-4.4.y-cip? I'm ju= st not > >>> releasing it as I'm lacking test feedback on the updates. It is n= ot > >>> supposed to resolve the GPIO issue, though. > >>> > >>> Jan > >>> > >>> -- > >>> Siemens AG, Corporate Technology, CT RDA IOT SES-DE > >>> Corporate Competence Center Embedded Linux > >> > >> I'll have to look at this a little more closely, I don't think you= > >> need to clear the pending status unless something changed upstream= on > >> us. The chained handler should be calling a mask and ack to hold = the > >> line and then unmask once the handler is called. In userspace yo= u're > >> just calling select on the gpio path? I can test this with just t= he > >> ipipe first and see if we can isolate the issue to either the ipip= e or > >> Xenomai. It may take me a couple of days to get setup with my Zyn= q > >> board again, can you try the 4.4.y branch Jan mentioned, I'll use = that > >> as a starting point when I start debugging. > >> > >> Thanks > >> > >> Greg > > > > Your comment on using the ipipe repo made me go there and have a lo= ok. It seems I found the answer. > > In the zynq=5Fgpio=5Fhandle=5Fbank=5Firq, the ipipe repo uses "ipip= e=5Fhandle=5Fdemuxed=5Firq" whereas mine used "generic=5Fhandle=5Firq" > > > > It seems that my problem is solved now. > > > > So I think I saw the announcement for ipipe-core-4.4.196-cip38-x86-= 19.patch, but nothing for arm. > > That's what I meant with "I'm just not releasing it as I'm lacking te= st > feedback on the updates". Only since rather recently, we have here a = > BeagleBone Black as part of our lab on 4.4-cip head as well, but that= 's > just one target. > > Jan > > -- > Siemens AG, Corporate Technology, CT RDA IOT SES-DE > Corporate Competence Center Embedded Linux Ah alright. My bad. So to terminate on that ipipe topic, I checked the legacy ipipe 4.4.y /= 4.4.y-cip branches, and none fo them seem to handle the zynq-gpio corr= ectly. It looks like this has been fixed in 4.9.y branch. Shall I submit a patch on this ? Fran=C3=A7ois