Re: [PATCH] drm/virtio: Don't return error if virtio-gpu PCI dev is not found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux