linux/drivers/gpu/drm/i915/display
Ville Syrjälä 56e9371bc3 drm/i915: Deal with machines that expose less than three QGV points
When SAGV is forced to disabled/min/med/max in the BIOS pcode will
only hand us a single QGV point instead of the normal three. Fix
the code to deal with that instead declaring the bandwidth limit
to be 0 MB/s (and thus preventing any planes from being enabled).

Also shrink the max_bw sturct a bit while at it, and change the
deratedbw type to unsigned since the code returns the bw as
an unsigned int.

Since we now keep track of how many qgv points we got from pcode
we can drop the earlier check added for the "pcode doesn't
support the memory subsystem query" case.

Cc: felix.j.degrood@intel.com
Cc: Mark Janes <mark.a.janes@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Clint Taylor <Clinton.A.Taylor@intel.com>
Fixes: c457d9cf25 ("drm/i915: Make sure we have enough memory bandwidth on ICL")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110838
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190606124210.3482-1-ville.syrjala@linux.intel.com
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
2019-07-03 21:30:20 +03:00
..
dvo_ch7xxx.c
dvo_ch7017.c
dvo_ivch.c
dvo_ns2501.c
dvo_sil164.c
dvo_tfp410.c
icl_dsi.c drm/i915/ehl/dsi: Enable AFE over PPI strap 2019-06-20 13:18:04 -07:00
intel_acpi.c
intel_acpi.h
intel_atomic_plane.c drm/i915: Pass intel state to plane functions as well 2019-07-01 10:32:45 +02:00
intel_atomic_plane.h drm/i915: Pass intel state to plane functions as well 2019-07-01 10:32:45 +02:00
intel_atomic.c
intel_atomic.h
intel_audio.c
intel_audio.h
intel_bios.c drm/i915/ehl: Allow combo PHY A to drive a third external display 2019-06-19 11:28:02 -07:00
intel_bios.h drm/i915: Check backlight type while doing eDP backlight initializaiton 2019-06-26 17:48:12 +03:00
intel_bw.c drm/i915: Deal with machines that expose less than three QGV points 2019-07-03 21:30:20 +03:00
intel_bw.h
intel_cdclk.c drm/i915/ehl: Add voltage level requirement table 2019-06-26 12:01:54 -07:00
intel_cdclk.h
intel_color.c
intel_color.h
intel_combo_phy.c drm/i915/ehl: Don't program PHY_MISC on EHL PHY C 2019-07-01 08:28:15 -07:00
intel_combo_phy.h
intel_connector.c
intel_connector.h
intel_crt.c
intel_crt.h
intel_ddi.c drm/i915/icl: Drop port parameter to icl_get_combo_buf_trans() 2019-07-01 08:28:15 -07:00
intel_ddi.h
intel_display_power.c drm/i915: synchronize_irq() against the actual irq 2019-07-03 10:07:13 +01:00
intel_display_power.h
intel_display.c drm/i915: Keep the TypeC port mode fixed when the port is active 2019-07-01 15:02:34 +03:00
intel_display.h drm/i915: Sanitize the terminology used for TypeC port modes 2019-07-01 14:49:40 +03:00
intel_dp_aux_backlight.c drm/i915: Check backlight type while doing eDP backlight initializaiton 2019-06-26 17:48:12 +03:00
intel_dp_aux_backlight.h
intel_dp_link_training.c
intel_dp_link_training.h
intel_dp_mst.c
intel_dp_mst.h drm/i915: Fix the TypeC port mode sanitization during loading/resume 2019-07-01 14:50:25 +03:00
intel_dp.c drm/i915: Keep the TypeC port mode fixed for detect/AUX transfers 2019-07-01 14:50:29 +03:00
intel_dp.h drm/i915: Move the TypeC port handling code to a separate file 2019-07-01 14:48:46 +03:00
intel_dpio_phy.c
intel_dpio_phy.h
intel_dpll_mgr.c drm/i915/display: Handle lost primary_port across suspend 2019-07-03 10:09:58 +01:00
intel_dpll_mgr.h drm/i915: Keep the TypeC port mode fixed when the port is active 2019-07-01 15:02:34 +03:00
intel_dsi_dcs_backlight.c
intel_dsi_dcs_backlight.h
intel_dsi_vbt.c
intel_dsi.c
intel_dsi.h
intel_dvo_dev.h
intel_dvo.c
intel_dvo.h
intel_fbc.c
intel_fbc.h
intel_fbdev.c
intel_fbdev.h
intel_fifo_underrun.c
intel_fifo_underrun.h
intel_frontbuffer.c
intel_frontbuffer.h
intel_gmbus.c drm/i915/ehl: Introduce Mule Creek Canyon PCH 2019-06-17 13:40:20 -07:00
intel_gmbus.h
intel_hdcp.c
intel_hdcp.h
intel_hdmi.c drm/i915/ehl: Introduce Mule Creek Canyon PCH 2019-06-17 13:40:20 -07:00
intel_hdmi.h
intel_hotplug.c
intel_hotplug.h
intel_lpe_audio.c
intel_lpe_audio.h
intel_lspcon.c
intel_lspcon.h
intel_lvds.c
intel_lvds.h
intel_opregion.c
intel_opregion.h
intel_overlay.c
intel_overlay.h
intel_panel.c
intel_panel.h
intel_pipe_crc.c drm/i915: synchronize_irq() against the actual irq 2019-07-03 10:07:13 +01:00
intel_pipe_crc.h
intel_psr.c drm/i915/psr: Force manual PSR exit in older gens 2019-06-18 12:33:14 -07:00
intel_psr.h
intel_quirks.c
intel_quirks.h
intel_sdvo_regs.h
intel_sdvo.c
intel_sdvo.h
intel_sprite.c
intel_sprite.h
intel_tc.c drm/i915: Remove unneeded disconnect in TypeC legacy port mode 2019-07-01 15:06:32 +03:00
intel_tc.h drm/i915: Remove unneeded disconnect in TypeC legacy port mode 2019-07-01 15:06:32 +03:00
intel_tv.c
intel_tv.h
intel_vbt_defs.h drm/i915/ehl: Introduce Mule Creek Canyon PCH 2019-06-17 13:40:20 -07:00
intel_vdsc.c
intel_vdsc.h
Makefile drm/i915: add header search path to subdir Makefiles 2019-06-27 10:25:48 +03:00
Makefile.header-test
vlv_dsi_pll.c
vlv_dsi.c