HomeFreeBSD

ofwfb: fix vga/hdmi console with ASMEDIA during boot on powerpc64(le)

Description

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

(cherry picked from commit b042d10cdc71ddd6ef3449261d712b05c648746e)

Details

Provenance
alfredoAuthored on Nov 3 2021, 4:42 PM
Reviewer
luporl
Differential Revision
D30626: ofwfb: fix vga/hdmi console during boot on powerpc64
Parents
rG9aa63a8d13c6: libpfct: be consistent with u_int vs. uint
Branches
Unknown
Tags
Unknown