Mailinglist Archive: radeonhd (365 mails)

< Previous Next >
Re: [radeonhd] 'Hex digits'
  • From: Michael Cree <mcree@xxxxxxxxxxxx>
  • Date: Wed, 11 Mar 2009 21:13:31 +1300
  • Message-id: <49B772AB.3000207@xxxxxxxxxxxx>
Matthias Hopf wrote:
On Mar 02, 09 15:51:38 +1300, Michael Cree wrote:
On 2/03/2009, at 3:53 AM, Martijn Bastiaan wrote:
Some users have reported they also need to do:
# setpci -s <pci_bus_id> ROM_ADDRESS=xxxx0001
# setpci -s <pci_bus_id> COMMAND=2

replace <pci_bus_id> with the PCI bus ID and xxxx with the hex
digits you can obtain thru lspci -nv .

Which 'hex digits' do they mean? My ouput for example:
Gosh, that's interesting, I hadn't noticed that on the wiki. I will find that advice helpful too.

But to answer your question, the following line is relevant:

[virtual] Expansion ROM at fdf00000 [disabled] [size=128K]
That tells you that the ROM is at fdf00000 so I think you need to enter:

setpci -s <pci_bus_id> ROM_ADDRESS=fdf00001

(Note that the address should have its lowest bit set in the setpci command. Looking at the include file /usr/include/linux/pci_regs.h suggests that the lowest bit is an enable bit.)

Could you please enter that in the wiki? You apparently know what this
is supposed to do ;-)
No, I am no expert. I just read the documentation! 'man setpci' lists the commands, and in typical Linux fashion is badly written, incomplete and gives you the complete run around, in this case by referencing /usr/include/linux/pci.h which includes <linux/pci_regs.h> which contains:

#define PCI_ROM_ADDRESS 0x30 /* Bits 31..11 are address, 10..1 reserved */
#define PCI_ROM_ADDRESS_ENABLE 0x01
#define PCI_ROM_ADDRESS_MASK (~0x7ffUL)

which I surmise from the PCI_ROM_ADDRESS_ENABLE definition that the zeroeth bit is an enable bit. A test on my computer reveals that setting and clearing this bit enables me to enable and disable the ROM of a PCI card as reported by lspci.

There is also documentation in the Linux kernel source (Documentation/filesystems/sysfs-pci.txt) which describes the enable and rom files entries in the sysfs directory for the PCI card.

Cheers
Michael.

--
To unsubscribe, e-mail: radeonhd+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: radeonhd+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups