| View previous topic :: View next topic |
| Author |
Message |
irwan_ap n00b

Joined: 12 Dec 2010 Posts: 7
|
Posted: Sun Jul 15, 2012 12:54 pm Post subject: Xorg segfaults on startx (radeon HD7450, open source driver) |
|
|
I'm trying to setup X on a new machine, but startx segfaults.
| Code: |
[ 75.756] Backtrace:
[ 75.756] 0: /usr/bin/X (xorg_backtrace+0x36) [0x56dbb6]
[ 75.756] 1: /usr/bin/X (0x400000+0x1716a9) [0x5716a9]
[ 75.756] 2: /lib64/libpthread.so.0 (0x7eff8eb51000+0x10420) [0x7eff8eb61420]
[ 75.756] 3: /usr/lib64/xorg/modules/drivers/radeon_drv.so (0x7eff8b9a3000+0xe229b) [0x7eff8ba8529b]
[ 75.756] 4: /usr/bin/X (AddScreen+0x1a8) [0x436508]
[ 75.756] 5: /usr/bin/X (InitOutput+0x294) [0x475f94]
[ 75.756] 6: /usr/bin/X (0x400000+0x24d03) [0x424d03]
[ 75.756] 7: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x7eff8da852ad]
[ 75.756] 8: /usr/bin/X (0x400000+0x24a69) [0x424a69]
[ 75.756]
[ 75.756] Segmentation fault at address (nil)
[ 75.756]
Fatal server error:
[ 75.756] Caught signal 11 (Segmentation fault). Server aborting
|
The full Xorg.0.log: http://bpaste.net/show/35100/
I am using the open source driver (xf86-video-ati).
The radeon driver and firmwares are built into the kernel:
| Code: |
#
# Graphics support
#
CONFIG_AGP=y
CONFIG_AGP_AMD64=y
CONFIG_AGP_INTEL=y
CONFIG_AGP_SIS=y
CONFIG_AGP_VIA=y
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
# CONFIG_VGA_SWITCHEROO is not set
CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_TTM=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
CONFIG_DRM_RADEON=y
CONFIG_DRM_RADEON_KMS=y
|
| Code: |
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE="radeon/BTC_rlc.bin radeon/CAICOS_mc.bin radeon/CAICOS_me.bin radeon/CAICOS_pfp.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
|
Full kernel .config: http://bpaste.net/show/35101/
I cannot find any error message in dmesg, also, I am able to see 4 penguins on the boot screen (that means the radeon driver is working, right?)
| Code: |
[ 0.345026] [drm] Initialized drm 1.1.0 20060810
[ 0.345056] [drm] radeon defaulting to kernel modesetting.
[ 0.345057] [drm] radeon kernel modesetting enabled.
[ 0.345194] [drm] initializing kernel modesetting (CAICOS 0x1002:0x677B 0x1462:0x2496).
[ 0.345224] [drm] register mmio base: 0xF7E20000
[ 0.345225] [drm] register mmio size: 131072
[ 0.345688] ATOM BIOS: HP
[ 0.346040] radeon 0000:01:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
[ 0.346042] radeon 0000:01:00.0: GTT: 512M 0x0000000040000000 - 0x000000005FFFFFFF
[ 0.346046] mtrr: type mismatch for e0000000,10000000 old: write-back new: write-combining
[ 0.346047] [drm] Detected VRAM RAM=1024M, BAR=256M
[ 0.346048] [drm] RAM width 64bits DDR
[ 0.346067] [TTM] Zone kernel: Available graphics memory: 2001316 kiB.
[ 0.346068] [TTM] Initializing pool allocator.
[ 0.346071] [TTM] Initializing DMA pool allocator.
[ 0.346086] [drm] radeon: 1024M of VRAM memory ready
[ 0.346087] [drm] radeon: 512M of GTT memory ready.
[ 0.346093] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[ 0.346094] [drm] Driver supports precise vblank timestamp query.
[ 0.346122] radeon 0000:01:00.0: irq 41 for MSI/MSI-X
[ 0.346129] radeon 0000:01:00.0: radeon: using MSI.
[ 0.346167] [drm] radeon: irq initialized.
[ 0.346169] [drm] GART: num cpu pages 131072, num gpu pages 131072
[ 0.346409] [drm] radeon: ib pool ready.
[ 0.346468] [drm] Loading CAICOS Microcode
[ 0.348417] [drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
[ 0.348524] radeon 0000:01:00.0: WB enabled
[ 0.348526] [drm] fence driver on ring 0 use gpu addr 0x40000c00 and cpu addr 0xffff8801195d8c00
[ 0.364973] [drm] ring test on 0 succeeded in 3 usecs
[ 0.365160] [drm] ib test on ring 0 succeeded in 0 usecs
[ 0.365481] [drm] Radeon Display Connectors
[ 0.365483] [drm] Connector 0:
[ 0.365483] [drm] HDMI-A
[ 0.365484] [drm] HPD2
[ 0.365486] [drm] DDC: 0x6460 0x6460 0x6464 0x6464 0x6468 0x6468 0x646c 0x646c
[ 0.365487] [drm] Encoders:
[ 0.365487] [drm] DFP1: INTERNAL_UNIPHY1
[ 0.365488] [drm] Connector 1:
[ 0.365489] [drm] DVI-I
[ 0.365490] [drm] HPD4
[ 0.365491] [drm] DDC: 0x6450 0x6450 0x6454 0x6454 0x6458 0x6458 0x645c 0x645c
[ 0.365492] [drm] Encoders:
[ 0.365492] [drm] DFP2: INTERNAL_UNIPHY
[ 0.365493] [drm] CRT1: INTERNAL_KLDSCP_DAC1
[ 0.365561] [drm] Internal thermal controller with fan control
[ 0.366399] [drm] radeon: power management initialized
[ 0.418610] [drm] fb mappable at 0xE0142000
[ 0.418611] [drm] vram apper at 0xE0000000
[ 0.418612] [drm] size 3145728
[ 0.418613] [drm] fb depth is 24
[ 0.418613] [drm] pitch is 4096
[ 0.418665] fbcon: radeondrmfb (fb0) is primary device
[ 0.826169] Console: switching to colour frame buffer device 128x48
[ 0.827510] fb0: radeondrmfb frame buffer device
[ 0.827511] drm: registered panic notifier
[ 0.827513] [drm] Initialized radeon 2.13.0 20080528 for 0000:01:00.0 on minor 0
|
The full dmesg: http://bpaste.net/show/35102/
What am I missing here?
Thanks. |
|
| Back to top |
|
 |
eccerr0r Advocate

Joined: 01 Jul 2004 Posts: 2999 Location: USA
|
Posted: Sun Jul 15, 2012 3:11 pm Post subject: |
|
|
Are you using an xorg.conf?
haven't seen it segfault like this before... _________________ Core-i7-2700K@4.1GHz/8GB RAM/180GB SSD/Intel HD3000 graphics
What the heck am I advocating? |
|
| Back to top |
|
 |
irwan_ap n00b

Joined: 12 Dec 2010 Posts: 7
|
Posted: Sun Jul 15, 2012 3:45 pm Post subject: |
|
|
No, I'm not using xorg.conf. Should I be using it? Most of the wiki/guide about setting up Xorg recommends not to use xorg.conf and to let it discovers the configuration by itself.
But thanks for the idea. I will try using xorg.conf and see if it works. |
|
| Back to top |
|
 |
Gusar Advocate

Joined: 09 Apr 2005 Posts: 2557 Location: Slovenia
|
Posted: Sun Jul 15, 2012 4:07 pm Post subject: |
|
|
| irwan_ap wrote: | | No, I'm not using xorg.conf. Should I be using it? |
You shouldn't, at least not any automatically generated one, because all these generators (like X -configure) are outdated. Your issue isn't one of configuration, you configured everything properly. There's some unneeded things in your kernel (you don't need AGP), but I don't think it hurts.
The only thing fishy I can see is this: | Code: | | [ 0.826169] Console: switching to colour frame buffer device 128x48 |
This implies a display with a resolution of 1024x768. Is your display actually 1024x768? |
|
| Back to top |
|
 |
