drm: Put drm_display_mode on diet
Subsystems (27)
cover drm: Put drm_display_mode on diet
From: Ville Syrjälä <[email protected]>
struct drm_display_mode is extremely fat. Put it on diet.
Some stats for the whole series:
64bit sizeof(struct drm_display_mode):
200 -> 136 bytes (-32%)
64bit bloat-o-meter -c drm.ko:
add/remove: 1/0 grow/shrink: 29/47 up/down: 893/-1544 (-651)
Function old new delta
...
Total: Before=189430, After=188779, chg -0.34% add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0)
Data old new delta
Total: Before=11667, After=11667, chg +0.00% add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-16896 (-16896)
RO Data old new delta
edid_4k_modes 1000 680 -320 edid_est_modes 3400 2312 -1088 edid_cea_modes_193 5400 3672 -1728 drm_dmt_modes 17600 11968 -5632 edid_cea_modes_1 25400 17272 -8128
Total: Before=71239, After=54343, chg -23.72%
64bit bloat-o-meter drm.ko:
add/remove: 1/0 grow/shrink: 29/52 up/down: 893/-18440 (-17547)
...
Total: Before=272336, After=254789, chg -6.44%
32bit sizeof(struct drm_display_mode):
184 -> 120 bytes (-34%)
32bit bloat-o-meter -c drm.ko
add/remove: 1/0 grow/shrink: 19/21 up/down: 743/-1368 (-625)
Function old new delta
...
Total: Before=172359, After=171734, chg -0.36% add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0)
Data old new delta
Total: Before=4227, After=4227, chg +0.00% add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-16896 (-16896)
RO Data old new delta edid_4k_modes 920 600 -320 edid_est_modes 3128 2040 -1088 edid_cea_modes_193 4968 3240 -1728 drm_dmt_modes 16192 10560 -5632 edid_cea_modes_1 23368 15240 -8128
Total: Before=59230, After=42334, chg -28.53%
32bit bloat-o-meter drm.ko:
add/remove: 1/0 grow/shrink: 19/26 up/down: 743/-18264 (-17521)
...
Total: Before=235816, After=218295, chg -7.43%
Some ideas for further reduction:
- Convert mode->name to a pointer (saves 24/28 bytes in the struct but would often require a heap alloc for the name (though typical mode name is <10 bytes so still overall win perhaps)
- Get rid of mode->name entirely? I guess setcrtc & co. is the only place where we have to preserve the user provided name, elsewhere could pehaps just generate on demand? Not sure how tricky this would get.
- Eliminate the second list head somehow?
Pie in the sky idea:
- Eliminate the normal vs. crtc_ dual timings where not needed. Ie. Just use two structs if necessary instead of packing both to the same struct. Can't imagine this being an easy conversion.
Entire series available here:git://github.com/vsyrjala/linux.git drm_mode_diet_4
Ville Syrjälä (12):
drm: Nuke mode->hsync
drm/exynos: Use mode->clock instead of reverse calculating it from the
vrefresh
drm/i915: Introduce some local intel_dp variables
drm: Nuke mode->vrefresh
drm/msm/dpu: Stop copying around mode->private_flags
drm: Shrink {width,height}_mm to u16
drm: Shrink mode->type to u8
drm: Make mode->flags u32
drm: Shrink drm_display_mode timings
drm: Flatten drm_mode_vrefresh()
drm: Shrink mode->private_flags
drm: pahole struct drm_display_mode
drivers/gpu/drm/bridge/sii902x.c | 2 +- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_edid.c | 328 +++++++++--------- drivers/gpu/drm/drm_modes.c | 54 +-- drivers/gpu/drm/drm_probe_helper.c | 3 - drivers/gpu/drm/exynos/exynos7_drm_decon.c | 2 +- drivers/gpu/drm/exynos/exynos_hdmi.c | 5 +- drivers/gpu/drm/exynos/exynos_mixer.c | 2 +- drivers/gpu/drm/i2c/ch7006_mode.c | 1 - drivers/gpu/drm/i915/display/intel_display.c | 2 - .../drm/i915/display/intel_display_debugfs.c | 4 +- drivers/gpu/drm/i915/display/intel_dp.c | 24 +- drivers/gpu/drm/i915/display/intel_tv.c | 3 - drivers/gpu/drm/mcde/mcde_dsi.c | 6 +- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 +- drivers/gpu/drm/mediatek/mtk_hdmi.c | 2 +- drivers/gpu/drm/meson/meson_venc_cvbs.c | 2 - drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 29 +- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 10 +- drivers/gpu/drm/nouveau/nouveau_connector.c | 5 +- drivers/gpu/drm/panel/panel-arm-versatile.c | 4 - drivers/gpu/drm/panel/panel-boe-himax8279d.c | 3 +- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c | 6 +- .../gpu/drm/panel/panel-feixin-k101-im2ba02.c | 3 +- .../drm/panel/panel-feiyang-fy07024di26a30d.c | 3 +- drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 7 - drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 3 +- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 4 +- .../gpu/drm/panel/panel-jdi-lt070me05000.c | 3 +- .../drm/panel/panel-kingdisplay-kd097d04.c | 3 +- .../drm/panel/panel-leadtek-ltk500hd1829.c | 3 +- drivers/gpu/drm/panel/panel-lg-lb035q02.c | 1 - drivers/gpu/drm/panel/panel-lg-lg4573.c | 3 +- drivers/gpu/drm/panel/panel-nec-nl8048hl11.c | 1 - drivers/gpu/drm/panel/panel-novatek-nt39016.c | 1 - .../drm/panel/panel-olimex-lcd-olinuxino.c | 1 - .../gpu/drm/panel/panel-orisetech-otm8009a.c | 3 +- .../drm/panel/panel-osd-osd101t2587-53ts.c | 3 +- .../drm/panel/panel-panasonic-vvx10f034n00.c | 3 +- .../drm/panel/panel-raspberrypi-touchscreen.c | 4 +- drivers/gpu/drm/panel/panel-raydium-rm67191.c | 3 +- drivers/gpu/drm/panel/panel-raydium-rm68200.c | 3 +- .../drm/panel/panel-rocktech-jh057n00900.c | 5 +- drivers/gpu/drm/panel/panel-ronbo-rb070d30.c | 1 - drivers/gpu/drm/panel/panel-samsung-s6d16d0.c | 6 - drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 4 +- .../gpu/drm/panel/panel-samsung-s6e63j0x03.c | 3 +- drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 3 +- .../panel/panel-samsung-s6e88a0-ams452ef01.c | 1 - drivers/gpu/drm/panel/panel-seiko-43wvf1g.c | 3 +- .../gpu/drm/panel/panel-sharp-lq101r1sx01.c | 3 +- .../gpu/drm/panel/panel-sharp-ls037v7dw01.c | 1 - .../gpu/drm/panel/panel-sharp-ls043t1le01.c | 3 +- drivers/gpu/drm/panel/panel-simple.c | 85 +---- drivers/gpu/drm/panel/panel-sitronix-st7701.c | 2 +- .../gpu/drm/panel/panel-sitronix-st7789v.c | 3 +- drivers/gpu/drm/panel/panel-sony-acx424akp.c | 2 - drivers/gpu/drm/panel/panel-sony-acx565akm.c | 1 - drivers/gpu/drm/panel/panel-tpo-td028ttec1.c | 1 - drivers/gpu/drm/panel/panel-tpo-td043mtea1.c | 1 - drivers/gpu/drm/panel/panel-tpo-tpg110.c | 5 - drivers/gpu/drm/panel/panel-truly-nt35597.c | 1 - .../gpu/drm/panel/panel-xinpeng-xpp055c272.c | 3 +- drivers/gpu/drm/sti/sti_hda.c | 1 - drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 2 - include/drm/drm_modes.h | 211 +++++------ 66 files changed, 341 insertions(+), 568 deletions(-)
Signature · 6 lines
2.24.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/12 drm: Nuke mode->hsync
From: Ville Syrjälä <[email protected]>
Let's just calculate the hsync rate on demand. No point in wasting space storing it and risking the cached value getting out of sync with reality.
--- drivers/gpu/drm/drm_modes.c | 14 ++------------ drivers/gpu/drm/i915/display/intel_display.c | 1 - include/drm/drm_modes.h | 10 ---------- 3 files changed, 2 insertions(+), 23 deletions(-)
drivers/gpu/drm/drm_modes.c +2 -12
@@ -752,24 +752,14 @@ EXPORT_SYMBOL(drm_mode_set_name);* @mode: mode * * Returns: -* @modes's hsync rate in kHz, rounded to the nearest integer. Calculates the -* value first if it is not yet set. +* @modes's hsync rate in kHz, rounded to the nearest integer */ int drm_mode_hsync (const struct drm_display_mode *mode) { -unsigned int calc_val; - -if (mode->hsync) -return mode->hsync; -if (mode->htotal <=0 )return 0 ; - calc_val = (mode->clock *1000 ) / mode->htotal;/* hsync in Hz */ - calc_val +=500 ;/* round to 1000Hz */ - calc_val /=1000 ;/* truncate to kHz */ - -return calc_val; +return DIV_ROUND_CLOSEST (mode->clock, mode->htotal); }EXPORT_SYMBOL (drm_mode_hsync);
drivers/gpu/drm/i915/display/intel_display.c +0 -1
@@ -8867,7 +8867,6 @@ void intel_mode_from_pipe_config(struct drm_display_mode *mode, mode->clock = pipe_config->hw.adjusted_mode.crtc_clock; - mode->hsync =drm_mode_hsync (mode); mode->vrefresh =drm_mode_vrefresh (mode);drm_mode_set_name (mode); }
include/drm/drm_modes.h +0 -10
@@ -390,16 +390,6 @@ struct drm_display_mode {*/ int vrefresh; -/** -* @hsync: -* -* Horizontal refresh rate, for debug output in human readable form. Not -* used in a functional way. -* -* This value is in kHz. -*/ -int hsync; -/** * @picture_aspect_ratio: *
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 01/12] drm: Nuke mode->hsync
Quoted 50 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Let's just calculate the hsync rate on demand. No point in wasting space storing it and risking the cached value getting out of sync with reality.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/drm_modes.c | 14 ++------------ drivers/gpu/drm/i915/display/intel_display.c | 1 - include/drm/drm_modes.h | 10 ---------- 3 files changed, 2 insertions(+), 23 deletions(-)drivers/gpu/drm/drm_modes.c +2
-12@@ -752,24 +752,14 @@ EXPORT_SYMBOL(drm_mode_set_name);* @mode: mode * * Returns: -* @modes's hsync rate in kHz, rounded to the nearest integer. Calculates the -* value first if it is not yet set. +* @modes's hsync rate in kHz, rounded to the nearest integer */ int drm_mode_hsync (const struct drm_display_mode *mode) { -unsigned int calc_val; - -if (mode->hsync) -return mode->hsync; -if (mode->htotal <=0 )return 0 ; - calc_val = (mode->clock *1000 ) / mode->htotal;/* hsync in Hz */ - calc_val +=500 ;/* round to 1000Hz */ - calc_val /=1000 ;/* truncate to kHz */ - -return calc_val; +return DIV_ROUND_CLOSEST (mode->clock, mode->htotal); }EXPORT_SYMBOL (drm_mode_hsync);drivers/gpu/drm/i915/display/intel_display.c +0
-0
drivers/gpu/drm/i915/display/intel_display.c void intel_mode_from_pipe_config(struct drm_display_mode *mode, · line 8870
Quoted 4 lines
drivers/gpu/drm/i915/display/intel_display.c +0
-1@@ -8867,7 +8867,6 @@ void intel_mode_from_pipe_config(struct drm_display_mode *mode, mode->clock = pipe_config->hw.adjusted_mode.crtc_clock; - mode->hsync =drm_mode_hsync (mode);
With this gone, we could make drm_mode_hsync() internal and move it to drm_foo_internal.h.
Making it obvious that drivers, should be copy/pasting it.
Regardless, the patch is:
-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [Intel-gfx] [PATCH 01/12] drm: Nuke mode->hsync
Quoted 53 lines · Emil Velikov
Quoted 51 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Let's just calculate the hsync rate on demand. No point in wasting space storing it and risking the cached value getting out of sync with reality.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/drm_modes.c | 14 ++------------ drivers/gpu/drm/i915/display/intel_display.c | 1 - include/drm/drm_modes.h | 10 ---------- 3 files changed, 2 insertions(+), 23 deletions(-)drivers/gpu/drm/drm_modes.c +2
-12@@ -752,24 +752,14 @@ EXPORT_SYMBOL(drm_mode_set_name);* @mode: mode * * Returns: -* @modes's hsync rate in kHz, rounded to the nearest integer. Calculates the -* value first if it is not yet set. +* @modes's hsync rate in kHz, rounded to the nearest integer */ int drm_mode_hsync (const struct drm_display_mode *mode) { -unsigned int calc_val; - -if (mode->hsync) -return mode->hsync; -if (mode->htotal <=0 )return 0 ; - calc_val = (mode->clock *1000 ) / mode->htotal;/* hsync in Hz */ - calc_val +=500 ;/* round to 1000Hz */ - calc_val /=1000 ;/* truncate to kHz */ - -return calc_val; +return DIV_ROUND_CLOSEST (mode->clock, mode->htotal); }EXPORT_SYMBOL (drm_mode_hsync);drivers/gpu/drm/i915/display/intel_display.c +0
-0@@ -8867,7 +8867,6 @@ void intel_mode_from_pipe_config(struct drm_display_mode *mode,
Quoted 7 lines
drivers/gpu/drm/i915/display/intel_display.c void intel_mode_from_pipe_config(struct drm_display_mode *mode, · line 8870
Quoted 3 lines
drivers/gpu/drm/i915/display/intel_display.c +0
-1mode->clock = pipe_config->hw.adjusted_mode.crtc_clock; - mode->hsync =drm_mode_hsync (mode);With this gone, we could make
drm_mode_hsync()internal and move it todrm_foo_internal.h.
Making it obvious that drivers, should be copy/pasting it.
Hmm. Looks like drm_edid.c is the only user left actually. Should probably just move it there and make it static.
Quoted 5 lines
Regardless, the patch is:
Reviewed-by Emil Velikov <[email protected]>-Emil
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [Intel-gfx] [PATCH 01/12] drm: Nuke mode->hsync
Quoted 57 lines · Ville Syrjälä
Quoted 55 lines · Emil Velikov
Quoted 53 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Let's just calculate the hsync rate on demand. No point in wasting space storing it and risking the cached value getting out of sync with reality.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/drm_modes.c | 14 ++------------ drivers/gpu/drm/i915/display/intel_display.c | 1 - include/drm/drm_modes.h | 10 ---------- 3 files changed, 2 insertions(+), 23 deletions(-)drivers/gpu/drm/drm_modes.c +2
-12@@ -752,24 +752,14 @@ EXPORT_SYMBOL(drm_mode_set_name);* @mode: mode * * Returns: -* @modes's hsync rate in kHz, rounded to the nearest integer. Calculates the -* value first if it is not yet set. +* @modes's hsync rate in kHz, rounded to the nearest integer */ int drm_mode_hsync (const struct drm_display_mode *mode) { -unsigned int calc_val; - -if (mode->hsync) -return mode->hsync; -if (mode->htotal <=0 )return 0 ; - calc_val = (mode->clock *1000 ) / mode->htotal;/* hsync in Hz */ - calc_val +=500 ;/* round to 1000Hz */ - calc_val /=1000 ;/* truncate to kHz */ - -return calc_val; +return DIV_ROUND_CLOSEST (mode->clock, mode->htotal); }EXPORT_SYMBOL (drm_mode_hsync);drivers/gpu/drm/i915/display/intel_display.c +0
-0@@ -8867,7 +8867,6 @@ void intel_mode_from_pipe_config(struct drm_display_mode *mode, mode->clock = pipe_config->hw.adjusted_mode.crtc_clock;
Quoted 9 lines
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_display.c void intel_mode_from_pipe_config(struct drm_display_mode *mode, · line 8870
Quoted 1 line
drivers/gpu/drm/i915/display/intel_display.c +0
-1- mode->hsync =drm_mode_hsync (mode);With this gone, we could make
drm_mode_hsync()internal and move it todrm_foo_internal.h.
Making it obvious that drivers, should be copy/pasting it.Hmm. Looks like
drm_edid.cis the only user left actually. Should probably just move it there and make it static.
That also works. Feel free to make that a follow-up patch if you prefer.
-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/12 drm/exynos: Use mode->clock instead of reverse calculating it from the vrefresh
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
htotal*vtotal*vrefresh ~= clock. So just use say "clock" when we mean it.
--- drivers/gpu/drm/exynos/exynos7_drm_decon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos7_drm_decon.c +1 -1
@@ -139,7 +139,7 @@ static void decon_ctx_remove(struct decon_context *ctx)static u32 decon_calc_clkdiv (struct decon_context *ctx,const struct drm_display_mode *mode) { -unsigned long ideal_clk = mode->htotal * mode->vtotal * mode->vrefresh; +unsigned long ideal_clk = mode->clock;u32 clkdiv;/* Find the clock divider value that gets us closest to ideal_clk */
Signature · 6 lines
2.24.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 02/12] drm/exynos: Use mode->clock instead of reverse calculating it from the vrefresh
Quoted 10 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
htotal*vtotal*vrefresh ~= clock. So just use say "clock" when we mean it.
Cc Inki Dae <[email protected]>Cc Joonyoung Shim <[email protected]>Cc Seung-Woo Kim <[email protected]>Cc Kyungmin Park <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>
-Emil
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Inki Dae
maintainerRe: [PATCH 02/12] drm/exynos: Use mode->clock instead of reverse calculating it from the vrefresh
20. 2. 20. 오후 7:56에 Emil Velikov 이(가) 쓴 글:
Quoted 7 lines
Quoted 5 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
htotal*vtotal*vrefresh ~= clock. So just use say "clock" when we mean it.
Quoted 7 lines
Quoted 5 lines
Cc Inki Dae <[email protected]>Cc Joonyoung Shim <[email protected]>Cc Seung-Woo Kim <[email protected]>Cc Kyungmin Park <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>Reviewed-by Emil Velikov <[email protected]>
Picked it up.
Thanks,
Inki Dae
Quoted 7 lines
-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://protect2.fireeye.com/url?k=95143f00-c88e96a3-9515b44f-002590f5b904-f1e1b7c834939ae1&u=https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/12 drm/i915: Introduce some local intel_dp variables
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
The drrs code dereferences mode->vrefresh via some really long chain of structures/pointers. Couldn't get coccinelle to see through all that so let's add some local variables to help it.
--- drivers/gpu/drm/i915/display/intel_dp.c | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/display/intel_dp.c +12 -6
@@ -7196,6 +7196,7 @@ static void intel_edp_drrs_downclock_work(struct work_struct *work)void intel_edp_drrs_invalidate (struct drm_i915_private *dev_priv,unsigned int frontbuffer_bits) { +struct intel_dp *intel_dp;struct drm_crtc *crtc;enum pipe pipe;
@@ -7205,12 +7206,14 @@ void intel_edp_drrs_invalidate(struct drm_i915_private *dev_priv,cancel_delayed_work (&dev_priv->drrs.work);mutex_lock (&dev_priv->drrs.mutex); -if (!dev_priv->drrs.dp) { + + intel_dp = dev_priv->drrs.dp; +if (!intel_dp) {mutex_unlock (&dev_priv->drrs.mutex);return ; } - crtc =dp_to_dig_port (dev_priv->drrs.dp)->base.base.crtc; + crtc =dp_to_dig_port (intel_dp)->base.base.crtc; pipe =to_intel_crtc (crtc)->pipe; frontbuffer_bits &=INTEL_FRONTBUFFER_ALL_MASK (pipe);
@@ -7219,7 +7222,7 @@ void intel_edp_drrs_invalidate(struct drm_i915_private *dev_priv,/* invalidate means busy screen hence upclock */ if (frontbuffer_bits && dev_priv->drrs.refresh_rate_type ==DRRS_LOW_RR )intel_dp_set_drrs_state (dev_priv,to_intel_crtc (crtc)->config, - dev_priv->drrs.dp->attached_connector->panel.fixed_mode->vrefresh); + intel_dp->attached_connector->panel.fixed_mode->vrefresh);mutex_unlock (&dev_priv->drrs.mutex); }
@@ -7239,6 +7242,7 @@ void intel_edp_drrs_invalidate(struct drm_i915_private *dev_priv,void intel_edp_drrs_flush (struct drm_i915_private *dev_priv,unsigned int frontbuffer_bits) { +struct intel_dp *intel_dp;struct drm_crtc *crtc;enum pipe pipe;
@@ -7248,12 +7252,14 @@ void intel_edp_drrs_flush(struct drm_i915_private *dev_priv,cancel_delayed_work (&dev_priv->drrs.work);mutex_lock (&dev_priv->drrs.mutex); -if (!dev_priv->drrs.dp) { + + intel_dp = dev_priv->drrs.dp; +if (!intel_dp) {mutex_unlock (&dev_priv->drrs.mutex);return ; } - crtc =dp_to_dig_port (dev_priv->drrs.dp)->base.base.crtc; + crtc =dp_to_dig_port (intel_dp)->base.base.crtc; pipe =to_intel_crtc (crtc)->pipe; frontbuffer_bits &=INTEL_FRONTBUFFER_ALL_MASK (pipe);
@@ -7262,7 +7268,7 @@ void intel_edp_drrs_flush(struct drm_i915_private *dev_priv,/* flush means busy screen hence upclock */ if (frontbuffer_bits && dev_priv->drrs.refresh_rate_type ==DRRS_LOW_RR )intel_dp_set_drrs_state (dev_priv,to_intel_crtc (crtc)->config, - dev_priv->drrs.dp->attached_connector->panel.fixed_mode->vrefresh); + intel_dp->attached_connector->panel.fixed_mode->vrefresh);/* * flush also means no more activity hence schedule downclock, if all
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 03/12] drm/i915: Introduce some local intel_dp variables
Quoted 7 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
The drrs code dereferences
mode->vrefreshvia some really long chain of structures/pointers. Couldn't get coccinelle to see through all that so let's add some local variables to help it.
There's a limit to the madness that coccinelle can take :-P Other drrs functions already use intel_dp, so might as well be consistent.
-Emil
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/12 drm: Nuke mode->vrefresh
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Get rid of mode->vrefresh and just calculate it on demand. Saves a bit of space and avoids the cached value getting out of sync with reality.
Mostly done with cocci, with the following manual fixups:
- Remove the now empty loop in drm_helper_probe_single_connector_modes()
- Fix __MODE() macro in ch7006_mode.c
- Fix DRM_MODE_ARG() macro in drm_modes.h
- Remove leftover comment from samsung_s6d16d0_mode
@@
@@
struct drm_display_mode {
...
- int vrefresh;
...
};@@
identifier N;
expression E;
@@
struct drm_display_mode N = {
- .vrefresh = E
};
@@
identifier N;
expression E;
@@
struct drm_display_mode N[...] = {
...,
{
- .vrefresh = E
}
,...
};
@@
expression E;
@@
{
DRM_MODE(...),- .vrefresh = E,
}
@@
identifier M, R;
@@
int drm_mode_vrefresh(const struct drm_display_mode *M) {
...
- if (M->vrefresh > 0)
- R = M->vrefresh;
- else
if (...) {
...
}
...
}
@@
struct drm_display_mode *p;
expression E;
@@
(
- p->vrefresh = E;
|
- p->vrefresh
+ drm_mode_vrefresh(p)
)
@@
struct drm_display_mode s;
expression E;
@@
(
- s.vrefresh = E;
|
- s.vrefresh
+ drm_mode_vrefresh(&s)
)
@@
expression E;
@@
- drm_mode_vrefresh(E) ? drm_mode_vrefresh(E) : drm_mode_vrefresh(E)
+ drm_mode_vrefresh(E)
@find_substruct@
identifier X;
identifier S;
@@
struct X {
...
struct drm_display_mode S;
...
};
@@
identifier find_substruct.S;
expression E;
identifier I;
@@
{
.S = {
- .vrefresh = E
}
}
@@
identifier find_substruct.S;
identifier find_substruct.X;
expression E;
identifier I;
@@
struct X I[...] = {
...,
.S = {
- .vrefresh = E
}
,...
};
--- drivers/gpu/drm/bridge/sii902x.c | 2 +- drivers/gpu/drm/drm_client_modeset.c | 2 +- drivers/gpu/drm/drm_edid.c | 328 +++++++++--------- drivers/gpu/drm/drm_modes.c | 9 +- drivers/gpu/drm/drm_probe_helper.c | 3 - drivers/gpu/drm/exynos/exynos_hdmi.c | 5 +- drivers/gpu/drm/exynos/exynos_mixer.c | 2 +- drivers/gpu/drm/i2c/ch7006_mode.c | 1 - drivers/gpu/drm/i915/display/intel_display.c | 1 - .../drm/i915/display/intel_display_debugfs.c | 4 +- drivers/gpu/drm/i915/display/intel_dp.c | 10 +- drivers/gpu/drm/i915/display/intel_tv.c | 3 - drivers/gpu/drm/mcde/mcde_dsi.c | 6 +- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 4 +- drivers/gpu/drm/mediatek/mtk_hdmi.c | 2 +- drivers/gpu/drm/meson/meson_venc_cvbs.c | 2 - drivers/gpu/drm/nouveau/nouveau_connector.c | 5 +- drivers/gpu/drm/panel/panel-arm-versatile.c | 4 - drivers/gpu/drm/panel/panel-boe-himax8279d.c | 3 +- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c | 6 +- .../gpu/drm/panel/panel-feixin-k101-im2ba02.c | 3 +- .../drm/panel/panel-feiyang-fy07024di26a30d.c | 3 +- drivers/gpu/drm/panel/panel-ilitek-ili9322.c | 7 - drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 3 +- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 4 +- .../gpu/drm/panel/panel-jdi-lt070me05000.c | 3 +- .../drm/panel/panel-kingdisplay-kd097d04.c | 3 +- .../drm/panel/panel-leadtek-ltk500hd1829.c | 3 +- drivers/gpu/drm/panel/panel-lg-lb035q02.c | 1 - drivers/gpu/drm/panel/panel-lg-lg4573.c | 3 +- drivers/gpu/drm/panel/panel-nec-nl8048hl11.c | 1 - drivers/gpu/drm/panel/panel-novatek-nt39016.c | 1 - .../drm/panel/panel-olimex-lcd-olinuxino.c | 1 - .../gpu/drm/panel/panel-orisetech-otm8009a.c | 3 +- .../drm/panel/panel-osd-osd101t2587-53ts.c | 3 +- .../drm/panel/panel-panasonic-vvx10f034n00.c | 3 +- .../drm/panel/panel-raspberrypi-touchscreen.c | 4 +- drivers/gpu/drm/panel/panel-raydium-rm67191.c | 3 +- drivers/gpu/drm/panel/panel-raydium-rm68200.c | 3 +- .../drm/panel/panel-rocktech-jh057n00900.c | 5 +- drivers/gpu/drm/panel/panel-ronbo-rb070d30.c | 1 - drivers/gpu/drm/panel/panel-samsung-s6d16d0.c | 6 - drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 4 +- .../gpu/drm/panel/panel-samsung-s6e63j0x03.c | 3 +- drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 3 +- .../panel/panel-samsung-s6e88a0-ams452ef01.c | 1 - drivers/gpu/drm/panel/panel-seiko-43wvf1g.c | 3 +- .../gpu/drm/panel/panel-sharp-lq101r1sx01.c | 3 +- .../gpu/drm/panel/panel-sharp-ls037v7dw01.c | 1 - .../gpu/drm/panel/panel-sharp-ls043t1le01.c | 3 +- drivers/gpu/drm/panel/panel-simple.c | 85 +---- drivers/gpu/drm/panel/panel-sitronix-st7701.c | 2 +- .../gpu/drm/panel/panel-sitronix-st7789v.c | 3 +- drivers/gpu/drm/panel/panel-sony-acx424akp.c | 2 - drivers/gpu/drm/panel/panel-sony-acx565akm.c | 1 - drivers/gpu/drm/panel/panel-tpo-td028ttec1.c | 1 - drivers/gpu/drm/panel/panel-tpo-td043mtea1.c | 1 - drivers/gpu/drm/panel/panel-tpo-tpg110.c | 5 - drivers/gpu/drm/panel/panel-truly-nt35597.c | 1 - .../gpu/drm/panel/panel-xinpeng-xpp055c272.c | 3 +- drivers/gpu/drm/sti/sti_hda.c | 1 - drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 2 - include/drm/drm_modes.h | 12 +- 63 files changed, 217 insertions(+), 392 deletions(-)
drivers/gpu/drm/bridge/sii902x.c +1 -1
@@ -360,7 +360,7 @@ static void sii902x_bridge_mode_set(struct drm_bridge *bridge, buf[0 ] = pixel_clock_10kHz &0xff ; buf[1 ] = pixel_clock_10kHz >>8 ; - buf[2 ] = adj->vrefresh; + buf[2 ] =drm_mode_vrefresh (adj); buf[3 ] =0x00 ; buf[4 ] = adj->hdisplay; buf[5 ] = adj->hdisplay >>8 ;
drivers/gpu/drm/drm_client_modeset.c +1 -1
@@ -186,7 +186,7 @@ drm_connector_pick_cmdline_mode(struct drm_connector *connector)continue ;if (cmdline_mode->refresh_specified) { -if (mode->vrefresh != cmdline_mode->refresh) +if (drm_mode_vrefresh (mode) != cmdline_mode->refresh)continue ; }
drivers/gpu/drm/drm_edid.c +161 -167
1,024 lines not on this page · raw message
drivers/gpu/drm/drm_modes.c +3 -6
@@ -775,9 +775,7 @@ int drm_mode_vrefresh(const struct drm_display_mode *mode) {int refresh =0 ; -if (mode->vrefresh >0 ) - refresh = mode->vrefresh; -else if (mode->htotal >0 && mode->vtotal >0 ) { +if (mode->htotal >0 && mode->vtotal >0 ) {unsigned int num, den; num = mode->clock *1000 ;
@@ -1324,7 +1322,7 @@ static int drm_mode_compare(void *priv, struct list_head *lh_a, struct list_headif (diff)return diff; - diff = b->vrefresh - a->vrefresh; + diff =drm_mode_vrefresh (b) -drm_mode_vrefresh (a);if (diff)return diff;
@@ -1937,7 +1935,7 @@ void drm_mode_convert_to_umode(struct drm_mode_modeinfo *out, out->vsync_end = in->vsync_end; out->vtotal = in->vtotal; out->vscan = in->vscan; - out->vrefresh = in->vrefresh; + out->vrefresh =drm_mode_vrefresh (in); out->flags = in->flags; out->type = in->type;
@@ -1997,7 +1995,6 @@ int drm_mode_convert_umode(struct drm_device *dev, out->vsync_end = in->vsync_end; out->vtotal = in->vtotal; out->vscan = in->vscan; - out->vrefresh = in->vrefresh; out->flags = in->flags;/* * Old xf86-video-vmware (possibly others too) used to
drivers/gpu/drm/drm_probe_helper.c +0 -3
@@ -532,9 +532,6 @@ int drm_helper_probe_single_connector_modes(struct drm_connector *connector,if (list_empty (&connector->modes))return 0 ; -list_for_each_entry (mode, &connector->modes, head) - mode->vrefresh =drm_mode_vrefresh (mode); -drm_mode_sort (&connector->modes); DRM_DEBUG_KMS("[CONNECTOR:%d:%s] probed modes :\n", connector->base.id,
drivers/gpu/drm/exynos/exynos_hdmi.c +3 -2
@@ -920,7 +920,8 @@ static int hdmi_mode_valid(struct drm_connector *connector,DRM_DEV_DEBUG_KMS (hdata->dev,"xres=%d, yres=%d, refresh=%d, intl=%d clock=%d\n" , - mode->hdisplay, mode->vdisplay, mode->vrefresh, + mode->hdisplay, mode->vdisplay, +drm_mode_vrefresh (mode), (mode->flags &DRM_MODE_FLAG_INTERLACE ) ? true : false, mode->clock *1000 );
@@ -1019,7 +1020,7 @@ static bool hdmi_mode_fixup(struct drm_encoder *encoder,DRM_DEV_DEBUG_KMS (dev->dev,"Adjusted Mode: [%d]x[%d] [%d]Hz\n" , m->hdisplay, m->vdisplay, - m->vrefresh); +drm_mode_vrefresh (m));drm_mode_copy (adjusted_mode, m);break ;
drivers/gpu/drm/exynos/exynos_mixer.c +1 -1
@@ -1043,7 +1043,7 @@ static int mixer_mode_valid(struct exynos_drm_crtc *crtc,u32 w = mode->hdisplay, h = mode->vdisplay;DRM_DEV_DEBUG_KMS (ctx->dev,"xres=%d, yres=%d, refresh=%d, intl=%d\n" , - w, h, mode->vrefresh, + w, h,drm_mode_vrefresh (mode), !!(mode->flags &DRM_MODE_FLAG_INTERLACE ));if (ctx->mxr_ver ==MXR_VER_128_0_0_184 )
drivers/gpu/drm/i2c/ch7006_mode.c +0 -1
@@ -121,7 +121,6 @@ const struct ch7006_tv_norm_info ch7006_tv_norms[] = { .vscan = 0, \ .flags = DRM_MODE_FLAG_##hsynp##HSYNC | \ DRM_MODE_FLAG_##vsynp##VSYNC, \ - .vrefresh = 0, \ }, \ .enc_hdisp = e_hd, \ .enc_vdisp = e_vd, \
drivers/gpu/drm/i915/display/intel_display.c +0 -1
@@ -8867,7 +8867,6 @@ void intel_mode_from_pipe_config(struct drm_display_mode *mode, mode->clock = pipe_config->hw.adjusted_mode.crtc_clock; - mode->vrefresh =drm_mode_vrefresh (mode);drm_mode_set_name (mode); }
drivers/gpu/drm/i915/display/intel_display_debugfs.c +2 -2
@@ -1099,10 +1099,10 @@ static void drrs_status_per_crtc(struct seq_file *m,seq_puts (m,"\n\t\t" );if (drrs->refresh_rate_type ==DRRS_HIGH_RR ) {seq_puts (m,"DRRS_State: DRRS_HIGH_RR\n" ); - vrefresh = panel->fixed_mode->vrefresh; + vrefresh =drm_mode_vrefresh (panel->fixed_mode); }else if (drrs->refresh_rate_type ==DRRS_LOW_RR ) {seq_puts (m,"DRRS_State: DRRS_LOW_RR\n" ); - vrefresh = panel->downclock_mode->vrefresh; + vrefresh =drm_mode_vrefresh (panel->downclock_mode); }else {seq_printf (m,"DRRS_State: Unknown(%d)\n" , drrs->refresh_rate_type);
drivers/gpu/drm/i915/display/intel_dp.c +5 -5
@@ -7030,7 +7030,7 @@ static void intel_dp_set_drrs_state(struct drm_i915_private *dev_priv,return ; } -if (intel_dp->attached_connector->panel.downclock_mode->vrefresh == +if (drm_mode_vrefresh (intel_dp->attached_connector->panel.downclock_mode) == refresh_rate) index =DRRS_LOW_RR ;
@@ -7143,7 +7143,7 @@ void intel_edp_drrs_disable(struct intel_dp *intel_dp,if (dev_priv->drrs.refresh_rate_type ==DRRS_LOW_RR )intel_dp_set_drrs_state (dev_priv, old_crtc_state, - intel_dp->attached_connector->panel.fixed_mode->vrefresh); +drm_mode_vrefresh (intel_dp->attached_connector->panel.fixed_mode)); dev_priv->drrs.dp =NULL ;mutex_unlock (&dev_priv->drrs.mutex);
@@ -7176,7 +7176,7 @@ static void intel_edp_drrs_downclock_work(struct work_struct *work)struct drm_crtc *crtc =dp_to_dig_port (intel_dp)->base.base.crtc;intel_dp_set_drrs_state (dev_priv,to_intel_crtc (crtc)->config, - intel_dp->attached_connector->panel.downclock_mode->vrefresh); +drm_mode_vrefresh (intel_dp->attached_connector->panel.downclock_mode)); } unlock:
@@ -7222,7 +7222,7 @@ void intel_edp_drrs_invalidate(struct drm_i915_private *dev_priv,/* invalidate means busy screen hence upclock */ if (frontbuffer_bits && dev_priv->drrs.refresh_rate_type ==DRRS_LOW_RR )intel_dp_set_drrs_state (dev_priv,to_intel_crtc (crtc)->config, - intel_dp->attached_connector->panel.fixed_mode->vrefresh); +drm_mode_vrefresh (intel_dp->attached_connector->panel.fixed_mode));mutex_unlock (&dev_priv->drrs.mutex); }
@@ -7268,7 +7268,7 @@ void intel_edp_drrs_flush(struct drm_i915_private *dev_priv,/* flush means busy screen hence upclock */ if (frontbuffer_bits && dev_priv->drrs.refresh_rate_type ==DRRS_LOW_RR )intel_dp_set_drrs_state (dev_priv,to_intel_crtc (crtc)->config, - intel_dp->attached_connector->panel.fixed_mode->vrefresh); +drm_mode_vrefresh (intel_dp->attached_connector->panel.fixed_mode));/* * flush also means no more activity hence schedule downclock, if all
drivers/gpu/drm/i915/display/intel_tv.c +0 -3
@@ -1037,9 +1037,6 @@ intel_tv_mode_to_mode(struct drm_display_mode *mode,/* TV has it's own notion of sync and other mode flags, so clear them. */ mode->flags =0 ; - mode->vrefresh =0 ; - mode->vrefresh =drm_mode_vrefresh (mode); - snprintf(mode->name, sizeof(mode->name), "%dx%d%c (%s)", mode->hdisplay, mode->vdisplay,
drivers/gpu/drm/mcde/mcde_dsi.c +3 -3
@@ -538,7 +538,7 @@ static void mcde_dsi_setup_video_mode(struct mcde_dsi *d,*/ /* (ps/s) / (pixels/s) = ps/pixels */ pclk =DIV_ROUND_UP_ULL (1000000000000 , - (mode->vrefresh * mode->htotal * mode->vtotal)); + (drm_mode_vrefresh (mode) * mode->htotal * mode->vtotal));dev_dbg (d->dev,"picoseconds between two pixels: %llu\n" , pclk);
@@ -568,7 +568,7 @@ static void mcde_dsi_setup_video_mode(struct mcde_dsi *d, bpl *= d->mdsi->lanes;dev_dbg (d->dev,"calculated bytes per line: %llu @ %d Hz with HS %lu Hz\n" , - bpl, mode->vrefresh, d->mdsi->hs_rate); + bpl,drm_mode_vrefresh (mode), d->mdsi->hs_rate);/* * 6 is header + checksum, header = 4 bytes, checksum = 2 bytes
@@ -644,7 +644,7 @@ static void mcde_dsi_setup_video_mode(struct mcde_dsi *d,dev_err (d->dev,"video block does not fit on line!\n" );dev_err (d->dev,"calculated bytes per line: %llu @ %d Hz\n" , - bpl, mode->vrefresh); + bpl,drm_mode_vrefresh (mode));dev_err (d->dev,"bytes per line (blkline_pck) %u bytes\n" , blkline_pck);
drivers/gpu/drm/mediatek/mtk_drm_crtc.c +2 -2
@@ -164,7 +164,7 @@ static void mtk_drm_crtc_mode_set_nofb(struct drm_crtc *crtc) state->pending_width = crtc->mode.hdisplay; state->pending_height = crtc->mode.vdisplay; - state->pending_vrefresh = crtc->mode.vrefresh; + state->pending_vrefresh =drm_mode_vrefresh (&crtc->mode);wmb ();/* Make sure the above parameters are set before update */ state->pending_config = true; }
@@ -263,7 +263,7 @@ static int mtk_crtc_ddp_hw_init(struct mtk_drm_crtc *mtk_crtc) width = crtc->state->adjusted_mode.hdisplay; height = crtc->state->adjusted_mode.vdisplay; - vrefresh = crtc->state->adjusted_mode.vrefresh; + vrefresh =drm_mode_vrefresh (&crtc->state->adjusted_mode);drm_for_each_encoder (encoder, crtc->dev) {if (encoder->crtc != crtc)
drivers/gpu/drm/mediatek/mtk_hdmi.c +1 -1
@@ -1241,7 +1241,7 @@ static int mtk_hdmi_conn_mode_valid(struct drm_connector *conn,struct drm_bridge *next_bridge;dev_dbg (hdmi->dev,"xres=%d, yres=%d, refresh=%d, intl=%d clock=%d\n" , - mode->hdisplay, mode->vdisplay, mode->vrefresh, + mode->hdisplay, mode->vdisplay,drm_mode_vrefresh (mode), !!(mode->flags &DRM_MODE_FLAG_INTERLACE ), mode->clock *1000 ); next_bridge =drm_bridge_get_next_bridge (&hdmi->bridge);
drivers/gpu/drm/meson/meson_venc_cvbs.c +0 -2
@@ -48,7 +48,6 @@ struct meson_cvbs_mode meson_cvbs_modes[MESON_CVBS_MODES_COUNT] = {DRM_MODE ("720x576i" ,DRM_MODE_TYPE_DRIVER ,13500 ,720 ,732 ,795 ,864 ,0 ,576 ,580 ,586 ,625 ,0 , DRM_MODE_FLAG_INTERLACE), - .vrefresh = 50, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, },
@@ -58,7 +57,6 @@ struct meson_cvbs_mode meson_cvbs_modes[MESON_CVBS_MODES_COUNT] = {DRM_MODE ("720x480i" ,DRM_MODE_TYPE_DRIVER ,13500 ,720 ,739 ,801 ,858 ,0 ,480 ,488 ,494 ,525 ,0 , DRM_MODE_FLAG_INTERLACE), - .vrefresh = 60, .picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3, }, },
drivers/gpu/drm/nouveau/nouveau_connector.c +2 -3
@@ -59,7 +59,6 @@ nouveau_conn_native_mode(struct drm_connector *connector)int high_w =0 , high_h =0 , high_v =0 ;list_for_each_entry (mode, &connector->probed_modes, head) { - mode->vrefresh =drm_mode_vrefresh (mode);if (helper->mode_valid (connector, mode) !=MODE_OK || (mode->flags &DRM_MODE_FLAG_INTERLACE ))continue ;
@@ -80,12 +79,12 @@ nouveau_conn_native_mode(struct drm_connector *connector)continue ;if (mode->hdisplay == high_w && mode->vdisplay == high_h && - mode->vrefresh < high_v) +drm_mode_vrefresh (mode) < high_v)continue ; high_w = mode->hdisplay; high_h = mode->vdisplay; - high_v = mode->vrefresh; + high_v =drm_mode_vrefresh (mode); largest = mode; }
drivers/gpu/drm/panel/panel-arm-versatile.c +0 -4
@@ -143,7 +143,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 240 + 5, .vsync_end = 240 + 5 + 6, .vtotal = 240 + 5 + 6 + 5, - .vrefresh = 116, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, },
@@ -167,7 +166,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 480 + 11, .vsync_end = 480 + 11 + 2, .vtotal = 480 + 11 + 2 + 32, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, },
@@ -190,7 +188,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 220 + 0, .vsync_end = 220 + 0 + 2, .vtotal = 220 + 0 + 2 + 1, - .vrefresh = 390, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
@@ -214,7 +211,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 320 + 2, .vsync_end = 320 + 2 + 2, .vtotal = 320 + 2 + 2 + 2, - .vrefresh = 116, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
drivers/gpu/drm/panel/panel-boe-himax8279d.c +1 -2
@@ -229,7 +229,7 @@ static int boe_panel_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {DRM_DEV_ERROR (pinfo->base.dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay,drm_mode_vrefresh (m));return -ENOMEM ; }
@@ -262,7 +262,6 @@ static const struct drm_display_mode default_display_mode = { .vsync_start = 1920 + 10, .vsync_end = 1920 + 10 + 14, .vtotal = 1920 + 10 + 14 + 4, - .vrefresh = 60, };/* 8 inch */
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +1 -5
@@ -594,7 +594,6 @@ static const struct drm_display_mode boe_tv101wum_nl6_default_mode = { .vsync_start = 1920 + 10, .vsync_end = 1920 + 10 + 14, .vtotal = 1920 + 10 + 14 + 4, - .vrefresh = 60, };static const struct panel_desc boe_tv101wum_nl6_desc = {
@@ -622,7 +621,6 @@ static const struct drm_display_mode auo_kd101n80_45na_default_mode = { .vsync_start = 1920 + 16, .vsync_end = 1920 + 16 + 4, .vtotal = 1920 + 16 + 4 + 16, - .vrefresh = 60, };static const struct panel_desc auo_kd101n80_45na_desc = {
@@ -650,7 +648,6 @@ static const struct drm_display_mode boe_tv101wum_n53_default_mode = { .vsync_start = 1920 + 20, .vsync_end = 1920 + 20 + 4, .vtotal = 1920 + 20 + 4 + 10, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };
@@ -678,7 +675,6 @@ static const struct drm_display_mode auo_b101uan08_3_default_mode = { .vsync_start = 1920 + 34, .vsync_end = 1920 + 34 + 2, .vtotal = 1920 + 34 + 2 + 24, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };
@@ -706,7 +702,7 @@ static int boe_panel_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay,drm_mode_vrefresh (m));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c +1 -2
@@ -392,7 +392,6 @@ static int k101_im2ba02_unprepare(struct drm_panel *panel)static const struct drm_display_mode k101_im2ba02_default_mode = { .clock =70000 , - .vrefresh =60 , .hdisplay =800 , .hsync_start =800 +20 ,
@@ -420,7 +419,7 @@ static int k101_im2ba02_get_modes(struct drm_panel *panel,DRM_DEV_ERROR (&ctx->dsi->dev,"failed to add mode %ux%ux@%u\n" , k101_im2ba02_default_mode.hdisplay, k101_im2ba02_default_mode.vdisplay, - k101_im2ba02_default_mode.vrefresh); +drm_mode_vrefresh (&k101_im2ba02_default_mode));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c +1 -2
@@ -153,7 +153,6 @@ static const struct drm_display_mode feiyang_default_mode = { .vsync_start = 600 + 12, .vsync_end = 600 + 12 + 2, .vtotal = 600 + 12 + 2 + 21, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };
@@ -169,7 +168,7 @@ static int feiyang_get_modes(struct drm_panel *panel,DRM_DEV_ERROR (&ctx->dsi->dev,"failed to add mode %ux%ux@%u\n" , feiyang_default_mode.hdisplay, feiyang_default_mode.vdisplay, - feiyang_default_mode.vrefresh); +drm_mode_vrefresh (&feiyang_default_mode));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-ilitek-ili9322.c +0 -7
@@ -549,7 +549,6 @@ static const struct drm_display_mode srgb_320x240_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 1, .vtotal = 262, - .vrefresh = 60, .flags = 0, };
@@ -563,7 +562,6 @@ static const struct drm_display_mode srgb_360x240_mode = { .vsync_start = 240 + 21, .vsync_end = 240 + 21 + 1, .vtotal = 262, - .vrefresh = 60, .flags = 0, };
@@ -578,7 +576,6 @@ static const struct drm_display_mode prgb_320x240_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 1, .vtotal = 262, - .vrefresh = 60, .flags = 0, };
@@ -593,7 +590,6 @@ static const struct drm_display_mode yuv_640x320_mode = { .vsync_start = 320 + 4, .vsync_end = 320 + 4 + 1, .vtotal = 320 + 4 + 1 + 18, - .vrefresh = 60, .flags = 0, };
@@ -607,7 +603,6 @@ static const struct drm_display_mode yuv_720x360_mode = { .vsync_start = 360 + 4, .vsync_end = 360 + 4 + 1, .vtotal = 360 + 4 + 1 + 18, - .vrefresh = 60, .flags = 0, };
@@ -622,7 +617,6 @@ static const struct drm_display_mode itu_r_bt_656_640_mode = { .vsync_start = 480 + 4, .vsync_end = 480 + 4 + 1, .vtotal = 500, - .vrefresh = 60, .flags = 0, };
@@ -637,7 +631,6 @@ static const struct drm_display_mode itu_r_bt_656_720_mode = { .vsync_start = 480 + 4, .vsync_end = 480 + 4 + 1, .vtotal = 500, - .vrefresh = 60, .flags = 0, };
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +1 -2
@@ -370,7 +370,6 @@ static int ili9881c_unprepare(struct drm_panel *panel)static const struct drm_display_mode bananapi_default_mode = { .clock =62000 , - .vrefresh =60 , .hdisplay =720 , .hsync_start =720 +10 ,
@@ -394,7 +393,7 @@ static int ili9881c_get_modes(struct drm_panel *panel,dev_err (&ctx->dsi->dev,"failed to add mode %ux%ux@%u\n" , bananapi_default_mode.hdisplay, bananapi_default_mode.vdisplay, - bananapi_default_mode.vrefresh); +drm_mode_vrefresh (&bananapi_default_mode));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-innolux-p079zca.c +1 -3
@@ -223,7 +223,6 @@ static const struct drm_display_mode innolux_p079zca_mode = { .vsync_start = 1024 + 20, .vsync_end = 1024 + 20 + 4, .vtotal = 1024 + 20 + 4 + 20, - .vrefresh = 60, };static const struct panel_desc innolux_p079zca_panel_desc = {
@@ -257,7 +256,6 @@ static const struct drm_display_mode innolux_p097pfg_mode = { .vsync_start = 2048 + 100, .vsync_end = 2048 + 100 + 2, .vtotal = 2048 + 100 + 2 + 18, - .vrefresh = 60, };/*
@@ -401,7 +399,7 @@ static int innolux_panel_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {DRM_DEV_ERROR (panel->dev,"failed to add mode %ux%ux@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay,drm_mode_vrefresh (m));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-jdi-lt070me05000.c +1 -2
@@ -296,7 +296,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1920 + 3, .vsync_end = 1920 + 3 + 5, .vtotal = 1920 + 3 + 5 + 6, - .vrefresh = 60, .flags = 0, };
@@ -311,7 +310,7 @@ static int jdi_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c +1 -2
@@ -318,7 +318,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 2048 + 95, .vsync_end = 2048 + 95 + 2, .vtotal = 2048 + 95 + 2 + 23, - .vrefresh = 60, }; static int kingdisplay_panel_get_modes(struct drm_panel *panel,
@@ -330,7 +329,7 @@ static int kingdisplay_panel_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c +1 -2
@@ -376,7 +376,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 30, .vsync_end = 1280 + 30 + 4, .vtotal = 1280 + 30 + 4 + 12, - .vrefresh = 60, .clock = 41600, .width_mm = 62, .height_mm = 110,
@@ -392,7 +391,7 @@ static int ltk500hd1829_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (ctx->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-lg-lb035q02.c +0 -1
@@ -134,7 +134,6 @@ static const struct drm_display_mode lb035q02_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 2, .vtotal = 240 + 4 + 2 + 18, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 70,
drivers/gpu/drm/panel/panel-lg-lg4573.c +1 -2
@@ -206,7 +206,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 800 + 15, .vsync_end = 800 + 15 + 15, .vtotal = 800 + 15 + 15 + 15, - .vrefresh = 60, }; static int lg4573_get_modes(struct drm_panel *panel,
@@ -218,7 +217,7 @@ static int lg4573_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-nec-nl8048hl11.c +0 -1
@@ -116,7 +116,6 @@ static const struct drm_display_mode nl8048_mode = { .vsync_start = 480 + 3, .vsync_end = 480 + 3 + 1, .vtotal = 480 + 3 + 1 + 4, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 89,
drivers/gpu/drm/panel/panel-novatek-nt39016.c +0 -1
@@ -327,7 +327,6 @@ static const struct nt39016_panel_info kd035g6_info = { .vsync_start = 240 + 5, .vsync_end = 240 + 5 + 1, .vtotal = 240 + 5 + 1 + 4, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, }, .width_mm = 71,
drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c +0 -1
@@ -170,7 +170,6 @@ static int lcd_olinuxino_get_modes(struct drm_panel *panel, lcd_mode->vpw; mode->vtotal = lcd_mode->vactive + lcd_mode->vfp + lcd_mode->vpw + lcd_mode->vbp; - mode->vrefresh = lcd_mode->refresh;/* Always make the first mode preferred */ if (i ==0 )
drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +1 -2
@@ -81,7 +81,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 800 + 15, .vsync_end = 800 + 15 + 10, .vtotal = 800 + 15 + 10 + 14, - .vrefresh = 50, .flags = 0, .width_mm = 52, .height_mm = 86,
@@ -358,7 +357,7 @@ static int otm8009a_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c +1 -2
@@ -102,7 +102,6 @@ static const struct drm_display_mode default_mode_osd101t2587 = { .vsync_start = 1200 + 24, .vsync_end = 1200 + 24 + 6, .vtotal = 1200 + 24 + 6 + 48, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };
@@ -117,7 +116,7 @@ static int osd101t2587_panel_get_modes(struct drm_panel *panel,dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , osd101t2587->default_mode->hdisplay, osd101t2587->default_mode->vdisplay, - osd101t2587->default_mode->vrefresh); +drm_mode_vrefresh (osd101t2587->default_mode));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +1 -2
@@ -149,7 +149,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1200 + 24, .vsync_end = 1200 + 24 + 6, .vtotal = 1200 + 24 + 6 + 48, - .vrefresh = 60, }; static int wuxga_nt_panel_get_modes(struct drm_panel *panel,
@@ -161,7 +160,7 @@ static int wuxga_nt_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c +2 -2
@@ -209,7 +209,6 @@ static const struct drm_display_mode rpi_touchscreen_modes[] = { .vsync_start = 480 + 7, .vsync_end = 480 + 7 + 2, .vtotal = 480 + 7 + 2 + 21, - .vrefresh = 60, }, };
@@ -322,7 +321,8 @@ static int rpi_touchscreen_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay, +drm_mode_vrefresh (m));continue ; }
drivers/gpu/drm/panel/panel-raydium-rm67191.c +1 -2
@@ -218,7 +218,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1920 + 10, .vsync_end = 1920 + 10 + 2, .vtotal = 1920 + 10 + 2 + 4, - .vrefresh = 60, .width_mm = 68, .height_mm = 121, .flags = DRM_MODE_FLAG_NHSYNC |
@@ -445,7 +444,7 @@ static int rad_panel_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-raydium-rm68200.c +1 -2
@@ -92,7 +92,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 12, .vsync_end = 1280 + 12 + 4, .vtotal = 1280 + 12 + 4 + 12, - .vrefresh = 50, .flags = 0, .width_mm = 68, .height_mm = 122,
@@ -339,7 +338,7 @@ static int rm68200_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }
drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c +2 -3
@@ -223,7 +223,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1440 + 20, .vsync_end = 1440 + 20 + 4, .vtotal = 1440 + 20 + 4 + 12, - .vrefresh = 60, .clock = 75276, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 65,
@@ -240,7 +239,7 @@ static int jh057n_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (ctx->dev,"Failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }
@@ -360,7 +359,7 @@ static int jh057n_probe(struct mipi_dsi_device *dsi) DRM_DEV_INFO(dev, "%ux%u@%u %ubpp dsi %udl - ready\n", default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh, + drm_mode_vrefresh(&default_mode), mipi_dsi_pixel_format_to_bpp(dsi->format), dsi->lanes); jh057n_debugfs_init(ctx);
drivers/gpu/drm/panel/panel-ronbo-rb070d30.c +0 -1
@@ -103,7 +103,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 600 + 12, .vsync_end = 600 + 12 + 10, .vtotal = 600 + 12 + 10 + 13, - .vrefresh = 60, .width_mm = 154, .height_mm = 85,
drivers/gpu/drm/panel/panel-samsung-s6d16d0.c +0 -6
@@ -37,12 +37,6 @@ static const struct drm_display_mode samsung_s6d16d0_mode = { .vsync_start = 480 + 1, .vsync_end = 480 + 1 + 1, .vtotal = 480 + 1 + 1 + 1, - /* - * This depends on the clocking HS vs LP rate, this value - * is calculated as: - * vrefresh = (clock * 1000) / (htotal*vtotal) - */ - .vrefresh = 816, .width_mm = 84, .height_mm = 48, };
drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c +1 -3
@@ -617,7 +617,6 @@ static const struct drm_display_mode s6e3ha2_mode = { .vsync_start = 2560 + 1, .vsync_end = 2560 + 1 + 1, .vtotal = 2560 + 1 + 1 + 15, - .vrefresh = 60, .flags = 0, };
@@ -636,7 +635,6 @@ static const struct drm_display_mode s6e3hf2_mode = { .vsync_start = 2560 + 1, .vsync_end = 2560 + 1 + 1, .vtotal = 2560 + 1 + 1 + 15, - .vrefresh = 60, .flags = 0, };
@@ -655,7 +653,7 @@ static int s6e3ha2_get_modes(struct drm_panel *panel, if (!mode) { DRM_ERROR("failed to add mode %ux%ux@%u\n", ctx->desc->mode->hdisplay, ctx->desc->mode->vdisplay, - ctx->desc->mode->vrefresh); + drm_mode_vrefresh(ctx->desc->mode)); return -ENOMEM; }
drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c +1 -2
@@ -52,7 +52,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 320 + 150, .vsync_end = 320 + 150 + 1, .vtotal = 320 + 150 + 1 + 2, - .vrefresh = 30, .flags = 0, };
@@ -409,7 +408,7 @@ static int s6e63j0x03_get_modes(struct drm_panel *panel, if (!mode) { DRM_ERROR("failed to add mode %ux%ux@%u\n", default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); + drm_mode_vrefresh(&default_mode)); return -ENOMEM; }
drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +1 -2
@@ -117,7 +117,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 800 + 28, .vsync_end = 800 + 28 + 2, .vtotal = 800 + 28 + 2 + 1, - .vrefresh = 60, .width_mm = 53, .height_mm = 89, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
@@ -371,7 +370,7 @@ static int s6e63m0_get_modes(struct drm_panel *panel, if (!mode) { DRM_ERROR("failed to add mode %ux%ux@%u\n", default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); + drm_mode_vrefresh(&default_mode)); return -ENOMEM; }
drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c +0 -1
@@ -177,7 +177,6 @@ static const struct drm_display_mode s6e88a0_ams452ef01_mode = { .vsync_start = 960 + 14, .vsync_end = 960 + 14 + 2, .vtotal = 960 + 14 + 2 + 8, - .vrefresh = 60, .width_mm = 56, .height_mm = 100, };
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +2 -1
@@ -92,7 +92,8 @@ static int seiko_panel_get_fixed_modes(struct seiko_panel *panel, mode = drm_mode_duplicate(connector->dev, m); if (!mode) { dev_err(panel->base.dev, "failed to add mode %ux%u@%u\n", - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay, + drm_mode_vrefresh(m)); continue; }
drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c +1 -2
@@ -269,7 +269,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1600 + 4, .vsync_end = 1600 + 4 + 8, .vtotal = 1600 + 4 + 8 + 32, - .vrefresh = 60, }; static int sharp_panel_get_modes(struct drm_panel *panel,
@@ -281,7 +280,7 @@ static int sharp_panel_get_modes(struct drm_panel *panel, if (!mode) { dev_err(panel->dev, "failed to add mode %ux%ux@%u\n", default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); + drm_mode_vrefresh(&default_mode)); return -ENOMEM; }
drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c +0 -1
@@ -93,7 +93,6 @@ static const struct drm_display_mode ls037v7dw01_mode = { .vsync_start = 640 + 1, .vsync_end = 640 + 1 + 1, .vtotal = 640 + 1 + 1 + 1, - .vrefresh = 58, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 56,
drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c +1 -2
@@ -201,7 +201,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 960 + 3, .vsync_end = 960 + 3 + 15, .vtotal = 960 + 3 + 15 + 1, - .vrefresh = 60, }; static int sharp_nt_panel_get_modes(struct drm_panel *panel,
@@ -213,7 +212,7 @@ static int sharp_nt_panel_get_modes(struct drm_panel *panel, if (!mode) { dev_err(panel->dev, "failed to add mode %ux%u@%u\n", default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); + drm_mode_vrefresh(&default_mode)); return -ENOMEM; }
drivers/gpu/drm/panel/panel-simple.c +2 -83
583 lines not on this page · raw message
drivers/gpu/drm/panel/panel-sitronix-st7701.c +1 -1
@@ -272,7 +272,7 @@ static int st7701_get_modes(struct drm_panel *panel, DRM_DEV_ERROR(&st7701->dsi->dev, "failed to add mode %ux%ux@%u\n", desc_mode->hdisplay, desc_mode->vdisplay, - desc_mode->vrefresh); + drm_mode_vrefresh(desc_mode)); return -ENOMEM; }
drivers/gpu/drm/panel/panel-sitronix-st7789v.c +1 -2
@@ -165,7 +165,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 320 + 8, .vsync_end = 320 + 8 + 4, .vtotal = 320 + 8 + 4 + 4, - .vrefresh = 60, }; static int st7789v_get_modes(struct drm_panel *panel,
@@ -177,7 +176,7 @@ static int st7789v_get_modes(struct drm_panel *panel, if (!mode) { dev_err(panel->dev, "failed to add mode %ux%ux@%u\n", default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); + drm_mode_vrefresh(&default_mode)); return -ENOMEM; }
drivers/gpu/drm/panel/panel-sony-acx424akp.c +0 -2
@@ -57,7 +57,6 @@ static const struct drm_display_mode sony_acx424akp_vid_mode = { .vsync_start = 864 + 14, .vsync_end = 864 + 14 + 1, .vtotal = 864 + 14 + 1 + 11, - .vrefresh = 60, .width_mm = 48, .height_mm = 84, .flags = DRM_MODE_FLAG_PVSYNC,
@@ -81,7 +80,6 @@ static const struct drm_display_mode sony_acx424akp_cmd_mode = { * Some desired refresh rate, experiments at the maximum "pixel" * clock speed (HS clock 420 MHz) yields around 117Hz. */ - .vrefresh = 60, .width_mm = 48, .height_mm = 84, };
drivers/gpu/drm/panel/panel-sony-acx565akm.c +0 -1
@@ -514,7 +514,6 @@ static const struct drm_display_mode acx565akm_mode = { .vsync_start = 480 + 3, .vsync_end = 480 + 3 + 3, .vtotal = 480 + 3 + 3 + 4, - .vrefresh = 57, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 77,
drivers/gpu/drm/panel/panel-tpo-td028ttec1.c +0 -1
@@ -281,7 +281,6 @@ static const struct drm_display_mode td028ttec1_mode = { .vsync_start = 640 + 4, .vsync_end = 640 + 4 + 2, .vtotal = 640 + 4 + 2 + 2, - .vrefresh = 66, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 43,
drivers/gpu/drm/panel/panel-tpo-td043mtea1.c +0 -1
@@ -339,7 +339,6 @@ static const struct drm_display_mode td043mtea1_mode = { .vsync_start = 480 + 39, .vsync_end = 480 + 39 + 1, .vtotal = 480 + 39 + 1 + 34, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 94,
drivers/gpu/drm/panel/panel-tpo-tpg110.c +0 -5
@@ -112,7 +112,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 1, .vtotal = 480 + 10 + 1 + 35, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },
@@ -129,7 +128,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 480 + 18, .vsync_end = 480 + 18 + 1, .vtotal = 480 + 18 + 1 + 27, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },
@@ -146,7 +144,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 1, .vtotal = 272 + 2 + 1 + 12, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },
@@ -163,7 +160,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 640 + 4, .vsync_end = 640 + 4 + 1, .vtotal = 640 + 4 + 1 + 8, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },
@@ -180,7 +176,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 240 + 2, .vsync_end = 240 + 2 + 1, .vtotal = 240 + 2 + 1 + 20, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },
drivers/gpu/drm/panel/panel-truly-nt35597.c +0 -1
@@ -536,7 +536,6 @@ static const struct drm_display_mode qcom_sdm845_mtp_2k_mode = { .vsync_start = 2560 + 8, .vsync_end = 2560 + 8 + 1, .vtotal = 2560 + 8 + 1 + 7, - .vrefresh = 60, .flags = 0, };
drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c +1 -2
@@ -243,7 +243,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 22, .vsync_end = 1280 + 22 + 4, .vtotal = 1280 + 22 + 4 + 11, - .vrefresh = 60, .clock = 64000, .width_mm = 68, .height_mm = 121,
@@ -259,7 +258,7 @@ static int xpp055c272_get_modes(struct drm_panel *panel, if (!mode) { DRM_DEV_ERROR(ctx->dev, "Failed to add mode %ux%u@%u\n", default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); + drm_mode_vrefresh(&default_mode)); return -ENOMEM; }
drivers/gpu/drm/sti/sti_hda.c +0 -1
@@ -586,7 +586,6 @@ static int sti_hda_connector_get_modes(struct drm_connector *connector) &hda_supported_modes[i].mode); if (!mode) continue; - mode->vrefresh = drm_mode_vrefresh(mode); /* the first mode is the preferred mode */ if (i == 0)
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +0 -2
@@ -2226,7 +2226,6 @@ void vmw_guess_mode_timing(struct drm_display_mode *mode) mode->vtotal = mode->vsync_end + 50; mode->clock = (u32)mode->htotal * (u32)mode->vtotal / 100 * 6; - mode->vrefresh = drm_mode_vrefresh(mode); }
@@ -2300,7 +2299,6 @@ int vmw_du_connector_fill_modes(struct drm_connector *connector, mode = drm_mode_duplicate(dev, bmode); if (!mode) return 0; - mode->vrefresh = drm_mode_vrefresh(mode); drm_mode_probed_add(connector, mode); }
include/drm/drm_modes.h +1 -11
@@ -380,16 +380,6 @@ struct drm_display_mode { */ int private_flags; - /** - * @vrefresh: - * - * Vertical refresh rate, for debug output in human readable form. Not - * used in a functional way. - * - * This value is in Hz. - */ - int vrefresh; - /** * @picture_aspect_ratio: *
@@ -421,7 +411,7 @@ struct drm_display_mode { * @m: display mode */ #define DRM_MODE_ARG(m) \ - (m)->name, (m)->vrefresh, (m)->clock, \ + (m)->name, drm_mode_vrefresh(m), (m)->clock, \ (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ (m)->vdisplay, (m)->vsync_start, (m)->vsync_end, (m)->vtotal, \ (m)->type, (m)->flags
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 04/12] drm: Nuke mode->vrefresh
Quoted 10 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Get rid of
mode->vrefreshand just calculate it on demand. Saves a bit of space and avoids the cached value getting out of sync with reality.Mostly done with cocci, with the following manual fixups:
- Remove the now empty loop indrm_helper_probe_single_connector_modes()
- Fix__MODE()macro inch7006_mode.c
Speaking of ch7006_mode.c, it has its own "fixed vrefresh", which doesn't seem to be used anywhere.
One could potentially nuke it, although it can be a completely separate patch.
This patch is:
-Emil
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 04/12] drm: Nuke mode->vrefresh
In reply to Ville SyrjalaHi Ville.
Nice patch - and diffstat looks good:
Quoted 1 line
63 files changed, 217 insertions(+), 392 deletions(-)
There is an item in the Documentation/gpu/todo.rst that describes this.
Could you drop this from todo.rst in this patch too.
drivers/gpu/drm/mcde/mcde_dsi.c static void mcde_dsi_setup_video_mode(struct mcde_dsi *d, · line 544
Quoted 13 lines
drivers/gpu/drm/mcde/mcde_dsi.c +1
-1@@ -538,7 +538,7 @@ static void mcde_dsi_setup_video_mode(struct mcde_dsi *d,*/ /* (ps/s) / (pixels/s) = ps/pixels */ pclk =DIV_ROUND_UP_ULL (1000000000000 , - (mode->vrefresh * mode->htotal * mode->vtotal)); + (drm_mode_vrefresh (mode) * mode->htotal * mode->vtotal));dev_dbg (d->dev,"picoseconds between two pixels: %llu\n" , pclk);
This just caught my eye while browsing the patch.
It looks like a backward way to get the clock.
But patch is fine, it was just a drive-by comment.
Whole patch is:
(with or without removal of todo item added)
Sam
Re: [PATCH 04/12] drm: Nuke mode->vrefresh
Quoted 8 lines · Sam Ravnborg
Hi Ville.
Nice patch - and diffstat looks good:
Quoted 1 line
63 files changed, 217 insertions(+), 392 deletions(-)There is an item in the
Documentation/gpu/todo.rstthat describes this.
Could you drop this fromtodo.rstin this patch too.
Yeah, missed the TODO. Looks like there's one for hsync removal as well.
Quoted 17 lines
Quoted 6 lines
drivers/gpu/drm/mcde/mcde_dsi.c +0
-0drivers/gpu/drm/mcde/mcde_dsi.c static void mcde_dsi_setup_video_mode(struct mcde_dsi *d, · line 544
Quoted 8 lines
drivers/gpu/drm/mcde/mcde_dsi.c +1
-1@@ -538,7 +538,7 @@ static void mcde_dsi_setup_video_mode(struct mcde_dsi *d,*/ /* (ps/s) / (pixels/s) = ps/pixels */ pclk =DIV_ROUND_UP_ULL (1000000000000 , - (mode->vrefresh * mode->htotal * mode->vtotal)); + (drm_mode_vrefresh (mode) * mode->htotal * mode->vtotal));dev_dbg (d->dev,"picoseconds between two pixels: %llu\n" , pclk);This just caught my eye while browsing the patch.
It looks like a backward way to get the clock.
Yep. I'll cook up a patch to switch this to ->clock.
Quoted 8 lines
But patch is fine, it was just a drive-by comment.
Whole patch is:
Reviewed-by Sam Ravnborg <[email protected]>(with or without removal of todo item added)
Sam
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 04/12] drm: Nuke mode->vrefresh
In reply to Ville SyrjalaQuoted 11 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Get rid of
mode->vrefreshand just calculate it on demand. Saves a bit of space and avoids the cached value getting out of sync with reality.Mostly done with cocci, with the following manual fixups:
- Remove the now empty loop indrm_helper_probe_single_connector_modes()
- Fix__MODE()macro inch7006_mode.c
- FixDRM_MODE_ARG()macro indrm_modes.h
- Remove leftover comment fromsamsung_s6d16d0_mode
...
drivers/gpu/drm/panel/panel-arm-versatile.c static const struct versatile_panel_type versatile_panels[] = { · line 146
Quoted 9 lines
drivers/gpu/drm/panel/panel-arm-versatile.c +0
-1@@ -143,7 +143,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 240 + 5, .vsync_end = 240 + 5 + 6, .vtotal = 240 + 5 + 6 + 5, - .vrefresh = 116,
Are you sure vrefresh calculated (from totals and clock) is different than this field? If not, we risk regressions.
This case is OK, but there is plenty other cases.
Regards
Andrzej
Quoted 1,605 lines
drivers/gpu/drm/panel/panel-arm-versatile.c +0
-3.flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, },@@ -167,7 +166,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 480 + 11, .vsync_end = 480 + 11 + 2, .vtotal = 480 + 11 + 2 + 32, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, },@@ -190,7 +188,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 220 + 0, .vsync_end = 220 + 0 + 2, .vtotal = 220 + 0 + 2 + 1, - .vrefresh = 390, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,@@ -214,7 +211,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 320 + 2, .vsync_end = 320 + 2 + 2, .vtotal = 320 + 2 + 2 + 2, - .vrefresh = 116, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,drivers/gpu/drm/panel/panel-boe-himax8279d.c +1
-2@@ -229,7 +229,7 @@ static int boe_panel_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {DRM_DEV_ERROR (pinfo->base.dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay,drm_mode_vrefresh (m));return -ENOMEM ; }@@ -262,7 +262,6 @@ static const struct drm_display_mode default_display_mode = { .vsync_start = 1920 + 10, .vsync_end = 1920 + 10 + 14, .vtotal = 1920 + 10 + 14 + 4, - .vrefresh = 60, };/* 8 inch */ drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +1
-5@@ -594,7 +594,6 @@ static const struct drm_display_mode boe_tv101wum_nl6_default_mode = { .vsync_start = 1920 + 10, .vsync_end = 1920 + 10 + 14, .vtotal = 1920 + 10 + 14 + 4, - .vrefresh = 60, };static const struct panel_desc boe_tv101wum_nl6_desc = {@@ -622,7 +621,6 @@ static const struct drm_display_mode auo_kd101n80_45na_default_mode = { .vsync_start = 1920 + 16, .vsync_end = 1920 + 16 + 4, .vtotal = 1920 + 16 + 4 + 16, - .vrefresh = 60, };static const struct panel_desc auo_kd101n80_45na_desc = {@@ -650,7 +648,6 @@ static const struct drm_display_mode boe_tv101wum_n53_default_mode = { .vsync_start = 1920 + 20, .vsync_end = 1920 + 20 + 4, .vtotal = 1920 + 20 + 4 + 10, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };@@ -678,7 +675,6 @@ static const struct drm_display_mode auo_b101uan08_3_default_mode = { .vsync_start = 1920 + 34, .vsync_end = 1920 + 34 + 2, .vtotal = 1920 + 34 + 2 + 24, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };@@ -706,7 +702,7 @@ static int boe_panel_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay,drm_mode_vrefresh (m));return -ENOMEM ; }drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c +1
-2@@ -392,7 +392,6 @@ static int k101_im2ba02_unprepare(struct drm_panel *panel)static const struct drm_display_mode k101_im2ba02_default_mode = { .clock =70000 , - .vrefresh =60 , .hdisplay =800 , .hsync_start =800 +20 ,@@ -420,7 +419,7 @@ static int k101_im2ba02_get_modes(struct drm_panel *panel,DRM_DEV_ERROR (&ctx->dsi->dev,"failed to add mode %ux%ux@%u\n" , k101_im2ba02_default_mode.hdisplay, k101_im2ba02_default_mode.vdisplay, - k101_im2ba02_default_mode.vrefresh); +drm_mode_vrefresh (&k101_im2ba02_default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c +1
-2@@ -153,7 +153,6 @@ static const struct drm_display_mode feiyang_default_mode = { .vsync_start = 600 + 12, .vsync_end = 600 + 12 + 2, .vtotal = 600 + 12 + 2 + 21, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };@@ -169,7 +168,7 @@ static int feiyang_get_modes(struct drm_panel *panel,DRM_DEV_ERROR (&ctx->dsi->dev,"failed to add mode %ux%ux@%u\n" , feiyang_default_mode.hdisplay, feiyang_default_mode.vdisplay, - feiyang_default_mode.vrefresh); +drm_mode_vrefresh (&feiyang_default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-ilitek-ili9322.c +0
-7@@ -549,7 +549,6 @@ static const struct drm_display_mode srgb_320x240_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 1, .vtotal = 262, - .vrefresh = 60, .flags = 0, };@@ -563,7 +562,6 @@ static const struct drm_display_mode srgb_360x240_mode = { .vsync_start = 240 + 21, .vsync_end = 240 + 21 + 1, .vtotal = 262, - .vrefresh = 60, .flags = 0, };@@ -578,7 +576,6 @@ static const struct drm_display_mode prgb_320x240_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 1, .vtotal = 262, - .vrefresh = 60, .flags = 0, };@@ -593,7 +590,6 @@ static const struct drm_display_mode yuv_640x320_mode = { .vsync_start = 320 + 4, .vsync_end = 320 + 4 + 1, .vtotal = 320 + 4 + 1 + 18, - .vrefresh = 60, .flags = 0, };@@ -607,7 +603,6 @@ static const struct drm_display_mode yuv_720x360_mode = { .vsync_start = 360 + 4, .vsync_end = 360 + 4 + 1, .vtotal = 360 + 4 + 1 + 18, - .vrefresh = 60, .flags = 0, };@@ -622,7 +617,6 @@ static const struct drm_display_mode itu_r_bt_656_640_mode = { .vsync_start = 480 + 4, .vsync_end = 480 + 4 + 1, .vtotal = 500, - .vrefresh = 60, .flags = 0, };@@ -637,7 +631,6 @@ static const struct drm_display_mode itu_r_bt_656_720_mode = { .vsync_start = 480 + 4, .vsync_end = 480 + 4 + 1, .vtotal = 500, - .vrefresh = 60, .flags = 0, };drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +1
-2@@ -370,7 +370,6 @@ static int ili9881c_unprepare(struct drm_panel *panel)static const struct drm_display_mode bananapi_default_mode = { .clock =62000 , - .vrefresh =60 , .hdisplay =720 , .hsync_start =720 +10 ,@@ -394,7 +393,7 @@ static int ili9881c_get_modes(struct drm_panel *panel,dev_err (&ctx->dsi->dev,"failed to add mode %ux%ux@%u\n" , bananapi_default_mode.hdisplay, bananapi_default_mode.vdisplay, - bananapi_default_mode.vrefresh); +drm_mode_vrefresh (&bananapi_default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-innolux-p079zca.c +1
-3@@ -223,7 +223,6 @@ static const struct drm_display_mode innolux_p079zca_mode = { .vsync_start = 1024 + 20, .vsync_end = 1024 + 20 + 4, .vtotal = 1024 + 20 + 4 + 20, - .vrefresh = 60, };static const struct panel_desc innolux_p079zca_panel_desc = {@@ -257,7 +256,6 @@ static const struct drm_display_mode innolux_p097pfg_mode = { .vsync_start = 2048 + 100, .vsync_end = 2048 + 100 + 2, .vtotal = 2048 + 100 + 2 + 18, - .vrefresh = 60, };/* @@ -401,7 +399,7 @@ static int innolux_panel_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {DRM_DEV_ERROR (panel->dev,"failed to add mode %ux%ux@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay,drm_mode_vrefresh (m));return -ENOMEM ; }drivers/gpu/drm/panel/panel-jdi-lt070me05000.c +1
-2@@ -296,7 +296,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1920 + 3, .vsync_end = 1920 + 3 + 5, .vtotal = 1920 + 3 + 5 + 6, - .vrefresh = 60, .flags = 0, };@@ -311,7 +310,7 @@ static int jdi_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c +1
-2@@ -318,7 +318,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 2048 + 95, .vsync_end = 2048 + 95 + 2, .vtotal = 2048 + 95 + 2 + 23, - .vrefresh = 60, }; static int kingdisplay_panel_get_modes(struct drm_panel *panel,@@ -330,7 +329,7 @@ static int kingdisplay_panel_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c +1
-2@@ -376,7 +376,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 30, .vsync_end = 1280 + 30 + 4, .vtotal = 1280 + 30 + 4 + 12, - .vrefresh = 60, .clock = 41600, .width_mm = 62, .height_mm = 110,@@ -392,7 +391,7 @@ static int ltk500hd1829_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (ctx->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-lg-lb035q02.c +0
-1@@ -134,7 +134,6 @@ static const struct drm_display_mode lb035q02_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 2, .vtotal = 240 + 4 + 2 + 18, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 70,drivers/gpu/drm/panel/panel-lg-lg4573.c +1
-2@@ -206,7 +206,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 800 + 15, .vsync_end = 800 + 15 + 15, .vtotal = 800 + 15 + 15 + 15, - .vrefresh = 60, }; static int lg4573_get_modes(struct drm_panel *panel,@@ -218,7 +217,7 @@ static int lg4573_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-nec-nl8048hl11.c +0
-1@@ -116,7 +116,6 @@ static const struct drm_display_mode nl8048_mode = { .vsync_start = 480 + 3, .vsync_end = 480 + 3 + 1, .vtotal = 480 + 3 + 1 + 4, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 89,drivers/gpu/drm/panel/panel-novatek-nt39016.c +0
-1@@ -327,7 +327,6 @@ static const struct nt39016_panel_info kd035g6_info = { .vsync_start = 240 + 5, .vsync_end = 240 + 5 + 1, .vtotal = 240 + 5 + 1 + 4, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, }, .width_mm = 71,drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c +0
-1@@ -170,7 +170,6 @@ static int lcd_olinuxino_get_modes(struct drm_panel *panel, lcd_mode->vpw; mode->vtotal = lcd_mode->vactive + lcd_mode->vfp + lcd_mode->vpw + lcd_mode->vbp; - mode->vrefresh = lcd_mode->refresh;/* Always make the first mode preferred */ if (i ==0 )drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +1
-2@@ -81,7 +81,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 800 + 15, .vsync_end = 800 + 15 + 10, .vtotal = 800 + 15 + 10 + 14, - .vrefresh = 50, .flags = 0, .width_mm = 52, .height_mm = 86,@@ -358,7 +357,7 @@ static int otm8009a_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c +1
-2@@ -102,7 +102,6 @@ static const struct drm_display_mode default_mode_osd101t2587 = { .vsync_start = 1200 + 24, .vsync_end = 1200 + 24 + 6, .vtotal = 1200 + 24 + 6 + 48, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -117,7 +116,7 @@ static int osd101t2587_panel_get_modes(struct drm_panel *panel,dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , osd101t2587->default_mode->hdisplay, osd101t2587->default_mode->vdisplay, - osd101t2587->default_mode->vrefresh); +drm_mode_vrefresh (osd101t2587->default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +1
-2@@ -149,7 +149,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1200 + 24, .vsync_end = 1200 + 24 + 6, .vtotal = 1200 + 24 + 6 + 48, - .vrefresh = 60, }; static int wuxga_nt_panel_get_modes(struct drm_panel *panel,@@ -161,7 +160,7 @@ static int wuxga_nt_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c +2
-2@@ -209,7 +209,6 @@ static const struct drm_display_mode rpi_touchscreen_modes[] = { .vsync_start = 480 + 7, .vsync_end = 480 + 7 + 2, .vtotal = 480 + 7 + 2 + 21, - .vrefresh = 60, }, };@@ -322,7 +321,8 @@ static int rpi_touchscreen_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay, +drm_mode_vrefresh (m));continue ; }drivers/gpu/drm/panel/panel-raydium-rm67191.c +1
-2@@ -218,7 +218,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1920 + 10, .vsync_end = 1920 + 10 + 2, .vtotal = 1920 + 10 + 2 + 4, - .vrefresh = 60, .width_mm = 68, .height_mm = 121, .flags = DRM_MODE_FLAG_NHSYNC |@@ -445,7 +444,7 @@ static int rad_panel_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-raydium-rm68200.c +1
-2@@ -92,7 +92,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 12, .vsync_end = 1280 + 12 + 4, .vtotal = 1280 + 12 + 4 + 12, - .vrefresh = 50, .flags = 0, .width_mm = 68, .height_mm = 122,@@ -339,7 +338,7 @@ static int rm68200_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c +2
-3@@ -223,7 +223,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1440 + 20, .vsync_end = 1440 + 20 + 4, .vtotal = 1440 + 20 + 4 + 12, - .vrefresh = 60, .clock = 75276, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 65,@@ -240,7 +239,7 @@ static int jh057n_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (ctx->dev,"Failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }@@ -360,7 +359,7 @@ static int jh057n_probe(struct mipi_dsi_device *dsi)DRM_DEV_INFO (dev,"%ux%u@%u %ubpp dsi %udl - ready\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh, +drm_mode_vrefresh (&default_mode),mipi_dsi_pixel_format_to_bpp (dsi->format), dsi->lanes);jh057n_debugfs_init (ctx);drivers/gpu/drm/panel/panel-ronbo-rb070d30.c +0
-1@@ -103,7 +103,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 600 + 12, .vsync_end = 600 + 12 + 10, .vtotal = 600 + 12 + 10 + 13, - .vrefresh = 60, .width_mm = 154, .height_mm = 85,drivers/gpu/drm/panel/panel-samsung-s6d16d0.c +0
-6@@ -37,12 +37,6 @@ static const struct drm_display_mode samsung_s6d16d0_mode = { .vsync_start = 480 + 1, .vsync_end = 480 + 1 + 1, .vtotal = 480 + 1 + 1 + 1, -/* -* This depends on the clocking HS vs LP rate, this value -* is calculated as: -* vrefresh = (clock * 1000) / (htotal*vtotal) -*/ - .vrefresh = 816, .width_mm = 84, .height_mm = 48, };drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c +1
-3@@ -617,7 +617,6 @@ static const struct drm_display_mode s6e3ha2_mode = { .vsync_start = 2560 + 1, .vsync_end = 2560 + 1 + 1, .vtotal = 2560 + 1 + 1 + 15, - .vrefresh = 60, .flags = 0, };@@ -636,7 +635,6 @@ static const struct drm_display_mode s6e3hf2_mode = { .vsync_start = 2560 + 1, .vsync_end = 2560 + 1 + 1, .vtotal = 2560 + 1 + 1 + 15, - .vrefresh = 60, .flags = 0, };@@ -655,7 +653,7 @@ static int s6e3ha2_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , ctx->desc->mode->hdisplay, ctx->desc->mode->vdisplay, - ctx->desc->mode->vrefresh); +drm_mode_vrefresh (ctx->desc->mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c +1
-2@@ -52,7 +52,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 320 + 150, .vsync_end = 320 + 150 + 1, .vtotal = 320 + 150 + 1 + 2, - .vrefresh = 30, .flags = 0, };@@ -409,7 +408,7 @@ static int s6e63j0x03_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +1
-2@@ -117,7 +117,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 800 + 28, .vsync_end = 800 + 28 + 2, .vtotal = 800 + 28 + 2 + 1, - .vrefresh = 60, .width_mm = 53, .height_mm = 89, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,@@ -371,7 +370,7 @@ static int s6e63m0_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c +0
-1@@ -177,7 +177,6 @@ static const struct drm_display_mode s6e88a0_ams452ef01_mode = { .vsync_start = 960 + 14, .vsync_end = 960 + 14 + 2, .vtotal = 960 + 14 + 2 + 8, - .vrefresh = 60, .width_mm = 56, .height_mm = 100, };drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +2
-1@@ -92,7 +92,8 @@ static int seiko_panel_get_fixed_modes(struct seiko_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->base.dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay, +drm_mode_vrefresh (m));continue ; }drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c +1
-2@@ -269,7 +269,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1600 + 4, .vsync_end = 1600 + 4 + 8, .vtotal = 1600 + 4 + 8 + 32, - .vrefresh = 60, }; static int sharp_panel_get_modes(struct drm_panel *panel,@@ -281,7 +280,7 @@ static int sharp_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c +0
-1@@ -93,7 +93,6 @@ static const struct drm_display_mode ls037v7dw01_mode = { .vsync_start = 640 + 1, .vsync_end = 640 + 1 + 1, .vtotal = 640 + 1 + 1 + 1, - .vrefresh = 58, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 56,drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c +1
-2@@ -201,7 +201,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 960 + 3, .vsync_end = 960 + 3 + 15, .vtotal = 960 + 3 + 15 + 1, - .vrefresh = 60, }; static int sharp_nt_panel_get_modes(struct drm_panel *panel,@@ -213,7 +212,7 @@ static int sharp_nt_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-simple.c +2
-83@@ -161,7 +161,8 @@ static unsigned int panel_simple_get_display_modes(struct panel_simple *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->base.dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay, +drm_mode_vrefresh (m));continue ; }@@ -494,7 +495,6 @@ static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 10, .vtotal = 272 + 2 + 10 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -519,7 +519,6 @@ static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = { .vsync_start = 480 + 2, .vsync_end = 480 + 2 + 45, .vtotal = 480 + 2 + 45 + 0, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -570,7 +569,6 @@ static const struct drm_display_mode auo_b101aw03_mode = { .vsync_start = 600 + 16, .vsync_end = 600 + 16 + 6, .vtotal = 600 + 16 + 6 + 16, - .vrefresh = 60, };static const struct panel_desc auo_b101aw03 = {@@ -615,7 +613,6 @@ static const struct drm_display_mode auo_b101xtn01_mode = { .vsync_start = 768 + 14, .vsync_end = 768 + 14 + 42, .vtotal = 768 + 14 + 42, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -639,7 +636,6 @@ static const struct drm_display_mode auo_b116xak01_mode = { .vsync_start = 768 + 4, .vsync_end = 768 + 4 + 6, .vtotal = 768 + 4 + 6 + 15, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -668,7 +664,6 @@ static const struct drm_display_mode auo_b116xw03_mode = { .vsync_start = 768 + 10, .vsync_end = 768 + 10 + 12, .vtotal = 768 + 10 + 12 + 6, - .vrefresh = 60, };static const struct panel_desc auo_b116xw03 = {@@ -691,7 +686,6 @@ static const struct drm_display_mode auo_b133xtn01_mode = { .vsync_start = 768 + 3, .vsync_end = 768 + 3 + 6, .vtotal = 768 + 3 + 6 + 13, - .vrefresh = 60, };static const struct panel_desc auo_b133xtn01 = {@@ -714,7 +708,6 @@ static const struct drm_display_mode auo_b133htn01_mode = { .vsync_start = 1080 + 25, .vsync_end = 1080 + 25 + 10, .vtotal = 1080 + 25 + 10 + 10, - .vrefresh = 60, };static const struct panel_desc auo_b133htn01 = {@@ -770,7 +763,6 @@ static const struct drm_display_mode auo_g101evn010_mode = { .vsync_start = 800 + 8, .vsync_end = 800 + 8 + 2, .vtotal = 800 + 8 + 2 + 6, - .vrefresh = 60, };static const struct panel_desc auo_g101evn010 = {@@ -794,7 +786,6 @@ static const struct drm_display_mode auo_g104sn02_mode = { .vsync_start = 600 + 10, .vsync_end = 600 + 10 + 35, .vtotal = 600 + 10 + 35 + 2, - .vrefresh = 60, };static const struct panel_desc auo_g104sn02 = {@@ -906,7 +897,6 @@ static const struct drm_display_mode auo_t215hvn01_mode = { .vsync_start = 1080 + 4, .vsync_end = 1080 + 4 + 5, .vtotal = 1080 + 4 + 5 + 36, - .vrefresh = 60, };static const struct panel_desc auo_t215hvn01 = {@@ -933,7 +923,6 @@ static const struct drm_display_mode avic_tm070ddh03_mode = { .vsync_start = 600 + 17, .vsync_end = 600 + 17 + 1, .vtotal = 600 + 17 + 1 + 17, - .vrefresh = 60, };static const struct panel_desc avic_tm070ddh03 = {@@ -983,7 +972,6 @@ static const struct drm_display_mode boe_hv070wsa_mode = { .vsync_start = 600 + 10, .vsync_end = 600 + 10 + 10, .vtotal = 600 + 10 + 10 + 10, - .vrefresh = 60, };static const struct panel_desc boe_hv070wsa = {@@ -1006,7 +994,6 @@ static const struct drm_display_mode boe_nv101wxmn51_modes[] = { .vsync_start = 800 + 3, .vsync_end = 800 + 3 + 5, .vtotal = 800 + 3 + 5 + 24, - .vrefresh = 60, }, { .clock = 57500,@@ -1018,7 +1005,6 @@ static const struct drm_display_mode boe_nv101wxmn51_modes[] = { .vsync_start = 800 + 3, .vsync_end = 800 + 3 + 5, .vtotal = 800 + 3 + 5 + 24, - .vrefresh = 48, }, };@@ -1048,7 +1034,6 @@ static const struct drm_display_mode boe_nv140fhmn49_modes[] = { .vsync_start = 1080 + 3, .vsync_end = 1080 + 3 + 5, .vtotal = 1125, - .vrefresh = 60, }, };@@ -1079,7 +1064,6 @@ static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = { .vsync_start = 272 + 8, .vsync_end = 272 + 8 + 8, .vtotal = 272 + 8 + 8 + 8, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1104,7 +1088,6 @@ static const struct drm_display_mode cdtech_s070wv95_ct16_mode = { .vsync_start = 480 + 29, .vsync_end = 480 + 29 + 13, .vtotal = 480 + 29 + 13 + 3, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1128,7 +1111,6 @@ static const struct drm_display_mode chunghwa_claa070wp03xg_mode = { .vsync_start = 1280 + 1, .vsync_end = 1280 + 1 + 7, .vtotal = 1280 + 1 + 7 + 15, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1152,7 +1134,6 @@ static const struct drm_display_mode chunghwa_claa101wa01a_mode = { .vsync_start = 768 + 4, .vsync_end = 768 + 4 + 4, .vtotal = 768 + 4 + 4 + 4, - .vrefresh = 60, };static const struct panel_desc chunghwa_claa101wa01a = {@@ -1175,7 +1156,6 @@ static const struct drm_display_mode chunghwa_claa101wb01_mode = { .vsync_start = 768 + 16, .vsync_end = 768 + 16 + 8, .vtotal = 768 + 16 + 8 + 16, - .vrefresh = 60, };static const struct panel_desc chunghwa_claa101wb01 = {@@ -1198,7 +1178,6 @@ static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 2, .vtotal = 480 + 10 + 2 + 33, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1285,7 +1264,6 @@ static const struct drm_display_mode edt_et035012dm6_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 4, .vtotal = 240 + 4 + 4 + 14, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1317,7 +1295,6 @@ static const struct drm_display_mode edt_etm043080dh6gp_mode = { .vsync_start = 288 + 2, .vsync_end = 288 + 2 + 4, .vtotal = 288 + 2 + 4 + 10, - .vrefresh = 60, };static const struct panel_desc edt_etm043080dh6gp = {@@ -1342,7 +1319,6 @@ static const struct drm_display_mode edt_etm0430g0dh6_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 10, .vtotal = 272 + 2 + 10 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1366,7 +1342,6 @@ static const struct drm_display_mode edt_et057090dhu_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 3, .vtotal = 480 + 10 + 3 + 32, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1392,7 +1367,6 @@ static const struct drm_display_mode edt_etm0700g0dh6_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 2, .vtotal = 480 + 10 + 2 + 33, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1457,7 +1431,6 @@ static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = { .vsync_start = 480 + 37, .vsync_end = 480 + 37 + 2, .vtotal = 480 + 37 + 2 + 8, - .vrefresh = 60, };static const struct panel_desc foxlink_fl500wvr00_a0t = {@@ -1481,7 +1454,6 @@ static const struct drm_display_mode frida_frd350h54004_mode = { .vsync_start = 240 + 2, .vsync_end = 240 + 2 + 6, .vtotal = 240 + 2 + 6 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -1508,7 +1480,6 @@ static const struct drm_display_mode friendlyarm_hd702e_mode = { .vsync_start = 1280 + 4, .vsync_end = 1280 + 4 + 8, .vtotal = 1280 + 4 + 8 + 4, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1531,7 +1502,6 @@ static const struct drm_display_mode giantplus_gpg482739qs5_mode = { .vsync_start = 272 + 8, .vsync_end = 272 + 8 + 1, .vtotal = 272 + 8 + 1 + 8, - .vrefresh = 60, };static const struct panel_desc giantplus_gpg482739qs5 = {@@ -1635,7 +1605,6 @@ static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = { .vsync_start = 480 + 16, .vsync_end = 480 + 16 + 13, .vtotal = 480 + 16 + 13 + 16, - .vrefresh = 60, };static const struct panel_desc hitachi_tx23d38vm0caa = {@@ -1662,7 +1631,6 @@ static const struct drm_display_mode innolux_at043tn24_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 10, .vtotal = 272 + 2 + 10 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1688,7 +1656,6 @@ static const struct drm_display_mode innolux_at070tn92_mode = { .vsync_start = 480 + 22, .vsync_end = 480 + 22 + 10, .vtotal = 480 + 22 + 23 + 10, - .vrefresh = 60, };static const struct panel_desc innolux_at070tn92 = {@@ -1799,7 +1766,6 @@ static const struct drm_display_mode innolux_g121x1_l03_mode = { .vsync_start = 768 + 38, .vsync_end = 768 + 38 + 1, .vtotal = 768 + 38 + 1 + 0, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1861,7 +1827,6 @@ static const struct drm_display_mode innolux_n156bge_l21_mode = { .vsync_start = 768 + 2, .vsync_end = 768 + 2 + 6, .vtotal = 768 + 2 + 6 + 12, - .vrefresh = 60, };static const struct panel_desc innolux_n156bge_l21 = {@@ -1884,7 +1849,6 @@ static const struct drm_display_mode innolux_p120zdg_bf1_mode = { .vsync_start = 1440 + 3, .vsync_end = 1440 + 3 + 10, .vtotal = 1440 + 3 + 10 + 27, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -1912,7 +1876,6 @@ static const struct drm_display_mode innolux_zj070na_01p_mode = { .vsync_start = 600 + 16, .vsync_end = 600 + 16 + 4, .vtotal = 600 + 16 + 4 + 16, - .vrefresh = 60, };static const struct panel_desc innolux_zj070na_01p = {@@ -2008,7 +1971,6 @@ static const struct drm_display_mode lemaker_bl035_rgb_002_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 3, .vtotal = 240 + 4 + 3 + 15, - .vrefresh = 60, };static const struct panel_desc lemaker_bl035_rgb_002 = {@@ -2032,7 +1994,6 @@ static const struct drm_display_mode lg_lb070wv8_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 25, .vtotal = 480 + 10 + 25 + 10, - .vrefresh = 60, };static const struct panel_desc lg_lb070wv8 = {@@ -2057,7 +2018,6 @@ static const struct drm_display_mode lg_lp079qx1_sp0v_mode = { .vsync_start = 2048 + 8, .vsync_end = 2048 + 8 + 4, .vtotal = 2048 + 8 + 4 + 8, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2080,7 +2040,6 @@ static const struct drm_display_mode lg_lp097qx1_spa1_mode = { .vsync_start = 1536 + 3, .vsync_end = 1536 + 3 + 1, .vtotal = 1536 + 3 + 1 + 9, - .vrefresh = 60, };static const struct panel_desc lg_lp097qx1_spa1 = {@@ -2102,7 +2061,6 @@ static const struct drm_display_mode lg_lp120up1_mode = { .vsync_start = 1280 + 4, .vsync_end = 1280 + 4 + 4, .vtotal = 1280 + 4 + 4 + 12, - .vrefresh = 60, };static const struct panel_desc lg_lp120up1 = {@@ -2125,7 +2083,6 @@ static const struct drm_display_mode lg_lp129qe_mode = { .vsync_start = 1700 + 3, .vsync_end = 1700 + 3 + 10, .vtotal = 1700 + 3 + 10 + 36, - .vrefresh = 60, };static const struct panel_desc lg_lp129qe = {@@ -2206,7 +2163,6 @@ static const struct drm_display_mode mitsubishi_aa070mc01_mode = { .vsync_start = 480 + 0, .vsync_end = 480 + 48 + 1, .vtotal = 480 + 48 + 1 + 0, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -2221,7 +2177,6 @@ static const struct drm_display_mode logicpd_type_28_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 11, .vtotal = 272 + 2 + 11 + 3, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -2301,7 +2256,6 @@ static const struct drm_display_mode nec_nl4827hc19_05b_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 4, .vtotal = 272 + 2 + 4 + 2, - .vrefresh = 74, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2327,7 +2281,6 @@ static const struct drm_display_mode netron_dy_e231732_mode = { .vsync_start = 600 + 127, .vsync_end = 600 + 127 + 20, .vtotal = 600 + 127 + 20 + 3, - .vrefresh = 60, };static const struct panel_desc netron_dy_e231732 = {@@ -2350,7 +2303,6 @@ static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 10, .vtotal = 272 + 2 + 10 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2458,7 +2410,6 @@ static const struct drm_display_mode olimex_lcd_olinuxino_43ts_mode = { .vsync_start = 272 + 8, .vsync_end = 272 + 8 + 5, .vtotal = 272 + 8 + 5 + 3, - .vrefresh = 60, };static const struct panel_desc olimex_lcd_olinuxino_43ts = {@@ -2486,7 +2437,6 @@ static const struct drm_display_mode ontat_yx700wv03_mode = { .vsync_start = 483, .vsync_end = 493, .vtotal = 500, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2515,7 +2465,6 @@ static const struct drm_display_mode ortustech_com37h3m_mode = { .vsync_start = 640 + 4, .vsync_end = 640 + 4 + 3, .vtotal = 640 + 4 + 3 + 4, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2542,7 +2491,6 @@ static const struct drm_display_mode ortustech_com43h4m85ulc_mode = { .vsync_start = 800 + 3, .vsync_end = 800 + 3 + 3, .vtotal = 800 + 3 + 3 + 3, - .vrefresh = 60, };static const struct panel_desc ortustech_com43h4m85ulc = {@@ -2567,7 +2515,6 @@ static const struct drm_display_mode osddisplays_osd070t1718_19ts_mode = { .vsync_start = 480 + 22, .vsync_end = 480 + 22 + 13, .vtotal = 480 + 22 + 13 + 10, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2594,7 +2541,6 @@ static const struct drm_display_mode pda_91_00156_a0_mode = { .vsync_start = 480 + 1, .vsync_end = 480 + 1 + 23, .vtotal = 480 + 1 + 23 + 22, - .vrefresh = 60, };static const struct panel_desc pda_91_00156_a0 = {@@ -2618,7 +2564,6 @@ static const struct drm_display_mode qd43003c0_40_mode = { .vsync_start = 272 + 4, .vsync_end = 272 + 4 + 10, .vtotal = 272 + 4 + 10 + 2, - .vrefresh = 60, };static const struct panel_desc qd43003c0_40 = {@@ -2672,7 +2617,6 @@ static const struct drm_display_mode rocktech_rk101ii01d_ct_mode = { .vsync_start = 800 + 2, .vsync_end = 800 + 2 + 5, .vtotal = 800 + 2 + 5 + 16, - .vrefresh = 60, };static const struct panel_desc rocktech_rk101ii01d_ct = {@@ -2701,7 +2645,6 @@ static const struct drm_display_mode samsung_lsn122dl01_c01_mode = { .vsync_start = 1600 + 2, .vsync_end = 1600 + 2 + 5, .vtotal = 1600 + 2 + 5 + 57, - .vrefresh = 60, };static const struct panel_desc samsung_lsn122dl01_c01 = {@@ -2723,7 +2666,6 @@ static const struct drm_display_mode samsung_ltn101nt05_mode = { .vsync_start = 600 + 3, .vsync_end = 600 + 3 + 6, .vtotal = 600 + 3 + 6 + 61, - .vrefresh = 60, };static const struct panel_desc samsung_ltn101nt05 = {@@ -2746,7 +2688,6 @@ static const struct drm_display_mode samsung_ltn140at29_301_mode = { .vsync_start = 768 + 2, .vsync_end = 768 + 2 + 5, .vtotal = 768 + 2 + 5 + 17, - .vrefresh = 60, };static const struct panel_desc samsung_ltn140at29_301 = {@@ -2793,7 +2734,6 @@ static const struct drm_display_mode sharp_ld_d5116z01b_mode = { .vsync_start = 1280 + 3, .vsync_end = 1280 + 3 + 10, .vtotal = 1280 + 3 + 10 + 57, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -2819,7 +2759,6 @@ static const struct drm_display_mode sharp_lq070y3dg3b_mode = { .vsync_start = 480 + 8, .vsync_end = 480 + 8 + 2, .vtotal = 480 + 8 + 2 + 35, - .vrefresh = 60, .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE, };@@ -2846,7 +2785,6 @@ static const struct drm_display_mode sharp_lq035q7db03_mode = { .vsync_start = 320 + 9, .vsync_end = 320 + 9 + 1, .vtotal = 320 + 9 + 1 + 7, - .vrefresh = 60, };static const struct panel_desc sharp_lq035q7db03 = {@@ -2923,7 +2861,6 @@ static const struct drm_display_mode sharp_lq150x1lg11_mode = { .vsync_start = 768 + 37, .vsync_end = 768 + 37 + 2, .vtotal = 768 + 37 + 2 + 8, - .vrefresh = 60, };static const struct panel_desc sharp_lq150x1lg11 = {@@ -2974,7 +2911,6 @@ static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = { .vsync_start = 480 + 1, .vsync_end = 480 + 1 + 23, .vtotal = 480 + 1 + 23 + 22, - .vrefresh = 60, };static const struct panel_desc shelly_sca07010_bfn_lnn = {@@ -2997,7 +2933,6 @@ static const struct drm_display_mode starry_kr122ea0sra_mode = { .vsync_start = 1200 + 15, .vsync_end = 1200 + 15 + 2, .vtotal = 1200 + 15 + 2 + 18, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -3025,7 +2960,6 @@ static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = { .vsync_start = 480 + 13, .vsync_end = 480 + 13 + 2, .vtotal = 480 + 13 + 2 + 29, - .vrefresh = 62, };static const struct panel_desc tfc_s9700rtwv43tr_01b = {@@ -3101,7 +3035,6 @@ static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = { .vsync_start = 240 + 3, .vsync_end = 240 + 3 + 1, .vtotal = 240 + 3 + 1 + 17, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, }, };@@ -3129,7 +3062,6 @@ static const struct drm_display_mode ti_nspire_classic_lcd_mode[] = { .vsync_start = 240 + 0, .vsync_end = 240 + 0 + 1, .vtotal = 240 + 0 + 1 + 0, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, };@@ -3158,7 +3090,6 @@ static const struct drm_display_mode toshiba_lt089ac29000_mode = { .vsync_start = 768 + 20, .vsync_end = 768 + 20 + 7, .vtotal = 768 + 20 + 7 + 3, - .vrefresh = 60, };static const struct panel_desc toshiba_lt089ac29000 = {@@ -3183,7 +3114,6 @@ static const struct drm_display_mode tpk_f07a_0102_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 2, .vtotal = 480 + 10 + 2 + 33, - .vrefresh = 60, };static const struct panel_desc tpk_f07a_0102 = {@@ -3206,7 +3136,6 @@ static const struct drm_display_mode tpk_f10a_0102_mode = { .vsync_start = 600 + 20, .vsync_end = 600 + 20 + 5, .vtotal = 600 + 20 + 5 + 25, - .vrefresh = 60, };static const struct panel_desc tpk_f10a_0102 = {@@ -3265,7 +3194,6 @@ static const struct drm_display_mode vl050_8048nt_c01_mode = { .vsync_start = 480 + 22, .vsync_end = 480 + 22 + 10, .vtotal = 480 + 22 + 10 + 23, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -3291,7 +3219,6 @@ static const struct drm_display_mode winstar_wf35ltiacd_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 3, .vtotal = 240 + 4 + 3 + 15, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -3317,7 +3244,6 @@ static const struct drm_display_mode arm_rtsm_mode[] = { .vsync_start = 768 + 3, .vsync_end = 768 + 3 + 6, .vtotal = 768 + 3 + 6 + 29, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, }, };@@ -3743,7 +3669,6 @@ static const struct drm_display_mode auo_b080uan01_mode = { .vsync_start = 1920 + 9, .vsync_end = 1920 + 9 + 2, .vtotal = 1920 + 9 + 2 + 8, - .vrefresh = 60, };static const struct panel_desc_dsi auo_b080uan01 = {@@ -3771,7 +3696,6 @@ static const struct drm_display_mode boe_tv080wum_nl0_mode = { .vsync_start = 1920 + 21, .vsync_end = 1920 + 21 + 3, .vtotal = 1920 + 21 + 3 + 18, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -3801,7 +3725,6 @@ static const struct drm_display_mode lg_ld070wx3_sl01_mode = { .vsync_start = 1280 + 28, .vsync_end = 1280 + 28 + 1, .vtotal = 1280 + 28 + 1 + 14, - .vrefresh = 60, };static const struct panel_desc_dsi lg_ld070wx3_sl01 = {@@ -3829,7 +3752,6 @@ static const struct drm_display_mode lg_lh500wx1_sd03_mode = { .vsync_start = 1280 + 8, .vsync_end = 1280 + 8 + 4, .vtotal = 1280 + 8 + 4 + 12, - .vrefresh = 60, };static const struct panel_desc_dsi lg_lh500wx1_sd03 = {@@ -3857,7 +3779,6 @@ static const struct drm_display_mode panasonic_vvx10f004b00_mode = { .vsync_start = 1200 + 17, .vsync_end = 1200 + 17 + 2, .vtotal = 1200 + 17 + 2 + 16, - .vrefresh = 60, };static const struct panel_desc_dsi panasonic_vvx10f004b00 = {@@ -3886,7 +3807,6 @@ static const struct drm_display_mode lg_acx467akm_7_mode = { .vsync_start = 1920 + 2, .vsync_end = 1920 + 2 + 2, .vtotal = 1920 + 2 + 2 + 2, - .vrefresh = 60, };static const struct panel_desc_dsi lg_acx467akm_7 = {@@ -3914,7 +3834,6 @@ static const struct drm_display_mode osd101t2045_53ts_mode = { .vsync_start = 1200 + 16, .vsync_end = 1200 + 16 + 2, .vtotal = 1200 + 16 + 2 + 16, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };drivers/gpu/drm/panel/panel-sitronix-st7701.c +1
-1@@ -272,7 +272,7 @@ static int st7701_get_modes(struct drm_panel *panel,DRM_DEV_ERROR (&st7701->dsi->dev,"failed to add mode %ux%ux@%u\n" , desc_mode->hdisplay, desc_mode->vdisplay, - desc_mode->vrefresh); +drm_mode_vrefresh (desc_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-sitronix-st7789v.c +1
-2@@ -165,7 +165,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 320 + 8, .vsync_end = 320 + 8 + 4, .vtotal = 320 + 8 + 4 + 4, - .vrefresh = 60, }; static int st7789v_get_modes(struct drm_panel *panel,@@ -177,7 +176,7 @@ static int st7789v_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-sony-acx424akp.c +0
-2@@ -57,7 +57,6 @@ static const struct drm_display_mode sony_acx424akp_vid_mode = { .vsync_start = 864 + 14, .vsync_end = 864 + 14 + 1, .vtotal = 864 + 14 + 1 + 11, - .vrefresh = 60, .width_mm = 48, .height_mm = 84, .flags = DRM_MODE_FLAG_PVSYNC,@@ -81,7 +80,6 @@ static const struct drm_display_mode sony_acx424akp_cmd_mode = {* Some desired refresh rate, experiments at the maximum "pixel" * clock speed (HS clock 420 MHz) yields around 117Hz. */ - .vrefresh = 60, .width_mm = 48, .height_mm = 84, };drivers/gpu/drm/panel/panel-sony-acx565akm.c +0
-1@@ -514,7 +514,6 @@ static const struct drm_display_mode acx565akm_mode = { .vsync_start = 480 + 3, .vsync_end = 480 + 3 + 3, .vtotal = 480 + 3 + 3 + 4, - .vrefresh = 57, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 77,drivers/gpu/drm/panel/panel-tpo-td028ttec1.c +0
-1@@ -281,7 +281,6 @@ static const struct drm_display_mode td028ttec1_mode = { .vsync_start = 640 + 4, .vsync_end = 640 + 4 + 2, .vtotal = 640 + 4 + 2 + 2, - .vrefresh = 66, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 43,drivers/gpu/drm/panel/panel-tpo-td043mtea1.c +0
-1@@ -339,7 +339,6 @@ static const struct drm_display_mode td043mtea1_mode = { .vsync_start = 480 + 39, .vsync_end = 480 + 39 + 1, .vtotal = 480 + 39 + 1 + 34, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 94,drivers/gpu/drm/panel/panel-tpo-tpg110.c +0
-5@@ -112,7 +112,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 1, .vtotal = 480 + 10 + 1 + 35, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },@@ -129,7 +128,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 480 + 18, .vsync_end = 480 + 18 + 1, .vtotal = 480 + 18 + 1 + 27, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },@@ -146,7 +144,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 1, .vtotal = 272 + 2 + 1 + 12, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },@@ -163,7 +160,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 640 + 4, .vsync_end = 640 + 4 + 1, .vtotal = 640 + 4 + 1 + 8, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },@@ -180,7 +176,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 240 + 2, .vsync_end = 240 + 2 + 1, .vtotal = 240 + 2 + 1 + 20, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },drivers/gpu/drm/panel/panel-truly-nt35597.c +0
-1@@ -536,7 +536,6 @@ static const struct drm_display_mode qcom_sdm845_mtp_2k_mode = { .vsync_start = 2560 + 8, .vsync_end = 2560 + 8 + 1, .vtotal = 2560 + 8 + 1 + 7, - .vrefresh = 60, .flags = 0, };drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c +1
-2@@ -243,7 +243,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 22, .vsync_end = 1280 + 22 + 4, .vtotal = 1280 + 22 + 4 + 11, - .vrefresh = 60, .clock = 64000, .width_mm = 68, .height_mm = 121,@@ -259,7 +258,7 @@ static int xpp055c272_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (ctx->dev,"Failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/sti/sti_hda.c +0
-1@@ -586,7 +586,6 @@ static int sti_hda_connector_get_modes(struct drm_connector *connector) &hda_supported_modes[i].mode);if (!mode)continue ; - mode->vrefresh =drm_mode_vrefresh (mode);/* the first mode is the preferred mode */ if (i ==0 )drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +0
-2@@ -2226,7 +2226,6 @@ void vmw_guess_mode_timing(struct drm_display_mode *mode) mode->vtotal = mode->vsync_end +50 ; mode->clock = (u32 )mode->htotal * (u32 )mode->vtotal /100 *6 ; - mode->vrefresh =drm_mode_vrefresh (mode); }@@ -2300,7 +2299,6 @@ int vmw_du_connector_fill_modes(struct drm_connector *connector, mode =drm_mode_duplicate (dev, bmode);if (!mode)return 0 ; - mode->vrefresh =drm_mode_vrefresh (mode);drm_mode_probed_add (connector, mode); }include/drm/drm_modes.h +0
-10@@ -380,16 +380,6 @@ struct drm_display_mode {*/ int private_flags; -/** -* @vrefresh: -* -* Vertical refresh rate, for debug output in human readable form. Not -* used in a functional way. -* -* This value is in Hz. -*/ -int vrefresh; -/** * @picture_aspect_ratio: *
include/drm/drm_modes.h struct drm_display_mode { · line 417
Quoted 8 lines
include/drm/drm_modes.h +1
-1@@ -421,7 +411,7 @@ struct drm_display_mode {* @m: display mode */ #define DRM_MODE_ARG (m) \ - (m)->name, (m)->vrefresh, (m)->clock, \ + (m)->name, drm_mode_vrefresh(m), (m)->clock, \ (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ (m)->vdisplay, (m)->vsync_start, (m)->vsync_end, (m)->vtotal, \ (m)->type, (m)->flags
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 04/12] drm: Nuke mode->vrefresh
Quoted 27 lines · Andrzej Hajda
Quoted 11 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Get rid of
mode->vrefreshand just calculate it on demand. Saves a bit of space and avoids the cached value getting out of sync with reality.Mostly done with cocci, with the following manual fixups:
- Remove the now empty loop indrm_helper_probe_single_connector_modes()
- Fix__MODE()macro inch7006_mode.c
- FixDRM_MODE_ARG()macro indrm_modes.h
- Remove leftover comment fromsamsung_s6d16d0_mode...
drivers/gpu/drm/panel/panel-arm-versatile.c static const struct versatile_panel_type versatile_panels[] = { · line 146
Quoted 9 lines
drivers/gpu/drm/panel/panel-arm-versatile.c +0
-1@@ -143,7 +143,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 240 + 5, .vsync_end = 240 + 5 + 6, .vtotal = 240 + 5 + 6 + 5, - .vrefresh = 116,Are you sure vrefresh calculated (from totals and clock) is different than this field? If not, we risk regressions.
Quoted 1 line
This case is OK, but there is plenty other cases.
IIRC I did spot check a few of them. But which code exactly do you think is abusing vrefresh and thus could break?
Quoted 1,621 lines
Regards
Andrzej
Quoted 1,613 lines
drivers/gpu/drm/panel/panel-arm-versatile.c +0
-3.flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, },@@ -167,7 +166,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 480 + 11, .vsync_end = 480 + 11 + 2, .vtotal = 480 + 11 + 2 + 32, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, },@@ -190,7 +188,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 220 + 0, .vsync_end = 220 + 0 + 2, .vtotal = 220 + 0 + 2 + 1, - .vrefresh = 390, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,@@ -214,7 +211,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 320 + 2, .vsync_end = 320 + 2 + 2, .vtotal = 320 + 2 + 2 + 2, - .vrefresh = 116, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,drivers/gpu/drm/panel/panel-boe-himax8279d.c +1
-2@@ -229,7 +229,7 @@ static int boe_panel_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {DRM_DEV_ERROR (pinfo->base.dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay,drm_mode_vrefresh (m));return -ENOMEM ; }@@ -262,7 +262,6 @@ static const struct drm_display_mode default_display_mode = { .vsync_start = 1920 + 10, .vsync_end = 1920 + 10 + 14, .vtotal = 1920 + 10 + 14 + 4, - .vrefresh = 60, };/* 8 inch */ drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +1
-5@@ -594,7 +594,6 @@ static const struct drm_display_mode boe_tv101wum_nl6_default_mode = { .vsync_start = 1920 + 10, .vsync_end = 1920 + 10 + 14, .vtotal = 1920 + 10 + 14 + 4, - .vrefresh = 60, };static const struct panel_desc boe_tv101wum_nl6_desc = {@@ -622,7 +621,6 @@ static const struct drm_display_mode auo_kd101n80_45na_default_mode = { .vsync_start = 1920 + 16, .vsync_end = 1920 + 16 + 4, .vtotal = 1920 + 16 + 4 + 16, - .vrefresh = 60, };static const struct panel_desc auo_kd101n80_45na_desc = {@@ -650,7 +648,6 @@ static const struct drm_display_mode boe_tv101wum_n53_default_mode = { .vsync_start = 1920 + 20, .vsync_end = 1920 + 20 + 4, .vtotal = 1920 + 20 + 4 + 10, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };@@ -678,7 +675,6 @@ static const struct drm_display_mode auo_b101uan08_3_default_mode = { .vsync_start = 1920 + 34, .vsync_end = 1920 + 34 + 2, .vtotal = 1920 + 34 + 2 + 24, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };@@ -706,7 +702,7 @@ static int boe_panel_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay,drm_mode_vrefresh (m));return -ENOMEM ; }drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c +1
-2@@ -392,7 +392,6 @@ static int k101_im2ba02_unprepare(struct drm_panel *panel)static const struct drm_display_mode k101_im2ba02_default_mode = { .clock =70000 , - .vrefresh =60 , .hdisplay =800 , .hsync_start =800 +20 ,@@ -420,7 +419,7 @@ static int k101_im2ba02_get_modes(struct drm_panel *panel,DRM_DEV_ERROR (&ctx->dsi->dev,"failed to add mode %ux%ux@%u\n" , k101_im2ba02_default_mode.hdisplay, k101_im2ba02_default_mode.vdisplay, - k101_im2ba02_default_mode.vrefresh); +drm_mode_vrefresh (&k101_im2ba02_default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c +1
-2@@ -153,7 +153,6 @@ static const struct drm_display_mode feiyang_default_mode = { .vsync_start = 600 + 12, .vsync_end = 600 + 12 + 2, .vtotal = 600 + 12 + 2 + 21, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };@@ -169,7 +168,7 @@ static int feiyang_get_modes(struct drm_panel *panel,DRM_DEV_ERROR (&ctx->dsi->dev,"failed to add mode %ux%ux@%u\n" , feiyang_default_mode.hdisplay, feiyang_default_mode.vdisplay, - feiyang_default_mode.vrefresh); +drm_mode_vrefresh (&feiyang_default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-ilitek-ili9322.c +0
-7@@ -549,7 +549,6 @@ static const struct drm_display_mode srgb_320x240_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 1, .vtotal = 262, - .vrefresh = 60, .flags = 0, };@@ -563,7 +562,6 @@ static const struct drm_display_mode srgb_360x240_mode = { .vsync_start = 240 + 21, .vsync_end = 240 + 21 + 1, .vtotal = 262, - .vrefresh = 60, .flags = 0, };@@ -578,7 +576,6 @@ static const struct drm_display_mode prgb_320x240_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 1, .vtotal = 262, - .vrefresh = 60, .flags = 0, };@@ -593,7 +590,6 @@ static const struct drm_display_mode yuv_640x320_mode = { .vsync_start = 320 + 4, .vsync_end = 320 + 4 + 1, .vtotal = 320 + 4 + 1 + 18, - .vrefresh = 60, .flags = 0, };@@ -607,7 +603,6 @@ static const struct drm_display_mode yuv_720x360_mode = { .vsync_start = 360 + 4, .vsync_end = 360 + 4 + 1, .vtotal = 360 + 4 + 1 + 18, - .vrefresh = 60, .flags = 0, };@@ -622,7 +617,6 @@ static const struct drm_display_mode itu_r_bt_656_640_mode = { .vsync_start = 480 + 4, .vsync_end = 480 + 4 + 1, .vtotal = 500, - .vrefresh = 60, .flags = 0, };@@ -637,7 +631,6 @@ static const struct drm_display_mode itu_r_bt_656_720_mode = { .vsync_start = 480 + 4, .vsync_end = 480 + 4 + 1, .vtotal = 500, - .vrefresh = 60, .flags = 0, };drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +1
-2@@ -370,7 +370,6 @@ static int ili9881c_unprepare(struct drm_panel *panel)static const struct drm_display_mode bananapi_default_mode = { .clock =62000 , - .vrefresh =60 , .hdisplay =720 , .hsync_start =720 +10 ,@@ -394,7 +393,7 @@ static int ili9881c_get_modes(struct drm_panel *panel,dev_err (&ctx->dsi->dev,"failed to add mode %ux%ux@%u\n" , bananapi_default_mode.hdisplay, bananapi_default_mode.vdisplay, - bananapi_default_mode.vrefresh); +drm_mode_vrefresh (&bananapi_default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-innolux-p079zca.c +1
-3@@ -223,7 +223,6 @@ static const struct drm_display_mode innolux_p079zca_mode = { .vsync_start = 1024 + 20, .vsync_end = 1024 + 20 + 4, .vtotal = 1024 + 20 + 4 + 20, - .vrefresh = 60, };static const struct panel_desc innolux_p079zca_panel_desc = {@@ -257,7 +256,6 @@ static const struct drm_display_mode innolux_p097pfg_mode = { .vsync_start = 2048 + 100, .vsync_end = 2048 + 100 + 2, .vtotal = 2048 + 100 + 2 + 18, - .vrefresh = 60, };/* @@ -401,7 +399,7 @@ static int innolux_panel_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {DRM_DEV_ERROR (panel->dev,"failed to add mode %ux%ux@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay,drm_mode_vrefresh (m));return -ENOMEM ; }drivers/gpu/drm/panel/panel-jdi-lt070me05000.c +1
-2@@ -296,7 +296,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1920 + 3, .vsync_end = 1920 + 3 + 5, .vtotal = 1920 + 3 + 5 + 6, - .vrefresh = 60, .flags = 0, };@@ -311,7 +310,7 @@ static int jdi_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c +1
-2@@ -318,7 +318,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 2048 + 95, .vsync_end = 2048 + 95 + 2, .vtotal = 2048 + 95 + 2 + 23, - .vrefresh = 60, }; static int kingdisplay_panel_get_modes(struct drm_panel *panel,@@ -330,7 +329,7 @@ static int kingdisplay_panel_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c +1
-2@@ -376,7 +376,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 30, .vsync_end = 1280 + 30 + 4, .vtotal = 1280 + 30 + 4 + 12, - .vrefresh = 60, .clock = 41600, .width_mm = 62, .height_mm = 110,@@ -392,7 +391,7 @@ static int ltk500hd1829_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (ctx->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-lg-lb035q02.c +0
-1@@ -134,7 +134,6 @@ static const struct drm_display_mode lb035q02_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 2, .vtotal = 240 + 4 + 2 + 18, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 70,drivers/gpu/drm/panel/panel-lg-lg4573.c +1
-2@@ -206,7 +206,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 800 + 15, .vsync_end = 800 + 15 + 15, .vtotal = 800 + 15 + 15 + 15, - .vrefresh = 60, }; static int lg4573_get_modes(struct drm_panel *panel,@@ -218,7 +217,7 @@ static int lg4573_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-nec-nl8048hl11.c +0
-1@@ -116,7 +116,6 @@ static const struct drm_display_mode nl8048_mode = { .vsync_start = 480 + 3, .vsync_end = 480 + 3 + 1, .vtotal = 480 + 3 + 1 + 4, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 89,drivers/gpu/drm/panel/panel-novatek-nt39016.c +0
-1@@ -327,7 +327,6 @@ static const struct nt39016_panel_info kd035g6_info = { .vsync_start = 240 + 5, .vsync_end = 240 + 5 + 1, .vtotal = 240 + 5 + 1 + 4, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, }, .width_mm = 71,drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c +0
-1@@ -170,7 +170,6 @@ static int lcd_olinuxino_get_modes(struct drm_panel *panel, lcd_mode->vpw; mode->vtotal = lcd_mode->vactive + lcd_mode->vfp + lcd_mode->vpw + lcd_mode->vbp; - mode->vrefresh = lcd_mode->refresh;/* Always make the first mode preferred */ if (i ==0 )drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +1
-2@@ -81,7 +81,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 800 + 15, .vsync_end = 800 + 15 + 10, .vtotal = 800 + 15 + 10 + 14, - .vrefresh = 50, .flags = 0, .width_mm = 52, .height_mm = 86,@@ -358,7 +357,7 @@ static int otm8009a_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c +1
-2@@ -102,7 +102,6 @@ static const struct drm_display_mode default_mode_osd101t2587 = { .vsync_start = 1200 + 24, .vsync_end = 1200 + 24 + 6, .vtotal = 1200 + 24 + 6 + 48, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -117,7 +116,7 @@ static int osd101t2587_panel_get_modes(struct drm_panel *panel,dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , osd101t2587->default_mode->hdisplay, osd101t2587->default_mode->vdisplay, - osd101t2587->default_mode->vrefresh); +drm_mode_vrefresh (osd101t2587->default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +1
-2@@ -149,7 +149,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1200 + 24, .vsync_end = 1200 + 24 + 6, .vtotal = 1200 + 24 + 6 + 48, - .vrefresh = 60, }; static int wuxga_nt_panel_get_modes(struct drm_panel *panel,@@ -161,7 +160,7 @@ static int wuxga_nt_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c +2
-2@@ -209,7 +209,6 @@ static const struct drm_display_mode rpi_touchscreen_modes[] = { .vsync_start = 480 + 7, .vsync_end = 480 + 7 + 2, .vtotal = 480 + 7 + 2 + 21, - .vrefresh = 60, }, };@@ -322,7 +321,8 @@ static int rpi_touchscreen_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay, +drm_mode_vrefresh (m));continue ; }drivers/gpu/drm/panel/panel-raydium-rm67191.c +1
-2@@ -218,7 +218,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1920 + 10, .vsync_end = 1920 + 10 + 2, .vtotal = 1920 + 10 + 2 + 4, - .vrefresh = 60, .width_mm = 68, .height_mm = 121, .flags = DRM_MODE_FLAG_NHSYNC |@@ -445,7 +444,7 @@ static int rad_panel_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-raydium-rm68200.c +1
-2@@ -92,7 +92,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 12, .vsync_end = 1280 + 12 + 4, .vtotal = 1280 + 12 + 4 + 12, - .vrefresh = 50, .flags = 0, .width_mm = 68, .height_mm = 122,@@ -339,7 +338,7 @@ static int rm68200_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c +2
-3@@ -223,7 +223,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1440 + 20, .vsync_end = 1440 + 20 + 4, .vtotal = 1440 + 20 + 4 + 12, - .vrefresh = 60, .clock = 75276, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 65,@@ -240,7 +239,7 @@ static int jh057n_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (ctx->dev,"Failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }@@ -360,7 +359,7 @@ static int jh057n_probe(struct mipi_dsi_device *dsi)DRM_DEV_INFO (dev,"%ux%u@%u %ubpp dsi %udl - ready\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh, +drm_mode_vrefresh (&default_mode),mipi_dsi_pixel_format_to_bpp (dsi->format), dsi->lanes);jh057n_debugfs_init (ctx);drivers/gpu/drm/panel/panel-ronbo-rb070d30.c +0
-1@@ -103,7 +103,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 600 + 12, .vsync_end = 600 + 12 + 10, .vtotal = 600 + 12 + 10 + 13, - .vrefresh = 60, .width_mm = 154, .height_mm = 85,drivers/gpu/drm/panel/panel-samsung-s6d16d0.c +0
-6@@ -37,12 +37,6 @@ static const struct drm_display_mode samsung_s6d16d0_mode = { .vsync_start = 480 + 1, .vsync_end = 480 + 1 + 1, .vtotal = 480 + 1 + 1 + 1, -/* -* This depends on the clocking HS vs LP rate, this value -* is calculated as: -* vrefresh = (clock * 1000) / (htotal*vtotal) -*/ - .vrefresh = 816, .width_mm = 84, .height_mm = 48, };drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c +1
-3@@ -617,7 +617,6 @@ static const struct drm_display_mode s6e3ha2_mode = { .vsync_start = 2560 + 1, .vsync_end = 2560 + 1 + 1, .vtotal = 2560 + 1 + 1 + 15, - .vrefresh = 60, .flags = 0, };@@ -636,7 +635,6 @@ static const struct drm_display_mode s6e3hf2_mode = { .vsync_start = 2560 + 1, .vsync_end = 2560 + 1 + 1, .vtotal = 2560 + 1 + 1 + 15, - .vrefresh = 60, .flags = 0, };@@ -655,7 +653,7 @@ static int s6e3ha2_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , ctx->desc->mode->hdisplay, ctx->desc->mode->vdisplay, - ctx->desc->mode->vrefresh); +drm_mode_vrefresh (ctx->desc->mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c +1
-2@@ -52,7 +52,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 320 + 150, .vsync_end = 320 + 150 + 1, .vtotal = 320 + 150 + 1 + 2, - .vrefresh = 30, .flags = 0, };@@ -409,7 +408,7 @@ static int s6e63j0x03_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +1
-2@@ -117,7 +117,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 800 + 28, .vsync_end = 800 + 28 + 2, .vtotal = 800 + 28 + 2 + 1, - .vrefresh = 60, .width_mm = 53, .height_mm = 89, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,@@ -371,7 +370,7 @@ static int s6e63m0_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c +0
-1@@ -177,7 +177,6 @@ static const struct drm_display_mode s6e88a0_ams452ef01_mode = { .vsync_start = 960 + 14, .vsync_end = 960 + 14 + 2, .vtotal = 960 + 14 + 2 + 8, - .vrefresh = 60, .width_mm = 56, .height_mm = 100, };drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +2
-1@@ -92,7 +92,8 @@ static int seiko_panel_get_fixed_modes(struct seiko_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->base.dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay, +drm_mode_vrefresh (m));continue ; }drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c +1
-2@@ -269,7 +269,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1600 + 4, .vsync_end = 1600 + 4 + 8, .vtotal = 1600 + 4 + 8 + 32, - .vrefresh = 60, }; static int sharp_panel_get_modes(struct drm_panel *panel,@@ -281,7 +280,7 @@ static int sharp_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c +0
-1@@ -93,7 +93,6 @@ static const struct drm_display_mode ls037v7dw01_mode = { .vsync_start = 640 + 1, .vsync_end = 640 + 1 + 1, .vtotal = 640 + 1 + 1 + 1, - .vrefresh = 58, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 56,drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c +1
-2@@ -201,7 +201,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 960 + 3, .vsync_end = 960 + 3 + 15, .vtotal = 960 + 3 + 15 + 1, - .vrefresh = 60, }; static int sharp_nt_panel_get_modes(struct drm_panel *panel,@@ -213,7 +212,7 @@ static int sharp_nt_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-simple.c +2
-83@@ -161,7 +161,8 @@ static unsigned int panel_simple_get_display_modes(struct panel_simple *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->base.dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay, +drm_mode_vrefresh (m));continue ; }@@ -494,7 +495,6 @@ static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 10, .vtotal = 272 + 2 + 10 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -519,7 +519,6 @@ static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = { .vsync_start = 480 + 2, .vsync_end = 480 + 2 + 45, .vtotal = 480 + 2 + 45 + 0, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -570,7 +569,6 @@ static const struct drm_display_mode auo_b101aw03_mode = { .vsync_start = 600 + 16, .vsync_end = 600 + 16 + 6, .vtotal = 600 + 16 + 6 + 16, - .vrefresh = 60, };static const struct panel_desc auo_b101aw03 = {@@ -615,7 +613,6 @@ static const struct drm_display_mode auo_b101xtn01_mode = { .vsync_start = 768 + 14, .vsync_end = 768 + 14 + 42, .vtotal = 768 + 14 + 42, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -639,7 +636,6 @@ static const struct drm_display_mode auo_b116xak01_mode = { .vsync_start = 768 + 4, .vsync_end = 768 + 4 + 6, .vtotal = 768 + 4 + 6 + 15, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -668,7 +664,6 @@ static const struct drm_display_mode auo_b116xw03_mode = { .vsync_start = 768 + 10, .vsync_end = 768 + 10 + 12, .vtotal = 768 + 10 + 12 + 6, - .vrefresh = 60, };static const struct panel_desc auo_b116xw03 = {@@ -691,7 +686,6 @@ static const struct drm_display_mode auo_b133xtn01_mode = { .vsync_start = 768 + 3, .vsync_end = 768 + 3 + 6, .vtotal = 768 + 3 + 6 + 13, - .vrefresh = 60, };static const struct panel_desc auo_b133xtn01 = {@@ -714,7 +708,6 @@ static const struct drm_display_mode auo_b133htn01_mode = { .vsync_start = 1080 + 25, .vsync_end = 1080 + 25 + 10, .vtotal = 1080 + 25 + 10 + 10, - .vrefresh = 60, };static const struct panel_desc auo_b133htn01 = {@@ -770,7 +763,6 @@ static const struct drm_display_mode auo_g101evn010_mode = { .vsync_start = 800 + 8, .vsync_end = 800 + 8 + 2, .vtotal = 800 + 8 + 2 + 6, - .vrefresh = 60, };static const struct panel_desc auo_g101evn010 = {@@ -794,7 +786,6 @@ static const struct drm_display_mode auo_g104sn02_mode = { .vsync_start = 600 + 10, .vsync_end = 600 + 10 + 35, .vtotal = 600 + 10 + 35 + 2, - .vrefresh = 60, };static const struct panel_desc auo_g104sn02 = {@@ -906,7 +897,6 @@ static const struct drm_display_mode auo_t215hvn01_mode = { .vsync_start = 1080 + 4, .vsync_end = 1080 + 4 + 5, .vtotal = 1080 + 4 + 5 + 36, - .vrefresh = 60, };static const struct panel_desc auo_t215hvn01 = {@@ -933,7 +923,6 @@ static const struct drm_display_mode avic_tm070ddh03_mode = { .vsync_start = 600 + 17, .vsync_end = 600 + 17 + 1, .vtotal = 600 + 17 + 1 + 17, - .vrefresh = 60, };static const struct panel_desc avic_tm070ddh03 = {@@ -983,7 +972,6 @@ static const struct drm_display_mode boe_hv070wsa_mode = { .vsync_start = 600 + 10, .vsync_end = 600 + 10 + 10, .vtotal = 600 + 10 + 10 + 10, - .vrefresh = 60, };static const struct panel_desc boe_hv070wsa = {@@ -1006,7 +994,6 @@ static const struct drm_display_mode boe_nv101wxmn51_modes[] = { .vsync_start = 800 + 3, .vsync_end = 800 + 3 + 5, .vtotal = 800 + 3 + 5 + 24, - .vrefresh = 60, }, { .clock = 57500,@@ -1018,7 +1005,6 @@ static const struct drm_display_mode boe_nv101wxmn51_modes[] = { .vsync_start = 800 + 3, .vsync_end = 800 + 3 + 5, .vtotal = 800 + 3 + 5 + 24, - .vrefresh = 48, }, };@@ -1048,7 +1034,6 @@ static const struct drm_display_mode boe_nv140fhmn49_modes[] = { .vsync_start = 1080 + 3, .vsync_end = 1080 + 3 + 5, .vtotal = 1125, - .vrefresh = 60, }, };@@ -1079,7 +1064,6 @@ static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = { .vsync_start = 272 + 8, .vsync_end = 272 + 8 + 8, .vtotal = 272 + 8 + 8 + 8, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1104,7 +1088,6 @@ static const struct drm_display_mode cdtech_s070wv95_ct16_mode = { .vsync_start = 480 + 29, .vsync_end = 480 + 29 + 13, .vtotal = 480 + 29 + 13 + 3, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1128,7 +1111,6 @@ static const struct drm_display_mode chunghwa_claa070wp03xg_mode = { .vsync_start = 1280 + 1, .vsync_end = 1280 + 1 + 7, .vtotal = 1280 + 1 + 7 + 15, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1152,7 +1134,6 @@ static const struct drm_display_mode chunghwa_claa101wa01a_mode = { .vsync_start = 768 + 4, .vsync_end = 768 + 4 + 4, .vtotal = 768 + 4 + 4 + 4, - .vrefresh = 60, };static const struct panel_desc chunghwa_claa101wa01a = {@@ -1175,7 +1156,6 @@ static const struct drm_display_mode chunghwa_claa101wb01_mode = { .vsync_start = 768 + 16, .vsync_end = 768 + 16 + 8, .vtotal = 768 + 16 + 8 + 16, - .vrefresh = 60, };static const struct panel_desc chunghwa_claa101wb01 = {@@ -1198,7 +1178,6 @@ static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 2, .vtotal = 480 + 10 + 2 + 33, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1285,7 +1264,6 @@ static const struct drm_display_mode edt_et035012dm6_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 4, .vtotal = 240 + 4 + 4 + 14, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1317,7 +1295,6 @@ static const struct drm_display_mode edt_etm043080dh6gp_mode = { .vsync_start = 288 + 2, .vsync_end = 288 + 2 + 4, .vtotal = 288 + 2 + 4 + 10, - .vrefresh = 60, };static const struct panel_desc edt_etm043080dh6gp = {@@ -1342,7 +1319,6 @@ static const struct drm_display_mode edt_etm0430g0dh6_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 10, .vtotal = 272 + 2 + 10 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1366,7 +1342,6 @@ static const struct drm_display_mode edt_et057090dhu_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 3, .vtotal = 480 + 10 + 3 + 32, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1392,7 +1367,6 @@ static const struct drm_display_mode edt_etm0700g0dh6_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 2, .vtotal = 480 + 10 + 2 + 33, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1457,7 +1431,6 @@ static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = { .vsync_start = 480 + 37, .vsync_end = 480 + 37 + 2, .vtotal = 480 + 37 + 2 + 8, - .vrefresh = 60, };static const struct panel_desc foxlink_fl500wvr00_a0t = {@@ -1481,7 +1454,6 @@ static const struct drm_display_mode frida_frd350h54004_mode = { .vsync_start = 240 + 2, .vsync_end = 240 + 2 + 6, .vtotal = 240 + 2 + 6 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -1508,7 +1480,6 @@ static const struct drm_display_mode friendlyarm_hd702e_mode = { .vsync_start = 1280 + 4, .vsync_end = 1280 + 4 + 8, .vtotal = 1280 + 4 + 8 + 4, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1531,7 +1502,6 @@ static const struct drm_display_mode giantplus_gpg482739qs5_mode = { .vsync_start = 272 + 8, .vsync_end = 272 + 8 + 1, .vtotal = 272 + 8 + 1 + 8, - .vrefresh = 60, };static const struct panel_desc giantplus_gpg482739qs5 = {@@ -1635,7 +1605,6 @@ static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = { .vsync_start = 480 + 16, .vsync_end = 480 + 16 + 13, .vtotal = 480 + 16 + 13 + 16, - .vrefresh = 60, };static const struct panel_desc hitachi_tx23d38vm0caa = {@@ -1662,7 +1631,6 @@ static const struct drm_display_mode innolux_at043tn24_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 10, .vtotal = 272 + 2 + 10 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1688,7 +1656,6 @@ static const struct drm_display_mode innolux_at070tn92_mode = { .vsync_start = 480 + 22, .vsync_end = 480 + 22 + 10, .vtotal = 480 + 22 + 23 + 10, - .vrefresh = 60, };static const struct panel_desc innolux_at070tn92 = {@@ -1799,7 +1766,6 @@ static const struct drm_display_mode innolux_g121x1_l03_mode = { .vsync_start = 768 + 38, .vsync_end = 768 + 38 + 1, .vtotal = 768 + 38 + 1 + 0, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1861,7 +1827,6 @@ static const struct drm_display_mode innolux_n156bge_l21_mode = { .vsync_start = 768 + 2, .vsync_end = 768 + 2 + 6, .vtotal = 768 + 2 + 6 + 12, - .vrefresh = 60, };static const struct panel_desc innolux_n156bge_l21 = {@@ -1884,7 +1849,6 @@ static const struct drm_display_mode innolux_p120zdg_bf1_mode = { .vsync_start = 1440 + 3, .vsync_end = 1440 + 3 + 10, .vtotal = 1440 + 3 + 10 + 27, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -1912,7 +1876,6 @@ static const struct drm_display_mode innolux_zj070na_01p_mode = { .vsync_start = 600 + 16, .vsync_end = 600 + 16 + 4, .vtotal = 600 + 16 + 4 + 16, - .vrefresh = 60, };static const struct panel_desc innolux_zj070na_01p = {@@ -2008,7 +1971,6 @@ static const struct drm_display_mode lemaker_bl035_rgb_002_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 3, .vtotal = 240 + 4 + 3 + 15, - .vrefresh = 60, };static const struct panel_desc lemaker_bl035_rgb_002 = {@@ -2032,7 +1994,6 @@ static const struct drm_display_mode lg_lb070wv8_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 25, .vtotal = 480 + 10 + 25 + 10, - .vrefresh = 60, };static const struct panel_desc lg_lb070wv8 = {@@ -2057,7 +2018,6 @@ static const struct drm_display_mode lg_lp079qx1_sp0v_mode = { .vsync_start = 2048 + 8, .vsync_end = 2048 + 8 + 4, .vtotal = 2048 + 8 + 4 + 8, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2080,7 +2040,6 @@ static const struct drm_display_mode lg_lp097qx1_spa1_mode = { .vsync_start = 1536 + 3, .vsync_end = 1536 + 3 + 1, .vtotal = 1536 + 3 + 1 + 9, - .vrefresh = 60, };static const struct panel_desc lg_lp097qx1_spa1 = {@@ -2102,7 +2061,6 @@ static const struct drm_display_mode lg_lp120up1_mode = { .vsync_start = 1280 + 4, .vsync_end = 1280 + 4 + 4, .vtotal = 1280 + 4 + 4 + 12, - .vrefresh = 60, };static const struct panel_desc lg_lp120up1 = {@@ -2125,7 +2083,6 @@ static const struct drm_display_mode lg_lp129qe_mode = { .vsync_start = 1700 + 3, .vsync_end = 1700 + 3 + 10, .vtotal = 1700 + 3 + 10 + 36, - .vrefresh = 60, };static const struct panel_desc lg_lp129qe = {@@ -2206,7 +2163,6 @@ static const struct drm_display_mode mitsubishi_aa070mc01_mode = { .vsync_start = 480 + 0, .vsync_end = 480 + 48 + 1, .vtotal = 480 + 48 + 1 + 0, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -2221,7 +2177,6 @@ static const struct drm_display_mode logicpd_type_28_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 11, .vtotal = 272 + 2 + 11 + 3, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -2301,7 +2256,6 @@ static const struct drm_display_mode nec_nl4827hc19_05b_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 4, .vtotal = 272 + 2 + 4 + 2, - .vrefresh = 74, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2327,7 +2281,6 @@ static const struct drm_display_mode netron_dy_e231732_mode = { .vsync_start = 600 + 127, .vsync_end = 600 + 127 + 20, .vtotal = 600 + 127 + 20 + 3, - .vrefresh = 60, };static const struct panel_desc netron_dy_e231732 = {@@ -2350,7 +2303,6 @@ static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 10, .vtotal = 272 + 2 + 10 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2458,7 +2410,6 @@ static const struct drm_display_mode olimex_lcd_olinuxino_43ts_mode = { .vsync_start = 272 + 8, .vsync_end = 272 + 8 + 5, .vtotal = 272 + 8 + 5 + 3, - .vrefresh = 60, };static const struct panel_desc olimex_lcd_olinuxino_43ts = {@@ -2486,7 +2437,6 @@ static const struct drm_display_mode ontat_yx700wv03_mode = { .vsync_start = 483, .vsync_end = 493, .vtotal = 500, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2515,7 +2465,6 @@ static const struct drm_display_mode ortustech_com37h3m_mode = { .vsync_start = 640 + 4, .vsync_end = 640 + 4 + 3, .vtotal = 640 + 4 + 3 + 4, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2542,7 +2491,6 @@ static const struct drm_display_mode ortustech_com43h4m85ulc_mode = { .vsync_start = 800 + 3, .vsync_end = 800 + 3 + 3, .vtotal = 800 + 3 + 3 + 3, - .vrefresh = 60, };static const struct panel_desc ortustech_com43h4m85ulc = {@@ -2567,7 +2515,6 @@ static const struct drm_display_mode osddisplays_osd070t1718_19ts_mode = { .vsync_start = 480 + 22, .vsync_end = 480 + 22 + 13, .vtotal = 480 + 22 + 13 + 10, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2594,7 +2541,6 @@ static const struct drm_display_mode pda_91_00156_a0_mode = { .vsync_start = 480 + 1, .vsync_end = 480 + 1 + 23, .vtotal = 480 + 1 + 23 + 22, - .vrefresh = 60, };static const struct panel_desc pda_91_00156_a0 = {@@ -2618,7 +2564,6 @@ static const struct drm_display_mode qd43003c0_40_mode = { .vsync_start = 272 + 4, .vsync_end = 272 + 4 + 10, .vtotal = 272 + 4 + 10 + 2, - .vrefresh = 60, };static const struct panel_desc qd43003c0_40 = {@@ -2672,7 +2617,6 @@ static const struct drm_display_mode rocktech_rk101ii01d_ct_mode = { .vsync_start = 800 + 2, .vsync_end = 800 + 2 + 5, .vtotal = 800 + 2 + 5 + 16, - .vrefresh = 60, };static const struct panel_desc rocktech_rk101ii01d_ct = {@@ -2701,7 +2645,6 @@ static const struct drm_display_mode samsung_lsn122dl01_c01_mode = { .vsync_start = 1600 + 2, .vsync_end = 1600 + 2 + 5, .vtotal = 1600 + 2 + 5 + 57, - .vrefresh = 60, };static const struct panel_desc samsung_lsn122dl01_c01 = {@@ -2723,7 +2666,6 @@ static const struct drm_display_mode samsung_ltn101nt05_mode = { .vsync_start = 600 + 3, .vsync_end = 600 + 3 + 6, .vtotal = 600 + 3 + 6 + 61, - .vrefresh = 60, };static const struct panel_desc samsung_ltn101nt05 = {@@ -2746,7 +2688,6 @@ static const struct drm_display_mode samsung_ltn140at29_301_mode = { .vsync_start = 768 + 2, .vsync_end = 768 + 2 + 5, .vtotal = 768 + 2 + 5 + 17, - .vrefresh = 60, };static const struct panel_desc samsung_ltn140at29_301 = {@@ -2793,7 +2734,6 @@ static const struct drm_display_mode sharp_ld_d5116z01b_mode = { .vsync_start = 1280 + 3, .vsync_end = 1280 + 3 + 10, .vtotal = 1280 + 3 + 10 + 57, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -2819,7 +2759,6 @@ static const struct drm_display_mode sharp_lq070y3dg3b_mode = { .vsync_start = 480 + 8, .vsync_end = 480 + 8 + 2, .vtotal = 480 + 8 + 2 + 35, - .vrefresh = 60, .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE, };@@ -2846,7 +2785,6 @@ static const struct drm_display_mode sharp_lq035q7db03_mode = { .vsync_start = 320 + 9, .vsync_end = 320 + 9 + 1, .vtotal = 320 + 9 + 1 + 7, - .vrefresh = 60, };static const struct panel_desc sharp_lq035q7db03 = {@@ -2923,7 +2861,6 @@ static const struct drm_display_mode sharp_lq150x1lg11_mode = { .vsync_start = 768 + 37, .vsync_end = 768 + 37 + 2, .vtotal = 768 + 37 + 2 + 8, - .vrefresh = 60, };static const struct panel_desc sharp_lq150x1lg11 = {@@ -2974,7 +2911,6 @@ static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = { .vsync_start = 480 + 1, .vsync_end = 480 + 1 + 23, .vtotal = 480 + 1 + 23 + 22, - .vrefresh = 60, };static const struct panel_desc shelly_sca07010_bfn_lnn = {@@ -2997,7 +2933,6 @@ static const struct drm_display_mode starry_kr122ea0sra_mode = { .vsync_start = 1200 + 15, .vsync_end = 1200 + 15 + 2, .vtotal = 1200 + 15 + 2 + 18, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -3025,7 +2960,6 @@ static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = { .vsync_start = 480 + 13, .vsync_end = 480 + 13 + 2, .vtotal = 480 + 13 + 2 + 29, - .vrefresh = 62, };static const struct panel_desc tfc_s9700rtwv43tr_01b = {@@ -3101,7 +3035,6 @@ static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = { .vsync_start = 240 + 3, .vsync_end = 240 + 3 + 1, .vtotal = 240 + 3 + 1 + 17, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, }, };@@ -3129,7 +3062,6 @@ static const struct drm_display_mode ti_nspire_classic_lcd_mode[] = { .vsync_start = 240 + 0, .vsync_end = 240 + 0 + 1, .vtotal = 240 + 0 + 1 + 0, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, };@@ -3158,7 +3090,6 @@ static const struct drm_display_mode toshiba_lt089ac29000_mode = { .vsync_start = 768 + 20, .vsync_end = 768 + 20 + 7, .vtotal = 768 + 20 + 7 + 3, - .vrefresh = 60, };static const struct panel_desc toshiba_lt089ac29000 = {@@ -3183,7 +3114,6 @@ static const struct drm_display_mode tpk_f07a_0102_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 2, .vtotal = 480 + 10 + 2 + 33, - .vrefresh = 60, };static const struct panel_desc tpk_f07a_0102 = {@@ -3206,7 +3136,6 @@ static const struct drm_display_mode tpk_f10a_0102_mode = { .vsync_start = 600 + 20, .vsync_end = 600 + 20 + 5, .vtotal = 600 + 20 + 5 + 25, - .vrefresh = 60, };static const struct panel_desc tpk_f10a_0102 = {@@ -3265,7 +3194,6 @@ static const struct drm_display_mode vl050_8048nt_c01_mode = { .vsync_start = 480 + 22, .vsync_end = 480 + 22 + 10, .vtotal = 480 + 22 + 10 + 23, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -3291,7 +3219,6 @@ static const struct drm_display_mode winstar_wf35ltiacd_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 3, .vtotal = 240 + 4 + 3 + 15, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -3317,7 +3244,6 @@ static const struct drm_display_mode arm_rtsm_mode[] = { .vsync_start = 768 + 3, .vsync_end = 768 + 3 + 6, .vtotal = 768 + 3 + 6 + 29, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, }, };@@ -3743,7 +3669,6 @@ static const struct drm_display_mode auo_b080uan01_mode = { .vsync_start = 1920 + 9, .vsync_end = 1920 + 9 + 2, .vtotal = 1920 + 9 + 2 + 8, - .vrefresh = 60, };static const struct panel_desc_dsi auo_b080uan01 = {@@ -3771,7 +3696,6 @@ static const struct drm_display_mode boe_tv080wum_nl0_mode = { .vsync_start = 1920 + 21, .vsync_end = 1920 + 21 + 3, .vtotal = 1920 + 21 + 3 + 18, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -3801,7 +3725,6 @@ static const struct drm_display_mode lg_ld070wx3_sl01_mode = { .vsync_start = 1280 + 28, .vsync_end = 1280 + 28 + 1, .vtotal = 1280 + 28 + 1 + 14, - .vrefresh = 60, };static const struct panel_desc_dsi lg_ld070wx3_sl01 = {@@ -3829,7 +3752,6 @@ static const struct drm_display_mode lg_lh500wx1_sd03_mode = { .vsync_start = 1280 + 8, .vsync_end = 1280 + 8 + 4, .vtotal = 1280 + 8 + 4 + 12, - .vrefresh = 60, };static const struct panel_desc_dsi lg_lh500wx1_sd03 = {@@ -3857,7 +3779,6 @@ static const struct drm_display_mode panasonic_vvx10f004b00_mode = { .vsync_start = 1200 + 17, .vsync_end = 1200 + 17 + 2, .vtotal = 1200 + 17 + 2 + 16, - .vrefresh = 60, };static const struct panel_desc_dsi panasonic_vvx10f004b00 = {@@ -3886,7 +3807,6 @@ static const struct drm_display_mode lg_acx467akm_7_mode = { .vsync_start = 1920 + 2, .vsync_end = 1920 + 2 + 2, .vtotal = 1920 + 2 + 2 + 2, - .vrefresh = 60, };static const struct panel_desc_dsi lg_acx467akm_7 = {@@ -3914,7 +3834,6 @@ static const struct drm_display_mode osd101t2045_53ts_mode = { .vsync_start = 1200 + 16, .vsync_end = 1200 + 16 + 2, .vtotal = 1200 + 16 + 2 + 16, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };drivers/gpu/drm/panel/panel-sitronix-st7701.c +1
-1@@ -272,7 +272,7 @@ static int st7701_get_modes(struct drm_panel *panel,DRM_DEV_ERROR (&st7701->dsi->dev,"failed to add mode %ux%ux@%u\n" , desc_mode->hdisplay, desc_mode->vdisplay, - desc_mode->vrefresh); +drm_mode_vrefresh (desc_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-sitronix-st7789v.c +1
-2@@ -165,7 +165,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 320 + 8, .vsync_end = 320 + 8 + 4, .vtotal = 320 + 8 + 4 + 4, - .vrefresh = 60, }; static int st7789v_get_modes(struct drm_panel *panel,@@ -177,7 +176,7 @@ static int st7789v_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-sony-acx424akp.c +0
-2@@ -57,7 +57,6 @@ static const struct drm_display_mode sony_acx424akp_vid_mode = { .vsync_start = 864 + 14, .vsync_end = 864 + 14 + 1, .vtotal = 864 + 14 + 1 + 11, - .vrefresh = 60, .width_mm = 48, .height_mm = 84, .flags = DRM_MODE_FLAG_PVSYNC,@@ -81,7 +80,6 @@ static const struct drm_display_mode sony_acx424akp_cmd_mode = {* Some desired refresh rate, experiments at the maximum "pixel" * clock speed (HS clock 420 MHz) yields around 117Hz. */ - .vrefresh = 60, .width_mm = 48, .height_mm = 84, };drivers/gpu/drm/panel/panel-sony-acx565akm.c +0
-1@@ -514,7 +514,6 @@ static const struct drm_display_mode acx565akm_mode = { .vsync_start = 480 + 3, .vsync_end = 480 + 3 + 3, .vtotal = 480 + 3 + 3 + 4, - .vrefresh = 57, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 77,drivers/gpu/drm/panel/panel-tpo-td028ttec1.c +0
-1@@ -281,7 +281,6 @@ static const struct drm_display_mode td028ttec1_mode = { .vsync_start = 640 + 4, .vsync_end = 640 + 4 + 2, .vtotal = 640 + 4 + 2 + 2, - .vrefresh = 66, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 43,drivers/gpu/drm/panel/panel-tpo-td043mtea1.c +0
-1@@ -339,7 +339,6 @@ static const struct drm_display_mode td043mtea1_mode = { .vsync_start = 480 + 39, .vsync_end = 480 + 39 + 1, .vtotal = 480 + 39 + 1 + 34, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 94,drivers/gpu/drm/panel/panel-tpo-tpg110.c +0
-5@@ -112,7 +112,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 1, .vtotal = 480 + 10 + 1 + 35, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },@@ -129,7 +128,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 480 + 18, .vsync_end = 480 + 18 + 1, .vtotal = 480 + 18 + 1 + 27, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },@@ -146,7 +144,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 1, .vtotal = 272 + 2 + 1 + 12, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },@@ -163,7 +160,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 640 + 4, .vsync_end = 640 + 4 + 1, .vtotal = 640 + 4 + 1 + 8, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },@@ -180,7 +176,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 240 + 2, .vsync_end = 240 + 2 + 1, .vtotal = 240 + 2 + 1 + 20, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },drivers/gpu/drm/panel/panel-truly-nt35597.c +0
-1@@ -536,7 +536,6 @@ static const struct drm_display_mode qcom_sdm845_mtp_2k_mode = { .vsync_start = 2560 + 8, .vsync_end = 2560 + 8 + 1, .vtotal = 2560 + 8 + 1 + 7, - .vrefresh = 60, .flags = 0, };drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c +1
-2@@ -243,7 +243,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 22, .vsync_end = 1280 + 22 + 4, .vtotal = 1280 + 22 + 4 + 11, - .vrefresh = 60, .clock = 64000, .width_mm = 68, .height_mm = 121,@@ -259,7 +258,7 @@ static int xpp055c272_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (ctx->dev,"Failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/sti/sti_hda.c +0
-1@@ -586,7 +586,6 @@ static int sti_hda_connector_get_modes(struct drm_connector *connector) &hda_supported_modes[i].mode);if (!mode)continue ; - mode->vrefresh =drm_mode_vrefresh (mode);/* the first mode is the preferred mode */ if (i ==0 )drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +0
-2@@ -2226,7 +2226,6 @@ void vmw_guess_mode_timing(struct drm_display_mode *mode) mode->vtotal = mode->vsync_end +50 ; mode->clock = (u32 )mode->htotal * (u32 )mode->vtotal /100 *6 ; - mode->vrefresh =drm_mode_vrefresh (mode); }@@ -2300,7 +2299,6 @@ int vmw_du_connector_fill_modes(struct drm_connector *connector, mode =drm_mode_duplicate (dev, bmode);if (!mode)return 0 ; - mode->vrefresh =drm_mode_vrefresh (mode);drm_mode_probed_add (connector, mode); }include/drm/drm_modes.h +1
-11@@ -380,16 +380,6 @@ struct drm_display_mode {*/ int private_flags; -/** -* @vrefresh: -* -* Vertical refresh rate, for debug output in human readable form. Not -* used in a functional way. -* -* This value is in Hz. -*/ -int vrefresh; -/** * @picture_aspect_ratio: * @@ -421,7 +411,7 @@ struct drm_display_mode {* @m: display mode */ #define DRM_MODE_ARG (m) \ - (m)->name, (m)->vrefresh, (m)->clock, \ + (m)->name, drm_mode_vrefresh(m), (m)->clock, \ (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ (m)->vdisplay, (m)->vsync_start, (m)->vsync_end, (m)->vtotal, \ (m)->type, (m)->flags
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 04/12] drm: Nuke mode->vrefresh
Quoted 27 lines · Ville Syrjälä
Quoted 26 lines · Andrzej Hajda
Quoted 11 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Get rid of
mode->vrefreshand just calculate it on demand. Saves a bit of space and avoids the cached value getting out of sync with reality.Mostly done with cocci, with the following manual fixups:
- Remove the now empty loop indrm_helper_probe_single_connector_modes()
- Fix__MODE()macro inch7006_mode.c
- FixDRM_MODE_ARG()macro indrm_modes.h
- Remove leftover comment fromsamsung_s6d16d0_mode...
drivers/gpu/drm/panel/panel-arm-versatile.c static const struct versatile_panel_type versatile_panels[] = { · line 146
Quoted 9 lines
drivers/gpu/drm/panel/panel-arm-versatile.c +0
-1@@ -143,7 +143,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 240 + 5, .vsync_end = 240 + 5 + 6, .vtotal = 240 + 5 + 6 + 5, - .vrefresh = 116,Are you sure vrefresh calculated (from totals and clock) is different than this field? If not, we risk regressions.
Quoted 3 lines
Quoted 1 line
This case is OK, but there is plenty other cases.
IIRC I did spot check a few of them. But which code exactly do you think is abusing vrefresh and thus could break?
I guess suspect/potential victim is every code which uses drm_mode_vrefresh - after this patch the function can return different value(if there are differences between provided and calculated vrefresh).
Quick examples where output of this function matters:
https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c#L42
https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/tilcdc/tilcdc_crtc.c#L810
Regards
Andrzej
Quoted 1,612 lines
Quoted 1,612 lines
Regards
Andrzej
Quoted 1,605 lines
drivers/gpu/drm/panel/panel-arm-versatile.c +0
-3.flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, },@@ -167,7 +166,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 480 + 11, .vsync_end = 480 + 11 + 2, .vtotal = 480 + 11 + 2 + 32, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, },@@ -190,7 +188,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 220 + 0, .vsync_end = 220 + 0 + 2, .vtotal = 220 + 0 + 2 + 1, - .vrefresh = 390, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,@@ -214,7 +211,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 320 + 2, .vsync_end = 320 + 2 + 2, .vtotal = 320 + 2 + 2 + 2, - .vrefresh = 116, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,drivers/gpu/drm/panel/panel-boe-himax8279d.c +1
-2@@ -229,7 +229,7 @@ static int boe_panel_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {DRM_DEV_ERROR (pinfo->base.dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay,drm_mode_vrefresh (m));return -ENOMEM ; }@@ -262,7 +262,6 @@ static const struct drm_display_mode default_display_mode = { .vsync_start = 1920 + 10, .vsync_end = 1920 + 10 + 14, .vtotal = 1920 + 10 + 14 + 4, - .vrefresh = 60, };/* 8 inch */ drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +1
-5@@ -594,7 +594,6 @@ static const struct drm_display_mode boe_tv101wum_nl6_default_mode = { .vsync_start = 1920 + 10, .vsync_end = 1920 + 10 + 14, .vtotal = 1920 + 10 + 14 + 4, - .vrefresh = 60, };static const struct panel_desc boe_tv101wum_nl6_desc = {@@ -622,7 +621,6 @@ static const struct drm_display_mode auo_kd101n80_45na_default_mode = { .vsync_start = 1920 + 16, .vsync_end = 1920 + 16 + 4, .vtotal = 1920 + 16 + 4 + 16, - .vrefresh = 60, };static const struct panel_desc auo_kd101n80_45na_desc = {@@ -650,7 +648,6 @@ static const struct drm_display_mode boe_tv101wum_n53_default_mode = { .vsync_start = 1920 + 20, .vsync_end = 1920 + 20 + 4, .vtotal = 1920 + 20 + 4 + 10, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };@@ -678,7 +675,6 @@ static const struct drm_display_mode auo_b101uan08_3_default_mode = { .vsync_start = 1920 + 34, .vsync_end = 1920 + 34 + 2, .vtotal = 1920 + 34 + 2 + 24, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };@@ -706,7 +702,7 @@ static int boe_panel_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay,drm_mode_vrefresh (m));return -ENOMEM ; }drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c +1
-2@@ -392,7 +392,6 @@ static int k101_im2ba02_unprepare(struct drm_panel *panel)static const struct drm_display_mode k101_im2ba02_default_mode = { .clock =70000 , - .vrefresh =60 , .hdisplay =800 , .hsync_start =800 +20 ,@@ -420,7 +419,7 @@ static int k101_im2ba02_get_modes(struct drm_panel *panel,DRM_DEV_ERROR (&ctx->dsi->dev,"failed to add mode %ux%ux@%u\n" , k101_im2ba02_default_mode.hdisplay, k101_im2ba02_default_mode.vdisplay, - k101_im2ba02_default_mode.vrefresh); +drm_mode_vrefresh (&k101_im2ba02_default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c +1
-2@@ -153,7 +153,6 @@ static const struct drm_display_mode feiyang_default_mode = { .vsync_start = 600 + 12, .vsync_end = 600 + 12 + 2, .vtotal = 600 + 12 + 2 + 21, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, };@@ -169,7 +168,7 @@ static int feiyang_get_modes(struct drm_panel *panel,DRM_DEV_ERROR (&ctx->dsi->dev,"failed to add mode %ux%ux@%u\n" , feiyang_default_mode.hdisplay, feiyang_default_mode.vdisplay, - feiyang_default_mode.vrefresh); +drm_mode_vrefresh (&feiyang_default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-ilitek-ili9322.c +0
-7@@ -549,7 +549,6 @@ static const struct drm_display_mode srgb_320x240_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 1, .vtotal = 262, - .vrefresh = 60, .flags = 0, };@@ -563,7 +562,6 @@ static const struct drm_display_mode srgb_360x240_mode = { .vsync_start = 240 + 21, .vsync_end = 240 + 21 + 1, .vtotal = 262, - .vrefresh = 60, .flags = 0, };@@ -578,7 +576,6 @@ static const struct drm_display_mode prgb_320x240_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 1, .vtotal = 262, - .vrefresh = 60, .flags = 0, };@@ -593,7 +590,6 @@ static const struct drm_display_mode yuv_640x320_mode = { .vsync_start = 320 + 4, .vsync_end = 320 + 4 + 1, .vtotal = 320 + 4 + 1 + 18, - .vrefresh = 60, .flags = 0, };@@ -607,7 +603,6 @@ static const struct drm_display_mode yuv_720x360_mode = { .vsync_start = 360 + 4, .vsync_end = 360 + 4 + 1, .vtotal = 360 + 4 + 1 + 18, - .vrefresh = 60, .flags = 0, };@@ -622,7 +617,6 @@ static const struct drm_display_mode itu_r_bt_656_640_mode = { .vsync_start = 480 + 4, .vsync_end = 480 + 4 + 1, .vtotal = 500, - .vrefresh = 60, .flags = 0, };@@ -637,7 +631,6 @@ static const struct drm_display_mode itu_r_bt_656_720_mode = { .vsync_start = 480 + 4, .vsync_end = 480 + 4 + 1, .vtotal = 500, - .vrefresh = 60, .flags = 0, };drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +1
-2@@ -370,7 +370,6 @@ static int ili9881c_unprepare(struct drm_panel *panel)static const struct drm_display_mode bananapi_default_mode = { .clock =62000 , - .vrefresh =60 , .hdisplay =720 , .hsync_start =720 +10 ,@@ -394,7 +393,7 @@ static int ili9881c_get_modes(struct drm_panel *panel,dev_err (&ctx->dsi->dev,"failed to add mode %ux%ux@%u\n" , bananapi_default_mode.hdisplay, bananapi_default_mode.vdisplay, - bananapi_default_mode.vrefresh); +drm_mode_vrefresh (&bananapi_default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-innolux-p079zca.c +1
-3@@ -223,7 +223,6 @@ static const struct drm_display_mode innolux_p079zca_mode = { .vsync_start = 1024 + 20, .vsync_end = 1024 + 20 + 4, .vtotal = 1024 + 20 + 4 + 20, - .vrefresh = 60, };static const struct panel_desc innolux_p079zca_panel_desc = {@@ -257,7 +256,6 @@ static const struct drm_display_mode innolux_p097pfg_mode = { .vsync_start = 2048 + 100, .vsync_end = 2048 + 100 + 2, .vtotal = 2048 + 100 + 2 + 18, - .vrefresh = 60, };/* @@ -401,7 +399,7 @@ static int innolux_panel_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {DRM_DEV_ERROR (panel->dev,"failed to add mode %ux%ux@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay,drm_mode_vrefresh (m));return -ENOMEM ; }drivers/gpu/drm/panel/panel-jdi-lt070me05000.c +1
-2@@ -296,7 +296,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1920 + 3, .vsync_end = 1920 + 3 + 5, .vtotal = 1920 + 3 + 5 + 6, - .vrefresh = 60, .flags = 0, };@@ -311,7 +310,7 @@ static int jdi_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c +1
-2@@ -318,7 +318,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 2048 + 95, .vsync_end = 2048 + 95 + 2, .vtotal = 2048 + 95 + 2 + 23, - .vrefresh = 60, }; static int kingdisplay_panel_get_modes(struct drm_panel *panel,@@ -330,7 +329,7 @@ static int kingdisplay_panel_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-leadtek-ltk500hd1829.c +1
-2@@ -376,7 +376,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 30, .vsync_end = 1280 + 30 + 4, .vtotal = 1280 + 30 + 4 + 12, - .vrefresh = 60, .clock = 41600, .width_mm = 62, .height_mm = 110,@@ -392,7 +391,7 @@ static int ltk500hd1829_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (ctx->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-lg-lb035q02.c +0
-1@@ -134,7 +134,6 @@ static const struct drm_display_mode lb035q02_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 2, .vtotal = 240 + 4 + 2 + 18, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 70,drivers/gpu/drm/panel/panel-lg-lg4573.c +1
-2@@ -206,7 +206,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 800 + 15, .vsync_end = 800 + 15 + 15, .vtotal = 800 + 15 + 15 + 15, - .vrefresh = 60, }; static int lg4573_get_modes(struct drm_panel *panel,@@ -218,7 +217,7 @@ static int lg4573_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-nec-nl8048hl11.c +0
-1@@ -116,7 +116,6 @@ static const struct drm_display_mode nl8048_mode = { .vsync_start = 480 + 3, .vsync_end = 480 + 3 + 1, .vtotal = 480 + 3 + 1 + 4, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 89,drivers/gpu/drm/panel/panel-novatek-nt39016.c +0
-1@@ -327,7 +327,6 @@ static const struct nt39016_panel_info kd035g6_info = { .vsync_start = 240 + 5, .vsync_end = 240 + 5 + 1, .vtotal = 240 + 5 + 1 + 4, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, }, .width_mm = 71,drivers/gpu/drm/panel/panel-olimex-lcd-olinuxino.c +0
-1@@ -170,7 +170,6 @@ static int lcd_olinuxino_get_modes(struct drm_panel *panel, lcd_mode->vpw; mode->vtotal = lcd_mode->vactive + lcd_mode->vfp + lcd_mode->vpw + lcd_mode->vbp; - mode->vrefresh = lcd_mode->refresh;/* Always make the first mode preferred */ if (i ==0 )drivers/gpu/drm/panel/panel-orisetech-otm8009a.c +1
-2@@ -81,7 +81,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 800 + 15, .vsync_end = 800 + 15 + 10, .vtotal = 800 + 15 + 10 + 14, - .vrefresh = 50, .flags = 0, .width_mm = 52, .height_mm = 86,@@ -358,7 +357,7 @@ static int otm8009a_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c +1
-2@@ -102,7 +102,6 @@ static const struct drm_display_mode default_mode_osd101t2587 = { .vsync_start = 1200 + 24, .vsync_end = 1200 + 24 + 6, .vtotal = 1200 + 24 + 6 + 48, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -117,7 +116,7 @@ static int osd101t2587_panel_get_modes(struct drm_panel *panel,dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , osd101t2587->default_mode->hdisplay, osd101t2587->default_mode->vdisplay, - osd101t2587->default_mode->vrefresh); +drm_mode_vrefresh (osd101t2587->default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +1
-2@@ -149,7 +149,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1200 + 24, .vsync_end = 1200 + 24 + 6, .vtotal = 1200 + 24 + 6 + 48, - .vrefresh = 60, }; static int wuxga_nt_panel_get_modes(struct drm_panel *panel,@@ -161,7 +160,7 @@ static int wuxga_nt_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c +2
-2@@ -209,7 +209,6 @@ static const struct drm_display_mode rpi_touchscreen_modes[] = { .vsync_start = 480 + 7, .vsync_end = 480 + 7 + 2, .vtotal = 480 + 7 + 2 + 21, - .vrefresh = 60, }, };@@ -322,7 +321,8 @@ static int rpi_touchscreen_get_modes(struct drm_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay, +drm_mode_vrefresh (m));continue ; }drivers/gpu/drm/panel/panel-raydium-rm67191.c +1
-2@@ -218,7 +218,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1920 + 10, .vsync_end = 1920 + 10 + 2, .vtotal = 1920 + 10 + 2 + 4, - .vrefresh = 60, .width_mm = 68, .height_mm = 121, .flags = DRM_MODE_FLAG_NHSYNC |@@ -445,7 +444,7 @@ static int rad_panel_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-raydium-rm68200.c +1
-2@@ -92,7 +92,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 12, .vsync_end = 1280 + 12 + 4, .vtotal = 1280 + 12 + 4 + 12, - .vrefresh = 50, .flags = 0, .width_mm = 68, .height_mm = 122,@@ -339,7 +338,7 @@ static int rm68200_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c +2
-3@@ -223,7 +223,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1440 + 20, .vsync_end = 1440 + 20 + 4, .vtotal = 1440 + 20 + 4 + 12, - .vrefresh = 60, .clock = 75276, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 65,@@ -240,7 +239,7 @@ static int jh057n_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (ctx->dev,"Failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }@@ -360,7 +359,7 @@ static int jh057n_probe(struct mipi_dsi_device *dsi)DRM_DEV_INFO (dev,"%ux%u@%u %ubpp dsi %udl - ready\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh, +drm_mode_vrefresh (&default_mode),mipi_dsi_pixel_format_to_bpp (dsi->format), dsi->lanes);jh057n_debugfs_init (ctx);drivers/gpu/drm/panel/panel-ronbo-rb070d30.c +0
-1@@ -103,7 +103,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 600 + 12, .vsync_end = 600 + 12 + 10, .vtotal = 600 + 12 + 10 + 13, - .vrefresh = 60, .width_mm = 154, .height_mm = 85,drivers/gpu/drm/panel/panel-samsung-s6d16d0.c +0
-6@@ -37,12 +37,6 @@ static const struct drm_display_mode samsung_s6d16d0_mode = { .vsync_start = 480 + 1, .vsync_end = 480 + 1 + 1, .vtotal = 480 + 1 + 1 + 1, -/* -* This depends on the clocking HS vs LP rate, this value -* is calculated as: -* vrefresh = (clock * 1000) / (htotal*vtotal) -*/ - .vrefresh = 816, .width_mm = 84, .height_mm = 48, };drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c +1
-3@@ -617,7 +617,6 @@ static const struct drm_display_mode s6e3ha2_mode = { .vsync_start = 2560 + 1, .vsync_end = 2560 + 1 + 1, .vtotal = 2560 + 1 + 1 + 15, - .vrefresh = 60, .flags = 0, };@@ -636,7 +635,6 @@ static const struct drm_display_mode s6e3hf2_mode = { .vsync_start = 2560 + 1, .vsync_end = 2560 + 1 + 1, .vtotal = 2560 + 1 + 1 + 15, - .vrefresh = 60, .flags = 0, };@@ -655,7 +653,7 @@ static int s6e3ha2_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , ctx->desc->mode->hdisplay, ctx->desc->mode->vdisplay, - ctx->desc->mode->vrefresh); +drm_mode_vrefresh (ctx->desc->mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-samsung-s6e63j0x03.c +1
-2@@ -52,7 +52,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 320 + 150, .vsync_end = 320 + 150 + 1, .vtotal = 320 + 150 + 1 + 2, - .vrefresh = 30, .flags = 0, };@@ -409,7 +408,7 @@ static int s6e63j0x03_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +1
-2@@ -117,7 +117,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 800 + 28, .vsync_end = 800 + 28 + 2, .vtotal = 800 + 28 + 2 + 1, - .vrefresh = 60, .width_mm = 53, .height_mm = 89, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,@@ -371,7 +370,7 @@ static int s6e63m0_get_modes(struct drm_panel *panel,if (!mode) {DRM_ERROR ("failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c +0
-1@@ -177,7 +177,6 @@ static const struct drm_display_mode s6e88a0_ams452ef01_mode = { .vsync_start = 960 + 14, .vsync_end = 960 + 14 + 2, .vtotal = 960 + 14 + 2 + 8, - .vrefresh = 60, .width_mm = 56, .height_mm = 100, };drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +2
-1@@ -92,7 +92,8 @@ static int seiko_panel_get_fixed_modes(struct seiko_panel *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->base.dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay, +drm_mode_vrefresh (m));continue ; }drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c +1
-2@@ -269,7 +269,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1600 + 4, .vsync_end = 1600 + 4 + 8, .vtotal = 1600 + 4 + 8 + 32, - .vrefresh = 60, }; static int sharp_panel_get_modes(struct drm_panel *panel,@@ -281,7 +280,7 @@ static int sharp_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c +0
-1@@ -93,7 +93,6 @@ static const struct drm_display_mode ls037v7dw01_mode = { .vsync_start = 640 + 1, .vsync_end = 640 + 1 + 1, .vtotal = 640 + 1 + 1 + 1, - .vrefresh = 58, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 56,drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c +1
-2@@ -201,7 +201,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 960 + 3, .vsync_end = 960 + 3 + 15, .vtotal = 960 + 3 + 15 + 1, - .vrefresh = 60, }; static int sharp_nt_panel_get_modes(struct drm_panel *panel,@@ -213,7 +212,7 @@ static int sharp_nt_panel_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-simple.c +2
-83@@ -161,7 +161,8 @@ static unsigned int panel_simple_get_display_modes(struct panel_simple *panel, mode =drm_mode_duplicate (connector->dev, m);if (!mode) {dev_err (panel->base.dev,"failed to add mode %ux%u@%u\n" , - m->hdisplay, m->vdisplay, m->vrefresh); + m->hdisplay, m->vdisplay, +drm_mode_vrefresh (m));continue ; }@@ -494,7 +495,6 @@ static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 10, .vtotal = 272 + 2 + 10 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -519,7 +519,6 @@ static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = { .vsync_start = 480 + 2, .vsync_end = 480 + 2 + 45, .vtotal = 480 + 2 + 45 + 0, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -570,7 +569,6 @@ static const struct drm_display_mode auo_b101aw03_mode = { .vsync_start = 600 + 16, .vsync_end = 600 + 16 + 6, .vtotal = 600 + 16 + 6 + 16, - .vrefresh = 60, };static const struct panel_desc auo_b101aw03 = {@@ -615,7 +613,6 @@ static const struct drm_display_mode auo_b101xtn01_mode = { .vsync_start = 768 + 14, .vsync_end = 768 + 14 + 42, .vtotal = 768 + 14 + 42, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -639,7 +636,6 @@ static const struct drm_display_mode auo_b116xak01_mode = { .vsync_start = 768 + 4, .vsync_end = 768 + 4 + 6, .vtotal = 768 + 4 + 6 + 15, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -668,7 +664,6 @@ static const struct drm_display_mode auo_b116xw03_mode = { .vsync_start = 768 + 10, .vsync_end = 768 + 10 + 12, .vtotal = 768 + 10 + 12 + 6, - .vrefresh = 60, };static const struct panel_desc auo_b116xw03 = {@@ -691,7 +686,6 @@ static const struct drm_display_mode auo_b133xtn01_mode = { .vsync_start = 768 + 3, .vsync_end = 768 + 3 + 6, .vtotal = 768 + 3 + 6 + 13, - .vrefresh = 60, };static const struct panel_desc auo_b133xtn01 = {@@ -714,7 +708,6 @@ static const struct drm_display_mode auo_b133htn01_mode = { .vsync_start = 1080 + 25, .vsync_end = 1080 + 25 + 10, .vtotal = 1080 + 25 + 10 + 10, - .vrefresh = 60, };static const struct panel_desc auo_b133htn01 = {@@ -770,7 +763,6 @@ static const struct drm_display_mode auo_g101evn010_mode = { .vsync_start = 800 + 8, .vsync_end = 800 + 8 + 2, .vtotal = 800 + 8 + 2 + 6, - .vrefresh = 60, };static const struct panel_desc auo_g101evn010 = {@@ -794,7 +786,6 @@ static const struct drm_display_mode auo_g104sn02_mode = { .vsync_start = 600 + 10, .vsync_end = 600 + 10 + 35, .vtotal = 600 + 10 + 35 + 2, - .vrefresh = 60, };static const struct panel_desc auo_g104sn02 = {@@ -906,7 +897,6 @@ static const struct drm_display_mode auo_t215hvn01_mode = { .vsync_start = 1080 + 4, .vsync_end = 1080 + 4 + 5, .vtotal = 1080 + 4 + 5 + 36, - .vrefresh = 60, };static const struct panel_desc auo_t215hvn01 = {@@ -933,7 +923,6 @@ static const struct drm_display_mode avic_tm070ddh03_mode = { .vsync_start = 600 + 17, .vsync_end = 600 + 17 + 1, .vtotal = 600 + 17 + 1 + 17, - .vrefresh = 60, };static const struct panel_desc avic_tm070ddh03 = {@@ -983,7 +972,6 @@ static const struct drm_display_mode boe_hv070wsa_mode = { .vsync_start = 600 + 10, .vsync_end = 600 + 10 + 10, .vtotal = 600 + 10 + 10 + 10, - .vrefresh = 60, };static const struct panel_desc boe_hv070wsa = {@@ -1006,7 +994,6 @@ static const struct drm_display_mode boe_nv101wxmn51_modes[] = { .vsync_start = 800 + 3, .vsync_end = 800 + 3 + 5, .vtotal = 800 + 3 + 5 + 24, - .vrefresh = 60, }, { .clock = 57500,@@ -1018,7 +1005,6 @@ static const struct drm_display_mode boe_nv101wxmn51_modes[] = { .vsync_start = 800 + 3, .vsync_end = 800 + 3 + 5, .vtotal = 800 + 3 + 5 + 24, - .vrefresh = 48, }, };@@ -1048,7 +1034,6 @@ static const struct drm_display_mode boe_nv140fhmn49_modes[] = { .vsync_start = 1080 + 3, .vsync_end = 1080 + 3 + 5, .vtotal = 1125, - .vrefresh = 60, }, };@@ -1079,7 +1064,6 @@ static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = { .vsync_start = 272 + 8, .vsync_end = 272 + 8 + 8, .vtotal = 272 + 8 + 8 + 8, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1104,7 +1088,6 @@ static const struct drm_display_mode cdtech_s070wv95_ct16_mode = { .vsync_start = 480 + 29, .vsync_end = 480 + 29 + 13, .vtotal = 480 + 29 + 13 + 3, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1128,7 +1111,6 @@ static const struct drm_display_mode chunghwa_claa070wp03xg_mode = { .vsync_start = 1280 + 1, .vsync_end = 1280 + 1 + 7, .vtotal = 1280 + 1 + 7 + 15, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1152,7 +1134,6 @@ static const struct drm_display_mode chunghwa_claa101wa01a_mode = { .vsync_start = 768 + 4, .vsync_end = 768 + 4 + 4, .vtotal = 768 + 4 + 4 + 4, - .vrefresh = 60, };static const struct panel_desc chunghwa_claa101wa01a = {@@ -1175,7 +1156,6 @@ static const struct drm_display_mode chunghwa_claa101wb01_mode = { .vsync_start = 768 + 16, .vsync_end = 768 + 16 + 8, .vtotal = 768 + 16 + 8 + 16, - .vrefresh = 60, };static const struct panel_desc chunghwa_claa101wb01 = {@@ -1198,7 +1178,6 @@ static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 2, .vtotal = 480 + 10 + 2 + 33, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1285,7 +1264,6 @@ static const struct drm_display_mode edt_et035012dm6_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 4, .vtotal = 240 + 4 + 4 + 14, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1317,7 +1295,6 @@ static const struct drm_display_mode edt_etm043080dh6gp_mode = { .vsync_start = 288 + 2, .vsync_end = 288 + 2 + 4, .vtotal = 288 + 2 + 4 + 10, - .vrefresh = 60, };static const struct panel_desc edt_etm043080dh6gp = {@@ -1342,7 +1319,6 @@ static const struct drm_display_mode edt_etm0430g0dh6_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 10, .vtotal = 272 + 2 + 10 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1366,7 +1342,6 @@ static const struct drm_display_mode edt_et057090dhu_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 3, .vtotal = 480 + 10 + 3 + 32, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1392,7 +1367,6 @@ static const struct drm_display_mode edt_etm0700g0dh6_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 2, .vtotal = 480 + 10 + 2 + 33, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1457,7 +1431,6 @@ static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = { .vsync_start = 480 + 37, .vsync_end = 480 + 37 + 2, .vtotal = 480 + 37 + 2 + 8, - .vrefresh = 60, };static const struct panel_desc foxlink_fl500wvr00_a0t = {@@ -1481,7 +1454,6 @@ static const struct drm_display_mode frida_frd350h54004_mode = { .vsync_start = 240 + 2, .vsync_end = 240 + 2 + 6, .vtotal = 240 + 2 + 6 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -1508,7 +1480,6 @@ static const struct drm_display_mode friendlyarm_hd702e_mode = { .vsync_start = 1280 + 4, .vsync_end = 1280 + 4 + 8, .vtotal = 1280 + 4 + 8 + 4, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -1531,7 +1502,6 @@ static const struct drm_display_mode giantplus_gpg482739qs5_mode = { .vsync_start = 272 + 8, .vsync_end = 272 + 8 + 1, .vtotal = 272 + 8 + 1 + 8, - .vrefresh = 60, };static const struct panel_desc giantplus_gpg482739qs5 = {@@ -1635,7 +1605,6 @@ static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = { .vsync_start = 480 + 16, .vsync_end = 480 + 16 + 13, .vtotal = 480 + 16 + 13 + 16, - .vrefresh = 60, };static const struct panel_desc hitachi_tx23d38vm0caa = {@@ -1662,7 +1631,6 @@ static const struct drm_display_mode innolux_at043tn24_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 10, .vtotal = 272 + 2 + 10 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1688,7 +1656,6 @@ static const struct drm_display_mode innolux_at070tn92_mode = { .vsync_start = 480 + 22, .vsync_end = 480 + 22 + 10, .vtotal = 480 + 22 + 23 + 10, - .vrefresh = 60, };static const struct panel_desc innolux_at070tn92 = {@@ -1799,7 +1766,6 @@ static const struct drm_display_mode innolux_g121x1_l03_mode = { .vsync_start = 768 + 38, .vsync_end = 768 + 38 + 1, .vtotal = 768 + 38 + 1 + 0, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -1861,7 +1827,6 @@ static const struct drm_display_mode innolux_n156bge_l21_mode = { .vsync_start = 768 + 2, .vsync_end = 768 + 2 + 6, .vtotal = 768 + 2 + 6 + 12, - .vrefresh = 60, };static const struct panel_desc innolux_n156bge_l21 = {@@ -1884,7 +1849,6 @@ static const struct drm_display_mode innolux_p120zdg_bf1_mode = { .vsync_start = 1440 + 3, .vsync_end = 1440 + 3 + 10, .vtotal = 1440 + 3 + 10 + 27, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -1912,7 +1876,6 @@ static const struct drm_display_mode innolux_zj070na_01p_mode = { .vsync_start = 600 + 16, .vsync_end = 600 + 16 + 4, .vtotal = 600 + 16 + 4 + 16, - .vrefresh = 60, };static const struct panel_desc innolux_zj070na_01p = {@@ -2008,7 +1971,6 @@ static const struct drm_display_mode lemaker_bl035_rgb_002_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 3, .vtotal = 240 + 4 + 3 + 15, - .vrefresh = 60, };static const struct panel_desc lemaker_bl035_rgb_002 = {@@ -2032,7 +1994,6 @@ static const struct drm_display_mode lg_lb070wv8_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 25, .vtotal = 480 + 10 + 25 + 10, - .vrefresh = 60, };static const struct panel_desc lg_lb070wv8 = {@@ -2057,7 +2018,6 @@ static const struct drm_display_mode lg_lp079qx1_sp0v_mode = { .vsync_start = 2048 + 8, .vsync_end = 2048 + 8 + 4, .vtotal = 2048 + 8 + 4 + 8, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2080,7 +2040,6 @@ static const struct drm_display_mode lg_lp097qx1_spa1_mode = { .vsync_start = 1536 + 3, .vsync_end = 1536 + 3 + 1, .vtotal = 1536 + 3 + 1 + 9, - .vrefresh = 60, };static const struct panel_desc lg_lp097qx1_spa1 = {@@ -2102,7 +2061,6 @@ static const struct drm_display_mode lg_lp120up1_mode = { .vsync_start = 1280 + 4, .vsync_end = 1280 + 4 + 4, .vtotal = 1280 + 4 + 4 + 12, - .vrefresh = 60, };static const struct panel_desc lg_lp120up1 = {@@ -2125,7 +2083,6 @@ static const struct drm_display_mode lg_lp129qe_mode = { .vsync_start = 1700 + 3, .vsync_end = 1700 + 3 + 10, .vtotal = 1700 + 3 + 10 + 36, - .vrefresh = 60, };static const struct panel_desc lg_lp129qe = {@@ -2206,7 +2163,6 @@ static const struct drm_display_mode mitsubishi_aa070mc01_mode = { .vsync_start = 480 + 0, .vsync_end = 480 + 48 + 1, .vtotal = 480 + 48 + 1 + 0, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -2221,7 +2177,6 @@ static const struct drm_display_mode logicpd_type_28_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 11, .vtotal = 272 + 2 + 11 + 3, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -2301,7 +2256,6 @@ static const struct drm_display_mode nec_nl4827hc19_05b_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 4, .vtotal = 272 + 2 + 4 + 2, - .vrefresh = 74, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2327,7 +2281,6 @@ static const struct drm_display_mode netron_dy_e231732_mode = { .vsync_start = 600 + 127, .vsync_end = 600 + 127 + 20, .vtotal = 600 + 127 + 20 + 3, - .vrefresh = 60, };static const struct panel_desc netron_dy_e231732 = {@@ -2350,7 +2303,6 @@ static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 10, .vtotal = 272 + 2 + 10 + 2, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2458,7 +2410,6 @@ static const struct drm_display_mode olimex_lcd_olinuxino_43ts_mode = { .vsync_start = 272 + 8, .vsync_end = 272 + 8 + 5, .vtotal = 272 + 8 + 5 + 3, - .vrefresh = 60, };static const struct panel_desc olimex_lcd_olinuxino_43ts = {@@ -2486,7 +2437,6 @@ static const struct drm_display_mode ontat_yx700wv03_mode = { .vsync_start = 483, .vsync_end = 493, .vtotal = 500, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2515,7 +2465,6 @@ static const struct drm_display_mode ortustech_com37h3m_mode = { .vsync_start = 640 + 4, .vsync_end = 640 + 4 + 3, .vtotal = 640 + 4 + 3 + 4, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2542,7 +2491,6 @@ static const struct drm_display_mode ortustech_com43h4m85ulc_mode = { .vsync_start = 800 + 3, .vsync_end = 800 + 3 + 3, .vtotal = 800 + 3 + 3 + 3, - .vrefresh = 60, };static const struct panel_desc ortustech_com43h4m85ulc = {@@ -2567,7 +2515,6 @@ static const struct drm_display_mode osddisplays_osd070t1718_19ts_mode = { .vsync_start = 480 + 22, .vsync_end = 480 + 22 + 13, .vtotal = 480 + 22 + 13 + 10, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -2594,7 +2541,6 @@ static const struct drm_display_mode pda_91_00156_a0_mode = { .vsync_start = 480 + 1, .vsync_end = 480 + 1 + 23, .vtotal = 480 + 1 + 23 + 22, - .vrefresh = 60, };static const struct panel_desc pda_91_00156_a0 = {@@ -2618,7 +2564,6 @@ static const struct drm_display_mode qd43003c0_40_mode = { .vsync_start = 272 + 4, .vsync_end = 272 + 4 + 10, .vtotal = 272 + 4 + 10 + 2, - .vrefresh = 60, };static const struct panel_desc qd43003c0_40 = {@@ -2672,7 +2617,6 @@ static const struct drm_display_mode rocktech_rk101ii01d_ct_mode = { .vsync_start = 800 + 2, .vsync_end = 800 + 2 + 5, .vtotal = 800 + 2 + 5 + 16, - .vrefresh = 60, };static const struct panel_desc rocktech_rk101ii01d_ct = {@@ -2701,7 +2645,6 @@ static const struct drm_display_mode samsung_lsn122dl01_c01_mode = { .vsync_start = 1600 + 2, .vsync_end = 1600 + 2 + 5, .vtotal = 1600 + 2 + 5 + 57, - .vrefresh = 60, };static const struct panel_desc samsung_lsn122dl01_c01 = {@@ -2723,7 +2666,6 @@ static const struct drm_display_mode samsung_ltn101nt05_mode = { .vsync_start = 600 + 3, .vsync_end = 600 + 3 + 6, .vtotal = 600 + 3 + 6 + 61, - .vrefresh = 60, };static const struct panel_desc samsung_ltn101nt05 = {@@ -2746,7 +2688,6 @@ static const struct drm_display_mode samsung_ltn140at29_301_mode = { .vsync_start = 768 + 2, .vsync_end = 768 + 2 + 5, .vtotal = 768 + 2 + 5 + 17, - .vrefresh = 60, };static const struct panel_desc samsung_ltn140at29_301 = {@@ -2793,7 +2734,6 @@ static const struct drm_display_mode sharp_ld_d5116z01b_mode = { .vsync_start = 1280 + 3, .vsync_end = 1280 + 3 + 10, .vtotal = 1280 + 3 + 10 + 57, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, };@@ -2819,7 +2759,6 @@ static const struct drm_display_mode sharp_lq070y3dg3b_mode = { .vsync_start = 480 + 8, .vsync_end = 480 + 8 + 2, .vtotal = 480 + 8 + 2 + 35, - .vrefresh = 60, .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE, };@@ -2846,7 +2785,6 @@ static const struct drm_display_mode sharp_lq035q7db03_mode = { .vsync_start = 320 + 9, .vsync_end = 320 + 9 + 1, .vtotal = 320 + 9 + 1 + 7, - .vrefresh = 60, };static const struct panel_desc sharp_lq035q7db03 = {@@ -2923,7 +2861,6 @@ static const struct drm_display_mode sharp_lq150x1lg11_mode = { .vsync_start = 768 + 37, .vsync_end = 768 + 37 + 2, .vtotal = 768 + 37 + 2 + 8, - .vrefresh = 60, };static const struct panel_desc sharp_lq150x1lg11 = {@@ -2974,7 +2911,6 @@ static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = { .vsync_start = 480 + 1, .vsync_end = 480 + 1 + 23, .vtotal = 480 + 1 + 23 + 22, - .vrefresh = 60, };static const struct panel_desc shelly_sca07010_bfn_lnn = {@@ -2997,7 +2933,6 @@ static const struct drm_display_mode starry_kr122ea0sra_mode = { .vsync_start = 1200 + 15, .vsync_end = 1200 + 15 + 2, .vtotal = 1200 + 15 + 2 + 18, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -3025,7 +2960,6 @@ static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = { .vsync_start = 480 + 13, .vsync_end = 480 + 13 + 2, .vtotal = 480 + 13 + 2 + 29, - .vrefresh = 62, };static const struct panel_desc tfc_s9700rtwv43tr_01b = {@@ -3101,7 +3035,6 @@ static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = { .vsync_start = 240 + 3, .vsync_end = 240 + 3 + 1, .vtotal = 240 + 3 + 1 + 17, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, }, };@@ -3129,7 +3062,6 @@ static const struct drm_display_mode ti_nspire_classic_lcd_mode[] = { .vsync_start = 240 + 0, .vsync_end = 240 + 0 + 1, .vtotal = 240 + 0 + 1 + 0, - .vrefresh = 60, .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, }, };@@ -3158,7 +3090,6 @@ static const struct drm_display_mode toshiba_lt089ac29000_mode = { .vsync_start = 768 + 20, .vsync_end = 768 + 20 + 7, .vtotal = 768 + 20 + 7 + 3, - .vrefresh = 60, };static const struct panel_desc toshiba_lt089ac29000 = {@@ -3183,7 +3114,6 @@ static const struct drm_display_mode tpk_f07a_0102_mode = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 2, .vtotal = 480 + 10 + 2 + 33, - .vrefresh = 60, };static const struct panel_desc tpk_f07a_0102 = {@@ -3206,7 +3136,6 @@ static const struct drm_display_mode tpk_f10a_0102_mode = { .vsync_start = 600 + 20, .vsync_end = 600 + 20 + 5, .vtotal = 600 + 20 + 5 + 25, - .vrefresh = 60, };static const struct panel_desc tpk_f10a_0102 = {@@ -3265,7 +3194,6 @@ static const struct drm_display_mode vl050_8048nt_c01_mode = { .vsync_start = 480 + 22, .vsync_end = 480 + 22 + 10, .vtotal = 480 + 22 + 10 + 23, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };@@ -3291,7 +3219,6 @@ static const struct drm_display_mode winstar_wf35ltiacd_mode = { .vsync_start = 240 + 4, .vsync_end = 240 + 4 + 3, .vtotal = 240 + 4 + 3 + 15, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -3317,7 +3244,6 @@ static const struct drm_display_mode arm_rtsm_mode[] = { .vsync_start = 768 + 3, .vsync_end = 768 + 3 + 6, .vtotal = 768 + 3 + 6 + 29, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, }, };@@ -3743,7 +3669,6 @@ static const struct drm_display_mode auo_b080uan01_mode = { .vsync_start = 1920 + 9, .vsync_end = 1920 + 9 + 2, .vtotal = 1920 + 9 + 2 + 8, - .vrefresh = 60, };static const struct panel_desc_dsi auo_b080uan01 = {@@ -3771,7 +3696,6 @@ static const struct drm_display_mode boe_tv080wum_nl0_mode = { .vsync_start = 1920 + 21, .vsync_end = 1920 + 21 + 3, .vtotal = 1920 + 21 + 3 + 18, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, };@@ -3801,7 +3725,6 @@ static const struct drm_display_mode lg_ld070wx3_sl01_mode = { .vsync_start = 1280 + 28, .vsync_end = 1280 + 28 + 1, .vtotal = 1280 + 28 + 1 + 14, - .vrefresh = 60, };static const struct panel_desc_dsi lg_ld070wx3_sl01 = {@@ -3829,7 +3752,6 @@ static const struct drm_display_mode lg_lh500wx1_sd03_mode = { .vsync_start = 1280 + 8, .vsync_end = 1280 + 8 + 4, .vtotal = 1280 + 8 + 4 + 12, - .vrefresh = 60, };static const struct panel_desc_dsi lg_lh500wx1_sd03 = {@@ -3857,7 +3779,6 @@ static const struct drm_display_mode panasonic_vvx10f004b00_mode = { .vsync_start = 1200 + 17, .vsync_end = 1200 + 17 + 2, .vtotal = 1200 + 17 + 2 + 16, - .vrefresh = 60, };static const struct panel_desc_dsi panasonic_vvx10f004b00 = {@@ -3886,7 +3807,6 @@ static const struct drm_display_mode lg_acx467akm_7_mode = { .vsync_start = 1920 + 2, .vsync_end = 1920 + 2 + 2, .vtotal = 1920 + 2 + 2 + 2, - .vrefresh = 60, };static const struct panel_desc_dsi lg_acx467akm_7 = {@@ -3914,7 +3834,6 @@ static const struct drm_display_mode osd101t2045_53ts_mode = { .vsync_start = 1200 + 16, .vsync_end = 1200 + 16 + 2, .vtotal = 1200 + 16 + 2 + 16, - .vrefresh = 60, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, };drivers/gpu/drm/panel/panel-sitronix-st7701.c +1
-1@@ -272,7 +272,7 @@ static int st7701_get_modes(struct drm_panel *panel,DRM_DEV_ERROR (&st7701->dsi->dev,"failed to add mode %ux%ux@%u\n" , desc_mode->hdisplay, desc_mode->vdisplay, - desc_mode->vrefresh); +drm_mode_vrefresh (desc_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-sitronix-st7789v.c +1
-2@@ -165,7 +165,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 320 + 8, .vsync_end = 320 + 8 + 4, .vtotal = 320 + 8 + 4 + 4, - .vrefresh = 60, }; static int st7789v_get_modes(struct drm_panel *panel,@@ -177,7 +176,7 @@ static int st7789v_get_modes(struct drm_panel *panel,if (!mode) {dev_err (panel->dev,"failed to add mode %ux%ux@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/panel/panel-sony-acx424akp.c +0
-2@@ -57,7 +57,6 @@ static const struct drm_display_mode sony_acx424akp_vid_mode = { .vsync_start = 864 + 14, .vsync_end = 864 + 14 + 1, .vtotal = 864 + 14 + 1 + 11, - .vrefresh = 60, .width_mm = 48, .height_mm = 84, .flags = DRM_MODE_FLAG_PVSYNC,@@ -81,7 +80,6 @@ static const struct drm_display_mode sony_acx424akp_cmd_mode = {* Some desired refresh rate, experiments at the maximum "pixel" * clock speed (HS clock 420 MHz) yields around 117Hz. */ - .vrefresh = 60, .width_mm = 48, .height_mm = 84, };drivers/gpu/drm/panel/panel-sony-acx565akm.c +0
-1@@ -514,7 +514,6 @@ static const struct drm_display_mode acx565akm_mode = { .vsync_start = 480 + 3, .vsync_end = 480 + 3 + 3, .vtotal = 480 + 3 + 3 + 4, - .vrefresh = 57, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 77,drivers/gpu/drm/panel/panel-tpo-td028ttec1.c +0
-1@@ -281,7 +281,6 @@ static const struct drm_display_mode td028ttec1_mode = { .vsync_start = 640 + 4, .vsync_end = 640 + 4 + 2, .vtotal = 640 + 4 + 2 + 2, - .vrefresh = 66, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 43,drivers/gpu/drm/panel/panel-tpo-td043mtea1.c +0
-1@@ -339,7 +339,6 @@ static const struct drm_display_mode td043mtea1_mode = { .vsync_start = 480 + 39, .vsync_end = 480 + 39 + 1, .vtotal = 480 + 39 + 1 + 34, - .vrefresh = 60, .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED, .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, .width_mm = 94,drivers/gpu/drm/panel/panel-tpo-tpg110.c +0
-5@@ -112,7 +112,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 480 + 10, .vsync_end = 480 + 10 + 1, .vtotal = 480 + 10 + 1 + 35, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },@@ -129,7 +128,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 480 + 18, .vsync_end = 480 + 18 + 1, .vtotal = 480 + 18 + 1 + 27, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },@@ -146,7 +144,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 272 + 2, .vsync_end = 272 + 2 + 1, .vtotal = 272 + 2 + 1 + 12, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },@@ -163,7 +160,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 640 + 4, .vsync_end = 640 + 4 + 1, .vtotal = 640 + 4 + 1 + 8, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },@@ -180,7 +176,6 @@ static const struct tpg110_panel_mode tpg110_modes[] = { .vsync_start = 240 + 2, .vsync_end = 240 + 2 + 1, .vtotal = 240 + 2 + 1 + 20, - .vrefresh = 60, }, .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, },drivers/gpu/drm/panel/panel-truly-nt35597.c +0
-1@@ -536,7 +536,6 @@ static const struct drm_display_mode qcom_sdm845_mtp_2k_mode = { .vsync_start = 2560 + 8, .vsync_end = 2560 + 8 + 1, .vtotal = 2560 + 8 + 1 + 7, - .vrefresh = 60, .flags = 0, };drivers/gpu/drm/panel/panel-xinpeng-xpp055c272.c +1
-2@@ -243,7 +243,6 @@ static const struct drm_display_mode default_mode = { .vsync_start = 1280 + 22, .vsync_end = 1280 + 22 + 4, .vtotal = 1280 + 22 + 4 + 11, - .vrefresh = 60, .clock = 64000, .width_mm = 68, .height_mm = 121,@@ -259,7 +258,7 @@ static int xpp055c272_get_modes(struct drm_panel *panel,if (!mode) {DRM_DEV_ERROR (ctx->dev,"Failed to add mode %ux%u@%u\n" , default_mode.hdisplay, default_mode.vdisplay, - default_mode.vrefresh); +drm_mode_vrefresh (&default_mode));return -ENOMEM ; }drivers/gpu/drm/sti/sti_hda.c +0
-1@@ -586,7 +586,6 @@ static int sti_hda_connector_get_modes(struct drm_connector *connector) &hda_supported_modes[i].mode);if (!mode)continue ; - mode->vrefresh =drm_mode_vrefresh (mode);/* the first mode is the preferred mode */ if (i ==0 )drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +0
-2@@ -2226,7 +2226,6 @@ void vmw_guess_mode_timing(struct drm_display_mode *mode) mode->vtotal = mode->vsync_end +50 ; mode->clock = (u32 )mode->htotal * (u32 )mode->vtotal /100 *6 ; - mode->vrefresh =drm_mode_vrefresh (mode); }@@ -2300,7 +2299,6 @@ int vmw_du_connector_fill_modes(struct drm_connector *connector, mode =drm_mode_duplicate (dev, bmode);if (!mode)return 0 ; - mode->vrefresh =drm_mode_vrefresh (mode);drm_mode_probed_add (connector, mode); }include/drm/drm_modes.h +0
-10@@ -380,16 +380,6 @@ struct drm_display_mode {*/ int private_flags; -/** -* @vrefresh: -* -* Vertical refresh rate, for debug output in human readable form. Not -* used in a functional way. -* -* This value is in Hz. -*/ -int vrefresh; -/** * @picture_aspect_ratio: * @@ -421,7 +411,7 @@ struct drm_display_mode {
Quoted 8 lines
Quoted 8 lines
include/drm/drm_modes.h struct drm_display_mode { · line 417
Quoted 8 lines
include/drm/drm_modes.h +1
-1* @m: display mode */ #define DRM_MODE_ARG (m) \ - (m)->name, (m)->vrefresh, (m)->clock, \ + (m)->name, drm_mode_vrefresh(m), (m)->clock, \ (m)->hdisplay, (m)->hsync_start, (m)->hsync_end, (m)->htotal, \ (m)->vdisplay, (m)->vsync_start, (m)->vsync_end, (m)->vtotal, \ (m)->type, (m)->flags
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 04/12] drm: Nuke mode->vrefresh
Quoted 33 lines · Andrzej Hajda
Quoted 27 lines · Ville Syrjälä
Quoted 26 lines · Andrzej Hajda
Quoted 11 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Get rid of
mode->vrefreshand just calculate it on demand. Saves a bit of space and avoids the cached value getting out of sync with reality.Mostly done with cocci, with the following manual fixups:
- Remove the now empty loop indrm_helper_probe_single_connector_modes()
- Fix__MODE()macro inch7006_mode.c
- FixDRM_MODE_ARG()macro indrm_modes.h
- Remove leftover comment fromsamsung_s6d16d0_mode...
drivers/gpu/drm/panel/panel-arm-versatile.c static const struct versatile_panel_type versatile_panels[] = { · line 146
Quoted 9 lines
drivers/gpu/drm/panel/panel-arm-versatile.c +0
-1@@ -143,7 +143,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 240 + 5, .vsync_end = 240 + 5 + 6, .vtotal = 240 + 5 + 6 + 5, - .vrefresh = 116,Are you sure vrefresh calculated (from totals and clock) is different than this field? If not, we risk regressions.
Quoted 3 lines
Quoted 1 line
This case is OK, but there is plenty other cases.
IIRC I did spot check a few of them. But which code exactly do you think is abusing vrefresh and thus could break?
Quoted 7 lines
I guess suspect/potential victim is every code which uses
drm_mode_vrefresh- after this patch the function can return different value(if there are differences between provided and calculated vrefresh).Quick examples where output of this function matters:
Already looks quite sketchy due to rounding.
Quoted 2 lines
https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c#L42
msleep() is in no way accurate so looks rather sketchy as well.
Quoted 1 line
https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/tilcdc/tilcdc_crtc.c#L810
Another thing that suffers from rounding issues.
So to me these all look like code that someone should fix regardless.
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 04/12] drm: Nuke mode->vrefresh
Quoted 47 lines · Ville Syrjälä
Quoted 33 lines · Andrzej Hajda
Quoted 27 lines · Ville Syrjälä
Quoted 26 lines · Andrzej Hajda
Quoted 11 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Get rid of
mode->vrefreshand just calculate it on demand. Saves a bit of space and avoids the cached value getting out of sync with reality.Mostly done with cocci, with the following manual fixups:
- Remove the now empty loop indrm_helper_probe_single_connector_modes()
- Fix__MODE()macro inch7006_mode.c
- FixDRM_MODE_ARG()macro indrm_modes.h
- Remove leftover comment fromsamsung_s6d16d0_mode...
drivers/gpu/drm/panel/panel-arm-versatile.c static const struct versatile_panel_type versatile_panels[] = { · line 146
Quoted 9 lines
drivers/gpu/drm/panel/panel-arm-versatile.c +0
-1@@ -143,7 +143,6 @@ static const struct versatile_panel_type versatile_panels[] = { .vsync_start = 240 + 5, .vsync_end = 240 + 5 + 6, .vtotal = 240 + 5 + 6 + 5, - .vrefresh = 116,Are you sure vrefresh calculated (from totals and clock) is different than this field? If not, we risk regressions.
Quoted 3 lines
Quoted 1 line
This case is OK, but there is plenty other cases.
IIRC I did spot check a few of them. But which code exactly do you think is abusing vrefresh and thus could break?
Quoted 7 lines
I guess suspect/potential victim is every code which uses
drm_mode_vrefresh- after this patch the function can return different value(if there are differences between provided and calculated vrefresh).Quick examples where output of this function matters:
Already looks quite sketchy due to rounding.
Quoted 7 lines
msleep()is in no way accurate so looks rather sketchy as well.Quoted 1 line
https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/tilcdc/tilcdc_crtc.c#L810
Another thing that suffers from rounding issues.
So to me these all look like code that someone should fix regardless.
OK, so I went ahead a wrote a bit of cocci [1] to find the bad apples.
Unfortunately it found a lot of strange stuff:
panel-sony-acx424akp.c:51/sony_acx424akp_vid_mode: 60 vs. 727 (.clock=330000 .htotal=480 + 15 + 0 + 15 .vtotal=864 + 14 + 1 + 11) panel-sony-acx424akp.c:71/sony_acx424akp_cmd_mode: 60 vs. 711 (.clock=420160 .htotal=480 + 154 + 16 + 32 .vtotal=864 + 1 + 1 + 1) panel-ilitek-ili9322.c:543/srgb_320x240_mode: 60 vs. 10168 (.clock=2453500 .htotal=320 + 359 + 1 + 241 .vtotal=262) panel-ilitek-ili9322.c:587/yuv_640x320_mode: 60 vs. 7768 (.clock=2454000 .htotal=640 + 252 + 1 + 28 .vtotal=320 + 4 + 1 + 18) panel-ilitek-ili9322.c:616/itu_r_bt_656_640_mode: 60 vs. 5358 (.clock=2454000 .htotal=640 + 3 + 1 + 272 .vtotal=500) panel-ilitek-ili9322.c:557/srgb_360x240_mode: 60 vs. 16178 (.clock=2700000 .htotal=360 + 35 + 1 + 241 .vtotal=262) panel-ilitek-ili9322.c:601/yuv_720x360_mode: 60 vs. 7071 (.clock=2700000 .htotal=720 + 252 + 1 + 24 .vtotal=360 + 4 + 1 + 18) panel-ilitek-ili9322.c:631/itu_r_bt_656_720_mode: 60 vs. 5422 (.clock=2700000 .htotal=720 + 3 + 1 + 272 .vtotal=500) panel-ilitek-ili9322.c:572/prgb_320x240_mode: 60 vs. 59725 (.clock=6400000 .htotal=320 + 38 + 1 + 50 .vtotal=262) panel-lg-lg4573.c:200/default_mode: 60 vs. 57 (.clock=27000 .htotal=480 + 10 + 59 + 10 .vtotal=800 + 15 + 15 + 15) panel-sitronix-st7789v.c:159/default_mode: 60 vs. 70 (.clock=7000 .htotal=240 + 38 + 10 + 10 .vtotal=320 + 8 + 4 + 4) panel-arm-versatile.c:161/versatile_panels[]: 60 vs. 61 (.clock=25000 .htotal=640 + 24 + 96 + 24 .vtotal=480 + 11 + 2 + 32) panel-arm-versatile.c:208/versatile_panels[]: 116 vs. 59 (.clock=5400 .htotal=240 + 10 + 10 + 20 .vtotal=320 + 2 + 2 + 2) panel-arm-versatile.c:184/versatile_panels[]: 390 vs. 1523 (.clock=62500 .htotal=176 + 2 + 3 + 3 .vtotal=220 + 0 + 2 + 1) panel-leadtek-ltk500hd1829.c:380/default_mode: 60 vs. 36 (.clock=41600 .htotal=720 + 50 + 50 + 50 .vtotal=1280 + 30 + 4 + 12) panel-feixin-k101-im2ba02.c:394/k101_im2ba02_default_mode: 60 vs. 62 (.clock=70000 .htotal=800 + 20 + 20 + 20 .vtotal=1280 + 16 + 4 + 4) panel-simple.c:1305/edt_etm043080dh6gp_mode: 60 vs. 67 (.clock=10870 .htotal=480 + 8 + 4 + 41 .vtotal=288 + 2 + 4 + 10) panel-simple.c:3881/lg_acx467akm_7_mode: 60 vs. 72 (.clock=150000 .htotal=1080 + 2 + 2 + 2 .vtotal=1920 + 2 + 2 + 2) panel-simple.c:2509/ortustech_com37h3m_mode: 60 vs. 67 (.clock=22153 .htotal=480 + 8 + 10 + 10 .vtotal=640 + 4 + 3 + 4) panel-simple.c:2480/ontat_yx700wv03_mode: 60 vs. 59 (.clock=29500 .htotal=992 .vtotal=500) panel-simple.c:1451/foxlink_fl500wvr00_a0t_mode: 60 vs. 55 (.clock=32260 .htotal=800 + 168 + 64 + 88 .vtotal=480 + 37 + 2 + 8) panel-simple.c:2589/pda_91_00156_a0_mode: 60 vs. 68 (.clock=33300 .htotal=800 + 1 + 64 + 64 .vtotal=480 + 1 + 23 + 22) panel-simple.c:2969/shelly_sca07010_bfn_lnn_mode: 60 vs. 68 (.clock=33300 .htotal=800 + 1 + 64 + 64 .vtotal=480 + 1 + 23 + 22) panel-simple.c:1682/innolux_at070tn92_mode: 60 vs. 58 (.clock=33333 .htotal=800 + 210 + 20 + 46 .vtotal=480 + 22 + 23 + 10) panel-simple.c:3260/vl050_8048nt_c01_mode: 60 vs. 58 (.clock=33333 .htotal=800 + 210 + 20 + 46 .vtotal=480 + 22 + 10 + 23) panel-simple.c:1098/cdtech_s070wv95_ct16_mode: 60 vs. 72 (.clock=35000 .htotal=800 + 40 + 40 + 48 .vtotal=480 + 29 + 13 + 3) panel-simple.c:788/auo_g104sn02_mode: 60 vs. 52 (.clock=40000 .htotal=800 + 40 + 216 + 128 .vtotal=600 + 10 + 35 + 2) panel-simple.c:3201/tpk_f10a_0102_mode: 60 vs. 54 (.clock=45000 .htotal=1024 + 176 + 5 + 88 .vtotal=600 + 20 + 5 + 25) panel-simple.c:2841/sharp_lq035q7db03_mode: 60 vs. 61 (.clock=5500 .htotal=240 + 16 + 7 + 5 .vtotal=320 + 9 + 1 + 7) panel-simple.c:1279/edt_et035012dm6_mode: 60 vs. 61 (.clock=6500 .htotal=320 + 20 + 68 .vtotal=240 + 4 + 4 + 14) panel-simple.c:2321/netron_dy_e231732_mode: 60 vs. 65 (.clock=66000 .htotal=1024 + 160 + 70 + 90 .vtotal=600 + 127 + 20 + 3) panel-simple.c:1122/chunghwa_claa070wp03xg_mode: 60 vs. 57 (.clock=66770 .htotal=800 + 49 + 33 + 17 .vtotal=1280 + 1 + 7 + 15) panel-simple.c:3824/lg_lh500wx1_sd03_mode: 60 vs. 61 (.clock=67000 .htotal=720 + 12 + 4 + 112 .vtotal=1280 + 8 + 4 + 12) panel-simple.c:764/auo_g101evn010_mode: 60 vs. 58 (.clock=68930 .htotal=1280 + 82 + 2 + 84 .vtotal=800 + 8 + 2 + 6) panel-simple.c:1169/chunghwa_claa101wb01_mode: 60 vs. 59 (.clock=69300 .htotal=1366 + 48 + 32 + 20 .vtotal=768 + 16 + 8 + 16) panel-simple.c:2002/lemaker_bl035_rgb_002_mode: 60 vs. 65 (.clock=7000 .htotal=320 + 20 + 30 + 38 .vtotal=240 + 4 + 3 + 15) panel-simple.c:2918/sharp_lq150x1lg11_mode: 60 vs. 65 (.clock=71100 .htotal=1024 + 168 + 64 + 88 .vtotal=768 + 37 + 2 + 8) panel-simple.c:2214/logicpd_type_28_mode: 60 vs. 59 (.clock=9000 .htotal=480 + 3 + 42 + 2 .vtotal=272 + 2 + 11 + 3) panel-simple.c:1525/giantplus_gpg482739qs5_mode: 60 vs. 59 (.clock=9000 .htotal=480 + 5 + 1 + 40 .vtotal=272 + 8 + 1 + 8) panel-simple.c:1073/cdtech_s043wq26h_ct7_mode: 60 vs. 57 (.clock=9000 .htotal=480 + 5 + 5 + 40 .vtotal=272 + 8 + 8 + 8) panel-simple.c:2613/qd43003c0_40_mode: 60 vs. 59 (.clock=9000 .htotal=480 + 8 + 4 + 39 .vtotal=272 + 4 + 10 + 2) panel-simple.c:3124/ti_nspire_classic_lcd_mode[]: 60 vs. 123 (.clock=10000 .htotal=320 + 6 + 6 + 6 .vtotal=240 + 0 + 1 + 0) panel-simple.c:3096/ti_nspire_cx_lcd_mode[]: 60 vs. 93 (.clock=10000 .htotal=320 + 50 + 6 + 38 .vtotal=240 + 3 + 1 + 17)
I presume a bunch of those are just lazyness, but there some real oddballs in the mix for sure. CCing everyone...
[1]
@find_substruct@
identifier P, C;
@@
struct P {
...
struct drm_display_mode C;
...
};
@submode@
identifier find_substruct.P, find_substruct.C, M;
expression CLK, HT, VT, VREF;
position POS;
@@
struct P M = {
...,
.C = {
.clock = CLK@POS
,...,
.htotal = HT
,...,
.vtotal = VT
,...,
.vrefresh = VREF
}
,...
};
@submodes@
identifier find_substruct.P, find_substruct.C, A;
expression CLK, HT, VT, VREF;
position POS;
@@
struct P A[...] = {
...,
{
.C = {
.clock = CLK@POS
,...,
.htotal = HT
,...,
.vtotal = VT
,...,
.vrefresh = VREF
}
},...
};
@mode@
identifier M;
expression CLK, HT, VT, VREF;
position POS;
@@
struct drm_display_mode M = {
.clock = CLK@POS
,...,
.htotal = HT
,...,
.vtotal = VT
,...,
.vrefresh = VREF
};
@modes@
identifier A;
expression CLK, HT, VT, VREF;
position POS;
@@
struct drm_display_mode A[...] = {
...,
{
...,
.clock = CLK@POS
,...,
.htotal = HT
,...,
.vtotal = VT
,...,
.vrefresh = VREF
,...
}
,...
};@script:python@
ht << mode.HT;
vt << mode.VT;
clk << mode.CLK;
vref << mode.VREF;
m << mode.M;
pos << mode.POS;
@@
def mode_vrefresh(clk, ht, vt):
return int(eval(clk)*1000.0/(eval(ht)*eval(vt))+0.5)
if mode_vrefresh(clk, ht, vt) != eval(vref):
print "{}:{}/{}: {} vs. {} (.clock={} .htotal={} .vtotal={})".format(pos[0].file, pos[0].line, m, vref, mode_vrefresh(clk, ht, vt), clk, ht, vt)
@script:python@
ht << submode.HT;
vt << submode.VT;
clk << submode.CLK;
vref << submode.VREF;
m << submode.M;
pos << submode.POS;
@@
def mode_vrefresh(clk, ht, vt):
return int(eval(clk)*1000.0/(eval(ht)*eval(vt))+0.5)
if mode_vrefresh(clk, ht, vt) != eval(vref):
print "{}:{}/{}: {} vs. {} (.clock={} .htotal={} .vtotal={})".format(pos[0].file, pos[0].line, m, vref, mode_vrefresh(clk, ht, vt), clk, ht, vt)
@script:python@
ht << modes.HT;
vt << modes.VT;
clk << modes.CLK;
vref << modes.VREF;
m << modes.A;
pos << modes.POS;
@@
def mode_vrefresh(clk, ht, vt):
return int(eval(clk)*1000.0/(eval(ht)*eval(vt))+0.5)
if mode_vrefresh(clk, ht, vt) != eval(vref):
print "{}:{}/{}[]: {} vs. {} (.clock={} .htotal={} .vtotal={})".format(pos[0].file, pos[0].line, m, vref, mode_vrefresh(clk, ht, vt), clk, ht, vt)
@script:python@
ht << submodes.HT;
vt << submodes.VT;
clk << submodes.CLK;
vref << submodes.VREF;
m << submodes.A;
pos << submodes.POS;
@@
def mode_vrefresh(clk, ht, vt):
return int(eval(clk)*1000.0/(eval(ht)*eval(vt))+0.5)
if mode_vrefresh(clk, ht, vt) != eval(vref):
print "{}:{}/{}[]: {} vs. {} (.clock={} .htotal={} .vtotal={})".format(pos[0].file, pos[0].line, m, vref, mode_vrefresh(clk, ht, vt), clk, ht, vt)
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 04/12] drm: Nuke mode->vrefresh
Quoted 1 line · Ville Syrjälä
OK, so I went ahead a wrote a bit of cocci [1] to find the bad apples.
That's impressive :D
Quoted 1 line
Unfortunately it found a lot of strange stuff:
I will answer for the weirdness I caused.
I have long suspected that a whole bunch of the "simple" displays are not simple but contains a display controller and memory. That means that the speed over the link to the display and actual refresh rate on the actual display is asymmetric because well we are just updating a RAM, the resolution just limits how much data we are sending, the clock limits the speed on the bus over to the RAM on the other side.
In most cases I thing the clock is the way to go.
Quoted 1 line
panel-sony-acx424akp.c:51/sony_acx424akp_vid_mode: 60 vs. 727 (.clock=330000 .htotal=480 + 15 + 0 + 15 .vtotal=864 + 14 + 1 + 11)
I suspect clock should be adjusted after vfresh = 60 here instead of the other way around. I couldn't quite test the video mode, but the vendor driver (no documentation ....) does state 330 MHz which seems a bit high.
Just drop vrefresh for now.
Quoted 1 line
panel-sony-acx424akp.c:71/sony_acx424akp_cmd_mode: 60 vs. 711 (.clock=420160 .htotal=480 + 154 + 16 + 32 .vtotal=864 + 1 + 1 + 1)
You can override this ignoring the vrefresh, this is a command-mode only, and in command mode the refresh doesn't come into play, or is very high and limited by a bunch of other overhead than just the resolution. The command mode HS clock is @420+ MHz indeed. Tests showed around 116 Hz for this particular display in practice with continuous updates.
Quoted 7 lines
panel-ilitek-ili9322.c:543/srgb_320x240_mode: 60 vs. 10168 (.clock=2453500 .htotal=320 + 359 + 1 + 241 .vtotal=262) panel-ilitek-ili9322.c:587/yuv_640x320_mode: 60 vs. 7768 (.clock=2454000 .htotal=640 + 252 + 1 + 28 .vtotal=320 + 4 + 1 + 18) panel-ilitek-ili9322.c:616/itu_r_bt_656_640_mode: 60 vs. 5358 (.clock=2454000 .htotal=640 + 3 + 1 + 272 .vtotal=500) panel-ilitek-ili9322.c:557/srgb_360x240_mode: 60 vs. 16178 (.clock=2700000 .htotal=360 + 35 + 1 + 241 .vtotal=262) panel-ilitek-ili9322.c:601/yuv_720x360_mode: 60 vs. 7071 (.clock=2700000 .htotal=720 + 252 + 1 + 24 .vtotal=360 + 4 + 1 + 18) panel-ilitek-ili9322.c:631/itu_r_bt_656_720_mode: 60 vs. 5422 (.clock=2700000 .htotal=720 + 3 + 1 + 272 .vtotal=500) panel-ilitek-ili9322.c:572/prgb_320x240_mode: 60 vs. 59725 (.clock=6400000 .htotal=320 + 38 + 1 + 50 .vtotal=262)
This is the datasheet if you want to take a look:
https://dflund.se/~triad/krad/dlink-dir-685/ILI9322DS_V1.12.pdf
The one platform using this is using the
8 bit ITU-R BT.656 640Y 320CbCr mode which
(I think) is similar to DSI command mode again: there is a stream of data in a burst and you decide how often you want to send it because the panel always has backing memory and the speed out to the physical display is something completely different.
You can safely delete vrefresh from all of these sites.
Quoted 3 lines
panel-arm-versatile.c:161/versatile_panels[]: 60 vs. 61 (.clock=25000 .htotal=640 + 24 + 96 + 24 .vtotal=480 + 11 + 2 + 32) panel-arm-versatile.c:208/versatile_panels[]: 116 vs. 59 (.clock=5400 .htotal=240 + 10 + 10 + 20 .vtotal=320 + 2 + 2 + 2) panel-arm-versatile.c:184/versatile_panels[]: 390 vs. 1523 (.clock=62500 .htotal=176 + 2 + 3 + 3 .vtotal=220 + 0 + 2 + 1)
The only driver drivers/gpu/drm/pl111/pl111_display.c Uses mode->clock so just drop vrefresh.
Yours,
Linus Walleij
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 5/12 drm/msm/dpu: Stop copying around mode->private_flags
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
The driver never sets mode->private_flags so copying it back and forth is entirely pointless. Stop doing it.
Also drop private_flags from the tracepoint.
--- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 29 +-------------------- drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h | 10 +++---- 2 files changed, 5 insertions(+), 34 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +1 -28
@@ -500,23 +500,6 @@ void dpu_encoder_helper_split_config( } } -static void _dpu_encoder_adjust_mode (struct drm_connector *connector, -struct drm_display_mode *adj_mode) -{ -struct drm_display_mode *cur_mode; - -if (!connector || !adj_mode) -return ; - -list_for_each_entry (cur_mode, &connector->modes, head) { -if (cur_mode->vdisplay == adj_mode->vdisplay && - cur_mode->hdisplay == adj_mode->hdisplay && -drm_mode_vrefresh (cur_mode) ==drm_mode_vrefresh (adj_mode)) { - adj_mode->private_flags |= cur_mode->private_flags; - } - } -} - static struct msm_display_topology dpu_encoder_get_topology( struct dpu_encoder_virt *dpu_enc, struct dpu_kms *dpu_kms,
@@ -580,15 +563,6 @@ static int dpu_encoder_virt_atomic_check( adj_mode = &crtc_state->adjusted_mode;trace_dpu_enc_atomic_check (DRMID (drm_enc)); -/* -* display drivers may populate private fields of the drm display mode -* structure while registering possible modes of a connector with DRM. -* These private fields are not populated back while DRM invokes -* the mode_set callbacks. This module retrieves and populates the -* private fields of the given mode. -*/ -_dpu_encoder_adjust_mode (conn_state->connector, adj_mode); -/* perform atomic check on the first physical encoder (master) */ for (i =0 ; i < dpu_enc->num_phys_encs; i++) {struct dpu_encoder_phys *phys = dpu_enc->phys_encs[i];
@@ -623,8 +597,7 @@ static int dpu_encoder_virt_atomic_check( } } -trace_dpu_enc_atomic_check_flags (DRMID (drm_enc), adj_mode->flags, - adj_mode->private_flags); +trace_dpu_enc_atomic_check_flags (DRMID (drm_enc), adj_mode->flags);return ret; }
drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h +4 -6
@@ -327,20 +327,18 @@ DEFINE_EVENT(dpu_enc_keyval_template, dpu_enc_trigger_start, );TRACE_EVENT (dpu_enc_atomic_check_flags, - TP_PROTO(uint32_t drm_id, unsigned int flags, int private_flags), -TP_ARGS (drm_id, flags, private_flags), + TP_PROTO(uint32_t drm_id, unsigned int flags), +TP_ARGS (drm_id, flags),TP_STRUCT__entry ( __field( uint32_t, drm_id ) __field( unsigned int, flags ) -__field ( int, private_flags ) ),TP_fast_assign ( __entry->drm_id = drm_id; __entry->flags = flags; - __entry->private_flags = private_flags; ), -TP_printk ("id=%u, flags=%u, private_flags=%d" , - __entry->drm_id, __entry->flags, __entry->private_flags) +TP_printk ("id=%u, flags=%u" , + __entry->drm_id, __entry->flags) ); DECLARE_EVENT_CLASS(dpu_enc_id_enable_template,
Signature · 1 line
2.24.1
Re: [PATCH 05/12] drm/msm/dpu: Stop copying around mode->private_flags
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
The driver never sets
mode->private_flagsso copying it back and forth is entirely pointless. Stop doing it.
Quoted 7 lines
Also drop
private_flagsfrom the tracepoint.Cc Rob Clark <[email protected]>Cc Sean Paul <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>
Perhaps the msm team has a WIP which makes use of it ?
Otherwise:
-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 05/12] drm/msm/dpu: Stop copying around mode->private_flags
Quoted 10 lines · Emil Velikov
Quoted 8 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
The driver never sets
mode->private_flagsso copying it back and forth is entirely pointless. Stop doing it.Also drop
private_flagsfrom the tracepoint.
Quoted 7 lines
Quoted 5 lines
Cc Rob Clark <[email protected]>Cc Sean Paul <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>Perhaps the msm team has a WIP which makes use of it ?
Maybe if it's one of them five year projects. But anyways, with an atomic driver there are certainly better ways to handle this.
Signature · 2 lines
Ville Syrjälä Intel
Re: [PATCH 05/12] drm/msm/dpu: Stop copying around mode->private_flags
Quoted 17 lines · Ville Syrjälä
Quoted 16 lines · Emil Velikov
Quoted 13 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
The driver never sets
mode->private_flagsso copying it back and forth is entirely pointless. Stop doing it.Also drop
private_flagsfrom the tracepoint.Cc Rob Clark <[email protected]>Cc Sean Paul <[email protected]>Signed-off-by Ville Syrjälä <[email protected]>
Quoted 5 lines
Quoted 1 line
Perhaps the msm team has a WIP which makes use of it ?
Maybe if it's one of them five year projects. But anyways, with an atomic driver there are certainly better ways to handle this.
Yeah with atomic you have your display mode in drm_crtc_state, which you're subposed to subclass so that you can have terabytes of private state. At least in theory :-)
->private_flags was really only useful in pre-atomic drivers. -Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 6/12 drm: Shrink {width,height}_mm to u16
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Instead of supporting ~2000km wide displayes let's limit ourselves to ~65m. That seems plenty big enough to me.
Even with EDID_QUIRK_DETAILED_IN_CM EDIDs seem to be limited to 10*0xfff which fits into the 16 bits.
--- include/drm/drm_modes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/drm/drm_modes.h +2 -2
@@ -330,7 +330,7 @@ struct drm_display_mode {* Addressable size of the output in mm, projectors should set this to * 0. */ -int width_mm; +u16 width_mm;/** * @height_mm:
@@ -338,7 +338,7 @@ struct drm_display_mode {* Addressable size of the output in mm, projectors should set this to * 0. */ -int height_mm; +u16 height_mm;/** * @crtc_clock:
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 06/12] drm: Shrink {width,height}_mm to u16
Quoted 28 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Instead of supporting ~2000km wide displayes let's limit ourselves to ~65m. That seems plenty big enough to me.
Even with
EDID_QUIRK_DETAILED_IN_CMEDIDs seem to be limited to 10*0xfff which fits into the 16 bits.Signed-off-by Ville Syrjälä <[email protected]>--- include/drm/drm_modes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)include/drm/drm_modes.h +1
-1@@ -330,7 +330,7 @@ struct drm_display_mode {* Addressable size of the output in mm, projectors should set this to * 0. */ -int width_mm; +u16 width_mm;/** * @height_mm:
include/drm/drm_modes.h struct drm_display_mode { · line 342
Quoted 6 lines
include/drm/drm_modes.h +1
-1@@ -338,7 +338,7 @@ struct drm_display_mode {* Addressable size of the output in mm, projectors should set this to * 0. */ -int height_mm; +u16 height_mm;
Fwiw we could do the same for struct drm_display_info, although we should be carefull since that info sets passed to userspace.
Regardless, this patch is:
-Emil
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 7/12 drm: Shrink mode->type to u8
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
We only have 7 bits defined for mode->type. Shrink the storage to u8.
--- include/drm/drm_modes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_modes.h +1 -1
@@ -270,7 +270,7 @@ struct drm_display_mode {* which are stuck around for hysterical raisins only. No one has an * idea what they were meant for. Don't use. */ -unsigned int type; +u8 type;/** * @clock:
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 07/12] drm: Shrink mode->type to u8
Quoted 14 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
We only have 7 bits defined for
mode->type. Shrink the storage to u8.Signed-off-by Ville Syrjälä <[email protected]>--- include/drm/drm_modes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/drm/drm_modes.h +0
-0
include/drm/drm_modes.h struct drm_display_mode { · line 273
Quoted 5 lines
include/drm/drm_modes.h +1
-1@@ -270,7 +270,7 @@ struct drm_display_mode {* which are stuck around for hysterical raisins only. No one has an * idea what they were meant for. Don't use. */ -unsigned int type; +u8 type;
Unfortunately DRM_MODE_TYPE_DRIVER is the largest and still in use, otherwise we could have cut off a few more bits here :-)
Quoted 10 lines
include/drm/drm_modes.h +0
-0/** * @clock: Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 8/12 drm: Make mode->flags u32
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
The mode flags are direclty exposed in the uapi as u32. Use the same size type to store them internally.
--- include/drm/drm_modes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_modes.h +1 -1
@@ -322,7 +322,7 @@ struct drm_display_mode {* - DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF: frame split into left and * right parts. */ -unsigned int flags; +u32 flags;/** * @width_mm:
Signature · 6 lines
2.24.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 9/12 drm: Shrink drm_display_mode timings
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Store the timings (apart from the clock) as u16. The uapi mode struct already uses u16 for everything so using something bigger internally doesn't really help us.
--- drivers/gpu/drm/drm_modes.c | 7 ------ include/drm/drm_modes.h | 46 ++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 30 deletions(-)
drivers/gpu/drm/drm_modes.c +0 -7
@@ -1917,13 +1917,6 @@ EXPORT_SYMBOL(drm_mode_create_from_cmdline_mode);void drm_mode_convert_to_umode (struct drm_mode_modeinfo *out,const struct drm_display_mode *in) { -WARN (in->hdisplay >USHRT_MAX || in->hsync_start >USHRT_MAX || - in->hsync_end >USHRT_MAX || in->htotal >USHRT_MAX || - in->hskew >USHRT_MAX || in->vdisplay >USHRT_MAX || - in->vsync_start >USHRT_MAX || in->vsync_end >USHRT_MAX || - in->vtotal >USHRT_MAX || in->vscan >USHRT_MAX , -"timing values too large for mode info\n" ); - out->clock = in->clock; out->hdisplay = in->hdisplay; out->hsync_start = in->hsync_start;
include/drm/drm_modes.h +23 -23
58 lines not on this page · raw message
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 09/12] drm: Shrink drm_display_mode timings
Quoted 7 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Store the timings (apart from the clock) as u16. The uapi mode struct already uses u16 for everything so using something bigger internally doesn't really help us.
Signed-off-by Ville Syrjälä <[email protected]>
Makes sense I guess. This could mean some implicit pointer math is now no longer auto-upgraded to big enough integers though ...
Quoted 94 lines
--- drivers/gpu/drm/drm_modes.c | 7 ------ include/drm/drm_modes.h | 46 ++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 30 deletions(-)drivers/gpu/drm/drm_modes.c +0
-7@@ -1917,13 +1917,6 @@ EXPORT_SYMBOL(drm_mode_create_from_cmdline_mode);void drm_mode_convert_to_umode (struct drm_mode_modeinfo *out,const struct drm_display_mode *in) { -WARN (in->hdisplay >USHRT_MAX || in->hsync_start >USHRT_MAX || - in->hsync_end >USHRT_MAX || in->htotal >USHRT_MAX || - in->hskew >USHRT_MAX || in->vdisplay >USHRT_MAX || - in->vsync_start >USHRT_MAX || in->vsync_end >USHRT_MAX || - in->vtotal >USHRT_MAX || in->vscan >USHRT_MAX , -"timing values too large for mode info\n" ); - out->clock = in->clock; out->hdisplay = in->hdisplay; out->hsync_start = in->hsync_start;include/drm/drm_modes.h +23
-23@@ -278,16 +278,16 @@ struct drm_display_mode {* Pixel clock in kHz. */ int clock;/* in kHz */ -int hdisplay; -int hsync_start; -int hsync_end; -int htotal; -int hskew; -int vdisplay; -int vsync_start; -int vsync_end; -int vtotal; -int vscan; +u16 hdisplay; +u16 hsync_start; +u16 hsync_end; +u16 htotal; +u16 hskew; +u16 vdisplay; +u16 vsync_start; +u16 vsync_end; +u16 vtotal; +u16 vscan;/** * @flags: * @@ -356,19 +356,19 @@ struct drm_display_mode {* difference is exactly a factor of 10. */ int crtc_clock; -int crtc_hdisplay; -int crtc_hblank_start; -int crtc_hblank_end; -int crtc_hsync_start; -int crtc_hsync_end; -int crtc_htotal; -int crtc_hskew; -int crtc_vdisplay; -int crtc_vblank_start; -int crtc_vblank_end; -int crtc_vsync_start; -int crtc_vsync_end; -int crtc_vtotal; +u16 crtc_hdisplay; +u16 crtc_hblank_start; +u16 crtc_hblank_end; +u16 crtc_hsync_start; +u16 crtc_hsync_end; +u16 crtc_htotal; +u16 crtc_hskew; +u16 crtc_vdisplay; +u16 crtc_vblank_start; +u16 crtc_vblank_end; +u16 crtc_vsync_start; +u16 crtc_vsync_end; +u16 crtc_vtotal;/** * @private_flags: Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 09/12] drm: Shrink drm_display_mode timings
Quoted 11 lines · Daniel Vetter
Quoted 7 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Store the timings (apart from the clock) as u16. The uapi mode struct already uses u16 for everything so using something bigger internally doesn't really help us.
Signed-off-by Ville Syrjälä <[email protected]>Makes sense I guess. This could mean some implicit pointer math is now no longer auto-upgraded to big enough integers though ...
u16 promotes to int. So can't really see how this would go wrong. Well, unless someone is using these to store some larger intermediate values.
Quoted 102 lines
Reviewed-by Daniel Vetter <[email protected]>Quoted 94 lines
--- drivers/gpu/drm/drm_modes.c | 7 ------ include/drm/drm_modes.h | 46 ++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 30 deletions(-)drivers/gpu/drm/drm_modes.c +0
-7@@ -1917,13 +1917,6 @@ EXPORT_SYMBOL(drm_mode_create_from_cmdline_mode);void drm_mode_convert_to_umode (struct drm_mode_modeinfo *out,const struct drm_display_mode *in) { -WARN (in->hdisplay >USHRT_MAX || in->hsync_start >USHRT_MAX || - in->hsync_end >USHRT_MAX || in->htotal >USHRT_MAX || - in->hskew >USHRT_MAX || in->vdisplay >USHRT_MAX || - in->vsync_start >USHRT_MAX || in->vsync_end >USHRT_MAX || - in->vtotal >USHRT_MAX || in->vscan >USHRT_MAX , -"timing values too large for mode info\n" ); - out->clock = in->clock; out->hdisplay = in->hdisplay; out->hsync_start = in->hsync_start;include/drm/drm_modes.h +23
-23@@ -278,16 +278,16 @@ struct drm_display_mode {* Pixel clock in kHz. */ int clock;/* in kHz */ -int hdisplay; -int hsync_start; -int hsync_end; -int htotal; -int hskew; -int vdisplay; -int vsync_start; -int vsync_end; -int vtotal; -int vscan; +u16 hdisplay; +u16 hsync_start; +u16 hsync_end; +u16 htotal; +u16 hskew; +u16 vdisplay; +u16 vsync_start; +u16 vsync_end; +u16 vtotal; +u16 vscan;/** * @flags: * @@ -356,19 +356,19 @@ struct drm_display_mode {* difference is exactly a factor of 10. */ int crtc_clock; -int crtc_hdisplay; -int crtc_hblank_start; -int crtc_hblank_end; -int crtc_hsync_start; -int crtc_hsync_end; -int crtc_htotal; -int crtc_hskew; -int crtc_vdisplay; -int crtc_vblank_start; -int crtc_vblank_end; -int crtc_vsync_start; -int crtc_vsync_end; -int crtc_vtotal; +u16 crtc_hdisplay; +u16 crtc_hblank_start; +u16 crtc_hblank_end; +u16 crtc_hsync_start; +u16 crtc_hsync_end; +u16 crtc_htotal; +u16 crtc_hskew; +u16 crtc_vdisplay; +u16 crtc_vblank_start; +u16 crtc_vblank_end; +u16 crtc_vsync_start; +u16 crtc_vsync_end; +u16 crtc_vtotal;/** * @private_flags: Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 09/12] drm: Shrink drm_display_mode timings
In reply to Ville SyrjalaHi Ville.
Quoted 20 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Store the timings (apart from the clock) as u16. The uapi mode struct already uses u16 for everything so using something bigger internally doesn't really help us.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/drm_modes.c | 7 ------ include/drm/drm_modes.h | 46 ++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 30 deletions(-)drivers/gpu/drm/drm_modes.c +0
-0@@ -1917,13 +1917,6 @@ EXPORT_SYMBOL(drm_mode_create_from_cmdline_mode);void drm_mode_convert_to_umode (struct drm_mode_modeinfo *out,const struct drm_display_mode *in) {
drivers/gpu/drm/drm_modes.c EXPORT_SYMBOL(drm_mode_create_from_cmdline_mode); · line 1922
Quoted 10 lines
drivers/gpu/drm/drm_modes.c +0
-7-WARN (in->hdisplay >USHRT_MAX || in->hsync_start >USHRT_MAX || - in->hsync_end >USHRT_MAX || in->htotal >USHRT_MAX || - in->hskew >USHRT_MAX || in->vdisplay >USHRT_MAX || - in->vsync_start >USHRT_MAX || in->vsync_end >USHRT_MAX || - in->vtotal >USHRT_MAX || in->vscan >USHRT_MAX , -"timing values too large for mode info\n" ); - out->clock = in->clock; out->hdisplay = in->hdisplay; out->hsync_start = in->hsync_start;
This chunk is not mentioned in the changelog.
But with the change of type it does not makes sense so good to get rid of it.
Sam
Quoted 71 lines
include/drm/drm_modes.h +23
-23@@ -278,16 +278,16 @@ struct drm_display_mode {* Pixel clock in kHz. */ int clock;/* in kHz */ -int hdisplay; -int hsync_start; -int hsync_end; -int htotal; -int hskew; -int vdisplay; -int vsync_start; -int vsync_end; -int vtotal; -int vscan; +u16 hdisplay; +u16 hsync_start; +u16 hsync_end; +u16 htotal; +u16 hskew; +u16 vdisplay; +u16 vsync_start; +u16 vsync_end; +u16 vtotal; +u16 vscan;/** * @flags: * @@ -356,19 +356,19 @@ struct drm_display_mode {* difference is exactly a factor of 10. */ int crtc_clock; -int crtc_hdisplay; -int crtc_hblank_start; -int crtc_hblank_end; -int crtc_hsync_start; -int crtc_hsync_end; -int crtc_htotal; -int crtc_hskew; -int crtc_vdisplay; -int crtc_vblank_start; -int crtc_vblank_end; -int crtc_vsync_start; -int crtc_vsync_end; -int crtc_vtotal; +u16 crtc_hdisplay; +u16 crtc_hblank_start; +u16 crtc_hblank_end; +u16 crtc_hsync_start; +u16 crtc_hsync_end; +u16 crtc_htotal; +u16 crtc_hskew; +u16 crtc_vdisplay; +u16 crtc_vblank_start; +u16 crtc_vblank_end; +u16 crtc_vsync_start; +u16 crtc_vsync_end; +u16 crtc_vtotal;/** * @private_flags: Signature · 6 lines
2.24.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 09/12] drm: Shrink drm_display_mode timings
In reply to Ville SyrjalaHi Ville.
Quoted 7 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Store the timings (apart from the clock) as u16. The uapi mode struct already uses u16 for everything so using something bigger internally doesn't really help us.
Signed-off-by Ville Syrjälä <[email protected]>
While touchign this - have you cinsidered to put all the timing fields in a dedicated struct - and then have two instanses of said struct here?
Like:
/**
* struct panel_timing - timing configuratio for a panel *
* The timing is in khz and ...
/*
struct panel_timing {
/**
* @clock: Panel clock in khz
*/
int clock;
/**
* @hdisplay: bla bla
*/
u16 hdisplay;
u16 hsync_start;
u16 hsync_end;
u16 htotal;
u16 hskew;
u16 vdisplay;
u16 vsync_start;
u16 vsync_end;
u16 vtotal;
u16 vscan;
};And then in drm_display_mode:
/** * @hw_timing: The timing for the panel */ struct panel_timing hw_timing; /** * @calc_timing: The calculated timing */ struct panel_timing calc_timing;
Or something like that.
We could use the panel_timign struct in some other places I think.
Sam
Quoted 94 lines
--- drivers/gpu/drm/drm_modes.c | 7 ------ include/drm/drm_modes.h | 46 ++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 30 deletions(-)drivers/gpu/drm/drm_modes.c +0
-7@@ -1917,13 +1917,6 @@ EXPORT_SYMBOL(drm_mode_create_from_cmdline_mode);void drm_mode_convert_to_umode (struct drm_mode_modeinfo *out,const struct drm_display_mode *in) { -WARN (in->hdisplay >USHRT_MAX || in->hsync_start >USHRT_MAX || - in->hsync_end >USHRT_MAX || in->htotal >USHRT_MAX || - in->hskew >USHRT_MAX || in->vdisplay >USHRT_MAX || - in->vsync_start >USHRT_MAX || in->vsync_end >USHRT_MAX || - in->vtotal >USHRT_MAX || in->vscan >USHRT_MAX , -"timing values too large for mode info\n" ); - out->clock = in->clock; out->hdisplay = in->hdisplay; out->hsync_start = in->hsync_start;include/drm/drm_modes.h +23
-23@@ -278,16 +278,16 @@ struct drm_display_mode {* Pixel clock in kHz. */ int clock;/* in kHz */ -int hdisplay; -int hsync_start; -int hsync_end; -int htotal; -int hskew; -int vdisplay; -int vsync_start; -int vsync_end; -int vtotal; -int vscan; +u16 hdisplay; +u16 hsync_start; +u16 hsync_end; +u16 htotal; +u16 hskew; +u16 vdisplay; +u16 vsync_start; +u16 vsync_end; +u16 vtotal; +u16 vscan;/** * @flags: * @@ -356,19 +356,19 @@ struct drm_display_mode {* difference is exactly a factor of 10. */ int crtc_clock; -int crtc_hdisplay; -int crtc_hblank_start; -int crtc_hblank_end; -int crtc_hsync_start; -int crtc_hsync_end; -int crtc_htotal; -int crtc_hskew; -int crtc_vdisplay; -int crtc_vblank_start; -int crtc_vblank_end; -int crtc_vsync_start; -int crtc_vsync_end; -int crtc_vtotal; +u16 crtc_hdisplay; +u16 crtc_hblank_start; +u16 crtc_hblank_end; +u16 crtc_hsync_start; +u16 crtc_hsync_end; +u16 crtc_htotal; +u16 crtc_hskew; +u16 crtc_vdisplay; +u16 crtc_vblank_start; +u16 crtc_vblank_end; +u16 crtc_vsync_start; +u16 crtc_vsync_end; +u16 crtc_vtotal;/** * @private_flags: Signature · 6 lines
2.24.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 09/12] drm: Shrink drm_display_mode timings
Quoted 9 lines · Sam Ravnborg
Hi Ville.
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Store the timings (apart from the clock) as u16. The uapi mode struct already uses u16 for everything so using something bigger internally doesn't really help us.
Quoted 5 lines
Quoted 1 line
Signed-off-by Ville Syrjälä <[email protected]>While touchign this - have you cinsidered to put all the timing fields in a dedicated struct - and then have two instanses of said struct here?
The normal vs. crtc timigns aren't the same. But I've been pondering about pulling the crtc timings into a separate struct and using that in some places where we currently use a full drm_display_mode but only really care about the crtc timings.
Quoted 141 lines
Like:
/**
* structpanel_timing- timing configuratio for a panel *
* The timing is in khz and ...
/*struct panel_timing { /** * @clock: Panel clock in khz */ int clock; /** * @hdisplay: bla bla */ u16 hdisplay; u16 hsync_start; u16 hsync_end; u16 htotal; u16 hskew; u16 vdisplay; u16 vsync_start; u16 vsync_end; u16 vtotal; u16 vscan; };And then in
drm_display_mode:/** * @hw_timing: The timing for the panel */ struct panel_timing hw_timing; /** * @calc_timing: The calculated timing */ struct panel_timing calc_timing;Or something like that.
We could use thepanel_timignstruct in some other places I think.Sam
Quoted 94 lines
--- drivers/gpu/drm/drm_modes.c | 7 ------ include/drm/drm_modes.h | 46 ++++++++++++++++++------------------- 2 files changed, 23 insertions(+), 30 deletions(-)drivers/gpu/drm/drm_modes.c +0
-7@@ -1917,13 +1917,6 @@ EXPORT_SYMBOL(drm_mode_create_from_cmdline_mode);void drm_mode_convert_to_umode (struct drm_mode_modeinfo *out,const struct drm_display_mode *in) { -WARN (in->hdisplay >USHRT_MAX || in->hsync_start >USHRT_MAX || - in->hsync_end >USHRT_MAX || in->htotal >USHRT_MAX || - in->hskew >USHRT_MAX || in->vdisplay >USHRT_MAX || - in->vsync_start >USHRT_MAX || in->vsync_end >USHRT_MAX || - in->vtotal >USHRT_MAX || in->vscan >USHRT_MAX , -"timing values too large for mode info\n" ); - out->clock = in->clock; out->hdisplay = in->hdisplay; out->hsync_start = in->hsync_start;include/drm/drm_modes.h +23
-23@@ -278,16 +278,16 @@ struct drm_display_mode {* Pixel clock in kHz. */ int clock;/* in kHz */ -int hdisplay; -int hsync_start; -int hsync_end; -int htotal; -int hskew; -int vdisplay; -int vsync_start; -int vsync_end; -int vtotal; -int vscan; +u16 hdisplay; +u16 hsync_start; +u16 hsync_end; +u16 htotal; +u16 hskew; +u16 vdisplay; +u16 vsync_start; +u16 vsync_end; +u16 vtotal; +u16 vscan;/** * @flags: * @@ -356,19 +356,19 @@ struct drm_display_mode {* difference is exactly a factor of 10. */ int crtc_clock; -int crtc_hdisplay; -int crtc_hblank_start; -int crtc_hblank_end; -int crtc_hsync_start; -int crtc_hsync_end; -int crtc_htotal; -int crtc_hskew; -int crtc_vdisplay; -int crtc_vblank_start; -int crtc_vblank_end; -int crtc_vsync_start; -int crtc_vsync_end; -int crtc_vtotal; +u16 crtc_hdisplay; +u16 crtc_hblank_start; +u16 crtc_hblank_end; +u16 crtc_hsync_start; +u16 crtc_hsync_end; +u16 crtc_htotal; +u16 crtc_hskew; +u16 crtc_vdisplay; +u16 crtc_vblank_start; +u16 crtc_vblank_end; +u16 crtc_vsync_start; +u16 crtc_vsync_end; +u16 crtc_vtotal;/** * @private_flags: Signature · 6 lines
2.24.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 10/12 drm: Flatten drm_mode_vrefresh()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Remove the pointless whole-function indentation. Also don't need to worry about negative values anymore since we switched everything to u16.
--- drivers/gpu/drm/drm_modes.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-)
drivers/gpu/drm/drm_modes.c +12 -14
@@ -773,24 +773,22 @@ EXPORT_SYMBOL(drm_mode_hsync);*/ int drm_mode_vrefresh (const struct drm_display_mode *mode) { -int refresh =0 ; +unsigned int num, den; -if (mode->htotal >0 && mode->vtotal >0 ) { -unsigned int num, den; +if (mode->htotal ==0 || mode->vtotal ==0 ) +return 0 ; - num = mode->clock *1000 ; - den = mode->htotal * mode->vtotal; + num = mode->clock *1000 ; + den = mode->htotal * mode->vtotal; -if (mode->flags &DRM_MODE_FLAG_INTERLACE ) - num *=2 ; -if (mode->flags &DRM_MODE_FLAG_DBLSCAN ) - den *=2 ; -if (mode->vscan >1 ) - den *= mode->vscan; +if (mode->flags &DRM_MODE_FLAG_INTERLACE ) + num *=2 ; +if (mode->flags &DRM_MODE_FLAG_DBLSCAN ) + den *=2 ; +if (mode->vscan >1 ) + den *= mode->vscan; - refresh =DIV_ROUND_CLOSEST (num, den); - } -return refresh; +return DIV_ROUND_CLOSEST (num, den); }EXPORT_SYMBOL (drm_mode_vrefresh);
Signature · 6 lines
2.24.1 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 11/12 drm: Shrink mode->private_flags
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
gma500 needs 4 bits (to store a pixel multiplier) in the mode->private_flags, i915 currently has three bits defined. No one else uses this. Reduce the size to u8.
--- include/drm/drm_modes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/drm_modes.h +1 -1
@@ -378,7 +378,7 @@ struct drm_display_mode {* by atomic drivers since they can store any additional data by * subclassing state structures. */ -int private_flags; +u8 private_flags;/** * @picture_aspect_ratio:
Signature · 6 lines
2.24.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 11/12] drm: Shrink mode->private_flags
Quoted 7 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
gma500 needs 4 bits (to store a pixel multiplier) in the
mode->private_flags, i915 currently has three bits defined. No one else uses this. Reduce the size to u8.Signed-off-by Ville Syrjälä <[email protected]>
There seems to be talk about dropping use of private_flags from i915 and gma500 (IIRC).
So maybe drop this patch as we are about to get rid of private_flags - which is much better?
Sam
Quoted 24 lines
--- include/drm/drm_modes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/drm/drm_modes.h +1
-1@@ -378,7 +378,7 @@ struct drm_display_mode {* by atomic drivers since they can store any additional data by * subclassing state structures. */ -int private_flags; +u8 private_flags;/** * @picture_aspect_ratio: Signature · 6 lines
2.24.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 11/12] drm: Shrink mode->private_flags
Quoted 7 lines · Sam Ravnborg
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
gma500 needs 4 bits (to store a pixel multiplier) in the
mode->private_flags, i915 currently has three bits defined. No one else uses this. Reduce the size to u8.
Quoted 6 lines
Quoted 1 line
Signed-off-by Ville Syrjälä <[email protected]>There seems to be talk about dropping use of
private_flagsfrom i915 and gma500 (IIRC).
So maybe drop this patch as we are about to get rid ofprivate_flags- which is much better?
Hmm. Yeah, this is patch 11/12 so I guess I might as well drop it.
Quoted 27 lines
Sam
Quoted 24 lines
--- include/drm/drm_modes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/drm/drm_modes.h +1
-1@@ -378,7 +378,7 @@ struct drm_display_mode {* by atomic drivers since they can store any additional data by * subclassing state structures. */ -int private_flags; +u8 private_flags;/** * @picture_aspect_ratio: Signature · 6 lines
2.24.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 12/12 drm: pahole struct drm_display_mode
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Reorganize drm_display_mode to eliminate all the holes. We'll put all the actual timings to the start of the struct and all the extra junk to the end.
Gets the size down to 136 bytes on 64bit and 120 bytes on 32bit. With a bit more work we should be able to get this below the two cacheline mark even on 64bit.
--- include/drm/drm_modes.h | 139 ++++++++++++++++++++-------------------- 1 file changed, 70 insertions(+), 69 deletions(-)
include/drm/drm_modes.h +70 -69
@@ -222,56 +222,6 @@ enum drm_mode_status {* For printing you can use %DRM_MODE_FMT and DRM_MODE_ARG(). */ struct drm_display_mode { -/** -* @head: -* -* struct list_head for mode lists. -*/ -struct list_head head; - -/** -* @name: -* -* Human-readable name of the mode, filled out with drm_mode_set_name(). -*/ -char name[DRM_DISPLAY_MODE_LEN ]; - -/** -* @status: -* -* Status of the mode, used to filter out modes not supported by the -* hardware. See enum &drm_mode_status. -*/ -enum drm_mode_status status; - -/** -* @type: -* -* A bitmask of flags, mostly about the source of a mode. Possible flags -* are: -* -* - DRM_MODE_TYPE_PREFERRED: Preferred mode, usually the native -* resolution of an LCD panel. There should only be one preferred -* mode per connector at any given time. -* - DRM_MODE_TYPE_DRIVER: Mode created by the driver, which is all of -* them really. Drivers must set this bit for all modes they create -* and expose to userspace. -* - DRM_MODE_TYPE_USERDEF: Mode defined via kernel command line -* -* Plus a big list of flags which shouldn't be used at all, but are -* still around since these flags are also used in the userspace ABI. -* We no longer accept modes with these types though: -* -* - DRM_MODE_TYPE_BUILTIN: Meant for hard-coded modes, unused. -* Use DRM_MODE_TYPE_DRIVER instead. -* - DRM_MODE_TYPE_DEFAULT: Again a leftover, use -* DRM_MODE_TYPE_PREFERRED instead. -* - DRM_MODE_TYPE_CLOCK_C and DRM_MODE_TYPE_CRTC_C: Define leftovers -* which are stuck around for hysterical raisins only. No one has an -* idea what they were meant for. Don't use. -*/ -u8 type; -/** * @clock: *
@@ -324,22 +274,6 @@ struct drm_display_mode {*/ u32 flags; -/** -* @width_mm: -* -* Addressable size of the output in mm, projectors should set this to -* 0. -*/ -u16 width_mm; - -/** -* @height_mm: -* -* Addressable size of the output in mm, projectors should set this to -* 0. -*/ -u16 height_mm; -/** * @crtc_clock: *
@@ -370,6 +304,50 @@ struct drm_display_mode {u16 crtc_vsync_end;u16 crtc_vtotal; +/** +* @width_mm: +* +* Addressable size of the output in mm, projectors should set this to +* 0. +*/ +u16 width_mm; + +/** +* @height_mm: +* +* Addressable size of the output in mm, projectors should set this to +* 0. +*/ +u16 height_mm; + +/** +* @type: +* +* A bitmask of flags, mostly about the source of a mode. Possible flags +* are: +* +* - DRM_MODE_TYPE_PREFERRED: Preferred mode, usually the native +* resolution of an LCD panel. There should only be one preferred +* mode per connector at any given time. +* - DRM_MODE_TYPE_DRIVER: Mode created by the driver, which is all of +* them really. Drivers must set this bit for all modes they create +* and expose to userspace. +* - DRM_MODE_TYPE_USERDEF: Mode defined via kernel command line +* +* Plus a big list of flags which shouldn't be used at all, but are +* still around since these flags are also used in the userspace ABI. +* We no longer accept modes with these types though: +* +* - DRM_MODE_TYPE_BUILTIN: Meant for hard-coded modes, unused. +* Use DRM_MODE_TYPE_DRIVER instead. +* - DRM_MODE_TYPE_DEFAULT: Again a leftover, use +* DRM_MODE_TYPE_PREFERRED instead. +* - DRM_MODE_TYPE_CLOCK_C and DRM_MODE_TYPE_CRTC_C: Define leftovers +* which are stuck around for hysterical raisins only. No one has an +* idea what they were meant for. Don't use. +*/ +u8 type; +/** * @private_flags: *
@@ -381,11 +359,11 @@ struct drm_display_mode {u8 private_flags;/** -* @picture_aspect_ratio: +* @head: * -* Field for setting the HDMI picture aspect ratio of a mode. +* struct list_head for mode lists. */ -enum hdmi_picture_aspect picture_aspect_ratio; +struct list_head head;/** * @export_head:
@@ -399,6 +377,29 @@ struct drm_display_mode {* avoid overhead of protecting it by mode_config.mutex. */ struct list_head export_head; + +/** +* @name: +* +* Human-readable name of the mode, filled out with drm_mode_set_name(). +*/ +char name[DRM_DISPLAY_MODE_LEN ]; + +/** +* @status: +* +* Status of the mode, used to filter out modes not supported by the +* hardware. See enum &drm_mode_status. +*/ +enum drm_mode_status status; + +/** +* @picture_aspect_ratio: +* +* Field for setting the HDMI picture aspect ratio of a mode. +*/ +enum hdmi_picture_aspect picture_aspect_ratio; + };/**
Signature · 6 lines
2.24.1 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 12/12] drm: pahole struct drm_display_mode
Quoted 7 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Reorganize
drm_display_modeto eliminate all the holes. We'll put all the actual timings to the start of the struct and all the extra junk to the end.
Quoted 5 lines
Gets the size down to 136 bytes on 64bit and 120 bytes on 32bit. With a bit more work we should be able to get this below the two cacheline mark even on 64bit.
Signed-off-by Ville Syrjälä <[email protected]>
Patches 07-12 are:
-Emil
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm: Put drm_display_mode on diet
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm: Put drm_display_mode on diet
URL : https://patchwork.freedesktop.org/series/73674/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip 1547c317f1a8 drm: Nuke mode->hsync 60d00db46691 drm/exynos: Use mode->clock instead of reverse calculating it from the vrefresh 28e0079cb232 drm/i915: Introduce some local intel_dp variables fc4bd0c92150 drm: Nuke mode->vrefresh -:1393: WARNING:LONG_LINE: line over 100 characters #1393: FILE: drivers/gpu/drm/i915/display/intel_dp.c:7225: + drm_mode_vrefresh(intel_dp->attached_connector->panel.fixed_mode));
-:1402: WARNING:LONG_LINE: line over 100 characters #1402: FILE: drivers/gpu/drm/i915/display/intel_dp.c:7271:
+ drm_mode_vrefresh(intel_dp->attached_connector->panel.fixed_mode));
total: 0 errors, 2 warnings, 0 checks, 2529 lines checked 5ffd09532dbc drm/msm/dpu: Stop copying around mode->private_flags -:84: CHECK:PREFER_KERNEL_TYPES: Prefer kernel type 'u32' over 'uint32_t' #84: FILE: drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h:330:
+ TP_PROTO(uint32_t drm_id, unsigned int flags),
total: 0 errors, 0 warnings, 1 checks, 71 lines checked ebc0d4878fa3 drm: Shrink {width,height}_mm to u16 123730c56db7 drm: Shrink mode->type to u8 95bbdbf0fc19 drm: Make mode->flags u32 461918918abd drm: Shrink drm_display_mode timings 2b38c59a9a1c drm: Flatten drm_mode_vrefresh() 185304bca386 drm: Shrink mode->private_flags 133ee95728f4 drm: pahole struct drm_display_mode
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 1 line · Ville Syrjala
- Eliminate the second list head somehow?
I think we could just convert that to a boolean, or even just borrow eg. the one totally free mode->type bit for our internal use to tag the exposed modes. That would in fact get us down to 120 bytes on 64bit machines (and 112 bytes on 32bit). The downside would be one extra loop over the modes in the getconnector ioctl to clear the stale tags.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for drm: Put drm_display_mode on diet
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm: Put drm_display_mode on diet
URL : https://patchwork.freedesktop.org/series/73674/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_7966 -> Patchwork_16631
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/index.html
Known issues
------------
Here are the changes found in Patchwork_16631 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s0:
- fi-cfl-8109u: [PASS][1] -> [INCOMPLETE][2] ([i915#1242])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/fi-cfl-8109u/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/fi-cfl-8109u/igt@[email protected]
* igt@i915_selftest@live_gem_contexts:
- fi-byt-n2820: [PASS][3] -> [DMESG-FAIL][4] ([i915#1052])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/fi-byt-n2820/igt@i915_selftest@live_gem_contexts.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/fi-byt-n2820/igt@i915_selftest@live_gem_contexts.html
#### Possible fixes ####
* igt@i915_selftest@live_gem_contexts:
- fi-cml-s: [DMESG-FAIL][5] ([i915#877]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/fi-cml-s/igt@i915_selftest@live_gem_contexts.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/fi-cml-s/igt@i915_selftest@live_gem_contexts.html
#### Warnings ####
* igt@amdgpu/amd_prime@amd-to-i915:
- fi-icl-u3: [SKIP][7] ([fdo#109315] / [i915#585]) -> [SKIP][8] ([fdo#109315])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/fi-icl-u3/igt@amdgpu/[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/fi-icl-u3/igt@amdgpu/[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[i915#1052]: https://gitlab.freedesktop.org/drm/intel/issues/1052
[i915#1233]: https://gitlab.freedesktop.org/drm/intel/issues/1233
[i915#1242]: https://gitlab.freedesktop.org/drm/intel/issues/1242
[i915#585]: https://gitlab.freedesktop.org/drm/intel/issues/585
[i915#877]: https://gitlab.freedesktop.org/drm/intel/issues/877
Participating hosts (49 -> 40)
------------------------------
Additional (3): fi-skl-lmem fi-skl-6600u fi-snb-2600
Missing (12): fi-kbl-soraka fi-ilk-m540 fi-bsw-n3050 fi-hsw-4200u fi-hsw-peppy fi-glk-dsi fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-gdg-551 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7966 -> Patchwork_16631
CI-20190529: 20190529
CI_DRM_7966: 014bfb094e0b4e80d7510dc5d6f45e5e73bbb419 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5451: 1c42f971d37a066da3e588783611ab08d5afbded @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_16631: 133ee95728f4361cc469df6ee57430d5096cc8c7 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
133ee95728f4 drm: pahole struct drm_display_mode185304bca386 drm: Shrink mode->private_flags2b38c59a9a1c drm: Flatten drm_mode_vrefresh()461918918abd drm: Shrink drm_display_mode timings95bbdbf0fc19 drm: Make mode->flags u32123730c56db7 drm: Shrink mode->type to u8ebc0d4878fa3 drm: Shrink {width,height}_mm to u165ffd09532dbc drm/msm/dpu: Stop copying around mode->private_flags fc4bd0c92150 drm: Nuke mode->vrefresh28e0079cb232 drm/i915: Introduce some local intel_dp variables60d00db46691 drm/exynos: Use mode->clock instead of reverse calculating it from the vrefresh 1547c317f1a8 drm: Nuke mode->hsync
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 60 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
struct
drm_display_modeis extremely fat. Put it on diet.Some stats for the whole series:
64bit
sizeof(struct drm_display_mode):
200 -> 136 bytes (-32%)64bit bloat-o-meter -c drm.ko:
add/remove: 1/0 grow/shrink: 29/47 up/down: 893/-1544 (-651)
Function old new delta
...
Total: Before=189430, After=188779, chg -0.34% add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0)
Data old new delta
Total: Before=11667, After=11667, chg +0.00% add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-16896 (-16896)
RO Data old new deltaedid_4k_modes 1000 680 -320 edid_est_modes 3400 2312 -1088 edid_cea_modes_193 5400 3672 -1728 drm_dmt_modes 17600 11968 -5632 edid_cea_modes_1 25400 17272 -8128Total: Before=71239, After=54343, chg -23.72%
64bit bloat-o-meter drm.ko:
add/remove: 1/0 grow/shrink: 29/52 up/down: 893/-18440 (-17547)
...
Total: Before=272336, After=254789, chg -6.44%32bit
sizeof(struct drm_display_mode):
184 -> 120 bytes (-34%)32bit bloat-o-meter -c drm.ko
add/remove: 1/0 grow/shrink: 19/21 up/down: 743/-1368 (-625)
Function old new delta
...
Total: Before=172359, After=171734, chg -0.36% add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0)
Data old new delta
Total: Before=4227, After=4227, chg +0.00% add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-16896 (-16896)RO Data old new delta edid_4k_modes 920 600 -320 edid_est_modes 3128 2040 -1088 edid_cea_modes_193 4968 3240 -1728 drm_dmt_modes 16192 10560 -5632 edid_cea_modes_1 23368 15240 -8128Total: Before=59230, After=42334, chg -28.53%
32bit bloat-o-meter drm.ko:
add/remove: 1/0 grow/shrink: 19/26 up/down: 743/-18264 (-17521)
...
Total: Before=235816, After=218295, chg -7.43%
Quoted 8 lines
Some ideas for further reduction:
- Convertmode->nameto a pointer (saves 24/28 bytes in the struct but would often require a heap alloc for the name (though typical mode name is <10 bytes so still overall win perhaps)
- Get rid ofmode->nameentirely? I guess setcrtc & co. is the only place where we have to preserve the user provided name, elsewhere could pehaps just generate on demand? Not sure how tricky this would get.
The series does some great work, with future work reaching the cache line for 64bit.
Doing much more than that might be an overkill IMHO.
In particular, if we change DRM_DISPLAY_MODE_LEN to 24 we get there, avoiding the heap alloc/calc on demand fun.
While also ensuring the name is sufficiently large for the next decade or so.
From drm_mode_set_name():
snprintf(mode->name, DRM_DISPLAY_MODE_LEN, "%dx%d%s",
mode->hdisplay, mode->vdisplay, interlaced ? "i" : "");
We change the h/v display from (10^15)-1 to (10^11)-1 which seems reasonable.
Note: haven't checked if name includes the terminating \0, so take numbers with a grain of salt.
-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 71 lines · Emil Velikov
Quoted 60 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
struct
drm_display_modeis extremely fat. Put it on diet.Some stats for the whole series:
64bit
sizeof(struct drm_display_mode):
200 -> 136 bytes (-32%)64bit bloat-o-meter -c drm.ko:
add/remove: 1/0 grow/shrink: 29/47 up/down: 893/-1544 (-651)
Function old new delta
...
Total: Before=189430, After=188779, chg -0.34% add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0)
Data old new delta
Total: Before=11667, After=11667, chg +0.00% add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-16896 (-16896)
RO Data old new deltaedid_4k_modes 1000 680 -320 edid_est_modes 3400 2312 -1088 edid_cea_modes_193 5400 3672 -1728 drm_dmt_modes 17600 11968 -5632 edid_cea_modes_1 25400 17272 -8128Total: Before=71239, After=54343, chg -23.72%
64bit bloat-o-meter drm.ko:
add/remove: 1/0 grow/shrink: 29/52 up/down: 893/-18440 (-17547)
...
Total: Before=272336, After=254789, chg -6.44%32bit
sizeof(struct drm_display_mode):
184 -> 120 bytes (-34%)32bit bloat-o-meter -c drm.ko
add/remove: 1/0 grow/shrink: 19/21 up/down: 743/-1368 (-625)
Function old new delta
...
Total: Before=172359, After=171734, chg -0.36% add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0)
Data old new delta
Total: Before=4227, After=4227, chg +0.00% add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-16896 (-16896)RO Data old new delta edid_4k_modes 920 600 -320 edid_est_modes 3128 2040 -1088 edid_cea_modes_193 4968 3240 -1728 drm_dmt_modes 16192 10560 -5632 edid_cea_modes_1 23368 15240 -8128Total: Before=59230, After=42334, chg -28.53%
32bit bloat-o-meter drm.ko:
add/remove: 1/0 grow/shrink: 19/26 up/down: 743/-18264 (-17521)
...
Total: Before=235816, After=218295, chg -7.43%Quoted 8 lines
Some ideas for further reduction:
- Convertmode->nameto a pointer (saves 24/28 bytes in the struct but would often require a heap alloc for the name (though typical mode name is <10 bytes so still overall win perhaps)
- Get rid ofmode->nameentirely? I guess setcrtc & co. is the only place where we have to preserve the user provided name, elsewhere could pehaps just generate on demand? Not sure how tricky this would get.
Quoted 7 lines
The series does some great work, with future work reaching the cache line for 64bit.
Doing much more than that might be an overkill IMHO.In particular, if we change
DRM_DISPLAY_MODE_LENto 24 we get there, avoiding the heap alloc/calc on demand fun.
While also ensuring the name is sufficiently large for the next decade or so.
Unfortunately it's part of the uabi. So can't change it without some risk of userspace breakage.
The least demanding option is probably to nuke export_head. We need one bit to replace it, which we can get by either:
- stealing from eg. mode->type, or perhaps mode->private_flags
- nuke private_flags outright and replace it with a bool for this purpose
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 80 lines · Ville Syrjälä
Quoted 71 lines · Emil Velikov
Quoted 60 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
struct
drm_display_modeis extremely fat. Put it on diet.Some stats for the whole series:
64bit
sizeof(struct drm_display_mode):
200 -> 136 bytes (-32%)64bit bloat-o-meter -c drm.ko:
add/remove: 1/0 grow/shrink: 29/47 up/down: 893/-1544 (-651)
Function old new delta
...
Total: Before=189430, After=188779, chg -0.34% add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0)
Data old new delta
Total: Before=11667, After=11667, chg +0.00% add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-16896 (-16896)
RO Data old new deltaedid_4k_modes 1000 680 -320 edid_est_modes 3400 2312 -1088 edid_cea_modes_193 5400 3672 -1728 drm_dmt_modes 17600 11968 -5632 edid_cea_modes_1 25400 17272 -8128Total: Before=71239, After=54343, chg -23.72%
64bit bloat-o-meter drm.ko:
add/remove: 1/0 grow/shrink: 29/52 up/down: 893/-18440 (-17547)
...
Total: Before=272336, After=254789, chg -6.44%32bit
sizeof(struct drm_display_mode):
184 -> 120 bytes (-34%)32bit bloat-o-meter -c drm.ko
add/remove: 1/0 grow/shrink: 19/21 up/down: 743/-1368 (-625)
Function old new delta
...
Total: Before=172359, After=171734, chg -0.36% add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0)
Data old new delta
Total: Before=4227, After=4227, chg +0.00% add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-16896 (-16896)RO Data old new delta edid_4k_modes 920 600 -320 edid_est_modes 3128 2040 -1088 edid_cea_modes_193 4968 3240 -1728 drm_dmt_modes 16192 10560 -5632 edid_cea_modes_1 23368 15240 -8128Total: Before=59230, After=42334, chg -28.53%
32bit bloat-o-meter drm.ko:
add/remove: 1/0 grow/shrink: 19/26 up/down: 743/-18264 (-17521)
...
Total: Before=235816, After=218295, chg -7.43%Quoted 8 lines
Some ideas for further reduction:
- Convertmode->nameto a pointer (saves 24/28 bytes in the struct but would often require a heap alloc for the name (though typical mode name is <10 bytes so still overall win perhaps)
- Get rid ofmode->nameentirely? I guess setcrtc & co. is the only place where we have to preserve the user provided name, elsewhere could pehaps just generate on demand? Not sure how tricky this would get.Quoted 7 lines
The series does some great work, with future work reaching the cache line for 64bit.
Doing much more than that might be an overkill IMHO.In particular, if we change
DRM_DISPLAY_MODE_LENto 24 we get there, avoiding the heap alloc/calc on demand fun.
While also ensuring the name is sufficiently large for the next decade or so.
Quoted 8 lines
Unfortunately it's part of the uabi. So can't change it without some risk of userspace breakage.
The least demanding option is probably to nuke
export_head. We need one bit to replace it, which we can get by either:
- stealing from eg.mode->type, or perhapsmode->private_flags
- nukeprivate_flagsoutright and replace it with a bool for this purpose
Looks like getting rid of private_flags is going to be pretty straightforward. I'll post patches for that once this first series lands.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerQuoted 3 lines · Ville Syrjälä
Looks like getting rid of
private_flagsis going to be pretty straightforward. I'll post patches for that once this first series lands.
Going all in on crtc state? I suppose migrating away from private_flags could easily start in i915 before that. Seems rather independent.
I guess it's __intel_get_crtc_scanline() and:
vblank = &crtc->base.dev->vblank[drm_crtc_index(&crtc->base)]; mode = &vblank->hwmode; if (mode->private_flags & I915_MODE_FLAG_GET_SCANLINE_FROM_TIMESTAMP)
that gives me the creeps in reviewing all that.
There's also [1] adding new uses for private_flags; I think there were issues in getting at the right crtc state on some of those paths, but I forget the exact details. Ideas?
BR,
Jani.
[1] https://patchwork.freedesktop.org/series/69290/
Signature · 5 lines
Jani Nikula, Intel Open Source Graphics Center _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 15 lines · Jani Nikula
Quoted 3 lines · Ville Syrjälä
Looks like getting rid of
private_flagsis going to be pretty straightforward. I'll post patches for that once this first series lands.Going all in on crtc state? I suppose migrating away from
private_flagscould easily start in i915 before that. Seems rather independent.I guess it's
__intel_get_crtc_scanline()and:vblank = &crtc->base.dev->vblank[drm_crtc_index(&crtc->base)]; mode = &vblank->hwmode; if (mode->private_flags & I915_MODE_FLAG_GET_SCANLINE_FROM_TIMESTAMP)
Quoted 5 lines
that gives me the creeps in reviewing all that.
There's also [1] adding new uses for
private_flags; I think there were issues in getting at the right crtc state on some of those paths, but I forget the exact details. Ideas?
I'm just going to move them to the crtc_state and put a copy into the crtc itself for the vblank code. Pretty much a 1:1 replacement. Saves me from having to think ;)
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 19 lines · Ville Syrjälä
Quoted 17 lines · Jani Nikula
Quoted 3 lines · Ville Syrjälä
Looks like getting rid of
private_flagsis going to be pretty straightforward. I'll post patches for that once this first series lands.Going all in on crtc state? I suppose migrating away from
private_flagscould easily start in i915 before that. Seems rather independent.I guess it's
__intel_get_crtc_scanline()and:vblank = &crtc->base.dev->vblank[drm_crtc_index(&crtc->base)]; mode = &vblank->hwmode; if (mode->private_flags & I915_MODE_FLAG_GET_SCANLINE_FROM_TIMESTAMP)that gives me the creeps in reviewing all that.
Quoted 7 lines
Quoted 3 lines
There's also [1] adding new uses for
private_flags; I think there were issues in getting at the right crtc state on some of those paths, but I forget the exact details. Ideas?I'm just going to move them to the
crtc_stateand put a copy into the crtc itself for the vblank code. Pretty much a 1:1 replacement. Saves me from having to think ;)
I've looked through the patches, and didn't spot any place where we couldn't just get at the full crtc state. Might need some crtc->state dereferencing and upcasting and making sure stuff is ordered correctly with enable/disable paths of crtc, but nothing to jump over.
Was this maybe predating the switch of the vblank callbacks over from drm_driver to drm_crtc_funcs, and in the former it's indeed not super-obvious that you can just look at the crtc? Anyway, didn't look like it needs private flags at all from a quick scan. -Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 25 lines · Daniel Vetter
Quoted 23 lines · Ville Syrjälä
Quoted 20 lines · Jani Nikula
Quoted 3 lines · Ville Syrjälä
Looks like getting rid of
private_flagsis going to be pretty straightforward. I'll post patches for that once this first series lands.Going all in on crtc state? I suppose migrating away from
private_flagscould easily start in i915 before that. Seems rather independent.I guess it's
__intel_get_crtc_scanline()and:vblank = &crtc->base.dev->vblank[drm_crtc_index(&crtc->base)]; mode = &vblank->hwmode; if (mode->private_flags & I915_MODE_FLAG_GET_SCANLINE_FROM_TIMESTAMP)that gives me the creeps in reviewing all that.
There's also [1] adding new uses for
private_flags; I think there were issues in getting at the right crtc state on some of those paths, but I forget the exact details. Ideas?
Quoted 8 lines
Quoted 3 lines
I'm just going to move them to the
crtc_stateand put a copy into the crtc itself for the vblank code. Pretty much a 1:1 replacement. Saves me from having to think ;)I've looked through the patches, and didn't spot any place where we couldn't just get at the full crtc state. Might need some
crtc->statedereferencing and upcasting and making sure stuff is ordered correctly with enable/disable paths of crtc, but nothing to jump over.
swap_state() could easily race with the irq handler. I guess practically unlikely the old crtc state would disappear before the irq handler is done, but still seems somewhat dubious.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 30 lines · Ville Syrjälä
Quoted 29 lines · Daniel Vetter
Quoted 26 lines · Ville Syrjälä
Quoted 15 lines · Jani Nikula
Quoted 3 lines · Ville Syrjälä
Looks like getting rid of
private_flagsis going to be pretty straightforward. I'll post patches for that once this first series lands.Going all in on crtc state? I suppose migrating away from
private_flagscould easily start in i915 before that. Seems rather independent.I guess it's
__intel_get_crtc_scanline()and:vblank = &crtc->base.dev->vblank[drm_crtc_index(&crtc->base)]; mode = &vblank->hwmode; if (mode->private_flags & I915_MODE_FLAG_GET_SCANLINE_FROM_TIMESTAMP)Quoted 5 lines
that gives me the creeps in reviewing all that.
There's also [1] adding new uses for
private_flags; I think there were issues in getting at the right crtc state on some of those paths, but I forget the exact details. Ideas?I'm just going to move them to the
crtc_stateand put a copy into the crtc itself for the vblank code. Pretty much a 1:1 replacement. Saves me from having to think ;)
Quoted 8 lines
Quoted 4 lines
I've looked through the patches, and didn't spot any place where we couldn't just get at the full crtc state. Might need some
crtc->statedereferencing and upcasting and making sure stuff is ordered correctly with enable/disable paths of crtc, but nothing to jump over.
swap_state()could easily race with the irq handler. I guess practically unlikely the old crtc state would disappear before the irq handler is done, but still seems somewhat dubious.
And I guess the bigger problem is that swap_state() happens way too early. So crtc->state would be pointing to bogus stuff while we're disabling the crtc.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 36 lines · Ville Syrjälä
Quoted 35 lines · Ville Syrjälä
Quoted 33 lines · Daniel Vetter
Quoted 19 lines · Ville Syrjälä
Quoted 17 lines · Jani Nikula
Quoted 3 lines · Ville Syrjälä
Looks like getting rid of
private_flagsis going to be pretty straightforward. I'll post patches for that once this first series lands.Going all in on crtc state? I suppose migrating away from
private_flagscould easily start in i915 before that. Seems rather independent.I guess it's
__intel_get_crtc_scanline()and:vblank = &crtc->base.dev->vblank[drm_crtc_index(&crtc->base)]; mode = &vblank->hwmode; if (mode->private_flags & I915_MODE_FLAG_GET_SCANLINE_FROM_TIMESTAMP)that gives me the creeps in reviewing all that.
Quoted 7 lines
Quoted 3 lines
There's also [1] adding new uses for
private_flags; I think there were issues in getting at the right crtc state on some of those paths, but I forget the exact details. Ideas?I'm just going to move them to the
crtc_stateand put a copy into the crtc itself for the vblank code. Pretty much a 1:1 replacement. Saves me from having to think ;)I've looked through the patches, and didn't spot any place where we couldn't just get at the full crtc state. Might need some
crtc->statedereferencing and upcasting and making sure stuff is ordered correctly with enable/disable paths of crtc, but nothing to jump over.
Quoted 7 lines
Quoted 3 lines
swap_state()could easily race with the irq handler. I guess practically unlikely the old crtc state would disappear before the irq handler is done, but still seems somewhat dubious.And I guess the bigger problem is that
swap_state()happens way too early. Socrtc->statewould be pointing to bogus stuff while we're disabling the crtc.
Uh, so we're essentially piggy-packing some random i915 state on top of the hw timing stuff the vblank handler does, and hope that this is race-free enough to not matter?
I think the right solution there would be to have a proper spinlock_irqsafe for this stuff that the dsi TE handler needs, and through that make sure that we're actually not going boom. At least it looked like there's also irq handling bits outside of the vblank code, so the vblank locking is not going to safe the day.
Or maybe it's really just too late and I should go into w/e :-) -Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 49 lines · Daniel Vetter
Quoted 36 lines · Ville Syrjälä
Quoted 35 lines · Ville Syrjälä
Quoted 33 lines · Daniel Vetter
Quoted 19 lines · Ville Syrjälä
Quoted 17 lines · Jani Nikula
Quoted 3 lines · Ville Syrjälä
Looks like getting rid of
private_flagsis going to be pretty straightforward. I'll post patches for that once this first series lands.Going all in on crtc state? I suppose migrating away from
private_flagscould easily start in i915 before that. Seems rather independent.I guess it's
__intel_get_crtc_scanline()and:vblank = &crtc->base.dev->vblank[drm_crtc_index(&crtc->base)]; mode = &vblank->hwmode; if (mode->private_flags & I915_MODE_FLAG_GET_SCANLINE_FROM_TIMESTAMP)that gives me the creeps in reviewing all that.
Quoted 7 lines
Quoted 3 lines
There's also [1] adding new uses for
private_flags; I think there were issues in getting at the right crtc state on some of those paths, but I forget the exact details. Ideas?I'm just going to move them to the
crtc_stateand put a copy into the crtc itself for the vblank code. Pretty much a 1:1 replacement. Saves me from having to think ;)I've looked through the patches, and didn't spot any place where we couldn't just get at the full crtc state. Might need some
crtc->statedereferencing and upcasting and making sure stuff is ordered correctly with enable/disable paths of crtc, but nothing to jump over.Quoted 7 lines
Quoted 3 lines
swap_state()could easily race with the irq handler. I guess practically unlikely the old crtc state would disappear before the irq handler is done, but still seems somewhat dubious.And I guess the bigger problem is that
swap_state()happens way too early. Socrtc->statewould be pointing to bogus stuff while we're disabling the crtc.Uh, so we're essentially piggy-packing some random i915 state on top of the hw timing stuff the vblank handler does, and hope that this is race-free enough to not matter?
Quoted 5 lines
I think the right solution there would be to have a proper
spinlock_irqsafefor this stuff that the dsi TE handler needs, and through that make sure that we're actually not going boom. At least it looked like there's also irq handling bits outside of the vblank code, so the vblank locking is not going to safe the day.
I haven't actually looked at the DSI TE stuff so far, so no idea what's going on there.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 77 lines · Ville Syrjälä
Quoted 75 lines · Emil Velikov
Quoted 60 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
struct
drm_display_modeis extremely fat. Put it on diet.Some stats for the whole series:
64bit
sizeof(struct drm_display_mode):
200 -> 136 bytes (-32%)64bit bloat-o-meter -c drm.ko:
add/remove: 1/0 grow/shrink: 29/47 up/down: 893/-1544 (-651)
Function old new delta
...
Total: Before=189430, After=188779, chg -0.34% add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0)
Data old new delta
Total: Before=11667, After=11667, chg +0.00% add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-16896 (-16896)
RO Data old new deltaedid_4k_modes 1000 680 -320 edid_est_modes 3400 2312 -1088 edid_cea_modes_193 5400 3672 -1728 drm_dmt_modes 17600 11968 -5632 edid_cea_modes_1 25400 17272 -8128Total: Before=71239, After=54343, chg -23.72%
64bit bloat-o-meter drm.ko:
add/remove: 1/0 grow/shrink: 29/52 up/down: 893/-18440 (-17547)
...
Total: Before=272336, After=254789, chg -6.44%32bit
sizeof(struct drm_display_mode):
184 -> 120 bytes (-34%)32bit bloat-o-meter -c drm.ko
add/remove: 1/0 grow/shrink: 19/21 up/down: 743/-1368 (-625)
Function old new delta
...
Total: Before=172359, After=171734, chg -0.36% add/remove: 0/0 grow/shrink: 0/0 up/down: 0/0 (0)
Data old new delta
Total: Before=4227, After=4227, chg +0.00% add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-16896 (-16896)RO Data old new delta edid_4k_modes 920 600 -320 edid_est_modes 3128 2040 -1088 edid_cea_modes_193 4968 3240 -1728 drm_dmt_modes 16192 10560 -5632 edid_cea_modes_1 23368 15240 -8128Total: Before=59230, After=42334, chg -28.53%
32bit bloat-o-meter drm.ko:
add/remove: 1/0 grow/shrink: 19/26 up/down: 743/-18264 (-17521)
...
Total: Before=235816, After=218295, chg -7.43%Quoted 8 lines
Some ideas for further reduction:
- Convertmode->nameto a pointer (saves 24/28 bytes in the struct but would often require a heap alloc for the name (though typical mode name is <10 bytes so still overall win perhaps)
- Get rid ofmode->nameentirely? I guess setcrtc & co. is the only place where we have to preserve the user provided name, elsewhere could pehaps just generate on demand? Not sure how tricky this would get.The series does some great work, with future work reaching the cache line for 64bit.
Doing much more than that might be an overkill IMHO.
Quoted 7 lines
Quoted 3 lines
In particular, if we change
DRM_DISPLAY_MODE_LENto 24 we get there, avoiding the heap alloc/calc on demand fun.
While also ensuring the name is sufficiently large for the next decade or so.Unfortunately it's part of the uabi. So can't change it without some risk of userspace breakage.
Right the define is in the uABI. More importantly userspace can provide a drm_mode_modeinfo blob, with a name[32], which we cannot store in the kernel drm_display_mode::name[24].
One might get away with returning -EINVAL if the actual name given by the user is > 24.
Since you've found a better way, there's on point in risking it.
-Emil
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 2 lines · Ville Syrjala
drm/exynos: Use
mode->clockinstead of reverse calculating it from the vrefresh
drm: Nukemode->vrefresh
I'm sure this is fine.
We need one: either clock or refresh settings, so it does make sense to calculate one from the other.
So is the reasoning such that we mostly know the clock and the resolutions and then calculate vrefresh? (It makes sense to me in a way.)
What I am worried about here is that some of these (especially panels) are probably already out of sync so we need to ascertain that the clock is correct-ish everywhere, so let's be prepared for some regressions.
For command-mode DSI panels the vrefresh can become quite weird I think, the vrefresh is different from what you can reverse calculate (I know this from experiments) but I doubt we care much.
Yours,
Linus Walleij
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for drm: Put drm_display_mode on diet
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm: Put drm_display_mode on diet
URL : https://patchwork.freedesktop.org/series/73674/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_7966_full -> Patchwork_16631_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_16631_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_16631_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_16631_full:
### IGT changes ###
#### Possible regressions ####
* igt@perf_pmu@idle-vcs0:
- shard-tglb: [PASS][1] -> [INCOMPLETE][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-tglb6/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-tglb6/igt@[email protected]
New tests
---------
New tests have been introduced between CI_DRM_7966_full and Patchwork_16631_full:
### New IGT tests (2) ###
* igt@gem_eio@context-create:
- Statuses : 8 pass(s)
- Exec time: [0.01, 0.14] s
* igt@kms_mmap_write_crc@main:
- Statuses : 8 pass(s)
- Exec time: [3.80, 21.71] s
Known issues
------------
Here are the changes found in Patchwork_16631_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_ctx_shared@q-smoketest-bsd2:
- shard-iclb: [PASS][3] -> [SKIP][4] ([fdo#109276]) +11 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-iclb2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-iclb3/igt@[email protected]
* igt@gem_exec_schedule@deep-bsd:
- shard-iclb: [PASS][5] -> [SKIP][6] ([fdo#112146]) +2 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-iclb3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-iclb4/igt@[email protected]
* igt@gem_partial_pwrite_pread@write-snoop:
- shard-hsw: [PASS][7] -> [FAIL][8] ([i915#694]) +3 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-hsw6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-hsw1/igt@[email protected]
* igt@gem_ppgtt@flink-and-close-vma-leak:
- shard-glk: [PASS][9] -> [FAIL][10] ([i915#644])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-glk8/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-glk9/igt@[email protected]
* igt@i915_pm_rpm@universal-planes-dpms:
- shard-tglb: [PASS][11] -> [TIMEOUT][12] ([fdo#112126] / [fdo#112271]) +3 similar issues
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-tglb1/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-tglb1/igt@[email protected]
* igt@i915_pm_rps@waitboost:
- shard-iclb: [PASS][13] -> [FAIL][14] ([i915#413])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-iclb7/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-iclb7/igt@[email protected]
* igt@kms_color@pipe-a-degamma:
- shard-skl: [PASS][15] -> [FAIL][16] ([fdo#108145] / [i915#71])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-skl5/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-skl4/igt@[email protected]
* igt@kms_cursor_crc@pipe-a-cursor-suspend:
- shard-kbl: [PASS][17] -> [DMESG-WARN][18] ([i915#180]) +4 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-kbl6/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-kbl2/igt@[email protected]
* igt@kms_flip@flip-vs-panning-vs-hang-interruptible:
- shard-tglb: [PASS][19] -> [TIMEOUT][20] ([fdo#112271] / [i915#561]) +3 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-tglb6/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-tglb6/igt@[email protected]
* igt@kms_psr@psr2_sprite_mmap_gtt:
- shard-iclb: [PASS][21] -> [SKIP][22] ([fdo#109441]) +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-iclb2/igt@kms_psr@psr2_sprite_mmap_gtt.html
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-iclb4/igt@kms_psr@psr2_sprite_mmap_gtt.html
* igt@kms_vblank@pipe-a-ts-continuation-suspend:
- shard-apl: [PASS][23] -> [DMESG-WARN][24] ([i915#180]) +2 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-apl2/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-apl4/igt@[email protected]
* igt@perf_pmu@busy-no-semaphores-vcs1:
- shard-iclb: [PASS][25] -> [SKIP][26] ([fdo#112080]) +5 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-iclb4/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-iclb6/igt@[email protected]
* igt@perf_pmu@cpu-hotplug:
- shard-hsw: [PASS][27] -> [INCOMPLETE][28] ([i915#1176] / [i915#61])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-hsw2/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-hsw5/igt@[email protected]
#### Possible fixes ####
* {igt@gem_exec_schedule@implicit-write-read-bsd}:
- shard-iclb: [SKIP][29] ([i915#677]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-iclb4/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-iclb8/igt@[email protected]
* {igt@gem_exec_schedule@implicit-write-read-bsd1}:
- shard-iclb: [SKIP][31] ([fdo#109276] / [i915#677]) -> [PASS][32] +1 similar issue
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-iclb3/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-iclb1/igt@[email protected]
* igt@gem_exec_schedule@in-order-bsd:
- shard-iclb: [SKIP][33] ([fdo#112146]) -> [PASS][34] +5 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-iclb1/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-iclb5/igt@[email protected]
* igt@gem_exec_schedule@preempt-contexts-bsd2:
- shard-iclb: [SKIP][35] ([fdo#109276]) -> [PASS][36] +19 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-iclb3/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-iclb4/igt@[email protected]
* {igt@gem_exec_whisper@basic-contexts-forked}:
- shard-apl: [INCOMPLETE][37] ([fdo#103927]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-apl3/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-apl3/igt@[email protected]
* igt@gem_ppgtt@flink-and-close-vma-leak:
- shard-apl: [FAIL][39] ([i915#644]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-apl7/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-apl4/igt@[email protected]
* igt@i915_pm_dc@dc6-psr:
- shard-iclb: [FAIL][41] ([i915#454]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-iclb4/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-iclb4/igt@[email protected]
* igt@kms_busy@extended-pageflip-hang-oldfb-render-pipe-a:
- shard-snb: [SKIP][43] ([fdo#109271]) -> [PASS][44] +4 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-snb6/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-snb4/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-64x21-random:
- shard-apl: [FAIL][45] ([i915#54]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-apl3/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-apl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-suspend:
- shard-skl: [INCOMPLETE][47] ([i915#300]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-skl6/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-skl2/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-apl: [DMESG-WARN][49] ([i915#180]) -> [PASS][50] +3 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-apl1/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-apl3/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-shrfb-msflip-blt:
- shard-tglb: [SKIP][51] ([i915#668]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-tglb1/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-tglb7/igt@[email protected]
* {igt@kms_hdr@bpc-switch-suspend}:
- shard-skl: [FAIL][53] ([i915#1188]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-skl4/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-skl9/igt@[email protected]
* igt@kms_pipe_crc_basic@suspend-read-crc-pipe-a:
- shard-kbl: [DMESG-WARN][55] ([i915#180]) -> [PASS][56] +3 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-kbl7/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-kbl7/igt@[email protected]
* igt@kms_setmode@basic:
- shard-apl: [FAIL][57] ([i915#31]) -> [PASS][58]
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-apl3/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-apl1/igt@[email protected]
- shard-kbl: [FAIL][59] ([i915#31]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-kbl3/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-kbl7/igt@[email protected]
* igt@perf_pmu@init-busy-vcs1:
- shard-iclb: [SKIP][61] ([fdo#112080]) -> [PASS][62] +7 similar issues
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-iclb3/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-iclb1/igt@[email protected]
* igt@prime_mmap_coherency@ioctl-errors:
- shard-hsw: [FAIL][63] ([i915#831]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-hsw1/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-hsw2/igt@[email protected]
#### Warnings ####
* igt@i915_pm_dc@dc6-dpms:
- shard-tglb: [SKIP][65] ([i915#468]) -> [FAIL][66] ([i915#454])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-tglb2/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-tglb3/igt@[email protected]
* igt@i915_pm_rpm@gem-idle:
- shard-snb: [INCOMPLETE][67] ([i915#82]) -> [SKIP][68] ([fdo#109271])
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7966/shard-snb6/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/shard-snb6/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109276]: https://bugs.freedesktop.org/show_bug.cgi?id=109276
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#112080]: https://bugs.freedesktop.org/show_bug.cgi?id=112080
[fdo#112126]: https://bugs.freedesktop.org/show_bug.cgi?id=112126
[fdo#112146]: https://bugs.freedesktop.org/show_bug.cgi?id=112146
[fdo#112271]: https://bugs.freedesktop.org/show_bug.cgi?id=112271
[i915#1176]: https://gitlab.freedesktop.org/drm/intel/issues/1176
[i915#1188]: https://gitlab.freedesktop.org/drm/intel/issues/1188
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#300]: https://gitlab.freedesktop.org/drm/intel/issues/300
[i915#31]: https://gitlab.freedesktop.org/drm/intel/issues/31
[i915#413]: https://gitlab.freedesktop.org/drm/intel/issues/413
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#468]: https://gitlab.freedesktop.org/drm/intel/issues/468
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#561]: https://gitlab.freedesktop.org/drm/intel/issues/561
[i915#61]: https://gitlab.freedesktop.org/drm/intel/issues/61
[i915#644]: https://gitlab.freedesktop.org/drm/intel/issues/644
[i915#668]: https://gitlab.freedesktop.org/drm/intel/issues/668
[i915#677]: https://gitlab.freedesktop.org/drm/intel/issues/677
[i915#694]: https://gitlab.freedesktop.org/drm/intel/issues/694
[i915#71]: https://gitlab.freedesktop.org/drm/intel/issues/71
[i915#82]: https://gitlab.freedesktop.org/drm/intel/issues/82
[i915#831]: https://gitlab.freedesktop.org/drm/intel/issues/831
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* CI: CI-20190529 -> None
* Linux: CI_DRM_7966 -> Patchwork_16631
CI-20190529: 20190529
CI_DRM_7966: 014bfb094e0b4e80d7510dc5d6f45e5e73bbb419 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5451: 1c42f971d37a066da3e588783611ab08d5afbded @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_16631: 133ee95728f4361cc469df6ee57430d5096cc8c7 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_16631/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx