[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#935456: No GPU hardware detected with kernel 5.2 for Rpi2b and Rpi3b



Hi,

Kernel 5.2.0-2 with device_tree from kernel 4.19 works:

        armhfCard	arm64Card
4.19.0-5:
Rpi2b   Success     NotPossible32bitCpu
Rpi3b   Success     Success
Rpi3b+  Success     Success
5.2.0-2 with device_tree from kernel 4.19:
Rpi2b   Success*1)  NotPossible32bitCpu
Rpi3b   Success*1)  Success*1)
Rpi3b+  Success*1)  Success*1)  // Bug report 939633

# cat cmdline.txt
dwc_otg.lpm_enable=0 console=tty0 root=/dev/mmcblk0p3 rootfstype=f2fs
elevator=deadline fsck.repair=yes rootwait cma=416M

# cat config.txt    // Rpi3b, armhfCard
device_tree=bcm2837-rpi-3-b.dtb.4.19
kernel=vmlinuz-5.2.0-2-armmp
initramfs initrd.img-5.2.0-2-armmp followkernel

*1) "Success" 5.2.0-2 with device_tree from kernel 4.19:
Kde runs very well and stable. The exception is the Hdmi audio which
does not work.
shutdown -h now	// It does not disconnect the power to the monitor. It
leaves the monitor on with the text (last row): "reboot: System
halted"
shutdown -r now	// It does not restart. It leaves the monitor on with
the text (last row): "Reboot failed -- System halted"
Shutdown processes:
 Stopped Login Service
 Manage Sound Card  // Delay for about a minute with text rows coming
before "A stop job is running for"...


Rpi3b logs for different configurations (in a search for hdmi audio problem):

---

4.19 kernel and device_tree=bcm2837-rpi-3-b.dtb.4.19:  // Hdmi audio works!

# journalctl|grep -i bcm
Sep 07 19:06:19 irena kernel: Kernel command line:
video=HDMI-A-1:1920x1080@60 dma.dmachans=0x7f35
bcm2709.boardrev=0xa02082 bcm2709.serial=0x3f3d54e2
bcm2709.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:3D:54:E2
vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000
dwc_otg.lpm_enable=0 console=tty0 root=/dev/mmcblk0p3 rootfstype=f2fs
elevator=deadline fsck.repair=yes rootwait cma=416M
Sep 07 19:06:19 irena kernel: bcm2835: system timer (irq = 27)
Sep 07 19:06:19 irena kernel: bcm2835-mbox 3f00b880.mailbox: mailbox enabled
Sep 07 19:06:19 irena kernel: i2c-bcm2835 3f805000.i2c: Could not read
clock-frequency property
Sep 07 19:06:19 irena kernel: sdhost-bcm2835 3f202000.mmc: loaded -
DMA enabled (>1)
Sep 07 19:06:20 irena kernel: bcm2835-wdt 3f100000.watchdog: Broadcom
BCM2835 watchdog timer
Sep 07 19:06:20 irena kernel: bcm2835-rng 3f104000.rng: hwrng registered
Sep 07 19:06:21 irena kernel: brcmfmac: brcmf_fw_alloc_request: using
brcm/brcmfmac43430-sdio for chip BCM43430/1

# journalctl|grep -i hdmi
Sep 07 19:06:19 irena kernel: Kernel command line:
video=HDMI-A-1:1920x1080@60 dma.dmachans=0x7f35
bcm2709.boardrev=0xa02082 bcm2709.serial=0x3f3d54e2
bcm2709.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:3D:54:E2
vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000
dwc_otg.lpm_enable=0 console=tty0 root=/dev/mmcblk0p3 rootfstype=f2fs
elevator=deadline fsck.repair=yes rootwait cma=416M
Sep 07 19:06:19 irena kernel: vc4_hdmi 3f902000.hdmi: ASoC: Failed to
create component debugfs directory
Sep 07 19:06:19 irena kernel: vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi
<-> 3f902000.hdmi mapping ok
Sep 07 19:06:19 irena kernel: vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
Sep 07 19:06:19 irena kernel: vc4-drm soc:gpu: bound 3f902000.hdmi
(ops vc4_hdmi_ops [vc4])
Sep 07 19:07:17 irena sddm-greeter[549]: Adding view for "HDMI-1"
QRect(0,0 1920x1080)

