From: bugzilla-daemon@freedesktop.org Subject: [Bug 107955] AMDGPU driver keeps reloading on hybrid graphics system causing stuttering. Date: Mon, 17 Sep 2018 14:53:33 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0906818021==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 7A22E896EB for ; Mon, 17 Sep 2018 14:53:33 +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 --===============0906818021== Content-Type: multipart/alternative; boundary="15371960131.A8d6EC24.11591" Content-Transfer-Encoding: 7bit --15371960131.A8d6EC24.11591 Date: Mon, 17 Sep 2018 14:53:33 +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 #13 from Mike Lothian --- I'm not sure, I'm hoping I might be pointing the devs in the right direction I'm not sure if drmGetDeviceNameFromFd vs drmGetDeviceNameFromFd2 could cau= se the issue too - I think it might I found in the xserver: 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); drm/xf86drm.c:int drmGetDevices(drmDevicePtr devices[], int max_devices) In the AMDGPU DDX: src/amdgpu_dri2.c: info->dri2.device_name =3D drmGetDeviceNameFromFd(pAMDGPUEnt->fd); And in libva: va/drm/va_drm_utils.c: name =3D drmGetDeviceNameFromFd(fd); I notice in the old libva1 code there was no drmGetDevice stuff and it's on= ly in libva2 I could find the above reference --=20 You are receiving this mail because: You are the assignee for the bug.= --15371960131.A8d6EC24.11591 Date: Mon, 17 Sep 2018 14:53:33 +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 # 13 on bug 10795= 5 from Mike Lothian
I'm not sure, I'm hoping I might be pointing the devs in the r=
ight direction

I'm not sure if drmGetDeviceNameFromFd vs drmGetDeviceNameFromFd2 could cau=
se
the issue too - I think it might

I found in the xserver:

hw/xfree86/dri2/dri2.c:    if (drmGetDevice(info->fd, &dev) || dev-&=
gt;bustype !=3D
DRM_BUS_PCI) {
hw/xfree86/drivers/modesetting/dri2.c:    info.deviceName =3D
drmGetDeviceNameFromFd(ms->fd);

drm/xf86drm.c:int drmGetDevices(drmDevicePtr devices[], int max_devices)

In the AMDGPU DDX:

src/amdgpu_dri2.c:      info->dri2.device_name =3D
drmGetDeviceNameFromFd(pAMDGPUEnt->fd);

And in libva:

va/drm/va_drm_utils.c:    name =3D drmGetDeviceNameFromFd(fd);

I notice in the old libva1 code there was no drmGetDevice stuff and it's on=
ly
in libva2 I could find the above reference


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