drm/lima: allocate unique id per drm_file
authorErico Nunes <nunes.erico@gmail.com>
Sun, 12 Mar 2023 23:30:51 +0000 (00:30 +0100)
committerQiang Yu <yuq825@gmail.com>
Sun, 2 Apr 2023 10:18:37 +0000 (18:18 +0800)
commit87767de835edf527b879a363d518c33da68adb81
treec7d61f1bfae323a0907b19b2b3e26797ddce2ea5
parentbccafec957a5c4b22ac29e53a39e82d0a0008348
drm/lima: allocate unique id per drm_file

To track if fds are pointing to the same execution context and export
the expected information to fdinfo, similar to what is done in other
drivers.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230312233052.21095-3-nunes.erico@gmail.com
drivers/gpu/drm/lima/lima_device.h
drivers/gpu/drm/lima/lima_drv.c
drivers/gpu/drm/lima/lima_drv.h