linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Access to PCI Expansion ROMs on PPC
@ 2007-11-25  1:57 Robin H. Johnson
  2007-11-25  2:13 ` Jon Smirl
  2007-11-25  9:42 ` Andreas Schwab
  0 siblings, 2 replies; 18+ messages in thread
From: Robin H. Johnson @ 2007-11-25  1:57 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1226 bytes --]

Following up from initial conversation with benh in #ppc64, I did a bit
of testing (and then a bit more).

Two PCIe cards for my testing:
a) sata_sil24 eSATA (x86 BIOS)
b) ATI X700 graphics (x86 BIOS)

I put the card into an amd64 box, found the relevant 'rom' node ($ROM) under
/sys/device/pci*, and dumped it as follows:
# echo 1>$ROM
# cat $ROM >/tmp/dump
# echo 0>$ROM
On amd64, this produced the ROM for the cards fine (contained
recognizable strings).

I then repeated the same on my G5 (PM11,2), while the $ROM files have a
non-zero size in sysfs (that corresponds to the size shown by lspci
-vv), reading them always results in a 0-byte output.

Is the PPC kernel broken? Does something in the PPC architecture forbid
this? Instructions to muck with PCI code welcome.

This was under 2.6.24_rc3-git1, kernel .config available if needed.

Why am I trying to access the PCI ROM? To make my newer X1900 card work
under at least one of the newer (ati,radeonhd,avivo) drivers, that all
try to access the ATI AtomBIOS for varying data.

-- 
Robin Hugh Johnson
Gentoo Linux Developer & Infra Guy
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11AC BA4F 4778 E3F6 E4ED  F38E B27B 944E 3488 4E85

[-- Attachment #2: Type: application/pgp-signature, Size: 321 bytes --]

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

end of thread, other threads:[~2007-11-26 17:35 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-25  1:57 Access to PCI Expansion ROMs on PPC Robin H. Johnson
2007-11-25  2:13 ` Jon Smirl
2007-11-25 11:15   ` Robin H. Johnson
2007-11-25 11:49     ` Robin H. Johnson
2007-11-25 13:30       ` Jon Smirl
2007-11-25 19:41         ` Robin H. Johnson
2007-11-26  8:59           ` Robin H. Johnson
2007-11-26  9:20             ` Michel Dänzer
2007-11-26 10:24               ` Robin H. Johnson
2007-11-26 16:33                 ` Jon Smirl
2007-11-26 17:35                   ` Robin H. Johnson
2007-11-25 20:20         ` Benjamin Herrenschmidt
2007-11-25 20:51           ` Jon Smirl
2007-11-25 20:54             ` Benjamin Herrenschmidt
2007-11-25 21:24           ` Jon Smirl
2007-11-25 21:34             ` Benjamin Herrenschmidt
2007-11-25  9:42 ` Andreas Schwab
2007-11-25  9:58   ` Robin H. Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).