LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-27-2007, 12:25 PM   #1
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
855GM / i810 DRI stopped after X11 crash


Dear All,
I was quite happily running Direct Rednering with the i810 driver on my Centrino laptop.

I ran an mplayer command, X11 crashed and now does not start properly, saying:

Quote:
Error in I830WaitLpRing(), now is 8143, start is 6142
pgetbl_ctl: 0x3ffe0001 pgetbl_err: 0x0
ipeir: 0 iphdr: 1810000
LP ring tail: 40 head: 0 len: 1f001 start 0
eir: 0 esr: 0 emr: ffff
instdone: ffc0 instpm: 0
memmode: 108 instps: 0
hwstam: ffff ier: 0 imr: ffff iir: 0
space: 131000 wanted 131064
if either:

Quote:
Option "NoAccel" "false"
or:

Quote:
Option "DRI" "true"
or both are set in the Device section of xorg.conf

I have done a reboot and it still does this.

My xorg.conf follows:

Quote:
#X11 xorg.conf for Toshiba M100

Section "Files"
# FontPath "unix/:7100" # local font server
# if the local font server has problems, we can fall back on these
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
# FontPath "/usr/lib/X11/fonts/CID"
# FontPath "/usr/lib/X11/fonts/Speedo"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
Load "GLcore"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
# Load "speedo"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Laptop Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
Option "AutoRepeat" "250 20.0"
EndSection

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

Section "Device"
Identifier "Video Card"
Driver "i810"
Option "NoAccel" "false"
# Option "NoAccel" "true"
Option "DRI" "true"
# Option "DRI" "false"
# Option "XVideo" "on"
# Option "MonitorLayout" "LFP"
# Option "DevicePresence" "On"
VideoRam 16384
BusID "PCI:00:02:0"
EndSection

Section "Monitor"
Identifier "Laptop Monitor"
HorizSync 30-60
VertRefresh 60-85
# Option "DPMS"
EndSection

Section "Screen"
Identifier "Laptop Screen"
Device "Video Card"
Monitor "Laptop Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection
Thanks for any help you can give me with getting DRI Working again!

Riddick

Last edited by Riddick; 01-28-2007 at 04:37 AM.
 
Old 01-27-2007, 02:03 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Why is the monitor section commented out ?
 
Old 01-27-2007, 02:35 PM   #3
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
to allow autodetection... I don't think it's related with the problem, is it?

I have put it back in anyway
 
Old 01-27-2007, 02:59 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
There has been a post on this:

http://www.linuxquestions.org/questi...d.php?t=122760

Quote:
Originally Posted by crashmeister
Do I have to find a fix for everything myself???

Just in case anybody stumbles about the same problem:
This is problem with the ring buffer not being flushed (whatever that might be).XFree 4.3.0 didn't work so well and with XFree 4.3.99 it seems to be fixed.
Now how do you fix that ... lemme search around a bit.

Until then the vesa drivers should work.

EDIT: Ok, here's what I found so far:

Bug on Ubuntu as well:
https://launchpad.net/ubuntu/+source/xorg/+bug/56501

They suggest:
Quote:
Above is my report. Further experimenting shows that disabling *all* power management seems to prevent this from happening but obviously disabling acpi entirely is not a viable solution.
Dunno if that will work, but it is a viable solution in most cases. Search google for 'Error in I830WaitLpRing()', it seems to be a prevalent error.

Last edited by H_TeXMeX_H; 01-27-2007 at 03:10 PM.
 
Old 01-27-2007, 04:07 PM   #5
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
The VESA drivers don't give DRI as far as I'm aware, so I have just turned DRI off and am running with i810!

I searched extensively, and couldn't really find a solution...

I have not touched XOrg, and am using the default Slackware 11.0 one.

My difference from the Ubuntu post is that mine crashed once after months of stability and now I can't get it to work ever!

What happened???

Thanks for your replies so far
 
