lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 4 Apr 2008 16:23:52 +0530
From:	<vivek.trivedi@...ro.com>
To:	<linux-kernel@...r.kernel.org>
Cc:	<vivek.trivedi@...ro.com>, <govind.nair@...ro.com>
Subject: How to PCI to PCI(P2P) bridge node in dts for powerpc mpc8349emds

Hi ,
 
Can any one help me in adding nodes for devices connected on PCI to PCI
bridge.
 
I am using 2.6.18 kernel on a mpc8349emds based board.
I have a 3 port PCI to PCI(P2P) bridge, connected on PCI .
This P2P is a multi functional device(BDF 00.13.00 and 00.13.01), with
two secondary buses.
 
On secondary1 of this P2P bridge i have 3 DSPs and On secondary2 i have
4 DSPs.
We need to map secondary 1 devices on to Externel IRQ 6, and secondary 2
devices to Externel IRQ 7.
 
My query is how to add IDSEL nodes for the devices connected on P2P
secondary 1 and 2 in the Device Tree Structure(dts).
I am also attaching the DTS file after adding nodes for all devices.
 
     
                                         /* 3 Port P2P bridge on Bus 0,
AD19,IDSEL 0x13, BDF 00.13.00 and BDF 00.13.01*/
                                        /*Bus 1, 1 VGA DSP and 2 DSPs
mezanine card*/
 
                                        /* Bus 1, AD16, IDSEL 0x10, BDF
01.00.00 */
                                         18000 0 0 1 700 17 8
                                         18000 0 0 2 700 12 8
                                         18000 0 0 3 700 16 8
                                         18000 0 0 4 700 11 8
 
                                        /* Bus 1, AD17, IDSEL 0x11, BDF
01.01.00 */
                                         18800 0 0 1 700 17 8
                                         18800 0 0 2 700 12 8
                                         18800 0 0 3 700 16 8
                                         18800 0 0 4 700 11 8
 
                                        /* Bus 1, AD18, IDSEL 0x12, BDF
01.02.00 */
                                         19000 0 0 1 700 17 8
                                         19000 0 0 2 700 16 8
                                         19000 0 0 3 700 11 8
                                         19000 0 0 4 700 12 8
 
                                        /*Bus 2, 4 DSPs mezanine card*/
                                        /* Bus 2, AD16, IDSEL 0x10, BDF
02.00.00 */
                                         28000 0 0 1 700 16 8
                                         28000 0 0 2 700 12 8
                                         28000 0 0 3 700 11 8
                                         28000 0 0 4 700 17 8
 
                                        /* Bus 2, AD17, IDSEL 0x11, BDF
02.01.00 */
                                         28800 0 0 1 700 16 8
                                         28800 0 0 2 700 12 8
                                         28800 0 0 3 700 17 8
                                         28800 0 0 4 700 11 8
 
                                        /* Bus 2, AD18, IDSEL 0x12, BDF
02.02.00 */
                                         29000 0 0 1 700 16 8
                                         29000 0 0 2 700 12 8
                                         29000 0 0 3 700 11 8
                                         29000 0 0 4 700 17 8
 
                                        /* Bus 2, AD19, IDSEL 0x13, BDF
02.03.00 */
                                         29800 0 0 1 700 16 8
                                         29800 0 0 2 700 11 8
                                         29800 0 0 3 700 12 8
                                         29800 0 0 4 700 17 8 

 
Even after adding these nodes, i am not able to get proper IRQ
assignment on cat /proc/interrupts.
 
I have also modified the interrupt map mask to <3f800 0 0 7> instead of
<f800 0 0 7> as i am passing 0,1 and 2 numbers.
Do i need to add any other setting in dts...?
 
Thanks,
Vivek 
 

Download attachment "mpc8349emds_V1.1.dts" of type "application/octet-stream" (9986 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