]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ofwfb: fix vga/hdmi console with ASMEDIA during boot on powerpc64(le)
authorAlfredo Dal'Ava Junior <alfredo@FreeBSD.org>
Wed, 3 Nov 2021 16:42:28 +0000 (13:42 -0300)
committerAlfredo Dal'Ava Junior <alfredo@FreeBSD.org>
Wed, 3 Nov 2021 16:42:28 +0000 (13:42 -0300)
commitb042d10cdc71ddd6ef3449261d712b05c648746e
treedf00be28ef65edbbc2b921852231c2564ce87d4c
parente4ce23b238a162f5d36afe8ef49dcd66901138a1
ofwfb: fix vga/hdmi console with ASMEDIA during boot on powerpc64(le)

On recent OpenBMC firmware, the onboard ASMEDIA video card framebuffer
address was removed from device tree for security purposes (value is set
to zero to avoid leaking the address).

This patch works around the problem by taking framebuffer base address
from the "ranges" property of a parent node.

Reviewed by: luporl, jhibbits (on IRC)
MFC after: 2 weeks
Sponsored by: Instituto de Pesquisas Eldorado (eldorado.org.br)
Differential Revision: https://reviews.freebsd.org/D30626
sys/dev/vt/hw/ofwfb/ofwfb.c