[TiZ]: Hi. I gave fglrx another whirl on my laptop, but it blew chunks like usual, and I'm trying to get back to radeon. The kernel module's not loading, and when I try to modprobe it, I get "Error inserting module [...] Cannot allocate memory." My Xorg.0.log is at http://pastebin.com/m1f8e7813 . Thanks for any assistance. :)
[TiZ]: I uninstalled fglrx through aptitude when I was forced into Ubuntu's recovery mode. For some reason or another, fglrx was forcing me into low graphics mode
terracon: cough .. /topic
[TiZ]: I'm trying to get off of fglrx.
[TiZ]: That driver blows chunks on my Gateway MT6452. Always always always. I shouldn't have messed with fglrx in the first place. :(
terracon: probably have to change the 'driver' in /etc/X11/xorg.conf to radeon
[TiZ]: I guess that might be worth a shot. But I'd have to restart in order to test it. I'd like to cover all my bases now
terracon: it's probably still says fglrx. but with the new fangled X these days does it default back to Vesa?
[TiZ]: I tried to sudo modprobe radeon, and got this wonderful--
[TiZ]: I think it's defaulted back to vesa right now, tes
[TiZ]: I backed up my xorg.conf before installing fglrx, and I've restored my backup.
terracon: well if you get into X or even terminal use your fav editor and crack open /etc/X11/xorg.conf and in the Device secion look at the driver entry
[TiZ]: The driver is "ati"
terracon: ati is fine. It's just a wrapper
[TiZ]: Anyways, when I try to sudo modprobe radeon...
terracon: well you have to be out of X to modprobe the kernel module radeon
[TiZ]: WARNING: Error inserting drm (/lib/modules/2.6.24-19-generic/kernel/drivers/char/drm/drm.ko): Cannot allocate memory //// FATAL: Error inserting radeon (/lib/modules/2.6.24-19-generic/kernel/drivers/char/drm/radeon.ko): Unknown symbol in module, or unknown parameter (see dmesg)
terracon: yep. The X server has to be stopped to load it than startx
terracon: hold on let me look at the xorg.conf
EruditeHermit: [TiZ]: did you purge all the fglrx stuff away?
[TiZ]: Yeah, I purged from aptitude
[TiZ]: I don't suppose there's any way to double check
EruditeHermit: what does dmesg say?
[TiZ]: hold on, I'll pastebin it
terracon: (--) RADEON(0): Chipset: "ATI Radeon XPRESS 200M 5975 (PCIE)"
EruditeHermit: [TiZ]: crazy idea, but can you reinstall libgl1-mesa-dri and libgl1-mesa-glx
airlied: rmmod fglrx
airlied: and remove the module
[TiZ]: I just sudo rmmod fglrx
[TiZ]: And it worked
terracon: does aptitude not remove it?
[TiZ]: I thought it flipping did. :(
terracon: I guess not
[TiZ]: I guess I'll blacklist fglrx
EruditeHermit: it does on ubuntu if you have dkms enabled
terracon: If you're in X it doesn't unload/remove the fglrx kernel module?
EruditeHermit: not unless something does it
[TiZ]: Well, when I decided (in record time) that fglrx wasn't gonna cut it, my X server wasn't starting.
EruditeHermit: the strange thing is, even if it exists in the kernel tree, it shouldn't be loaded if ati is specified in Xorg
terracon: airlied: how goes kms
EruditeHermit: [TiZ]: did you restart perchance?
[TiZ]: Because I messed with some xorg.conf settings, probably. But I went into recovery mode, used aptitude to purge everything having to do with fglrx, restored my xorg.conf backup, and then rebooted
airlied: terracon: it moves slowly along..
EruditeHermit: airlied: so it doesn't look like you'll hvae it ready for FC10
[TiZ]: I'm going to blacklist fglrx, and then restart.
terracon: airlied: I'm seeing the black screen of death in f10
airlied: EruditeHermit: no it'll be ready..
airlied: terracon: what hw?
airlied: terracon: laptop?
EruditeHermit: isn't the beta supposed to come out today?
terracon: rv350 actually, no desktop
terracon: do you want me to do the debug thing?
airlied: terracon: oh wierd.. I'd expect most desktops to work.. what was the last kernel you tried?
terracon: let me see
airlied: EruditeHermit: I think we might delay it a bit further, there is some wierd Intel network card issue in the kernel
airlied: OpenSUSE released a beta and it bit them
terracon: I looked at koji and one was in the oven building
airlied: terracon: try that one when it lands..
airlied: terracon: and if it doesn't display anything please do the debug method.
terracon: 337 is available now, that the one?
airlied: terracon: 347 should be around
airlied: 337 is in rawhide I think, but koji has 347
[TiZ]: All is good now. Thanks for your help. :)
terracon: airlied: I see it , katzj . ok downloading this one
EruditeHermit: fglrx is only good at 3D
EruditeHermit: everything else I find radeon does better
EruditeHermit: especially video playback
[TiZ]: radeon will eventually do 3d just as well, won't it? ;)
EruditeHermit: I'm hoping when they use Gallium3D it will =)
[TiZ]: Well, I gotta get to sleep.
[TiZ]: Good night. Er, day. Depending on where you are.
EruditeHermit: i'm sure with AMD putting people on it it will
EruditeHermit: airlied: I tried installing an alpha fc10 and it hosed my FS. I nearly lost everything because I didn't backup
EruditeHermit: airlied: I managed to recover most of it eventually, but it was scary =p
EruditeHermit: I learned my lesson to backup stuff though
airlied: EruditeHermit: wierd. it normally doesnt suck that much.
EruditeHermit: must have got it at a bad time
EruditeHermit: it was alpha so anything could have happened
EruditeHermit: I will try to get a spare HD and try it on that next time
EruditeHermit: required testdisk and fsck to fix
EruditeHermit: my fault for being stupid and testing stuff without backing up
EruditeHermit: I'll try beta when it is released
terracon: airlied: I have the output from the logfiles. Bugzilla it?
airlied: terracon: yup would be best.. so you see no console at all?
terracon: when I modprobe radeon modeset=1 it goes black
terracon: after I start x . If I return to console I get some nice stripes
airlied: terracon: wierd.. lets try and solve the no console on modprobefirst I suppose
terracon: airlied: bugzilla entry made so
airlied: terracon: which bz?
terracon: ohhhhhh AGP Bind memory failed
airlied: terracon: oh "nice" :)
terracon: I attached my Xorg log and dmesg
terracon: I read one of your post somewhere for debugging modesetting
airlied: terracon: gimme a link to the bug.. my mail is being slow
terracon: boot with nomodeset 3 than rmmod radeon drm, than modprobe drm debug=1, modprobe radeon modeset=1
terracon: the number is .. sec
terracon: dmesg is good, error, failed to allocate ring
airlied: ah nvidia-agp
airlied: [drm:radeon_alloc_gart_objects] *ERROR* failed to allocate ring - most likely an AGP driver bug
airlied: I have a patch for nvidia-agp I need to throw in for testing
airlied: I lost it now... /me ponders what machine its on
terracon: I was going to ask you that. How many machines do you have going?
terracon: do you have an Nvidia Window stop (tm) ?
airlied: I average about 7, but I think my machines in the office didn't come back after some power cut..
airlied: been away for a week..
terracon: mharris took a photo once of this huge quadro card propping up a window
terracon: he always joked. That's all it was good for
airlied: terracon: hehe.. bbl.. will find patch tomorrow.
terracon: airlied: sure. I'll try a koji kernel in the next 24hrs
terracon: this time tomorrow. I will try it
terracon: patch build test. Great thing this open source
terracon: and hopefully plymouth can work good so Ubuntu can just patch their stuff with it.. muahaha. I read that blog post. Was funny
EruditeHermit: how many technical employees does RH have?
toumou_: does anyone knows the status of xf86-video-radeon on powerpc ?
toumou_: i have a freescale mpc8641_hpcn board, with an ati X1300PRO (RV515) PCIe graphics board
toumou_: I'm using fedora 10 for powerpc
MrCooper: toumou_: it should work fine on powerpc (my main machine is a PowerBook with an RV350); are you having a problem?
toumou_: yes indeed
toumou_: i modprobe the radeon drm driver
toumou_: then starts X
toumou_: but my system hangs
toumou_: this is a fedora core 10, with custom 220.127.116.11 kernel
MrCooper: does it work without the kernel module, or the DRI disabled otherwise?
toumou_: without the drm module, the ddx driver does not find any device
toumou_: I did not tried to disable the DRI but I have
toumou_: (EE) RADEON(0): Static buffer allocation failed. Disabling DRI.
toumou_: (EE) RADEON(0): At least 19800 kB of video memory needed at this resolution and depth.
toumou_: the X1300 PCIe was taken from a typical linux pc, it is not a mac edition or something like this
MrCooper: hmm, sounds like the card isn't POSTed
toumou_: the mpc8641_hpcn uses uboot
MrCooper: traditionally, the driver relied on the firmware to do that, but with ATOM BIOS I thought it might be able to do it itself
toumou_: Uboot does not run the VGA bios and i don't think it cans.
MrCooper: can you put up the full log file corresponding to the above somewhere?
toumou_: Can i post the log in the irc channel ?
toumou_: (a hundred lines...)
EruditeHermit: toumou_: that was for you
toumou_: is ok
toumou_: I can store on my web site
EruditeHermit: toumou_: fedora 10 alpha?
MrCooper: toumou_: that's not the log file, which is at: (==) Log file: "/var/log/Xorg.0.log", Time: Tue Sep 23 09:47:47 2008
toumou_: this is the debug messages from the radeon driver
toumou_: my system hangs and the Xorg.0.log does not seem to be flushed on the disk
MrCooper: try 'mount -o remount,sync [mount point of file system containing /var/log/Xorg.0.log]' before starting X
toumou_: thanks for the tips
toumou_: the same but with EXA acceleration : http://rafb.net/p/4rwzIx43.html
toumou_: but the problem remains the same,
toumou_: while the X server boots, screens unblank then blank
toumou_: the board freeze and I can not use it anymore (no ping, no serial console)
toumou_: by the way, I also tried the radeonhd driver without success.
toumou_: It does not hangs but X server fails to start
toumou_: But I would prefer to use the radeon driver
MrCooper: looks like the radeon driver fails to call rhdAtomASICInit() when it should in this case
MrCooper: the logic for that in RADEONGetBIOSInfo() probably needs tweaking
MrCooper: you could try hacking it to force the call
toumou_: ok i'll try that
toumou_: it works !
toumou_: So I did an ugly thing in radeon_bios.c:RADEONGetBIOSInfo()
toumou_: at the end of the function, i commented out the code that test if the board isn't posted and used atombios
toumou_: i replace with a call to rhdAtomASICInit
toumou_: then it works
MrCooper: that's what I suspected
toumou_: thanks for your help
toumou_: i'll continue my testing (now it's time for 3D)
toumou_: i'll try to check why it hangs an do a proper patch
MrCooper: toumou_: it hangs because the card isn't POSTed
airlied: is interested in how well 3D goes on powerpc, never really tested ity
airlied: on r500 that is
toumou_: i'll test
toumou_: for now mesa tells me that direct rendering is enabled, but it uses the software rasterizer
toumou_: and gears in glxgears are blue (endian issue)
MrCooper: yeah, the swrast driver has endianness issues
MrCooper: set LIBGL_DEBUG=verbose to find out why it isn't using the r300 driver
MrCooper: assuming the X log file say direct rendering is enabled
toumou_: (II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
toumou_: (II) GLX: Initialized DRISWRAST GL provider for screen 0
toumou_: (II) RADEON(0): Setting screen physical size to 304 x 228
toumou_: This is not what i want
airlied: toumou_: most definitely not
toumou_: in the serverflags section I disable AIGLX but it is still here
airlied: don't do that..
toumou_: libGL error: drmOpenOnce failed (Operation not permitted)
toumou_: libGL error: reverting to software direct rendering
toumou_: libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
pal_gene: terracon: i have applied nvidia-agp-dont-reject-mem-type.patch then success radeondrmfb.
airlied: pal_gene: where is that patch?
pal_gene: airlied: in localhost ;)
pal_gene: this is just don't reject in nvidia_insert_memory and nvidia_remove_memory ...
airlied: pal_gene: ah I have a proper fix..
airlied: I built a scratch kernel with it in it..
airlied: its just on a machine that appears to be off
EruditeHermit: airlied: you said the 3D driver had to be rewritten for kms. Will that mean that any additional functionality will be added because of the availability of a mem manager?
EruditeHermit: I read somewhere that proper memory management is what stopped full OpenGL2 compliance
MrCooper: rather stuff like FBOs and PBOs
MrCooper: toumou_: sounds like the ownership/permissions of /dev/dri/card0 may not get set up correctly
toumou_: hi still here
toumou_: I set Mode 0666 in the DRI section
toumou_: -bash-3.2# ls -al /dev/dri/card*
toumou_: crw-rw-rw- 1 root root 226, 0 sept. 23 11:00 /dev/dri/card0
toumou_: sounds good
MrCooper: drmOpenByBusid: Searching for BusID pci:0001:04:00.0
MrCooper: drmOpenByBusid: drmGetBusid reports pci:0000:04:00.0
MrCooper: toumou_: the PCI domain doesn't match :(
toumou_: yes that's what i'm currently looking
MrCooper: I think the DRM code just hardcodes the domain to 0
MrCooper: we probably need to fix that somehow at some point...
jcristau: isn't that https://bugs.freedesktop.org/show_bug.cgi?id=7770 ?
MrCooper: guess so
toumou_: drm_get_pci_domains returns 0 (hardcoded)
toumou_: whereas on alpha platform
toumou_: #define drm_get_pci_domain(dev) dev->hose->index
toumou_: OpenGL renderer string: Mesa DRI R300 20060815 PowerPC/Altivec TCL
toumou_: this was the problem : pci domain
toumou: thanks guys for your help
toumou: so far the xf86-video-radeon driver is working and the DRI too
toumou: on my powerpc board
MrCooper: have you tried any 3D apps?
toumou: glxgears is currently running
toumou: I'll have to do some benchmark now
toumou: there are lot of mesa demos that do not work well
toumou: I will try them all and send a matrix with bugs / issues for applications
spstarr_work: terracon: rv350 can't be a desktop? :) its a mobile
spstarr_work: airlied: should I pull git DDX if you have any AGP fixups i can try to see if we still gpu wedge on X usage
stefanb: I haven't seen any messages for a while. What is the current status of r6/7xx work? Still stuck that the code doesn't show anything on the screen?
spstarr_work: has an r6xx it works for 2D but i didnt stress it much
stefanb: spstarr_work: Yes, "normal" X11 works, but e.g. XVideo doesn't
stefanb: spstarr_work: I updated my DVR hardware to a AMD 780G motherboard last week. Now I have 1920x1080 via HDMI but the CPU is too slow to replace XVideo at this resolution
airlied: spstarr_work: its on my list to add agpmode options, I think the bridge is fine in your case
spstarr_work: any patches you put in git i can test quickly
spstarr_work: assuming this is DDX you're talking about vs kernel
terracon: spstarr_work: yes, It's should have been r350
agd5f: there are non-mobile rv350s
spstarr_work: agd5f: oh?
spstarr_work: so many gpu variations
spstarr_work: terracon: KMS should work on the rv350 at least the mobile edition
agd5f: yeah. 9600's, 9550s, etc.
spstarr_work: there's issues with X + KMS but kms posted video
bizzle: hello all
matsuura: is there support for the Xpress 200?
spstarr_home: airlied: badness
spstarr_home: airlied: you around i have a oops crash
airlied: spstarr_home: please pastebin it
spstarr_home: yes let me...
spstarr_home: running glxgears crashes system.. i have a good crash dumpp
spstarr_home: airlied: http://fpaste.org/paste/6483
spstarr_home: it doesnt appear to be due to radeon though based on that
spstarr_home: but i can't tell
airlied: spstarr_home: nice explosion
spstarr_home: something trips some 'bad' irq
airlied: failing in the irq_wait seems bad..
spstarr_home: I am gonna log a kernel bug on b.r.c
matsuura: is there support for the Xpress 200?
spstarr_home: airlied:it may explain why KMS is crashing too
spstarr_home: but i couldn't tell if it locks up tight
spstarr_home: logs bug
spstarr_home: airlied: because if its related to this irq madness, X might just working fine
spstarr_home: with kms on
matsuura: is there support for the Xpress 200?
robokopp: yes matsuura i think at least basic support is there... if i remember right
matsuura: Is there a site I can go to for details?
robokopp: this one perhaps http://wiki.x.org/wiki/RadeonFeature
matsuura: robokopp: there doesnt seem to be an listing for the Xpress 200
airlied: it shuold be as supported as anything else.. IGPs often have wierd issues though
robokopp: hm yeah... rs400 isnt there
matsuura: robokopp: well, RS482 to be more specific
robokopp: no idea, sorry, you have to give it a try
matsuura: give what a try?
robokopp: yes, if you have the hardware around
matsuura: the ati driver results in my screen having horizontal lines all over and well, just major tweak out
robokopp: hm, could you try a newer version of the driver? sorry im just a user
matsuura: Ah, lameness.. Thanks though
spstarr: airlied: - rebase drm patches with latest upstream GEM bits
spstarr: new kernel being built what does this add?
airlied: just rebases krh's patches into my tree.
airlied: no add really
airlied: r600/700 object parsing written. garbage on screen but at least the objects are right.
Magnade: airlied: so that means its just a garbage filled triangle?
terracon: waves to Magnade
Magnade: terracon: thought i had seen you parting a couple times
terracon: Magnade: what did you do to make mharris leave???
Magnade: terracon: amazing how we seem to end up in the same places over and over...
Magnade: terracon: i cant say as i recall doing much of anything or him leaving
Magnade: i think he was still around when i faded out
terracon: Magnade: I'm just kidding yah. We had some pretty good laughs when he was around
Magnade: terracon: heh yeah that was a rather amusing channel for some time