Opened 5 years ago

Last modified 5 years ago

#10505 new enhancement

radeon_hd needs ACPI support for finding the AtomBIOS

Reported by: kallisti5 Owned by: tqh
Priority: normal Milestone: R1
Component: Drivers/Graphics/radeon_hd Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Radeon HD devices can stash their AtomBIOS in the ATRM ACPI node. We should try and obtain a copy there first before attempting other methods.

The location this needs done in is: http://cgit.haiku-os.org/haiku/tree/src/add-ons/kernel/drivers/graphics/radeon_hd/radeon_hd.cpp#n133

Defines of the AMD ACPI methods are here: http://lists.freedesktop.org/archives/dri-devel/2012-July/025517.html

ATRM contains the AtomBIOS (or points to it, not 100% how that works)

At the moment, a lot of cards that should be using the ATRM node are falling back to my Video shadow bios hack (0xC0000) which can be unreliable.

Change History (2)

comment:1 Changed 5 years ago by tqh

This needs to be done:

  • Get ACPI module.
  • Find ACPI handle for card.
  • Find ATRM function under card.
  • Execute ATRM to get BIOS.

If anyone fails fallthrough to next way of getting firmware.

Possibly we need to do like Linux that calls ATRM with offset into bios as first param and length to read as second. Reading the BIOS is done with several calls with chunks that are ATRM page size until 256 * 1024 bytes are read.

comment:2 Changed 5 years ago by phoudoin

Could someone with such ROM detection could post its /dev/acpi/namespace please ?

Last edited 5 years ago by phoudoin (previous) (diff)
Note: See TracTickets for help on using tickets.