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 <[email protected]>
> Cc: Gerd Hoffmann <[email protected]>
> Cc: Gurchetan Singh <[email protected]>
> Cc: Chia-I Wu <[email protected]>
> Signed-off-by: Vivek Kasireddy <[email protected]>
> ---
>  drivers/gpu/drm/virtio/virtgpu_drv.c | 21 +++++++++++----------
>  1 file changed, 11 insertions(+), 10 deletions(-)

Applied to misc-next, thanks!

-- 
Best regards,
Dmitry

Reply via email to