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@xxxxxxxxxxxxx> > Cc: Gerd Hoffmann <kraxel@xxxxxxxxxx> > Cc: Gurchetan Singh <gurchetansingh@xxxxxxxxxxxx> > Cc: Chia-I Wu <olvaffe@xxxxxxxxx> > Signed-off-by: Vivek Kasireddy <vivek.kasireddy@xxxxxxxxx> > --- > drivers/gpu/drm/virtio/virtgpu_drv.c | 21 +++++++++++---------- > 1 file changed, 11 insertions(+), 10 deletions(-) Applied to misc-next, thanks! -- Best regards, Dmitry