eccerr0r Advocate

Joined: 01 Jul 2004 Posts: 2999 Location: USA
|
Posted: Sun Jul 15, 2012 4:44 pm Post subject: |
|
|
Right, you shouldn't be using one if you can avoid it. I was worried you may have a syntax error in your config file that possibly could cause a segfault. I use fglrx and can think of a lot of other reasons for a segfault but I suppose they don't apply (specifically, outdated config files.)
It looks like you're using 6.14.4, may need a newer one even. You have a very recent card, need recent driver...
Did you try fglrx at one point? Just curious if that works even... _________________ Core-i7-2700K@4.1GHz/8GB RAM/180GB SSD/Intel HD3000 graphics
What the heck am I advocating? |
|
| Back to top |
|
 |
DaggyStyle Advocate


Joined: 22 Mar 2006 Posts: 4735
|
Posted: Sun Jul 15, 2012 5:00 pm Post subject: |
|
|
imho to get this to work, you must (at least) use latest kernel 3.4, latest linux-firmware and mesa, libdrm and xf86-video-ati from git. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball |
|
| Back to top |
|
 |
Gusar Advocate

Joined: 09 Apr 2005 Posts: 2557 Location: Slovenia
|
Posted: Sun Jul 15, 2012 5:13 pm Post subject: |
|
|
| DaggyStyle wrote: | | imho to get this to work, you must (at least) use latest kernel 3.4, latest linux-firmware and mesa, libdrm and xf86-video-ati from git. |
Nope, that would be true if he had a Southern Islands card. His is Northern Islands though. Still, kernel 3.4 might work better than 3.3 does. |
|
| Back to top |
|
 |
