All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] drm/bochs: downgrade pci_request_region failure from error to warning
@ 2020-03-13  8:41 ` Gerd Hoffmann
  0 siblings, 0 replies; 15+ messages in thread
From: Gerd Hoffmann @ 2020-03-13  8:41 UTC (permalink / raw)
  To: dri-devel
  Cc: marmarek, Gerd Hoffmann, David Airlie, Daniel Vetter,
	open list:DRM DRIVER FOR BOCHS VIRTUAL GPU, open list

Shutdown of firmware framebuffer has a bunch of problems.  Because
of this the framebuffer region might still be reserved even after
drm_fb_helper_remove_conflicting_pci_framebuffers() returned.

Don't consider pci_request_region() failure for the framebuffer
region as fatal error to workaround this issue.

Reported-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 drivers/gpu/drm/bochs/bochs_hw.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/bochs/bochs_hw.c b/drivers/gpu/drm/bochs/bochs_hw.c
index 952199cc0462..dce4672e3fc8 100644
--- a/drivers/gpu/drm/bochs/bochs_hw.c
+++ b/drivers/gpu/drm/bochs/bochs_hw.c
@@ -157,10 +157,8 @@ int bochs_hw_init(struct drm_device *dev)
 		size = min(size, mem);
 	}
 
-	if (pci_request_region(pdev, 0, "bochs-drm") != 0) {
-		DRM_ERROR("Cannot request framebuffer\n");
-		return -EBUSY;
-	}
+	if (pci_request_region(pdev, 0, "bochs-drm") != 0)
+		DRM_WARN("Cannot request framebuffer, boot fb still active?\n");
 
 	bochs->fb_map = ioremap(addr, size);
 	if (bochs->fb_map == NULL) {
-- 
2.18.2

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

end of thread, other threads:[~2020-03-19  8:40 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-13  8:41 [PATCH v3] drm/bochs: downgrade pci_request_region failure from error to warning Gerd Hoffmann
2020-03-13  8:41 ` Gerd Hoffmann
2020-03-13  8:41 ` Gerd Hoffmann
2020-03-13  9:03 ` Sam Ravnborg
2020-03-13  9:03   ` Sam Ravnborg
2020-03-13 14:35   ` Gerd Hoffmann
2020-03-13 14:35     ` Gerd Hoffmann
2020-03-13 18:16     ` Sam Ravnborg
2020-03-13 18:16       ` Sam Ravnborg
2020-03-17 16:49 ` Daniel Vetter
2020-03-17 16:49   ` Daniel Vetter
2020-03-18  6:42   ` Gerd Hoffmann
2020-03-18  6:42     ` Gerd Hoffmann
2020-03-19  8:39     ` Daniel Vetter
2020-03-19  8:39       ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.