https://bugs.freedesktop.org/show_bug.cgi?id=97075
Bug ID: 97075
Summary: VCE encoding slow when GPU is not stressed (HD 7970M)
Product: DRI
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: DRM/Radeon
Assignee: dri-devel(a)lists.freedesktop.org
Reporter: haagch(a)frickel.club
This is on an intel + radeon laptop, so I need to run encoding with gstreamer
with DRI_PRIME=1.
Here is an example video:
http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4
DRI_PRIME is doing a good job of waking up the GPU from runpm when needed for
encoding via VAAPI and OMX, but for comparison I'll run glxgears both times.
I'm encoding the mentioned example video with VAAPI with this exact command:
$ time DRI_PRIME=1 LIBVA_DRIVER_NAME=radeonsi gst-launch-1.0 -e filesrc
location=big_buck_bunny_720p_1mb.mp4 ! qtdemux ! h264parse ! avdec_h264 ! queue
! videoconvert ! queue ! video/x-raw,format=NV12 ! vaapih264enc ! h264parse !
matroskamux ! filesink location=output.mkv
For low GPU stress I run the gst pipeline while glxgears with vsync is running:
$ DRI_PRIME=1 glxgears
Result: 0.75s user 0.33s system 2% cpu 52.779 total
For higher GPU stress I run the gst pipeline while glxgears without vsync is
running:
$ DRI_PRIME=1 vblank_mode=0 glxgears
Result: 0.99s user 0.28s system 43% cpu 2.928 total
I also tried a very similar pipeline with OMX:
$ time DRI_PRIME=1 gst-launch-1.0 -e filesrc
location=big_buck_bunny_720p_1mb.mp4 ! qtdemux ! h264parse ! avdec_h264 ! queue
! videoconvert ! queue ! video/x-raw,format=NV12 ! omxh264enc ! h264parse !
matroskamux ! filesink location=output.mkv
Low GPU stress: 0.96s user 0.24s system 19% cpu 6.298 total
High GPU stress: 1.10s user 0.24s system 141% cpu 0.949 total
Overall OMX encoding does a lot better, but it's still a large difference and
still below "real time" for the 5 second video.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugs.freedesktop.org/show_bug.cgi?id=96860
Bug ID: 96860
Summary: Aliasing when using vdpau with mpv
Product: Mesa
Version: 11.2
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: dri-devel(a)lists.freedesktop.org
Reporter: dolohow(a)outlook.com
QA Contact: dri-devel(a)lists.freedesktop.org
When using hardware decoding with radeonsi along with mpv I can observe
aliasing on rough edges.
It was previously reported on mpv issue tracker
https://github.com/mpv-player/mpv/issues/3317
but the main developer pointed out that the bug is in mesa.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugs.freedesktop.org/show_bug.cgi?id=96508
Bug ID: 96508
Summary: Artefacts while playing video with vaapi or vdpau
acceleration on amd apu (Radeon HD 8280E)
Product: Mesa
Version: 11.2
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: dri-devel(a)lists.freedesktop.org
Reporter: jan.burgmeier(a)unicon-software.com
QA Contact: dri-devel(a)lists.freedesktop.org
Created attachment 124502
--> https://bugs.freedesktop.org/attachment.cgi?id=124502&action=edit
Video with artefacts
While playing the attached video with mpv and vaapi or vdpau acceleration some
artefacts are shown.
The same artefacts are also shown when using gstreamer-0.10 with vaapi
acceleration.
Versions used:
- Mesa: 11.2.2 and 12.0.0-rc4
- MPV: git commit 2b1656b1aced3d81b31c83e8c310a630ca5d5d1c
- FFmpeg: 3.0.2
Hardware:
- CPU: AMD GX-217GA SOC with Radeon(tm) HD Graphic
- GPU: Radeon HD 8280E
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugs.freedesktop.org/show_bug.cgi?id=95659
Bug ID: 95659
Summary: HD 7450, R9-270, GPU locked when testing glmark2
Product: DRI
Version: XOrg git
Hardware: Other
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/Radeon
Assignee: dri-devel(a)lists.freedesktop.org
Reporter: zduo006(a)163.com
[ 427.367567] radeon 0000:01:00.0: ring 0 stalled for more than 10070msec
[ 427.374151] radeon 0000:01:00.0: GPU lockup (current fence id
0x000000000000ea28 last fence id 0x000000000000ea2d on ring 0)
[ 427.500439] radeon 0000:01:00.0: Saved 151 dwords of commands on ring 0.
[ 427.500464] radeon 0000:01:00.0: GPU softreset: 0x00000009
[ 427.500471] radeon 0000:01:00.0: GRBM_STATUS = 0xB2732828
[ 427.500476] radeon 0000:01:00.0: GRBM_STATUS_SE0 = 0x1C000005
[ 427.500481] radeon 0000:01:00.0: GRBM_STATUS_SE1 = 0x00000007
[ 427.500486] radeon 0000:01:00.0: SRBM_STATUS = 0x20000AC0
[ 427.500491] radeon 0000:01:00.0: SRBM_STATUS2 = 0x00000000
[ 427.500495] radeon 0000:01:00.0: R_008674_CP_STALLED_STAT1 = 0x00000000
[ 427.500500] radeon 0000:01:00.0: R_008678_CP_STALLED_STAT2 = 0x400C0000
[ 427.500505] radeon 0000:01:00.0: R_00867C_CP_BUSY_STAT = 0x00048004
[ 427.500509] radeon 0000:01:00.0: R_008680_CP_STAT = 0x80268647
[ 427.500513] radeon 0000:01:00.0: R_00D034_DMA_STATUS_REG = 0x44C83D57
[ 427.513320] radeon 0000:01:00.0: GRBM_SOFT_RESET=0x00007F6B
[ 427.513378] radeon 0000:01:00.0: SRBM_SOFT_RESET=0x00000100
[ 427.514540] radeon 0000:01:00.0: GRBM_STATUS = 0x00003828
[ 427.514544] radeon 0000:01:00.0: GRBM_STATUS_SE0 = 0x00000007
[ 427.514549] radeon 0000:01:00.0: GRBM_STATUS_SE1 = 0x00000007
[ 427.514554] radeon 0000:01:00.0: SRBM_STATUS = 0x200000C0
[ 427.514558] radeon 0000:01:00.0: SRBM_STATUS2 = 0x00000000
[ 427.514563] radeon 0000:01:00.0: R_008674_CP_STALLED_STAT1 = 0x00000000
[ 427.514567] radeon 0000:01:00.0: R_008678_CP_STALLED_STAT2 = 0x00000000
[ 427.514571] radeon 0000:01:00.0: R_00867C_CP_BUSY_STAT = 0x00000000
[ 427.514576] radeon 0000:01:00.0: R_008680_CP_STAT = 0x00000000
[ 427.514580] radeon 0000:01:00.0: R_00D034_DMA_STATUS_REG = 0x44C83D57
[ 427.514607] radeon 0000:01:00.0: GPU reset succeeded, trying to resume
[ 427.543125] [drm] enabling PCIE gen 2 link speeds, disable with
radeon.pcie_gen2=0
[ 427.612472] [drm] PCIE GART of 1024M enabled (table at 0x0000000000274000).
[ 427.612666] radeon 0000:01:00.0: WB enabled
[ 427.612673] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr
0x0000000040000c00 and cpu addr 0xffffffc8dc366c00
[ 427.612678] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr
0x0000000040000c0c and cpu addr 0xffffffc8dc366c0c
[ 427.662677] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr
0x0000000000072118 and cpu addr 0xffffff8018332118
[ 427.679867] [drm] ring test on 0 succeeded in 1 usecs
[ 427.679884] [drm] ring test on 3 succeeded in 7 usecs
[ 427.856598] [drm] ring test on 5 succeeded in 2 usecs
[ 427.856613] [drm] UVD initialized successfully.
[ 427.977870] [drm] ib test on ring 0 succeeded in 0 usecs
[ 427.977919] [drm] ib test on ring 3 succeeded in 0 usecs
[ 428.128994] [drm] ib test on ring 5 succeeded
[ 792.996810] radeon 0000:01:00.0: ring 0 stalled for more than 10140msec
[ 793.003403] radeon 0000:01:00.0: GPU lockup (current fence id
0x00000000000184b0 last fence id 0x00000000000184b5 on ring 0)
[ 793.140947] radeon 0000:01:00.0: Saved 151 dwords of commands on ring 0.
[ 793.140974] radeon 0000:01:00.0: GPU softreset: 0x00000009
[ 793.140981] radeon 0000:01:00.0: GRBM_STATUS = 0xF7730828
[ 793.140986] radeon 0000:01:00.0: GRBM_STATUS_SE0 = 0xFC000001
[ 793.140992] radeon 0000:01:00.0: GRBM_STATUS_SE1 = 0x00000007
[ 793.140996] radeon 0000:01:00.0: SRBM_STATUS = 0x200000C0
[ 793.141001] radeon 0000:01:00.0: SRBM_STATUS2 = 0x00000000
[ 793.141006] radeon 0000:01:00.0: R_008674_CP_STALLED_STAT1 = 0x00000000
[ 793.141010] radeon 0000:01:00.0: R_008678_CP_STALLED_STAT2 = 0x400C0000
[ 793.141015] radeon 0000:01:00.0: R_00867C_CP_BUSY_STAT = 0x00048004
[ 793.141019] radeon 0000:01:00.0: R_008680_CP_STAT = 0x80268647
[ 793.141024] radeon 0000:01:00.0: R_00D034_DMA_STATUS_REG = 0x44C83D57
[ 793.154522] radeon 0000:01:00.0: GRBM_SOFT_RESET=0x00007F6B
[ 793.154580] radeon 0000:01:00.0: SRBM_SOFT_RESET=0x00000100
[ 793.155741] radeon 0000:01:00.0: GRBM_STATUS = 0x00003828
[ 793.155746] radeon 0000:01:00.0: GRBM_STATUS_SE0 = 0x00000007
[ 793.155751] radeon 0000:01:00.0: GRBM_STATUS_SE1 = 0x00000007
[ 793.155755] radeon 0000:01:00.0: SRBM_STATUS = 0x200000C0
[ 793.155759] radeon 0000:01:00.0: SRBM_STATUS2 = 0x00000000
[ 793.155764] radeon 0000:01:00.0: R_008674_CP_STALLED_STAT1 = 0x00000000
[ 793.155768] radeon 0000:01:00.0: R_008678_CP_STALLED_STAT2 = 0x00000000
[ 793.155772] radeon 0000:01:00.0: R_00867C_CP_BUSY_STAT = 0x00000000
[ 793.155777] radeon 0000:01:00.0: R_008680_CP_STAT = 0x00000000
[ 793.155781] radeon 0000:01:00.0: R_00D034_DMA_STATUS_REG = 0x44C83D57
[ 793.155808] radeon 0000:01:00.0: GPU reset succeeded, trying to resume
[ 793.184357] [drm] enabling PCIE gen 2 link speeds, disable with
radeon.pcie_gen2=0
[ 793.253690] [drm] PCIE GART of 1024M enabled (table at 0x0000000000274000).
[ 793.253884] radeon 0000:01:00.0: WB enabled
[ 793.253891] radeon 0000:01:00.0: fence driver on ring 0 use gpu addr
0x0000000040000c00 and cpu addr 0xffffffc8dc366c00
[ 793.253896] radeon 0000:01:00.0: fence driver on ring 3 use gpu addr
0x0000000040000c0c and cpu addr 0xffffffc8dc366c0c
[ 793.303888] radeon 0000:01:00.0: fence driver on ring 5 use gpu addr
0x0000000000072118 and cpu addr 0xffffff8018332118
[ 793.321047] [drm] ring test on 0 succeeded in 2 usecs
[ 793.321064] [drm] ring test on 3 succeeded in 7 usecs
[ 793.497767] [drm] ring test on 5 succeeded in 2 usecs
[ 793.497781] [drm] UVD initialized successfully.
[ 793.619052] [drm] ib test on ring 0 succeeded in 0 usecs
[ 793.619102] [drm] ib test on ring 3 succeeded in 0 usecs
[ 793.770188] [drm] ib test on ring 5 succeeded
when testing the following cases, GPU locked. First it stops responding for
some seconds and screen goes black, then it return to normal.
loop:vertex-step=5, fragment-steps=5, fragment-loop=false;
loop:vertex-step=5, fragment-steps=5, fragment-uniform=false;
loop:vertex-step=5, fragment-steps=5, fragment-uniform=ture;
I've already tried several radeon boot flags, such as DPM on and off,
radeon_lockup_timeout = 20000, without success. Upgrading the kernel version to
4.5.3 and 4.6.0 but it not fixed.
The problem does not occur when i add a delay(such as 1ms using msleep) in the
problem scene's draw function.
I thought is the problem of Synchronization between the cpu and gpu using
fence , can anyone have some idea?
lspci:01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM]
libdrm 2.4.67,
xserver-xorg-video-ati 7.6.0,
xorg-server 1.18.2,
mesa 11.2.0
kernel 4.4
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugs.freedesktop.org/show_bug.cgi?id=94471
Bug ID: 94471
Summary: Tonga UVD 4Kx4K = failed to allocate a buffer
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: dri-devel(a)lists.freedesktop.org
Reporter: adf.lists(a)gmail.com
QA Contact: dri-devel(a)lists.freedesktop.org
I see >= tonga uvd height has recently been increased -
https://cgit.freedesktop.org/mesa/mesa/commit/?id=353a4f844f9e845dad93de9c2…
radeon/uvd: increase max height to 4096 for VI and newer
With this issue 'mpv --hwdec=vdpau --vo=vdpau <stream>' fails
for vdpau decode if the stream height is 4096. Vdpau decode of
height upto 4096 is necessary usecase on amdgpu driver for VI
and newer platforms.
The fix is in driver specific implementation of "Decoder
Query Capabilities" API to return 4096 for VI and newer
platforms. With this fix vdpauinfo reports height support as
4096 and mpv for vdpau decode works fine for 4096 height streams.
On agd5f drm-fixes-4.5 4096x4096 fails for me (also fails with --vo vdpau)
andy [~]$ mpv --hwdec=vdpau /mnt/sdb1/ffmpeg-mpl-tests/x264-4096.mkv
Playing: /mnt/sdb1/ffmpeg-mpl-tests/x264-4096.mkv
(+) Video --vid=1 (*) (h264)
amdgpu: Failed to allocate a buffer:
amdgpu: size : 0 bytes
amdgpu: alignment : 4096 bytes
amdgpu: domains : 2
amdgpu: Failed to allocate a buffer:
amdgpu: size : 0 bytes
amdgpu: alignment : 4096 bytes
amdgpu: domains : 2
EE radeon_uvd.c:1109 ruvd_create_decoder UVD - Can't allocated bitstream
buffers.
[vo/opengl/x11] Disabling screensaver failed (-1). Make sure the
xdg-screensaver script is installed.
Using software decoding.
VO: [opengl] 4096x4096 => 7282x4096 yuv420p
dmesg
[ 8308.529176] [TTM] Illegal buffer object size
[ 8308.529210] [drm:amdgpu_gem_object_create [amdgpu]] *ERROR* Failed to
allocate GEM object (0, 2, 4096, -22)
[ 8308.529326] [TTM] Illegal buffer object size
[ 8308.529339] [drm:amdgpu_gem_object_create [amdgpu]] *ERROR* Failed to
allocate GEM object (0, 2, 4096, -22)
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugs.freedesktop.org/show_bug.cgi?id=93784
Bug ID: 93784
Summary: Hybrid graphics: GPU lockup when running glxgears
Product: Mesa
Version: 11.0
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: dri-devel(a)lists.freedesktop.org
Reporter: nioko1337(a)googlemail.com
QA Contact: dri-devel(a)lists.freedesktop.org
Created attachment 121146
--> https://bugs.freedesktop.org/attachment.cgi?id=121146&action=edit
dmesg output
My laptop has the following discrete graphics card (lspci output):
0a:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun LE
[Radeon HD 8550M / R5 M230] (rev ff)
When running glxgears (or any graphical application) with DRI_PRIME=1, the
window appears but it stays just black (also it does not print any FPS in the
console).
After starting glxgears the first time, the GPU locks up (see dmesg.txt).
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugs.freedesktop.org/show_bug.cgi?id=93101
Bug ID: 93101
Summary: GPU Fault almost burned the CPU
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: dri-devel(a)lists.freedesktop.org
Reporter: dev(a)illwieckz.net
QA Contact: dri-devel(a)lists.freedesktop.org
Created attachment 120103
--> https://bugs.freedesktop.org/attachment.cgi?id=120103&action=edit
syslog (short)
Hi, this is an issue about the fact that some GPU lockup can lead to some CPU
burn (for real).
Some hours ago I get a GPU lockup while I was trying to read a DVD with VLC.
The video rendering wasn't functionnal (no picture), then the GPU started to
display weird things (see attached photo) then locked up.
I've joined some log, one very long syslog, and some abstract for this one
(more easy to read, but I gave you the original one in case of I missed
something).
To summarize, you can read lines like that in the syslog:
```
Nov 24 22:58:18 gollum gnome-session[3720]: [00007f134c173c20] avcodec decoder:
Using G3DVL VDPAU Driver Shared Library version 1.0 for hardware decoding
Nov 24 22:58:18 gollum kernel: [97035.599456] radeon 0000:01:00.0:
VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x00002126
Nov 24 22:58:18 gollum kernel: [97035.599460] radeon 0000:01:00.0:
VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x0408800C
Nov 24 22:58:18 gollum kernel: [97035.599465] VM fault (0x0c, vmid 2) at page
8486, read from 'TC4' (0x54433400) (136)
Nov 24 22:58:55 gollum kernel: [97072.747472] radeon 0000:01:00.0: ring 0
stalled for more than 10088msec
Nov 24 22:58:55 gollum kernel: [97072.747483] radeon 0000:01:00.0: GPU lockup
(current fence id 0x000000000059fcff last fence id 0x000000000059fd12 on ring
0)
Nov 24 22:59:04 gollum kernel: [97081.259933] WARNING: CPU: 4 PID: 23502 at
/home/kernel/COD/linux/drivers/gpu/drm/radeon/radeon_object.c:83
radeon_ttm_bo_destroy+0xe7/0xf0 [radeon]()
```
My system is running:
vlc 3.0.0~~git20151123+r62463+34~ubuntu15.10.1
linux-image-4.3.0-040300-generic 4.3.0-040300.201511020949
libdrm-radeon1 2.4.65+git1511161830.8913cd~gd~w
xserver-xorg-video-radeon 7.6.99+git1511170732.10b7c3~gd~w
libgl1-mesa-dri 11.2~git1511231930.e4c122~gd~w
mesa-vdpau-drivers 11.2~git1511231930.e4c122~gd~w
That is a real issue but it's not the topic of this ticket.
The really big problem is this bug almost burned my CPU. I explain.
When the bug occurred, I tried to track it. Instead of rebooting my computer I
started a laptop in order to connect to my computer using ssh, and to diagnose
some stuff on the living system. While the laptop were booting, I took some
photo of my screen.
But suddenly, my computer shutdown itself. The CPU critical temperature was
reached.
Normal operation temperature is normally between 30°C and 40°C on my system. In
case of emergency, I have two regulators running on my computer. The first one
raises fan speed from 128 tr/min to 1400 tr/min when temperature reaches 50°C,
and the second one downclocks all the 8 core from 4.7 GHz to 1.4GHz when the
temperature reaches 70°C.
Both regulators are userspace regulators. The first is the well-known
fancontrol, and the other one is mine. Both works well (if I use cpuburn for
example).
The fact is, when the GPU lockup occurred, something from the driver goes wrong
on the CPU side. It looks like some infinite loop started on my cores, doing
some extensive tasks, probably without having to deal with external components
(like central memory unit) in order to never slow done the CPU.
In fact, the computer acted exactly like if I was running one cpuburn process
per core using performance cpu governor during a summer noon. But there was an
exception, the fan never accelerated (so it was still running at 128 tr/min
when the CPU reached 90°, and the cpu was never downclocked too.
That's why I wrote this issue. When this bug occured, the system goes so wrong
the CPU was on knees and no regulator was able to control the CPU fan so the
CPU endlessly heating.
Hopefully, the internal CPU temperature protection shutdown automatically my
computer to save itself. But if someone use a CPU with a faulty temperature
safety mechanisme, this GPU lockup can lead to a CPU burn for real !
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugs.freedesktop.org/show_bug.cgi?id=92428
Bug ID: 92428
Summary: Sword Coast Legends causing GPU lockup. radeon
0000:01:00.0: GPU lockup (current fence id
0x000000000000afd1 last fence id 0x000000000000b194 on
ring 3)
Product: Mesa
Version: 10.6
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: dri-devel(a)lists.freedesktop.org
Reporter: h0ser(a)h0sed.org
QA Contact: dri-devel(a)lists.freedesktop.org
Created attachment 118821
--> https://bugs.freedesktop.org/attachment.cgi?id=118821&action=edit
System Logs
Bear with me as it's my first time submitting a bug report. When loading a
level in Sword Coast Legends, the driver crashes and hard locks the PC.
Attached is what I believe are the relevant portions of the logs.
--
You are receiving this mail because:
You are the assignee for the bug.