]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ff2544876ceeca0bce52c71b3d89da014ac8323
treefd63cf347a4143070f7e8357f1a91862f9b0e08e
parentbad30127c5357cbb9c99d4d40625387630633474
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