[lkml]   [2005]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectHow to detect ongoing activity on PCI/AGP?
After upgrading my graphics, matrox g400 AGP to radeon rv280 AGP, I
noticed severe horizontal distortions in outputted image (parts move
randomly a pixel-or-two right or left).
I tracked it down to my use of amd76x_pm module, which supposedly
disconnects CPU's (this is 2xK7 SMP) from PCI bus. If I unload the
module or simply make it less aggressive (== effective), horizontal
distortions disappear.
Needless to say, matrox g400 hadn't these.

Similar distortions, although more visible and permanent, can be seen in
this grab from a bt878 card. These are not something new, I always
needed to remove amd76x_pm prior using the TV card.
Note that these distorted lines stay that way for a long time, sometimes
over a second, so there's clearly something getting broken while
transferring data via PCI.

So I've been thinking along the lines if there was a way to detect
active transfer on PCI and not do idling thing in amd76x_pm idle(). I
took a look at various places in the kernel, but didn't find anything
that matched.

Closest thing I found was this piece from drivers/pci/pci.c:pci_disable_device
- -
pci_read_config_word(dev, PCI_COMMAND, &pci_command);
if (pci_command & PCI_COMMAND_MASTER) {
- -

dev would likely to be northbridge, but would this work? Is there some
other Right(tm) way to do this?

Psi -- <>

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 14:09    [W:0.028 / U:3.676 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site