Age | Commit message (Collapse) | Author |
|
This overhauls the radeon driver and removes all the old UMS-only code,
it drops all the UMS, DRI1, XAA, overlay Xv, video capture, tv tuners
There are probably a lot more cleanups that will fall out of this afterwards.
So far this is compile/build tested.
Signed-off-by: Dave Airlie <airlied@redhat.com>
|
|
Just pass the ScrnInfoPtr around instead.
Signed-off-by: Dave Airlie <airlied@redhat.com>
|
|
DVOOutputControl checks the value of of bios scratch reg 3
on some tables and assumes the encoder is already enabled
if the DFP2_ACTIVE bit is set. Clear that bit so the table
sets the DDIA enable bit properly.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
|
|
atombios_pick_dig_encoder() needs to be called
with a valid crtc assigned.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
|
|
Warning the dp clock value are divided by 10 in ddx (10 times
bigger than kernel value) this is somethings very picky.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
|
|
Works more like DCE4.0. With only two DIGx blocks
the routing is hardcoded based on link.
This fixes blank screen issues when changing crtc
routing due to incorrect crtc to dig mapping.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
|
|
Accel not enabled yet.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
|
|
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=30330
|
|
- add mising LVTMA case statement for DCE3.0 dig encoder
- some DCE4 systems have EN/DISABLE_OUTPUT actions
|
|
Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=30686
|
|
Fixes:
http://bugs.freedesktop.org/show_bug.cgi?id=27452
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
|
|
|
|
This removes a bunch of strict aliasing warnings and fixes the
codepaths up like the latest KMS code, including a workaround for a bug
on evergreen.
|
|
this is ported from KMS
|
|
|
|
|
|
|
|
Switching between TV and VGA caused problems on some
systems since the TV encoder was left enabled.
Should fix fdo bug 25520.
|
|
both link and encoder must be set for linkb
|
|
DP CRTC clock always comes from DCPLL. This frees
up PPll1/2 for non-DP-mode PHYs and CRTCs
|
|
|
|
|
|
analog is already supported by the existing code.
|
|
this just cleans up a few more bits of the digital encoder setup.
Signed-off-by: Dave Airlie <airlied@redhat.com>
|
|
- switch the var name to dig_encoder
- quiet coherent messages
- clean up dig encoder selection
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
|
|
Testing on a W500 laptop found the LVDS + DisplayPort would conflict
over the choice of digital encoder, and only one would work.
This patch fixes the DCE3 case where LVTMA requires the second digital
encoder and lets DP/DVI use the first in most cases.
Signed-off-by: Dave Airlie <airlied@redhat.com>
|
|
Should fix fdo bug 25931
|
|
|
|
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
|
|
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
|
|
According to the DCE3 docs we should only use DAC1/2 not
CV1/TV OutputControl, also my rv730 bios doesn't have any
CV1/TV tables.
Signed-off-by: Dave Airlie <airlied@redhat.com>
|
|
|
|
|
|
In some cases the atom transmitter table sets the
golden value of this reg differently which some monitors
don't like. I haven't had time to dig further, so this
works around it for now.
Fixes fdo bug 24313
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
|
|
aux channel atom command table delay is 10 usec units
this gets the link training working, but alas, no image.
|
|
Something's wrong with the status check.
|
|
|
|
- use coherent
- fix up lane/clock numbers
|
|
- clean up handling of linkb, etc.
- add support for ATOM_TRANSMITTER_ACTION_SETUP_VSEMPH
to existing transmitter control function
- fix lots of warnings
|
|
|
|
Generally this is done at post, but might not always
be done with softboot or for connectors on docking
stations.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
|
|
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
|
|
fixes bug 24796
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
|
|
For some reason we lost the DACB source when we dpms tv back on.
|
|
We end up writing back an empty save register over the dac
detection results so the atombios table can no longer
figure out the S-video vs composite so sets the wrong one up.
this gets tv-out on my r580 with a composite connector working.
|
|
If we need to use the second scaler actually set the second scaler
up.
|
|
DPMS header was split into dpms.h (client) and dpmsconst.h (server). Drivers
need to include dpmsconst.h if xextproto 7.1 is available.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
|
- remove cases that aren't possible (e.g., no TMDSA on DCE3 cards)
- condense duplicate cases
|
|
disable the dig transmitter and encoder before setup and enable
|
|
Should fix bug 21050
|