On 04.12.2013 21:18, John Baldwin wrote: > On Wednesday, December 04, 2013 2:04:57 pm Jean-Sebastien Pedron wrote: >> Author: dumbbell >> Date: Wed Dec 4 19:04:56 2013 >> New Revision: 258930 >> URL: http://svnweb.freebsd.org/changeset/base/258930 >> >> Log: >> drm: Read PCIER_LINK_CAP/PCIER_LINK_CAP2 from the PCI bridge >> >> Before this fix, capabilities were read from vgapci and were incorrect. > > Eh, vgapci is the right place to read this. The LINK_CAP here is telling > you the width of the slot you are plugged into, not the width of the card > that is plugged into the slot.
I'm sorry, my knowledge of PCI is very limited (still learning) and I don't understand your comment. Could you please expand on it? I believe this code has the correct result (eg, same result as Linux 3.8 on the same computer), but maybe I'm doing it wrong and I was just lucky. -- Jean-Sébastien Pédron
signature.asc
Description: OpenPGP digital signature