All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] hw/misc/bcm2835_property: Fix framebuffer with recent RPi kernels
@ 2021-10-17  7:48 Benjamin Herrenschmidt
  2021-10-17 15:08 ` Philippe Mathieu-Daudé
  2021-11-18 15:05 ` [PATCH-for-6.2 " Philippe Mathieu-Daudé
  0 siblings, 2 replies; 8+ messages in thread
From: Benjamin Herrenschmidt @ 2021-10-17  7:48 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-arm, Alex Bennée

The framebuffer driver fails to initialize with recent Raspberry Pi
kernels, such as the ones shipped in the current RaspiOS images
(with the out of tree bcm2708_fb.c driver)

The reason is that this driver uses a new firmware call to query the
number of displays, and the fallback when this call fails is broken.

So implement the call and claim we have exactly one display

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
 hw/misc/bcm2835_property.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hw/misc/bcm2835_property.c b/hw/misc/bcm2835_property.c
index 73941bdae9..b958fa6a5c 100644
--- a/hw/misc/bcm2835_property.c
+++ b/hw/misc/bcm2835_property.c
@@ -269,6 +269,10 @@ static void bcm2835_property_mbox_push(BCM2835PropertyState *s, uint32_t value)
             stl_le_phys(&s->dma_as, value + 12, 0);
             resplen = 4;
             break;
+        case 0x00040013: /* Get num displays */
+            stl_le_phys(&s->dma_as, value + 12, 1);
+            resplen = 4;
+            break;
 
         case 0x00060001: /* Get DMA channels */
             /* channels 2-5 */




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

end of thread, other threads:[~2022-01-17 12:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-17  7:48 [PATCH 1/2] hw/misc/bcm2835_property: Fix framebuffer with recent RPi kernels Benjamin Herrenschmidt
2021-10-17 15:08 ` Philippe Mathieu-Daudé
2021-10-18  0:41   ` Benjamin Herrenschmidt
2021-10-18  9:47     ` Philippe Mathieu-Daudé
2021-10-18 10:27       ` Benjamin Herrenschmidt
2021-10-18 10:41         ` Philippe Mathieu-Daudé
2021-11-18 15:05 ` [PATCH-for-6.2 " Philippe Mathieu-Daudé
2022-01-17 12:13   ` Philippe Mathieu-Daudé via

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.