2007-06-10 03:16:17

by John Richard Moser

[permalink] [raw]
Subject: via_drm bug

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This has been an on-going issue for.... I don't know how long. I
reported it a while ago but it's still in 2.6.22.

Here's another error log. Loaded the Via driver in Xorg with kernel
2.6.22 on Ubuntu, got the following in dmesg. The [drm:via_mem_alloc]
error may be the problem. This is on a 32-bit kernel.

See also:

https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-via/+bug/72630



[264565.164000] [drm] Initialized via 2.11.1 20070202 on minor 0
[264565.168000] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level,
low) -> IRQ 21
[264565.168000] [drm] Initialized via 2.11.1 20070202 on minor 1
[264565.184000] agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0.
[264565.184000] agpgart: Xorg tried to set rate=x12. Setting to AGP3 x8
mode.
[264565.184000] agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
[264565.184000] agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode
[264565.192000] [drm:via_mem_alloc] *ERROR* Attempt to allocate from
uninitialized memory manager.
[264565.296000] powernow-k8: error - out of sync, fix 0x2 0xa, vid 0x0 0x0
[264565.296000] powernow-k8: ph2 null fid transition 0xa
[264565.692000] irq 21: nobody cared (try booting with the "irqpoll" option)
[264565.692000] [<c015bcc4>] __report_bad_irq+0x24/0x80
[264565.692000] [<c015bf82>] note_interrupt+0x262/0x2a0
[264565.692000] [<c015b1e0>] handle_IRQ_event+0x30/0x60
[264565.692000] [<c015c96b>] handle_fasteoi_irq+0xbb/0xf0
[264565.692000] [<c0106b1b>] do_IRQ+0x3b/0x70
[264565.692000] [<c0118735>] smp_apic_timer_interrupt+0x55/0x80
[264565.692000] [<c0102e00>] default_idle+0x0/0x60
[264565.692000] [<c0105223>] common_interrupt+0x23/0x30
[264565.692000] [<c0102e00>] default_idle+0x0/0x60
[264565.692000] [<c011db72>] native_safe_halt+0x2/0x10
[264565.692000] [<c0102e3c>] default_idle+0x3c/0x60
[264565.692000] [<c0102413>] cpu_idle+0x53/0xe0
[264565.692000] [<c03dfa7f>] start_kernel+0x31f/0x3b0
[264565.692000] [<c03df1f0>] unknown_bootoption+0x0/0x260
[264565.692000] =======================
[264565.692000] handlers:
[264565.692000] [<f8eb6480>] (via_driver_irq_handler+0x0/0x1d0 [via])
[264565.692000] Disabling IRQ #21



Device:

01:00.0 VGA compatible controller: VIA Technologies, Inc. S3 Unichrome
Pro VGA Adapter (rev 01)


lshw segment:

*-display
description: VGA compatible controller
product: S3 Unichrome Pro VGA Adapter
vendor: VIA Technologies, Inc.
physical id: 0
bus info: pci@01:00.0
version: 01
size: 64MB
width: 32 bits
clock: 66MHz
capabilities: vga bus_master cap_list
configuration: latency=32 mingnt=2
resources: iomemory:e4000000-e7ffffff
iomemory:e8000000-e8ffffff irq:21


- --
We will enslave their women, eat their children and rape their
cattle!
-- Bosc, Evil alien overlord from the fifth dimension
LiveCD Creator Poll: http://ubuntuforums.org/showthread.php?t=435562
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBRmtq2ws1xW0HCTEFAQKthhAAmEDCkQGl5tEfioxZE67/a1EkVKQisIwk
YWKKZ/+5uQo/wo1V/HWIekRICByYVjuK3vqnJmXo9VEk37L/ZRQgcDDiMyG5lRwR
UhtYFVEMkPyr923EKGXyQCjdNaYDHWHz4VWOtf1mpyPMP3WVByvOJcGWikv/wWcl
BLb37+tk9Wv7846zwoTwREStZHJbhoSac+VSidgV3koIjeeOCqFwicNP+6ycOSbE
PnBQ/sjsbagw7DdweDR6QvDzxtnS/KP4adGutXGJUQYN1s4R5YDIDF7Qk1M1hNN7
7IH7KNwNXwzKq3v6jCcYrprOthBrB7Xho2s8nM+fT3Kzwpj+UTy/wvesEQQNbDSD
jTVGFa4qjQIdgf4G/n88Wv4Pm2yHC1dRyPrrRz8TX2rv4A3cqlC+REYfVyHhS9Uh
2gNUOctawvAM1rL2peG9SDvsEJNYIzoV/jL61zit3Jpkevc34Aq1wrxj+cyxchJI
7zUtshxGCOOIiEwgJ9u/5E0T128hXGIX9Nm3Cb6bdj5aVRv+kso/bpMGGcn5+opa
JdUYg9avJMbJtlmfWtz7EEACLB8DeUTbCFKZ2ctoqCm4UKkyex2uX+sAAI1hbjpZ
oPYcXEs4bcb8BlZpntykybjlJUtGOeTlCyULeWATNHDF+txgTnpkp7U79Z73EXIL
vI9KkUJ2qho=
=hmgi
-----END PGP SIGNATURE-----