# journalctl -p 3
-- Logs begin at Sun 2019-09-08 06:20:52 UTC, end at Sun 2019-09-08
07:42:01 UTC. --
Sep 08 06:20:54 irena kernel: brcmfmac mmc1:0001:1: firmware: failed
to load brcm/brcmfmac43430-sdio.bin (-2)
Sep 08 06:20:54 irena kernel: firmware_class: See
https://wiki.debian.org/Firmware for information about missing
firmware
Sep 08 06:20:55 irena kernel: brcmfmac: brcmf_sdio_htclk: HT Avail
timeout (1000000): clkctl 0x50
Sep 08 06:20:58 irena lircd-0.10.1[384]: Cannot stat socket path
/var/run/lirc/lircd: No such file or directory
Sep 08 06:20:58 irena lircd-0.10.1[384]: Error: Cannot setup input
file descriptor.
Sep 08 06:21:04 irena ntpd[481]: error resolving pool
0.debian.pool.ntp.org: Temporary failure in name resolution (-3)
Sep 08 06:21:05 irena ntpd[481]: error resolving pool
1.debian.pool.ntp.org: Temporary failure in name resolution (-3)

---

5.2 kernel and device_tree=bcm2837-rpi-3-b.dtb.5.2:  // KDE does not work!

# journalctl|grep -i bcm
Sep 07 19:00:21 irena kernel: Kernel command line:
video=HDMI-A-1:1920x1080@60 dma.dmachans=0x7f35
bcm2709.boardrev=0xa02082 bcm2709.serial=0x3f3d54e2
bcm2709.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:3D:54:E2
vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000
dwc_otg.lpm_enable=0 console=tty0 root=/dev/mmcblk0p3 rootfstype=f2fs
elevator=deadline fsck.repair=yes rootwait cma=416M
Sep 07 19:00:21 irena kernel: bcm2835: system timer (irq = 27)
Sep 07 19:00:21 irena kernel: bcm2835-power bcm2835-power: Broadcom
BCM2835 power domains driver
Sep 07 19:00:21 irena kernel: bcm2835-mbox 3f00b880.mailbox: mailbox enabled
Sep 07 19:00:21 irena kernel: i2c-bcm2835 3f805000.i2c: Could not read
clock-frequency property
Sep 07 19:00:21 irena kernel: sdhost-bcm2835 3f202000.mmc: loaded -
DMA enabled (>1)
Sep 07 19:00:21 irena kernel: bcm2835-power bcm2835-power: Timeout
waiting for grafx power OK	// A lot of these rows
Sep 07 19:00:22 irena kernel: bcm2835-rng 3f104000.rng: hwrng registered
Sep 07 19:00:23 irena kernel: snd_bcm2835: module is from the staging
directory, the quality is unknown, you have been warned.
Sep 07 19:00:23 irena kernel: brcmfmac: brcmf_fw_alloc_request: using
brcm/brcmfmac43430-sdio for chip BCM43430/1
Sep 07 19:00:23 irena kernel: bcm2835_v4l2: module is from the staging
directory, the quality is unknown, you have been warned.
Sep 07 19:00:23 irena kernel: bcm2835_audio bcm2835_audio: card
created with 8 channels

