Bug 12860

Summary: libpciaccess returns 0 size file in bios_dumper
Product: xorg Reporter: D Bera <dbera.web>
Component: Lib/pciaccessAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: high CC: jeremyhu
Version: 7.2 (2007.02)   
Hardware: x86 (IA32)   
OS: All   
URL: https://bugs.freedesktop.org/show_bug.cgi?id=12059#c17
Whiteboard: 2011BRB_Reviewed
i915 platform: i915 features:

Description D Bera 2007-10-19 05:51:27 UTC
xf86-video-intel/src/bios_reader/bios_dumper returns 0 size file for some machines. I was told that this is a libpciaccess bug.

pci_device_find_by_slot(0, 0, 2, 0);
returns a dev with dev->rom_size=0.
This is a Dell Inspiron 1100 with 82845 graphics card. Here is the relevant lspci output:

00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03) 

00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE  Chipset Integrated Graphics Device (rev 03)
Comment 1 Jeremy Huddleston Sequoia 2011-10-16 16:28:56 UTC
What is the output of:

cat /sys/bus/pci/devices/0000\:00\:02.0/resource

With that, I can see what pci_device_linux_sysfs_probe did with it to come up 
with that result
Comment 2 Jeremy Huddleston Sequoia 2011-10-16 16:34:52 UTC
Marking as dupe of #19061 which provides more information (like the resource 
file requested)

*** This bug has been marked as a duplicate of bug 19061 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.