dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/vmwgfx: Stop requesting the pci regions
@ 2022-01-17 18:03 Zack Rusin
  2022-01-18 19:00 ` Javier Martinez Canillas
  2022-01-19  8:45 ` Thomas Zimmermann
  0 siblings, 2 replies; 18+ messages in thread
From: Zack Rusin @ 2022-01-17 18:03 UTC (permalink / raw)
  To: dri-devel; +Cc: krastevm, stable, mombasawalam

From: Zack Rusin <zackr@vmware.com>

When sysfb_simple is enabled loading vmwgfx fails because the regions
are held by the platform. In that case remove_conflicting*_framebuffers
only removes the simplefb but not the regions held by sysfb.

Like the other drm drivers we need to stop requesting all the pci regions
to let the driver load with platform code enabled.
This allows vmwgfx to load correctly on systems with sysfb_simple enabled.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Fixes: 523375c943e5 ("drm/vmwgfx: Port vmwgfx to arm64")
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
---
 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
index fe36efdb7ff5..27feb19f3324 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -724,10 +724,6 @@ static int vmw_setup_pci_resources(struct vmw_private *dev,
 
 	pci_set_master(pdev);
 
-	ret = pci_request_regions(pdev, "vmwgfx probe");
-	if (ret)
-		return ret;
-
 	dev->pci_id = pci_id;
 	if (pci_id == VMWGFX_PCI_ID_SVGA3) {
 		rmmio_start = pci_resource_start(pdev, 0);
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-01-21  8:44 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-17 18:03 [PATCH] drm/vmwgfx: Stop requesting the pci regions Zack Rusin
2022-01-18 19:00 ` Javier Martinez Canillas
2022-01-18 22:07   ` Javier Martinez Canillas
2022-01-19  2:15   ` Zack Rusin
2022-01-19  9:13     ` Thomas Zimmermann
2022-01-19 14:00       ` Thomas Zimmermann
2022-01-19 15:12         ` Zack Rusin
2022-01-19 15:50           ` Thomas Zimmermann
2022-01-19 16:36             ` Javier Martinez Canillas
2022-01-20  4:08               ` Zack Rusin
2022-01-20  4:06             ` Zack Rusin
2022-01-20  8:22               ` Javier Martinez Canillas
2022-01-20 10:00               ` Thomas Zimmermann
2022-01-20 21:28                 ` Zack Rusin
2022-01-21  8:44                   ` Thomas Zimmermann
2022-01-19 14:24       ` Zack Rusin
2022-01-19 14:38         ` Thomas Zimmermann
2022-01-19  8:45 ` Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).