All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] nvif: allow userspace to use the notification interfaces
@ 2018-09-08 23:03 Karol Herbst
       [not found] ` <20180908230320.7887-1-kherbst-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Karol Herbst @ 2018-09-08 23:03 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 2/2] usif: use correct struct inside usif_notify_get
       [not found] ` <20180908230320.7887-1-kherbst-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2018-09-08 23:03   ` Karol Herbst
  0 siblings, 0 replies; 2+ messages in thread
From: Karol Herbst @ 2018-09-08 23:03 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

No functional change, but this is clearly a copy and paste error.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
---
 drm/nouveau/nouveau_usif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drm/nouveau/nouveau_usif.c b/drm/nouveau/nouveau_usif.c
index 9dc10b17..34d48775 100644
--- a/drm/nouveau/nouveau_usif.c
+++ b/drm/nouveau/nouveau_usif.c
@@ -192,7 +192,7 @@ usif_notify_get(struct drm_file *f, void *data, u32 size, void *argv, u32 argc)
 	struct nouveau_cli *cli = nouveau_cli(f);
 	struct nvif_client *client = &cli->base;
 	union {
-		struct nvif_ioctl_ntfy_del_v0 v0;
+		struct nvif_ioctl_ntfy_get_v0 v0;
 	} *args = data;
 	struct usif_notify *ntfy;
 	int ret = -ENOSYS;
-- 
2.17.1

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-08 23:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-08 23:03 [PATCH 1/2] nvif: allow userspace to use the notification interfaces Karol Herbst
     [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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.