diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-07-17 14:37:05 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-07-17 14:57:41 +1000 |
commit | df53d12a06fad41f00cff849458cb358ab5e2098 (patch) | |
tree | 5dc174f5c5ff964c5f69dfcf9bb13f3b44b6953b /src/radeon_probe.h | |
parent | e8c07270e1fc2ee455320370692aaf90abac2773 (diff) |
Fix console switch on R500
This patch fixes the console switch for me on R5xx.
There are two aspects to it:
- Fix the ordering of avivo_restore() to better match what's
happening in the driver & ATOM, properly locking/unlocking and
only enabling the CRTCs after everything has been properly
programmed.
- Don't ASIC_INIT if the card has any CRTC enabled. This is the
best I came up with for avoiding spurrious ASIC_INIT on cards that
-are- POSTed but don't have the BIOS coming from c0000 on x86. The
problem with spurrious ASIC_INIT is that we do it before we do
RADEONSave(), so that screws up the console switch.
Note that I think we also should save/restore the palette, I don't think
we do. right now, it's a minor issue for me because I fixed offb to be
able to set it on AVIVO's but it might still have to be done in the long
run.
Tested with a VGA analog setup on DACA and a DVI setup on TMDS 0. I
haven't tested any other combo but that should get us going.
Cheers,
Ben.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/radeon_probe.h')
-rw-r--r-- | src/radeon_probe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/radeon_probe.h b/src/radeon_probe.h index 24af52b3..28376717 100644 --- a/src/radeon_probe.h +++ b/src/radeon_probe.h @@ -310,6 +310,7 @@ struct avivo_grph_state { uint32_t x_end; uint32_t y_end; + uint32_t desktop_height; uint32_t viewport_start; uint32_t viewport_size; }; |