<?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>topic imx6 kernel crash when access usb register in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6-kernel-crash-when-access-usb-register/m-p/707054#M109873</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;there is a strange issue about my imx6 platform. the kernel version is 3.10.7. we use one usb otg port and one usb host port, and the OTG&amp;nbsp;VBUS is external 5V. I just want to know, which conditions will cause the kernel can't access the USB register, I mean, if we want to access these register by some system functions like ioremap/mmap, and when we read/write the pointer of these functions returns, the kernel will crash, and no more message print. it just like the CPU strike suddenly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2017 07:14:40 GMT</pubDate>
    <dc:creator>mostion</dc:creator>
    <dc:date>2017-09-19T07:14:40Z</dc:date>
    <item>
      <title>imx6 kernel crash when access usb register</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-kernel-crash-when-access-usb-register/m-p/707054#M109873</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;there is a strange issue about my imx6 platform. the kernel version is 3.10.7. we use one usb otg port and one usb host port, and the OTG&amp;nbsp;VBUS is external 5V. I just want to know, which conditions will cause the kernel can't access the USB register, I mean, if we want to access these register by some system functions like ioremap/mmap, and when we read/write the pointer of these functions returns, the kernel will crash, and no more message print. it just like the CPU strike suddenly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 07:14:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-kernel-crash-when-access-usb-register/m-p/707054#M109873</guid>
      <dc:creator>mostion</dc:creator>
      <dc:date>2017-09-19T07:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 kernel crash when access usb register</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-kernel-crash-when-access-usb-register/m-p/707055#M109874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mostion&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check that usb clocks are enabled in CCM_CCGRx registers,&lt;/P&gt;&lt;P&gt;for example in i.MX6Q (address may be different on other i.MX6 processors)&lt;/P&gt;&lt;P&gt;this is CCM_CCGR6, described in sect.18.6.29 CCM Clock Gating Register&lt;/P&gt;&lt;P&gt;6 (CCM_CCGR6) i.MX6DQ Reference Manual&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/docs/en/reference-manual/IMX6DQRM.pdf"&gt;http://www.nxp.com/docs/en/reference-manual/IMX6DQRM.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In linux usb is configured with settings described in sect.39.3.3 Menu Configuration Options&lt;/P&gt;&lt;P&gt;attached Linux Manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 11:09:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-kernel-crash-when-access-usb-register/m-p/707055#M109874</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-09-19T11:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 kernel crash when access usb register</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-kernel-crash-when-access-usb-register/m-p/707056#M109875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi igor,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thanks for your suggestion. As you said, the cause is clock of usb disabled. BTW, can you tell me why it happened even though the driver is initialized. in my impression, the clock will open when system initializes, and close if system releases this driver. It would be a issue for your Linux BSP if this happened, because I used original kernel test it before, it same as our new kernel. Thanks very much and looking forward to&amp;nbsp;your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Mostion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 02:20:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-kernel-crash-when-access-usb-register/m-p/707056#M109875</guid>
      <dc:creator>mostion</dc:creator>
      <dc:date>2017-09-20T02:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 kernel crash when access usb register</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-kernel-crash-when-access-usb-register/m-p/707057#M109876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi igor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;I found it. It is disabled when USB controller suspend and enable again when resume, and all the USB controller use same clock. So, it all USB controller is suspend, the USB clock will disable thorough. It is a protection operation in kernel, but in our platform, we need to access USB register in application level all the time, so i annotate the code of USB clock operations in suspend and resume function, it seemed everything is ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Thank you again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Mostion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Sep 2017 05:55:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-kernel-crash-when-access-usb-register/m-p/707057#M109876</guid>
      <dc:creator>mostion</dc:creator>
      <dc:date>2017-09-20T05:55:38Z</dc:date>
    </item>
  </channel>
</rss>

