public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Screen corruption in 2.4.18
@ 2002-03-28 22:46 Bill Hammock
  2002-03-29  0:14 ` Danijel Schiavuzzi
  0 siblings, 1 reply; 33+ messages in thread
From: Bill Hammock @ 2002-03-28 22:46 UTC (permalink / raw)
  To: linux-kernel

>Does everyone who sees this problem have the 8363/5 combination with the
>onboard Pro-Savage
>
>
>Alan


I have this chipset with a built-in S3 Savage and am experiencing the
problem.  Up till now I just removed the line from pci-pc.c, safe or
unsafe it fixed the video garble.

I have the Asus Terminator "bare bones" system.  The small cute all-in-one
box.


00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev 81)
00:01.0 PCI bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133 AGP]
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
00:07.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 06)
00:07.2 USB Controller: VIA Technologies, Inc. UHCI USB (rev 1a)
00:07.3 USB Controller: VIA Technologies, Inc. UHCI USB (rev 1a)
00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
00:07.5 Multimedia audio controller: VIA Technologies, Inc. AC97 Audio Controller (rev 50)
00:0e.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone]
00:12.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
01:00.0 VGA compatible controller: S3 Inc. ProSavage KM133 (rev 03)


Please CC,
BH


^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: Screen corruption in 2.4.18
@ 2002-04-02 22:50 Petr Vandrovec
  2002-04-02 22:09 ` Chris Rankin
  0 siblings, 1 reply; 33+ messages in thread
From: Petr Vandrovec @ 2002-04-02 22:50 UTC (permalink / raw)
  To: Chris Rankin; +Cc: linux-kernel

On  2 Apr 02 at 22:43, Chris Rankin wrote:
> 
> I have an i840 motherboard with dual 733 MHz PIIIs and a Matrox G400 
> MAX, and I am also seeing console corruption with 2.4.18. The difference 
> with me is that I *only* see it when I am using xine (CVS) and the 
> SyncFB video plugin, possibly the Xv video plugin sometimes too. When I 
> kill xine, the regular multicoloured rectangle disappears from the console.
> 
> Whatever is causing this console corruption, it doesn't seem to be a VIA 
> bug (in my case, anyway).

It is something completely different - your color rectangle is xine (or Xv)
still painting to framebuffer although X are no longer visible. If
you are using matroxfb, you should see either single color rectangle
(in overlay mode) or picture from xine (in direct paint mode). With
vgacon you'll see single color areas of strange stable characters in overlay
mode, and multicolored areas of strange changing characters in non-overlay
mode.

VIA corruption exists without X, and appears just immediately, during
kernel boot sequence.
                                    Petr Vandrovec
                                    vandrove@vc.cvut.cz
                                    

^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: Screen corruption in 2.4.18
@ 2002-04-02 21:43 Chris Rankin
  2002-04-02 22:33 ` Richard B. Johnson
  2002-04-02 23:38 ` Erik Ljungström
  0 siblings, 2 replies; 33+ messages in thread
From: Chris Rankin @ 2002-04-02 21:43 UTC (permalink / raw)
  To: VANDROVE; +Cc: linux-kernel

Hi,

I have an i840 motherboard with dual 733 MHz PIIIs and a Matrox G400 
MAX, and I am also seeing console corruption with 2.4.18. The difference 
with me is that I *only* see it when I am using xine (CVS) and the 
SyncFB video plugin, possibly the Xv video plugin sometimes too. When I 
kill xine, the regular multicoloured rectangle disappears from the console.

Obviously, this isn't something that I would normally notice - I 
wouldn't have noticed at all if the CVS xine hadn't locked up on me in 
full-screen mode, forcing me to turn to a console to kill it.

A few other things:
- since I have about 1.25 GB of RAM, I have enabled a 256 MB AGP aperture.
- I am using XFree86 4.2, but with the mga.o module that is native to 
Linux 2.4.18. I have not installed the Matrox HAL X module.

Whatever is causing this console corruption, it doesn't seem to be a VIA 
bug (in my case, anyway).

Chris


^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: Screen corruption in 2.4.18
@ 2002-03-29 12:26 Petr Vandrovec
  0 siblings, 0 replies; 33+ messages in thread
From: Petr Vandrovec @ 2002-03-29 12:26 UTC (permalink / raw)
  To: Andre Pang; +Cc: linux-kernel

