From: bugzilla-daemon@freedesktop.org Subject: [Bug 107955] AMDGPU driver keeps reloading on hybrid graphics system causing stuttering. Date: Mon, 17 Sep 2018 15:52:26 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0481218509==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 034B16E08F for ; Mon, 17 Sep 2018 15:52:27 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0481218509== Content-Type: multipart/alternative; boundary="15371995462.91Bc4.25547" Content-Transfer-Encoding: 7bit --15371995462.91Bc4.25547 Date: Mon, 17 Sep 2018 15:52:26 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D107955 --- Comment #15 from Michel D=C3=A4nzer --- (In reply to Mike Lothian from comment #13) > hw/xfree86/dri2/dri2.c: if (drmGetDevice(info->fd, &dev) || dev->busty= pe > !=3D DRM_BUS_PCI) { > hw/xfree86/drivers/modesetting/dri2.c: info.deviceName =3D > drmGetDeviceNameFromFd(ms->fd); >=20 > [...] >=20 > src/amdgpu_dri2.c: info->dri2.device_name =3D > drmGetDeviceNameFromFd(pAMDGPUEnt->fd); These are only called during X server startup. > va/drm/va_drm_utils.c: name =3D drmGetDeviceNameFromFd(fd); This should only be called when a video player using VA-API runs standalone, not via X (or Wayland), and even then only once. Try running sudo perf record -e rpm:rpm_resume --call-graph=3Ddwarf in a terminal, then do whatever is needed to reproduce the problem, then interrupt the perf command with Ctrl-C and attach the output of sudo perf report --header --=20 You are receiving this mail because: You are the assignee for the bug.= --15371995462.91Bc4.25547 Date: Mon, 17 Sep 2018 15:52:26 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 15 on bug 10795= 5 from Michel D=C3=A4nzer
(In reply to Mike Lothian from comment #13)
> hw/xfree86/dri2/dri2.c:    if (drmGetDevice(info=
->fd, &dev) || dev->bustype
> !=3D DRM_BUS_PCI) {
> hw/xfree86/drivers/modesetting/dri2.c:    info.deviceName =3D
> drmGetDeviceNameFromFd(ms->fd);
>=20
> [...]
>=20
> src/amdgpu_dri2.c:      info->dri2.device_name =3D
> drmGetDeviceNameFromFd(pAMDGPUEnt->fd);

These are only called during X server startup.


> va/drm/va_drm_utils.c:    name =3D drmGetDeviceN=
ameFromFd(fd);

This should only be called when a video player using VA-API runs standalone,
not via X (or Wayland), and even then only once.


Try running

 sudo perf record -e rpm:rpm_resume --call-graph=3Ddwarf

in a terminal, then do whatever is needed to reproduce the problem, then
interrupt the perf command with Ctrl-C and attach the output of

 sudo perf report --header


You are receiving this mail because:
  • You are the assignee for the bug.
= --15371995462.91Bc4.25547-- --===============0481218509== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0481218509==--