[patch][regression] after recent update 3d acceleration with savage does not work

Bug #46314 reported by Prinz Igor
46
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Invalid
Undecided
Unassigned
linux-source-2.6.17 (Ubuntu)
Invalid
Undecided
Unassigned
xserver-xorg-video-savage (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

hello,

i am not sure, if this is really a xorg bug. but in the past there were hints (anywhere on dri.freedesktop.org) that the savage driver does not work because an issue in an older version of xorg.

the problem is that dri is active but does not work. glxgears is killed everytime. games like ppracer, scorched3d and cromium show only a blank screen.

under breezy i have tried to compile the driver by my own and the same symptoms appear.

!!at first with dapper beta the problem was solved. dri works fine out of the box (without compiling by myself)!!

until a recent update - now it does not work again. i am not sure but i think it was the update from 7.0.0-0ubuntu43 to 7.0.0-0ubuntu44.

what's the matter? it is annoying when features disappear in the evolution of software.

regards,

prinz igor

Revision history for this message
Prinz Igor (pigor) wrote :
Download full text (48.8 KiB)

below my /etc/X11/xorg.conf and /var/log/Xorg.0.log.

********************************************************
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
 FontPath "/usr/share/X11/fonts/misc"
 FontPath "/usr/share/X11/fonts/cyrillic"
 FontPath "/usr/share/X11/fonts/100dpi/:unscaled"
 FontPath "/usr/share/X11/fonts/75dpi/:unscaled"
 FontPath "/usr/share/X11/fonts/Type1"
 FontPath "/usr/share/X11/fonts/100dpi"
 FontPath "/usr/share/X11/fonts/75dpi"
 # path to defoma fonts
 FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
 Load "i2c"
 Load "bitmap"
 Load "ddc"
 Load "dri"
 Load "extmod"
 Load "freetype"
 Load "glx"
 Load "int10"
 Load "type1"
 Load "vbe"
EndSection

Section "InputDevice"
 Identifier "Generic Keyboard"
 Driver "kbd"
 Option "CoreKeyboard"
 Option "XkbRules" "xorg"
 Option "XkbModel" "pc105"
 Option "XkbLayout" "de"
 Option "XkbVariant" "nodeadkeys"
EndSection

Section "InputDevice"
 Identifier "Configured Mouse"
 Driver "mouse"
 Option "CorePointer"
 Option "Device" "/dev/input/mice"
 Option "Protocol" "ExplorerPS/2"
 Option "ZAxisMapping" "4 5"
 Option "Emulate3Buttons" "true"
EndSection

Section "InputDevice"
 Identifier "Synaptics Touchpad"
 Driver "synaptics"
 Option "SendCoreEvents" "true"
 Option "Device" "/dev/psaux"
 Option "Protocol" "auto-dev"
 Option "HorizScrollDelta" "0"
EndSection

Section "InputDevice"
  Driver "wacom"
  Identifier "stylus"
  Option "Device" "/dev/wacom" # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option "Type" "stylus"
  Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver "wacom"
  Identifier "eraser"
  Option "Device" "/dev/wacom" # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option "Type" "eraser"
  Option "ForceDevice" "ISDV4" # Tablet PC ONLY
EndSection

Section "InputDevice"
  Driver "wacom"
  Identifier "cursor"
  Option "Device" "/dev/wacom" # Change to
                                                      # /dev/input/event
                                                      # for USB
  Option "Type...

Revision history for this message
ozroc (ozrocpablo) wrote :

The same thing in my Toshiba laptop.

With 2.6.15-22 kernel version glx worked great over a 8mb 3D S3 Savage IX Graphics Controller. But in the next -23 version glx crashes and 3D games just show a black screen.

Revision history for this message
Prinz Igor (pigor) wrote :

@ozroc:

are you sure the bug lies on kernel version? yet i believed it is anything around xorg. have you tried the old kernel version with your uptodate system?

i just know that it works fine with the flight 7 cd and it does not work with the final live cd.

i have spend much time to detect the critical difference. but i have deinstalled the old kernel - so i have not tested this.

Revision history for this message
ozroc (ozrocpablo) wrote : Re: [Bug 46314] Re: after recent update 3d acceleration with savage does not work

Well, I can't be absolutely sure, but I think so.

When I upgraded to -23 kernel version it just stopped working, and in that
moment xorg was exactly the same version.
Something wasn't working well (also whith some features in XFCE) and decided
to burn the new ISO and make a clean installation because I've been working
from long with a Breezy dist-upgraded to Dapper.

Now with a clean system the problem persists. I can't reinstall -22 kernel
version because it isn't in repositories, but in that moment, when both of
them were installed, booting one of them allowed glx perfectly and not the
other.

Excuse my poor English, hope you understand.

2006/6/6, Prinz Igor <email address hidden>:
>
> @ozroc:
>
> are you sure the bug lies on kernel version? yet i believed it is
> anything around xorg. have you tried the old kernel version with your
> uptodate system?
>
> i just know that it works fine with the flight 7 cd and it does not work
> with the final live cd.
>
> i have spend much time to detect the critical difference. but i have
> deinstalled the old kernel - so i have not tested this.
>
> --
> after recent update 3d acceleration with savage does not work
> https://launchpad.net/bugs/46314
>

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GED d-- s: a-- C+++ UL+++ P+ L+++ E W++ N* o K- w---
O- M-- V- PS+ PE Y PGP- t+++ 5+ X+ R++ tv+ b+ DI+++ D+
G e+++++ h-- r++ y+++
------END GEEK CODE BLOCK------

Revision history for this message
Prinz Igor (pigor) wrote : Re: after recent update 3d acceleration with savage does not work

@ozroc:

thanks for your hint. i believe it is the kernel because between version 2.6.15-22.34 and 2.6.15-23.35 there are patches on drm - see:
http://changelogs.ubuntu.com/changelogs/pool/main/l/linux-source-2.6.15/linux-source-2.6.15_2.6.15-23.39/changelog

i am not so familar with self compiling kernels. but it would be nice to test if the problem persist with a self compiled kernel from source version 2.6.15-22.34:
https://launchpad.net/distros/ubuntu/+source/linux-source-2.6.15/2.6.15-22.34

see bug #30382 too.

Revision history for this message
ozroc (ozrocpablo) wrote : Re: [Bug 46314] Re: after recent update 3d acceleration with savage does not work

Well, it's confirmed that changing between 2.6.15-22.34 and -23 without any
other change in xorg or something else makes glxgears work or not.

I have now both kernels installed and with one glx works but with the other
one not.

I also tried both of the kernels for i386 and 686 and happens the same, with
both 2.6.15-22 versions glx works and not with any of them from 2.6.15-23.

I hope this can be usefull.

2006/6/7, Prinz Igor <email address hidden>:
>
> @ozroc:
>
> thanks for your hint. i believe it is the kernel because between version
> 2.6.15-22.34 and 2.6.15-23.35 there are patches on drm - see:
>
> http://changelogs.ubuntu.com/changelogs/pool/main/l/linux-source-2.6.15/linux-source-2.6.15_2.6.15-23.39/changelog
>
> i am not so familar with self compiling kernels. but it would be nice to
> test if the problem persist with a self compiled kernel from source version
> 2.6.15-22.34:
>
> https://launchpad.net/distros/ubuntu/+source/linux-source-2.6.15/2.6.15-22.34
>
> see bug #30382 too.
>
> --
> after recent update 3d acceleration with savage does not work
> https://launchpad.net/bugs/46314
>

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GED d-- s: a-- C+++ UL+++ P+ L+++ E W++ N* o K- w---
O- M-- V- PS+ PE Y PGP- t+++ 5+ X+ R++ tv+ b+ DI+++ D+
G e+++++ h-- r++ y+++
------END GEEK CODE BLOCK------

Revision history for this message
Prinz Igor (pigor) wrote : Re: after recent update 3d acceleration with savage does not work

hmm .. it seems to me that you have identified the critical package. i will send this information to bug #30382 too. i hope there is a developer out there who can fix the actual kernel package. perhaps we have to make a new bug for linux-image?

regards ,

prinz igor

Revision history for this message
Ben Collins (ben-collins) wrote :

Not confirming which package is at fault here, just adding kernel so we can work together.

The last update to linux-source contained a lot of DRI updates. This was needed in order to fix a huge amount of bugs with ohter chipsets. This was done in conjunction with the DRI upstream maintainer (he actually did the backport for us).

So, I will try to find out if the needed fix is in DRI, or in the xorg driver (perhaps it needs to be updated).

Revision history for this message
Prinz Igor (pigor) wrote :

@Ben:

thanks for your attention. i did not have exactly understand what to do now. how can i help? do you need any further informations?

> So, I will try to find out if the needed fix is in DRI,
> or in the xorg driver (perhaps it needs to be updated).

when i not err the xorg driver (xserver-xorg-driver-savage) is the same under flight 7 (working) and final (not working) ubuntu. so i do not believe it is the critical one.

it is the kernel. with version <= 2.6.15-22.34 it works and with a greater version it does not.

Revision history for this message
Prinz Igor (pigor) wrote :

hello,

what's going on? does anyone work on this bug?

i would like to help - but do no know how.

@ozroc: could you tell me how to compile the older kernel versions? i have tried but without luck. which configuration have you used? it would be very, very nice if you could post a short step by step description of what you have done, please.

Revision history for this message
ozroc (ozrocpablo) wrote : Re: [Bug 46314] Re: after recent update 3d acceleration with savage does not work

I didn't compile the kernel, I just downloaded a precompiled one.
It was a bit difficult to find, but I finally did:

http://librarian.launchpad.net/2518299/linux-image-2.6.15-22-386_2.6.15-22.34_i386.deb

If you want to compile by yourself, it's not so difficult, here is the
buildlog:

https://launchpad.net/+builds/+build/191298

But if I wanted to compile my kernel, I'll be using Gentoo ;p

It's much easier to wait for a future release running this old kernel...
(I'm so lazy...)

I hope future versions will work better, but for the moment, this kernel
makes everything work quite well in my laptop, and it's enought for my
needs.

On 6/10/06, Prinz Igor <email address hidden> wrote:
>
> hello,
>
> what's going on? does anyone work on this bug?
>
> i would like to help - but do no know how.
>
> @ozroc: could you tell me how to compile the older kernel versions? i
> have tried but without luck. which configuration have you used? it would
> be very, very nice if you could post a short step by step description of
> what you have done, please.
>
> --
> after recent update 3d acceleration with savage does not work
> https://launchpad.net/bugs/46314
>

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GED d-- s: a-- C+++ UL+++ P+ L+++ E W++ N* o K- w---
O- M-- V- PS+ PE Y PGP- t+++ 5+ X+ R++ tv+ b+ DI+++ D+
G e+++++ h-- r++ y+++
------END GEEK CODE BLOCK------

Revision history for this message
Prinz Igor (pigor) wrote : Re: after recent update 3d acceleration with savage does not work

thanks ozroc for the link to the deb-file.

i have now tested 2.6.15-22.34 (ubuntu-version) and 2.6.15 from kernel.org. both do the job fine. 3d acceleration works without any problems.

additionally i have testet 2.6.16.20 from kernel.org. with it 3d acceleration does not work.

i hope this will be fixed in the future. until that i use 2.6.15 from kernel.org.

mfg,

prinz igor

Revision history for this message
Prinz Igor (pigor) wrote :

a little bit more testing:

2.6.15.7 from kernel.org works fine.

2.6.16 from kernel.org works not.

so the bug lies in patch-2.6.16 (see kernel.org).

changelog of this seems similar to changelog between ubuntu version 2.6.15-22.34 and 2.6.15-23.35.

hope this helps.

Revision history for this message
David Jaša (dejv) wrote :

Not that simple in my case. I tried precompiled 2.6.15-22.34 kernel (and dapper's final X) and all the same as several months. glxinfo segfaulting before printing last section, any opengl app crashing X and leaving (plain 80x25) console in mess. So just a "little" change from original bug #30382.

Section Device from xorg.conf:
        Identifier "S3 Inc. 86C270-294 Savage/IX-MV"
        Driver "savage"
        Option "AGPMode" "2"
        BusID "PCI:1:1:0"

Log with 'Load "GLcore"' commented out (see bug #46661):
http://jasovi.ath.cx/Xorg.0.log
(how to attach it to this post?)

Card's lspci -vvv:
0000:01:01.0 VGA compatible controller: S3 Inc. 86C270-294 Savage/IX-MV (rev 13) (prog-if 00 [VGA])
        Subsystem: Hewlett-Packard Company: Unknown device 0014
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 64 (1000ns min, 63750ns max), Cache Line Size: 0x08 (32 bytes)
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at f0000000 (32-bit, non-prefetchable) [size=128M]
        Expansion ROM at 28000000 [disabled] [size=64K]
        Capabilities: [dc] Power Management version 1
                Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [80] AGP version 1.0
                Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA- ITACoh- GART64- HTrans- 64bit- FW- AGP3- Rate=x1,x2
                Command: RQ=32 ArqSz=0 Cal=0 SBA- AGP+ GART64- 64bit- FW- Rate=x2

Revision history for this message
David Jaša (dejv) wrote :

Update: with Xorg 7.1 and kernel 2.6.17 from current edgy runs glxinfo flawlessly, but glxgears get immediatelly killed (attached it's strace) and e.g. ppracer freezes whole X.

Revision history for this message
Marcelo Boveto Shima (marceloshima) wrote :

This bug probably is fixed on git now. Take a look at https://bugs.freedesktop.org/show_bug.cgi?id=6357.
I'll be able to test this git snapshot next week only.

Revision history for this message
David Planella (dpm) wrote :

I can confirm this on my system, using an S3 Inc. 86C380 [ProSavageDDR K4M266] (rev 02), which according to Xorg.0.log is a "Twister PN133", Chip: id 8d01.

After asking at the xorg mailing list, they directed me to the bug Marcelo Shima was pointing out on his last comment.

I can also run glxinfo, but executing glxgears results in a black window and 100% CPU usage.

So basically, it seems that the DRI locking was broken in the driver, and that that has now been fixed upstream using the following patch: https://bugs.freedesktop.org/attachment.cgi?id=7041 (see the bug report for more information)

Revision history for this message
Ben Collins (ben-collins) wrote :

Sounds like a xorg problem then.

Changed in linux-source-2.6.15:
status: Unconfirmed → Rejected
Changed in linux-source-2.6.17:
status: Unconfirmed → Rejected
Revision history for this message
David Planella (dpm) wrote :

I've just tested this patch, which I created by adapting the upstream one (https://bugs.freedesktop.org/attachment.cgi?id=7041) to the current edgy package (1:2.1.1-0ubuntu2).

The patch seems to fix the glxgears issue for me (now I can run glxgears flawlessly) but since I do not use any other 3D applications on my system, I cannot really tell if 3D acceleration overall is working 100%.

Could anyone else test this?

Revision history for this message
JockeTF (jocketf) wrote :

I had the same problem and tried your patch and it works flawlessly.

Thank You :)

// JockeTF

Revision history for this message
Marcelo Boveto Shima (marceloshima) wrote :

A new upstream version was released and. This new version fix this bug. It's available on debian already.

Release 2.1.2
EXA support (copy and solid only)
PCI BAR refactoring (preparation for PCI-rework)
fix DRI locking
bug fixes

Revision history for this message
David Planella (dpm) wrote :

Nice.

Now let's just hope it makes it into edgy.

Changed in xserver-xorg-video-savage:
status: Unconfirmed → Confirmed
Revision history for this message
Tormod Volden (tormodvolden) wrote :

I can also confirm that Bernat's patch fixes the problem I had with glxgears on savage. If more people would like to check if this patch works, I have made test packages (using pbuilder) here:
http://tormod.webhop.org/linux/savage/

Revision history for this message
Daniel T Chen (crimsun) wrote :

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

Format: 1.7
Date: Mon, 9 Oct 2006 20:24:26 -0400
Source: xserver-xorg-video-savage
Binary: xserver-xorg-video-savage
Architecture: source
Version: 1:2.1.1-0ubuntu3
Distribution: edgy
Urgency: low
Maintainer: Debian X Strike Force <email address hidden>
Changed-By: Daniel T Chen <email address hidden>
Description:
 xserver-xorg-video-savage - X.Org X server -- Savage display driver
Changes:
 xserver-xorg-video-savage (1:2.1.1-0ubuntu3) edgy; urgency=low
 .
   * Add quilt to build dependencies (Closes Ubuntu: #64968).
   * Add patch from fd.o bug #7041, fixing DRI locking
     (Closes Ubuntu: #46314).
Files:
 63309ea06e725f4f983b007e9c01bf90 1067 x11 optional xserver-xorg-video-savage_2.
1.1-0ubuntu3.dsc
 a24436497278feea37abe62d47502f8b 18641 x11 optional xserver-xorg-video-savage_2
.1.1-0ubuntu3.diff.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFFKu0ae9GwFciKvaMRAsafAJ922GJVqDEuEMGpqKpn9GCv5jXytACgkiMa
3QLRGNvNShCNwY/DeCrlPWg=
=e5dq
-----END PGP SIGNATURE-----

Changed in xserver-xorg-video-savage:
status: Confirmed → Fix Committed
Revision history for this message
Tormod Volden (tormodvolden) wrote :

Daniel, are you sure the patch got applied? The build log only mentions the other patch:
 >stampdir/patch
01_savage_driver_disable_randr_on_rotation.diff
Applying patches...successful.

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Daniel, forget that last remark, I think it justs lists the first patch anyway. The package seems to work fine, thanks.

Daniel T Chen (crimsun)
Changed in xserver-xorg-video-savage:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.