<div dir="ltr"><div><div><div>I am using the defconfig from linux kernel tree and for CCSR in u-boot its F8000000 so the same i am using in device tree... so my question is - is it unable to parse device tree ? or in device tree some thing need to modify in device tree or in kernel source...<br>
</div> please give some light on this...<br><br><br></div>Thanks &amp; Regards<br></div>Ashish Khetan<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 27, 2013 at 4:21 AM, Sri Ram Vemulpali <span dir="ltr">&lt;<a href="mailto:sri.ram.gmu06@gmail.com" target="_blank">sri.ram.gmu06@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Why do not you use deconfig from linux kernel tree. Modify only base address of CCSR (soc node) for child nodes of root in device tree.<div>
arch/powerpc/boot/dts/mpc8641_hpcn.dts. <br></div><div><br></div><div>
Sri</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Thu, Dec 26, 2013 at 3:48 AM, Ashish Khetan <span dir="ltr">&lt;<a href="mailto:curieux.khetan@gmail.com" target="_blank">curieux.khetan@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>i tried to dig more inside mpic_alloc fails. the function of_find_matching_node calls inside from mpic_alloc() should return the node at which pic is connected but it returns NULL. but why? In device tree i am using the following.. may be it will helpful.<br>


/dts-v1/;<br><br>/ {<br>    model = &quot;MPC8641HPCN&quot;;<br>    compatible = &quot;fsl,mpc8641hpcn&quot;;<br>    #address-cells = &lt;0x1&gt;;<br>    #size-cells = &lt;0x1&gt;;<br><br>    aliases {<br>        ethernet0 = &quot;/soc8641@f8000000/ethernet@24000&quot;;<br>


        ethernet1 = &quot;/soc8641@f8000000/ethernet@25000&quot;;<br>        ethernet2 = &quot;/soc8641@f8000000/ethernet@26000&quot;;<br>        ethernet3 = &quot;/soc8641@f8000000/ethernet@27000&quot;;<br>        serial0 = &quot;/soc8641@f8000000/serial@4500&quot;;<br>


    };<br><br>    cpus {<br>        #address-cells = &lt;0x1&gt;;<br>        #size-cells = &lt;0x0&gt;;<br><br>        PowerPC,8641@0 {<br>            device_type = &quot;cpu&quot;;<br>            reg = &lt;0x0&gt;;<br>            d-cache-line-size = &lt;0x20&gt;;<br>


            i-cache-line-size = &lt;0x20&gt;;<br>            d-cache-size = &lt;0x8000&gt;;<br>            i-cache-size = &lt;0x8000&gt;;<br>            timebase-frequency = &lt;0x0&gt;;<br>            bus-frequency = &lt;0x0&gt;;<br>


            clock-frequency = &lt;0x0&gt;;<br>        };<br>    };<br><br>    memory {<br>        device_type = &quot;memory&quot;;<br>        reg = &lt;0x0 0x20000000&gt;;<br>    };<br><br>    localbus@f8005000 {<br>        #address-cells = &lt;0x2&gt;;<br>


        #size-cells = &lt;0x1&gt;;<br>        compatible = &quot;fsl,mpc8641-localbus&quot;, &quot;simple-bus&quot;;<br>        reg = &lt;0xf8005000 0x1000&gt;;<br>        interrupts = &lt;0x13 0x2&gt;;<br>        interrupt-parent = &lt;0x1&gt;;<br>


        ranges = &lt;0x0 0x0 0xff000000 0x1000000&gt;;<br><br>        flash@0,0 {<br>            compatible = &quot;cfi-flash&quot;;<br>            reg = &lt;0x0 0x0 0x800000&gt;;<br>            bank-width = &lt;0x2&gt;;<br>


            device-width = &lt;0x2&gt;;<br>            #address-cells = &lt;0x1&gt;;<br>            #size-cells = &lt;0x1&gt;;<br>        };<br>    };<br><br>    soc8641@f8000000 {<br>        #address-cells = &lt;0x1&gt;;<br>


        #size-cells = &lt;0x1&gt;;<br>        device_type = &quot;soc&quot;;<br>        compatible = &quot;simple-bus&quot;;<br>        ranges = &lt;0x0 0xf8000000 0x100000&gt;;<br>        bus-frequency = &lt;0x0&gt;;<br>


<br>        mcm-law@0 {<br>            compatible = &quot;fsl,mcm-law&quot;;<br>            reg = &lt;0x0 0x1000&gt;;<br>            fsl,num-laws = &lt;0xa&gt;;<br>        };<br><br>        mcm@1000 {<br>            compatible = &quot;fsl,mpc8641-mcm&quot;, &quot;fsl,mcm&quot;;<br>


            reg = &lt;0x1000 0x1000&gt;;<br>            interrupts = &lt;0x11 0x2&gt;;<br>            interrupt-parent = &lt;0x1&gt;;<br>        };<br><br>        dma@21300 {<br>            #address-cells = &lt;0x1&gt;;<br>


            #size-cells = &lt;0x1&gt;;<br>            compatible = &quot;fsl,mpc8641-dma&quot;, &quot;fsl,eloplus-dma&quot;;<br>            reg = &lt;0x21300 0x4&gt;;<br>            ranges = &lt;0x0 0x21100 0x200&gt;;<br>


            cell-index = &lt;0x0&gt;;<br><br>            dma-channel@0 {<br>                compatible = &quot;fsl,mpc8641-dma-channel&quot;, &quot;fsl,eloplus-dma-channel&quot;;<br>                reg = &lt;0x0 0x80&gt;;<br>


                cell-index = &lt;0x0&gt;;<br>                interrupt-parent = &lt;0x1&gt;;<br>                interrupts = &lt;0x14 0x2&gt;;<br>            };<br><br>            dma-channel@80 {<br>                compatible = &quot;fsl,mpc8641-dma-channel&quot;, &quot;fsl,eloplus-dma-channel&quot;;<br>


                reg = &lt;0x80 0x80&gt;;<br>                cell-index = &lt;0x1&gt;;<br>                interrupt-parent = &lt;0x1&gt;;<br>                interrupts = &lt;0x15 0x2&gt;;<br>            };<br><br>            dma-channel@100 {<br>


                compatible = &quot;fsl,mpc8641-dma-channel&quot;, &quot;fsl,eloplus-dma-channel&quot;;<br>                reg = &lt;0x100 0x80&gt;;<br>                cell-index = &lt;0x2&gt;;<br>                interrupt-parent = &lt;0x1&gt;;<br>


                interrupts = &lt;0x16 0x2&gt;;<br>            };<br><br>            dma-channel@180 {<br>                compatible = &quot;fsl,mpc8641-dma-channel&quot;, &quot;fsl,eloplus-dma-channel&quot;;<br>                reg = &lt;0x180 0x80&gt;;<br>


                cell-index = &lt;0x3&gt;;<br>                interrupt-parent = &lt;0x1&gt;;<br>                interrupts = &lt;0x17 0x2&gt;;<br>            };<br>        };<br><br>        ethernet@24000 {<br>            #address-cells = &lt;0x1&gt;;<br>


            #size-cells = &lt;0x1&gt;;<br>            cell-index = &lt;0x0&gt;;<br>            device_type = &quot;network&quot;;<br>            model = &quot;TSEC&quot;;<br>            compatible = &quot;gianfar&quot;;<br>


            reg = &lt;0x24000 0x1000&gt;;<br>            ranges = &lt;0x0 0x24000 0x1000&gt;;<br>            local-mac-address = [00 00 00 00 00 00];<br>            interrupts = &lt;0x1d 0x2 0x1e 0x2 0x22 0x2&gt;;<br>            interrupt-parent = &lt;0x1&gt;;<br>


            tbi-handle = &lt;0x2&gt;;<br>            phy-handle = &lt;0x3&gt;;<br>            phy-connection-type = &quot;rgmii-id&quot;;<br><br>            mdio@520 {<br>                #address-cells = &lt;0x1&gt;;<br>

                #size-cells = &lt;0x0&gt;;<br>
                compatible = &quot;fsl,gianfar-mdio&quot;;<br>                reg = &lt;0x520 0x20&gt;;<br><br>                ethernet-phy@0 {<br>                    interrupt-parent = &lt;0x1&gt;;<br>                    interrupts = &lt;0xa 0x1&gt;;<br>


                    reg = &lt;0x0&gt;;<br>                    device_type = &quot;ethernet-phy&quot;;<br>                    linux,phandle = &lt;0x3&gt;;<br>                };<br><br>                ethernet-phy@1 {<br>                    interrupt-parent = &lt;0x1&gt;;<br>


                    interrupts = &lt;0xa 0x1&gt;;<br>                    reg = &lt;0x1&gt;;<br>                    device_type = &quot;ethernet-phy&quot;;<br>                    linux,phandle = &lt;0x5&gt;;<br>                };<br>


<br>                ethernet-phy@2 {<br>                    interrupt-parent = &lt;0x1&gt;;<br>                    interrupts = &lt;0xa 0x1&gt;;<br>                    reg = &lt;0x2&gt;;<br>                    device_type = &quot;ethernet-phy&quot;;<br>


                    linux,phandle = &lt;0x7&gt;;<br>                };<br><br>                ethernet-phy@3 {<br>                    interrupt-parent = &lt;0x1&gt;;<br>                    interrupts = &lt;0xa 0x1&gt;;<br>


                    reg = &lt;0x3&gt;;<br>                    device_type = &quot;ethernet-phy&quot;;<br>                    linux,phandle = &lt;0x9&gt;;<br>                };<br><br>                tbi-phy@11 {<br>                    reg = &lt;0x11&gt;;<br>


                    device_type = &quot;tbi-phy&quot;;<br>                    linux,phandle = &lt;0x2&gt;;<br>                };<br>            };<br>        };<br><br>        ethernet@25000 {<br>            #address-cells = &lt;0x1&gt;;<br>


            #size-cells = &lt;0x1&gt;;<br>            cell-index = &lt;0x1&gt;;<br>            device_type = &quot;network&quot;;<br>            model = &quot;TSEC&quot;;<br>            compatible = &quot;gianfar&quot;;<br>


            reg = &lt;0x25000 0x1000&gt;;<br>            ranges = &lt;0x0 0x25000 0x1000&gt;;<br>            local-mac-address = [00 00 00 00 00 00];<br>            interrupts = &lt;0x23 0x2 0x24 0x2 0x28 0x2&gt;;<br>            interrupt-parent = &lt;0x1&gt;;<br>


            tbi-handle = &lt;0x4&gt;;<br>            phy-handle = &lt;0x5&gt;;<br>            phy-connection-type = &quot;rgmii-id&quot;;<br><br>            mdio@520 {<br>                #address-cells = &lt;0x1&gt;;<br>

                #size-cells = &lt;0x0&gt;;<br>
                compatible = &quot;fsl,gianfar-tbi&quot;;<br>                reg = &lt;0x520 0x20&gt;;<br><br>                tbi-phy@11 {<br>                    reg = &lt;0x11&gt;;<br>                    device_type = &quot;tbi-phy&quot;;<br>


                    linux,phandle = &lt;0x4&gt;;<br>                };<br>            };<br>        };<br><br>        ethernet@26000 {<br>            #address-cells = &lt;0x1&gt;;<br>            #size-cells = &lt;0x1&gt;;<br>


            cell-index = &lt;0x2&gt;;<br>            device_type = &quot;network&quot;;<br>            model = &quot;TSEC&quot;;<br>            compatible = &quot;gianfar&quot;;<br>            reg = &lt;0x26000 0x1000&gt;;<br>


            ranges = &lt;0x0 0x26000 0x1000&gt;;<br>            local-mac-address = [00 00 00 00 00 00];<br>            interrupts = &lt;0x1f 0x2 0x20 0x2 0x21 0x2&gt;;<br>            interrupt-parent = &lt;0x1&gt;;<br>            tbi-handle = &lt;0x6&gt;;<br>


            phy-handle = &lt;0x7&gt;;<br>            phy-connection-type = &quot;rgmii-id&quot;;<br><br>            mdio@520 {<br>                #address-cells = &lt;0x1&gt;;<br>                #size-cells = &lt;0x0&gt;;<br>


                compatible = &quot;fsl,gianfar-tbi&quot;;<br>                reg = &lt;0x520 0x20&gt;;<br><br>                tbi-phy@11 {<br>                    reg = &lt;0x11&gt;;<br>                    device_type = &quot;tbi-phy&quot;;<br>


                    linux,phandle = &lt;0x6&gt;;<br>                };<br>            };<br>        };<br><br>        ethernet@27000 {<br>            #address-cells = &lt;0x1&gt;;<br>            #size-cells = &lt;0x1&gt;;<br>


            cell-index = &lt;0x3&gt;;<br>            device_type = &quot;network&quot;;<br>            model = &quot;TSEC&quot;;<br>            compatible = &quot;gianfar&quot;;<br>            reg = &lt;0x27000 0x1000&gt;;<br>


            ranges = &lt;0x0 0x27000 0x1000&gt;;<br>            local-mac-address = [00 00 00 00 00 00];<br>            interrupts = &lt;0x25 0x2 0x26 0x2 0x27 0x2&gt;;<br>            interrupt-parent = &lt;0x1&gt;;<br>            tbi-handle = &lt;0x8&gt;;<br>


            phy-handle = &lt;0x9&gt;;<br>            phy-connection-type = &quot;rgmii-id&quot;;<br><br>            mdio@520 {<br>                #address-cells = &lt;0x1&gt;;<br>                #size-cells = &lt;0x0&gt;;<br>


                compatible = &quot;fsl,gianfar-tbi&quot;;<br>                reg = &lt;0x520 0x20&gt;;<br><br>                tbi-phy@11 {<br>                    reg = &lt;0x11&gt;;<br>                    device_type = &quot;tbi-phy&quot;;<br>


                    linux,phandle = &lt;0x8&gt;;<br>                };<br>            };<br>        };<br><br>        serial@4500 {<br>            cell-index = &lt;0x0&gt;;<br>            device_type = &quot;serial&quot;;<br>


            compatible = &quot;ns16550&quot;;<br>            reg = &lt;0x4500 0x100&gt;;<br>            clock-frequency = &lt;0x0&gt;;<br>            interrupts = &lt;0x2a 0x2&gt;;<br>            interrupt-parent = &lt;0x1&gt;;<br>


        };<br><br>        pic@40000 {<br>            interrupt-controller;<br>            #address-cells = &lt;0x0&gt;;<br>            #interrupt-cells = &lt;0x2&gt;;<br>            reg = &lt;0x40000 0x40000&gt;;<br>            compatible = &quot;chrp,open-pic&quot;;<br>


            device_type = &quot;open-pic&quot;;<br>            linux,phandle = &lt;0x1&gt;;<br>            phandle = &lt;0x1&gt;;<br>        };<br><br>        global-utilities@e0000 {<br>            compatible = &quot;fsl,mpc8641-guts&quot;;<br>


            reg = &lt;0xe0000 0x1000&gt;;<br>            fsl,has-rstcr;<br>        };<br>    };<br><br>    chosen {<br>        linux,stdout-path = &quot;/soc8641/serial0: serial@4500&quot;;<br>    };<br>};<br><br></div><br>