On 29 Mar 02 at 13:05, Andre Pang wrote:
> On Fri, Mar 29, 2002 at 01:14:47AM +0100, Danijel Schiavuzzi wrote:
> 
> > > 00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] (rev
> > > 81) 00:01.0 
> > 
> > It's interesting that everyone who is experiencing these problems has the 
> > *revision 81* of the VT8365 chipset! This should be the key...
> 
> You know, we might be barking down the wrong tree.  (Arf.)

>From my findings revision 81 is KL133/KL133A (and only KL133 is affected
by clearing bit 5 in 0x55, KL133A works fine in both configs). KM133/KM133A
have revision 84, and KM133 is affected (I have no idea about KM133A).

> So far, everybody who has reported video corruption seems to have
> a Savage or ProSavage video card.  Maybe it'd be a better idea to

Because of they are integrated with K[LM]133...

> look at the ProSavage data sheets and see if we should be
> tweaking something there?  That would be much safer than playing
> around with the northbridges.

As now we have also report (from G550 user) that PCI -> AGP transfers 
are broken when bit 5 is cleared, I think that playing dangerous games
with northbridge is only way to go.
                                            Petr Vandrovec
                                            vandrove@vc.cvut.cz
                                            

^ permalink raw reply	[flat|nested] 33+ messages in thread
* Re: Screen corruption in 2.4.18
@ 2002-03-25 17:59 Petr Vandrovec
  0 siblings, 0 replies; 33+ messages in thread
From: Petr Vandrovec @ 2002-03-25 17:59 UTC (permalink / raw)
  To: Daniel Gryniewicz; +Cc: linux-kernel

On 25 Mar 02 at 12:07, Daniel Gryniewicz wrote:
> > On Mon, Mar 25, 2002 at 12:43:18PM +1100, Andre Pang wrote:
> > > Can somebody with a KT133/KT133A do a "lspci -n" and grep for
> > > '8305'?  If it doesn't appear, I'll send off my patch.
> > 
> > Sorry to disappoint you:
> > 
> > $ sudo lspci -n | grep 8305
> > 00:01.0 Class 0604: 1106:8305
> 
> 00:00.0 Host bridge: VIA Technologies, Inc. VT8363/8365 [KT133/KM133] 
> (rev 02) (KT7-RAID, KT133)
> 00:01.0 Class 0604: 1106:8305

You can try revisions. All KMxxx I saw had revision 8x, while (this) KT133
has 0x.
                                    Best regards,
                                        Petr Vandrovec
                                        vandrove@vc.cvut.cz
                                        

^ permalink raw reply	[flat|nested] 33+ messages in thread
* Screen corruption in 2.4.18
@ 2002-03-19 21:12 Danijel Schiavuzzi
  2002-03-20  0:03 ` Steven Walter
       [not found] ` <200203201506.QAA13795@jagor.srce.hr>
  0 siblings, 2 replies; 33+ messages in thread
From: Danijel Schiavuzzi @ 2002-03-19 21:12 UTC (permalink / raw)
  To: linux-kernel

Hi.

Some two weeks ago I posted here a kernel bug report regarding
a screen corruption issue. You can find it here:
http://www.uwsg.indiana.edu/hypermail/linux/kernel/0203.0/1577.html

As I didn't know if it's my hardware that is the cause of corruption,
searched over the Internet and found that Thomas Brehm is also
having the same problem, and he has the same motherboard as me
(MSI MS-6340M, VIA KM133 chipset - VT8365 north + VIA686B south bridge).

Short problem description: 2.4.17 kernel works fine, but any kernel
higher than this makes the screen corrupted in any text or VESA fb
mode. In standard text mode, the screen gets filled with vertical
lines. In vesafb mode, random horizontal lines appear on the screen.

However, I made up the 2.4.18 kernel to boot up properly by 
replacing the file

	./linux/arch/i386/pci-pc.c

with that from the 2.4.17 kernel. The kernel runs fine now.

So, what seems to make the screen corruption?

						-- Danijel

P.S.  Here is a diff between the two pci-pc.c files:

------------------------- begin -------------------------

