OSDN Git Service

drm/vmwgfx: Allow querying of the SVGA PCI id from the userspace
authorZack Rusin <zackr@vmware.com>
Wed, 2 Mar 2022 15:24:23 +0000 (10:24 -0500)
committerZack Rusin <zackr@vmware.com>
Fri, 11 Mar 2022 18:29:35 +0000 (13:29 -0500)
commit23b0e695d4ca92e9ebd97689e2e51e497957cb48
treefd63cf347a4143070f7e8357f1a91862f9b0e08e
parentc593197b6ece417675256e220b5eac25c0b33290
drm/vmwgfx: Allow querying of the SVGA PCI id from the userspace

Mesa3D loaders require knowledge of the devices PCI id. SVGAv2 and v3
have different PCI id's, but the same driver is used to handle them both.
To allow Mesa3D svga driver to be loaded automatically for both SVGAv2
and SVGAv3 make the kernel return the PCI id of the currently running
device.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Reviewed-by: Maaz Mombasawala <mombasawalam@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220302152426.885214-6-zack@kde.org
drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
include/uapi/drm/vmwgfx_drm.h