# journalctl|grep -i hdmi
Sep 07 19:00:21 irena kernel: Kernel command line:
video=HDMI-A-1:1920x1080@60 dma.dmachans=0x7f35
bcm2709.boardrev=0xa02082 bcm2709.serial=0x3f3d54e2
bcm2709.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:3D:54:E2
vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000
dwc_otg.lpm_enable=0 console=tty0 root=/dev/mmcblk0p3 rootfstype=f2fs
elevator=deadline fsck.repair=yes rootwait cma=416M

# journalctl -p 3
-- Logs begin at Sun 2019-09-08 07:47:53 UTC, end at Sun 2019-09-08
09:09:27 UTC. --
Sep 08 07:47:53 irena kernel: bcm2835-power bcm2835-power: Timeout
waiting for grafx power OK	// A lot of these rows
Sep 08 07:47:55 irena kernel: brcmfmac mmc1:0001:1: firmware: failed
to load brcm/brcmfmac43430-sdio.bin (-2)
Sep 08 07:47:55 irena kernel: firmware_class: See
https://wiki.debian.org/Firmware for information about missing
firmware
Sep 08 07:47:56 irena kernel: brcmfmac: brcmf_sdio_htclk: HT Avail
timeout (1000000): clkctl 0x50
Sep 08 07:47:57 irena kernel: bcm2835-power bcm2835-power: Timeout
waiting for grafx power OK
Sep 08 07:47:57 irena lircd-0.10.1[414]: Cannot stat socket path
/var/run/lirc/lircd: No such file or directory
Sep 08 07:47:57 irena lircd-0.10.1[414]: Error: Cannot setup input
file descriptor.
Sep 08 07:48:02 irena ntpd[495]: bind(20) AF_INET6
fe80::8383:b437:82c9:2f53%2#123 flags 0x11 failed: Cannot assign
requested address
Sep 08 07:48:02 irena ntpd[495]: unable to create socket on
enxb827eb3d54e2 (4) for fe80::8383:b437:82c9:2f53%2#123
Sep 08 07:48:03 irena ntpd[495]: error resolving pool
0.debian.pool.ntp.org: Temporary failure in name resolution (-3)
Sep 08 07:48:04 irena ntpd[495]: error resolving pool
1.debian.pool.ntp.org: Temporary failure in name resolution (-3)

---

5.2 kernel and device_tree=bcm2837-rpi-3-b.dtb.4.19:  // Hdmi audio
does not work!

# journalctl|grep -i bcm
Sep 07 19:34:55 irena kernel: Kernel command line:
video=HDMI-A-1:1920x1080@60 dma.dmachans=0x7f35
bcm2709.boardrev=0xa02082 bcm2709.serial=0x3f3d54e2
bcm2709.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:3D:54:E2
vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000
dwc_otg.lpm_enable=0 console=tty0 root=/dev/mmcblk0p3 rootfstype=f2fs
elevator=deadline fsck.repair=yes rootwait cma=416M
Sep 07 19:34:55 irena kernel: bcm2835: system timer (irq = 27)
Sep 07 19:34:55 irena kernel: bcm2835-mbox 3f00b880.mailbox: mailbox enabled
Sep 07 19:34:55 irena kernel: i2c-bcm2835 3f805000.i2c: Could not read
clock-frequency property
Sep 07 19:34:55 irena kernel: sdhost-bcm2835 3f202000.mmc: loaded -
DMA enabled (>1)
Sep 07 19:34:56 irena kernel: bcm2835-rng 3f104000.rng: hwrng registered
Sep 07 19:34:57 irena kernel: brcmfmac: brcmf_fw_alloc_request: using
brcm/brcmfmac43430-sdio for chip BCM43430/1
Sep 07 19:34:57 irena kernel: snd_bcm2835: module is from the staging
directory, the quality is unknown, you have been warned.
Sep 07 19:34:57 irena kernel: bcm2835_audio bcm2835_audio: card
created with 8 channels
Sep 07 19:34:57 irena kernel: bcm2835_v4l2: module is from the staging
directory, the quality is unknown, you have been warned.
Sep 07 19:35:54 irena kernel: bcm2835_audio bcm2835_audio: vchi
message timeout, msg=5	// A lot of these rows
Sep 07 19:36:08 irena kernel: bcm2835_audio bcm2835_audio: vchi
message timeout, msg=3	// A lot of these rows
Sep 07 19:39:02 irena kernel: bcm2835_audio bcm2835_audio: failed to
close VCHI service connection (status=1)

