* "Glove box" BIOS patch causes boot flicker
@ 2010-09-21 23:53 Jan Engelhardt
2010-09-22 0:34 ` H. Peter Anvin
0 siblings, 1 reply; 7+ messages in thread
From: Jan Engelhardt @ 2010-09-21 23:53 UTC (permalink / raw)
To: hpa; +Cc: Linux Kernel Mailing List
Hi,
some (long) time ago, I noticed a change whereby at the start of Linux
(before any log messages are output) the monitor would do one reset on
x86/VGA (the classic modes à la 80x25 - no fbdev stuff). It is only now
that I found enough joy to revisit this.
Between 2.6.30 and 2.6.31, commit cf06de7b9cdd was introduced by you,
which I have bisected the problem down to.
commit cf06de7b9cdd3efee7a59dced1977b3c21d43732
Author: H. Peter Anvin <hpa@linux.intel.com>
Date: Wed Apr 1 18:20:11 2009 -0700
x86, setup: "glove box" BIOS interrupts in the video code
Impact: BIOS proofing
"Glove box" off BIOS interrupts in the video code.
The exact artifacts caused by it are:
- a mode set from 80x25 to 80x25...
- cursor position is reset to the top-left corner, overwriting any
logs from previous code such as BIOSes or bootloaders. Previously, the
linux kernel log nicely followed these, now it is intersecting.
("glove box off" is a ventured description to me. Even the German
translation gave no hint; an image search was required. Suggesting "seal
off".)
Anyhow, the commit description lacks a bit of information to coders
whose area of expertise is outside hardware (net/ is what I do), and why
this commit is needed, given all I seemingly got from it was a
degradation of my VGA console experience.
Could you elaborate on it, and/or what could be done to address the two
issues?
thanks,
Jan
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: "Glove box" BIOS patch causes boot flicker
2010-09-21 23:53 "Glove box" BIOS patch causes boot flicker Jan Engelhardt
@ 2010-09-22 0:34 ` H. Peter Anvin
2010-09-23 18:54 ` Jan Engelhardt
0 siblings, 1 reply; 7+ messages in thread
From: H. Peter Anvin @ 2010-09-22 0:34 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: Linux Kernel Mailing List, H. Peter Anvin
A "glove box" is a device used to handle toxic stuff. In this case the
toxic stuff is the BIOS.
There were some minor bugs (typos) in the conversion to the glove box
coding style. The ones we have found have been fixed, so the first
thing is to try the current mainline or the current tip tree. Otherwise
I would look for issues where either the wrong register is changed, or
something like a variable is changed instead of a field.
-hpa
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: "Glove box" BIOS patch causes boot flicker
2010-09-22 0:34 ` H. Peter Anvin
@ 2010-09-23 18:54 ` Jan Engelhardt
2010-09-23 20:00 ` H. Peter Anvin
0 siblings, 1 reply; 7+ messages in thread
From: Jan Engelhardt @ 2010-09-23 18:54 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: Linux Kernel Mailing List, H. Peter Anvin
On Wednesday 2010-09-22 02:34, H. Peter Anvin wrote:
>There were some minor bugs (typos) in the conversion to the glove box
>coding style. The ones we have found have been fixed, so the first
>thing is to try the current mainline or the current tip tree.
>Otherwise I would look for issues where either the wrong register is
>changed, or something like a variable is changed instead of a field.
I tried v2.6.36-rc5 now, and it looks better. The cursor position is
retained as desired. The mode switch is still there, albeit much
shorter than it used to be.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: "Glove box" BIOS patch causes boot flicker
2010-09-23 18:54 ` Jan Engelhardt
@ 2010-09-23 20:00 ` H. Peter Anvin
2010-09-23 20:46 ` Jan Engelhardt
0 siblings, 1 reply; 7+ messages in thread
From: H. Peter Anvin @ 2010-09-23 20:00 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: H. Peter Anvin, Linux Kernel Mailing List
On 09/23/2010 11:54 AM, Jan Engelhardt wrote:
> On Wednesday 2010-09-22 02:34, H. Peter Anvin wrote:
>
>> There were some minor bugs (typos) in the conversion to the glove box
>> coding style. The ones we have found have been fixed, so the first
>> thing is to try the current mainline or the current tip tree.
>> Otherwise I would look for issues where either the wrong register is
>> changed, or something like a variable is changed instead of a field.
>
> I tried v2.6.36-rc5 now, and it looks better. The cursor position is
> retained as desired. The mode switch is still there, albeit much
> shorter than it used to be.
The mode switch was there in the original code.
-hpa
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: "Glove box" BIOS patch causes boot flicker
2010-09-23 20:00 ` H. Peter Anvin
@ 2010-09-23 20:46 ` Jan Engelhardt
2010-09-23 20:48 ` H. Peter Anvin
0 siblings, 1 reply; 7+ messages in thread
From: Jan Engelhardt @ 2010-09-23 20:46 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: H. Peter Anvin, Linux Kernel Mailing List
On Thursday 2010-09-23 22:00, H. Peter Anvin wrote:
>On 09/23/2010 11:54 AM, Jan Engelhardt wrote:
>> On Wednesday 2010-09-22 02:34, H. Peter Anvin wrote:
>>
>>> There were some minor bugs (typos) in the conversion to the glove box
>>> coding style. The ones we have found have been fixed, so the first
>>> thing is to try the current mainline or the current tip tree.
>>> Otherwise I would look for issues where either the wrong register is
>>> changed, or something like a variable is changed instead of a field.
>>
>> I tried v2.6.36-rc5 now, and it looks better. The cursor position is
>> retained as desired. The mode switch is still there, albeit much
>> shorter than it used to be.
>
>The mode switch was there in the original code.
That may very well be so, but there clearly is distinguished behavior
w.r.t. that in 2.6.36 compared to .30.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: "Glove box" BIOS patch causes boot flicker
2010-09-23 20:46 ` Jan Engelhardt
@ 2010-09-23 20:48 ` H. Peter Anvin
2010-09-23 20:51 ` H. Peter Anvin
0 siblings, 1 reply; 7+ messages in thread
From: H. Peter Anvin @ 2010-09-23 20:48 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: H. Peter Anvin, Linux Kernel Mailing List
On 09/23/2010 01:46 PM, Jan Engelhardt wrote:
>
> On Thursday 2010-09-23 22:00, H. Peter Anvin wrote:
>> On 09/23/2010 11:54 AM, Jan Engelhardt wrote:
>>> On Wednesday 2010-09-22 02:34, H. Peter Anvin wrote:
>>>
>>>> There were some minor bugs (typos) in the conversion to the glove box
>>>> coding style. The ones we have found have been fixed, so the first
>>>> thing is to try the current mainline or the current tip tree.
>>>> Otherwise I would look for issues where either the wrong register is
>>>> changed, or something like a variable is changed instead of a field.
>>>
>>> I tried v2.6.36-rc5 now, and it looks better. The cursor position is
>>> retained as desired. The mode switch is still there, albeit much
>>> shorter than it used to be.
>>
>> The mode switch was there in the original code.
>
> That may very well be so, but there clearly is distinguished behavior
> w.r.t. that in 2.6.36 compared to .30.
Yes, but that caused regressions from the old assembly code.
-hpa
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: "Glove box" BIOS patch causes boot flicker
2010-09-23 20:48 ` H. Peter Anvin
@ 2010-09-23 20:51 ` H. Peter Anvin
0 siblings, 0 replies; 7+ messages in thread
From: H. Peter Anvin @ 2010-09-23 20:51 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: Jan Engelhardt, Linux Kernel Mailing List
On 09/23/2010 01:48 PM, H. Peter Anvin wrote:
> On 09/23/2010 01:46 PM, Jan Engelhardt wrote:
>>
>> On Thursday 2010-09-23 22:00, H. Peter Anvin wrote:
>>> On 09/23/2010 11:54 AM, Jan Engelhardt wrote:
>>>> On Wednesday 2010-09-22 02:34, H. Peter Anvin wrote:
>>>>
>>>>> There were some minor bugs (typos) in the conversion to the glove box
>>>>> coding style. The ones we have found have been fixed, so the first
>>>>> thing is to try the current mainline or the current tip tree.
>>>>> Otherwise I would look for issues where either the wrong register is
>>>>> changed, or something like a variable is changed instead of a field.
>>>>
>>>> I tried v2.6.36-rc5 now, and it looks better. The cursor position is
>>>> retained as desired. The mode switch is still there, albeit much
>>>> shorter than it used to be.
>>>
>>> The mode switch was there in the original code.
>>
>> That may very well be so, but there clearly is distinguished behavior
>> w.r.t. that in 2.6.36 compared to .30.
>
> Yes, but that caused regressions from the old assembly code.
>
By the way, if you don't want a mode reset, use "vga=current".
-hpa
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-09-23 20:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-21 23:53 "Glove box" BIOS patch causes boot flicker Jan Engelhardt
2010-09-22 0:34 ` H. Peter Anvin
2010-09-23 18:54 ` Jan Engelhardt
2010-09-23 20:00 ` H. Peter Anvin
2010-09-23 20:46 ` Jan Engelhardt
2010-09-23 20:48 ` H. Peter Anvin
2010-09-23 20:51 ` H. Peter Anvin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox