Re: accessing pci_dev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 6, 2012 at 4:16 PM, Paolo <paolopiace@xxxxxxxxx> wrote:
> Basically, I want to check the config registers before and after the driver
> registration in order to make sure that the driver is not contaminating them.

The user command "lspci -x" is a good way to see raw config space.

If you don't need the driver for boot, you can build it as a module,
make sure it isn't automatically loaded (e.g., rename it temporarily),
reboot, run lspci once, load the driver module by hand, and then run
lspci again.

If you're on x86, you can also boot with the kernel option
"pci=earlydump" to see config space before any drivers touch it, even
if they're built into the kernel.

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux