From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 92307] G98/GM206: WARNING: ... at include/drm/drm_crtc.h:1577 drm_helper_choose_encoder_dpms+0x8a/0x90 [drm_kms_helper]() Date: Sat, 14 Nov 2015 19:21:26 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1417213126==" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Sender: "Nouveau" To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============1417213126== Content-Type: multipart/alternative; boundary="1447528886.8c6fdEf41.17942"; charset="UTF-8" --1447528886.8c6fdEf41.17942 Date: Sat, 14 Nov 2015 19:21:26 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=92307 --- Comment #13 from poma --- Created attachment 119664 --> https://bugs.freedesktop.org/attachment.cgi?id=119664&action=edit dmesg 4.4.0-0.rc0.git9.1.fc24.x86_64 connector_hotplug nvif_notify - nouveau.ko built of: http://cgit.freedesktop.org/~darktama/nouveau git://people.freedesktop.org/~darktama/nouveau - ending with: $ git log -1 commit ad38b5e72b3acb40b820954f04293a0161e33845 Author: Ben Skeggs Date: Wed Nov 11 13:06:10 2015 +1000 WIPce/gk104: attempt at better handling of LAUNCHERR Very rough, no idea how correct it is at this point, but it prevents getteximage-depth from piglit from hanging the GPU. Signed-off-by: Ben Skeggs - patched with: $ git diff diff --git a/drm/nouveau/nouveau_connector.c b/drm/nouveau/nouveau_connector.c index 36ec8f3..d6afbb0 100644 --- a/drm/nouveau/nouveau_connector.c +++ b/drm/nouveau/nouveau_connector.c @@ -1274,6 +1274,7 @@ nouveau_connector_create(struct drm_device *dev, int index) break; } + drm_modeset_lock_all(dev); ret = nvif_notify_init(&disp->disp, nouveau_connector_hotplug, true, NV04_DISP_NTFY_CONN, &(struct nvif_notify_conn_req_v0) { @@ -1283,6 +1284,7 @@ nouveau_connector_create(struct drm_device *dev, int index) sizeof(struct nvif_notify_conn_req_v0), sizeof(struct nvif_notify_conn_rep_v0), &nv_connector->hpd); + drm_modeset_unlock_all(dev); if (ret) connector->polled = DRM_CONNECTOR_POLL_CONNECT; else Ref. "drm/radeon: Sprinkle drm_modeset_lock_all to appease locking checks" https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/gpu/drm/radeon/radeon_device.c?id=6adaed5 Conclusion: In this regard, it does not change anything - with or without ~darktama/nouveau update, with or without patch. -- You are receiving this mail because: You are the assignee for the bug. --1447528886.8c6fdEf41.17942 Date: Sat, 14 Nov 2015 19:21:26 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 13 on bug 92307 from
Created attachment 119664 [details]
dmesg 4.4.0-0.rc0.git9.1.fc24.x86_64 connector_hotplug nvif_notify


- nouveau.ko built of:
http://cgit.freedesktop.org/~darktama/nouveau
git://people.freedesktop.org/~darktama/nouveau

- ending with:
$ git log -1
commit ad38b5e72b3acb40b820954f04293a0161e33845
Author: Ben Skeggs <bskeggs@redhat.com>
Date:   Wed Nov 11 13:06:10 2015 +1000

    WIPce/gk104: attempt at better handling of LAUNCHERR

    Very rough, no idea how correct it is at this point, but it prevents
    getteximage-depth from piglit from hanging the GPU.

    Signed-off-by: Ben Skeggs <bskeggs@redhat.com>

- patched with:
$ git diff
diff --git a/drm/nouveau/nouveau_connector.c b/drm/nouveau/nouveau_connector.c
index 36ec8f3..d6afbb0 100644
--- a/drm/nouveau/nouveau_connector.c
+++ b/drm/nouveau/nouveau_connector.c
@@ -1274,6 +1274,7 @@ nouveau_connector_create(struct drm_device *dev, int
index)
                break;
        }

+       drm_modeset_lock_all(dev);
        ret = nvif_notify_init(&disp->disp, nouveau_connector_hotplug, true,
                               NV04_DISP_NTFY_CONN,
                               &(struct nvif_notify_conn_req_v0) {
@@ -1283,6 +1284,7 @@ nouveau_connector_create(struct drm_device *dev, int
index)
                               sizeof(struct nvif_notify_conn_req_v0),
                               sizeof(struct nvif_notify_conn_rep_v0),
                               &nv_connector->hpd);
+       drm_modeset_unlock_all(dev);
        if (ret)
                connector->polled = DRM_CONNECTOR_POLL_CONNECT;
        else

Ref.
"drm/radeon: Sprinkle drm_modeset_lock_all to appease locking checks"
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/drivers/gpu/drm/radeon/radeon_device.c?id=6adaed5

Conclusion:
In this regard, it does not change anything - with or without ~darktama/nouveau
update, with or without patch.


You are receiving this mail because:
  • You are the assignee for the bug.
--1447528886.8c6fdEf41.17942-- --===============1417213126== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTm91dmVhdSBt YWlsaW5nIGxpc3QKTm91dmVhdUBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cDovL2xpc3RzLmZy ZWVkZXNrdG9wLm9yZy9tYWlsbWFuL2xpc3RpbmZvL25vdXZlYXUK --===============1417213126==--