* [Intel-gfx] [PATCH] drm/i915/display/vrr: Reset VRR capable property on a long hpd
@ 2022-01-12 19:57 Manasi Navare
2022-01-12 20:06 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Manasi Navare @ 2022-01-12 19:57 UTC (permalink / raw)
To: intel-gfx
With some VRR panels, user can turn VRR ON/OFF on the fly from the panel settings.
When VRR is turned OFF ,sends a long HPD to the driver clearing the Ignore MSA bit
in the DPCD. Currently the driver parses that onevery HPD but fails to reset
the corresponding VRR Capable Connector property.
Hence the userspace still sees this as VRR Capable panel which is incorrect.
Fix this by explicitly resetting the connector property.
Signed-off-by: Manasi Navare <manasi.d.navare@intel.com>
---
drivers/gpu/drm/i915/display/intel_dp.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
index df2a7d86aef0..4f1418f02b76 100644
--- a/drivers/gpu/drm/i915/display/intel_dp.c
+++ b/drivers/gpu/drm/i915/display/intel_dp.c
@@ -4539,15 +4539,24 @@ static int intel_dp_get_modes(struct drm_connector *connector)
{
struct intel_connector *intel_connector = to_intel_connector(connector);
struct edid *edid;
+ struct drm_i915_private *dev_priv = to_i915(connector->dev);
int num_modes = 0;
edid = intel_connector->detect_edid;
if (edid) {
num_modes = intel_connector_update_modes(connector, edid);
- if (intel_vrr_is_capable(connector))
+ if (intel_vrr_is_capable(connector)) {
+ drm_dbg_kms(&dev_priv->drm, "VRR capable = TRUE for [CONNECTOR:%d:%s]\n",
+ connector->base.id, connector->name);
drm_connector_set_vrr_capable_property(connector,
true);
+ } else {
+ drm_dbg_kms(&dev_priv->drm, "VRR capable = false for [CONNECTOR:%d:%s]\n",
+ connector->base.id, connector->name);
+ drm_connector_set_vrr_capable_property(connector,
+ false);
+ }
}
/* Also add fixed mode, which may or may not be present in EDID */
--
2.19.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915/display/vrr: Reset VRR capable property on a long hpd 2022-01-12 19:57 [Intel-gfx] [PATCH] drm/i915/display/vrr: Reset VRR capable property on a long hpd Manasi Navare @ 2022-01-12 20:06 ` Patchwork 2022-01-12 20:37 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork 2022-01-14 12:33 ` [Intel-gfx] [PATCH] " Jani Nikula 2 siblings, 0 replies; 5+ messages in thread From: Patchwork @ 2022-01-12 20:06 UTC (permalink / raw) To: Manasi Navare; +Cc: intel-gfx == Series Details == Series: drm/i915/display/vrr: Reset VRR capable property on a long hpd URL : https://patchwork.freedesktop.org/series/98801/ State : warning == Summary == $ dim checkpatch origin/drm-tip 519ba5ebf257 drm/i915/display/vrr: Reset VRR capable property on a long hpd -:7: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line) #7: With some VRR panels, user can turn VRR ON/OFF on the fly from the panel settings. total: 0 errors, 1 warnings, 0 checks, 25 lines checked ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915/display/vrr: Reset VRR capable property on a long hpd 2022-01-12 19:57 [Intel-gfx] [PATCH] drm/i915/display/vrr: Reset VRR capable property on a long hpd Manasi Navare 2022-01-12 20:06 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork @ 2022-01-12 20:37 ` Patchwork 2022-01-14 12:33 ` [Intel-gfx] [PATCH] " Jani Nikula 2 siblings, 0 replies; 5+ messages in thread From: Patchwork @ 2022-01-12 20:37 UTC (permalink / raw) To: Manasi Navare; +Cc: intel-gfx [-- Attachment #1: Type: text/plain, Size: 5355 bytes --] == Series Details == Series: drm/i915/display/vrr: Reset VRR capable property on a long hpd URL : https://patchwork.freedesktop.org/series/98801/ State : success == Summary == CI Bug Log - changes from CI_DRM_11075 -> Patchwork_21985 ==================================================== Summary ------- **SUCCESS** No regressions found. External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21985/index.html Participating hosts (44 -> 34) ------------------------------ Missing (10): fi-cml-u2 fi-icl-u2 fi-bsw-cyan fi-apl-guc fi-ilk-650 fi-kbl-7500u fi-cfl-8109u fi-pnv-d510 fi-bsw-kefka fi-skl-6600u Known issues ------------ Here are the changes found in Patchwork_21985 that come from known issues: ### IGT changes ### #### Issues hit #### * igt@i915_selftest@live@hangcheck: - bat-dg1-5: NOTRUN -> [DMESG-FAIL][1] ([i915#4494]) [1]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21985/bat-dg1-5/igt@i915_selftest@live@hangcheck.html * igt@i915_selftest@live@hugepages: - bat-adlp-4: [PASS][2] -> [DMESG-WARN][3] ([i915#1888]) [2]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11075/bat-adlp-4/igt@i915_selftest@live@hugepages.html [3]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21985/bat-adlp-4/igt@i915_selftest@live@hugepages.html * igt@i915_selftest@live@late_gt_pm: - fi-bsw-n3050: [PASS][4] -> [DMESG-FAIL][5] ([i915#2927] / [i915#3428]) [4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11075/fi-bsw-n3050/igt@i915_selftest@live@late_gt_pm.html [5]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21985/fi-bsw-n3050/igt@i915_selftest@live@late_gt_pm.html * igt@runner@aborted: - fi-bdw-5557u: NOTRUN -> [FAIL][6] ([i915#2426] / [i915#4312]) [6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21985/fi-bdw-5557u/igt@runner@aborted.html - fi-bsw-n3050: NOTRUN -> [FAIL][7] ([fdo#109271] / [i915#1436] / [i915#3428] / [i915#4312]) [7]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21985/fi-bsw-n3050/igt@runner@aborted.html #### Possible fixes #### * igt@core_auth@basic-auth: - {bat-jsl-2}: [DMESG-WARN][8] ([i915#4562]) -> [PASS][9] [8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11075/bat-jsl-2/igt@core_auth@basic-auth.html [9]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21985/bat-jsl-2/igt@core_auth@basic-auth.html * igt@gem_exec_suspend@basic-s3@smem: - fi-bdw-5557u: [INCOMPLETE][10] ([i915#146]) -> [PASS][11] [10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11075/fi-bdw-5557u/igt@gem_exec_suspend@basic-s3@smem.html [11]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21985/fi-bdw-5557u/igt@gem_exec_suspend@basic-s3@smem.html * igt@i915_selftest@live@gt_engines: - bat-dg1-5: [INCOMPLETE][12] ([i915#4418]) -> [PASS][13] [12]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11075/bat-dg1-5/igt@i915_selftest@live@gt_engines.html [13]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21985/bat-dg1-5/igt@i915_selftest@live@gt_engines.html * igt@i915_selftest@live@hangcheck: - {fi-ehl-2}: [DMESG-FAIL][14] -> [PASS][15] [14]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11075/fi-ehl-2/igt@i915_selftest@live@hangcheck.html [15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21985/fi-ehl-2/igt@i915_selftest@live@hangcheck.html * igt@i915_selftest@live@hugepages: - {bat-adlp-6}: [DMESG-WARN][16] ([i915#1888]) -> [PASS][17] [16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11075/bat-adlp-6/igt@i915_selftest@live@hugepages.html [17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21985/bat-adlp-6/igt@i915_selftest@live@hugepages.html {name}: This element is suppressed. This means it is ignored when computing the status of the difference (SUCCESS, WARNING, or FAILURE). [fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271 [i915#1436]: https://gitlab.freedesktop.org/drm/intel/issues/1436 [i915#146]: https://gitlab.freedesktop.org/drm/intel/issues/146 [i915#1888]: https://gitlab.freedesktop.org/drm/intel/issues/1888 [i915#2426]: https://gitlab.freedesktop.org/drm/intel/issues/2426 [i915#2927]: https://gitlab.freedesktop.org/drm/intel/issues/2927 [i915#3428]: https://gitlab.freedesktop.org/drm/intel/issues/3428 [i915#4312]: https://gitlab.freedesktop.org/drm/intel/issues/4312 [i915#4418]: https://gitlab.freedesktop.org/drm/intel/issues/4418 [i915#4494]: https://gitlab.freedesktop.org/drm/intel/issues/4494 [i915#4562]: https://gitlab.freedesktop.org/drm/intel/issues/4562 [i915#4897]: https://gitlab.freedesktop.org/drm/intel/issues/4897 Build changes ------------- * Linux: CI_DRM_11075 -> Patchwork_21985 CI-20190529: 20190529 CI_DRM_11075: 9b371f79eeb9a3867d2483e4038f22f89a854886 @ git://anongit.freedesktop.org/gfx-ci/linux IGT_6326: ec75f64fcbcf4aac58fbf1bf629e8f59b19db4ce @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git Patchwork_21985: 519ba5ebf2570b540d6ffcbb311460e7d7b1eb1a @ git://anongit.freedesktop.org/gfx-ci/linux == Linux commits == 519ba5ebf257 drm/i915/display/vrr: Reset VRR capable property on a long hpd == Logs == For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_21985/index.html [-- Attachment #2: Type: text/html, Size: 6333 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915/display/vrr: Reset VRR capable property on a long hpd 2022-01-12 19:57 [Intel-gfx] [PATCH] drm/i915/display/vrr: Reset VRR capable property on a long hpd Manasi Navare 2022-01-12 20:06 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork 2022-01-12 20:37 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork @ 2022-01-14 12:33 ` Jani Nikula 2022-01-26 18:32 ` Navare, Manasi 2 siblings, 1 reply; 5+ messages in thread From: Jani Nikula @ 2022-01-14 12:33 UTC (permalink / raw) To: Manasi Navare, intel-gfx On Wed, 12 Jan 2022, Manasi Navare <manasi.d.navare@intel.com> wrote: > With some VRR panels, user can turn VRR ON/OFF on the fly from the panel settings. > When VRR is turned OFF ,sends a long HPD to the driver clearing the Ignore MSA bit > in the DPCD. Currently the driver parses that onevery HPD but fails to reset > the corresponding VRR Capable Connector property. > Hence the userspace still sees this as VRR Capable panel which is incorrect. > > Fix this by explicitly resetting the connector property. > > Signed-off-by: Manasi Navare <manasi.d.navare@intel.com> > --- > drivers/gpu/drm/i915/display/intel_dp.c | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c > index df2a7d86aef0..4f1418f02b76 100644 > --- a/drivers/gpu/drm/i915/display/intel_dp.c > +++ b/drivers/gpu/drm/i915/display/intel_dp.c > @@ -4539,15 +4539,24 @@ static int intel_dp_get_modes(struct drm_connector *connector) > { > struct intel_connector *intel_connector = to_intel_connector(connector); > struct edid *edid; > + struct drm_i915_private *dev_priv = to_i915(connector->dev); Please call it "i915" for new stuff. > int num_modes = 0; > > edid = intel_connector->detect_edid; > if (edid) { > num_modes = intel_connector_update_modes(connector, edid); > > - if (intel_vrr_is_capable(connector)) > + if (intel_vrr_is_capable(connector)) { > + drm_dbg_kms(&dev_priv->drm, "VRR capable = TRUE for [CONNECTOR:%d:%s]\n", > + connector->base.id, connector->name); > drm_connector_set_vrr_capable_property(connector, > true); > + } else { > + drm_dbg_kms(&dev_priv->drm, "VRR capable = false for [CONNECTOR:%d:%s]\n", > + connector->base.id, connector->name); > + drm_connector_set_vrr_capable_property(connector, > + false); > + } Please don't repeat yourself! Also, prefer having [CONNECTOR:%d:%s] at the beginning. bool capable = intel_vrr_is_capable(connector); drm_dbg_kms(&i915->drm, "[CONNECTOR:%d:%s] VRR capable: %s\n", connector->base.id, connector->name, yesno(capable)); drm_connector_set_vrr_capable_property(connector, capable); BR, Jani. > } > > /* Also add fixed mode, which may or may not be present in EDID */ -- Jani Nikula, Intel Open Source Graphics Center ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Intel-gfx] [PATCH] drm/i915/display/vrr: Reset VRR capable property on a long hpd 2022-01-14 12:33 ` [Intel-gfx] [PATCH] " Jani Nikula @ 2022-01-26 18:32 ` Navare, Manasi 0 siblings, 0 replies; 5+ messages in thread From: Navare, Manasi @ 2022-01-26 18:32 UTC (permalink / raw) To: Jani Nikula; +Cc: intel-gfx On Fri, Jan 14, 2022 at 02:33:29PM +0200, Jani Nikula wrote: > On Wed, 12 Jan 2022, Manasi Navare <manasi.d.navare@intel.com> wrote: > > With some VRR panels, user can turn VRR ON/OFF on the fly from the panel settings. > > When VRR is turned OFF ,sends a long HPD to the driver clearing the Ignore MSA bit > > in the DPCD. Currently the driver parses that onevery HPD but fails to reset > > the corresponding VRR Capable Connector property. > > Hence the userspace still sees this as VRR Capable panel which is incorrect. > > > > Fix this by explicitly resetting the connector property. > > > > Signed-off-by: Manasi Navare <manasi.d.navare@intel.com> > > --- > > drivers/gpu/drm/i915/display/intel_dp.c | 11 ++++++++++- > > 1 file changed, 10 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c > > index df2a7d86aef0..4f1418f02b76 100644 > > --- a/drivers/gpu/drm/i915/display/intel_dp.c > > +++ b/drivers/gpu/drm/i915/display/intel_dp.c > > @@ -4539,15 +4539,24 @@ static int intel_dp_get_modes(struct drm_connector *connector) > > { > > struct intel_connector *intel_connector = to_intel_connector(connector); > > struct edid *edid; > > + struct drm_i915_private *dev_priv = to_i915(connector->dev); > > Please call it "i915" for new stuff. Okay yes will change this to i915 > > > int num_modes = 0; > > > > edid = intel_connector->detect_edid; > > if (edid) { > > num_modes = intel_connector_update_modes(connector, edid); > > > > - if (intel_vrr_is_capable(connector)) > > + if (intel_vrr_is_capable(connector)) { > > + drm_dbg_kms(&dev_priv->drm, "VRR capable = TRUE for [CONNECTOR:%d:%s]\n", > > + connector->base.id, connector->name); > > drm_connector_set_vrr_capable_property(connector, > > true); > > + } else { > > + drm_dbg_kms(&dev_priv->drm, "VRR capable = false for [CONNECTOR:%d:%s]\n", > > + connector->base.id, connector->name); > > + drm_connector_set_vrr_capable_property(connector, > > + false); > > + } > > Please don't repeat yourself! Also, prefer having [CONNECTOR:%d:%s] at > the beginning. > > bool capable = intel_vrr_is_capable(connector); > > drm_dbg_kms(&i915->drm, "[CONNECTOR:%d:%s] VRR capable: %s\n", > connector->base.id, connector->name, yesno(capable)); > drm_connector_set_vrr_capable_property(connector, capable); Okay agree, thanks for the suggestion, will change in the v2 and resend Regards Manasi > > BR, > Jani. > > > > } > > > > /* Also add fixed mode, which may or may not be present in EDID */ > > -- > Jani Nikula, Intel Open Source Graphics Center ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-01-26 18:17 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-01-12 19:57 [Intel-gfx] [PATCH] drm/i915/display/vrr: Reset VRR capable property on a long hpd Manasi Navare 2022-01-12 20:06 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for " Patchwork 2022-01-12 20:37 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork 2022-01-14 12:33 ` [Intel-gfx] [PATCH] " Jani Nikula 2022-01-26 18:32 ` Navare, Manasi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox