[Bug 2322] Corruption of PCI config BAR1 of native PCIE boards on
64-bit archs
bugzilla-daemon@freedesktop.org
bugzilla-daemon@freedesktop.org
Tue Jan 18 15:42:56 PST 2005
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=2322
------- Additional Comments From mike.work@besm6.org 2005-01-18 15:42 -------
I have tracked this down to an off-by-1 error in hw/xfree86/common/xf86pciBus.c.
Function FindPCIVideoInfo(), lines ##292-409. [against CVS ver. 1.6]
When the HW claims a 64-bit BAR, the code for 64-bit platforms attemps to
construct a 64-bit long value, however, instead of reading BAR[i+1] for the
upper half, it gets BAR[i+2].
I am proposing 2 possible fixes for the problem, which are reflected in 2
attached patches. One (minimal) simply fixes the immediate problem at hand.
The other (aggressive) additionaly makes some rearrengements to the code, that,
I thought, were appropriate.
It also treats BAR5 specially in a way, that IMO is the most reasonable, as the
PCI spec. [both 2.3 and 3.0] remains silent on this issue.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the xorg-bugzilla-noise
mailing list