Home Phoronix Phoronix Forums X.Org Videos From FOSDEM 2008

Radeon IRC Logs For 2008-5-12

Search This Log:


xor2k: Hallo everyone!
MostAwesomeDude: xor2k: Evening.
MostAwesomeDude: Or morning.
xor2k: I got a radeon X300 (that means r300 chip). Is it somehow possible to set powerplay with the opensource radeon driver?
xor2k: I actually do not want to dynamically scale the clock/voltage - I simply want to select the lowest powerstate possible
MostAwesomeDude: xor2k: The xf86-video-ati from git has powerplay, but no controls for it.
loswillios: xor2k: something like that was implemented a few days ago
xor2k: Wonderful!
MostAwesomeDude: Actually, now that I think about it, a control would be very cool, but it's basically on-demand right now.
xor2k: I got the yesterday's git version of the radeon driver
xor2k: So, how can I set powerplay?
MostAwesomeDude: xor2k: You will have to put "DynamicClocks on" into your xorg.conf
xor2k: I did
MostAwesomeDude: Okay, that's it.
airlied: MostAwesomeDude: I don't think we have powerplay for non-atombiox
MostAwesomeDude: It will automatically adjust itself to conserve power.
MostAwesomeDude: airlied: Oh, darn.
airlied: dynamic clocks should alread ywork on X300
airlied: automatically.
airlied: but I'm not sure we ever found out how to decode powerplay tables on legacy BIOS.
MostAwesomeDude: Hmm.
MostAwesomeDude: Maybe agd5f knows. Anyway, do we have any userspace tools for adjusting the settings, or is it just on automatic on-demand kind of thing?
xor2k: I observed no advantage in changing the clock.
airlied: MostAwesomeDude: for powerplay on r5xx we sorta need randr 1.3
airlied: MostAwesomeDude: as it would be a GPU property
MostAwesomeDude: airlied: Figures. All the fun stuff is yet to come.
xor2k: It's the voltage that needs to be lowered
xor2k: I'm planning to simply flash my X300 bios to get a lower voltage
MostAwesomeDude: Oh, which reminds me. I've been busy with zen-sources, but I think there's a pattern to the r5xx buggy.
xor2k: There are many tools for windows
MostAwesomeDude: We get exactly one frame of good render before it goes blank. Textured video resets this. I'm guessing we're not resetting the RS for subsequent frames.
xor2k: airlied: Does AMD plan to release some further info for the r300?
airlied: xor2k: maybe, you can ask agd5f :)
airlied: MostAwesomeDude: possibly..
airlied: MostAwesomeDude: I haven't had time to play trace the missing registers :)
MostAwesomeDude: airlied: Well, I know what I'm seeing. I haven't figured out how to make mmiotrace do my bidding yet.
airlied: MostAwesomeDude: not sure why you need to mmiotrace :)
airlied: MostAwesomeDude: I'm going to just work through the 30 regs the DDX sets.
airlied: and I'm nearly sure its in the VAP area
airlied: it could be the RS but I'm not sure.
airlied: as my tri-param test doesn't use RS
airlied: and is still wrong
MostAwesomeDude: Well, good luck. I need to go fix up the aircrack patches for zen.
xor2k: The fglrx driver supports powerplay (but unfortunately, I can't use external resolutions greater than 1024x768 with it). Can't we simply change the powerplay mode and see what it does with the graphics card?
xor2k: I mean with the fglrx driver
airlied: xor2k: we could but that wouldn't be practical for every card.
airlied: xor2k: we really need to decode the tables from the BIOS.
MostAwesomeDude: xor2k: Yeah, but as I understand, the big part is getting to the tables in atombios.
MostAwesomeDude: We've already done that.
airlied: its not even atombios, its just legacy tables.
MostAwesomeDude: The next part is making it accessible to userspace, I think.
MostAwesomeDude: keeps tripping airlied
airlied: granted I'm not sure how much info we have to set voltages etc on r300
xor2k: Shure, more knowledge of BIOS tables is nice...
xor2k: But how do we get it?
airlied: xor2k: agd5f gives it to us :
airlied: )
airlied: xor2k: when he has time.
MostAwesomeDude: xor2k: Kidnap AMD employees for fun and profit.
xor2k: Do we really need it?
MostAwesomeDude: Or be nice to agd5f, but that's no fun.
xor2k: Couldn't we simply write a tool "melk fglrx"?
MostAwesomeDude: Yes.
xor2k: A little script that simply observes the fglrx driver and reproduces its actions?
airlied: xor2k: we have a valgrind plugin
MostAwesomeDude: And then we'll hop in the DeLorean and warp to the future, where everybody plays Duke Nukem Forever with their holographic-storage graphite CPUs.
airlied: or if in kernel mmiotrace
xor2k: I can program C, have read some stuff on the glibc and I also compiled some kernels on my gentoo machine ;)
xor2k: .. I even used "patch"!
xor2k: And I can read tutorials and howtos
xor2k: Is there a nice document for me to read?
xor2k: I found a howto on mmiotrace, but for the nouveau driver
airlied: well I'm not sure where fglrx writes the powerplay regs.
airlied: in the server or in the kernel
xor2k: we will see
xor2k: I found http://nouveau.freedesktop.org/wiki/MmioTraceHowto on mmiotrace
xor2k: How do I create an fglrx blob?
xor2k: s/an/a/
airlied: xor2k: replace nvidia with fglrx
xor2k: "Build the nvidia blob for the kernel if you didn't already do so."
xor2k: What is that blob?
airlied: xor2k: the kernel module
airlied: fglrx.ko
xor2k: ah, ok
xor2k: btw.: Does radeon driver support dri2?
xor2k: xorg tells me that it doesn't
MostAwesomeDude: xor2k: Xorg is correct.
airlied: xor2k: no only intel so far
xor2k: Does dri2 bring great advantages?
MostAwesomeDude: I've been told things to that effect, yes.
quicksilver: ending world poverty? curing cancer?
xor2k: perhaps not ending world poverty, but curing cancer
xor2k: rendering it away ;)
MostAwesomeDude: quicksilver: Well, ending SAREA and curing code redundancy.
airlied: its all about the gears on the cubez.
MostAwesomeDude: It's true. Either you're with the cubez or you're with the enemy.
quicksilver: iz in ur cubez, rendurin ur gears
MostAwesomeDude: quicksilver: That would be the coolest cat ever.
glisse: .win 3
airlied: glisse: .lose :)
glisse: :)
agd5f: powerplay on pre-atom is doable, but dirty. there are command/data tables for most of the relevant stuff, but it's not standardized like atom and there are more errata generally
crow: Hi, is hardware decoding supported in radeon driver for AMD ATI Radeon X1250 IGP integrated in RS690
quicksilver: I don't think there is any hardware decoding assist for any radeon chip.
quicksilver: I'd love to be wrong.
crow: quicksilver well with fglrx there is, i mean not all is done with CPU, but i dont get OSD on xine if i use fgrlx,
agd5f: crow: just yuv->rgb and scaling at the moment
crow: agd5f hmm, well i am using HDMI output from my http://www.abit.com.tw/page/en/motherboard/motherboard_detail.php?pMODEL_NAME=Fatal1ty+F-I90HD&fMTYPE=LGA775 and i dont know what it use from that you just sayed
agd5f: crow: rendering of video via Xv is supported, however, the rest of the video decode pipeline (idct, slices, mc, etc.) is not yet supported in hw
agd5f: we hope to release that info soon
crow: agd5f that mean if i play something over xine it will play "somethign" but will not be that what it can? :P
crow: agd5f ati is driving me creasy :) but i have hope :P
glisse: crow you will see the video
glisse: in the end that's all matter :)
glisse: what
crow: glisse i hope it will be OK video, just switching from fglrx to radeon
glisse: it's just that cpu do more work
glisse: you won't see much differences and i am not even sure fglrx is using the hw neither
agd5f: crow: you'll see the video, it just won't be quite as fully accelerated as it could bt
crow: agd5f and was there any OSD problem reported :)
quicksilver: I'm playing SDTV using a radeon 9250 and xv/opengl
quicksilver: it works fine.
quicksilver: HDTV would be harder I guess.
crow: quicksilver well i need to get OSD from vdr in xine :P
quicksilver: the OSD works fine with myth
quicksilver: which is using some kind of opengl / xv overlay setup.
MostAwesomeDude: airlied: Okay, I tried running mplayer and glxgears at the same time.
MostAwesomeDude: It didn't crash or hang. glxgears didn't draw, and mplayer drew fine.
MostAwesomeDude: But, when I dragged glxgears around, it would flicker heavily between "black" and "gears".
MostAwesomeDude: mplayer was unaffected.
MostAwesomeDude: Also R300_NO_TCL=1 makes glxgears work again.
MostAwesomeDude: So it's something in the new TCL code.
glisse: agd5f: btw did you have time to take a look at gem ?
stefanb: alex is busy pushing commits again....
MostAwesomeDude: stefanb: Yay?
stefanb: I'm ust wondering, drm commit e16a71 says "broken code in mesa needs to be removed"
stefanb: Can I already pull the drm update and run with current mesa, or do I need to wait for the mesa commit?
MostAwesomeDude: stefanb: Depends on what's broken in Mesa. One sec.
stefanb: r3/4/5 pipe setup code
stefanb: OK, let's try the latest -ati git. maybe the cursor "junk at right edge" stuff is fixed
stefanb: BBL
MostAwesomeDude: stefanb: How's it work?
stefanb: flickering is still there. Didn't recompile drm yet.
stefanb: I'm a little careful now about the drm/mesa/xserver combination. Spent several hours without results last week :-)
stefanb: Now I got it working, but only to show that glxgears runs with twice the frame rate than the SW renderer on the T60. Not too impressive yet...
MostAwesomeDude: Hmm.
agd5f: stefanb: we setup the pipe register in mesa, but it really needs to be done in the drm
stefanb: and kwin4 composite only shows garbage...
agd5f: glisse: just looking now
stefanb: agd5f: Yeah, but is it OK to recompile it with both now? Will the drm code override what is done in Mesa?
agd5f: stefanb: it's safe to use them together, mesa still has teh old code though
stefanb: I was hoping that the broken DRM code is the reason for the broken composite stuff...
stefanb: agd5f: Okie
stefanb: turns the ignition key on the compiler...
glisse: agd5f: well i just wanted to collec your general opinion but nothings is on urge :)
agd5f: glisse: from what I understand so far, I like it :)
stefanb: OK, let's try the drm git code... BBL
glisse: agd5f: nice things about it is that you don't need to understand much ;)
stefanb: Well, it works. But now improvement :-|
stefanb: glxgears still ~950fps, one little triangle setup error on the inner side of the red gear. kwin4 composite still shows garbage
MostAwesomeDude: stefanb: Are you direct rendering?
agd5f: stefanb: the drm stuff shold only affect stability, not rendering
MostAwesomeDude: Oh, nevermind. You must be using new TCL if you have the error in the red gear.
stefanb: MostAwesomeDude: I'm using Fedora 9, i.e. xorg server 1.4.99
stefanb: MostAwesomeDude: and EXA in xorg.conf
MostAwesomeDude: stefanb: No, your Mesa. AFAIK, only the new TCL code for r4xx/r5xx causes the erroneous setup in the red gear.
stefanb: MostAwesomeDude: Ahh yes, mesa, r500-support branch latest git
stefanb: MostAwesomeDude: I recompiled libdrm, mesa, xorg-server, ati driver, drm kernel modules (in that order)
MostAwesomeDude: Mm, right.
MostAwesomeDude: You're doing everything right, Mesa just has issues.
MostAwesomeDude: Which reminds me. Which card do you have, does XV work, and does glxgears flicker between gears and black?
stefanb: Hey, I'm not really complaining. The OSS stuff works already much better on my T60 then fglrx. 3D stuff is just a bonus :-)
stefanb: T60 has Mobility X1300
MostAwesomeDude: Okay.
stefanb: RV515 0x7149 AFAIR
MostAwesomeDude: Strange, as mine doesn't get consistent glxgears with TCL on.
stefanb: Although I have to say that at work I have a Dell 30" with nvidia card. Using that without Composite WM is a real pain in the behind...
stefanb: but compiz is just too unstable, or triggers too many bugs in Nvidia closed source driver (noveau doesn't work with my card)
stefanb: MostAwesomeDude: glxgear works OK for me
stefanb: MostAwesomeDude: I didn't see any different behaviour between runs
MostAwesomeDude: Okay.
stefanb: MostAwesomeDude: The gears don't flicker. Just two triangles on the inside of the big red gear are out of whack
stefanb: MostAwesomeDude: But I know I had something like 15 - 17 kfps with glxgears & fglrx. So I know there is room for improvement in mesa code
TobiasTheCommie: hm, just a random question
TobiasTheCommie: what is a "hardware cursor"?
TobiasTheCommie: i've tried looking searching for it on google, but neither google nor man pages really descripe to me what it is(at least not what i have found)
MostAwesomeDude: TobiasTheCommie: Basically a small 64x64 px bit of VRAM that holds the cursor.
TobiasTheCommie: MostAwesomeDude: like, literrally, the cursor on the screen?
MostAwesomeDude: You tell the video card where to draw it, and then the video card draws it over everything else.
TobiasTheCommie: because that is how i read it, but it seems wrong to me
MostAwesomeDude: Yeah, literally.
TobiasTheCommie: oh, ok
MostAwesomeDude: It's a lot faster than blitting it over everything else.
MostAwesomeDude: Most cards have only one hardware cursor, although I've heard of cards with two.
TobiasTheCommie: i was sure that i was mistaken about it literally being the cursor...
MostAwesomeDude: Nope!
TobiasTheCommie: i thought it was more like a name for.. i don't know... a cursor(token) in a list/array or something...
mattst88: I had the same question, but never asked :)
mattst88: so now I know too.
TobiasTheCommie: mattst88: oh good, so i'm not extremely stupid :D
TobiasTheCommie: i really was sure it was another type of cursor...
TobiasTheCommie: oh well
TobiasTheCommie: MostAwesomeDude: thanks for the info. :)
TobiasTheCommie: much appriciated
MostAwesomeDude: NP.
TobiasTheCommie: MostAwesomeDude: now go fix my bug while i'm not helping at all
TobiasTheCommie: :D'
PSYCHO___: about cursor, what about that X.org stuffie which allows more independent cursors wont it eat lots of resources?
PSYCHO___: mostly cpu utilization?
TobiasTheCommie: PSYCHO___: it shouldn't be worse than running one cursor with emulation...
TobiasTheCommie: imo
TobiasTheCommie: well, guess twice as bad if the display driver doesn't do hardware cursor on the first one..
TobiasTheCommie: still, emulation isn't that big of a hit, not compared to running x11 instead of xv or gl(2) on video playback..
airlied: most hw has one cursor per crtc..
airlied: excpet I think some older cards werre made of fail .. possibly mgas.
PSYCHO___: okok
PSYCHO___: i am going to use 2 separate mice and 2 keybs; when i am thinking about it now i guess much easier would be to set up 2 different Xservers. nm
TobiasTheCommie: probably
agd5f: airlied: merged the r345 branch into master. I hope the formatting is ok
airlied: agd5f: nice thanks..
Mony: Hi. Does anyone tried radeon 9100igp with .mkv 720p movie? And does it runs smooth and nice (without lagging and etc)?
Mony: I am asking because i have an offer for second hand barebon without agp/pci-e with radeon 9100
Mony: and want to use it for HTPC
mattmatteh: Mony, what is a htpc ?
mattmatteh: Mony, mkv is just a container, what is the video inside ?
mattmatteh: Mony, and depending on the video, you still need alot of cpu to decode
Mony: home theather pc
mattmatteh: oh, i avoid pc
mattmatteh: anyway
mattmatteh: Mony, what cpu ?
Mony: x264
Mony: codec
Mony: cpu - celeron d 2.66ghxz
Mony: gghz*
mattmatteh: Mony, that eats up alot of cpu, i avoid those too
mattmatteh: Mony, single core ?
Mony: yes it is an old one. socket 478
mattmatteh: Mony, best way to try it.
mattmatteh: might work
mattmatteh: but x264 is not easy
mattmatteh: for example x264, 720, pentium3 choked 799 MHz
mattmatteh: so you will need at least twice what i have, if not more
mattmatteh: Mony, personally, i suggest you stick to mpeg2
mattmatteh: and i dont think there is hardware support for x264 ?
Mony: nope
Mony: i will try before buy it
Mony: but i wanted second opinion before that :)
Mony: mattmatteh, thanks :)
mattmatteh: not sure the card matters
mattmatteh: i think you might have a cpu issue actually
mattmatteh: you can only offload so much to the card
mattmatteh: x264 is very spu intensive
mattmatteh: cpu*
Mony: cpu is easy. I can get one pentium 4 3.2 ghz from a friend on the same socket
Mony: but the vga is integrated and there isn't agp/pci-e slot
Mony: and can't change it :)
mattmatteh: i dont use vga either, all dvi/hdmi now
Mony: this one has dvi and will use dvi to hdmi to plug the pc in my tv
Mony: i can get other pc for htpc but this one is so compact and small... :)
dmb: hey
dmb: hows the mesa support going for the r500?
dmb: can it do more then glxgears yet?
airlied: dmb: depends on what you call more than gears, it can run some other trivial test programs :)
dmb: :D
airlied: and I saw some emulator MostAwesomeDude was playing with
dmb: which emulator?
airlied: not sure...
airlied: but we are at a slow bit now..
airlied: have to hunt the register that isn't getting set by the 3D driver .
dmb: oh
airlied: stuff works if the you have render accel on, but not so much without it.
dmb: oh
dmb: airlied: hows kernel mode switching going?
dmb: so does that mean no more dealing with vesa modes and crap?
dmb: and nice resolution text consoles?