2007-06-10 04:32:27

by Dave Airlie

[permalink] [raw]
Subject: Re: via_drm bug

On 6/10/07, John Richard Moser <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> This has been an on-going issue for.... I don't know how long. I
> reported it a while ago but it's still in 2.6.22.
>
> Here's another error log. Loaded the Via driver in Xorg with kernel
> 2.6.22 on Ubuntu, got the following in dmesg. The [drm:via_mem_alloc]
> error may be the problem. This is on a 32-bit kernel.
>

I've cc'ed Thomas to see if he can help out, he knows the via drm ..

Dave.

> See also:
>
> https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-via/+bug/72630
>
>
>
> [264565.164000] [drm] Initialized via 2.11.1 20070202 on minor 0
> [264565.168000] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level,
> low) -> IRQ 21
> [264565.168000] [drm] Initialized via 2.11.1 20070202 on minor 1
> [264565.184000] agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0.
> [264565.184000] agpgart: Xorg tried to set rate=x12. Setting to AGP3 x8
> mode.
> [264565.184000] agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
> [264565.184000] agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode
> [264565.192000] [drm:via_mem_alloc] *ERROR* Attempt to allocate from
> uninitialized memory manager.
> [264565.296000] powernow-k8: error - out of sync, fix 0x2 0xa, vid 0x0 0x0
> [264565.296000] powernow-k8: ph2 null fid transition 0xa
> [264565.692000] irq 21: nobody cared (try booting with the "irqpoll" option)
> [264565.692000] [<c015bcc4>] __report_bad_irq+0x24/0x80
> [264565.692000] [<c015bf82>] note_interrupt+0x262/0x2a0
> [264565.692000] [<c015b1e0>] handle_IRQ_event+0x30/0x60
> [264565.692000] [<c015c96b>] handle_fasteoi_irq+0xbb/0xf0
> [264565.692000] [<c0106b1b>] do_IRQ+0x3b/0x70
> [264565.692000] [<c0118735>] smp_apic_timer_interrupt+0x55/0x80
> [264565.692000] [<c0102e00>] default_idle+0x0/0x60
> [264565.692000] [<c0105223>] common_interrupt+0x23/0x30
> [264565.692000] [<c0102e00>] default_idle+0x0/0x60
> [264565.692000] [<c011db72>] native_safe_halt+0x2/0x10
> [264565.692000] [<c0102e3c>] default_idle+0x3c/0x60
> [264565.692000] [<c0102413>] cpu_idle+0x53/0xe0
> [264565.692000] [<c03dfa7f>] start_kernel+0x31f/0x3b0
> [264565.692000] [<c03df1f0>] unknown_bootoption+0x0/0x260
> [264565.692000] =======================
> [264565.692000] handlers:
> [264565.692000] [<f8eb6480>] (via_driver_irq_handler+0x0/0x1d0 [via])
> [264565.692000] Disabling IRQ #21
>
>
>
> Device:
>
> 01:00.0 VGA compatible controller: VIA Technologies, Inc. S3 Unichrome
> Pro VGA Adapter (rev 01)
>
>
> lshw segment:
>
> *-display
> description: VGA compatible controller
> product: S3 Unichrome Pro VGA Adapter
> vendor: VIA Technologies, Inc.
> physical id: 0
> bus info: pci@01:00.0
> version: 01
> size: 64MB
> width: 32 bits
> clock: 66MHz
> capabilities: vga bus_master cap_list
> configuration: latency=32 mingnt=2
> resources: iomemory:e4000000-e7ffffff
> iomemory:e8000000-e8ffffff irq:21
>
>
> - --
> We will enslave their women, eat their children and rape their
> cattle!
> -- Bosc, Evil alien overlord from the fifth dimension
> LiveCD Creator Poll: http://ubuntuforums.org/showthread.php?t=435562
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iQIVAwUBRmtq2ws1xW0HCTEFAQKthhAAmEDCkQGl5tEfioxZE67/a1EkVKQisIwk
> YWKKZ/+5uQo/wo1V/HWIekRICByYVjuK3vqnJmXo9VEk37L/ZRQgcDDiMyG5lRwR
> UhtYFVEMkPyr923EKGXyQCjdNaYDHWHz4VWOtf1mpyPMP3WVByvOJcGWikv/wWcl
> BLb37+tk9Wv7846zwoTwREStZHJbhoSac+VSidgV3koIjeeOCqFwicNP+6ycOSbE
> PnBQ/sjsbagw7DdweDR6QvDzxtnS/KP4adGutXGJUQYN1s4R5YDIDF7Qk1M1hNN7
> 7IH7KNwNXwzKq3v6jCcYrprOthBrB7Xho2s8nM+fT3Kzwpj+UTy/wvesEQQNbDSD
> jTVGFa4qjQIdgf4G/n88Wv4Pm2yHC1dRyPrrRz8TX2rv4A3cqlC+REYfVyHhS9Uh
> 2gNUOctawvAM1rL2peG9SDvsEJNYIzoV/jL61zit3Jpkevc34Aq1wrxj+cyxchJI
> 7zUtshxGCOOIiEwgJ9u/5E0T128hXGIX9Nm3Cb6bdj5aVRv+kso/bpMGGcn5+opa
> JdUYg9avJMbJtlmfWtz7EEACLB8DeUTbCFKZ2ctoqCm4UKkyex2uX+sAAI1hbjpZ
> oPYcXEs4bcb8BlZpntykybjlJUtGOeTlCyULeWATNHDF+txgTnpkp7U79Z73EXIL
> vI9KkUJ2qho=
> =hmgi
> -----END PGP SIGNATURE-----
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

