2005-02-15 20:32:21

by Pavel Machek

[permalink] [raw]
Subject: Re: [BUG] 2.6.11-rc[234] setfont fails on i810 after resume from ACPI-S3

Hi!

> Any thoughts on this one? We should come back from resume in 30-row mode,
> shouldn't we?

Well, current state of video resume is "we are happy to see anything
at all".

> HW info
>
> Using vga=0xf07, default8x16 font, display has 30 lines
>
> On powerup from S3 console has only 25 lines but still scrolls
> at 30 lines. Setfont historically fixes it.
>
> Tested with 2.6.10, 2.6.11-rc1: OK
>
> Tested with 2.6.11-rc2-Vanilla and 2.6.11-rc[234]+swsusp2.
> When using setfont, screen goes blank. Power up after S3
> returns console in 25 lines mode with 30 lines scroll.
> Several attempts - same result.

So... screen goes blank even when suspend is not involved, right?
Sounds like a bug to me ;-).

> Another bug I see only on this HW and only with 2.6 is that
> when - and only when - using gentoo emerge --usepackage in
> text console, scroll area resets to _25_ when portage
> "dumps" the (binary) package contents which scrolls pretty
> fast. I was unable to reproduce this in any other way.
> Tried also echo loop in bash but perhaps it is too slow
> or not random enough. Note that 2.4.2[789] no problem.

Well, dumping random stuff to console can produce funny results. I'd
call that normal. Try cat /dev/urandom, that should be "enough
random".

Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!


2005-02-21 23:13:33

by James Courtier-Dutton

[permalink] [raw]
Subject: Re: [BUG] 2.6.11-rc[234] setfont fails on i810 after resume from ACPI-S3

Pavel Machek wrote:
> Hi!
>
>
>>Any thoughts on this one? We should come back from resume in 30-row mode,
>>shouldn't we?
>
>
> Well, current state of video resume is "we are happy to see anything
> at all".
>
>
>>HW info
>>
>>Using vga=0xf07, default8x16 font, display has 30 lines
>>
>>On powerup from S3 console has only 25 lines but still scrolls
>>at 30 lines. Setfont historically fixes it.
>>
>>Tested with 2.6.10, 2.6.11-rc1: OK
>>
>>Tested with 2.6.11-rc2-Vanilla and 2.6.11-rc[234]+swsusp2.
>>When using setfont, screen goes blank. Power up after S3
>>returns console in 25 lines mode with 30 lines scroll.
>>Several attempts - same result.
>
>
> So... screen goes blank even when suspend is not involved, right?
> Sounds like a bug to me ;-).
>
>
>>Another bug I see only on this HW and only with 2.6 is that
>>when - and only when - using gentoo emerge --usepackage in
>>text console, scroll area resets to _25_ when portage
>>"dumps" the (binary) package contents which scrolls pretty
>>fast. I was unable to reproduce this in any other way.
>>Tried also echo loop in bash but perhaps it is too slow
>>or not random enough. Note that 2.4.2[789] no problem.
>
>
> Well, dumping random stuff to console can produce funny results. I'd
> call that normal. Try cat /dev/urandom, that should be "enough
> random".
>
> Pavel

I am also getting strange effects. I boot into 2.6.11-rc4 and the
console fonts looks fine. Come back a day later and the console font has
corrupt characters. E.g. Displays a "D" instead of an "L" and stuff
like that. It is mostly readable, except for a few characters.
It is only the local console that is corrupted. ssh into the box
displays correct characters, so all I can assume is that the VGA console
is being programmed with different characters. The bad characters also
survive a soft reboot( During BIOS boot up), until the linux kernel
starts booting, and then it switches to a good font.

2005-02-21 23:14:26

by James Courtier-Dutton

[permalink] [raw]
Subject: Re: [BUG] 2.6.11-rc[234] setfont fails on i810 after resume from ACPI-S3

Pavel Machek wrote:
> Hi!
>
>
>>Any thoughts on this one? We should come back from resume in 30-row mode,
>>shouldn't we?
>
>
> Well, current state of video resume is "we are happy to see anything
> at all".
>
>
>>HW info
>>
>>Using vga=0xf07, default8x16 font, display has 30 lines
>>
>>On powerup from S3 console has only 25 lines but still scrolls
>>at 30 lines. Setfont historically fixes it.
>>
>>Tested with 2.6.10, 2.6.11-rc1: OK
>>
>>Tested with 2.6.11-rc2-Vanilla and 2.6.11-rc[234]+swsusp2.
>>When using setfont, screen goes blank. Power up after S3
>>returns console in 25 lines mode with 30 lines scroll.
>>Several attempts - same result.
>
>
> So... screen goes blank even when suspend is not involved, right?
> Sounds like a bug to me ;-).
>
>
>>Another bug I see only on this HW and only with 2.6 is that
>>when - and only when - using gentoo emerge --usepackage in
>>text console, scroll area resets to _25_ when portage
>>"dumps" the (binary) package contents which scrolls pretty
>>fast. I was unable to reproduce this in any other way.
>>Tried also echo loop in bash but perhaps it is too slow
>>or not random enough. Note that 2.4.2[789] no problem.
>
>
> Well, dumping random stuff to console can produce funny results. I'd
> call that normal. Try cat /dev/urandom, that should be "enough
> random".
>
> Pavel

I am also getting strange effects. I boot into 2.6.11-rc4 and the
console fonts looks fine. Come back a day later and the console font has
corrupt characters. E.g. Displays a "D" instead of an "L" and stuff
like that. It is mostly readable, except for a few characters.
It is only the local console that is corrupted. ssh into the box
displays correct characters, so all I can assume is that the VGA console
is being programmed with different characters. The bad characters also
survive a soft reboot( During BIOS boot up), until the linux kernel
starts booting, and then it switches to a good font.

2005-02-27 17:00:12

by Pavel Machek

[permalink] [raw]
Subject: Re: [BUG] 2.6.11-rc[234] setfont fails on i810 after resume from ACPI-S3

Hi!

> >Well, dumping random stuff to console can produce funny results. I'd
> >call that normal. Try cat /dev/urandom, that should be "enough
> >random".
>
> I am also getting strange effects. I boot into 2.6.11-rc4 and the
> console fonts looks fine. Come back a day later and the console font has
> corrupt characters. E.g. Displays a "D" instead of an "L" and stuff
> like that. It is mostly readable, except for a few characters.
> It is only the local console that is corrupted. ssh into the box
> displays correct characters, so all I can assume is that the VGA console
> is being programmed with different characters. The bad characters also
> survive a soft reboot( During BIOS boot up), until the linux kernel
> starts booting, and then it switches to a good font.

I have seen something similar on S3 cards with bad video ram (we had
>3 of them). If it survives soft reboot... well, that looks like
hardware problem to me. [We may do something bad in linux, too, but
strange effects should not survive reboot, that's hw bug. I'd suggest
memtest on video ram, but someone would need to write that tool, first].

Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!