aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_sdvo.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-07-18 15:46:24 -0400
committerDave Airlie <airlied@redhat.com>2018-07-18 15:46:30 -0400
commit539c475dadc430bd0f1601902fcacc1e55ffe85a (patch)
tree6dc3e9ca56165cb46baa84febcb885ed52452cf2 /drivers/gpu/drm/i915/intel_sdvo.c
parent0c2fd59ae315e28f8868edf80df21a502f933fec (diff)
parent82edc7e8b8c06151bdc653935bc13b83e2f0fcfa (diff)
Merge tag 'drm-intel-next-2018-07-09' of git://anongit.freedesktop.org/drm/drm-intel into drm-next
Higlights here goes to many PSR fixes and improvements; to the Ice lake work with power well support and begin of DSI support addition. Also there were many improvements on execlists and interrupts for minimal latency on command submission; and many fixes on selftests, mostly caught by our CI. General driver: - Clean-up on aux irq (Lucas) - Mark expected switch fall-through for dealing with static analysis tools (Gustavo) Gem: - Different fixes for GuC (Chris, Anusha, Michal) - Avoid self-relocation BIAS if no relocation (Chris) - Improve debugging cases in on EINVAL return and vma allocation (Chris) - Fixes and improvements on context destroying and freeing (Chris) - Wait for engines to idle before retiring (Chris) - Many improvements on execlists and interrupts for minimal latency on command submission (Chris) - Many fixes in selftests, specially on cases highlighted on CI (Chris) - Other fixes and improvements around GGTT (Chris) - Prevent background reaping of active objects (Chris) Display: - Parallel modeset cleanup to fix driver reset (Chris) - Get AUX power domain for DP main link (Imre) - Clean-up on PSR unused func pointers (Rodrigo) - Many PSR/PSR2 fixes and improvements (DK, Jose, Tarun) - Add a PSR1 live status (Vathsala) - Replace old drm_*_{un/reference} with put,get functions (Thomas) - FBC fixes (Maarten) - Abstract and document the usage of picking macros (Jani) - Remove unnecessary check for unsupported modifiers for NV12. (DK) - Interrupt fixes for display (Ville) - Clean up on sdvo code (Ville) - Clean up on current DSI code (Jani) - Remove support for legacy debugfs crc interface (Maarten) - Simplify get_encoder_power_domains (Imre) Icelake: - MG PLL fixes (Imre) - Add hw workaround for alpha blending (Vandita) - Add power well support (Imre) - Add Interrupt Support (Anusha) - Start to add support for DSI on Ice Lake (Madhav) Signed-off-by: Dave Airlie <airlied@redhat.com> # gpg: Signature made Tue 10 Jul 2018 08:41:37 AM AEST # gpg: using RSA key FA625F640EEB13CA # gpg: Good signature from "Rodrigo Vivi <rodrigo.vivi@intel.com>" # gpg: aka "Rodrigo Vivi <rodrigo.vivi@gmail.com>" # gpg: WARNING: This key is not certified with a trusted signature! # gpg: There is no indication that the signature belongs to the owner. # Primary key fingerprint: 6D20 7068 EEDD 6509 1C2C E2A3 FA62 5F64 0EEB 13CA Link: https://patchwork.freedesktop.org/patch/msgid/20180710234349.GA16562@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sdvo.c')
-rw-r--r--drivers/gpu/drm/i915/intel_sdvo.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
index e6a64b3ecd91..396cb59ca4b8 100644
--- a/drivers/gpu/drm/i915/intel_sdvo.c
+++ b/drivers/gpu/drm/i915/intel_sdvo.c
@@ -1340,6 +1340,7 @@ static void intel_sdvo_pre_enable(struct intel_encoder *intel_encoder,
1340 switch (crtc_state->pixel_multiplier) { 1340 switch (crtc_state->pixel_multiplier) {
1341 default: 1341 default:
1342 WARN(1, "unknown pixel multiplier specified\n"); 1342 WARN(1, "unknown pixel multiplier specified\n");
1343 /* fall through */
1343 case 1: rate = SDVO_CLOCK_RATE_MULT_1X; break; 1344 case 1: rate = SDVO_CLOCK_RATE_MULT_1X; break;
1344 case 2: rate = SDVO_CLOCK_RATE_MULT_2X; break; 1345 case 2: rate = SDVO_CLOCK_RATE_MULT_2X; break;
1345 case 4: rate = SDVO_CLOCK_RATE_MULT_4X; break; 1346 case 4: rate = SDVO_CLOCK_RATE_MULT_4X; break;
@@ -1400,10 +1401,7 @@ static bool intel_sdvo_connector_get_hw_state(struct intel_connector *connector)
1400 1401
1401 intel_sdvo_get_active_outputs(intel_sdvo, &active_outputs); 1402 intel_sdvo_get_active_outputs(intel_sdvo, &active_outputs);
1402 1403
1403 if (active_outputs & intel_sdvo_connector->output_flag) 1404 return active_outputs & intel_sdvo_connector->output_flag;
1404 return true;
1405 else
1406 return false;
1407} 1405}
1408 1406
1409bool intel_sdvo_port_enabled(struct drm_i915_private *dev_priv, 1407bool intel_sdvo_port_enabled(struct drm_i915_private *dev_priv,
@@ -2316,14 +2314,19 @@ intel_sdvo_guess_ddc_bus(struct intel_sdvo *sdvo)
2316 switch (sdvo->controlled_output) { 2314 switch (sdvo->controlled_output) {
2317 case SDVO_OUTPUT_LVDS1: 2315 case SDVO_OUTPUT_LVDS1:
2318 mask |= SDVO_OUTPUT_LVDS1; 2316 mask |= SDVO_OUTPUT_LVDS1;
2317 /* fall through */
2319 case SDVO_OUTPUT_LVDS0: 2318 case SDVO_OUTPUT_LVDS0:
2320 mask |= SDVO_OUTPUT_LVDS0; 2319 mask |= SDVO_OUTPUT_LVDS0;
2320 /* fall through */
2321 case SDVO_OUTPUT_TMDS1: 2321 case SDVO_OUTPUT_TMDS1:
2322 mask |= SDVO_OUTPUT_TMDS1; 2322 mask |= SDVO_OUTPUT_TMDS1;
2323 /* fall through */
2323 case SDVO_OUTPUT_TMDS0: 2324 case SDVO_OUTPUT_TMDS0:
2324 mask |= SDVO_OUTPUT_TMDS0; 2325 mask |= SDVO_OUTPUT_TMDS0;
2326 /* fall through */
2325 case SDVO_OUTPUT_RGB1: 2327 case SDVO_OUTPUT_RGB1:
2326 mask |= SDVO_OUTPUT_RGB1; 2328 mask |= SDVO_OUTPUT_RGB1;
2329 /* fall through */
2327 case SDVO_OUTPUT_RGB0: 2330 case SDVO_OUTPUT_RGB0:
2328 mask |= SDVO_OUTPUT_RGB0; 2331 mask |= SDVO_OUTPUT_RGB0;
2329 break; 2332 break;