DaggyStyle Advocate


Joined: 22 Mar 2006 Posts: 4735
|
Posted: Sun Jul 15, 2012 6:14 pm Post subject: |
|
|
according to wikipedia, 7450 is SI.
checking the supported cards on the xorg log which is complied without SI returns nothing. _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball |
|
| Back to top |
|
 |
Gusar Advocate

Joined: 09 Apr 2005 Posts: 2557 Location: Slovenia
|
Posted: Sun Jul 15, 2012 6:24 pm Post subject: |
|
|
| What wikipedia page? This here says it's NI: http://www.x.org/wiki/RadeonFeature/. Also, you can see in the dmesg log that CAICOS firmware was loaded. And CAICOS = Northern Islands. Southern Islands is VERDE, PITCAIRN and TAHITI. |
|
| Back to top |
|
 |
DaggyStyle Advocate


Joined: 22 Mar 2006 Posts: 4735
|
|
| Back to top |
|
 |
DaggyStyle Advocate


Joined: 22 Mar 2006 Posts: 4735
|
Posted: Sun Jul 15, 2012 6:43 pm Post subject: |
|
|
after checking you link, I see what you mean but that raises a question, why the card doesn't shows up in the xorg logs? _________________ Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball |
|
| Back to top |
|
 |
Gusar Advocate

Joined: 09 Apr 2005 Posts: 2557 Location: Slovenia
|
Posted: Sun Jul 15, 2012 6:43 pm Post subject: |
|
|
Yeah, they just lumped all 7xxx cards together as being SI. Which is wrong. The 7350 is Evergreen even! And some 6xxx are Evergreen too. |
|
| Back to top |
|
 |
irwan_ap n00b

Joined: 12 Dec 2010 Posts: 7
|
Posted: Mon Jul 16, 2012 2:19 pm Post subject: |
|
|
From google search, it seems like the 7450 is just 6450 rebranded, so it belongs to the 6xxx family.
Tried fglrx before, I can startx, but it's very slow (xfce4, no compositing or any fancy desktop effect, even moving window around is very slow) and there is a watermark "unsupported hardware" on bottom right corner. I have then uninstalled it.
Now I'm using the generic vesa driver, it sorts of works (I only get 1024x768 resolution when the monitor actually supports up to 1920x1080).
I will wait for when the kernel and the driver is updated, and see if that will fix the problem (I don't like installing packages from unstable tree or from outside the portage tree).
Thanks for all your input. |
|
| Back to top |
|
 |
gorkypl Guru

Joined: 04 Oct 2010 Posts: 440 Location: Kraków, PL
|
Posted: Mon Jul 16, 2012 2:28 pm Post subject: |
|
|
| irwan_ap wrote: | unstable tree or from outside the portage tree
|
Nothing to be worried about, 'unstable' tree is very stable in fact  _________________ BTW, TWM FTW! |
|
| Back to top |
|
 |
|