Skip to content

Commit 89121e5

Browse files
Philipp Stannerbjorn-helgaas
authored andcommitted
drm/vboxvideo: Add PCI region request
vboxvideo currently does not reserve its PCI BAR through a region request. Implement the request through the managed function pcim_request_region(). Link: https://lore.kernel.org/r/20240729093625.17561-5-pstanner@redhat.com Signed-off-by: Philipp Stanner <pstanner@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Tested-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Hans de Goede <hdegoede@redhat.com>
1 parent 7ff7509 commit 89121e5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/vboxvideo/vbox_main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ int vbox_hw_init(struct vbox_private *vbox)
114114

115115
DRM_INFO("VRAM %08x\n", vbox->full_vram_size);
116116

117+
ret = pcim_request_region(pdev, 0, "vboxvideo");
118+
if (ret)
119+
return ret;
120+
117121
/* Map guest-heap at end of vram */
118122
vbox->guest_heap = pcim_iomap_range(pdev, 0,
119123
GUEST_HEAP_OFFSET(vbox), GUEST_HEAP_SIZE);

0 commit comments

Comments
 (0)