Old 01-27-2007, 04:35 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I don't really know. Were you running it as root ? or did you run mplayer as root ? If not, then I don't see any way for it to just break like that.
 
Old 01-27-2007, 04:41 PM   #7
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
nope! I only do root things as root!

I have found an interesting bootup message that explains the X11 startup message let me just get it...

Last edited by Riddick; 01-27-2007 at 04:47 PM.
 
Old 01-27-2007, 04:45 PM   #8
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
Sorry about the double post, that was from another computer...
Check this out:

Quote:
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected an Intel 855 Chipset.
agpgart: Detected 16252K stolen memory.
agpgart: AGP aperture is 128M @ 0xd8000000
[drm] Initialized drm 1.0.1 20051102
ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI Interrupt 0000:00:02.0[A] -> Link [LNKA] -> GSI 10 (level, low) -> IRQ 10
[drm] Initialized i915 1.5.0 20060119 on minor 0
[drm] Initialized i915 1.5.0 20060119 on minor 1
intelfb: intelfb_init
intelfb: Framebuffer driver for Intel(R) 830M/845G/852GM/855GM/865G/915G/915GM/945G/945GM chipsets
intelfb: Version 0.9.4
intelfb: intelfb_setup
intelfb: no options
intelfb: intelfb_pci_register
intelfb: fb aperture: 0xd8000000/0x8000000, MMIO region: 0xd0000000/0x80000
intelfb: 00:02.0: Intel(R) 855GM, aperture size 128MB, stolen memory 16252kB
intelfb: fb: 0xd8000000(+ 0x0)/0xfdf000 (0xf8980000)
intelfb: MMIO: 0xd0000000/0x80000 (0xfc980000)
intelfb: ring buffer: 0xdb001000/0x10000 (0xfb981000)
intelfb: HW cursor: 0x0/0x0 (0x00000000) (offset 0x0) (phys 0x0)
intelfb: options: vram = 4, accel = 1, hwcursor = 0, fixed = 0, noinit = 0
intelfb: options: mode = ""
intelfb: Non-CRT device is enabled ( LVDS port ). Disabling mode switching.
intelfb: get_initial_mode
intelfb: Initial info: FB is 0xd8000000/0xfd0000 (16192 kByte)
intelfb: Initial info: mode is 1024x768-16 (2048)
intelfb: update_dinfo
intelfb: intelfb_var_to_depth: bpp: 16, green.length is 6
intelfb: intelfb_set_fbinfo
intelfb: intelfb_init_var
intelfb: Initial video mode is 1024x768-16@60.
intelfb: Initial video mode is from 5.
intelfb: update_dinfo
intelfb: intelfb_var_to_depth: bpp: 16, green.length is 6
intelfb: intelfbhw_print_hw_state
hw state dump start
VGA0_DIVISOR: 0x00021207
VGA1_DIVISOR: 0x00031406
VGAPD: 0x0000888b
VGA0: (m1, m2, n, p1, p2) = (18, 7, 2, 0, 0)
VGA0: clock is 327000
VGA1: (m1, m2, n, p1, p2) = (20, 6, 3, 0, 0)
VGA1: clock is 283200
DPLL_A: 0x808b0000
DPLL_B: 0x90010000
FPA0: 0x00021207
FPA1: 0x00021207
FPB0: 0x0004120c
FPB1: 0x00021207
PLLA0: (m1, m2, n, p1, p2) = (18, 7, 2, 11, 1)
PLLA0: clock is 25153
PLLA1: (m1, m2, n, p1, p2) = (18, 7, 2, 11, 1)
PLLA1: clock is 25153
HTOTAL_A: 0x031f027f
HBLANK_A: 0x03170287
HSYNC_A: 0x02ef028f
VTOTAL_A: 0x020c01df
VBLANK_A: 0x020401e7
VSYNC_A: 0x01eb01e9
SRC_SIZE_A: 0x027f01df
BCLRPAT_A: 0x00000000
HTOTAL_B: 0x053f03ff
HBLANK_B: 0x053f03ff
HSYNC_B: 0x049f0417
VTOTAL_B: 0x032502ff
VBLANK_B: 0x032502ff
VSYNC_B: 0x03080302
SRC_SIZE_B: 0x03ff02ff
BCLRPAT_B: 0x00000000
ADPA: 0xc0001000
DVOA: 0x00000000
DVOB: 0x00000000
DVOC: 0x00000000
DVOA_SRCDIM: 0x00000000
DVOB_SRCDIM: 0x00000000
DVOC_SRCDIM: 0x00000000
LVDS: 0xc0308300
PIPEACONF: 0x80000000
PIPEBCONF: 0x80000000
DISPARB: 0x00015455
CURSOR_A_CONTROL: 0x00000000
CURSOR_B_CONTROL: 0x00000000
CURSOR_A_BASEADDR: 0x32284000
CURSOR_B_BASEADDR: 0x00000000
CURSOR_A_PALETTE: 0x00ffffff, 0x00000000, 0x00000000, 0x00ffffff
CURSOR_B_PALETTE: 0x00000000, 0x00000000, 0x00000000, 0x00000000
CURSOR_SIZE: 0x00000000
DSPACNTR: 0x00000000
DSPBCNTR: 0x95000000
DSPABASE: 0x00000000
DSPBBASE: 0x00000000
DSPASTRIDE: 0x00000800
DSPBSTRIDE: 0x00000800
VGACNTRL: 0xa104008e
ADD_ID: 0x00000000
SWF00 0x00000000
SWF01 0x00000000
SWF02 0x00000000
SWF03 0x00000000
SWF04 0x00000000
SWF05 0x00000000
SWF06 0x00000000
SWF10 0x01000900
SWF11 0x00001c00
SWF12 0x00000114
SWF13 0x45450000
SWF14 0x00000000
SWF15 0x00008209
SWF16 0x00000000
SWF30 0x00000000
SWF31 0x00000000
SWF32 0x00000000
FENCE0 0x00000000
FENCE1 0x00000000
FENCE2 0x00000000
FENCE3 0x00000000
FENCE4 0x00000000
FENCE5 0x00000000
FENCE6 0x00000000
FENCE7 0x00000000
INSTPM 0x00000000
MEM_MODE 0x00000000
FW_BLC_0 0x01080108
FW_BLC_1 0x00000108
hw state dump end
intelfb: Changing the video mode is not supported.
intelfb: ring buffer : space: 65400 wanted 65472
intelfb: lockup - turning off hardware acceleration
that is from dmesg... what do you guys think?

