From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from m13-193.163.com (m13-193.163.com [220.181.13.193]) by ozlabs.org (Postfix) with ESMTP id 91929B7D16 for ; Fri, 11 Jun 2010 11:46:20 +1000 (EST) Date: Fri, 11 Jun 2010 09:30:19 +0800 (CST) From: jxnuxdy To: linuxppc-dev@ozlabs.org Message-ID: In-Reply-To: <1276219072.1962.82.camel@pasglop> References: <1276219072.1962.82.camel@pasglop> <20100604212134.10552.70717.stgit@angua> <20100604212155.10552.19260.stgit@angua> <1276152002.1962.55.camel@pasglop> Subject: PCIe bus seems work while 'dma' can't under linux MIME-Version: 1.0 Content-Type: text/plain; charset=gbk Cc: Stephen Rothwell , Michal Simek , devicetree-discuss@lists.ozlabs.org, microblaze-uclinux@itee.uq.edu.au List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi guys, I encountered a PCIe problem under linux, the two PCIe bus on my board seems work, at least I can access the registers through the PCIe bus, however the dma for the PCIe bus can't work, so I just dumped the pci device, but I am curiously to find there is no regions displayed on PCIe controlers, why? is it relate with my 'dma' issue then? bash-2.04# cat /proc/pci PCI devices found: Bus 0, device 0, function 0: Class 0b20 Header Type 01: PCI device 1957:0032 (rev 17). Bus 1, device 0, function 0: Class 0580 Header Type 00: PCI device 11ab:db90 (rev 1). Prefetchable 64 bit memory at 0x80000000 [0x800fffff]. Prefetchable 64 bit memory at 0x84000000 [0x87ffffff]. Bus 9, device 0, function 0: Class 0b20 Header Type 01: PCI device 1957:0032 (rev 17). Bus 10, device 0, function 0: Class 0580 Header Type 00: PCI device 11ab:db90 (rev 1). Prefetchable 64 bit memory at 0xa0000000 [0xa00fffff]. Prefetchable 64 bit memory at 0xa4000000 [0xa7ffffff]. bash-2.04# lspci -vv 00:00.0 Power PC: Unknown device 1957:0032 (rev 11) !!! Invalid class 0b20 for header type 01 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- Reset- FastB2B- Capabilities: [44] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Capabilities: [4c] #10 [0041] 01:00.0 Memory controller: Galileo Technology Ltd.: Unknown device db90 (rev 01) Subsystem: Galileo Technology Ltd.: Unknown device 11ab Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- Reset- FastB2B- Capabilities: [44] Power Management version 2 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+) Status: D0 PME-Enable- DSel=0 DScale=0 PME- Capabilities: [4c] #10 [0041] 0a:00.0 Memory controller: Galileo Technology Ltd.: Unknown device db90 (rev 01) Subsystem: Galileo Technology Ltd.: Unknown device 11ab Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-