]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/nouveau/kms/nv50-: cursors always use core channel vram ctxdma
authorBen Skeggs <bskeggs@redhat.com>
Mon, 18 Jun 2018 08:06:13 +0000 (18:06 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 19 Jun 2018 00:38:26 +0000 (10:38 +1000)
commit1264f8325e9b8c004f36f1ae7bacd2a46a7ed771
tree4d67265d5dafb485d38d0325b749388e6ed6cb0d
parent6c46d01f25bcf74608d09645c27c35c3f3940ebe
drm/nouveau/kms/nv50-: cursors always use core channel vram ctxdma

Ctxdmas for cursors from all heads are setup in the core channel, and due
to us tracking allocated handles per-window, we were failing with -EEXIST
on multiple-head setups trying to allocate duplicate handles.

The cursor code is hardcoded to use the core channel vram ctxdma already,
so just skip ctxdma allocation for cursor fbs to fix the issue.

Fixes: 5bca1621c07 ("drm/nouveau/kms/nv50-: move fb ctxdma tracking into windows")
Reported-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/curs507a.c
drivers/gpu/drm/nouveau/dispnv50/wndw.c