From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomi Valkeinen Subject: Re: omap4: how to get the HDMI core IRQ? Date: Wed, 30 Mar 2016 13:37:45 +0300 Message-ID: <56FBAC79.6060405@ti.com> References: <56F45A30.4070701@xs4all.nl> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1083542056==" Return-path: Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 88CF06E78D for ; Wed, 30 Mar 2016 10:37:50 +0000 (UTC) In-Reply-To: <56F45A30.4070701@xs4all.nl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Hans Verkuil Cc: Maling list - DRI developers List-Id: dri-devel@lists.freedesktop.org --===============1083542056== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="j2pkDI0RIGJpa2cwkKnwDVhCPPOS1024b" --j2pkDI0RIGJpa2cwkKnwDVhCPPOS1024b Content-Type: multipart/mixed; boundary="pD25TrmgPHfCXBEUBRAKOThCixTbOhvvS" From: Tomi Valkeinen To: Hans Verkuil Cc: Maling list - DRI developers Message-ID: <56FBAC79.6060405@ti.com> Subject: Re: omap4: how to get the HDMI core IRQ? References: <56F45A30.4070701@xs4all.nl> In-Reply-To: <56F45A30.4070701@xs4all.nl> --pD25TrmgPHfCXBEUBRAKOThCixTbOhvvS Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Hans, On 24/03/16 23:20, Hans Verkuil wrote: > Hi Tomi, >=20 > I hope you (or someone else on this list) can help me find the problem = in this code. >=20 > I am working on a kernel framework for HDMI CEC (see https://lwn.net/Ar= ticles/680942/). > In order to get as much experience with different devices as possible I= am trying to > implement it on my omap4430 Pandaboard. The big problem I am facing is = that the CEC > interrupts come in through the HDMI_IRQ_CORE interrupt, and that just r= efuses to > trigger. >=20 > The code below adds support for this core interrupt and it is supposed = to trigger it > using the Software Induced interrupt to keep the code as simple as poss= ible. So this irq is just for testing? > On boot I get this debug line from the pr_info in my code: >=20 > irqstat 02000000 wp_irq 06000001 raw 20010000 intr_state 00000001 intr1= 00000080 unmask1 00000080 intr_ctrl 0000000a >=20 > As far as I can see everything looks perfectly fine, except for the fac= t that bit 0 > of the irqstat is stubbornly 0. >=20 > This is using kernel 4.5 with only this patch applied. >=20 > What am I missing? Set SYS_CTRL1:PD to 1 (I presume you have the NDA HDMI TRM?). Apparently we set it always to 0 in hdmi4_core.c:hdmi_core_powerdown_disable(), but never enable it. I guess it only affects core irqs, so there have been no side effects. But it would make sense to either have a matching call in the enable path, or then just set it to 0 when initializing the IP. >=20 > The reward for the right answer will be HDMI CEC support for omap4 (and= any other TI device > with the same CEC IP). Ok. When is it ready? ;) Tomi --pD25TrmgPHfCXBEUBRAKOThCixTbOhvvS-- --j2pkDI0RIGJpa2cwkKnwDVhCPPOS1024b Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJW+6x5AAoJEPo9qoy8lh71LuMP/2TyScHoMvdiaOEeWyQnwKyl 9za36dFRQFfn3W0UjdaRMCmY6cRDsbUf7uDLmkXumok+H3g7FieDUbCGUFtaBl52 npgl65xv081k6dVnAOrMLG1PbkNbmE9Z5KtT5W1naTO64BkWzlNOiUAtVrTb/+Pt qUyegCH6xVIgnrhohU9QcbHGQ+HzYqhq4Dzk5SnlYYdee0LyHnEaeP36p8AsII/y bVqbgxI3S9spCY/depkFiQ7IGUUuD3CTkomlMXb5xF0k7OcT2sBkitg3jkO443x2 QX7//iV5tud2pprB+HZInKIAz/X6LwFDtJDk4ima6brUKD4YYUgztlksWpaQQsyW ev5twC83kpEFrZicV9zbc/48tcVvAmCzB3BiJ+TT28kFu5+36zfNrph9EiciyKXD f9zFEsf6VnEXJXL/45r7tBPFUXYigzNu6JKx+0Cgq66MGxx7l9otrtJxy1QzEgn4 87nxaRO8JF7Ijm5XfWdP/h4Dqu7O19cXyeev/hQm6a+sE6UJTCZ9RKIfNPmSWz4/ rNeRVbw0I3bDakvvUOBGORzMuo6AZTIMlStj29EBvX3wsita6OGhw7unjScbn+Ru gW9nK4fC29657tUPsWatWUWbfKpr1gCL3nA3MpdzMTTzqacgUqWDIa3+D/eRWDZP tHTaUBIUsFx0MJ2NbSOD =YTlG -----END PGP SIGNATURE----- --j2pkDI0RIGJpa2cwkKnwDVhCPPOS1024b-- --===============1083542056== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1083542056==--