Nouveau Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Karol Herbst <kherbst-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: [PATCH 1/2] nvif: allow userspace to use the notification interfaces
Date: Sun,  9 Sep 2018 01:03:19 +0200	[thread overview]
Message-ID: <20180908230320.7887-1-kherbst@redhat.com> (raw)

we need those so that userspace can get notified about channel resets.
Required to implement GL_ARB_robustness correctly. Currently we advertise
it, but we aren't able to handle gpu resets inside mesa without it.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
---
 drm/nouveau/nouveau_abi16.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drm/nouveau/nouveau_abi16.c b/drm/nouveau/nouveau_abi16.c
index e67a4713..249b00ae 100644
--- a/drm/nouveau/nouveau_abi16.c
+++ b/drm/nouveau/nouveau_abi16.c
@@ -383,6 +383,10 @@ nouveau_abi16_usif(struct drm_file *file_priv, void *data, u32 size)
 		case NVIF_IOCTL_V0_NEW:
 		case NVIF_IOCTL_V0_MTHD:
 		case NVIF_IOCTL_V0_SCLASS:
+		case NVIF_IOCTL_V0_NTFY_NEW:
+		case NVIF_IOCTL_V0_NTFY_DEL:
+		case NVIF_IOCTL_V0_NTFY_GET:
+		case NVIF_IOCTL_V0_NTFY_PUT:
 			break;
 		default:
 			return -EACCES;
-- 
2.17.1

_______________________________________________
Nouveau mailing list
Nouveau@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/nouveau

             reply	other threads:[~2018-09-08 23:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-08 23:03 Karol Herbst [this message]
     [not found] ` <20180908230320.7887-1-kherbst-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2018-09-08 23:03   ` [PATCH 2/2] usif: use correct struct inside usif_notify_get Karol Herbst

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180908230320.7887-1-kherbst@redhat.com \
    --to=kherbst-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox