|
From: Antonino D. <ad...@po...> - 2003-03-11 22:36:30
|
On Wed, 2003-03-12 at 06:05, Jon Smirl wrote: > If your in messing with the early boot sequence, why > don't you make the kernel initialize all of the video > cards in the system instead of only the primary one. Because I don't know how to :)? It basically just involves a far call no, if we know where the VBIOS code actually starts? Note that this will still be arch-specific. Separate non-primary card initialization code for each arch is still necessary. > > Alsom is it really better to continue messing with > these real mode X86 BIOS calls, or would it just be > better to try and extract the info from the card > vendors on how to do reset or get the DDC info? If we Initialization can only be done in real mode. Once the kernel is in protected mode, BIOS code cannot be run again (without extreme difficulty), so resetting is out of the question. Unfortunately, we don't have info from manufacturers, so we rely on some standards, such as VESA, to do it transparently for us. Still VESA code is mostly 16-bit. > had the info about the cards we could just ignore the > VBIOS and write this code into the protected mode FB > drivers where it belongs. This problem just keeps > recurring over and over on the non-X86 platforms; it's > stupid having to carry around an X86 emulator just to > run the VBIOS code. Again, most BIOS code cannot run in protected mode, so we need to emulate a real-mode environment for them. It's doubtful that Linus would want that in his kernel. Our only chance to do this is during early boot, or in user space. > > I have a user space program that can reset secondary > cards using their VBIOS and emulating X86 real mode. > It can probably be easily modified to get the DDC info > and then IOCTL it into the fb driver. I'll post it if > you want. > Yes, let me see what I can do. Tony |