HomeFreeBSD

ofwfb: fix incorrect colors on powerpc* and add new tunable parameters

Description

ofwfb: fix incorrect colors on powerpc* and add new tunable parameters

  • Implements little-endian support (powerpc64le)
  • Adds 'hw.ofwfb.physaddr' kernel parameter so user can manually provide correct address if it's not detected correctly
  • Adds 'hw.ofwfb.argb32_pixel' so user can set it manually if colors are inverted due to incorrect pixel format (default = 1)
  • Automatically selects RGBA32 pixel format if NVidia graphic adapter is detected (sets hw.ofwfb.argb32_pixel=0)

Machines equipped with NVidia graphic adapters tend to use RGBA32
pixel format. By default ARGB32 pixel format is used, proved to work
on machines equipped with ATI graphic adapter and the onboard adapter
used on Talos II and Blackbird machines from Raptor Computing Systems.

Original patch developed by bdragon

Reviewed by: bdragon, luporl
MFC after: 3 days
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D28604

(cherry picked from commit 50b7c1f530f174be720b83f7e1d13e0fd42c5974)

Details

Provenance
alfredoAuthored on Feb 19 2021, 6:22 AM
Reviewer
bdragon
Differential Revision
D28604: ofwfb: fix incorrect colors on powerpc*, add new tunable parameters
Parents
R10:007101f87ddf: cgem: improve usage of busdma(9) KPI
Branches
Unknown
Tags
Unknown