<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: imx6 IPU2 registers inaccessible</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275815#M30673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;I've the same issue as you. Can i ask how you have solved it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Nov 2013 10:48:04 GMT</pubDate>
    <dc:creator>christophe</dc:creator>
    <dc:date>2013-11-12T10:48:04Z</dc:date>
    <item>
      <title>imx6 IPU2 registers inaccessible</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275812#M30670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having major issues accessing IPU2 registers from user-space, and I don't really know why - hopefully someone could help.&lt;/P&gt;&lt;P&gt;I am using mmap() - something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define IPU1_REG_BASE 0x2600000&lt;/P&gt;&lt;P&gt;#define IPU2_REG_BASE 0x2A00000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define IPU_MAP_SIZE 0x68020&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define IPU_CONF_OFFSET 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_fdmem = open( memDevice, O_RDWR | O_SYNC );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map_ipu1 = (int *)(mmap(0, IPU_MAP_SIZE, PROT_READ|PROT_WRITE, MAP_SHARED, _fdmem, IPU1_REG_BASE));&lt;/P&gt;&lt;P&gt;map_ipu2 = (int *)(mmap(0, IPU_MAP_SIZE, PROT_READ|PROT_WRITE, MAP_SHARED, _fdmem, IPU2_REG_BASE));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int ipu_conf1 = *(map_ipu1+IPU_CONF_OFFSET/4)&lt;/P&gt;&lt;P&gt;int ipu_conf2 = *(map_ipu2+IPU_CONF_OFFSET/4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I comment out the last line (ipu_conf2), everything works (IPU1 registers are being read normally always), but if I use *(map_ipu2) anywhere, the application locks-up and I have to reboot. Also funny is output of "cat /proc/iomem ":&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;02400000-027fffff : imx-ipuv3.0&lt;BR /&gt;02800000-02bfffff : imx-ipuv3.1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if this is correct? I have also tried with these addresses and it still locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone knows? Or has similar issues? I have silicon rev1.0 and using kernel 3.0.35-4.0.0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 14:35:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275812#M30670</guid>
      <dc:creator>ivankozic</dc:creator>
      <dc:date>2013-10-11T14:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 IPU2 registers inaccessible</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275813#M30671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can use&lt;STRONG&gt; devregs tool &lt;/STRONG&gt;to read the register contains.&lt;/P&gt;&lt;P&gt;you can download it from here.&lt;/P&gt;&lt;P&gt;&lt;A href="http://boundarydevices.com/devregs.zip" rel="nofollow" style="font-size: 16px; background-color: #edf1f4; color: #293f4c; text-decoration: underline; font-family: Georgia, 'Times New Roman', Times, serif;"&gt;http://boundarydevices.com/devregs.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just unzip it &amp;amp; put it at particular location.&lt;/P&gt;&lt;P&gt;suppose you want to use register IPU1_DI0_GENERAL.&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;devregs&amp;nbsp; ipu_di0_general&lt;/P&gt;&lt;P&gt;IPU_DI0_GENERAL:0x2640000&amp;nbsp; = 0x0300004&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can read more about devregs in &lt;A href="http://boundarydevices.com/i-mx5x-device-register-access/" rel="nofollow" style="font-size: 16px; background-color: #edf1f4; color: #293f4c; text-decoration: underline; font-family: Georgia, 'Times New Roman', Times, serif;"&gt;http://boundarydevices.com/i-mx5x-device-register-access/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;you can get sources from &lt;A href="https://github.com/boundarydevices/imx-utils" rel="nofollow" style="font-size: 16px; background-color: #edf1f4; color: #293f4c; text-decoration: underline; font-family: Georgia, 'Times New Roman', Times, serif;" title="https://github.com/boundarydevices/imx-utils"&gt;boundarydevices/imx-utils · GitHub&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;raybiztech.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 16:43:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275813#M30671</guid>
      <dc:creator>Raybiztech</dc:creator>
      <dc:date>2013-10-11T16:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 IPU2 registers inaccessible</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275814#M30672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi raybiztech,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, this is a nice thing for debug, but it doesn't really solve my problem - as I see from the information page it also uses mmap, while I have issues actually accessing IPU2.&lt;/P&gt;&lt;P&gt;To demonstrate - if I type in (for IPU1, IPU_CONF):&lt;/P&gt;&lt;P&gt;./devregs 0x2600000&lt;/P&gt;&lt;P&gt;output is:&lt;/P&gt;&lt;P&gt;:0x02600000&amp;nbsp;&amp;nbsp;&amp;nbsp; =0x000006a0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, typing in:&lt;/P&gt;&lt;P&gt;./devregs 0x2A00000&lt;/P&gt;&lt;P&gt;the systems locks up and you can even stop it anymore (just like in my app). Without an output of course...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something is really wrong here...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 14:43:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275814#M30672</guid>
      <dc:creator>ivankozic</dc:creator>
      <dc:date>2013-10-14T14:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 IPU2 registers inaccessible</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275815#M30673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;I've the same issue as you. Can i ask how you have solved it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 10:48:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275815#M30673</guid>
      <dc:creator>christophe</dc:creator>
      <dc:date>2013-11-12T10:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 IPU2 registers inaccessible</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275816#M30674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christophe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It turned out that IPU2 was not even enabled - I didn't know this, but it seems that on my system, only IPU which has active display connected to it will always be on. If it's not used, its clock_en is off when booted. So I think there is an issue with how actually IPU gets turned on when you start CSI capture and it was off before it (due to no displays being connected to it). I guess it makes sense, but I don't like it.&lt;/P&gt;&lt;P&gt;Either way, before trying to read IPUx regs, first find and check its CLOCK_EN - it's somewhere in CCM registers, easy to find.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2013 22:00:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275816#M30674</guid>
      <dc:creator>ivankozic</dc:creator>
      <dc:date>2013-11-12T22:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 IPU2 registers inaccessible</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275817#M30675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for these infos Ivan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 07:33:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275817#M30675</guid>
      <dc:creator>christophe</dc:creator>
      <dc:date>2013-11-13T07:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 IPU2 registers inaccessible</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275818#M30676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;P&gt;Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help please feel free to contact Freescale.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 07:07:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275818#M30676</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-02-19T07:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 IPU2 registers inaccessible</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275819#M30677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ivan&lt;/P&gt;&lt;P&gt;This discussion is closed since no activity. If you still need help, please feel free to reply with an update to this discussion, or create another discussion.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 03:28:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275819#M30677</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-02-27T03:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 IPU2 registers inaccessible</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275820#M30678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a problem running 'devregs' tool on my custom board based on iMX6D. The /proc/cpuinfo on my board shows the value of "Revision" is '0000'. The devregs is not able to identify the CPU, I would like to know where should the value of Revision be initialized i.e. uboot or DTB or some other place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 17:43:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275820#M30678</guid>
      <dc:creator>zaheerm</dc:creator>
      <dc:date>2014-04-17T17:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 IPU2 registers inaccessible</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275821#M30679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;devregs tool doesn't work for me.&amp;nbsp; Downloaded, unzipped &amp;amp; copied to my SD card.&amp;nbsp; Inserted into imx6q SOM:&lt;/P&gt;&lt;P&gt;-sh: ./devregs: No such file or directory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 09:56:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-IPU2-registers-inaccessible/m-p/275821#M30679</guid>
      <dc:creator>richardwoodham</dc:creator>
      <dc:date>2017-10-05T09:56:29Z</dc:date>
    </item>
  </channel>
</rss>

