Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1652398pxb; Fri, 20 Aug 2021 10:28:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2877I6gzyP+GKvzgSLYcngg/q0z9jaxmPV8ljimhjmueg9bSrEJL3KckmPZ/wYlaiRWLv X-Received: by 2002:a05:6402:35c9:: with SMTP id z9mr23557523edc.249.1629480537769; Fri, 20 Aug 2021 10:28:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629480537; cv=none; d=google.com; s=arc-20160816; b=sGu/c8qT36xMrUsmrd+GhRAQx7R83sczRnb1VeuRnFX7xqnHGasMZHhvFV+YRLBFrR +Id6kH33nmA14ErLXH1UPdiRHGyfqW2DGb/IUFZ4E0PKKI9BsZ1Ny107WrbSPZur1cVm Ns4PQur+N9HaJIIh7zvBfpDB9sbs+iKQFB+BU8QYfLaI4oZzWki0D5HzgdX+Euu3YSsR SaDPXAWnjTgXxb3athgp9KyJUh0eEvfI92oIrQIfQlHmqS3wWiaIxwWfL2srgjq6O2km dQSlauJQlJQUnv/iqiulRbcUwUslChz/tHII8txT+bC05vmAkJArz3Rhz2Ldjx/IEZcp jfQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7a2J1R412I39fuVAx1F98dPrV/HdGBFsNQMZEih1JrQ=; b=Yge5O+R984p5M93AzJcXj7EfjMlPE6wK9YqA1QaBIOBY5x1uJ7LNONDGhYM1znMnG0 YkfYkp2//XUf4n0PtJMPm2JigHlpkHvXDZF9IhILgCgMcjQzS6lf9N9n82S6MlzX50R3 Z4fGAl2Nr17nhBYKGLi7HLXRs2SZXwnCrDVTsZ1nCqQy8XjzscugduxtqBfyuI2Q2acf 65kGW8/Rmpe7Bw4bJnWjoz79LnoLqkIq+pifZIszbGRehjFxS3VtVYz4UlU4kHqseW1Y watYuPWF0e4frPtDUtXwiYiBTiaCyA5EvQJwR9d2uKBMhu5xYHuezOoj9bXqganqDHPd PSYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i17si7268246ejd.15.2021.08.20.10.28.33; Fri, 20 Aug 2021 10:28:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234148AbhHTR1A (ORCPT + 99 others); Fri, 20 Aug 2021 13:27:00 -0400 Received: from mga17.intel.com ([192.55.52.151]:61220 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230151AbhHTR1A (ORCPT ); Fri, 20 Aug 2021 13:27:00 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10082"; a="197066296" X-IronPort-AV: E=Sophos;i="5.84,338,1620716400"; d="scan'208";a="197066296" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2021 10:26:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,338,1620716400"; d="scan'208";a="463445143" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.171]) by orsmga007.jf.intel.com with SMTP; 20 Aug 2021 10:26:15 -0700 Received: by stinkbox (sSMTP sendmail emulation); Fri, 20 Aug 2021 20:26:14 +0300 Date: Fri, 20 Aug 2021 20:26:14 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Kai-Heng Feng Cc: jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, David Airlie , Daniel Vetter , Imre Deak , Uma Shankar , Manasi Navare , Ankit Nautiyal , =?iso-8859-1?Q?Jos=E9?= Roberto de Souza , Sean Paul , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] drm/i915/dp: Use max params for panels < eDP 1.4 Message-ID: References: <20210820075301.693099-1-kai.heng.feng@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210820075301.693099-1-kai.heng.feng@canonical.com> X-Patchwork-Hint: comment Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 20, 2021 at 03:52:59PM +0800, Kai-Heng Feng wrote: > Users reported that after commit 2bbd6dba84d4 ("drm/i915: Try to use > fast+narrow link on eDP again and fall back to the old max strategy on > failure"), the screen starts to have wobbly effect. > > Commit a5c936add6a2 ("drm/i915/dp: Use slow and wide link training for > everything") doesn't help either, that means the affected eDP 1.2 panels > only work with max params. > > So use max params for panels < eDP 1.4 as Windows does to solve the > issue. > > v3: > - Do the eDP rev check in intel_edp_init_dpcd() > > v2: > - Check eDP 1.4 instead of DPCD 1.1 to apply max params > > Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/3714 > Fixes: 2bbd6dba84d4 ("drm/i915: Try to use fast+narrow link on eDP again and fall back to the old max strategy on failure") > Fixes: a5c936add6a2 ("drm/i915/dp: Use slow and wide link training for everything") > Suggested-by: Ville Syrj?l? > Signed-off-by: Kai-Heng Feng Slapped a cc:stable on it and pushed to drm-intel-next. Thanks. > --- > drivers/gpu/drm/i915/display/intel_dp.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c > index 75d4ebc669411..e0dbd35ae7bc0 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.c > +++ b/drivers/gpu/drm/i915/display/intel_dp.c > @@ -2445,11 +2445,14 @@ intel_edp_init_dpcd(struct intel_dp *intel_dp) > */ > if (drm_dp_dpcd_read(&intel_dp->aux, DP_EDP_DPCD_REV, > intel_dp->edp_dpcd, sizeof(intel_dp->edp_dpcd)) == > - sizeof(intel_dp->edp_dpcd)) > + sizeof(intel_dp->edp_dpcd)) { > drm_dbg_kms(&dev_priv->drm, "eDP DPCD: %*ph\n", > (int)sizeof(intel_dp->edp_dpcd), > intel_dp->edp_dpcd); > > + intel_dp->use_max_params = intel_dp->edp_dpcd[0] < DP_EDP_14; > + } > + > /* > * This has to be called after intel_dp->edp_dpcd is filled, PSR checks > * for SET_POWER_CAPABLE bit in intel_dp->edp_dpcd[1] > -- > 2.32.0 -- Ville Syrj?l? Intel