All of lore.kernel.org
 help / color / mirror / Atom feed
* read PCI memory and config spyce through /dev/mem
@ 2013-05-06 14:44 Warlich, Christof
  2013-05-06 15:19 ` Valdis.Kletnieks at vt.edu
  0 siblings, 1 reply; 5+ messages in thread
From: Warlich, Christof @ 2013-05-06 14:44 UTC (permalink / raw)
  To: kernelnewbies

Hi,

I'd like to look at some of my PCI devices through /dev/mem.
My kernel config has "Filter access to /dev/mem" (STRICT_DEVMEM)
switched off, so as root, I should have unrestricted access.

I get my PCI device's BAR address through /proc/iomem, e.g.:

$ cat /proc/iomem
...
    f7600000-f7603fff : r8169
...

Ok, so there should be 16K of PCI memory from my ethernet card
starting at f7600000, which is 4150263808 in decimal to be used
With dd. But:

$ dd if=/dev/mem bs=1 count=1024 skip=4150263808
dd: reading `/dev/mem': Bad address
0+0 records in
0+0 records out
0 bytes (0 B) copied, 6.6658e-05 s, 0.0 kB/s

The kernel config help says that _PCI_ memory access is even
possible with STRICT_DEVMEM enabled. Can anyone give me a hint
what I may do wrong?

Thanks a lot,

Chris

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-08  6:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-06 14:44 read PCI memory and config spyce through /dev/mem Warlich, Christof
2013-05-06 15:19 ` Valdis.Kletnieks at vt.edu
2013-05-07  6:35   ` Warlich, Christof
2013-05-07 16:20     ` Jonathan Neuschäfer
     [not found]       ` <1367981063.2020.2.camel@junwork.opensuse.com>
2013-05-08  6:49         ` Warlich, Christof

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.