RE: [Linux-fbdev-devel] Re: Generic VESA framebuffer driver and Video card BOOT?

Started by Pallipadi, Venkatesh on Oct 21, 2004 · 2 messages from 2 authors · Last reply Oct 22, 2004

open the first message on its own page

Message details and related content
-----Original Message-----
From: <redacted> 
[mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of Pavel Machek
Sent: Thursday, October 21, 2004 4:23 PM
To: Pallipadi, Venkatesh
Cc: Kendall Bennett; <redacted>; 
linux-fbdev-devel@lists.sourceforge.net; stefandoesinger@gmx.at
Subject: Re: [Linux-fbdev-devel] Re: Generic VESA framebuffer 
driver and Video card BOOT?

Hi!
quoted
quoted
quoted
I have done some experiments with this video post stuff.
I think this should be done using x86 emulator rather than doing 
in real mode. The reason being, with an userlevel emulator 
we can call
quoted
it at different times during resume. The current real 
mode videopost
quoted
quoted
quoted
does 
Actually Ole Rohne has patch that allows you to call real mode any
time you want.
Yes. I tried Ole's patch. That helped on one of my laptops. But, on 
the other one it doesn't work. It goes into real mode but 
never returns.
quoted
Both systems had Radeom 9000M cards, but one with older 
version of the 
quoted
firmware (didn't work) and one with newer version.

IIRC, even Stefan had similar problems with Ole's patch.
It did not work for me, either, but I verified that it works as
expected if I comment out actuall call of BIOS. So the problem is not
with Ole's patch but with bios, and it may be the same if you emulate
it...

[Of course, it will not crash whole system when emulated, but system
without video is not too good, either].
Even I thought so. But, with the emulator it doesn't hang. It brings 
back my video. I double checked this using another vm86 emulator too. 
No hang even there. I couldn't figure out why Ole's patch won't work 
though. Right now I am using call_usermodehelper() to call the 
emulator during resume and the video comes back just fine on this 
system where Ole's patch didn't work.

Thanks,
Venki
Message details and related content
Right now I am using call_usermodehelper() to call the
emulator during resume and the video comes back just fine on this
system where Ole's patch didn't work.
Can you explain me how you do this? call_usermodehelper() doesn't work for me 
at resume time.

BTW, I had a look at the radeon card's resume code at 0xc000:3 and attempted 
to implement it in a kernel module. The code is pretty simple, but it's quite 
long. My module isn't finished, it only turns off the display and resets the 
memory. I had to stop because I've a lot of things to do for school now.

Ole Rohne meant that the code is potentially dangerous because it pokes around 
with undocumented PLL registers, so I will not send it to the list: I will 
send it only to those who explicitly ask for it.

Stefan Dösinger
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help