diff options
author | Hans de Goede <hdegoede@redhat.com> | 2019-05-24 19:40:27 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2019-06-05 18:24:00 +0200 |
commit | 2c1c55252647abd989b94f725b190c700312d053 (patch) | |
tree | 5bea89f359e9a8b09f1584ed8bf0dd33357d2292 /drivers/gpu/drm/i915/intel_display.c | |
parent | f41c615310d2f4f20f6259ae254bc058f61ced6d (diff) | |
download | linux-stable-2c1c55252647abd989b94f725b190c700312d053.tar.gz linux-stable-2c1c55252647abd989b94f725b190c700312d053.tar.bz2 linux-stable-2c1c55252647abd989b94f725b190c700312d053.zip |
drm/i915/dsi: Use a fuzzy check for burst mode clock check
Prior to this commit we fail to init the DSI panel on the GPD MicroPC:
https://www.indiegogo.com/projects/gpd-micropc-6-inch-handheld-industry-laptop#/
The problem is intel_dsi_vbt_init() failing with the following error:
*ERROR* Burst mode freq is less than computed
The pclk in the VBT panel modeline is 70000, together with 24 bpp and
4 lines this results in a bitrate value of 70000 * 24 / 4 = 420000.
But the target_burst_mode_freq in the VBT is 418000.
This commit works around this problem by adding an intel_fuzzy_clock_check
when target_burst_mode_freq < bitrate and setting target_burst_mode_freq to
bitrate when that checks succeeds, fixing the panel not working.
Cc: stable@vger.kernel.org
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190524174028.21659-2-hdegoede@redhat.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 122a075b6174..1560030563b6 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -12163,7 +12163,7 @@ encoder_retry: return 0; } -static bool intel_fuzzy_clock_check(int clock1, int clock2) +bool intel_fuzzy_clock_check(int clock1, int clock2) { int diff; |