Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.hardware > #571

Re: Is there a utility to peek and poke PCIe devices

From General Schvantzkoph <schvantzkoph@yahoo.com>
Newsgroups comp.os.linux.hardware, comp.arch.fpga
Subject Re: Is there a utility to peek and poke PCIe devices
Date 2011-08-11 15:30 +0000
Message-ID <9aiatfFf73U5@mid.individual.net> (permalink)
References <9agc44Ff73U3@mid.individual.net> <4e437d24$0$6539$9b4e6d93@newsspool4.arcor-online.net> <9ai3abFf73U4@mid.individual.net> <4e43df37$0$6542$9b4e6d93@newsspool4.arcor-online.net>

Cross-posted to 2 groups.

Show all headers | View raw


On Thu, 11 Aug 2011 15:55:33 +0200, rndhro wrote:

>> How do I determine which device is mine?
>> 
>> Here is the lspci output
>> 01:00.0 Unassigned class [ff00]: Altera Corporation Device 0004 (rev
>> 01)
> 
> you should be able to use the pci-ID from lspci as directory name in
> /sys/bus/pcie/devices/
> 
>> Here are the devices under /sys/bus/pci/devices
>> 
>> 0000:00:00.0/	0000:00:02.0/	0000:00:06.0/	0000:00:09.0/ 
0000:00:0c.0/
>> 0000:00:18.0/	0000:00:18.3/	0000:05:00.0/ 0000:00:01.0/	
0000:00:02.1/
>> 0000:00:07.0/	0000:00:0a.0/ 0000:00:0d.0/	0000:00:18.1/	
0000:01:0d.0/
>> 0000:00:01.1/	0000:00:04.0/	0000:00:08.0/	0000:00:0b.0/ 
0000:00:0e.0/
>> 0000:00:18.2/	0000:03:00.0
> 
> I don't really know why your device 0000:01:00.0 doesn't appear here -
> did you list the directory on the same machine & while the card is
> detected? Just a guess: maybe you have to set a device class in the FPGA
> Firmware other than ff00? (my Xilinx ML605 gets detected as "RAM memory"
> for example by setting the appropriate device/vendor IDs)

I'm switching the class to 5 from FF, I'll see what happens.

Back to comp.os.linux.hardware | Previous | NextPrevious in thread | Find similar


Thread

Is there a utility to peek and poke PCIe devices General Schvantzkoph <schvantzkoph@yahoo.com> - 2011-08-10 21:39 +0000
  Re: Is there a utility to peek and poke PCIe devices rndhro <rnd@hro.org> - 2011-08-11 08:57 +0200
    Re: Is there a utility to peek and poke PCIe devices glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2011-08-11 08:33 +0000
    Re: Is there a utility to peek and poke PCIe devices General Schvantzkoph <schvantzkoph@yahoo.com> - 2011-08-11 13:21 +0000
      Re: Is there a utility to peek and poke PCIe devices rndhro <rnd@hro.org> - 2011-08-11 15:55 +0200
        Re: Is there a utility to peek and poke PCIe devices General Schvantzkoph <schvantzkoph@yahoo.com> - 2011-08-11 15:30 +0000

csiph-web