From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759464Ab1JGHmG (ORCPT ); Fri, 7 Oct 2011 03:42:06 -0400 Received: from ezo.ezono.com ([50.22.105.208]:45328 "EHLO ezo.ezono.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751525Ab1JGHmF (ORCPT ); Fri, 7 Oct 2011 03:42:05 -0400 X-Greylist: delayed 1537 seconds by postgrey-1.27 at vger.kernel.org; Fri, 07 Oct 2011 03:42:05 EDT Message-ID: <4E8EA746.6030103@ezono.com> Date: Fri, 07 Oct 2011 09:16:22 +0200 From: Abdelghani Ouchabane User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: linux-kernel@vger.kernel.org, Abdelghani Ouchabane Subject: PCIe can not rescan for new PCIe device ( FPGA board ) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ezo.ezono.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - ezono.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hallo, We are developing a FPGA board connected to a Fedora 15 PC host over PCIe. Right now, in the implementation and debug phase, I often need to power off and power on the device or try different boards. This causes a problem with the Fedora 15 running on the AMD PC. Typically the PC is booted when I need to insert the device under test. As expected, the Linux doesn't find the device and the software app cannot talk to it. * If I do "lspci -v" then it does not list our device. * Then I execute "echo 1 > /sys/bus/pci/rescan" * Now "lspci -v" lists our device. * But our software returns : 0xFFFFFFFF ************************************************************************************************************************************************************ [root@localhost ~]# show_regs resource file = /sys/bus/pci/devices/0000:02:00.0/resource base address = 0x40241000 0x40241000 0x00000000 0xFFFFFFFF 0xFFFFFFFF 0x40241008 0x00000008 0xFFFFFFFF 0xFFFFFFFF 0x40241010 0x00000010 0xFFFFFFFF 0xFFFFFFFF 0x40241018 0x00000018 0xFFFFFFFF 0xFFFFFFFF 0x40241020 0x00000020 0xFFFFFFFF 0xFFFFFFFF 0x40241028 0x00000028 0xFFFFFFFF 0xFFFFFFFF 0x40241030 0x00000030 0xFFFFFFFF 0xFFFFFFFF 0x40241038 0x00000038 0xFFFFFFFF 0xFFFFFFFF 0x40241040 0x00000040 0xFFFFFFFF 0xFFFFFFFF 0x40241048 0x00000048 0xFFFFFFFF 0xFFFFFFFF 0x40241050 0x00000050 0xFFFFFFFF 0xFFFFFFFF 0x40241058 0x00000058 0xFFFFFFFF 0xFFFFFFFF ************************************************************************************************************************************************************ lspci -vvv 02:00.0 Signal processing controller: eZono AG eZono Malta - 32 channels ultrasound front end (rev 01) Subsystem: eZono AG Device 0001 Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-