<?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>LayerscapeのトピックRe: LS1043A PCIe Driver: kobject: '(null)' (ffff8000344a7cf8): is not initialized, ...</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1043A-PCIe-Driver-kobject-null-ffff8000344a7cf8-is-not/m-p/801649#M3564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Experts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved this problem. It is caused by my driver, and I rewrite my driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all the same!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Nov 2018 01:45:06 GMT</pubDate>
    <dc:creator>tapyang</dc:creator>
    <dc:date>2018-11-07T01:45:06Z</dc:date>
    <item>
      <title>LS1043A PCIe Driver: kobject: '(null)' (ffff8000344a7cf8): is not initialized, ...</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043A-PCIe-Driver-kobject-null-ffff8000344a7cf8-is-not/m-p/801648#M3563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Experts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am developping my custom LS1043A board, and LS1043A is connected with a FPGA(V7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When debugging the driver of PCIe, I encountered a problem, the log is as followed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)&lt;BR /&gt;INIT: Entering runlevel: 5&lt;BR /&gt;Configuring network interfaces... done.&lt;BR /&gt;Starting OpenBSD Secure Shell server: sshd&lt;BR /&gt; generating ssh RSA key...&lt;BR /&gt; generating ssh ECDSA key...&lt;BR /&gt; generating ssh DSA key...&lt;BR /&gt; generating ssh ED25519 key...&lt;BR /&gt;done.&lt;BR /&gt;hwclock: can't open '/dev/misc/rtc': No such file or directory&lt;BR /&gt;Starting syslogd/klogd: done&lt;BR /&gt;install modules...&lt;BR /&gt;[ 7.411439] v7_init init&lt;BR /&gt;[ 7.414028] v7_probe Enter&lt;BR /&gt;[ 7.416781] dev-&amp;gt;irq 0&lt;BR /&gt;[ 7.419140] pci_msix_vec_count ret 1&lt;BR /&gt;[ 7.422851] pci_enable_msi_range 1 ok&lt;BR /&gt;[ 7.426521] dev-&amp;gt;irq 73&lt;BR /&gt;[ 7.428975] legacy 0 msi_en 1&lt;BR /&gt;[ 7.431987] BAR(0) (0x5040000000, 0x504007ffff, 0x40200, 0x80000, 0xffff00000b480000)&lt;BR /&gt;[ 7.439852] VENDORID=0x702210ee, DEVICEID=0x100006&lt;BR /&gt;[ 7.444650] FPGA VERSION=0x1a19277e&lt;BR /&gt;[ 7.448392] dma_alloc_coherent(1048576) 0xffff800032a00000 0xb2a00000&lt;BR /&gt;[ 7.454841] phy(0xlb2a00000, 0xlb2a00000), virt(0xffff800032a00000, 0xffff800032a00000)&lt;BR /&gt;[ 7.462920] v7_ioctl_init&lt;BR /&gt;[ 7.465651] create v7_class&lt;BR /&gt;[ 7.468550] create device&lt;BR /&gt;[ 7.471167] success: cdev_add&amp;nbsp;kobj.state_initialized = 1&lt;BR /&gt;[ 7.474142] module init ok ...&lt;BR /&gt;mknod: /dev/v7: File exists&lt;BR /&gt;config the ip address...&lt;BR /&gt;[ 9.485889] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready&lt;BR /&gt;Init my board...&lt;BR /&gt;5&lt;BR /&gt;4&lt;BR /&gt;3&lt;BR /&gt;2&lt;BR /&gt;1&lt;/P&gt;&lt;P&gt;Enter vxp memery[&amp;nbsp; &amp;nbsp;18.510349] kobject: '(null)' (ffff8000344a7cf8): is not initialized, yet kobject_get() is being called.&lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp;18.521298] ------------[ cut here ]------------&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;V7_mmapAddr = [ 18.527094] WARNING: CPU: 1 PID: 2715 at /home/hu/flexbuild/packages/linux/linux/lib/kobject.c:597 kobject_get+0x80/0x88&lt;BR /&gt;0x94bf9000&lt;BR /&gt;K7[ 18.539342] Modules linked in:_mmapAddr = 0x94 v7_pcie828000&lt;BR /&gt;NVRAM_&lt;BR /&gt;mmapAddr = 0x940[ 18.547259] &lt;BR /&gt;86000&lt;/P&gt;&lt;P&gt;[ 18.550133] CPU: 1 PID: 2715 Comm: a.out Not tainted 4.9.62-dirty #39&lt;BR /&gt;[ 18.557348] Hardware name: LS1043A RDB Board (DT)&lt;BR /&gt;[ 18.562049] task: ffff8000359f4540 task.stack: ffff800034748000&lt;/P&gt;&lt;P&gt;[ 18.567968] PC is at kobject_get+0x80/0x88&lt;BR /&gt;[ 18.572061] LR is at kobject_get+0x80/0x88&lt;BR /&gt;[ 18.576154] pc : [&amp;lt;ffff000008518b80&amp;gt;] lr : [&amp;lt;ffff000008518b80&amp;gt;] pstate: 00000145&lt;BR /&gt;[ 18.583549] sp : ffff80003474bae0&lt;BR /&gt;[ 18.586858] x29: ffff80003474bae0 x28: ffff0000081f35c8 &lt;BR /&gt;[ 18.592174] x27: 0000000000000000 x26: ffff8000344a7cf8 &lt;BR /&gt;[ 18.597489] x25: 000000000ed00000 x24: ffff80003474bbdc &lt;BR /&gt;[ 18.602804] x23: 00000000000000ed x22: ffff8000361bb800 &lt;BR /&gt;[ 18.608118] x21: 000000000ed00000 x20: ffff8000344a7cf8 &lt;BR /&gt;[ 18.613434] x19: ffff8000344a7cf8 x18: 0000000000000010 &lt;BR /&gt;[ 18.618749] x17: 0000ffff956ea610 x16: ffff0000081ed9f8 &lt;BR /&gt;[ 18.624064] x15: ffff0000892d8ec7 x14: 65675f7463656a62 &lt;BR /&gt;[ 18.629378] x13: 6f6b20746579202c x12: 64657a696c616974 &lt;BR /&gt;[ 18.634693] x11: 696e6920746f6e20 x10: 000000000000018c &lt;BR /&gt;[ 18.640008] x9 : 3761343433303030 x8 : 6c616320676e6965 &lt;BR /&gt;[ 18.645321] x7 : 6220736920292874 x6 : ffff0000092d8f33 &lt;BR /&gt;[ 18.650636] x5 : 0000000000000000 x4 : 0000000000000000 &lt;BR /&gt;[ 18.655950] x3 : 0000000000000000 x2 : ffff80003bd896b8 &lt;BR /&gt;[ 18.661264] x1 : ffff8000359f4540 x0 : 000000000000005c&lt;/P&gt;&lt;P&gt;[ 18.666578] &lt;BR /&gt;[ 18.668061] ---[ end trace c871dee492adc783 ]---&lt;BR /&gt;[ 18.672675] Call trace:&lt;BR /&gt;[ 18.675117] Exception stack(0xffff80003474b910 to 0xffff80003474ba40)&lt;BR /&gt;[ 18.681558] b900: ffff8000344a7cf8 0001000000000000&lt;BR /&gt;[ 18.689391] b920: ffff80003474bae0 ffff000008518b80 ffff80003474ba10 0000000000000004&lt;BR /&gt;[ 18.697223] b940: ffff0000092db2ea 000000000000005c ffff0000092d8000 ffff000008f33238&lt;BR /&gt;[ 18.705055] b960: ffff80003474ba00 ffff00000810bdf8 ffff8000344a7cf8 ffff8000344a7cf8&lt;BR /&gt;[ 18.712887] b980: 000000000ed00000 ffff8000361bb800 00000000000000ed ffff80003474bbdc&lt;BR /&gt;[ 18.720718] b9a0: 000000000ed00000 ffff8000344a7cf8 000000000000005c ffff8000359f4540&lt;BR /&gt;[ 18.728550] b9c0: ffff80003bd896b8 0000000000000000 0000000000000000 0000000000000000&lt;BR /&gt;[ 18.736381] b9e0: ffff0000092d8f33 6220736920292874 6c616320676e6965 3761343433303030&lt;BR /&gt;[ 18.744213] ba00: 000000000000018c 696e6920746f6e20 64657a696c616974 6f6b20746579202c&lt;BR /&gt;[ 18.752045] ba20: 65675f7463656a62 ffff0000892d8ec7 ffff0000081ed9f8 0000ffff956ea610&lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp;18.759877] [&amp;lt;ffff000008518b80&amp;gt;] kobject_get+0x80/0x88&lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp;18.765016] [&amp;lt;ffff0000081f3ad8&amp;gt;] cdev_get+0x30/0x58&lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp;18.769893] [&amp;lt;ffff0000081f3b10&amp;gt;] exact_lock+0x10/0x20&lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp;18.774945] [&amp;lt;ffff0000086d1f2c&amp;gt;] kobj_lookup+0xcc/0x150&lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp;18.780168] [&amp;lt;ffff0000081f3f40&amp;gt;] chrdev_open+0xf8/0x1a0&lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp;18.785393] [&amp;lt;ffff0000081ec124&amp;gt;] do_dentry_open+0x214/0x318&lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp;18.790965] [&amp;lt;ffff0000081ed4c8&amp;gt;] vfs_open+0x48/0x80&lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp;18.795842] [&amp;lt;ffff0000081fdd84&amp;gt;] path_openat+0x51c/0xff8&lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp;18.801153] [&amp;lt;ffff0000081ff914&amp;gt;] do_filp_open+0x5c/0xd8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Detail is shown in attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It does not always appear, but happens occasionally.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I look for my driver, and did not find the NULL pointer, and I have already initialized the kobject struct...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the problem? Or What have I neglected?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expecting for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yours' Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 05:56:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043A-PCIe-Driver-kobject-null-ffff8000344a7cf8-is-not/m-p/801648#M3563</guid>
      <dc:creator>tapyang</dc:creator>
      <dc:date>2018-11-05T05:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: LS1043A PCIe Driver: kobject: '(null)' (ffff8000344a7cf8): is not initialized, ...</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1043A-PCIe-Driver-kobject-null-ffff8000344a7cf8-is-not/m-p/801649#M3564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Experts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved this problem. It is caused by my driver, and I rewrite my driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all the same!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 01:45:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1043A-PCIe-Driver-kobject-null-ffff8000344a7cf8-is-not/m-p/801649#M3564</guid>
      <dc:creator>tapyang</dc:creator>
      <dc:date>2018-11-07T01:45:06Z</dc:date>
    </item>
  </channel>
</rss>

