20 Jul, 2012
1 commit
-
The passed mode must not be modified by the operation, make it const.
Signed-off-by: Laurent Pinchart
Reviewed-by: Alex Deucher
Signed-off-by: Dave Airlie
22 May, 2012
1 commit
-
Signed-off-by: Adam Jackson
Acked-by: Alex Deucher
Reviewed-by: Jerome Glisse
Signed-off-by: Dave Airlie
24 Apr, 2012
1 commit
-
Improve handling of bpc (bits per color) in radeon.
In most cases we want 8 except for HDMI, DP, LVDS, and eDP.v2: handle DP better.
Signed-off-by: Alex Deucher
Tested-by: Lennert Buytenhek
Signed-off-by: Dave Airlie
26 Mar, 2012
1 commit
-
Using the bpc (bits per color) specified by the monitor
can cause problems in some cases. Until we get a better
handle on how to deal with those cases, just use a bpc of 8.Reported-by: Lennert Buytenhek
Signed-off-by: Alex Deucher
Cc: stable@kernel.org
Signed-off-by: Dave Airlie
21 Mar, 2012
1 commit
-
DCE6 requires a non-0 value for lpAuxRequest for the
ProcessAuxChannelTransaction command table. Setting
lpAuxRequest to 0 is a special case used by AsicInit
for setting up the aux pads.Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie
20 Mar, 2012
1 commit
-
DisplayPort spec v1.1a, Table 2-52.
Same commit to Intel by ajax in 9962c9252e46eda7058067cbe73bdf1ed74b0d37
Reviewed-by: Alex Deucher
Signed-off-by: Dave Airlie
02 Feb, 2012
1 commit
-
Different versions of the DP to LVDS bridge chip
need different panel mode settings depending on
the chip version used.Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=41569Signed-off-by: Alex Deucher
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie
25 Jan, 2012
1 commit
-
Needs to happen earlier in the mode set.
Signed-off-by: Alex Deucher
Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie
11 Nov, 2011
1 commit
-
Can happen when there is no DP panel attached, confusing
users. Make it debug only.Signed-off-by: Alex Deucher
Cc: stable@kernel.org
Signed-off-by: Dave Airlie
04 Nov, 2011
1 commit
-
Supposedly both NUTMEG and TRAVIS should use the same
panel mode, but switching the panel mode for TRAVIS
gets things working.Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=41569Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie
02 Nov, 2011
3 commits
-
Use the regular logic for other bridge chips.
Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie -
Return the encoder id rather than a boolean. This is needed
for differentiate between multiple DP bridge chips.Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie -
This should make eDP more reliable.
Signed-off-by: Alex Deucher
Cc: stable@kernel.org
Signed-off-by: Dave Airlie
05 Oct, 2011
1 commit
-
If there are error flags in the aux status, retry the transaction.
This makes aux much more reliable, especially on llano systems.Signed-off-by: Alex Deucher
Reviewed-by: Michel Dänzer
Cc: stable@kernel.org
Signed-off-by: Dave Airlie
04 Oct, 2011
2 commits
-
The previous code could potentially loop forever. Limit
the number of DP aux defer retries to 4 for native aux
transactions, same as i2c over aux transactions.Noticed by: Brad Campbell
Signed-off-by: Alex Deucher
Cc: Brad Campbell
Cc: stable@kernel.org
Signed-off-by: Dave Airlie -
An incorrect ordering in the error checking code lead
to DP aux defer being skipped in the aux native write
path. Move the bytes transferred check (ret == 0)
below the defer check.Tracked down by: Brad Campbell
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=41121Signed-off-by: Alex Deucher
Cc: Brad Campbell
Cc: stable@kernel.org
Signed-off-by: Dave Airlie
15 Aug, 2011
1 commit
-
Attempting to try and turn off disconnected display hw in the
hotput handler lead to more problems than it helped. For
now just register an event and only attempt the do something
interesting with DP. Other connectors are just too problematic:
- Some systems have an HPD pin assigned to LVDS, but it's rarely
if ever connected properly and we don't really care about hpd
events on LVDS anyway since it's always connected.
- The HPD pin is wired up correctly for eDP, but we don't really
have to do anything since the events since it's always connected.
- Some HPD pins fire more than once when you connect/disconnect
- etc.Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=39882Signed-off-by: Alex Deucher
Cc: stable@kernel.org
Signed-off-by: Dave Airlie
26 Jul, 2011
1 commit
-
DPEncoderService newer than 1.1 can't properly program the DP (display port)
link training. When facing such version use the DIGxEncoderControl method
instead. Fix DP link training on some R7XX.Signed-off-by: Jerome Glisse
Reviewed-by: Alex Deucher
Cc: stable@kernel.org
Signed-off-by: Dave Airlie
20 May, 2011
4 commits
-
In the hotplug handler, just use the drm dpms functions.
If the monitor is plugged in, turn it on, if it's not,
turn it off. This also reduces power usage by turning
off the encoder and crtc when the monitor is unplugged.Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie -
- reorganize the functions based on use
- clean up function naming
- rework link training to better match what we use internally
- add initial support for DP 1.2 (no MST yet)Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie -
Required for proper operation with DP bridges.
Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie -
Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie
27 Jan, 2011
1 commit
-
Check if there is a big enough dp clock & enough dp lane to
drive the video mode provided.Signed-off-by: Jerome Glisse
Reviewed-By: Alex Deucher
Cc:
Signed-off-by: Dave Airlie
20 Aug, 2010
1 commit
-
On most newer asics, digital encoders have two links each
and they can be used independantly. As such, treat them as
separate encoders otherwise the individual links will not
get programmed properly at modeset time.Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie
02 Aug, 2010
1 commit
-
This migrates a bunch of DRM_DEBUG->DRM_DEBUG_KMS so we can get more modesetting related info without all the other ioctl handling easily.
Also the PM code moves to DRM_DEBUG_DRIVER mostly.
Signed-off-by: Dave Airlie
19 May, 2010
1 commit
-
- Use radeon hpd enum consistently (in both hotplug and dp)
- Legacy r100 with DVI should be HPD_1 not NONESigned-off-by: Alex Deucher
Signed-off-by: Dave Airlie
31 Mar, 2010
2 commits
-
Seems to have gotten lost in the evergreen merge.
Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie -
Looks like a copy/paste typo from when evergreen support
was added.Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie
26 Feb, 2010
1 commit
-
* korg/drm-radeon-testing: (62 commits)
drm/radeon/kms: update new pll algo
drm/radeon/kms: add support for square microtiles on r3xx-r5xx
drm/radeon/kms: force pinning buffer into visible VRAM
drm/radeon/kms/evergreen: fix typo in cursor code
drm/radeon/kms: implement reading active PCIE lanes on R600+
drm/radeon/kms: for downclocking non-mobility check PERFORMANCE state
drm/radeon/kms: simplify storing current and requested PM mode
drm/radeon: fixes for r6xx/r7xx gfx init
drm/radeon/rv740: fix backend setup
drm/radeon/kms: fix R3XX/R4XX memory controller initialization
[rfc] drm/radeon/kms: pm debugging check for vbl.
drm/radeon: Fix memory allocation failures in the preKMS command stream checking.
drm: Add generic multipart buffer.
drm/radeon/kms: simplify memory controller setup V2
drm/radeon: Add asic hook for dma copy to r200 cards.
drm/radeon/kms: Create asic structure for r300 pcie cards.
drm/radeon/kms: remove unused r600_gart_clear_page
drm/radeon/kms: remove HDP flushes from fence emit (v2)
drm/radeon/kms: add LVDS pll quirk for Dell Studio 15
drm/radeon/kms: simplify picking power state
...Conflicts:
drivers/gpu/drm/radeon/atom.c
drivers/gpu/drm/radeon/atombios.h
drivers/gpu/drm/radeon/atombios_dp.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/r600_audio.c
drivers/gpu/drm/radeon/r600_cp.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_ring.c
drivers/gpu/drm/radeon/rv770.c
15 Feb, 2010
1 commit
-
In testing I've never seen it go past 1 retry anyways but better
safe than sorry.Reported by Droste on irc.
Signed-off-by: Dave Airlie
11 Feb, 2010
1 commit
-
ATOM appears to return 0x20 which seems to mean some sort of timeout.
retry the transaction up to 10 times before failing, this
makes DP->VGA convertor we bought work at least a bit more predictably.Signed-off-by: Dave Airlie
09 Feb, 2010
1 commit
-
This adds initial Evergreen KMS support, it doesn't include
any acceleration features or interrupt handling yet.Major changes are DCE4 handling for PLLs for the > 2 crtcs.
Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie
01 Feb, 2010
2 commits
-
booting a Lenovo W500 with LVDS + DP outputs showed up a TODO we had
on our list, to pick a correct digital encoder block. The LVTMA
encoder requires the second digital encoder, all others can use any
encoder at all.This fixes the digital encoder selection logic to enable LVDS/DP combos
to work okay.V2: fix silly addition of connector dig_block and cleanup the other
places in the code that pick the encoder.V3: rename to dig_encoder and clean up further - also fix
the picking algorithm.tested on Lenovo W500 + desktop 3650 cards.
Signed-off-by: Dave Airlie
-
This makes displayport work again here.
Signed-off-by: Dave Airlie
08 Jan, 2010
1 commit
-
This is displayport used for internal connections such
as laptop panels and systems with integrated monitors.Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie
08 Dec, 2009
5 commits
-
This enabled interrupt driven hpd support for all
radeon chips. Assuming the hpd pin is wired up
correctly, the driver will generate uevents on
digital monitor connect and disconnect and retrain
DP monitors automatically.Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie -
Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie -
only return connected if there is actually a
monitor connected.Signed-off-by: Alex Deucher
Signed-off-by: Dave Airlie -
Signed-off-by: Dave Airlie
-
This fix reorganises the initial DP link training slightly, and
actually makes DP work under kms here.Signed-off-by: Dave Airlie