Commit f7a7d22a authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/nvif: give every notify object a human-readable name



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Reviewed-by: default avatarLyude Paul <lyude@redhat.com>
parent 54d44bfc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -759,7 +759,7 @@ static void nv_crtc_destroy(struct drm_crtc *crtc)
	nouveau_bo_unmap(nv_crtc->cursor.nvbo);
	nouveau_bo_unpin(nv_crtc->cursor.nvbo);
	nouveau_bo_ref(NULL, &nv_crtc->cursor.nvbo);
	nvif_notify_fini(&nv_crtc->vblank);
	nvif_notify_dtor(&nv_crtc->vblank);
	kfree(nv_crtc);
}

@@ -1351,7 +1351,7 @@ nv04_crtc_create(struct drm_device *dev, int crtc_num)

	nv04_cursor_init(nv_crtc);

	ret = nvif_notify_init(&disp->disp.object, nv04_crtc_vblank_handler,
	ret = nvif_notify_ctor(&disp->disp.object, "kmsVbl", nv04_crtc_vblank_handler,
			       false, NV04_DISP_NTFY_VBLANK,
			       &(struct nvif_notify_head_req_v0) {
				    .head = nv_crtc->index,
+2 −2
Original line number Diff line number Diff line
@@ -178,7 +178,7 @@ nv04_display_destroy(struct drm_device *dev)

	nouveau_hw_save_vga_fonts(dev, 0);

	nvif_notify_fini(&disp->flip);
	nvif_notify_dtor(&disp->flip);

	nouveau_display(dev)->priv = NULL;
	kfree(disp);
@@ -215,7 +215,7 @@ nv04_display_create(struct drm_device *dev)

	/* Request page flip completion event. */
	if (drm->nvsw.client) {
		nvif_notify_init(&drm->nvsw, nv04_flip_complete,
		nvif_notify_ctor(&drm->nvsw, "kmsFlip", nv04_flip_complete,
				 false, NV04_NVSW_NTFY_UEVENT,
				 NULL, 0, 0, &disp->flip);
	}
+3 −2
Original line number Diff line number Diff line
@@ -282,8 +282,9 @@ base507c_new_(const struct nv50_wndw_func *func, const u32 *format,
		return ret;
	}

	ret = nvif_notify_init(&wndw->wndw.base.user, wndw->notify.func,
			       false, NV50_DISP_BASE_CHANNEL_DMA_V0_NTFY_UEVENT,
	ret = nvif_notify_ctor(&wndw->wndw.base.user, "kmsBaseNtfy",
			       wndw->notify.func, false,
			       NV50_DISP_BASE_CHANNEL_DMA_V0_NTFY_UEVENT,
			       &(struct nvif_notify_uevent_req) {},
			       sizeof(struct nvif_notify_uevent_req),
			       sizeof(struct nvif_notify_uevent_rep),
+2 −2
Original line number Diff line number Diff line
@@ -489,7 +489,7 @@ nv50_head_destroy(struct drm_crtc *crtc)
{
	struct nv50_head *head = nv50_head(crtc);

	nvif_notify_fini(&head->base.vblank);
	nvif_notify_dtor(&head->base.vblank);
	nv50_lut_fini(&head->olut);
	drm_crtc_cleanup(crtc);
	kfree(head);
@@ -598,7 +598,7 @@ nv50_head_create(struct drm_device *dev, int index)
		}
	}

	ret = nvif_notify_init(&disp->disp->object, nv50_head_vblank_handler,
	ret = nvif_notify_ctor(&disp->disp->object, "kmsVbl", nv50_head_vblank_handler,
			       false, NV04_DISP_NTFY_VBLANK,
			       &(struct nvif_notify_head_req_v0) {
				    .head = nv_crtc->index,
+2 −1
Original line number Diff line number Diff line
@@ -192,7 +192,8 @@ ovly507e_new_(const struct nv50_wndw_func *func, const u32 *format,
		return ret;
	}

	ret = nvif_notify_init(&wndw->wndw.base.user, wndw->notify.func, false,
	ret = nvif_notify_ctor(&wndw->wndw.base.user, "kmsOvlyNtfy",
			       wndw->notify.func, false,
			       NV50_DISP_OVERLAY_CHANNEL_DMA_V0_NTFY_UEVENT,
			       &(struct nvif_notify_uevent_req) {},
			       sizeof(struct nvif_notify_uevent_req),
Loading