1112c1112,1113
<  * Nobody seems to know what this does. Damn.
---
>  * Addresses issues with problems in the memory write queue timer in
>  * certain VIA Northbridges.  This bugfix is per VIA's specifications.
1114,1118c1115,1118
<  * But it does seem to fix some unspecified problem
<  * with 'movntq' copies on Athlons.
<  *
<  * VIA 8363 chipset:
<  *  - bit 7 at offset 0x55: Debug (RW)
---
>  * VIA 8363,8622,8361 Northbridges:
>  *  - bits  5, 6, 7 at offset 0x55 need to be turned off
>  * VIA 8367 (KT266x) Northbridges:
>  *  - bits  5, 6, 7 at offset 0x95 need to be turned off
1120c1120
< static void __init pci_fixup_via_athlon_bug(struct pci_dev *d)
---
> static void __init pci_fixup_via_northbridge_bug(struct pci_dev *d)
1123,1127c1123,1134
< 	pci_read_config_byte(d, 0x55, &v);
< 	if (v & 0x80) {
< 		printk("Trying to stomp on Athlon bug...\n");
< 		v &= 0x7f; /* clear bit 55.7 */
< 		pci_write_config_byte(d, 0x55, v);
---
> 	int where = 0x55;
> 
> 	if (d->device == PCI_DEVICE_ID_VIA_8367_0) {
> 		where = 0x95; /* the memory write queue timer register is 
> 				 different for the kt266x's: 0x95 not 0x55 */
> 	}
> 
> 	pci_read_config_byte(d, where, &v);
> 	if (v & 0xe0) {
> 		printk("Disabling VIA memory write queue: [%02x] %02x->%02x\n", where, v, 
v & 0x1f);
> 		v &= 0x1f; /* clear bits 5, 6, 7 */
> 		pci_write_config_byte(d, where, v);
1140c1147,1150
< 	{ PCI_FIXUP_HEADER,	PCI_VENDOR_ID_VIA,	PCI_DEVICE_ID_VIA_8363_0,	
pci_fixup_via_athlon_bug },
---
> 	{ PCI_FIXUP_HEADER,	PCI_VENDOR_ID_VIA,	PCI_DEVICE_ID_VIA_8363_0,	
pci_fixup_via_northbridge_bug },
> 	{ PCI_FIXUP_HEADER,	PCI_VENDOR_ID_VIA,	PCI_DEVICE_ID_VIA_8622,	        
pci_fixup_via_northbridge_bug },
> 	{ PCI_FIXUP_HEADER,	PCI_VENDOR_ID_VIA,	PCI_DEVICE_ID_VIA_8361,	        
pci_fixup_via_northbridge_bug },
> 	{ PCI_FIXUP_HEADER,	PCI_VENDOR_ID_VIA,	PCI_DEVICE_ID_VIA_8367_0,	
pci_fixup_via_northbridge_bug },

------------------------------ end ------------------------------

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2002-04-03 20:34 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-28 22:46 Screen corruption in 2.4.18 Bill Hammock
2002-03-29  0:14 ` Danijel Schiavuzzi
2002-03-29  2:05   ` Andre Pang
  -- strict thread matches above, loose matches on Subject: below --
2002-04-02 22:50 Petr Vandrovec
2002-04-02 22:09 ` Chris Rankin
2002-04-02 21:43 Chris Rankin
2002-04-02 22:33 ` Richard B. Johnson
2002-04-02 22:40   ` Chris Rankin
2002-04-03 14:00     ` Richard B. Johnson
2002-04-03 20:34       ` Chris Rankin
2002-04-02 23:38 ` Erik Ljungström
2002-03-29 12:26 Petr Vandrovec
2002-03-25 17:59 Petr Vandrovec
2002-03-19 21:12 Danijel Schiavuzzi
2002-03-20  0:03 ` Steven Walter
     [not found] ` <200203201506.QAA13795@jagor.srce.hr>
     [not found]   ` <20020320172516.GA14024@hapablap.dyn.dhs.org>
     [not found]     ` <200203211209.NAA11121@jagor.srce.hr>
2002-03-21 17:22       ` Steven Walter
     [not found]         ` <200203222204.XAA01121@jagor.srce.hr>
2002-03-22 23:23           ` Steven Walter
     [not found]             ` <200203231526.QAA09302@jagor.srce.hr>
2002-03-23 16:06               ` Steven Walter
2002-03-24  7:05                 ` Andre Pang
2002-03-24 15:07                   ` Danijel Schiavuzzi
2002-03-24 16:51                     ` Alan Cox
2002-03-24 17:13                       ` Danijel Schiavuzzi
2002-03-25  1:43                     ` Andre Pang
2002-03-25  2:40                       ` Steven Walter
2002-03-25  3:00                         ` Andre Pang
2002-03-25  8:50                       ` Marc Wilson
2002-03-25 17:07                         ` Daniel Gryniewicz
2002-03-25 21:02                         ` Steven Walter
2002-03-25 21:19                           ` Marc Wilson
2002-03-29  2:06                         ` Andre Pang
2002-03-29  3:16                           ` Marc Wilson
2002-03-25  1:55                     ` Andre Pang
2002-03-25 19:52                       ` Danijel Schiavuzzi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox