LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Random system hang ups (https://www.linuxquestions.org/questions/slackware-14/random-system-hang-ups-753376/)

w1k0 10-10-2009 02:09 PM

The above two log files are slightly shortened.

Complete differences between two above log files:

Code:

14c14
< (==) Log file: "/var/log/Xorg.0.log", Time: Sat Oct 10 20:16:34 2009
---
> (==) Log file: "/var/log/Xorg.0.log", Time: Sat Oct 10 20:29:18 2009
146c146
<      compiled for 1.6.2, module version = 6.12.2
---
>      compiled for 1.6.3, module version = 6.12.99
152c152
<      compiled for 1.6.2, module version = 6.12.2
---
>      compiled for 1.6.3, module version = 6.12.99
186a187
>      ATI Radeon X800 VE (R420) JT (AGP), ATI Radeon X850 (R480) (AGP),
298,305c299,308
<      ATI Radeon 4800 Series, ATI FirePro V8750 (FireGL),
<      ATI FirePro V7760 (FireGL), ATI Mobility RADEON HD 4850,
<      ATI Mobility RADEON HD 4850 X2, ATI Radeon 4800 Series,
<      ATI FirePro RV770, AMD FireStream 9270, AMD FireStream 9250,
<      ATI FirePro V8700 (FireGL), ATI Mobility RADEON HD 4870,
<      ATI Mobility RADEON M98, ATI Radeon 4800 Series,
<      ATI Radeon 4800 Series, ATI FirePro M7750, ATI M98, ATI M98, ATI M98,
<      ATI Radeon RV730 (AGP), ATI FirePro M5750, ATI Radeon RV730 (AGP),
---
>      ATI Radeon 4800 Series, ATI Radeon HD 4850 x2,
>      ATI FirePro V8750 (FireGL), ATI FirePro V7760 (FireGL),
>      ATI Mobility RADEON HD 4850, ATI Mobility RADEON HD 4850 X2,
>      ATI Radeon 4800 Series, ATI FirePro RV770, AMD FireStream 9270,
>      AMD FireStream 9250, ATI FirePro V8700 (FireGL),
>      ATI Mobility RADEON HD 4870, ATI Mobility RADEON M98,
>      ATI Radeon 4800 Series, ATI Radeon 4800 Series, ATI FirePro M7750,
>      ATI M98, ATI M98, ATI M98, ATI Mobility Radeon HD 4650,
>      ATI Radeon RV730 (AGP), ATI Mobility Radeon HD 4670,
>      ATI FirePro M5750, ATI Radeon RV730 (AGP),
307,311c310,317
<      ATI RV730 PRO [Radeon HD 4650], ATI FirePro V7750 (FireGL),
<      ATI FirePro V5700 (FireGL), ATI FirePro V3750 (FireGL), ATI RV610,
<      ATI Radeon HD 2400 XT, ATI Radeon HD 2400 Pro,
<      ATI Radeon HD 2400 PRO AGP, ATI FireGL V4000, ATI RV610,
<      ATI Radeon HD 2350, ATI Mobility Radeon HD 2400 XT,
---
>      ATI Radeon HD 4600 Series, ATI RV730 PRO [Radeon HD 4650],
>      ATI FirePro V7750 (FireGL), ATI FirePro V5700 (FireGL),
>      ATI FirePro V3750 (FireGL), ATI Mobility Radeon HD 4830,
>      ATI Mobility Radeon HD 4850, ATI FirePro M7740, ATI RV740,
>      ATI Radeon HD 4770, ATI Radeon HD 4700 Series, ATI Radeon HD 4770,
>      ATI FirePro M5750, ATI RV610, ATI Radeon HD 2400 XT,
>      ATI Radeon HD 2400 Pro, ATI Radeon HD 2400 PRO AGP, ATI FireGL V4000,
>      ATI RV610, ATI Radeon HD 2350, ATI Mobility Radeon HD 2400 XT,
321c327
<      ATI Mobility Radeon 4500 Series, ATI RV630,
---
>      ATI Mobility Radeon 4500 Series, ATI FirePro RG220, ATI RV630,
340,342c346,347
<      ATI Radeon HD Graphics, ATI Radeon Graphics,
<      ATI Mobility Radeon HD Graphics, ATI Mobility Radeon Graphics,
<      ATI Radeon Graphics
---
>      ATI Radeon HD 4200, ATI Radeon 4100, ATI Mobility Radeon HD 4200,
>      ATI Mobility Radeon 4100, ATI RS880
384d388
< (WW) RADEON(0): R500 support is under development. Please report any issues to xorg-driver-ati@lists.x.org
431,433d434
< (II) RADEON(0): Max desktop size set to 2560x1600
< (II) RADEON(0): For a larger or smaller max desktop size, add a Virtual line to your xorg.conf
< (II) RADEON(0): If you are having trouble with 3D, reduce the desktop size by adjusting the Virtual line to your xorg.conf
446,448d446
< encoder: 0x15
< encoder: 0xf
< encoder: 0x13
472d469
< (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
473a471
> (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
522d519
< (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
523a521
> (II) RADEON(0): Output: VGA-0, Detected Monitor Type: 0
569d566
< after xf86InitialConfiguration
581,586c578,583
< (==) RADEON(0): Using XAA acceleration architecture
< (II) Loading sub module "xaa"
< (II) LoadModule: "xaa"
< (II) Loading /usr/lib/xorg/modules//libxaa.so
< (II) Module xaa: vendor="X.Org Foundation"
<      compiled for 1.6.3, module version = 1.2.1
---
> (==) RADEON(0): Using EXA acceleration architecture
> (II) Loading sub module "exa"
> (II) LoadModule: "exa"
> (II) Loading /usr/lib/xorg/modules//libexa.so
> (II) Module exa: vendor="X.Org Foundation"
>      compiled for 1.6.3, module version = 2.4.0
588,589d584
< (!!) RADEON(0): For information on using the multimedia capabilities
<      of this adapter, please see http://gatos.sf.net.
600,602c595,597
<      [4] 0  0      0x000a0000 - 0x000affff (0x10000) MS[B](OprU)
<      [5] 0  0      0x000b0000 - 0x000b7fff (0x8000) MS[B](OprU)
<      [6] 0  0      0x000b8000 - 0x000bffff (0x8000) MS[B](OprU)
---
>      [4] 0  0      0x000a0000 - 0x000affff (0x10000) MS[B]
>      [5] 0  0      0x000b0000 - 0x000b7fff (0x8000) MS[B]
>      [6] 0  0      0x000b8000 - 0x000bffff (0x8000) MS[B]
605,606c600,601
<      [9] 0  0      0x000003b0 - 0x000003bb (0xc) IS[B](OprU)
<      [10] 0  0      0x000003c0 - 0x000003df (0x20) IS[B](OprU)
---
>      [9] 0  0      0x000003b0 - 0x000003bb (0xc) IS[B]
>      [10] 0  0      0x000003c0 - 0x000003df (0x20) IS[B]
612a608
> (II) RADEON(0): Dynamic Power Management Disabled
619,630c615,623
< (II) RADEON(0): Using 32 MB GART aperture
< (II) RADEON(0): Using 1 MB for the ring buffer
< (II) RADEON(0): Using 2 MB for vertex/indirect buffers
< (II) RADEON(0): Using 29 MB for GART textures
< (II) RADEON(0): Memory manager initialized to (0,0) (1024,8191)
< (II) RADEON(0): Reserved area from (0,1024) to (1024,1026)
< (II) RADEON(0): Largest offscreen area available: 1024 x 7165
< (II) RADEON(0): Will use front buffer at offset 0x0
< (II) RADEON(0): Will use back buffer at offset 0x1100000
< (II) RADEON(0): Will use depth buffer at offset 0x1500000
< (II) RADEON(0): Will use 32 kb for PCI GART table at offset 0x3ff8000
< (II) RADEON(0): Will use 39936 kb for textures at offset 0x1900000
---
> (II) RADEON(0): Allocating from a screen of 65504 kb
> (II) RADEON(0): Will use 32 kb for hardware cursor 0 at offset 0x00400000
> (II) RADEON(0): Will use 32 kb for hardware cursor 1 at offset 0x00404000
> (II) RADEON(0): Will use 4096 kb for front buffer at offset 0x00000000
> (II) RADEON(0): Will use 32 kb for PCI GART at offset 0x03ff8000
> (II) RADEON(0): Will use 4096 kb for back buffer at offset 0x00408000
> (II) RADEON(0): Will use 4096 kb for depth buffer at offset 0x00808000
> (II) RADEON(0): Will use 26368 kb for textures at offset 0x00c08000
> (II) RADEON(0): Will use 26816 kb for X Server offscreen at offset 0x025c8000
649c642
< (II) RADEON(0): [pci] Ring mapped at 0xb35e0000
---
> (II) RADEON(0): [pci] Ring mapped at 0xb37ee000
652c645
< (II) RADEON(0): [pci] Ring read ptr mapped at 0xb7ecb000
---
> (II) RADEON(0): [pci] Ring read ptr mapped at 0xb80b9000
655c648
< (II) RADEON(0): [pci] Vertex/indirect buffers mapped at 0xb33e0000
---
> (II) RADEON(0): [pci] Vertex/indirect buffers mapped at 0xb35ee000
658c651
< (II) RADEON(0): [pci] GART Texture map mapped at 0xb1760000
---
> (II) RADEON(0): [pci] GART Texture map mapped at 0xb196e000
677,678c670,671
< (II) RADEON(0): XAA Render acceleration unsupported on Radeon 9500/9700 and newer. Please use EXA instead.
< (II) RADEON(0): Render acceleration disabled
---
> (II) RADEON(0): Render acceleration enabled for R300/R400/R500 type cards.
> (II) RADEON(0): Setting EXA maxPitchBytes
680,690c673,679
< (II) RADEON(0): Using XFree86 Acceleration Architecture (XAA)
<      Screen to screen bit blits
<      Solid filled rectangles
<      8x8 mono pattern filled rectangles
<      Indirect CPU to Screen color expansion
<      Solid Lines
<      Scanline Image Writes
<      Setting up tile and stipple cache:
<              32 128x128 slots
<              32 256x256 slots
<              16 512x512 slots
---
> (II) EXA(0): Offscreen pixmap area of 27459584 bytes
> (II) EXA(0): Driver registered support for the following operations:
> (II)        Solid
> (II)        Copy
> (II)        Composite (RENDER acceleration)
> (II)        UploadToScreen
> (II)        DownloadFromScreen
694,696d682
< (II) RADEON(0): Will use 32 kb for hardware cursor 0 at offset 0x00402000
< (II) RADEON(0): Will use 32 kb for hardware cursor 1 at offset 0x00406000
< (II) RADEON(0): Largest offscreen area available: 1024 x 7157
704a691,692
> Blank CRTC 0 success
> Disable CRTC 0 success
711a700
> best_frac_feedback_div: 0
715c704
< (II) RADEON(0): crtc(0) PLL  : refdiv 9, fbdiv 0x104(260), pdiv 12
---
> (II) RADEON(0): crtc(0) PLL  : refdiv 9, fbdiv 0x104(260), fracfbdiv 0, pdiv 12
723a713
> Output LCD1 enable success
726d715
< Output LCD1 enable success
731a721
> (II) Setting vga for screen 0.

DRI messages with xf86-video-ati-6.12.2-i486-2 and xf86-video-ati-20091010_git-i486-1 are exactly the same:

Code:

(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions//libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
(II) Loading extension DRI2
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: node name is /dev/dri/card0
(II) RADEON(0): [dri] Found DRI library version 1.3.0 and kernel module version 1.29.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: node name is /dev/dri/card0
(II) RADEON(0): [dri] Visual configs initialized
(II) RADEON(0): [DRI] installation complete
(WW) RADEON(0): DRI init changed memory map, adjusting ...
(II) AIGLX: Screen 0 is not DRI2 capable
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: node name is /dev/dri/card0
(II) AIGLX: Loaded and initialized /usr/lib/xorg/modules/dri/r300_dri.so
(II) GLX: Initialized DRI GL provider for screen 0


w1k0 10-10-2009 02:14 PM

I suppose the key feature above is disabled unsupported XAA render acceleration in the case of old driver (6.12.2 build 2) and enabled EXA acceleration in the case of the newest driver (20091010_git).

w1k0 10-11-2009 09:20 AM

I found simpler solution of the problem described in that thread:

1. I downgraded the system to default xf86-video-ati 6.12.2 build 2 driver.

2. I generated xorg.conf.new with X -configure command.

3. I copied it from /root to /etc/X11 directory and renamed to xorg.conf.

4. I added Option "AccelMethod" "EXA" line to Section "Device" of xorg.conf:

Code:

Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
        VendorName  "Unknown Vendor"
        BoardName  "Unknown Board"
        BusID      "PCI:1:0:0"
        Option      "AccelMethod" "EXA"
EndSection

X Window using EXA acceleration method works flawlessly. Here's comparison of Xorg.0.log without and within EXA:

Code:

14c14
< (==) Log file: "/var/log/Xorg.0.log", Time: Sun Oct 11 15:53:32 2009
---
> (==) Log file: "/var/log/Xorg.0.log", Time: Sun Oct 11 15:57:21 2009
328a329
> (**) RADEON(0): Option "AccelMethod" "EXA"
372d372
< drmOpenDevice: open result is 12, (OK)
536,541c536,541
< (==) RADEON(0): Using XAA acceleration architecture
< (II) Loading sub module "xaa"
< (II) LoadModule: "xaa"
< (II) Loading /usr/lib/xorg/modules//libxaa.so
< (II) Module xaa: vendor="X.Org Foundation"
<      compiled for 1.6.3, module version = 1.2.1
---
> (**) RADEON(0): Using EXA acceleration architecture
> (II) Loading sub module "exa"
> (II) LoadModule: "exa"
> (II) Loading /usr/lib/xorg/modules//libexa.so
> (II) Module exa: vendor="X.Org Foundation"
>      compiled for 1.6.3, module version = 2.4.0
572,583c572,580
< (II) RADEON(0): Using 32 MB GART aperture
< (II) RADEON(0): Using 1 MB for the ring buffer
< (II) RADEON(0): Using 2 MB for vertex/indirect buffers
< (II) RADEON(0): Using 29 MB for GART textures
< (II) RADEON(0): Memory manager initialized to (0,0) (1024,8191)
< (II) RADEON(0): Reserved area from (0,1024) to (1024,1026)
< (II) RADEON(0): Largest offscreen area available: 1024 x 7165
< (II) RADEON(0): Will use front buffer at offset 0x0
< (II) RADEON(0): Will use back buffer at offset 0x1100000
< (II) RADEON(0): Will use depth buffer at offset 0x1500000
< (II) RADEON(0): Will use 32 kb for PCI GART table at offset 0x3ff8000
< (II) RADEON(0): Will use 39936 kb for textures at offset 0x1900000
---
> (II) RADEON(0): Allocating from a screen of 65504 kb
> (II) RADEON(0): Will use 32 kb for hardware cursor 0 at offset 0x00400000
> (II) RADEON(0): Will use 32 kb for hardware cursor 1 at offset 0x00404000
> (II) RADEON(0): Will use 4096 kb for front buffer at offset 0x00000000
> (II) RADEON(0): Will use 32 kb for PCI GART at offset 0x03ff8000
> (II) RADEON(0): Will use 4096 kb for back buffer at offset 0x00408000
> (II) RADEON(0): Will use 4096 kb for depth buffer at offset 0x00808000
> (II) RADEON(0): Will use 26368 kb for textures at offset 0x00c08000
> (II) RADEON(0): Will use 26816 kb for X Server offscreen at offset 0x025c8000
600,602c597,599
< (II) RADEON(0): [pci] 32768 kB allocated with handle 0xf90e7000
< (II) RADEON(0): [pci] ring handle = 0xf90e7000
< (II) RADEON(0): [pci] Ring mapped at 0xb36ae000
---
> (II) RADEON(0): [pci] 32768 kB allocated with handle 0xf9108000
> (II) RADEON(0): [pci] ring handle = 0xf9108000
> (II) RADEON(0): [pci] Ring mapped at 0xb3756000
604,605c601,602
< (II) RADEON(0): [pci] ring read ptr handle = 0xf91e8000
< (II) RADEON(0): [pci] Ring read ptr mapped at 0xb7a5f000
---
> (II) RADEON(0): [pci] ring read ptr handle = 0xf9209000
> (II) RADEON(0): [pci] Ring read ptr mapped at 0xb7ac4000
607,608c604,605
< (II) RADEON(0): [pci] vertex/indirect buffers handle = 0xf91e9000
< (II) RADEON(0): [pci] Vertex/indirect buffers mapped at 0xb34ae000
---
> (II) RADEON(0): [pci] vertex/indirect buffers handle = 0xf920a000
> (II) RADEON(0): [pci] Vertex/indirect buffers mapped at 0xb3556000
610,611c607,608
< (II) RADEON(0): [pci] GART texture map handle = 0xf93e9000
< (II) RADEON(0): [pci] GART Texture map mapped at 0xb182e000
---
> (II) RADEON(0): [pci] GART texture map handle = 0xf940a000
> (II) RADEON(0): [pci] GART Texture map mapped at 0xb18d6000
630,631c627,628
< (II) RADEON(0): XAA Render acceleration unsupported on Radeon 9500/9700 and newer. Please use EXA instead.
< (II) RADEON(0): Render acceleration disabled
---
> (II) RADEON(0): Render acceleration enabled for R300/R400/R500 type cards.
> (II) RADEON(0): Setting EXA maxPitchBytes
633,643c630,636
< (II) RADEON(0): Using XFree86 Acceleration Architecture (XAA)
<      Screen to screen bit blits
<      Solid filled rectangles
<      8x8 mono pattern filled rectangles
<      Indirect CPU to Screen color expansion
<      Solid Lines
<      Scanline Image Writes
<      Setting up tile and stipple cache:
<              32 128x128 slots
<              32 256x256 slots
<              16 512x512 slots
---
> (II) EXA(0): Offscreen pixmap area of 27459584 bytes
> (II) EXA(0): Driver registered support for the following operations:
> (II)        Solid
> (II)        Copy
> (II)        Composite (RENDER acceleration)
> (II)        UploadToScreen
> (II)        DownloadFromScreen
648,650d640
< (II) RADEON(0): Will use 32 kb for hardware cursor 0 at offset 0x00402000
< (II) RADEON(0): Will use 32 kb for hardware cursor 1 at offset 0x00406000
< (II) RADEON(0): Largest offscreen area available: 1024 x 7157
724c714
< (**) ThinkPad Extra Buttons: Device: "/dev/input/event7"
---
> (**) ThinkPad Extra Buttons: Device: "/dev/input/event6"
776c766
< (**) Option "Device" "/dev/input/event6"
---
> (**) Option "Device" "/dev/input/event7"

So to avoid random system hang ups is enough to include in xorg.conf that option:

Code:

        Option      "AccelMethod" "EXA"

onebuck 10-11-2009 02:11 PM

Hi,

I'm getting a error when I run the script 'get-xf86-video-ati';

Code:

rm -rf xf86-video-ati
git clone git://cgit.freedesktop.org/git/xorg/driver/xf86-video-ati
cd xf86-video-ati
git checkout -t -b master origin/master
cd ..
# package the source archive and clean up:
( cd xf86-video-ati ; find . -type d -name .git -exec rm -rf {} \; 2> /dev/null )
DATE=$(date +%Y%m%d)
mv xf86-video-ati xf86-video-ati-${DATE}_git
tar cjf xf86-video-ati-${DATE}_git.tar.bz2 xf86-video-ati-${DATE}_git
rm -rf xf86-video-ati-${DATE}_git

Code:

fatal: git checkout: branch master already exists

w1k0 10-11-2009 03:31 PM

I'm getting the same error but xf86-video-ati-20091011_git.tar.bz2 source package is valid.

As I described in post #33 above I solved the problem using default xf86-video-ati 6.12.2 build 2. Driver xf86-video-ati 20091011_git includes option EXA by default. With driver xf86-video-ati 6.12.2 you have to include that option in xorg.conf yourself:

Code:

Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
        VendorName  "Unknown Vendor"
        BoardName  "Unknown Board"
        BusID      "PCI:1:0:0"
        Option      "AccelMethod" "EXA"
EndSection

Try it and perhaps you'll avoid to install GIT version of the driver.

w1k0 10-14-2009 04:56 PM

I encountered new problem with enabled:

Code:

        Option      "AccelMethod" "EXA"
When I run X Window as first user with startx command and then I run X Window as second user with startx -- :1 command the second user's session slows down when using such programs as: Firefox, Seamonkey, Konqueror, Opera etc. During window operations CPU usage for X jumps up to 97%. The first user can use these programs smoothly.

I found the solution of that problem as well. It's enough to enable:

Code:

        Option      "MigrationHeuristic" "greedy"
So my Section "Device" looks now:

Code:

Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
        VendorName  "Unknown Vendor"
        BoardName  "Unknown Board"
        BusID      "PCI:1:0:0"
        Option      "AccelMethod" "EXA"
        Option      "MigrationHeuristic" "greedy"
EndSection



All times are GMT -5. The time now is 10:34 AM.