• Alex Deucher's avatar
    drm/radeon/kms: pull power mode info from bios tables (v3) · 56278a8e
    Alex Deucher authored
    The general idea is to validate the current hw state
    against the set of power states and select a power
    state based on that.  This patch just pulls the power
    states from the bios and prints the information.  It
    is not currently hooked up in the actual power management
    code.  Hooking it up will require reworking the the current
    power state selection code and will be handled in a future
    patch.
    
    Additionally, we'd need to decide on some default lower
    power states for cards without power tables.
    
    v2 - increment state_index after checking for default state
    v3 - fix typo in pm init on pre-atom cards, handle pre-atom
    cards without x86 bioses
    Signed-off-by: default avatarAlex Deucher <alexdeucher@gmail.com>
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    56278a8e
radeon_atombios.c 67.9 KB