This problem is fixed by this commit, it is in the
https://github.com/raspberrypi/linux.git

(the data structure does not match the firmware definition)


commit 26f64fa81357f4b18192432eb8023f99c7eb5cf7 (HEAD -> 
26f64fa81357f4b18192432eb8023f99c7eb5cf7)
Author: Michael Brown <mbr...@fensystems.co.uk>
Date:   Sun Sep 22 21:51:29 2019 +0100

    bcm2708_fb: Fix layout of struct vc4_display_settings_t
    
    The display parameters returned by the VC4 firmware in response to the
    RPI_FIRMWARE_FRAMEBUFFER_GET_DISPLAY_SETTINGS tag do not match the
    layout of struct vc4_display_settings_t: the colour depth and row
    pitch are erroneously swapped in the kernel definition.  This can
    trigger a kernel warning from pixel_to_pat(), such as:
    
      pixel_to_pat(): unsupported pixelformat 7296
    
    Fix by adjusting the layout of struct vc4_display_settings_t to match
    the layout as used by the VC4 firmware.
    
    Signed-off-by: Michael Brown <mbr...@fensystems.co.uk>

diff --git a/drivers/video/fbdev/bcm2708_fb.c b/drivers/video/fbdev/bcm2708_fb.c
index 4da577c8a0d8..59443f79f228 100644
--- a/drivers/video/fbdev/bcm2708_fb.c
+++ b/drivers/video/fbdev/bcm2708_fb.c
@@ -88,8 +88,8 @@ struct vc4_display_settings_t {
        u32 display_num;
        u32 width;
        u32 height;
-       u32 pitch;
        u32 depth;
+       u32 pitch;
        u32 virtual_width;
        u32 virtual_height;
        u32 virtual_width_offset;

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-raspi2 in Ubuntu.
https://bugs.launchpad.net/bugs/1847596

Title:
  rpi3b+: corrupted screen on hdmi

Status in linux-raspi2 package in Ubuntu:
  New

Bug description:
  Eoan daily: 20191010
  Ubuntu Server arm64+raspi3
  HW: Raspberrypi 3 B+

  Initial boot ok but as soon as changing to the high resolution
  framebuffer, the whole screen consists mostly of bright yellow and
  darker yellow vertical stipes. Further boot messages are visible but
  barely readable. Device is accessible via ssh. The dmesg there shows
  some kernel warnings:

  [    1.450650] bcm2708_fb soc:fb: FB found 1 display(s)
  [    1.452916] WARNING: CPU: 2 PID: 1 at mm/page_alloc.c:4696 
__alloc_pages_nodemask+0x284/0x2c8
  [    1.460096] Modules linked in:
  [    1.467227] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 5.3.0-1005-raspi2 
#6-Ubuntu
  [    1.474549] Hardware name: Raspberry Pi 3 Model B Plus Rev 1.3 (DT)
  [    1.481908] pstate: 20400005 (nzCv daif +PAN -UAO)
  [    1.489237] pc : __alloc_pages_nodemask+0x284/0x2c8
  [    1.496499] lr : __dma_direct_alloc_pages+0x100/0x1e8
  ...
  [    1.761649] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 
1824x984
  [    1.850950] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
  [    1.859009] bcm2835-rng 3f104000.rng: hwrng registered
  [    1.865102] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 
mem_size:0x40000000(1024 MiB)
  ...
  [    2.909823] WARN::dwc_otg_hcd_init:1043: FIQ DMA bounce buffers: virt = 
ffff000010616000 dma = 0x00000000fad10000 len=9024
  ...
  [    2.946722] WARN::hcd_init_fiq:496: MPHI regs_base at ffff000010075000

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1847596/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to