OSDN Git Service

xf86drm: Add drmDevice support for virtio_gpu
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 15 May 2018 16:37:49 +0000 (17:37 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 24 Jul 2018 15:25:05 +0000 (16:25 +0100)
commit3988580e4c0f4b3647a0c6af138a3825453fe6e0
tree164c183aa5e5c24b9d495cb5dfc40bfa618e18d0
parenta02900133b32dd4a7d6da4966f455ab337e80dfc
xf86drm: Add drmDevice support for virtio_gpu

The GPU almost exclusively lives on the PCI bus, so we expose it as a
normal PCI one.

This allows all existing drmDevice users to work without any changes.

One could wonder why a separate typeset is not introduced, alike say
host1x. Unlike host1x the PCI/platform distinction for virtio provides
no extra information. Plus if needed we can add the separate set at a
later stage.

Here are a few 'features' that virtio seems to be missing:
 - provides extra information on top the plaform devices
 - supports a range of GPU devices
 - is considered hardware description (DT)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Tested-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Robert Foss <robert.foss@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
xf86drm.c