# journalctl|grep -i hdmi
Sep 07 19:34:55 irena kernel: Kernel command line:
video=HDMI-A-1:1920x1080@60 dma.dmachans=0x7f35
bcm2709.boardrev=0xa02082 bcm2709.serial=0x3f3d54e2
bcm2709.uart_clock=48000000 smsc95xx.macaddr=B8:27:EB:3D:54:E2
vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000
dwc_otg.lpm_enable=0 console=tty0 root=/dev/mmcblk0p3 rootfstype=f2fs
elevator=deadline fsck.repair=yes rootwait cma=416M
Sep 07 19:34:55 irena kernel: vc4_hdmi 3f902000.hdmi: ASoC: Failed to
create component debugfs directory: -17
Sep 07 19:34:55 irena kernel: vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi
<-> 3f902000.hdmi mapping ok
Sep 07 19:34:55 irena kernel: vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
Sep 07 19:34:55 irena kernel: vc4-drm soc:gpu: bound 3f902000.hdmi
(ops vc4_hdmi_ops [vc4])
Sep 07 19:35:16 irena sddm-greeter[573]: Adding view for "HDMI-1"
QRect(0,0 1920x1080)

# journalctl -p 3
-- Logs begin at Sun 2019-09-08 09:11:23 UTC, end at Sun 2019-09-08
09:16:41 UTC. --
Sep 08 09:11:25 irena kernel: brcmfmac mmc1:0001:1: firmware: failed
to load brcm/brcmfmac43430-sdio.bin (-2)
Sep 08 09:11:25 irena kernel: firmware_class: See
https://wiki.debian.org/Firmware for information about missing
firmware
Sep 08 09:11:26 irena kernel: brcmfmac: brcmf_sdio_htclk: HT Avail
timeout (1000000): clkctl 0x50
Sep 08 09:11:27 irena lircd-0.10.1[399]: Cannot stat socket path
/var/run/lirc/lircd: No such file or directory
Sep 08 09:11:27 irena lircd-0.10.1[399]: Error: Cannot setup input
file descriptor.
Sep 08 09:11:33 irena ntpd[500]: error resolving pool
0.debian.pool.ntp.org: Temporary failure in name resolution (-3)
Sep 08 09:12:32 irena kernel: bcm2835_audio bcm2835_audio: vchi
message timeout, msg=5	// A lot of these rows
Sep 08 09:12:42 irena kernel: bcm2835_audio bcm2835_audio: vchi
message timeout, msg=3	// A lot of these rows
Sep 08 09:15:38 irena kernel: bcm2835_audio bcm2835_audio: failed to
close VCHI service connection (status=1)
Sep 08 09:15:38 irena systemd[587]: Failed to start Sound Service.

---

Problem:
BugNo 935456 (this): No GPU hardware detected with kernel 5.2 for
Rpi2b and Rpi3b
 Error message: "bcm2835-power bcm2835-power: Timeout waiting for
grafx power OK"
BugNo 939633: Rpi3+ hangs with kernel 5.2 device_tree
 Error message: "bcm2835-power bcm2835-power: Failed to disable ASB
master for v3d"

Solution:
Use "kernel 5.2.0-2 with device_tree from kernel 4.19".
We are back to functional and stable environments (armhfCard and
arm64Card) for all Rpi:s.
The exception is Hdmi audio which works in kernel version 4.19 for
both armhfCard and arm64Card, but not in 5.2.
The Hdmi audio needs yet to be fixed.

Best Regards,
Evald


Reply to: