OpenCloudOS-Kernel/drivers/gpu/drm/virtio
Daniel Vetter a325725633 drm: Lobotomize set_busid nonsense for !pci drivers
We already have a fallback in place to fill out the unique from
dev->unique, which is set to something reasonable in drm_dev_alloc.

Which means we only need to have a special set_busid for pci devices,
to be able to care the backwards compat code for drm 1.1 around, which
libdrm still needs.

While developing and testing this patch things blew up in really
interesting ways, and the code is rather confusing in naming things
between the kernel code, ioctl #defines and libdrm. For the next brave
dragon slayer, document all this madness properly in the userspace
interface section of gpu.tmpl.

v2: Make drm_dev_set_unique static and update kerneldoc.

v3: Entire rewrite, plus document what's going on for posterity in the
gpu docbook uapi section.

v4: Drop accidental amdgpu hunk (Emil).

v5: Drop accidental omapdrm vblank counter change (Emil).

v6: Rebase on top of the sphinx conversion.

Cc: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Tested-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk> (virt_gpu)
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
2016-06-21 21:56:23 +02:00
..
Kconfig
Makefile virtio-gpu: add basic prime support 2015-10-16 10:44:02 +02:00
virtgpu_debugfs.c drm/virtio: use %llu format string form atomic64_t 2015-10-16 11:36:36 +10:00
virtgpu_display.c drm/virtio: Don't reinvent a flipping wheel 2016-06-14 16:32:47 +02:00
virtgpu_drm_bus.c drm: Lobotomize set_busid nonsense for !pci drivers 2016-06-21 21:56:23 +02:00
virtgpu_drv.c drm: Lobotomize set_busid nonsense for !pci drivers 2016-06-21 21:56:23 +02:00
virtgpu_drv.h drm: Lobotomize set_busid nonsense for !pci drivers 2016-06-21 21:56:23 +02:00
virtgpu_fb.c drm: Remove unused fbdev_list members 2015-11-24 11:41:52 +01:00
virtgpu_fence.c Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux 2015-11-10 09:33:06 -08:00
virtgpu_gem.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
virtgpu_ioctl.c drm: Remove unused drm_device from drm_gem_object_lookup() 2016-05-17 08:47:30 +02:00
virtgpu_kms.c virtio: make find_vqs() checkpatch.pl-friendly 2016-01-12 20:47:06 +02:00
virtgpu_object.c drm/ttm: remove lazy parameter from ttm_bo_wait 2016-05-04 20:21:26 -04:00
virtgpu_plane.c virtio-gpu: use src not crtc 2016-06-07 10:37:14 +02:00
virtgpu_prime.c virtio-gpu: add basic prime support 2015-10-16 10:44:02 +02:00
virtgpu_ttm.c drm/ttm: implement LRU add callbacks v2 2016-05-04 20:21:38 -04:00
virtgpu_vq.c virtio-gpu: add 3d/virgl support 2015-10-16 10:44:02 +02:00