2007-06-10 05:30:56

by John Richard Moser

[permalink] [raw]
Subject: Re: via_drm bug

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Dave Airlie wrote:
> On 6/10/07, John Richard Moser <[email protected]> wrote:
> This has been an on-going issue for.... I don't know how long. I
> reported it a while ago but it's still in 2.6.22.
>
> Here's another error log. Loaded the Via driver in Xorg with kernel
> 2.6.22 on Ubuntu, got the following in dmesg. The [drm:via_mem_alloc]
> error may be the problem. This is on a 32-bit kernel.
>
>
>> I've cc'ed Thomas to see if he can help out, he knows the via drm ..
>

I may not be able to contribute much testing soon, as this board is
moving out of this machine and I don't have another to put it into for
the moment. After that it won't be my problem any more, but it'd still
be nice to have it fixed.

It's been bugging me for a while because it seems to be just a piece of
faulty memory management code (probably a bug in the DMA code), but it
hasn't been fixed in several revisions. Oh well, I'm sure no one's
really looking, so it's good to bring it up and pull out the latest
debug data to say "Yes this is really still broken" once in a while :)

Interestingly enough, I haven't managed to get it to take down the
system since a while back (it used to hard-freeze the kernel).



>> Dave.
>
> See also:
>
> https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-via/+bug/72630
>
>
>
>
> [264565.164000] [drm] Initialized via 2.11.1 20070202 on minor 0
> [264565.168000] ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level,
> low) -> IRQ 21
> [264565.168000] [drm] Initialized via 2.11.1 20070202 on minor 1
> [264565.184000] agpgart: Found an AGP 3.0 compliant device at
> 0000:00:00.0.
> [264565.184000] agpgart: Xorg tried to set rate=x12. Setting to AGP3 x8
> mode.
> [264565.184000] agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x
> mode
> [264565.184000] agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x
> mode
> [264565.192000] [drm:via_mem_alloc] *ERROR* Attempt to allocate from
> uninitialized memory manager.
> [264565.296000] powernow-k8: error - out of sync, fix 0x2 0xa, vid 0x0
> 0x0
> [264565.296000] powernow-k8: ph2 null fid transition 0xa
> [264565.692000] irq 21: nobody cared (try booting with the "irqpoll"
> option)
> [264565.692000] [<c015bcc4>] __report_bad_irq+0x24/0x80
> [264565.692000] [<c015bf82>] note_interrupt+0x262/0x2a0
> [264565.692000] [<c015b1e0>] handle_IRQ_event+0x30/0x60
> [264565.692000] [<c015c96b>] handle_fasteoi_irq+0xbb/0xf0
> [264565.692000] [<c0106b1b>] do_IRQ+0x3b/0x70
> [264565.692000] [<c0118735>] smp_apic_timer_interrupt+0x55/0x80
> [264565.692000] [<c0102e00>] default_idle+0x0/0x60
> [264565.692000] [<c0105223>] common_interrupt+0x23/0x30
> [264565.692000] [<c0102e00>] default_idle+0x0/0x60
> [264565.692000] [<c011db72>] native_safe_halt+0x2/0x10
> [264565.692000] [<c0102e3c>] default_idle+0x3c/0x60
> [264565.692000] [<c0102413>] cpu_idle+0x53/0xe0
> [264565.692000] [<c03dfa7f>] start_kernel+0x31f/0x3b0
> [264565.692000] [<c03df1f0>] unknown_bootoption+0x0/0x260
> [264565.692000] =======================
> [264565.692000] handlers:
> [264565.692000] [<f8eb6480>] (via_driver_irq_handler+0x0/0x1d0 [via])
> [264565.692000] Disabling IRQ #21
>
>
>
> Device:
>
> 01:00.0 VGA compatible controller: VIA Technologies, Inc. S3 Unichrome
> Pro VGA Adapter (rev 01)
>
>
> lshw segment:
>
> *-display
> description: VGA compatible controller
> product: S3 Unichrome Pro VGA Adapter
> vendor: VIA Technologies, Inc.
> physical id: 0
> bus info: pci@01:00.0
> version: 01
> size: 64MB
> width: 32 bits
> clock: 66MHz
> capabilities: vga bus_master cap_list
> configuration: latency=32 mingnt=2
> resources: iomemory:e4000000-e7ffffff
> iomemory:e8000000-e8ffffff irq:21
>
>
-