<div><div><div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 26, 2013 at 2:37 PM, wyang <span dir="ltr">&lt;<a href="mailto:w90p710@gmail.com" target="_blank">w90p710@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><div><div><div><div>
    <div>On 12/26/2013 01:09 PM, Ashish Khetan
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div>
          <div>
            <div>Hi,<br>
            </div>
            I was trying to port Linux-3.12 for MPC8641 based custom
            designed board for evaluation purpose. I have been facing a
            kernel bug at mpic initialization. Is somebody have faced
            this kind of bugs or can give me any pointer for further
            steps how to solve kernel bugs will be really helpful. here
            is the snapshot for the bug that may be helpful to address
            the bug.<br>
            Using MPC86xx HPCN machine description<br>
            Total memory = 512MB; using 1024kB for hash table (at
            cff00000)<br>
            Linux version 3.12.0 (ashish@ashish-VirtualBox) (gcc version
            4.7.2 (GCC) ) #2 We<br>
            d Dec 25 16:04:36 IST 2013<br>
            Found initrd at 0xde975000:0xdfec428a<br>
            bootconsole [udbg0] enabled<br>
            setup_arch: bootmem<br>
            mpc86xx_hpcn_setup_arch()<br>
            MPC86xx HPCN board from Freescale Semiconductor<br>
            arch: exit<br>
            Zone ranges:<br>
              DMA      [mem 0x00000000-0x1fffffff]<br>
              Normal   empty<br>
              HighMem  empty<br>
            Movable zone start for each node<br>
            Early memory node ranges<br>
              node   0: [mem 0x00000000-0x1fffffff]<br>
            Built 1 zonelists in Zone order, mobility grouping on. 
            Total pages: 130048<br>
            Kernel command line: root=/dev/ram0 rw rootfs
            console=ttyS0,115200<br>
            PID hash table entries: 2048 (order: 1, 8192 bytes)<br>
            Dentry cache hash table entries: 65536 (order: 6, 262144
            bytes)<br>
            Inode-cache hash table entries: 32768 (order: 5, 131072
            bytes)<br>
            Sorting __ex_table...<br>
            Memory: 424980K/524288K available (4172K kernel code, 208K
            rwdata, 1304K rodata,<br>
             196K init, 149K bss, 99308K reserved, 0K highmem)<br>
            Kernel virtual memory layout:<br>
              * 0xfffcf000..0xfffff000  : fixmap<br>
              * 0xff800000..0xffc00000  : highmem PTEs<br>
              * 0xff7fe000..0xff800000  : early ioremap<br>
              * 0xe1000000..0xff7fe000  : vmalloc &amp; ioremap<br>
            SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1<br>
            NR_IRQS:512 nr_irqs:512 16<br>
            ------------[ cut here ]------------<br>
            kernel BUG at arch/powerpc/platforms/86xx/pic.c:42!<br>
          </div>
        </div>
      </div>
    </blockquote>
    <br></div></div></div></div>
    It hints that mpic_alloc() fails. Maybe, you should spend some time
    investigating why it fails.<span><span> :-) </span></span><br>
    <br>
    Thanks<br>
    Wei<br>
    <blockquote type="cite"><div><div><div><div>
      <div dir="ltr">
        <div>
          <div>Oops: Exception in kernel mode, sig: 5 [#1]<br>
            MPC86xx HPCN<br>
            Modules linked in:<br>
            CPU: 0 PID: 0 Comm: swapper Not tainted 3.12.0 #2<br>
            task: c05903e0 ti: c05b4000 task.ti: c05b4000<br>
            NIP: c0567438 LR: c0567430 CTR: c0567400<br>
            REGS: c05b5ee0 TRAP: 0700   Not tainted  (3.12.0)<br>
            MSR: 00021032 &lt;ME,IR,DR,RI&gt;  CR: 24000042  XER:
            20000000<br>
            <br>
            GPR00: c0567430 c05b5f90 c05903e0 00000000 c04e4ff8 c051e588
            0000008f 00000002<br>
            GPR08: c042789c 00000001 0000006f 00000000 22000048 bebffffd
            11a7b4e5 200c8000<br>
            GPR16: ffbeffff ffffffff 00000000 00000024 00000000 1fec56f8
            1fec59a7 00000000<br>
            GPR24: 00000000 1fff97e8 40000000 1ffcc6a0 c0bff080 c05c2490
            c05c2628 c0585b60<br>
            NIP [c0567438] mpc86xx_init_irq+0x38/0x108<br>
            LR [c0567430] mpc86xx_init_irq+0x30/0x108<br>
            Call Trace:<br>
            [c05b5f90] [c0567430] mpc86xx_init_irq+0x30/0x108
            (unreliable)<br>
            [c05b5fb0] [c0562784] init_IRQ+0x24/0x38<br>
            [c05b5fc0] [c055fde4] start_kernel+0x1bc/0x2ec<br>
            [c05b5ff0] [00003444] 0x3444<br>
            Instruction dump:<br>
            3d00c04f 38800000 38a01002 38c00000 38e00100 39088f8c
            38600000 90010024<br>
            bfa10014 4bffec35 7c690034 5529d97e &lt;0f090000&gt;
            3fa0c04f 4bfff391 38600000<br>
            ---[ end trace 31fd0ba7d8756001 ]---<br>
            <br>
            Kernel panic - not syncing: Attempted to kill the idle task!<br>
            Rebooting in 180 seconds..<br>
            <br>
            <br>
          </div>
          Thanks &amp; Regards<br>
        </div>
        Ashish Khetan<br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div></div></div><pre>_______________________________________________
Linuxppc-dev mailing list
<a href="mailto:Linuxppc-dev@lists.ozlabs.org" target="_blank">Linuxppc-dev@lists.ozlabs.org</a>
<a href="https://lists.ozlabs.org/listinfo/linuxppc-dev" target="_blank">https://lists.ozlabs.org/listinfo/linuxppc-dev</a></pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div>
<br></div></div>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Regards,<div>Sri.</div>
</font></span></div>
</blockquote></div><br></div>