]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Fix render node numbering regression from control node removal.
authorEric Anholt <eric@anholt.net>
Wed, 9 May 2018 00:14:25 +0000 (17:14 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 14 May 2018 06:43:09 +0000 (07:43 +0100)
commit5bcd82a2bc59e7fccaac971813aa04a3bbbdc774
treeef68b92d3a7f56a7eb15f63dfa667d093713931b
parentcda439a7277fb4c9c20760c2deb140c6fadec454
drm: Fix render node numbering regression from control node removal.

drm_minor_alloc() does multiplication on this enum, so the removal
ended up moving render nodes down from 128 base to 64.  This caused
Mesa's surfaceless backend to be unable to open the render nodes,
since it was still looking up at 128.

v2: Add a comment warning the next person.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 50a583cf6ebc ("drm: remove all control node code")
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180509001425.12574-1-eric@anholt.net
include/drm/drm_file.h