https://bugs.freedesktop.org/show_bug.cgi?id=69120
Priority: medium Bug ID: 69120 Assignee: dri-devel@lists.freedesktop.org Summary: With dpm=1 vdpau is not usable Severity: normal Classification: Unclassified OS: Linux (All) Reporter: john.ettedgui@gmail.com Hardware: x86-64 (AMD64) Status: NEW Version: 9.2 Component: Drivers/Gallium/r600 Product: Mesa
Hello,
with radeon.dpm=0 (or not set), vdpau output works very fine. But if I switch to radeon.dpm=1 it becomes unusable. mplayer tells me that my computer is too slow, video stutters to a crazy extent, same in xbmc. With dpm set to 1, I am still able to watch videos "normally" if not using vdpau.
I have a Radeon 4670, Linux 3.11, Mesa 9.2 and Radeon 1:7.2.0.
I tried to change power_dpm_state and power_dpm_force_performance_level to see if it would help. power_dpm_state stays at performance but even if I set power_dpm_force_performance_level to high, but it always reverts to auto... This doesn't help at all...
I am not sure what else to attach. Thank you
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #1 from Dieter Nützel Dieter@nuetzel-hh.de --- Hello John,
I see nearly the same with all 3.11-rcX and final plus 3.12-next. Only diffence with dpm=0 I get partially mosaic with bigger videos (1280x720 H.264 and 1920x1080 H.264) from time to time.
But my system is much slower than yours:
poor Duron 1800 ;-) RV730 AGP (4650) Mesa 9.2 and git master 3.11 and 3.12-next
power_dpm_force_performance_level didn't works for me, too.
I am not sure what else to attach.
Maybe your dmesg.log, Xorg.0.log and your vbios.
(as root) (use lspci to get the bus id) cd /sys/bus/pci/devices/<pci bus id> echo 1 > rom cat rom > /tmp/vbios.rom echo 0 > rom
Mine comming, here. (With dual DVI monitor configuration I got something in dmesg) [drm:rv770_dpm_set_power_state] *ERROR* rv770_restrict_performance_levels_before_switch failed
Regards, Dieter
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #2 from Dieter Nützel Dieter@nuetzel-hh.de --- Created attachment 85467 --> https://bugs.freedesktop.org/attachment.cgi?id=85467&action=edit dmesg-3.11-dmp-1-two-displays.log
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #3 from Dieter Nützel Dieter@nuetzel-hh.de --- Created attachment 85468 --> https://bugs.freedesktop.org/attachment.cgi?id=85468&action=edit Xorg.0.log
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #4 from Dieter Nützel Dieter@nuetzel-hh.de --- Created attachment 85469 --> https://bugs.freedesktop.org/attachment.cgi?id=85469&action=edit copy of video bios
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #5 from Dieter Nützel Dieter@nuetzel-hh.de --- # radeontool regmatch 0x0718 0x0718 0x20010002 (536936450)
# radeontool regmatch 0x071c 0x071c 0x021f2111 (35594513)
# radeontool regmatch 0x0720 0x0720 0x102774da (271021274)
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RV730 Pro AGP [Radeon HD 4600 Series] (prog-if 00 [VGA controller]) Subsystem: PC Partner Limited Device 0028 Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 16 Memory at c0000000 (32-bit, prefetchable) [size=256M] I/O ports at a800 [size=256] Memory at dfdf0000 (32-bit, non-prefetchable) [size=64K] Expansion ROM at dfdc0000 [disabled] [size=128K] Capabilities: [50] Power Management version 3 Capabilities: [58] AGP version 3.0 Kernel driver in use: radeon
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #6 from John john.ettedgui@gmail.com --- Hello Dieter,
thanks for the suggestions.
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #7 from John john.ettedgui@gmail.com --- Created attachment 85476 --> https://bugs.freedesktop.org/attachment.cgi?id=85476&action=edit John's vbios
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #8 from Alex Deucher agd5f@yahoo.com --- Please attach your dmesg output.
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #9 from John john.ettedgui@gmail.com --- Created attachment 85496 --> https://bugs.freedesktop.org/attachment.cgi?id=85496&action=edit John's dmesg
https://bugs.freedesktop.org/show_bug.cgi?id=69120
Alex Deucher agd5f@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #85496|application/octet-stream |text/plain mime type| |
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #10 from Alex Deucher agd5f@yahoo.com --- Created attachment 85563 --> https://bugs.freedesktop.org/attachment.cgi?id=85563&action=edit possible fix
The attached patch should fix the issue.
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #11 from John john.ettedgui@gmail.com --- Hi Alex,
Thanks for the quick turn around.
Looking at the patch it seems to be for RV770 and RV780 will it still work for our older cards?
I am not home right now so I cannot test it to get the answer.
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #12 from Alex Deucher agd5f@yahoo.com --- (In reply to comment #11)
Hi Alex,
Thanks for the quick turn around.
Looking at the patch it seems to be for RV770 and RV780 will it still work for our older cards?
Yes. It covers the entire 7xx family of cards.
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #13 from Dieter Nützel Dieter@nuetzel-hh.de --- Hurray Alex,
your possible fix from Comment 10 solve it halfway or maybe fully even on my slow Duron 1800, RV730 AGP (4650), if we separate the mosaic into a new bug entry.
The SPEED is there, now. I can play 2 H.264 VDPAU accelerated videos (854x480 and 1280x720) simultaneously with ~35% idle rest on this little system. Have a look at 2-times-mplayer-konsole.png attachment.
I've tested it with AGP and PCIE mode, both with same results.
The mosaic problem IS mouse cursor (hardware cursor?) related! If the (big/fullscreen) video window coming up 'under' (over?) the mouse cursor position I get immediately mosaic. When a smaller video window starts from mouse cursor postion away UVD is excellent. Mosaic starts then not until mouse cursor move over the video window. With mplayer this could be faster reached if one seek into the video window. See 2-times-mplayer-mosaic.png attachment. Tested with AGP and PCIE mode.
Very nice!
-Dieter
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #14 from Dieter Nützel Dieter@nuetzel-hh.de --- Created attachment 85591 --> https://bugs.freedesktop.org/attachment.cgi?id=85591&action=edit 2-times-mplayer-konsole.png
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #15 from Dieter Nützel Dieter@nuetzel-hh.de --- Created attachment 85592 --> https://bugs.freedesktop.org/attachment.cgi?id=85592&action=edit 2-times-mplayer-mosaic.png
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #16 from Dieter Nützel Dieter@nuetzel-hh.de --- Created attachment 85593 --> https://bugs.freedesktop.org/attachment.cgi?id=85593&action=edit dmesg-drm-next-3.12-AGP-dpm-1-fix-fallback-for-empty-UVD-clocks.log
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #17 from Dieter Nützel Dieter@nuetzel-hh.de --- Created attachment 85594 --> https://bugs.freedesktop.org/attachment.cgi?id=85594&action=edit dmesg-drm-next-3.12-PCIE-dpm-1-fix-fallback-for-empty-UVD-clocks.log
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #18 from Dieter Nützel Dieter@nuetzel-hh.de --- (In reply to comment #10)
Created attachment 85563 [details] [review] possible fix
The attached patch should fix the issue.
Candidate for stable?
-Dieter
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #19 from John john.ettedgui@gmail.com --- I confirm the patch works here as well!
Thank you.
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #20 from Alex Deucher agd5f@yahoo.com --- (In reply to comment #13)
your possible fix from Comment 10 solve it halfway or maybe fully even on my slow Duron 1800, RV730 AGP (4650), if we separate the mosaic into a new bug entry.
That's a separate issue. Please open a different bug for that.
(In reply to comment #18)
Candidate for stable?
Yes, the patch will go to stable.
https://bugs.freedesktop.org/show_bug.cgi?id=69120
Alex Deucher agd5f@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Product|Mesa |DRI Version|9.2 |DRI CVS Component|Drivers/Gallium/r600 |DRM/Radeon
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #21 from Karl Miller karl.f.miller@gmail.com --- Well it's still not working with my 6870.
Sometimes the Video starts fine, but most of the time it stutters with dpm enabled, and most of the time one pause is enough for the video to start stuttering again.
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #22 from Karl Miller karl.f.miller@gmail.com --- Created attachment 87301 --> https://bugs.freedesktop.org/attachment.cgi?id=87301&action=edit Karl's vbios
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #23 from Karl Miller karl.f.miller@gmail.com --- Created attachment 87302 --> https://bugs.freedesktop.org/attachment.cgi?id=87302&action=edit Karl's dmesg
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #24 from Chris Humbert freedesktop@mahadri.com --- Created attachment 93075 --> https://bugs.freedesktop.org/attachment.cgi?id=93075&action=edit cedar-3.13.1-dmesg
radeon.dpm=1 vdpau causes Cedar [HD 5450] to GPU lockup CP stall immediately. The player hangs with a black window. radeon.dpm=0 vdpau works very well.
01:00.0 VGA compatible controller: [AMD/ATI] Cedar [Radeon HD 5450] Linux 3.13.1, xf86-video-ati 7.3.0, mesa 9.5
[ 107.875202] switching to power state: [ 107.875203] ui class: none [ 107.875204] internal class: uvd [ 107.875206] caps: video [ 107.875208] uvd vclk: 54000 dclk: 40000 [ 107.875210] power level 0 sclk: 65000 mclk: 40000 vddc: 1070 vddci: 0 [ 107.875212] power level 1 sclk: 65000 mclk: 40000 vddc: 1070 vddci: 0 [ 107.875213] power level 2 sclk: 65000 mclk: 40000 vddc: 1070 vddci: 0 [ 107.875214] status: r [ 108.178542] [drm:cypress_dpm_set_power_state] *ERROR* rv770_restrict_performance_levels_before_switch failed [ 118.396040] radeon 0000:01:00.0: GPU lockup CP stall for more than 10068msec [ 118.396046] radeon 0000:01:00.0: GPU lockup (waiting for 0x0000000000000004 last fence id 0x0000000000000002 on ring 5) [ 118.545687] [drm:rv770_stop_dpm] *ERROR* Could not force DPM to low. [ 118.545698] [drm] Disabling audio 0 support [ 118.698386] radeon 0000:01:00.0: GPU reset succeeded, trying to resume
https://bugs.freedesktop.org/show_bug.cgi?id=69120
--- Comment #25 from Chris Humbert freedesktop@mahadri.com --- Created attachment 93076 --> https://bugs.freedesktop.org/attachment.cgi?id=93076&action=edit cedar-3.13.1-xorg
https://bugs.freedesktop.org/show_bug.cgi?id=69120
John john.ettedgui@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
https://bugs.freedesktop.org/show_bug.cgi?id=69120
John john.ettedgui@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
dri-devel@lists.freedesktop.org