Riddick
 
Old 01-27-2007, 05:21 PM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I have an idea, change this

Code:
Section "Screen"
Identifier "Laptop Screen"
Device "Video Card"
Monitor "Laptop Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection
and add more modes:

Code:
Modes "1024x768" "800x600" "640x480"
If that doesn't work, the I have one final idea:

Start with your '/etc/X11/xorg.conf-vesa', copy it to xorg.conf, and then change only the minimum required to get dri working. (this is because I suspect your current xorg.conf is poorly configure and cannot be easily fixed)
 
Old 01-27-2007, 05:31 PM   #10
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
OK, I'll try it tomorrow morning and let you know! Thanks!
 
Old 01-27-2007, 06:13 PM   #11
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
One more idea which just came to me after looking at all that output and thinking about it for a while

Seems like it's a problem with the framebuffer

Code:
intelfb: Initial info: FB is 0xd8000000/0xfd0000 (16192 kByte)
intelfb: Initial info: mode is 1024x768-16 (2048)
intelfb: update_dinfo
intelfb: intelfb_var_to_depth: bpp: 16, green.length is 6
intelfb: intelfb_set_fbinfo
intelfb: intelfb_init_var
intelfb: Initial video mode is 1024x768-16@60.
intelfb: Initial video mode is from 5.
intelfb: update_dinfo
intelfb: intelfb_var_to_depth: bpp: 16, green.length is 6
intelfb: intelfbhw_print_hw_state
...
intelfb: Changing the video mode is not supported.
intelfb: ring buffer : space: 65400 wanted 65472
intelfb: lockup - turning off hardware acceleration
2 things to notice:
In blue is the initial mode for framebuffer.

