aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/include
Commit message (Collapse)AuthorAgeFilesLines
...
* drm/amdgpu/display: add support for LVDS (v5)Alex Deucher2018-08-271-0/+5
| | | | | | | | | | | | | This adds support for LVDS displays. v2: add support for spread spectrum, sink detect v3: clean up enable_lvds_output v4: fix up link_detect v5: remove assert on 888 format Bug: https://bugs.freedesktop.org/show_bug.cgi?id=105880 Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Refactor FreeSync moduleAnthony Koo2018-08-271-12/+0
| | | | | | | | | | | Remove dependency on internal sink map and instead use existing stream and plane state Signed-off-by: Anthony Koo <[email protected]> Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: add retimer log for HWQ tuning use.Charlene Liu2018-08-271-1/+2
| | | | | | | Signed-off-by: Charlene Liu <[email protected]> Reviewed-by: Dmytro Laktyushkin <[email protected]> Acked-by: Leo Li <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Set DFS bypass flags for dce110Nicholas Kazlauskas2018-08-271-0/+2
| | | | | | | | | | | | | | | | | | | [Why] While there is support for using and quering DFS bypass clocks the hardware is never notified to enter DFS bypass mode for dce110. [How] Add a flag that can be set when programming the display engine PLL to enable DFS bypass mode. If this flag is set then the hardware is notified to enter DFS bypass mode and the correct display engine clock frequency can be acquired. Signed-off-by: Nicholas Kazlauskas <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Acked-by: Bhawanpreet Lakha <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: add vbios table check for enabling dp ssDmytro Laktyushkin2018-08-061-0/+2
| | | | | | | Signed-off-by: Dmytro Laktyushkin <[email protected]> Reviewed-by: Eric Bernstein <[email protected]> Acked-by: Bhawanpreet Lakha <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: read DP sink and DP branch hardware and firmware revision ↵Alvin lee2018-07-131-0/+3
| | | | | | | | | | | from DPCD - define new dpcd address in drm - implement new members in dpcd_caps to store values read from new dpcd address Signed-off-by: Alvin lee <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Convert remaining loggers off dc_loggerNicholas Kazlauskas2018-07-132-150/+45
| | | | | | | | | | - Removed dal/dm/dc loggers from linux, switched to kernel prints - Modified functions that used these directly to use macros - dc_logger support is completely dropped from Linux Signed-off-by: Nicholas Kazlauskas <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: get board layout for edid emulationSamson Tam2018-07-052-0/+57
| | | | | | | Signed-off-by: Samson Tam <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Define dp_alt_modeCharlene Liu2018-07-051-0/+5
| | | | | | | | | | Also cleanup command_table2.c. No need for a lot of forward declarations. Signed-off-by: Charlene Liu <[email protected]> Reviewed-by: Krunoslav Kovac <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Prefix TIMING_STANDARD entries with DC_Reza Amini2018-06-151-0/+7
| | | | | | | Signed-off-by: Reza Amini <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Default log masks should include all connectivity eventsAric Cyr2018-06-151-0/+2
| | | | | | | | Signed-off-by: Aric Cyr <[email protected]> Reviewed-by: Jun Lei <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: AUX will exit when HPD LOW detectedHersen Wu2018-06-151-1/+2
| | | | | | | | | | This change shorten wait time when HPD LOW. With HPD LOW, without this change, AUX routine delay is 450us. With this change, it is 42us. Signed-off-by: Hersen Wu <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: fix dscl_manual_ratio_initDmytro Laktyushkin2018-05-291-0/+2
| | | | | | | | | | This change will fix wb and display scaling when ratios of 4 or more are involved Signed-off-by: Dmytro Laktyushkin <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Remove use of division operator for long longsDavid Francis2018-05-241-1/+1
| | | | | | | | | | | | | In fixed31_32.h, in dc_fixpt_shl,'/' was used for division of one long long int by another long long int. As there is no inbuilt long long int division function in c, gcc inserted its own. However, gcc does not link the library that contains this function. To avoid this, use bitwise operators instead of / Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: David Francis <[email protected]> Reviewed-by: Dmytro Laktyushkin <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: use macro for logsAnthony Koo2018-05-181-0/+9
| | | | | | | Signed-off-by: Anthony Koo <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: fix a 32 bit shift meant to be 64 warningDmytro Laktyushkin2018-05-181-1/+1
| | | | | | | Signed-off-by: Dmytro Laktyushkin <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: fix 31_32_fixpt shift functionsDmytro Laktyushkin2018-05-181-8/+18
| | | | | | | Signed-off-by: Dmytro Laktyushkin <[email protected]> Reviewed-by: Eric Yang <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: add fixed point fractional bit truncation functionDmytro Laktyushkin2018-05-181-0/+17
| | | | | | | Signed-off-by: Dmytro Laktyushkin <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Make DisplayStats work with just DC DisplayStats minorAnthony Koo2018-05-181-1/+1
| | | | | | | | | | Remove dependency on the old FREESYNC_SW_STATS log mask used by DAL2 Also rename from profiling to displaystats Signed-off-by: Anthony Koo <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: inline more of fixed point codeDmytro Laktyushkin2018-05-181-91/+116
| | | | | | | Signed-off-by: Dmytro Laktyushkin <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: get rid of 32.32 unsigned fixed pointDmytro Laktyushkin2018-05-182-188/+59
| | | | | | | | | 32.32 is redundant, 31.32 does everything we use 32.32 for Signed-off-by: Dmytro Laktyushkin <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/display: fix vega12/20 handling in dal_asic_id.hAlex Deucher2018-05-181-5/+3
| | | | | | | | - Remove unused ASICREV_IS_VEGA12_p() macro - Fix ASICREV_IS_VEGA12_P() macro to properly check against vega20 Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/display: remove VEGA20 config optionAlex Deucher2018-05-181-2/+0
| | | | | | | | Leftover from bringup. No need to keep it around for upstream. Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amdgpu/display: remove VEGAM config optionAlex Deucher2018-05-182-7/+1
| | | | | | | | | Leftover from bringup. No need to keep it around for upstream. Reviewed-by: Harry Wentland <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Remove COMBO_DISPLAY_PLL0 from Vega20Feifei Xu2018-05-171-0/+6
| | | | | | | | Signed-off-by: Jerry (Fangzhi) Zuo <[email protected]> Reviewed-by: Hersen Wu <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Signed-off-by: Feifei Xu <[email protected]>
* drm/amd/display: Add VG12 ASIC IDsHarry Wentland2018-05-151-2/+7
| | | | | | Signed-off-by: Harry Wentland <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Implement VEGAM device IDs in DCJerry (Fangzhi) Zuo2018-05-152-0/+10
| | | | | | | | | | Implement device IDs for VEGAM Signed-off-by: Jerry (Fangzhi) Zuo <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Don't spam debug messagesHarry Wentland2018-05-151-1/+1
| | | | | | Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Leo (Sunpeng) Li <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Do not use os typesAnthony Koo2018-05-151-21/+19
| | | | | | | | Signed-off-by: Anthony Koo <[email protected]> Reviewed-by: Anthony Koo <[email protected]> Reviewed-by: Aric Cyr <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Add Dynamic debug printsBhawanpreet Lakha2018-04-111-32/+32
| | | | | | | | Created Macros for DC_LOG_XXX to pr_debug() & DRM_DEBUG_KMS. Signed-off-by: Bhawanpreet Lakha <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Implement stats loggingAnthony Koo2018-03-141-0/+1
| | | | | | | | | Stats will be used for debug purposes Signed-off-by: Anthony Koo <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: define DC_LOGGER for loggerBhawanpreet Lakha2018-03-051-32/+32
| | | | | | | | | | | | | Created a DC_LOGGER define. This is used to pass the logger into the macros. Anywhere we need to use the logger we need to define DC_LOGGER Signed-off-by: Bhawanpreet Lakha <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Use MACROS instead of dm_loggerBhawanpreet Lakha2018-03-051-0/+33
| | | | | | | | | | Created MACROS for all log levels. Also Replaced usage of dm_logger_write to the defined MACROS Signed-off-by: Bhawanpreet Lakha <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Update Link Training Fallback logicWenjing Liu2018-03-051-1/+4
| | | | | | | | | | | | | | [Description] When CR fails to minimum link rate, we should reduce lane count to the number lowest cr_done lanes. [Code Review] Jun Lei Signed-off-by: Wenjing Liu <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Add missing Vega defines to dal_asic_idHarry Wentland2018-02-191-0/+8
| | | | | | | Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Hersen Wu <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: WBSCL filter init calculation fixesKen Chalmers2018-02-191-0/+3
| | | | | | | | | | | | * Previous code did some calculations with a mix of normal integers and integers aligned as U2.24 fixed-point values. * There were bugs in the conversion of the final result into the S4.19 values required for the registers. Signed-off-by: Ken Chalmers <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Move MAX_TMDS_CLOCK define to headerHarry Wentland2018-02-192-5/+5
| | | | | | | Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Remove grph_object_id.c and move function to bios_parserHarry Wentland2017-12-141-4/+0
| | | | | | | Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Jordan Lazare <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: use clamping rather than truncation for CM fp conversionsDmytro Laktyushkin2017-12-141-2/+2
| | | | | | | Signed-off-by: Dmytro Laktyushkin <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Build unity lut for shaperVitaly Prosyak2017-12-141-0/+7
| | | | | | | | | Add color module to diagnostic compilation Signed-off-by: Vitaly Prosyak <[email protected]> Reviewed-by: Charlene Liu <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Add dm_logger_append_va APIMichel Dänzer2017-12-061-0/+5
| | | | | | | | | | Same as dm_logger_append, except it takes a va_list instead of a variable number of arguments. dm_logger_append is now a minimal wrapper around dm_logger_append_va. Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Michel Dänzer <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Explicit casting for grph object idsHarry Wentland2017-12-041-6/+6
| | | | | | | | C++ compilers don't like the implicit conversion Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Andrey Grodzovsky <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: Clean some unneeded defines from ddc_service_types.hHarry Wentland2017-12-041-33/+0
| | | | | | | | Remove defines we no longer need Signed-off-by: Harry Wentland <[email protected]> Reviewed-by: Andrey Grodzovsky <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* drm/amd/display: add performance trace macro to dcDmytro Laktyushkin2017-10-212-2/+62
| | | | | | | Signed-off-by: Dmytro Laktyushkin <[email protected]> Reviewed-by: Tony Cheng <[email protected]> Acked-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* amdgpu/dc: fix a bunch of misc whitespace.Dave Airlie2017-10-061-10/+10
| | | | | | | | This just aligns a few things with kernel style. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* amdgpu/dc: drop hw_sequencer_types.hDave Airlie2017-10-061-33/+0
| | | | | | | | This isn't used or required. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* amdgpu/dc: inline dal grph object id functions.Dave Airlie2017-10-061-16/+54
| | | | | | | | This is worth 400 bytes. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* amdgpu/dc: inline all the signal_types code.Dave Airlie2017-09-291-8/+51
| | | | | | | | This is worth 300 bytes, and one less source file. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* amdgpu/dc: inline fixed31_32 div_intDave Airlie2017-09-291-3/+6
| | | | | | Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
* amdgpu/dc: use the builtin constant p trick on the 31/32 fixed point.Dave Airlie2017-09-291-2/+13
| | | | | | | | This only gets us 100 bytes, but may as well be consistent. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>