Bug 12631 - mga can't find "Video BIOS info block" on FreeBSD
Summary: mga can't find "Video BIOS info block" on FreeBSD
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/mga (show other bugs)
Version: 7.3 (2007.09)
Hardware: x86 (IA32) FreeBSD
: medium normal
Assignee: Tilman Sauerbeck
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-30 11:32 UTC by Warren Block
Modified: 2018-06-12 19:10 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Warren Block 2007-09-30 11:32:48 UTC
mga-1.4.7 and mga-1.9.99 can't find the "Video Bios info block" on FreeBSD 6.2-STABLE, preventing the driver from using BIOS features like xrandr outputs.

From /var/log/Xorg.0.log:

(II) Module vgahw: vendor="X.Org Foundation"
        compiled for 1.4.0, module version = 0.1.0
        ABI class: X.Org Video Driver, version 2.0
(--) MGA(0): Chipset: "mgag400" (G450)
(==) MGA(0): Depth 24, (==) framebuffer bpp 32
(==) MGA(0): RGB weight 888
(==) MGA(0): Using AGP 1x mode
(==) MGA(0): Using XAA acceleration
(--) MGA(0): Linear framebuffer at 0xDC000000
(==) MGA(0): MMIO registers at 0xDFEFC000
(--) MGA(0): Pseudo-DMA transfer window at 0xDF000000
(--) MGA(0): BIOS at 0xDFEC0000
Requesting insufficient memory window!: start: 0xdee00000 end: 0xdfefffff size 0
x2000000
(EE) Cannot find empty range to map base to
(WW) MGA(0): Video BIOS info block not detected!
Comment 1 Tilman Sauerbeck 2007-10-01 03:42:29 UTC
Ian, do you have any idea on this other than trying xserver from master?

Warren told me that xserver 1.3 and version 1.4.7 worked fine on a Linux system, so maybe this is FreeBSD specific.
Comment 2 Warren Block 2007-10-20 20:32:06 UTC
In hw/xfree86/os-support/bus/Pci.c, handlePciBIOS looks for a mem base
(see /* if we use a mem base save it and move it out of the way */
section of the code).  If a mem base is used, the code tries to find a
PCI space large enough to hold it.  On my Matrox G450 with 32M of RAM,
it fails to find a 32M space and doesn't copy the video BIOS ROM.  

The ROM copy code will be replaced by the libpciaccess
pci_device_freebsd_read_rom soon, and should fix the problem.
Comment 3 Sergey Svishchev 2008-02-09 10:33:48 UTC
mga has the same problem on NetBSD; how it should be fixed there?
Comment 4 Adam Jackson 2018-06-12 19:10:36 UTC
Mass closure: This bug has been untouched for more than six years, and is not
obviously still valid. Please reopen this bug or file a new report if you continue to experience issues with current releases.


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.