In red is the ring buffer reporting that it wanted 65472 much space but could only get 65400 causing the lockup right after that which turns off hardware acceleration.

I wonder ... if you change the vga start mode to something less than 1024x768-16 it might not error and hardware accel will remain enabled.

Now, how do you do that ... I think it is set in /etc/lilo.conf, so go there and change:

Code:
vga = ###
where ### is some number such as 773 (for me), to:

Code:
vga = normal
Then run:

Code:
/sbin/lilo
as root to apply changes. And try rebooting.

Last edited by H_TeXMeX_H; 01-27-2007 at 06:14 PM.
 
Old 01-28-2007, 04:37 AM   #12
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
I didn't modify the xorg.conf (but I have changed it a bit - I have edited the new one in my first post).

I put vga=normal in lilo, and now I have no errors and DRI again!

But... the bootup text and following command line (basically anything before X) is at a very small resolution, which is annoying.

How can I make vga=791 work again?

Riddick
 
Old 01-28-2007, 11:37 AM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by Riddick
I didn't modify the xorg.conf (but I have changed it a bit - I have edited the new one in my first post).

I put vga=normal in lilo, and now I have no errors and DRI again!

But... the bootup text and following command line (basically anything before X) is at a very small resolution, which is annoying.

How can I make vga=791 work again?

Riddick
First of all, I'm glad to hear it actually worked !

Well, now that we know what the problem is it may be possible to use the framebuffer in lower resolutions if you want. So in /etc/lilo.conf select a resolution that is less than 1024x768x64k or vga=791. Sorry, but I don't think it's possible to get vga=791 to work again. It uses up too much memory which causes the crash, but anything under that should work, I think. I mean the memory was off by just a few bytes or kilobytes (whatever units they are in)

Quote:
intelfb: ring buffer : space: 65400 wanted 65472
that's 72 kilobytes I think.

So:

Code:
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
choose one of these and see if it still crashes. If it does, then lower the resolution until it doesn't anymore.

Last edited by H_TeXMeX_H; 01-28-2007 at 11:39 AM.
 
Old 01-28-2007, 11:49 AM   #14
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
I tried 790 and it said "video mode not supported", but then I went back to 791 and everything is fine - maybe it just needed a change?

Shall we pursue this further?

Thanks for ALL your help H_TeXMeX_H, you've been great!

Riddick
 
Old 01-28-2007, 12:07 PM   #15
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by Riddick
I tried 790 and it said "video mode not supported", but then I went back to 791 and everything is fine - maybe it just needed a change?

Shall we pursue this further?

Thanks for ALL your help H_TeXMeX_H, you've been great!

Riddick
Hmm ... that's strange. Why would that video mode not be supported ? Maybe it has to be ###x###x64k ?

I've heard that most newer video cards and chipsets don't support or deal with the framebuffer very well at all. Maybe that's part of it ? Maybe it's the drivers for the card. I don't quite know.

If you wanted to know which modes work and which don't you could try them all. But, now that you got the mode you want working properly, maybe you shouldn't
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
855GM + 2 screens + dri = bad? antialize Linux - Hardware 1 10-19-2006 08:48 PM
Direct Rendering problem with i810 (Intel 855GM) fangel7 Linux - Hardware 3 09-13-2006 04:52 PM
enabling DRI with Intel Corporation 82852/855GM Integrated Graphics Device (rev 02 shadowsa Linux - Hardware 1 12-10-2005 11:45 AM
Limitation of Intel Integrated Graphic (855GME 855GM etc -> i810 driver) fedorafrm Linux - Laptop and Netbook 1 04-08-2005 08:13 PM
intel 855GM crash - bug or feature? crashmeister Linux - Hardware 1 12-06-2003 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration