[PATCH] drm/virtio: Don't return error if virtio-gpu PCI dev is not found
Dmitry Osipenko
dmitry.osipenko at collabora.com
Sun Jan 19 12:31:10 UTC 2025
On 1/14/25 10:57, Vivek Kasireddy wrote:
> While fixing a shared VGA resource ownership issue, commit 5dd8b536bb
> ("drm/virtio: Lock the VGA resources during initialization") wrongly
> assumed that there is always a PCI device associated with virtio-gpu
> and it would return error if this device is not found during init.
>
> This is incorrect, as virtio-gpu can be operated in MMIO mode (M68K)
> where a PCI device would probably not be created for it. Therefore,
> fix this issue by not erroring out if the associated PCI device is
> not found during initialization.
>
> Fixes: 5dd8b536bb ("drm/virtio: Lock the VGA resources during initialization")
> Suggested-by: Dmitry Osipenko <dmitry.osipenko at collabora.com>
> Cc: Gerd Hoffmann <kraxel at redhat.com>
> Cc: Gurchetan Singh <gurchetansingh at chromium.org>
> Cc: Chia-I Wu <olvaffe at gmail.com>
> Signed-off-by: Vivek Kasireddy <vivek.kasireddy at intel.com>
> ---
> drivers/gpu/drm/virtio/virtgpu_drv.c | 21 +++++++++++----------
> 1 file changed, 11 insertions(+), 10 deletions(-)
Applied to misc-next, thanks!
--
Best regards,
Dmitry
More information about the dri-devel
mailing list