* Graphic issues (emulating VGA bios on IBM Maple)
@ 2006-10-10 20:36 jean-francois simon
2006-10-11 13:49 ` Michel Dänzer
2006-10-11 22:16 ` Benjamin Herrenschmidt
0 siblings, 2 replies; 5+ messages in thread
From: jean-francois simon @ 2006-10-10 20:36 UTC (permalink / raw)
To: linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 3762 bytes --]
Hi,
I have ported the x86emu x86 emulator to IBM PIBS firmware on a Maple
platform. I am now trying to emulate a PCI ATI RADEON RV100 VGA BIOS.
It goes all the way and seems OK. When I boot Linux , the card is
recognized (it wasn't before), but the screen just flickers a couple of
time. I worry about the message:
"radeonfb: Retrieved PLL infos from BIOS" since I don't have a BIOS.
And the radeon_base.c driver seems to be doing a bunch of them:
/*
* Check out if we have an X86 which gave us some PLL
informations
* and if yes, retrieve them
*/
if (!force_measure_pll && rinfo->bios_seg) {
u16 pll_info_block = BIOS_IN16(rinfo->fp_bios_start +
0x30);
rinfo->pll.sclk = BIOS_IN16(pll_info_block +
0x08);
rinfo->pll.mclk = BIOS_IN16(pll_info_block +
0x0a);
rinfo->pll.ref_clk = BIOS_IN16(pll_info_block +
0x0e);
rinfo->pll.ref_div = BIOS_IN16(pll_info_block +
0x10);
rinfo->pll.ppll_min = BIOS_IN32(pll_info_block +
0x12);
rinfo->pll.ppll_max = BIOS_IN32(pll_info_block +
0x16);
printk(KERN_INFO "radeonfb: Retrieved PLL infos from
BIOS\n");
goto found;
The PLL values may be bogus..
Thanks for any help.
-jf simon
radeonfb_pci_register BEGIN
aper_base: 80000000 MC_FB_LOC to: 83ff8000, MC_AGP_LOC to: ffff9000
radeonfb (0000:02:01.0): Found 32768k of DDR 64 bits wide videoram
radeonfb (0000:02:01.0): mapped 16384k videoram
radeonfb: Found Intel x86 BIOS ROM Image
radeonfb: No ATY,RefCLK property !
radeonfb: Retrieved PLL infos from BIOS
radeonfb: Reference=27.00 MHz (RefDiv=60) Memory=150.00 Mhz,
System=150.00 MHz
radeonfb: PLL min 12000 max 35000
1 chips in connector info
- chip 1 has 2 connectors
* connector 0 of type 2 (CRT) : 2300
* connector 1 of type 3 (DVI-I) : 3201
Starting monitor auto detection...
radeonfb: I2C (port 1) ... not found
radeonfb: I2C (port 2) ... not found
radeonfb: I2C (port 3) ... found CRT display
radeonfb: I2C (port 4) ... not found
radeon_probe_OF_head
radeonfb: I2C (port 2) ... not found
radeonfb: I2C (port 4) ... not found
radeon_probe_OF_head
radeonfb: I2C (port 3) ... found CRT display
radeonfb: Monitor 1 type CRT found
radeonfb: EDID probed
radeonfb: Monitor 2 type no found
hStart = 1328, hEnd = 1440, hTotal = 1688
vStart = 1025, vEnd = 1028, vTotal = 1066
h_total_disp = 0x9f00d2 hsync_strt_wid = 0xe053a
v_total_disp = 0x3ff0429 vsync_strt_wid = 0x30400
pixclock = 9259
freq = 10800
freq = 10800, PLL min = 12000, PLL max = 35000
ref_div = 60, ref_clk = 2700, output_freq = 21600
ref_div = 60, ref_clk = 2700, output_freq = 21600
post div = 0x1
fb_div = 0x1e0
ppll_div_3 = 0x101e0
Console: switching to colour frame buffer device 160x64
radeonfb (0000:02:01.0): ATI Radeon QY
radeonfb_pci_register END
kobject_register failed for radeonfb (-17)
Call Trace:
[C000000000BFFB60] [C00000000000E97C] .show_stack+0x68/0x1b4
(unreliable)
[C000000000BFFC10] [C00000000017EC54] .kobject_register+0x5c/0x8c
[C000000000BFFCA0] [C0000000001FAAF0] .bus_add_driver+0x7c/0x1b4
[C000000000BFFD50] [C0000000001FBDC8] .driver_register+0xac/0xc8
[C000000000BFFDD0] [C00000000018D084] .__pci_register_driver+0x8c/0xdc
[C000000000BFFE60] [C0000000003CCC9C] .radeonfb_old_init+0x164/0x188
[C000000000BFFF00] [C00000000000929C] .init+0x258/0x3d0
[C000000000BFFF90] [C00000000001E848] .kernel_thread+0x4c/0x68
vga16fb: unable to map device
vga16fb: probe of vga16fb.0 failed with error -12
---------------------------------
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Demandez à ceux qui savent sur Yahoo! Questions/Réponses.
[-- Attachment #2: Type: text/html, Size: 4176 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Graphic issues (emulating VGA bios on IBM Maple)
2006-10-10 20:36 Graphic issues (emulating VGA bios on IBM Maple) jean-francois simon
@ 2006-10-11 13:49 ` Michel Dänzer
2006-10-11 15:06 ` jf simon
2006-10-11 22:16 ` Benjamin Herrenschmidt
1 sibling, 1 reply; 5+ messages in thread
From: Michel Dänzer @ 2006-10-11 13:49 UTC (permalink / raw)
To: jean-francois simon; +Cc: linuxppc-dev
On Tue, 2006-10-10 at 22:36 +0200, jean-francois simon wrote:
> Hi,
> I have ported the x86emu x86 emulator to IBM PIBS firmware on a Maple
> platform. I am now trying to emulate a PCI ATI RADEON RV100 VGA BIOS.
> It goes all the way and seems OK. When I boot Linux , the card is
> recognized (it wasn't before),
If the VGA BIOS POST works correctly, you should probably see some
output in VGA text mode. Do you?
> but the screen just flickers a couple of time. I worry about the message:
> "radeonfb: Retrieved PLL infos from BIOS" since I don't have a BIOS.
It refers to the VGA BIOS.
> The PLL values may be bogus..
[...]
> radeonfb: Retrieved PLL infos from BIOS
> radeonfb: Reference=27.00 MHz (RefDiv=60) Memory=150.00 Mhz,
> System=150.00 MHz
> radeonfb:
> PLL min 12000 max 35000
These look sane.
> radeonfb: I2C (port 3) ... found CRT display
> radeonfb: Monitor 1 type CRT found
> radeonfb: EDID probed
> radeonfb: Monitor 2 type no found
Is this correct?
> hStart = 1328, hEnd = 1440, hTotal = 1688
> vStart = 1025, vEnd = 1028, vTotal = 1066
Does the monitor support this mode?
> kobject_register failed for radeonfb (-17)
> Call Trace:
> [C000000000BFFB60] [C00000000000E97C] .show_stack+0x68/0x1b4
> (unreliable)
> [C000000000BFFC10] [C00000000017EC54] .kobject_register+0x5c/0x8c
> [C000000000BFFCA0] [C0000000001FAAF0] .bus_add_driver+0x7c/0x1b4
> [C000000000BFFD50] [C0000000001FBDC8] .driver_register+0xac/0xc8
> [C000000000BFFDD0] [C00000000018D084] .__pci_register_driver+0x8c/0xdc
> [C000000000BFFE60] [C0000000003CCC9C] .radeonfb_old_init+0x164/0x188
> [C000000000BFFF00] [C00000000000929C] .init+0x258/0x3d0
> [C000000000BFFF90] [C00000000001E848] .kernel_thread+0x4c/0x68
Could this be the problem?
--
Earthling Michel Dänzer | http://tungstengraphics.com
Libre software enthusiast | Debian, X and DRI developer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Graphic issues (emulating VGA bios on IBM Maple)
2006-10-10 20:36 Graphic issues (emulating VGA bios on IBM Maple) jean-francois simon
2006-10-11 13:49 ` Michel Dänzer
@ 2006-10-11 22:16 ` Benjamin Herrenschmidt
2006-10-13 17:36 ` jf simon
1 sibling, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2006-10-11 22:16 UTC (permalink / raw)
To: jean-francois simon; +Cc: linuxppc-dev
> [C000000000BFFE60] [C0000000003CCC9C] .radeonfb_old_init+0x164/0x188
Try getting rid of the old radeonfb and see if that works.
Ben.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-10-13 17:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-10 20:36 Graphic issues (emulating VGA bios on IBM Maple) jean-francois simon
2006-10-11 13:49 ` Michel Dänzer
2006-10-11 15:06 ` jf simon
2006-10-11 22:16 ` Benjamin Herrenschmidt
2006-10-13 17:36 ` jf simon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).