drm/i915: Plane cdclk requirements and fp16 for gen4+
cover drm/i915: Plane cdclk requirements and fp16 for gen4+
From: Ville Syrjälä <[email protected]>
The end of the series is just a reposting of the fp16 stuff for gen4+. The start of the series is new stuff to allow planes to dictate the minimum cdclk, which is sometimes needed for downscaling or fp16 (and sometimes even for other pixel formats). Thanks to that new code the fp16 tests should now pass on bxt/glk.
Ville Syrjälä (19):
drm: Add drm_modeset_lock_assert_held() drm/atomic-helper: Make crtc helper funcs optional drm/i915: Remove pointless planes_changed=true assignment drm/i915: Replace is_planar_yuv_format() with
drm_format_info_is_yuv_semiplanar()
drm/i915: Allow downscale factor of <3.0 on glk+ for all formats drm/i915: Extract intel_modeset_calc_cdclk()
drm/i915: s/pipe_config/crtc_state/ in intel_crtc_atomic_check() drm/i915: Stop using drm_atomic_helper_check_planes() drm/i915: Add debugs to distingiush a cd2x update from a full cdclk
pll update
drm/i915: Make .modeset_calc_cdclk() mandatory
drm/i915: Rework global state locking
drm/i915: Move check_digital_port_conflicts() earier drm/i915: Allow planes to declare their minimum acceptable cdclk drm/i915: Eliminate skl_check_pipe_max_pixel_rate() drm/i915: Simplify skl_max_scale()
drm/i915: Add support for half float framebuffers for skl+ drm/i915: Add support for half float framebuffers for gen4+ primary
planes
drm/i915: Add support for half float framebuffers for ivb+ sprites drm/i915: Add support for half float framebuffers on snb sprites
drivers/gpu/drm/drm_atomic_helper.c | 2 +- drivers/gpu/drm/i915/display/intel_atomic.c | 34 +- drivers/gpu/drm/i915/display/intel_atomic.h | 3 + .../gpu/drm/i915/display/intel_atomic_plane.c | 45 +- .../gpu/drm/i915/display/intel_atomic_plane.h | 4 + drivers/gpu/drm/i915/display/intel_audio.c | 10 +- drivers/gpu/drm/i915/display/intel_cdclk.c | 221 +++++++- drivers/gpu/drm/i915/display/intel_cdclk.h | 6 +- drivers/gpu/drm/i915/display/intel_display.c | 534 ++++++++++-------- drivers/gpu/drm/i915/display/intel_sprite.c | 441 ++++++++++++++- drivers/gpu/drm/i915/display/intel_sprite.h | 8 +- drivers/gpu/drm/i915/i915_drv.h | 11 +- drivers/gpu/drm/i915/intel_drv.h | 14 +- drivers/gpu/drm/i915/intel_pm.c | 116 +--- drivers/gpu/drm/i915/intel_pm.h | 2 - include/drm/drm_modeset_lock.h | 9 + 16 files changed, 1054 insertions(+), 406 deletions(-)
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/19 drm: Add drm_modeset_lock_assert_held()
From: Ville Syrjälä <[email protected]>
Add a small wrapper around lockdep_assert_held() to make it a bit more conventinet to use with modeset locks.
--- include/drm/drm_modeset_lock.h | 9 +++++++++ 1 file changed, 9 insertions(+)
include/drm/drm_modeset_lock.h +9 -0
@@ -114,6 +114,15 @@ static inline bool drm_modeset_is_locked(struct drm_modeset_lock *lock)return ww_mutex_is_locked (&lock->mutex); } +/** +* drm_modeset_lock_assert_held - equivalent to lockdep_assert_held() +* @lock: lock to check +*/ +static inline void drm_modeset_lock_assert_held (struct drm_modeset_lock *lock) +{ +lockdep_assert_held (&lock->mutex.base); +} +int drm_modeset_lock (struct drm_modeset_lock *lock,struct drm_modeset_acquire_ctx *ctx);int __must_check drm_modeset_lock_single_interruptible (struct drm_modeset_lock *lock);
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/19 drm/atomic-helper: Make crtc helper funcs optional
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Allow drivers to call drm_atomic_helper_check_modeset() without having the crtc helper funcs specified. i915 doesn't need those anymore.
--- drivers/gpu/drm/drm_atomic_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_atomic_helper.c +1 -1
@@ -481,7 +481,7 @@ mode_fixup(struct drm_atomic_state *state)continue ; funcs = crtc->helper_private; -if (!funcs->mode_fixup) +if (!funcs || !funcs->mode_fixup)continue ; ret = funcs->mode_fixup(crtc, &new_crtc_state->mode,
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 02/19] drm/atomic-helper: Make crtc helper funcs optional
Quoted 17 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Allow drivers to call
drm_atomic_helper_check_modeset()without having the crtc helper funcs specified. i915 doesn't need those anymore.Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/drm_atomic_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/drm_atomic_helper.c +0
-0
drivers/gpu/drm/drm_atomic_helper.c mode_fixup(struct drm_atomic_state *state) · line 487
Quoted 8 lines
drivers/gpu/drm/drm_atomic_helper.c +1
-1@@ -481,7 +481,7 @@ mode_fixup(struct drm_atomic_state *state)continue ; funcs = crtc->helper_private; -if (!funcs->mode_fixup) +if (!funcs || !funcs->mode_fixup)continue ; ret = funcs->mode_fixup(crtc, &new_crtc_state->mode,
But it still won't allow to call anything from here, if no funcs or no mode_fixup is specified. Anyway seems to be a good idea to check both funcs or funcs->mode_fixup being NULL, just don't get the commit message a bit :)
- Stanislav
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 02/19] drm/atomic-helper: Make crtc helper funcs optional
Quoted 25 lines · Stanislav
Quoted 24 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Allow drivers to call
drm_atomic_helper_check_modeset()without having the crtc helper funcs specified. i915 doesn't need those anymore.Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/drm_atomic_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/drm_atomic_helper.c +1
-1@@ -481,7 +481,7 @@ mode_fixup(struct drm_atomic_state *state)continue ; funcs = crtc->helper_private; -if (!funcs->mode_fixup) +if (!funcs || !funcs->mode_fixup)continue ;
Quoted 6 lines
drivers/gpu/drm/drm_atomic_helper.c mode_fixup(struct drm_atomic_state *state) · line 487
Quoted 1 line
drivers/gpu/drm/drm_atomic_helper.c +0
-0ret = funcs->mode_fixup(crtc, &new_crtc_state->mode,But it still won't allow to call anything from here, if no funcs or no
mode_fixupis specified. Anyway seems to be a good idea to check both funcs orfuncs->mode_fixupbeing NULL, just don't get the commit message a bit :)
NULL->mode_fixup will oops.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 02/19] drm/atomic-helper: Make crtc helper funcs optional
In reply to Ville SyrjalaQuoted 10 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Allow drivers to call
drm_atomic_helper_check_modeset()without having the crtc helper funcs specified. i915 doesn't need those anymore.Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/drm_atomic_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 7 lines
drivers/gpu/drm/drm_atomic_helper.c +0
-0
drivers/gpu/drm/drm_atomic_helper.c mode_fixup(struct drm_atomic_state *state) · line 487
Quoted 8 lines
drivers/gpu/drm/drm_atomic_helper.c +1
-1@@ -481,7 +481,7 @@ mode_fixup(struct drm_atomic_state *state)continue ; funcs = crtc->helper_private; -if (!funcs->mode_fixup) +if (!funcs || !funcs->mode_fixup)continue ; ret = funcs->mode_fixup(crtc, &new_crtc_state->mode,
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 02/19] drm/atomic-helper: Make crtc helper funcs optional
Quoted 7 lines · Stanislav
Quoted 6 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
Allow drivers to call
drm_atomic_helper_check_modeset()without having the crtc helper funcs specified. i915 doesn't need those anymore.
Quoted 6 lines
Quoted 4 lines
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/drm_atomic_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Reviewed-by Stanislav Lisovskiy <[email protected]>
1-2 pushed to drm-misc-next. The rest shall wait until those two make the roundtrip back to dinq.
Thanks for the reviews.
Quoted 16 lines
Quoted 16 lines
drivers/gpu/drm/drm_atomic_helper.c +1
-1@@ -481,7 +481,7 @@ mode_fixup(struct drm_atomic_state *state)continue ; funcs = crtc->helper_private; -if (!funcs->mode_fixup) +if (!funcs || !funcs->mode_fixup)continue ; ret = funcs->mode_fixup(crtc, &new_crtc_state->mode,
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/19 drm/i915: Remove pointless planes_changed=true assignment
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
i915 doesn't use the crtc_state->plane_changed flag for anything, so setting it is pointless.
--- drivers/gpu/drm/i915/display/intel_atomic.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic.c +0 -7
@@ -378,13 +378,6 @@ int intel_atomic_setup_scalers(struct drm_i915_private *dev_priv, plane->base.id);return PTR_ERR (state); } - -/* -* the plane is added after plane checks are run, -* but since this plane is unchanged just do the -* minimum required validation. -*/ - crtc_state->base.planes_changed = true; } intel_plane =to_intel_plane (plane);
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 03/19] drm/i915: Remove pointless planes_changed=true assignment
Quoted 26 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
i915 doesn't use the
crtc_state->plane_changedflag for anything, so setting it is pointless.Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_atomic.c | 7 ------- 1 file changed, 7 deletions(-)drivers/gpu/drm/i915/display/intel_atomic.c +0
-4@@ -378,13 +378,6 @@ int intel_atomic_setup_scalers(struct drm_i915_private *dev_priv, plane->base.id);return PTR_ERR (state); } - -/* -* the plane is added after plane checks are run, -* but since this plane is unchanged just do the
drivers/gpu/drm/i915/display/intel_atomic.c int intel_atomic_setup_scalers(struct drm_i915_private *dev_priv, · line 383
Quoted 6 lines
drivers/gpu/drm/i915/display/intel_atomic.c +0
-3-* minimum required validation. -*/ - crtc_state->base.planes_changed = true; } intel_plane =to_intel_plane (plane);
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/19 drm/i915: Replace is_planar_yuv_format() with drm_format_info_is_yuv_semiplanar()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
There's a helper in drm_fourcc.h these days to check of we're dealing with a two plane YUV format. Make use if it.
Also s/plane/color_plane/ in skl_plane_relative_data_rate() to reduce the confusion.
--- .../gpu/drm/i915/display/intel_atomic_plane.c | 5 ++-- drivers/gpu/drm/i915/display/intel_display.c | 10 +++---- drivers/gpu/drm/i915/display/intel_sprite.c | 20 +++----------- drivers/gpu/drm/i915/display/intel_sprite.h | 1 - drivers/gpu/drm/i915/intel_drv.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 27 +++++++++---------- 6 files changed, 26 insertions(+), 39 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic_plane.c +3 -2
@@ -143,6 +143,7 @@ int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_ struct intel_plane_state *new_plane_state) {struct intel_plane *plane =to_intel_plane (new_plane_state->base.plane); +const struct drm_framebuffer *fb = new_plane_state->base.fb;int ret; new_crtc_state->active_planes &= ~BIT (plane->id);
@@ -163,11 +164,11 @@ int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_ new_crtc_state->active_planes |=BIT (plane->id);if (new_plane_state->base.visible && -is_planar_yuv_format (new_plane_state->base.fb->format->format)) +drm_format_info_is_yuv_semiplanar (fb->format)) new_crtc_state->nv12_planes |=BIT (plane->id);if (new_plane_state->base.visible && - new_plane_state->base.fb->format->format ==DRM_FORMAT_C8 ) + fb->format->format ==DRM_FORMAT_C8 ) new_crtc_state->c8_planes |=BIT (plane->id);if (new_plane_state->base.visible || old_plane_state->base.visible)
drivers/gpu/drm/i915/display/intel_display.c +5 -5
@@ -3540,7 +3540,7 @@ int skl_check_plane_surface(struct intel_plane_state *plane_state)* Handle the AUX surface first since * the main surface setup depends on it. */ -if (is_planar_yuv_format (fb->format->format)) { +if (drm_format_info_is_yuv_semiplanar (fb->format)) { ret =skl_check_nv12_aux_surface (plane_state);if (ret)return ret;
@@ -5457,7 +5457,7 @@ skl_update_scaler(struct intel_crtc_state *crtc_state, bool force_detach,return 0 ; } -if (format &&is_planar_yuv_format (format->format) && +if (format &&drm_format_info_is_yuv_semiplanar (format) && (src_h <SKL_MIN_YUV_420_SRC_H || src_w <SKL_MIN_YUV_420_SRC_W )) {DRM_DEBUG_KMS ("Planar YUV: src dimensions not met\n" );return -EINVAL ;
@@ -5534,7 +5534,7 @@ static int skl_update_scaler_plane(struct intel_crtc_state *crtc_state,/* Pre-gen11 and SDR planes always need a scaler for planar formats. */ if (!icl_is_hdr_plane (dev_priv, intel_plane->id) && - fb &&is_planar_yuv_format (fb->format->format)) + fb &&drm_format_info_is_yuv_semiplanar (fb->format)) need_scaler = true; ret = skl_update_scaler(crtc_state, force_detach,
@@ -14468,7 +14468,7 @@ intel_cleanup_plane_fb(struct drm_plane *plane,int skl_max_scale (const struct intel_crtc_state *crtc_state, -u32 pixel_format) +const struct drm_format_info *format) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);
@@ -14493,7 +14493,7 @@ skl_max_scale(const struct intel_crtc_state *crtc_state,* or * cdclk/crtc_clock */ - mult =is_planar_yuv_format (pixel_format) ?2 :3 ; + mult =drm_format_info_is_yuv_semiplanar (format) ?2 :3 ; tmpclk1 = (1 <<16 ) * mult -1 ; tmpclk2 = (1 <<8 ) * ((max_dotclk <<8 ) / crtc_clock); max_scale =min (tmpclk1, tmpclk2);
drivers/gpu/drm/i915/display/intel_sprite.c +4 -16
@@ -47,19 +47,6 @@#include "intel_psr.h" #include "intel_sprite.h" -bool is_planar_yuv_format (u32 pixelformat) -{ -switch (pixelformat) { -case DRM_FORMAT_NV12 : -case DRM_FORMAT_P010 : -case DRM_FORMAT_P012 : -case DRM_FORMAT_P016 : -return true; -default : -return false; - } -} -int intel_usecs_to_scanlines (const struct drm_display_mode *adjusted_mode,int usecs) {
@@ -354,6 +341,7 @@ skl_program_scaler(struct intel_plane *plane, const struct intel_plane_state *plane_state) {struct drm_i915_private *dev_priv =to_i915 (plane->base.dev); +const struct drm_framebuffer *fb = plane_state->base.fb;enum pipe pipe = plane->pipe;int scaler_id = plane_state->scaler_id; const struct intel_scaler *scaler =
@@ -374,7 +362,7 @@ skl_program_scaler(struct intel_plane *plane, 0, INT_MAX);/* TODO: handle sub-pixel coordinates */ -if (is_planar_yuv_format (plane_state->base.fb->format->format) && +if (drm_format_info_is_yuv_semiplanar (fb->format) && !icl_is_hdr_plane (dev_priv, plane->id)) { y_hphase =skl_scaler_calc_phase (1 , hscale, false); y_vphase =skl_scaler_calc_phase (1 , vscale, false);
@@ -1757,7 +1745,7 @@ static int skl_plane_check_nv12_rotation(const struct intel_plane_state *plane_sint src_w =drm_rect_width (&plane_state->base.src) >>16 ;/* Display WA #1106 */ -if (is_planar_yuv_format (fb->format->format) && src_w &3 && +if (drm_format_info_is_yuv_semiplanar (fb->format) && src_w &3 && (rotation ==DRM_MODE_ROTATE_270 || rotation == (DRM_MODE_REFLECT_X |DRM_MODE_ROTATE_90 ))) {DRM_DEBUG_KMS ("src width must be multiple of 4 for rotated planar YUV\n" );
@@ -1784,7 +1772,7 @@ static int skl_plane_check(struct intel_crtc_state *crtc_state,/* use scaler when colorkey is not required */ if (!plane_state->ckey.flags &&intel_fb_scalable (fb)) { min_scale =1 ; - max_scale =skl_max_scale (crtc_state, fb->format->format); + max_scale =skl_max_scale (crtc_state, fb->format); } ret = drm_atomic_helper_check_plane_state(&plane_state->base,
drivers/gpu/drm/i915/display/intel_sprite.h +0 -1
@@ -18,7 +18,6 @@ struct drm_i915_private;struct intel_crtc_state ;struct intel_plane_state ; -bool is_planar_yuv_format (u32 pixelformat);int intel_usecs_to_scanlines (const struct drm_display_mode *adjusted_mode,int usecs); struct intel_plane *intel_sprite_plane_create(struct drm_i915_private *dev_priv,
drivers/gpu/drm/i915/intel_drv.h +1 -1
@@ -1609,7 +1609,7 @@ void intel_crtc_arm_fifo_underrun(struct intel_crtc *crtc,u16 skl_scaler_calc_phase (int sub,int scale,bool chroma_center);int skl_update_scaler_crtc (struct intel_crtc_state *crtc_state);int skl_max_scale (const struct intel_crtc_state *crtc_state, -u32 pixel_format); +const struct drm_format_info *format);static inline u32 intel_plane_ggtt_offset (const struct intel_plane_state *state) {
drivers/gpu/drm/i915/intel_pm.c +13 -14
@@ -4004,7 +4004,8 @@ skl_ddb_get_hw_plane_state(struct drm_i915_private *dev_priv, val =I915_READ (PLANE_BUF_CFG (pipe, plane_id)); val2 =I915_READ (PLANE_NV12_BUF_CFG (pipe, plane_id)); -if (is_planar_yuv_format (fourcc)) +if (fourcc && +drm_format_info_is_yuv_semiplanar (drm_format_info (fourcc)))swap (val, val2);skl_ddb_entry_init_from_hw (dev_priv, ddb_y, val);
@@ -4192,25 +4193,23 @@ int skl_check_pipe_max_pixel_rate(struct intel_crtc *intel_crtc,static u64 skl_plane_relative_data_rate (const struct intel_crtc_state *crtc_state,const struct intel_plane_state *plane_state, -const int plane) +int color_plane) { -struct intel_plane *intel_plane =to_intel_plane (plane_state->base.plane); +struct intel_plane *plane =to_intel_plane (plane_state->base.plane); +const struct drm_framebuffer *fb = plane_state->base.fb;u32 data_rate;u32 width =0 , height =0 ; -struct drm_framebuffer *fb; -u32 format;uint_fixed_16_16_t down_scale_amount;u64 rate;if (!plane_state->base.visible)return 0 ; - fb = plane_state->base.fb; - format = fb->format->format; - -if (intel_plane->id ==PLANE_CURSOR ) +if (plane->id ==PLANE_CURSOR )return 0 ; -if (plane ==1 && !is_planar_yuv_format (format)) + +if (color_plane ==1 && + !drm_format_info_is_yuv_semiplanar (fb->format))return 0 ;/*
@@ -4222,7 +4221,7 @@ skl_plane_relative_data_rate(const struct intel_crtc_state *crtc_state, height =drm_rect_height (&plane_state->base.src) >>16 ;/* UV plane does 1/2 pixel sub-sampling */ -if (plane ==1 &&is_planar_yuv_format (format)) { +if (color_plane ==1 ) { width /=2 ; height /=2 ; }
@@ -4233,7 +4232,7 @@ skl_plane_relative_data_rate(const struct intel_crtc_state *crtc_state, rate =mul_round_up_u32_fixed16 (data_rate, down_scale_amount); - rate *= fb->format->cpp[plane]; + rate *= fb->format->cpp[color_plane];return rate; }
@@ -4638,7 +4637,7 @@ skl_compute_wm_params(const struct intel_crtc_state *crtc_state,u32 interm_pbpl;/* only planar format has two planes */ -if (color_plane ==1 && !is_planar_yuv_format (format->format)) { +if (color_plane ==1 && !drm_format_info_is_yuv_semiplanar (format)) {DRM_DEBUG_KMS ("Non planar format have single plane\n" );return -EINVAL ; }
@@ -4650,7 +4649,7 @@ skl_compute_wm_params(const struct intel_crtc_state *crtc_state, wp->x_tiled = modifier ==I915_FORMAT_MOD_X_TILED ; wp->rc_surface = modifier ==I915_FORMAT_MOD_Y_TILED_CCS || modifier == I915_FORMAT_MOD_Yf_TILED_CCS; - wp->is_planar =is_planar_yuv_format (format->format); + wp->is_planar =drm_format_info_is_yuv_semiplanar (format); wp->width = width;if (color_plane ==1 && wp->is_planar)
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 5/19 drm/i915: Allow downscale factor of <3.0 on glk+ for all formats
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Bspec says that glk+ max downscale factor is <3.0 for all pixel formats. Older platforms had a max of <2.0 for NV12. Update the code to deal with this.
--- drivers/gpu/drm/i915/display/intel_display.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +6 -3
@@ -14472,7 +14472,7 @@ skl_max_scale(const struct intel_crtc_state *crtc_state, {struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); -int max_scale, mult; +int max_scale;int crtc_clock, max_dotclk, tmpclk1, tmpclk2;if (!crtc_state->base.enable)
@@ -14493,8 +14493,11 @@ skl_max_scale(const struct intel_crtc_state *crtc_state,* or * cdclk/crtc_clock */ - mult =drm_format_info_is_yuv_semiplanar (format) ?2 :3 ; - tmpclk1 = (1 <<16 ) * mult -1 ; +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv) || + !drm_format_info_is_yuv_semiplanar (format)) + tmpclk1 =0x30000 -1 ; +else + tmpclk1 =0x20000 -1 ; tmpclk2 = (1 <<8 ) * ((max_dotclk <<8 ) / crtc_clock); max_scale =min (tmpclk1, tmpclk2);
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 05/19] drm/i915: Allow downscale factor of <3.0 on glk+ for all formats
Op 08-07-2019 om 14:53 schreef Ville Syrjala:
Quoted 28 lines
From: Ville Syrjälä <[email protected]>
Bspec says that glk+ max downscale factor is <3.0 for all pixel formats. Older platforms had a max of <2.0 for NV12. Update the code to deal with this.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +1
-1@@ -14472,7 +14472,7 @@ skl_max_scale(const struct intel_crtc_state *crtc_state, {struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); -int max_scale, mult; +int max_scale;int crtc_clock, max_dotclk, tmpclk1, tmpclk2;if (!crtc_state->base.enable)@@ -14493,8 +14493,11 @@ skl_max_scale(const struct intel_crtc_state *crtc_state,* or * cdclk/crtc_clock */
drivers/gpu/drm/i915/display/intel_display.c skl_max_scale(const struct intel_crtc_state *crtc_state, · line 14503
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +5
-2- mult =drm_format_info_is_yuv_semiplanar (format) ?2 :3 ; - tmpclk1 = (1 <<16 ) * mult -1 ; +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv) || + !drm_format_info_is_yuv_semiplanar (format)) + tmpclk1 =0x30000 -1 ; +else + tmpclk1 =0x20000 -1 ; tmpclk2 = (1 <<8 ) * ((max_dotclk <<8 ) / crtc_clock); max_scale =min (tmpclk1, tmpclk2);
For this patch and 4, 6, 7, 8:
Patch 4 seems to be exactly the same as the patch I wrote for it, so lets upstream this ASAP before someone else does as well. ;)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH 05/19] drm/i915: Allow downscale factor of <3.0 on glk+ for all formats
Quoted 42 lines · Maarten Lankhorst
Op 08-07-2019 om 14:53 schreef Ville Syrjala:
Quoted 28 lines
From: Ville Syrjälä <[email protected]>
Bspec says that glk+ max downscale factor is <3.0 for all pixel formats. Older platforms had a max of <2.0 for NV12. Update the code to deal with this.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +1
-1@@ -14472,7 +14472,7 @@ skl_max_scale(const struct intel_crtc_state *crtc_state, {struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); -int max_scale, mult; +int max_scale;int crtc_clock, max_dotclk, tmpclk1, tmpclk2;if (!crtc_state->base.enable)@@ -14493,8 +14493,11 @@ skl_max_scale(const struct intel_crtc_state *crtc_state,* or * cdclk/crtc_clock */ drivers/gpu/drm/i915/display/intel_display.c skl_max_scale(const struct intel_crtc_state *crtc_state, · line 14503
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +5
-2- mult =drm_format_info_is_yuv_semiplanar (format) ?2 :3 ; - tmpclk1 = (1 <<16 ) * mult -1 ; +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv) || + !drm_format_info_is_yuv_semiplanar (format)) + tmpclk1 =0x30000 -1 ; +else + tmpclk1 =0x20000 -1 ; tmpclk2 = (1 <<8 ) * ((max_dotclk <<8 ) / crtc_clock); max_scale =min (tmpclk1, tmpclk2);For this patch and 4, 6, 7, 8:
Quoted 3 lines
Reviewed-by Maarten Lankhorst <[email protected]>Patch 4 seems to be exactly the same as the patch I wrote for it, so lets upstream this ASAP before someone else does as well. ;)
Almost the same, except the 'if (fourcc && ...)' part in the readout. IIRC otherwise it would WARN when we try to look up the format info w/ fourcc==0.
Thanks for the review.
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 6/19 drm/i915: Extract intel_modeset_calc_cdclk()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Exfiltrate the cdclk code from intel_modeset_checks() into intel_modeset_calc_cdclk().
--- drivers/gpu/drm/i915/display/intel_cdclk.c | 135 ++++++++++++++++++- drivers/gpu/drm/i915/display/intel_cdclk.h | 6 +- drivers/gpu/drm/i915/display/intel_display.c | 119 +--------------- 3 files changed, 135 insertions(+), 125 deletions(-)
drivers/gpu/drm/i915/display/intel_cdclk.c +130 -5
@@ -21,6 +21,7 @@* DEALINGS IN THE SOFTWARE. */ +#include "intel_atomic.h" #include "intel_cdclk.h" #include "intel_drv.h" #include "intel_sideband.h"
@@ -2081,9 +2082,9 @@ bool intel_cdclk_needs_modeset(const struct intel_cdclk_state *a,* Returns: * True if the CDCLK states require just a cd2x divider update, false if not. */ -bool intel_cdclk_needs_cd2x_update (struct drm_i915_private *dev_priv, -const struct intel_cdclk_state *a, -const struct intel_cdclk_state *b) +static bool intel_cdclk_needs_cd2x_update (struct drm_i915_private *dev_priv, +const struct intel_cdclk_state *a, +const struct intel_cdclk_state *b) {/* Older hw doesn't have the capability */ if (INTEL_GEN (dev_priv) <10 && !IS_GEN9_LP (dev_priv))
@@ -2102,8 +2103,8 @@ bool intel_cdclk_needs_cd2x_update(struct drm_i915_private *dev_priv,* Returns: * True if the CDCLK states don't match, false if they do. */ -bool intel_cdclk_changed (const struct intel_cdclk_state *a, -const struct intel_cdclk_state *b) +static bool intel_cdclk_changed (const struct intel_cdclk_state *a, +const struct intel_cdclk_state *b) {return intel_cdclk_needs_modeset (a, b) || a->voltage_level != b->voltage_level;
@@ -2556,6 +2557,62 @@ static int cnl_modeset_calc_cdclk(struct intel_atomic_state *state)return 0 ; } +static int intel_lock_all_pipes (struct intel_atomic_state *state) +{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct intel_crtc *crtc; + +/* Add all pipes to the state */ +for_each_intel_crtc (&dev_priv->drm, crtc) { +struct intel_crtc_state *crtc_state; + + crtc_state =intel_atomic_get_crtc_state (&state->base, crtc); +if (IS_ERR (crtc_state)) +return PTR_ERR (crtc_state); + } + +return 0 ; +} + +static int intel_modeset_all_pipes (struct intel_atomic_state *state) +{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct intel_crtc *crtc; + +/* +* Add all pipes to the state, and force +* a modeset on all the active ones. +*/ +for_each_intel_crtc (&dev_priv->drm, crtc) { +struct intel_crtc_state *crtc_state; +int ret; + + crtc_state =intel_atomic_get_crtc_state (&state->base, crtc); +if (IS_ERR (crtc_state)) +return PTR_ERR (crtc_state); + +if (!crtc_state->base.active || +drm_atomic_crtc_needs_modeset (&crtc_state->base)) +continue ; + + crtc_state->base.mode_changed = true; + + ret =drm_atomic_add_affected_connectors (&state->base, + &crtc->base); +if (ret) +return ret; + + ret =drm_atomic_add_affected_planes (&state->base, + &crtc->base); +if (ret) +return ret; + + crtc_state->update_planes |= crtc_state->active_planes; + } + +return 0 ; +} +static int icl_modeset_calc_cdclk (struct intel_atomic_state *state) {struct drm_i915_private *dev_priv =to_i915 (state->base.dev);
@@ -2590,6 +2647,74 @@ static int icl_modeset_calc_cdclk(struct intel_atomic_state *state)return 0 ; } +int intel_modeset_calc_cdclk (struct intel_atomic_state *state) +{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +enum pipe pipe; +int ret; + +if (!dev_priv->display.modeset_calc_cdclk) +return 0 ; + + ret = dev_priv->display.modeset_calc_cdclk (state); +if (ret) +return ret; + +/* +* Writes to dev_priv->cdclk.logical must protected by +* holding all the crtc locks, even if we don't end up +* touching the hardware +*/ +if (intel_cdclk_changed (&dev_priv->cdclk.logical, + &state->cdclk.logical)) { + ret =intel_lock_all_pipes (state); +if (ret <0 ) +return ret; + } + +if (is_power_of_2 (state->active_crtcs)) { +struct intel_crtc *crtc; +struct intel_crtc_state *crtc_state; + + pipe =ilog2 (state->active_crtcs); + crtc =intel_get_crtc_for_pipe (dev_priv, pipe); + crtc_state =intel_atomic_get_new_crtc_state (state, crtc); +if (crtc_state && +drm_atomic_crtc_needs_modeset (&crtc_state->base)) + pipe =INVALID_PIPE ; + }else { + pipe =INVALID_PIPE ; + } + +/* All pipes must be switched off while we change the cdclk. */ +if (pipe !=INVALID_PIPE && +intel_cdclk_needs_cd2x_update (dev_priv, + &dev_priv->cdclk.actual, + &state->cdclk.actual)) { + ret =intel_lock_all_pipes (state); +if (ret) +return ret; + + state->cdclk.pipe = pipe; + }else if (intel_cdclk_needs_modeset (&dev_priv->cdclk.actual, + &state->cdclk.actual)) { + ret =intel_modeset_all_pipes (state); +if (ret) +return ret; + + state->cdclk.pipe =INVALID_PIPE ; + } + +DRM_DEBUG_KMS ("New cdclk calculated to be logical %u kHz, actual %u kHz\n" , + state->cdclk.logical.cdclk, + state->cdclk.actual.cdclk); +DRM_DEBUG_KMS ("New voltage level calculated to be logical %u, actual %u\n" , + state->cdclk.logical.voltage_level, + state->cdclk.actual.voltage_level); + +return 0 ; +} +static int intel_compute_max_dotclk (struct drm_i915_private *dev_priv) {int max_cdclk_freq = dev_priv->max_cdclk_freq;
drivers/gpu/drm/i915/display/intel_cdclk.h +1 -5
@@ -22,13 +22,8 @@ void intel_init_cdclk_hooks(struct drm_i915_private *dev_priv);void intel_update_max_cdclk (struct drm_i915_private *dev_priv);void intel_update_cdclk (struct drm_i915_private *dev_priv);void intel_update_rawclk (struct drm_i915_private *dev_priv); -bool intel_cdclk_needs_cd2x_update (struct drm_i915_private *dev_priv, -const struct intel_cdclk_state *a, -const struct intel_cdclk_state *b);bool intel_cdclk_needs_modeset (const struct intel_cdclk_state *a,const struct intel_cdclk_state *b); -bool intel_cdclk_changed (const struct intel_cdclk_state *a, -const struct intel_cdclk_state *b);void intel_cdclk_swap_state (struct intel_atomic_state *state); void intel_set_cdclk_pre_plane_update(struct drm_i915_private *dev_priv,
@@ -42,5 +37,6 @@ intel_set_cdclk_post_plane_update(struct drm_i915_private *dev_priv, enum pipe pipe);void intel_dump_cdclk_state (const struct intel_cdclk_state *cdclk_state,const char *context); +int intel_modeset_calc_cdclk (struct intel_atomic_state *state);#endif /* __INTEL_CDCLK_H__ */
drivers/gpu/drm/i915/display/intel_display.c +4 -115
136 lines not on this page · raw message
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 7/19 drm/i915: s/pipe_config/crtc_state/ in intel_crtc_atomic_check()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Clean up the mess with the drm vs. intel types in intel_crtc_atomic_check() and rename varibles accordingly.
--- drivers/gpu/drm/i915/display/intel_display.c | 54 ++++++++++---------- 1 file changed, 26 insertions(+), 28 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +26 -28
@@ -11733,25 +11733,24 @@ static bool c8_planes_changed(const struct intel_crtc_state *new_crtc_state)return !old_crtc_state->c8_planes != !new_crtc_state->c8_planes; } -static int intel_crtc_atomic_check (struct drm_crtc *crtc, -struct drm_crtc_state *crtc_state) +static int intel_crtc_atomic_check (struct drm_crtc *_crtc, +struct drm_crtc_state *_crtc_state) { -struct drm_i915_private *dev_priv =to_i915 (crtc->dev); -struct intel_crtc *intel_crtc =to_intel_crtc (crtc); -struct intel_crtc_state *pipe_config = -to_intel_crtc_state (crtc_state); +struct intel_crtc *crtc =to_intel_crtc (_crtc); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +struct intel_crtc_state *crtc_state = +to_intel_crtc_state (_crtc_state);int ret; -bool mode_changed =needs_modeset (pipe_config); +bool mode_changed =needs_modeset (crtc_state);if (INTEL_GEN (dev_priv) <5 && !IS_G4X (dev_priv) && - mode_changed && !crtc_state->active) - pipe_config->update_wm_post = true; + mode_changed && !crtc_state->base.active) + crtc_state->update_wm_post = true; -if (mode_changed && crtc_state->enable && +if (mode_changed && crtc_state->base.enable && dev_priv->display.crtc_compute_clock && - !WARN_ON (pipe_config->shared_dpll)) { - ret = dev_priv->display.crtc_compute_clock (intel_crtc, - pipe_config); + !WARN_ON (crtc_state->shared_dpll)) { + ret = dev_priv->display.crtc_compute_clock (crtc, crtc_state);if (ret)return ret; }
@@ -11760,19 +11759,19 @@ static int intel_crtc_atomic_check(struct drm_crtc *crtc,* May need to update pipe gamma enable bits * when C8 planes are getting enabled/disabled. */ -if (c8_planes_changed (pipe_config)) - crtc_state->color_mgmt_changed = true; +if (c8_planes_changed (crtc_state)) + crtc_state->base.color_mgmt_changed = true; -if (mode_changed || pipe_config->update_pipe || - crtc_state->color_mgmt_changed) { - ret =intel_color_check (pipe_config); +if (mode_changed || crtc_state->update_pipe || + crtc_state->base.color_mgmt_changed) { + ret =intel_color_check (crtc_state);if (ret)return ret; } ret =0 ;if (dev_priv->display.compute_pipe_wm) { - ret = dev_priv->display.compute_pipe_wm (pipe_config); + ret = dev_priv->display.compute_pipe_wm (crtc_state);if (ret) {DRM_DEBUG_KMS ("Target pipe watermarks are invalid\n" );return ret;
@@ -11788,7 +11787,7 @@ static int intel_crtc_atomic_check(struct drm_crtc *crtc,* old state and the new state. We can program these * immediately. */ - ret = dev_priv->display.compute_intermediate_wm (pipe_config); + ret = dev_priv->display.compute_intermediate_wm (crtc_state);if (ret) {DRM_DEBUG_KMS ("No valid intermediate pipe watermarks are possible\n" );return ret;
@@ -11796,21 +11795,20 @@ static int intel_crtc_atomic_check(struct drm_crtc *crtc, }if (INTEL_GEN (dev_priv) >=9 ) { -if (mode_changed || pipe_config->update_pipe) - ret =skl_update_scaler_crtc (pipe_config); +if (mode_changed || crtc_state->update_pipe) + ret =skl_update_scaler_crtc (crtc_state);if (!ret) - ret =icl_check_nv12_planes (pipe_config); + ret =icl_check_nv12_planes (crtc_state);if (!ret) - ret =skl_check_pipe_max_pixel_rate (intel_crtc, - pipe_config); + ret =skl_check_pipe_max_pixel_rate (crtc, crtc_state);if (!ret) - ret =intel_atomic_setup_scalers (dev_priv, intel_crtc, - pipe_config); + ret =intel_atomic_setup_scalers (dev_priv, crtc, + crtc_state); }if (HAS_IPS (dev_priv)) - pipe_config->ips_enabled =hsw_compute_ips_config (pipe_config); + crtc_state->ips_enabled =hsw_compute_ips_config (crtc_state);return ret; }
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 8/19 drm/i915: Stop using drm_atomic_helper_check_planes()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
We need to insert stuff between the plane and crtc .atomic_check() drm_atomic_helper_check_planes() doesn't allow us to do that so stop using it and hand roll the loops instead.
--- .../gpu/drm/i915/display/intel_atomic_plane.c | 10 +--- .../gpu/drm/i915/display/intel_atomic_plane.h | 2 + drivers/gpu/drm/i915/display/intel_display.c | 57 +++++++++++++++---- 3 files changed, 50 insertions(+), 19 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic_plane.c +3 -7
@@ -194,14 +194,11 @@ get_crtc_from_states(const struct intel_plane_state *old_plane_state,return NULL ; } -static int intel_plane_atomic_check (struct drm_plane *_plane, -struct drm_plane_state *_new_plane_state) +int intel_plane_atomic_check (struct intel_atomic_state *state, +struct intel_plane *plane) { -struct intel_plane *plane =to_intel_plane (_plane); -struct intel_atomic_state *state = -to_intel_atomic_state (_new_plane_state->state);struct intel_plane_state *new_plane_state = -to_intel_plane_state (_new_plane_state); +intel_atomic_get_new_plane_state (state, plane);const struct intel_plane_state *old_plane_state =intel_atomic_get_old_plane_state (state, plane); struct intel_crtc *crtc =
@@ -368,5 +365,4 @@ void i9xx_update_planes_on_crtc(struct intel_atomic_state *state,const struct drm_plane_helper_funcs intel_plane_helper_funcs = { .prepare_fb = intel_prepare_plane_fb, .cleanup_fb = intel_cleanup_plane_fb, - .atomic_check = intel_plane_atomic_check, };
drivers/gpu/drm/i915/display/intel_atomic_plane.h +2 -0
@@ -41,6 +41,8 @@ int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_struct intel_crtc_state *crtc_state, const struct intel_plane_state *old_plane_state, struct intel_plane_state *intel_state); +int intel_plane_atomic_check (struct intel_atomic_state *state, +struct intel_plane *plane); int intel_plane_atomic_calc_changes(const struct intel_crtc_state *old_crtc_state, struct intel_crtc_state *crtc_state, const struct intel_plane_state *old_plane_state,
drivers/gpu/drm/i915/display/intel_display.c +45 -12
91 lines not on this page · raw message
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 08/19] drm/i915: Stop using drm_atomic_helper_check_planes()
Quoted 7 lines · Ville Syrjala
From: Ville Syrjälä <[email protected]>
We need to insert stuff between the plane and crtc .atomic_check()
drm_atomic_helper_check_planes()doesn't allow us to do that so stop using it and hand roll the loops instead.Signed-off-by Ville Syrjälä <[email protected]>
Quoted 175 lines
--- .../gpu/drm/i915/display/intel_atomic_plane.c | 10 +--- .../gpu/drm/i915/display/intel_atomic_plane.h | 2 + drivers/gpu/drm/i915/display/intel_display.c | 57 +++++++++++++++ ---- 3 files changed, 50 insertions(+), 19 deletions(-)drivers/gpu/drm/i915/display/intel_atomic_plane.c +3
-6@@ -194,14 +194,11 @@ get_crtc_from_states(const structintel_plane_state *old_plane_state, return NULL; } -static int intel_plane_atomic_check (struct drm_plane *_plane, -struct drm_plane_state *_new_plane_state) +int intel_plane_atomic_check (struct intel_atomic_state *state, +struct intel_plane *plane) { -struct intel_plane *plane =to_intel_plane (_plane); -struct intel_atomic_state *state = -to_intel_atomic_state (_new_plane_state->state);struct intel_plane_state *new_plane_state = -to_intel_plane_state (_new_plane_state); +intel_atomic_get_new_plane_state (state, plane); const struct intel_plane_state *old_plane_state =drivers/gpu/drm/i915/display/intel_atomic_plane.c +0
-1intel_atomic_get_old_plane_state (state, plane); struct intel_crtc *crtc =@@ -368,5 +365,4 @@ void i9xx_update_planes_on_crtc(structintel_atomic_state *state, const struct drm_plane_helper_funcs intel_plane_helper_funcs = { .prepare_fb = intel_prepare_plane_fb, .cleanup_fb = intel_cleanup_plane_fb, - .atomic_check = intel_plane_atomic_check,};
drivers/gpu/drm/i915/display/intel_atomic_plane.h +0
-0@@ -41,6 +41,8 @@ int intel_plane_atomic_check_with_state(conststruct
intel_crtc_state*old_crtc_
structintel_crtc_state*crtc_state,
const structintel_plane_state*old_plane_state,
structintel_plane_state*intel_state);drivers/gpu/drm/i915/display/intel_atomic_plane.h +2
-0+int intel_plane_atomic_check (struct intel_atomic_state *state, +struct intel_plane *plane); int intel_plane_atomic_calc_changes(const struct intel_crtc_state
*old_crtc_state,
structintel_crtc_state*crtc_state,
const structintel_plane_state*old_plane_state,drivers/gpu/drm/i915/display/intel_display.c +4
-5@@ -11733,15 +11733,14 @@ static bool c8_planes_changed(const struct intel_crtc_state *new_crtc_state)return !old_crtc_state->c8_planes != !new_crtc_state- >c8_planes; } -static int intel_crtc_atomic_check (struct drm_crtc *_crtc, -struct drm_crtc_state *_crtc_state) +static int intel_crtc_atomic_check (struct intel_atomic_state *state, +struct intel_crtc *crtc) { -struct intel_crtc *crtc =to_intel_crtc (_crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);struct intel_crtc_state *crtc_state = -to_intel_crtc_state (_crtc_state); -int ret; +intel_atomic_get_new_crtc_state (state, crtc);bool mode_changed =needs_modeset (crtc_state); +int ret;drivers/gpu/drm/i915/display/intel_display.c +0
-4if (INTEL_GEN (dev_priv) <5 && !IS_G4X (dev_priv) && mode_changed && !crtc_state->base.active)@@ -11813,10 +11812,6 @@ static int intel_crtc_atomic_check(structdrm_crtc *_crtc, return ret; } -static const struct drm_crtc_helper_funcs intel_helper_funcs = { - .atomic_check = intel_crtc_atomic_check, -}; -static void intel_modeset_update_connector_atomic_state (struct drm_device *dev){
drivers/gpu/drm/i915/display/intel_display.c +0
-0struct intel_connector *connector;@@ -13457,6 +13452,42 @@ static void intel_crtc_check_fastset(conststruct
intel_crtc_state*old_crtc_stadrivers/gpu/drm/i915/display/intel_display.c +1
-0new_crtc_state->has_drrs = old_crtc_state->has_drrs; } +static int intel_atomic_check_planes(struct intel_atomic_state*state)
drivers/gpu/drm/i915/display/intel_display.c +6
-0+{ +struct intel_plane_state *plane_state; +struct intel_plane *plane; +int i, ret; + +for_each_new_intel_plane_in_state (state, plane, plane_state, i){
drivers/gpu/drm/i915/display/intel_display.c +3
-0+ ret =intel_plane_atomic_check (state, plane); +if (ret) { + DRM_DEBUG_ATOMIC("[PLANE:%d:%s] atomic drivercheck failed\n",
drivers/gpu/drm/i915/display/intel_display.c +1
-0+ plane->base.base.id, plane-Quoted 1 line
base.name);
drivers/gpu/drm/i915/display/intel_display.c +8
-0+return ret; + } + } + +return 0 ; +} + +static int intel_atomic_check_crtcs(struct intel_atomic_state*state)
drivers/gpu/drm/i915/display/intel_display.c +9
-0+{ +struct intel_crtc_state *crtc_state; +struct intel_crtc *crtc; +int i; + +for_each_new_intel_crtc_in_state (state, crtc, crtc_state, i) { +int ret =intel_crtc_atomic_check (state, crtc); +if (ret) { + DRM_DEBUG_ATOMIC("[CRTC:%d:%s] atomic drivercheck failed\n",
drivers/gpu/drm/i915/display/intel_display.c +1
-0+ crtc->base.base.id, crtc-Quoted 1 line
base.name);
drivers/gpu/drm/i915/display/intel_display.c +12
-3+return ret; + } + } + +return 0 ; +} +/** * intel_atomic_check - validate state object * @dev: drm device @@ -13520,7 +13551,11 @@ static int intel_atomic_check(structdrm_device *dev, if (ret) goto fail; - ret =drm_atomic_helper_check_planes (dev, &state->base); + ret =intel_atomic_check_planes (state); +if (ret) + goto fail; + + ret =intel_atomic_check_crtcs (state);if (ret) goto fail;@@ -15051,8 +15086,6 @@ static int intel_crtc_init(struct drm_i915_private *dev_priv, enum pipe pipe) dev_priv->plane_to_crtc_mapping[i9xx_plane] = intel_crtc; } -drm_crtc_helper_add (&intel_crtc->base, &intel_helper_funcs); -intel_color_init (intel_crtc);
Quoted 1 line
WARN_ON(drm_crtc_index(&intel_crtc->base) != intel_crtc->pipe);
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Maarten Lankhorst
maintainerRe: [PATCH 08/19] drm/i915: Stop using drm_atomic_helper_check_planes()
In reply to Ville SyrjalaOp 08-07-2019 om 14:53 schreef Ville Syrjala:
Quoted 146 lines
From: Ville Syrjälä <[email protected]>
We need to insert stuff between the plane and crtc .atomic_check()
drm_atomic_helper_check_planes()doesn't allow us to do that so stop using it and hand roll the loops instead.Signed-off-by Ville Syrjälä <[email protected]>--- .../gpu/drm/i915/display/intel_atomic_plane.c | 10 +--- .../gpu/drm/i915/display/intel_atomic_plane.h | 2 + drivers/gpu/drm/i915/display/intel_display.c | 57 +++++++++++++++---- 3 files changed, 50 insertions(+), 19 deletions(-)drivers/gpu/drm/i915/display/intel_atomic_plane.c +3
-7@@ -194,14 +194,11 @@ get_crtc_from_states(const struct intel_plane_state *old_plane_state,return NULL ; } -static int intel_plane_atomic_check (struct drm_plane *_plane, -struct drm_plane_state *_new_plane_state) +int intel_plane_atomic_check (struct intel_atomic_state *state, +struct intel_plane *plane) { -struct intel_plane *plane =to_intel_plane (_plane); -struct intel_atomic_state *state = -to_intel_atomic_state (_new_plane_state->state);struct intel_plane_state *new_plane_state = -to_intel_plane_state (_new_plane_state); +intel_atomic_get_new_plane_state (state, plane);const struct intel_plane_state *old_plane_state =intel_atomic_get_old_plane_state (state, plane); struct intel_crtc *crtc =@@ -368,5 +365,4 @@ void i9xx_update_planes_on_crtc(struct intel_atomic_state *state,const struct drm_plane_helper_funcs intel_plane_helper_funcs = { .prepare_fb = intel_prepare_plane_fb, .cleanup_fb = intel_cleanup_plane_fb, - .atomic_check = intel_plane_atomic_check, };drivers/gpu/drm/i915/display/intel_atomic_plane.h +2
-0@@ -41,6 +41,8 @@ int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_struct intel_crtc_state *crtc_state, const struct intel_plane_state *old_plane_state, struct intel_plane_state *intel_state); +int intel_plane_atomic_check (struct intel_atomic_state *state, +struct intel_plane *plane); int intel_plane_atomic_calc_changes(const struct intel_crtc_state *old_crtc_state, struct intel_crtc_state *crtc_state, const struct intel_plane_state *old_plane_state,drivers/gpu/drm/i915/display/intel_display.c +45
-10@@ -11733,15 +11733,14 @@ static bool c8_planes_changed(const struct intel_crtc_state *new_crtc_state)return !old_crtc_state->c8_planes != !new_crtc_state->c8_planes; } -static int intel_crtc_atomic_check (struct drm_crtc *_crtc, -struct drm_crtc_state *_crtc_state) +static int intel_crtc_atomic_check (struct intel_atomic_state *state, +struct intel_crtc *crtc) { -struct intel_crtc *crtc =to_intel_crtc (_crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);struct intel_crtc_state *crtc_state = -to_intel_crtc_state (_crtc_state); -int ret; +intel_atomic_get_new_crtc_state (state, crtc);bool mode_changed =needs_modeset (crtc_state); +int ret;if (INTEL_GEN (dev_priv) <5 && !IS_G4X (dev_priv) && mode_changed && !crtc_state->base.active)@@ -11813,10 +11812,6 @@ static int intel_crtc_atomic_check(struct drm_crtc *_crtc,return ret; } -static const struct drm_crtc_helper_funcs intel_helper_funcs = { - .atomic_check = intel_crtc_atomic_check, -}; -static void intel_modeset_update_connector_atomic_state (struct drm_device *dev) {struct intel_connector *connector;@@ -13457,6 +13452,42 @@ static void intel_crtc_check_fastset(const struct intel_crtc_state *old_crtc_sta new_crtc_state->has_drrs = old_crtc_state->has_drrs; } +static int intel_atomic_check_planes (struct intel_atomic_state *state) +{ +struct intel_plane_state *plane_state; +struct intel_plane *plane; +int i, ret; + +for_each_new_intel_plane_in_state (state, plane, plane_state, i) { + ret =intel_plane_atomic_check (state, plane); +if (ret) { +DRM_DEBUG_ATOMIC ("[PLANE:%d:%s] atomic driver check failed\n" , + plane->base.base.id, plane->base.name); +return ret; + } + } + +return 0 ; +} + +static int intel_atomic_check_crtcs (struct intel_atomic_state *state) +{ +struct intel_crtc_state *crtc_state; +struct intel_crtc *crtc; +int i; + +for_each_new_intel_crtc_in_state (state, crtc, crtc_state, i) { +int ret =intel_crtc_atomic_check (state, crtc); +if (ret) { +DRM_DEBUG_ATOMIC ("[CRTC:%d:%s] atomic driver check failed\n" , + crtc->base.base.id, crtc->base.name); +return ret; + } + } + +return 0 ; +} +/** * intel_atomic_check - validate state object * @dev: drm device @@ -13520,7 +13551,11 @@ static int intel_atomic_check(struct drm_device *dev,if (ret) goto fail; - ret =drm_atomic_helper_check_planes (dev, &state->base); + ret =intel_atomic_check_planes (state); +if (ret) + goto fail; + + ret =intel_atomic_check_crtcs (state);if (ret) goto fail;
drivers/gpu/drm/i915/display/intel_display.c static int intel_crtc_init(struct drm_i915_private *dev_priv, enum pipe pipe) · line 15091
Quoted 8 lines
drivers/gpu/drm/i915/display/intel_display.c +0
-2@@ -15051,8 +15086,6 @@ static int intel_crtc_init(struct drm_i915_private *dev_priv, enum pipe pipe) dev_priv->plane_to_crtc_mapping[i9xx_plane] = intel_crtc; } -drm_crtc_helper_add (&intel_crtc->base, &intel_helper_funcs); -intel_color_init (intel_crtc);WARN_ON (drm_crtc_index (&intel_crtc->base) != intel_crtc->pipe);
Literally what helper_check_planes does anyway, so r-b if not yet pushed. :)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 9/19 drm/i915: Add debugs to distingiush a cd2x update from a full cdclk pll update
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
To make the logs a bit less confusing let's toss in some debug prints to indicate whether the cdclk reprogramming is going to happen with a single pipe active or whether we need to turn all pipes off for the duration.
--- drivers/gpu/drm/i915/display/intel_cdclk.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/i915/display/intel_cdclk.c +5 -0
@@ -2696,6 +2696,9 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state)return ret; state->cdclk.pipe = pipe; + +DRM_DEBUG_KMS ("Can change cdclk with pipe %c active\n" , +pipe_name (pipe)); }else if (intel_cdclk_needs_modeset (&dev_priv->cdclk.actual, &state->cdclk.actual)) { ret =intel_modeset_all_pipes (state);
@@ -2703,6 +2706,8 @@ int intel_modeset_calc_cdclk(struct intel_atomic_state *state)return ret; state->cdclk.pipe =INVALID_PIPE ; + +DRM_DEBUG_KMS ("Modeset required for cdclk change\n" ); } DRM_DEBUG_KMS("New cdclk calculated to be logical %u kHz, actual %u kHz\n",
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 10/19 drm/i915: Make .modeset_calc_cdclk() mandatory
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
While not all platforms allow us to change the cdclk frequency we should still verify that the fixed cdclk frequency isn't too low. To that end let's cook up a .modeset_calc_cdclk() implementation that only does the min_cdclk vs. actual cdclk frequency check for such platforms.
Also we mustn't forget about double wide pipe on gen2/3 when doing this.
--- drivers/gpu/drm/i915/display/intel_cdclk.c | 31 ++++++++++++++++---- drivers/gpu/drm/i915/display/intel_display.c | 8 ++--- 2 files changed, 28 insertions(+), 11 deletions(-)
drivers/gpu/drm/i915/display/intel_cdclk.c +25 -6
@@ -2209,9 +2209,11 @@ intel_set_cdclk_post_plane_update(struct drm_i915_private *dev_priv,intel_set_cdclk (dev_priv, new_state, pipe); } -static int intel_pixel_rate_to_cdclk (struct drm_i915_private *dev_priv, -int pixel_rate) +static int intel_pixel_rate_to_cdclk (const struct intel_crtc_state *crtc_state) { +struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); +int pixel_rate = crtc_state->pixel_rate; +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv))return DIV_ROUND_UP (pixel_rate,2 ); else if (IS_GEN(dev_priv, 9) ||
@@ -2219,6 +2221,8 @@ static int intel_pixel_rate_to_cdclk(struct drm_i915_private *dev_priv,return pixel_rate; else if (IS_CHERRYVIEW(dev_priv)) return DIV_ROUND_UP(pixel_rate * 100, 95); + else if (crtc_state->double_wide) + return DIV_ROUND_UP(pixel_rate * 100, 90 * 2); else return DIV_ROUND_UP(pixel_rate * 100, 90); }
@@ -2232,7 +2236,7 @@ int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state)if (!crtc_state->base.enable)return 0 ; - min_cdclk =intel_pixel_rate_to_cdclk (dev_priv, crtc_state->pixel_rate); + min_cdclk =intel_pixel_rate_to_cdclk (crtc_state);/* pixel rate mustn't exceed 95% of cdclk with IPS on BDW */ if (IS_BROADWELL (dev_priv) &&hsw_crtc_state_ips_capable (crtc_state))
@@ -2647,15 +2651,28 @@ static int icl_modeset_calc_cdclk(struct intel_atomic_state *state)return 0 ; } +static int fixed_modeset_calc_cdclk (struct intel_atomic_state *state) +{ +int min_cdclk; + +/* +* We can't change the cdclk frequency, but we still want to +* check that the required minimum frequency doesn't exceed +* the actual cdclk frequency. +*/ + min_cdclk =intel_compute_min_cdclk (state); +if (min_cdclk <0 ) +return min_cdclk; + +return 0 ; +} +int intel_modeset_calc_cdclk (struct intel_atomic_state *state) {struct drm_i915_private *dev_priv =to_i915 (state->base.dev);enum pipe pipe;int ret; -if (!dev_priv->display.modeset_calc_cdclk) -return 0 ; - ret = dev_priv->display.modeset_calc_cdclk (state);if (ret)return ret;
@@ -2957,6 +2974,8 @@ void intel_init_cdclk_hooks(struct drm_i915_private *dev_priv) }else if (IS_VALLEYVIEW (dev_priv)) { dev_priv->display.set_cdclk = vlv_set_cdclk; dev_priv->display.modeset_calc_cdclk = vlv_modeset_calc_cdclk; + }else { + dev_priv->display.modeset_calc_cdclk = fixed_modeset_calc_cdclk; }if (INTEL_GEN (dev_priv) >=11 )
drivers/gpu/drm/i915/display/intel_display.c +3 -5
@@ -16701,11 +16701,9 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev)intel_crtc_compute_pixel_rate (crtc_state); -if (dev_priv->display.modeset_calc_cdclk) { - min_cdclk =intel_crtc_compute_min_cdclk (crtc_state); -if (WARN_ON (min_cdclk <0 )) - min_cdclk =0 ; - } + min_cdclk =intel_crtc_compute_min_cdclk (crtc_state); +if (WARN_ON (min_cdclk <0 )) + min_cdclk =0 ;drm_calc_timestamping_constants (&crtc->base, &crtc_state->base.adjusted_mode);
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [Intel-gfx] [PATCH 10/19] drm/i915: Make .modeset_calc_cdclk() mandatory
Op 08-07-2019 om 14:53 schreef Ville Syrjala:
Quoted 62 lines
From: Ville Syrjälä <[email protected]>
While not all platforms allow us to change the cdclk frequency we should still verify that the fixed cdclk frequency isn't too low. To that end let's cook up a .modeset_calc_cdclk() implementation that only does the
min_cdclkvs. actual cdclk frequency check for such platforms.Also we mustn't forget about double wide pipe on gen2/3 when doing this.
Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_cdclk.c | 31 ++++++++++++++++---- drivers/gpu/drm/i915/display/intel_display.c | 8 ++--- 2 files changed, 28 insertions(+), 11 deletions(-)drivers/gpu/drm/i915/display/intel_cdclk.c +12
-3@@ -2209,9 +2209,11 @@ intel_set_cdclk_post_plane_update(struct drm_i915_private *dev_priv,intel_set_cdclk (dev_priv, new_state, pipe); } -static int intel_pixel_rate_to_cdclk (struct drm_i915_private *dev_priv, -int pixel_rate) +static int intel_pixel_rate_to_cdclk (const struct intel_crtc_state *crtc_state) { +struct drm_i915_private *dev_priv =to_i915 (crtc_state->base.crtc->dev); +int pixel_rate = crtc_state->pixel_rate; +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv))return DIV_ROUND_UP (pixel_rate,2 ); else if (IS_GEN(dev_priv, 9) ||@@ -2219,6 +2221,8 @@ static int intel_pixel_rate_to_cdclk(struct drm_i915_private *dev_priv,return pixel_rate; else if (IS_CHERRYVIEW(dev_priv)) return DIV_ROUND_UP(pixel_rate * 100, 95); + else if (crtc_state->double_wide) + return DIV_ROUND_UP(pixel_rate * 100, 90 * 2); else return DIV_ROUND_UP(pixel_rate * 100, 90); }@@ -2232,7 +2236,7 @@ int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state)if (!crtc_state->base.enable)return 0 ; - min_cdclk =intel_pixel_rate_to_cdclk (dev_priv, crtc_state->pixel_rate); + min_cdclk =intel_pixel_rate_to_cdclk (crtc_state);/* pixel rate mustn't exceed 95% of cdclk with IPS on BDW */ if (IS_BROADWELL (dev_priv) &&hsw_crtc_state_ips_capable (crtc_state))@@ -2647,15 +2651,28 @@ static int icl_modeset_calc_cdclk(struct intel_atomic_state *state)return 0 ; } +static int fixed_modeset_calc_cdclk (struct intel_atomic_state *state) +{ +int min_cdclk; + +/*
drivers/gpu/drm/i915/display/intel_cdclk.c static int icl_modeset_calc_cdclk(struct intel_atomic_state *state) · line 2668
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +10
-0+* We can't change the cdclk frequency, but we still want to +* check that the required minimum frequency doesn't exceed +* the actual cdclk frequency. +*/ + min_cdclk =intel_compute_min_cdclk (state); +if (min_cdclk <0 ) +return min_cdclk; + +return 0 ; +}
Quoted 31 lines
drivers/gpu/drm/i915/display/intel_cdclk.c +3
-3+int intel_modeset_calc_cdclk (struct intel_atomic_state *state) {struct drm_i915_private *dev_priv =to_i915 (state->base.dev);enum pipe pipe;int ret; -if (!dev_priv->display.modeset_calc_cdclk) -return 0 ; - ret = dev_priv->display.modeset_calc_cdclk (state);if (ret)return ret;@@ -2957,6 +2974,8 @@ void intel_init_cdclk_hooks(struct drm_i915_private *dev_priv) }else if (IS_VALLEYVIEW (dev_priv)) { dev_priv->display.set_cdclk = vlv_set_cdclk; dev_priv->display.modeset_calc_cdclk = vlv_modeset_calc_cdclk; + }else { + dev_priv->display.modeset_calc_cdclk = fixed_modeset_calc_cdclk; }if (INTEL_GEN (dev_priv) >=11 )drivers/gpu/drm/i915/display/intel_display.c +0
-1@@ -16701,11 +16701,9 @@ static void intel_modeset_readout_hw_state(struct drm_device *dev)intel_crtc_compute_pixel_rate (crtc_state); -if (dev_priv->display.modeset_calc_cdclk) {
drivers/gpu/drm/i915/display/intel_display.c static void intel_modeset_readout_hw_state(struct drm_device *dev) · line 16709
Quoted 10 lines
drivers/gpu/drm/i915/display/intel_display.c +3
-4- min_cdclk =intel_crtc_compute_min_cdclk (crtc_state); -if (WARN_ON (min_cdclk <0 )) - min_cdclk =0 ; - } + min_cdclk =intel_crtc_compute_min_cdclk (crtc_state); +if (WARN_ON (min_cdclk <0 )) + min_cdclk =0 ;drm_calc_timestamping_constants (&crtc->base, &crtc_state->base.adjusted_mode);
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 11/19 drm/i915: Rework global state locking
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
So far we've sort of protected the global state under dev_priv with the connection_mutex. I wan to change that so that we can change the cdclk even for pure plane updates. To that end let's formalize the protection of the global state to follow what I started with the cdclk code already (though not entirely properly) such that any crtc mutex will suffice as a read lock, and all crtcs mutexes act as the write lock.
We'll also pimp intel_atomic_state_clear() to clear the entire global state, so that we don't accidentally leak stale information between the locking retries.
--- drivers/gpu/drm/i915/display/intel_atomic.c | 27 +++++ drivers/gpu/drm/i915/display/intel_atomic.h | 3 + drivers/gpu/drm/i915/display/intel_audio.c | 10 +- drivers/gpu/drm/i915/display/intel_cdclk.c | 116 ++++++++++--------- drivers/gpu/drm/i915/display/intel_display.c | 29 ++++- drivers/gpu/drm/i915/i915_drv.h | 11 +- drivers/gpu/drm/i915/intel_drv.h | 8 ++ 7 files changed, 139 insertions(+), 65 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic.c +27 -0
@@ -418,6 +418,13 @@ void intel_atomic_state_clear(struct drm_atomic_state *s)struct intel_atomic_state *state =to_intel_atomic_state (s);drm_atomic_state_default_clear (&state->base); state->dpll_set = state->modeset = false; + state->global_state_changed = false; + state->active_crtcs =0 ; +memset (&state->min_cdclk,0 ,sizeof (state->min_cdclk)); +memset (&state->min_voltage_level,0 ,sizeof (state->min_voltage_level)); +memset (&state->cdclk.logical,0 ,sizeof (state->cdclk.logical)); +memset (&state->cdclk.actual,0 ,sizeof (state->cdclk.actual)); + state->cdclk.pipe =INVALID_PIPE ; } struct intel_crtc_state *
@@ -431,3 +438,23 @@ intel_atomic_get_crtc_state(struct drm_atomic_state *state,return to_intel_crtc_state (crtc_state); } + +int intel_atomic_lock_global_state (struct intel_atomic_state *state) +{ +struct drm_i915_private *dev_priv =to_i915 (state->base.dev); +struct intel_crtc *crtc; + + state->global_state_changed = true; + +/* Lock all crtc mutexes */ +for_each_intel_crtc (&dev_priv->drm, crtc) { +int ret; + + ret =drm_modeset_lock (&crtc->base.mutex, + state->base.acquire_ctx); +if (ret) +return ret; + } + +return 0 ; +}
drivers/gpu/drm/i915/display/intel_atomic.h +3 -0
@@ -16,6 +16,7 @@ struct drm_crtc_state;struct drm_device ;struct drm_i915_private ;struct drm_property ; +struct intel_atomic_state ;struct intel_crtc ;struct intel_crtc_state ;
@@ -46,4 +47,6 @@ int intel_atomic_setup_scalers(struct drm_i915_private *dev_priv,struct intel_crtc *intel_crtc, struct intel_crtc_state *crtc_state); +int intel_atomic_lock_global_state (struct intel_atomic_state *state); +#endif /* __INTEL_ATOMIC_H__ */
drivers/gpu/drm/i915/display/intel_audio.c +3 -7
@@ -28,6 +28,7 @@#include <drm/i915_component.h> #include "i915_drv.h" +#include "intel_atomic.h" #include "intel_audio.h" #include "intel_drv.h" #include "intel_lpe_audio.h"
@@ -816,13 +817,8 @@ static void glk_force_audio_cdclk(struct drm_i915_private *dev_priv,to_intel_atomic_state (state)->cdclk.force_min_cdclk = enable ?2 *96000 :0 ; -/* -* Protects dev_priv->cdclk.force_min_cdclk -* Need to lock this here in case we have no active pipes -* and thus wouldn't lock it during the commit otherwise. -*/ - ret =drm_modeset_lock (&dev_priv->drm.mode_config.connection_mutex, - &ctx); +/* Protects dev_priv->cdclk.force_min_cdclk */ + ret =intel_atomic_lock_global_state (to_intel_atomic_state (state));if (!ret) ret =drm_atomic_commit (state);
drivers/gpu/drm/i915/display/intel_cdclk.c +64 -52
243 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_display.c +26 -3
@@ -12140,6 +12140,12 @@ static bool check_digital_port_conflicts(struct intel_atomic_state *state)unsigned int used_mst_ports =0 ;bool ret = true; +/* +* We're going to peek into connector->state, +* hence connection_mutex must be held. +*/ +drm_modeset_lock_assert_held (&dev->mode_config.connection_mutex); +/* * Walk the connector list instead of the encoder * list to detect the problem on ddi platforms
@@ -13387,7 +13393,6 @@ static int intel_modeset_checks(struct intel_atomic_state *state) state->active_crtcs = dev_priv->active_crtcs; state->cdclk.logical = dev_priv->cdclk.logical; state->cdclk.actual = dev_priv->cdclk.actual; - state->cdclk.pipe =INVALID_PIPE ;for_each_oldnew_intel_crtc_in_state (state, crtc, old_crtc_state, new_crtc_state, i) {
@@ -13400,6 +13405,12 @@ static int intel_modeset_checks(struct intel_atomic_state *state) state->active_pipe_changes |=drm_crtc_mask (&crtc->base); } +if (state->active_pipe_changes) { + ret =intel_atomic_lock_global_state (state); +if (ret) +return ret; + } + ret =intel_modeset_calc_cdclk (state);if (ret)return ret;
@@ -13501,7 +13512,7 @@ static int intel_atomic_check(struct drm_device *dev,struct intel_crtc_state *old_crtc_state, *new_crtc_state;struct intel_crtc *crtc;int ret, i; -bool any_ms = state->cdclk.force_min_cdclk_changed; +bool any_ms = false;/* Catch I915_MODE_FLAG_INHERITED */ for_each_oldnew_intel_crtc_in_state(state, crtc, old_crtc_state,
@@ -13539,6 +13550,8 @@ static int intel_atomic_check(struct drm_device *dev,if (ret) goto fail; + any_ms |= state->cdclk.force_min_cdclk_changed; +if (any_ms) { ret =intel_modeset_checks (state);if (ret)
@@ -14028,6 +14041,14 @@ static void intel_atomic_track_fbs(struct drm_atomic_state *state) to_intel_plane(plane)->frontbuffer_bit); } +static void assert_global_state_locked (struct drm_i915_private *dev_priv) +{ +struct intel_crtc *crtc; + +for_each_intel_crtc (&dev_priv->drm, crtc) +drm_modeset_lock_assert_held (&crtc->base.mutex); +} +/** * intel_atomic_commit - commit validated state object * @dev: DRM device
@@ -14105,7 +14126,9 @@ static int intel_atomic_commit(struct drm_device *dev,intel_shared_dpll_swap_state (state);intel_atomic_track_fbs (state); -if (intel_state->modeset) { +if (intel_state->global_state_changed) { +assert_global_state_locked (dev_priv); +memcpy (dev_priv->min_cdclk, intel_state->min_cdclk,sizeof (intel_state->min_cdclk)); memcpy(dev_priv->min_voltage_level,
drivers/gpu/drm/i915/i915_drv.h +8 -3
@@ -1437,13 +1437,14 @@ struct drm_i915_private {unsigned int fdi_pll_freq;unsigned int czclk_freq; +/* +* For reading holding any crtc lock is sufficient, +* for writing must hold all of them. +*/ struct {/* * The current logical cdclk state. * See intel_atomic_state.cdclk.logical -* -* For reading holding any crtc lock is sufficient, -* for writing must hold all of them. */ struct intel_cdclk_state logical;/*
@@ -1508,6 +1509,10 @@ struct drm_i915_private {*/ struct mutex dpll_lock; +/* +* For reading active_crtcs,min_cdclk,min_voltage_level holding +* any crtc lock is sufficient, for writing must hold all of them. +*/ unsigned int active_crtcs;/* minimum acceptable cdclk for each pipe */ int min_cdclk[I915_MAX_PIPES ];
drivers/gpu/drm/i915/intel_drv.h +8 -0
@@ -476,6 +476,14 @@ struct intel_atomic_state {bool rps_interactive; +/* +* active_crtcs +* min_cdclk[] +* min_voltage_level[] +* cdclk.* +*/ +bool global_state_changed; +/* Gen9+ only */ struct skl_ddb_values wm_results;
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 12/19 drm/i915: Move check_digital_port_conflicts() earier
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
check_digital_port_conflicts() is done needlessly late. Move it earlier. This will be needed as later on we want to set any_ms=true a bit later for non-modesets too and we can't call this guy without the connection_mutex held.
--- drivers/gpu/drm/i915/display/intel_display.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +6 -5
@@ -13380,11 +13380,6 @@ static int intel_modeset_checks(struct intel_atomic_state *state)struct intel_crtc *crtc;int ret, i; -if (!check_digital_port_conflicts (state)) { -DRM_DEBUG_KMS ("rejecting conflicting digital port configuration\n" ); -return -EINVAL ; - } -/* keep the current setting */ if (!state->cdclk.force_min_cdclk_changed) state->cdclk.force_min_cdclk = dev_priv->cdclk.force_min_cdclk;
@@ -13546,6 +13541,12 @@ static int intel_atomic_check(struct drm_device *dev, any_ms = true; } +if (any_ms && !check_digital_port_conflicts (state)) { +DRM_DEBUG_KMS ("rejecting conflicting digital port configuration\n" ); + ret =EINVAL ; + goto fail; + } + ret =drm_dp_mst_atomic_check (&state->base);if (ret) goto fail;
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 13/19 drm/i915: Allow planes to declare their minimum acceptable cdclk
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Various pixel formats and plane scaling impose additional constraints on the cdclk frequency. Provide a new plane->min_cdclk() hook that will be used to compute the minimum acceptable cdclk frequency for each plane.
Annoyingly on some platforms the numer of active planes affects this calculation so we must also toss in more planes into the state when the number of active planes changes.
The sequence of state computation must also be changed:
1. check_plane() (updates plane's visibility etc.)
2. figure out if more planes now require update min_cdclk computaion
3. calculate the new min cdclk for each plane in the state
4. if the minimum of any plane now exceeds the current logical cdclk we recompute the cdclk
4. during cdclk computation take the planes' min_cdclk into accoutn
5. follow the normal cdclk programming to change the cdclk frequency. This may now require a modeset (except on bxt/glk in some cases), which either succeeds or fails depending on whether userspace has given us permission to perform a modeset or not.
--- .../gpu/drm/i915/display/intel_atomic_plane.c | 30 ++ .../gpu/drm/i915/display/intel_atomic_plane.h | 2 + drivers/gpu/drm/i915/display/intel_cdclk.c | 16 + drivers/gpu/drm/i915/display/intel_display.c | 187 ++++++++-- drivers/gpu/drm/i915/display/intel_sprite.c | 342 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_sprite.h | 7 + drivers/gpu/drm/i915/intel_drv.h | 4 + 7 files changed, 566 insertions(+), 22 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic_plane.c +30 -0
@@ -137,6 +137,35 @@ unsigned int intel_plane_data_rate(const struct intel_crtc_state *crtc_state,return cpp * crtc_state->pixel_rate; } +bool intel_plane_calc_min_cdclk (struct intel_atomic_state *state, +struct intel_plane *plane) +{ +const struct intel_plane_state *plane_state = +intel_atomic_get_new_plane_state (state, plane); +struct intel_crtc *crtc =to_intel_crtc (plane_state->base.crtc); +struct intel_crtc_state *crtc_state; + +if (!plane_state->base.visible || !plane->min_cdclk) +return false; + + crtc_state =intel_atomic_get_new_crtc_state (state, crtc); + + crtc_state->min_cdclk[plane->id] = + plane->min_cdclk (crtc_state, plane_state); + +DRM_DEBUG_KMS ("[PLANE:%d:%s] min_cdclk %d kHz (logical cdclk %d kHz)\n" , + plane->base.base.id, plane->base.name, + crtc_state->min_cdclk[plane->id], + state->cdclk.logical.cdclk); + +/* should have been populated in intel_atomic_check_planes() */ +WARN_ON (state->cdclk.logical.cdclk ==0 ); + +/* Does the cdclk need to be bumbed up? */ +return crtc_state->min_cdclk[plane->id] > + state->cdclk.logical.cdclk; +} + int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_state, struct intel_crtc_state *new_crtc_state, const struct intel_plane_state *old_plane_state,
@@ -150,6 +179,7 @@ int intel_plane_atomic_check_with_state(const struct intel_crtc_state *old_crtc_ new_crtc_state->nv12_planes &= ~BIT (plane->id); new_crtc_state->c8_planes &= ~BIT (plane->id); new_crtc_state->data_rate[plane->id] =0 ; + new_crtc_state->min_cdclk[plane->id] =0 ; new_plane_state->base.visible = false;if (!new_plane_state->base.crtc && !old_plane_state->base.crtc)
drivers/gpu/drm/i915/display/intel_atomic_plane.h +2 -0
@@ -47,5 +47,7 @@ int intel_plane_atomic_calc_changes(const struct intel_crtc_state *old_crtc_statstruct intel_crtc_state *crtc_state, const struct intel_plane_state *old_plane_state, struct intel_plane_state *plane_state); +bool intel_plane_calc_min_cdclk (struct intel_atomic_state *state, +struct intel_plane *plane);#endif /* __INTEL_ATOMIC_PLANE_H__ */
drivers/gpu/drm/i915/display/intel_cdclk.c +16 -0
@@ -2227,6 +2227,19 @@ static int intel_pixel_rate_to_cdclk(const struct intel_crtc_state *crtc_state)return DIV_ROUND_UP (pixel_rate *100 ,90 ); } +static int intel_planes_min_cdclk (const struct intel_crtc_state *crtc_state) +{ +struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); +struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); +struct intel_plane *plane; +int min_cdclk =0 ; + +for_each_intel_plane_on_crtc (&dev_priv->drm, crtc, plane) + min_cdclk =max (crtc_state->min_cdclk[plane->id], min_cdclk); + +return min_cdclk; +} +int intel_crtc_compute_min_cdclk (const struct intel_crtc_state *crtc_state) { struct drm_i915_private *dev_priv =
@@ -2284,6 +2297,9 @@ int intel_crtc_compute_min_cdclk(const struct intel_crtc_state *crtc_state) IS_GEMINILAKE(dev_priv)) min_cdclk =max (158400 , min_cdclk); +/* Account for additional needs from the planes */ + min_cdclk =max (intel_planes_min_cdclk (crtc_state), min_cdclk); +if (min_cdclk > dev_priv->max_cdclk_freq) {DRM_DEBUG_KMS ("required cdclk (%d kHz) exceeds max (%d kHz)\n" , min_cdclk, dev_priv->max_cdclk_freq);
drivers/gpu/drm/i915/display/intel_display.c +165 -22
271 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_sprite.c +342 -0
390 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_sprite.h +7 -0
@@ -55,4 +55,11 @@ static inline bool icl_is_hdr_plane(struct drm_i915_private *dev_priv, icl_hdr_plane_mask() & BIT(plane_id); } +int ivb_plane_min_cdclk (const struct intel_crtc_state *crtc_state, +const struct intel_plane_state *plane_state); +int hsw_plane_min_cdclk (const struct intel_crtc_state *crtc_state, +const struct intel_plane_state *plane_state); +int vlv_plane_min_cdclk (const struct intel_crtc_state *crtc_state, +const struct intel_plane_state *plane_state); +#endif /* __INTEL_SPRITE_H__ */
drivers/gpu/drm/i915/intel_drv.h +4 -0
@@ -910,6 +910,8 @@ struct intel_crtc_state {struct intel_crtc_wm_state wm; +int min_cdclk[I915_MAX_PLANES ]; +u32 data_rate[I915_MAX_PLANES ];/* Gamma mode programmed on the pipe */
@@ -1046,6 +1048,8 @@ struct intel_plane {bool (*get_hw_state)(struct intel_plane *plane,enum pipe *pipe);int (*check_plane)(struct intel_crtc_state *crtc_state,struct intel_plane_state *plane_state); +int (*min_cdclk)(const struct intel_crtc_state *crtc_state, +const struct intel_plane_state *plane_state); };struct intel_watermark_params {
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 14/19 drm/i915: Eliminate skl_check_pipe_max_pixel_rate()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
The normal cdclk handling now takes care of making sure the plane's pixel rate doesn't exceed the spec appointed percentage of the cdclk frequency. Thus we can nuke skl_check_pipe_max_pixel_rate().
--- drivers/gpu/drm/i915/display/intel_display.c | 2 - drivers/gpu/drm/i915/intel_pm.c | 89 -------------------- drivers/gpu/drm/i915/intel_pm.h | 2 - 3 files changed, 93 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +0 -2
@@ -11845,8 +11845,6 @@ static int intel_crtc_atomic_check(struct intel_atomic_state *state,if (INTEL_GEN (dev_priv) >=9 ) {if (mode_changed || crtc_state->update_pipe) ret =skl_update_scaler_crtc (crtc_state); -if (!ret) - ret =skl_check_pipe_max_pixel_rate (crtc, crtc_state);if (!ret) ret =intel_atomic_setup_scalers (dev_priv, crtc, crtc_state);
drivers/gpu/drm/i915/intel_pm.c +0 -89
95 lines not on this page · raw message
drivers/gpu/drm/i915/intel_pm.h +0 -2
@@ -65,8 +65,6 @@ void skl_write_plane_wm(struct intel_plane *plane,void skl_write_cursor_wm (struct intel_plane *plane,const struct intel_crtc_state *crtc_state);bool ilk_disable_lp_wm (struct drm_device *dev); -int skl_check_pipe_max_pixel_rate (struct intel_crtc *intel_crtc, -struct intel_crtc_state *cstate);void intel_init_ipc (struct drm_i915_private *dev_priv);void intel_enable_ipc (struct drm_i915_private *dev_priv);
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 15/19 drm/i915: Simplify skl_max_scale()
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
Now that the planes declare their minimum cdclk requirements properly we don't need to check the cdclk in skl_max_scale() anymore. Just check against the maximum downscale ratio, and move the code next to it's only caller.
--- drivers/gpu/drm/i915/display/intel_display.c | 38 -------------------- drivers/gpu/drm/i915/display/intel_sprite.c | 12 ++++++- drivers/gpu/drm/i915/intel_drv.h | 2 -- 3 files changed, 11 insertions(+), 41 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +0 -38
@@ -14525,44 +14525,6 @@ intel_cleanup_plane_fb(struct drm_plane *plane,mutex_unlock (&dev_priv->drm.struct_mutex); } -int -skl_max_scale (const struct intel_crtc_state *crtc_state, -const struct drm_format_info *format) -{ -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); -struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); -int max_scale; -int crtc_clock, max_dotclk, tmpclk1, tmpclk2; - -if (!crtc_state->base.enable) -return DRM_PLANE_HELPER_NO_SCALING ; - - crtc_clock = crtc_state->base.adjusted_mode.crtc_clock; - max_dotclk =to_intel_atomic_state (crtc_state->base.state)->cdclk.logical.cdclk; - -if (IS_GEMINILAKE (dev_priv) ||INTEL_GEN (dev_priv) >=10 ) - max_dotclk *=2 ; - -if (WARN_ON_ONCE (!crtc_clock || max_dotclk < crtc_clock)) -return DRM_PLANE_HELPER_NO_SCALING ; - -/* -* skl max scale is lower of: -* close to 3 but not 3, -1 is for that purpose -* or -* cdclk/crtc_clock -*/ -if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv) || - !drm_format_info_is_yuv_semiplanar (format)) - tmpclk1 =0x30000 -1 ; -else - tmpclk1 =0x20000 -1 ; - tmpclk2 = (1 <<8 ) * ((max_dotclk <<8 ) / crtc_clock); - max_scale =min (tmpclk1, tmpclk2); - -return max_scale; -} -static void intel_begin_crtc_commit (struct intel_atomic_state *state,struct intel_crtc *crtc) {
drivers/gpu/drm/i915/display/intel_sprite.c +11 -1
@@ -2089,6 +2089,16 @@ static int skl_plane_check_nv12_rotation(const struct intel_plane_state *plane_sreturn 0 ; } +static int skl_plane_max_scale (struct drm_i915_private *dev_priv, +const struct drm_framebuffer *fb) +{ +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv) || + !drm_format_info_is_yuv_semiplanar (fb->format)) +return 0x30000 -1 ; +else +return 0x20000 -1 ; +} +static int skl_plane_check (struct intel_crtc_state *crtc_state,struct intel_plane_state *plane_state) {
@@ -2106,7 +2116,7 @@ static int skl_plane_check(struct intel_crtc_state *crtc_state,/* use scaler when colorkey is not required */ if (!plane_state->ckey.flags &&intel_fb_scalable (fb)) { min_scale =1 ; - max_scale =skl_max_scale (crtc_state, fb->format); + max_scale =skl_plane_max_scale (dev_priv, fb); } ret = drm_atomic_helper_check_plane_state(&plane_state->base,
drivers/gpu/drm/i915/intel_drv.h +0 -2
@@ -1620,8 +1620,6 @@ void intel_crtc_arm_fifo_underrun(struct intel_crtc *crtc,u16 skl_scaler_calc_phase (int sub,int scale,bool chroma_center);int skl_update_scaler_crtc (struct intel_crtc_state *crtc_state); -int skl_max_scale (const struct intel_crtc_state *crtc_state, -const struct drm_format_info *format);static inline u32 intel_plane_ggtt_offset (const struct intel_plane_state *state) {
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 15/19] drm/i915: Simplify skl_max_scale()
Patches 13, 14 and this 15 look ok to me. Those num/den combos in 13 I cannot bet my head on but the plumbing look all ok.
Also if on 1..8 some patch wasn't pushed yet, those are all
Ville Syrjala kirjoitti 8.7.2019 klo 15.53:
Quoted 99 lines
From: Ville Syrjälä <[email protected]>
Now that the planes declare their minimum cdclk requirements properly we don't need to check the cdclk in
skl_max_scale()anymore. Just check against the maximum downscale ratio, and move the code next to it's only caller.Signed-off-by Ville Syrjälä <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 38 -------------------- drivers/gpu/drm/i915/display/intel_sprite.c | 12 ++++++- drivers/gpu/drm/i915/intel_drv.h | 2 -- 3 files changed, 11 insertions(+), 41 deletions(-)drivers/gpu/drm/i915/display/intel_display.c +0
-38@@ -14525,44 +14525,6 @@ intel_cleanup_plane_fb(struct drm_plane *plane,mutex_unlock (&dev_priv->drm.struct_mutex); } -int -skl_max_scale (const struct intel_crtc_state *crtc_state, -const struct drm_format_info *format) -{ -struct intel_crtc *crtc =to_intel_crtc (crtc_state->base.crtc); -struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev); -int max_scale; -int crtc_clock, max_dotclk, tmpclk1, tmpclk2; - -if (!crtc_state->base.enable) -return DRM_PLANE_HELPER_NO_SCALING ; - - crtc_clock = crtc_state->base.adjusted_mode.crtc_clock; - max_dotclk =to_intel_atomic_state (crtc_state->base.state)->cdclk.logical.cdclk; - -if (IS_GEMINILAKE (dev_priv) ||INTEL_GEN (dev_priv) >=10 ) - max_dotclk *=2 ; - -if (WARN_ON_ONCE (!crtc_clock || max_dotclk < crtc_clock)) -return DRM_PLANE_HELPER_NO_SCALING ; - -/* -* skl max scale is lower of: -* close to 3 but not 3, -1 is for that purpose -* or -* cdclk/crtc_clock -*/ -if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv) || - !drm_format_info_is_yuv_semiplanar (format)) - tmpclk1 =0x30000 -1 ; -else - tmpclk1 =0x20000 -1 ; - tmpclk2 = (1 <<8 ) * ((max_dotclk <<8 ) / crtc_clock); - max_scale =min (tmpclk1, tmpclk2); - -return max_scale; -} -static void intel_begin_crtc_commit (struct intel_atomic_state *state,struct intel_crtc *crtc) {drivers/gpu/drm/i915/display/intel_sprite.c +11
-1@@ -2089,6 +2089,16 @@ static int skl_plane_check_nv12_rotation(const struct intel_plane_state *plane_sreturn 0 ; } +static int skl_plane_max_scale (struct drm_i915_private *dev_priv, +const struct drm_framebuffer *fb) +{ +if (INTEL_GEN (dev_priv) >=10 ||IS_GEMINILAKE (dev_priv) || + !drm_format_info_is_yuv_semiplanar (fb->format)) +return 0x30000 -1 ; +else +return 0x20000 -1 ; +} +static int skl_plane_check (struct intel_crtc_state *crtc_state,struct intel_plane_state *plane_state) {@@ -2106,7 +2116,7 @@ static int skl_plane_check(struct intel_crtc_state *crtc_state,/* use scaler when colorkey is not required */ if (!plane_state->ckey.flags &&intel_fb_scalable (fb)) { min_scale =1 ; - max_scale =skl_max_scale (crtc_state, fb->format); + max_scale =skl_plane_max_scale (dev_priv, fb); } ret = drm_atomic_helper_check_plane_state(&plane_state->base,drivers/gpu/drm/i915/intel_drv.h +0
-0
drivers/gpu/drm/i915/intel_drv.h void intel_crtc_arm_fifo_underrun(struct intel_crtc *crtc, · line 1625
Quoted 8 lines
drivers/gpu/drm/i915/intel_drv.h +0
-2@@ -1620,8 +1620,6 @@ void intel_crtc_arm_fifo_underrun(struct intel_crtc *crtc,u16 skl_scaler_calc_phase (int sub,int scale,bool chroma_center);int skl_update_scaler_crtc (struct intel_crtc_state *crtc_state); -int skl_max_scale (const struct intel_crtc_state *crtc_state, -const struct drm_format_info *format);static inline u32 intel_plane_ggtt_offset (const struct intel_plane_state *state) {
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 16/19 drm/i915: Add support for half float framebuffers for skl+
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
skl+ supports fp16 pixel formats on all universal planes. Add the necessary bits to expose that capability. The main different to icl is that we can't scale fp16, so need to add the relevant checks.
v2: Rebase on top of icl fp16
Split skl+ bits into a separate patch
--- drivers/gpu/drm/i915/display/intel_display.c | 11 +++++++---- drivers/gpu/drm/i915/display/intel_sprite.c | 11 +++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +7 -4
@@ -5614,10 +5614,6 @@ static int skl_update_scaler_plane(struct intel_crtc_state *crtc_state,case DRM_FORMAT_ARGB8888 :case DRM_FORMAT_XRGB2101010 :case DRM_FORMAT_XBGR2101010 : -case DRM_FORMAT_XBGR16161616F : -case DRM_FORMAT_ABGR16161616F : -case DRM_FORMAT_XRGB16161616F : -case DRM_FORMAT_ARGB16161616F :case DRM_FORMAT_YUYV :case DRM_FORMAT_YVYU :case DRM_FORMAT_UYVY :
@@ -5633,6 +5629,13 @@ static int skl_update_scaler_plane(struct intel_crtc_state *crtc_state,case DRM_FORMAT_XVYU12_16161616 :case DRM_FORMAT_XVYU16161616 :break ; +case DRM_FORMAT_XBGR16161616F : +case DRM_FORMAT_ABGR16161616F : +case DRM_FORMAT_XRGB16161616F : +case DRM_FORMAT_ARGB16161616F : +if (INTEL_GEN (dev_priv) >=11 ) +break ; +/* fall through */ default : DRM_DEBUG_KMS("[PLANE:%d:%s] FB:%d unsupported scaling format 0x%x\n", intel_plane->base.base.id, intel_plane->base.name,
drivers/gpu/drm/i915/display/intel_sprite.c +11 -0
@@ -1801,6 +1801,11 @@ static bool intel_fb_scalable(const struct drm_framebuffer *fb)switch (fb->format->format) {case DRM_FORMAT_C8 :return false; +case DRM_FORMAT_XRGB16161616F : +case DRM_FORMAT_ARGB16161616F : +case DRM_FORMAT_XBGR16161616F : +case DRM_FORMAT_ABGR16161616F : +return INTEL_GEN (to_i915 (fb->dev)) >=11 ;default :return true; }
@@ -2322,6 +2327,8 @@ static const u32 skl_plane_formats[] = {DRM_FORMAT_ABGR8888 ,DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_XBGR2101010 , +DRM_FORMAT_XRGB16161616F , +DRM_FORMAT_XBGR16161616F ,DRM_FORMAT_YUYV ,DRM_FORMAT_YVYU , DRM_FORMAT_UYVY,
@@ -2337,6 +2344,8 @@ static const u32 skl_planar_formats[] = {DRM_FORMAT_ABGR8888 ,DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_XBGR2101010 , +DRM_FORMAT_XRGB16161616F , +DRM_FORMAT_XBGR16161616F ,DRM_FORMAT_YUYV ,DRM_FORMAT_YVYU , DRM_FORMAT_UYVY,
@@ -2353,6 +2362,8 @@ static const u32 glk_planar_formats[] = {DRM_FORMAT_ABGR8888 ,DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_XBGR2101010 , +DRM_FORMAT_XRGB16161616F , +DRM_FORMAT_XBGR16161616F ,DRM_FORMAT_YUYV ,DRM_FORMAT_YVYU , DRM_FORMAT_UYVY,
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 17/19 drm/i915: Add support for half float framebuffers for gen4+ primary planes
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
gen4+ supports fp16 pixel formats on the primary planes. Add the relevant code.
On ivb fp16 scanout is slightly busted. The output from the plane will have 1/4 the expected value. For the primary plane we would have to use the pipe gamma or pipe csc to correct that which would affect all the other planes as well, hence we simply choose not to expose fp16 on the ivb primary plane. On hsw the primary plane got fixed.
On gmch platforms I observed that the plane width must be below 2k pixels with fp16 or else we get a corrupted image. This limitation does not seem to be documented in bspec. I verified the exact limit using the chv pipe B primary plane since it has windowing capability. The stride limits are unaffected by fp16.
v2: Rebase on top of icl fp16
Split thea gen4+ primary plane bits into a separate patch Deal with HAS_GMCH()
--- drivers/gpu/drm/i915/display/intel_display.c | 49 ++++++++++++++++++-- 1 file changed, 45 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_display.c +45 -4
@@ -88,7 +88,17 @@ static const u32 i8xx_primary_formats[] = { DRM_FORMAT_XRGB8888, }; -/* Primary plane formats for gen >= 4 */ +/* Primary plane formats for ivb (no fp16 due to hw issue) */ +static const u32 ivb_primary_formats[] = { +DRM_FORMAT_C8 , +DRM_FORMAT_RGB565 , +DRM_FORMAT_XRGB8888 , +DRM_FORMAT_XBGR8888 , +DRM_FORMAT_XRGB2101010 , +DRM_FORMAT_XBGR2101010 , +}; + +/* Primary plane formats for gen >= 4, except ivb */ static const u32 i965_primary_formats[] = {DRM_FORMAT_C8 ,DRM_FORMAT_RGB565 ,
@@ -96,6 +106,7 @@ static const u32 i965_primary_formats[] = {DRM_FORMAT_XBGR8888 ,DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_XBGR2101010 , + DRM_FORMAT_XBGR16161616F, }; static const u64 i9xx_format_modifiers[] = {
@@ -2982,6 +2993,8 @@ static int i9xx_format_to_fourcc(int format)return DRM_FORMAT_XRGB2101010 ;case DISPPLANE_RGBX101010 :return DRM_FORMAT_XBGR2101010 ; +case DISPPLANE_RGBX161616 : +return DRM_FORMAT_XBGR16161616F ; } }
@@ -3691,6 +3704,9 @@ static u32 i9xx_plane_ctl(const struct intel_crtc_state *crtc_state,case DRM_FORMAT_XBGR2101010 : dspcntr |=DISPPLANE_RGBX101010 ;break ; +case DRM_FORMAT_XBGR16161616F : + dspcntr |=DISPPLANE_RGBX161616 ; +break ;default :MISSING_CASE (fb->format->format);return 0 ;
@@ -3713,7 +3729,8 @@ int i9xx_check_plane_surface(struct intel_plane_state *plane_state) {struct drm_i915_private *dev_priv =to_i915 (plane_state->base.plane->dev); -int src_x, src_y; +const struct drm_framebuffer *fb = plane_state->base.fb; +int src_x, src_y, src_w;u32 offset;int ret;
@@ -3724,9 +3741,14 @@ int i9xx_check_plane_surface(struct intel_plane_state *plane_state)if (!plane_state->base.visible)return 0 ; + src_w =drm_rect_width (&plane_state->base.src) >>16 ; src_x = plane_state->base.src.x1 >>16 ; src_y = plane_state->base.src.y1 >>16 ; +/* Undocumented hardware limit on i965/g4x/vlv/chv */ +if (HAS_GMCH (dev_priv) && fb->format->cpp[0 ] ==8 && src_w >2048 ) +return -EINVAL ; +intel_add_fb_offsets (&src_x, &src_y, plane_state,0 );if (INTEL_GEN (dev_priv) >=4 )
@@ -14648,6 +14670,7 @@ static bool i965_plane_format_mod_supported(struct drm_plane *_plane,case DRM_FORMAT_XBGR8888 :case DRM_FORMAT_XRGB2101010 :case DRM_FORMAT_XBGR2101010 : +case DRM_FORMAT_XBGR16161616F :return modifier ==DRM_FORMAT_MOD_LINEAR || modifier ==I915_FORMAT_MOD_X_TILED ;default :
@@ -14877,8 +14900,26 @@ intel_primary_plane_create(struct drm_i915_private *dev_priv, enum pipe pipe) }if (INTEL_GEN (dev_priv) >=4 ) { - formats = i965_primary_formats; - num_formats =ARRAY_SIZE (i965_primary_formats); +/* +* WaFP16GammaEnabling:ivb +* "Workaround : When using the 64-bit format, the plane +* output on each color channel has one quarter amplitude. +* It can be brought up to full amplitude by using pipe +* gamma correction or pipe color space conversion to +* multiply the plane output by four." +* +* There is no dedicated plane gamma for the primary plane, +* and using the pipe gamma/csc could conflict with other +* planes, so we choose not to expose fp16 on IVB primary +* planes. HSW primary planes no longer have this problem. +*/ +if (IS_IVYBRIDGE (dev_priv)) { + formats = ivb_primary_formats; + num_formats =ARRAY_SIZE (ivb_primary_formats); + }else { + formats = i965_primary_formats; + num_formats =ARRAY_SIZE (i965_primary_formats); + } modifiers = i9xx_format_modifiers; plane->max_stride = i9xx_plane_max_stride;
Signature · 6 lines
2.21.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 18/19 drm/i915: Add support for half float framebuffers for ivb+ sprites
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
ivb+ supports fp16 pixel formats on the sprite planes planes. Expose that capability.
On ivb/hsw fp16 scanout is slightly busted. The output from the plane will have 1/4 the expected value. For the sprite plane we can fix that up with the plane gamma unit. This was fixed on bdw.
v2: Rebase on top of icl fp16
Split the ivb+ sprite birs into a separate patch
v3: Move ivb_need_sprite_gamma() check one level up so that
we don't waste time programming garbage into he gamma registers
--- drivers/gpu/drm/i915/display/intel_sprite.c | 48 ++++++++++++++++++--- 1 file changed, 42 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/display/intel_sprite.c +42 -6
@@ -1285,6 +1285,16 @@ static u32 ivb_sprite_ctl_crtc(const struct intel_crtc_state *crtc_state)return sprctl; } +static bool ivb_need_sprite_gamma (const struct intel_plane_state *plane_state) +{ +struct drm_i915_private *dev_priv = +to_i915 (plane_state->base.plane->dev); +const struct drm_framebuffer *fb = plane_state->base.fb; + +return fb->format->cpp[0 ] ==8 && + (IS_IVYBRIDGE (dev_priv) ||IS_HASWELL (dev_priv)); +} +static u32 ivb_sprite_ctl (const struct intel_crtc_state *crtc_state,const struct intel_plane_state *plane_state) {
@@ -1307,6 +1317,12 @@ static u32 ivb_sprite_ctl(const struct intel_crtc_state *crtc_state,case DRM_FORMAT_XRGB8888 : sprctl |=SPRITE_FORMAT_RGBX888 ;break ; +case DRM_FORMAT_XBGR16161616F : + sprctl |=SPRITE_FORMAT_RGBX161616 |SPRITE_RGB_ORDER_RGBX ; +break ; +case DRM_FORMAT_XRGB16161616F : + sprctl |=SPRITE_FORMAT_RGBX161616 ; +break ;case DRM_FORMAT_YUYV : sprctl |=SPRITE_FORMAT_YUV422 |SPRITE_YUV_ORDER_YUYV ;break ;
@@ -1324,7 +1340,8 @@ static u32 ivb_sprite_ctl(const struct intel_crtc_state *crtc_state,return 0 ; } - sprctl |=SPRITE_INT_GAMMA_DISABLE ; +if (!ivb_need_sprite_gamma (plane_state)) + sprctl |=SPRITE_INT_GAMMA_DISABLE ;if (plane_state->base.color_encoding ==DRM_COLOR_YCBCR_BT709 ) sprctl |=SPRITE_YUV_TO_RGB_CSC_FORMAT_BT709 ;
@@ -1346,12 +1363,26 @@ static u32 ivb_sprite_ctl(const struct intel_crtc_state *crtc_state,return sprctl; } -static void ivb_sprite_linear_gamma (u16 gamma[18 ]) +static void ivb_sprite_linear_gamma (const struct intel_plane_state *plane_state, +u16 gamma[18 ]) { -int i; +int scale, i; -for (i =0 ; i <17 ; i++) - gamma[i] = (i <<10 ) /16 ; +/* +* WaFP16GammaEnabling:ivb,hsw +* "Workaround : When using the 64-bit format, the sprite output +* on each color channel has one quarter amplitude. It can be +* brought up to full amplitude by using sprite internal gamma +* correction, pipe gamma correction, or pipe color space +* conversion to multiply the sprite output by four." +*/ + scale =4 ; + +for (i =0 ; i <16 ; i++) + gamma[i] =min ((scale * i <<10 ) /16 , (1 <<10 ) -1 ); + + gamma[i] =min ((scale * i <<10 ) /16 ,1 <<10 ); + i++; gamma[i] =3 <<10 ; i++;
@@ -1365,7 +1396,10 @@ static void ivb_update_gamma(const struct intel_plane_state *plane_state)u16 gamma[18 ];int i; -ivb_sprite_linear_gamma (gamma); +if (!ivb_need_sprite_gamma (plane_state)) +return ; + +ivb_sprite_linear_gamma (plane_state, gamma);/* FIXME these register are single buffered :( */ for (i =0 ; i <16 ; i++)
@@ -2507,6 +2541,8 @@ static bool snb_sprite_format_mod_supported(struct drm_plane *_plane,switch (format) {case DRM_FORMAT_XRGB8888 :case DRM_FORMAT_XBGR8888 : +case DRM_FORMAT_XRGB16161616F : +case DRM_FORMAT_XBGR16161616F :case DRM_FORMAT_YUYV :case DRM_FORMAT_YVYU :case DRM_FORMAT_UYVY :
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 19/19 drm/i915: Add support for half float framebuffers on snb sprites
In reply to Ville SyrjalaFrom: Ville Syrjälä <[email protected]>
snb supports fp16 pixel formats on the sprite planes. Expose that capability. Nothing special needs to be done, it just works.
v2: Rebase on top of icl fp16
Split snb+ sprite bits into a separate patch
--- drivers/gpu/drm/i915/display/intel_sprite.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/display/intel_sprite.c +9 -1
@@ -1622,6 +1622,12 @@ static u32 g4x_sprite_ctl(const struct intel_crtc_state *crtc_state,case DRM_FORMAT_XRGB8888 : dvscntr |=DVS_FORMAT_RGBX888 ;break ; +case DRM_FORMAT_XBGR16161616F : + dvscntr |=DVS_FORMAT_RGBX161616 |DVS_RGB_ORDER_XBGR ; +break ; +case DRM_FORMAT_XRGB16161616F : + dvscntr |=DVS_FORMAT_RGBX161616 ; +break ;case DRM_FORMAT_YUYV : dvscntr |=DVS_FORMAT_YUV422 |DVS_YUV_ORDER_YUYV ;break ;
@@ -2330,8 +2336,10 @@ static const u64 i9xx_plane_format_modifiers[] = { };static const u32 snb_plane_formats[] = { -DRM_FORMAT_XBGR8888 ,DRM_FORMAT_XRGB8888 , +DRM_FORMAT_XBGR8888 , +DRM_FORMAT_XRGB16161616F , +DRM_FORMAT_XBGR16161616F ,DRM_FORMAT_YUYV ,DRM_FORMAT_YVYU ,DRM_FORMAT_UYVY ,
Signature · 6 lines
2.21.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for drm/i915: Plane cdclk requirements and fp16 for gen4+
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: Plane cdclk requirements and fp16 for gen4+
URL : https://patchwork.freedesktop.org/series/63373/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip
dbe2a597a49b drm: Add drm_modeset_lock_assert_held()
4596d7906d1b drm/atomic-helper: Make crtc helper funcs optional
659a47bb5ed9 drm/i915: Remove pointless planes_changed=true assignment
80004b2116c5 drm/i915: Replace is_planar_yuv_format() with drm_format_info_is_yuv_semiplanar()
e54ce69685d3 drm/i915: Allow downscale factor of <3.0 on glk+ for all formats
850740ea9902 drm/i915: Extract intel_modeset_calc_cdclk()
8c54714256b8 drm/i915: s/pipe_config/crtc_state/ in intel_crtc_atomic_check()
310ef7d37ec9 drm/i915: Stop using drm_atomic_helper_check_planes()
-:121: WARNING:LINE_SPACING: Missing a blank line after declarations
#121: FILE: drivers/gpu/drm/i915/display/intel_display.c:13481:
+ int ret = intel_crtc_atomic_check(state, crtc);
+ if (ret) {total: 0 errors, 1 warnings, 0 checks, 121 lines checked7cbec46b425a drm/i915: Add debugs to distingiush a cd2x update from a full cdclk pll update ccad7e42355f drm/i915: Make .modeset_calc_cdclk() mandatory08a80c8dad68 drm/i915: Rework global state locking517cbde8b270 drm/i915: Move check_digital_port_conflicts() earier 244db844c8ab drm/i915: Allow planes to declare their minimum acceptable cdclk -:282: WARNING:TYPO_SPELLING: 'minumum' may be misspelled - perhaps 'minimum'? #282: FILE: drivers/gpu/drm/i915/display/intel_display.c:13572:
+ * the planes' minumum cdclk calculation. Add such planes
-:302: WARNING:TYPO_SPELLING: 'minumum' may be misspelled - perhaps 'minimum'? #302: FILE: drivers/gpu/drm/i915/display/intel_display.c:13592:
+ * compute the minumum cdclk for each plane.
-:305: CHECK:SPACING: spaces preferred around that '*' (ctx:ExV) #305: FILE: drivers/gpu/drm/i915/display/intel_display.c:13595:
+ *need_modeset |= intel_plane_calc_min_cdclk(state, plane);
^
-:473: CHECK:LINE_SPACING: Please don't use multiple blank lines #473: FILE: drivers/gpu/drm/i915/display/intel_sprite.c:369:
+
+
total: 0 errors, 2 warnings, 2 checks, 765 lines checked15edbf940c1e drm/i915: Eliminate skl_check_pipe_max_pixel_rate() b6a675aa9bd9 drm/i915: Simplify skl_max_scale()abba856415be drm/i915: Add support for half float framebuffers for skl+ 08e61cc07106 drm/i915: Add support for half float framebuffers for gen4+ primary planes 593420cbc940 drm/i915: Add support for half float framebuffers for ivb+ sprites 82a5e8058527 drm/i915: Add support for half float framebuffers on snb sprites
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.SPARSE: warning for drm/i915: Plane cdclk requirements and fp16 for gen4+
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: Plane cdclk requirements and fp16 for gen4+
URL : https://patchwork.freedesktop.org/series/63373/
State : warning
== Summary ==
$ dim sparse origin/drm-tip Sparse version: v0.5.2 Commit: drm: Add drm_modeset_lock_assert_held() Okay!
Commit: drm/atomic-helper: Make crtc helper funcs optional Okay!
Commit: drm/i915: Remove pointless planes_changed=true assignment Okay!
Commit: drm/i915: Replace is_planar_yuv_format() with drm_format_info_is_yuv_semiplanar() -O:drivers/gpu/drm/i915/display/intel_display.c:14499:21: warning: expression using sizeof(void) -O:drivers/gpu/drm/i915/display/intel_display.c:14499:21: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_display.c:14499:21: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_display.c:14499:21: warning: expression using sizeof(void)
Commit: drm/i915: Allow downscale factor of <3.0 on glk+ for all formats -O:drivers/gpu/drm/i915/display/intel_display.c:14499:21: warning: expression using sizeof(void) -O:drivers/gpu/drm/i915/display/intel_display.c:14499:21: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_display.c:14502:21: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_display.c:14502:21: warning: expression using sizeof(void)
Commit: drm/i915: Extract intel_modeset_calc_cdclk() Okay!
Commit: drm/i915: s/pipe_config/crtc_state/ in intel_crtc_atomic_check() Okay!
Commit: drm/i915: Stop using drm_atomic_helper_check_planes() Okay!
Commit: drm/i915: Add debugs to distingiush a cd2x update from a full cdclk pll update Okay!
Commit: drm/i915: Make .modeset_calc_cdclk() mandatory Okay!
Commit: drm/i915: Rework global state locking -O:drivers/gpu/drm/i915/display/intel_cdclk.c:2546:17: warning: expression using sizeof(void) -O:drivers/gpu/drm/i915/display/intel_cdclk.c:2546:17: warning: expression using sizeof(void) -O:drivers/gpu/drm/i915/display/intel_cdclk.c:2636:17: warning: expression using sizeof(void) -O:drivers/gpu/drm/i915/display/intel_cdclk.c:2636:17: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_cdclk.c:2569:17: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_cdclk.c:2569:17: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_cdclk.c:2646:17: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_cdclk.c:2646:17: warning: expression using sizeof(void)
Commit: drm/i915: Move check_digital_port_conflicts() earier Okay!
Commit: drm/i915: Allow planes to declare their minimum acceptable cdclk +drivers/gpu/drm/i915/display/intel_cdclk.c:2238:29: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_cdclk.c:2238:29: warning: expression using sizeof(void) -O:drivers/gpu/drm/i915/display/intel_cdclk.c:2285:29: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_cdclk.c:2298:29: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_cdclk.c:2301:21: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_cdclk.c:2301:21: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_sprite.c:1225:17: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_sprite.c:1225:17: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_sprite.c:362:17: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_sprite.c:362:17: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_sprite.c:363:17: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_sprite.c:363:17: warning: expression using sizeof(void)
Commit: drm/i915: Eliminate skl_check_pipe_max_pixel_rate() -./drivers/gpu/drm/i915/i915_fixed.h:55:43: warning: expression using sizeof(void) -./drivers/gpu/drm/i915/i915_fixed.h:55:43: warning: expression using sizeof(void) -./drivers/gpu/drm/i915/i915_fixed.h:55:43: warning: expression using sizeof(void) -./drivers/gpu/drm/i915/i915_fixed.h:55:43: warning: expression using sizeof(void) -./drivers/gpu/drm/i915/i915_fixed.h:55:43: warning: expression using sizeof(void) -./drivers/gpu/drm/i915/i915_fixed.h:55:43: warning: expression using sizeof(void) -drivers/gpu/drm/i915/intel_pm.c:4351:25: warning: too many warnings +drivers/gpu/drm/i915/intel_pm.c:4351:25: warning: expression using sizeof(void) +drivers/gpu/drm/i915/intel_pm.c:4362:25: warning: expression using sizeof(void) +drivers/gpu/drm/i915/intel_pm.c:4362:25: warning: expression using sizeof(void) +drivers/gpu/drm/i915/intel_pm.c:4867:30: warning: expression using sizeof(void) +drivers/gpu/drm/i915/intel_pm.c:4867:30: warning: expression using sizeof(void) +drivers/gpu/drm/i915/intel_pm.c:6735:24: warning: expression using sizeof(void) +drivers/gpu/drm/i915/intel_pm.c:6735:24: warning: too many warnings
Commit: drm/i915: Simplify skl_max_scale() -O:drivers/gpu/drm/i915/display/intel_display.c:14561:21: warning: expression using sizeof(void) -O:drivers/gpu/drm/i915/display/intel_display.c:14561:21: warning: expression using sizeof(void)
Commit: drm/i915: Add support for half float framebuffers for skl+ Okay!
Commit: drm/i915: Add support for half float framebuffers for gen4+ primary planes Okay!
Commit: drm/i915: Add support for half float framebuffers for ivb+ sprites +drivers/gpu/drm/i915/display/intel_sprite.c:1382:28: warning: expression using sizeof(void) +drivers/gpu/drm/i915/display/intel_sprite.c:1384:20: warning: expression using sizeof(void)
Commit: drm/i915: Add support for half float framebuffers on snb sprites Okay!
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Plane cdclk requirements and fp16 for gen4+
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: Plane cdclk requirements and fp16 for gen4+
URL : https://patchwork.freedesktop.org/series/63373/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6429 -> Patchwork_13562
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/
Known issues
------------
Here are the changes found in Patchwork_13562 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_suspend@basic-s3:
- fi-blb-e6850: [PASS][1] -> [INCOMPLETE][2] ([fdo#107718])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/fi-blb-e6850/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/fi-blb-e6850/igt@[email protected]
* igt@gem_mmap_gtt@basic-write:
- fi-icl-u3: [PASS][3] -> [DMESG-WARN][4] ([fdo#107724]) +1 similar issue
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/fi-icl-u3/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/fi-icl-u3/igt@[email protected]
* igt@kms_chamelium@dp-edid-read:
- fi-kbl-7500u: [PASS][5] -> [FAIL][6] ([fdo#109483] / [fdo#109635 ])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/fi-kbl-7500u/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/fi-kbl-7500u/igt@[email protected]
#### Possible fixes ####
* igt@gem_basic@bad-close:
- fi-icl-u3: [DMESG-WARN][7] ([fdo#107724]) -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/fi-icl-u3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/fi-icl-u3/igt@[email protected]
* igt@i915_selftest@live_hangcheck:
- fi-kbl-x1275: [DMESG-WARN][9] ([fdo#111074]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/fi-kbl-x1275/igt@i915_selftest@live_hangcheck.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/fi-kbl-x1275/igt@i915_selftest@live_hangcheck.html
* igt@kms_chamelium@hdmi-hpd-fast:
- fi-kbl-7500u: [FAIL][11] ([fdo#109485]) -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/fi-kbl-7500u/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/fi-kbl-7500u/igt@[email protected]
#### Warnings ####
* igt@gem_exec_parse@basic-allowed:
- fi-cml-u: [SKIP][13] ([fdo#109289] / [fdo#110514]) -> [SKIP][14] ([fdo#109289]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/fi-cml-u/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/fi-cml-u/igt@[email protected]
* igt@gem_exec_parse@basic-rejected:
- fi-cml-u2: [SKIP][15] ([fdo#109289] / [fdo#110514]) -> [SKIP][16] ([fdo#109289]) +1 similar issue
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/fi-cml-u2/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/fi-cml-u2/igt@[email protected]
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109483]: https://bugs.freedesktop.org/show_bug.cgi?id=109483
[fdo#109485]: https://bugs.freedesktop.org/show_bug.cgi?id=109485
[fdo#109635 ]: https://bugs.freedesktop.org/show_bug.cgi?id=109635
[fdo#110514]: https://bugs.freedesktop.org/show_bug.cgi?id=110514
[fdo#111074]: https://bugs.freedesktop.org/show_bug.cgi?id=111074
Participating hosts (52 -> 46)
------------------------------
Additional (4): fi-icl-u4 fi-skl-iommu fi-icl-u2 fi-skl-6700k2
Missing (10): fi-kbl-soraka fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-icl-y fi-icl-dsi fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_6429 -> Patchwork_13562
CI_DRM_6429: ec3f2457cb852af756bf9022496370f4a22b0fee @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5089: d2a10fb734c34b72eb17c58d9dae813321112ee6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13562: 82a5e8058527e3a276c8e4db125f104db23f2ff4 @ git://anongit.freedesktop.org/gfx-ci/linux
== Kernel 32bit build ==
Warning: Kernel 32bit buildtest failed:
https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/build_32bit.log
CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh CHK include/generated/compile.h
Kernel: arch/x86/boot/bzImage is ready (#1)
Building modules, stage 2.
MODPOST 112 modules
ERROR: "__udivdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
ERROR: "__divdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined! scripts/Makefile.modpost:91: recipe for target '__modpost' failed make[1]: *** [__modpost] Error 1
Makefile:1287: recipe for target 'modules' failed
make: *** [modules] Error 2
== Linux commits ==
82a5e8058527 drm/i915: Add support for half float framebuffers on snb sprites 593420cbc940 drm/i915: Add support for half float framebuffers for ivb+ sprites 08e61cc07106 drm/i915: Add support for half float framebuffers for gen4+ primary planes abba856415be drm/i915: Add support for half float framebuffers for skl+ b6a675aa9bd9 drm/i915: Simplify skl_max_scale()15edbf940c1e drm/i915: Eliminate skl_check_pipe_max_pixel_rate()244db844c8ab drm/i915: Allow planes to declare their minimum acceptable cdclk 517cbde8b270 drm/i915: Move check_digital_port_conflicts() earier08a80c8dad68 drm/i915: Rework global state lockingccad7e42355f drm/i915: Make .modeset_calc_cdclk() mandatory7cbec46b425a drm/i915: Add debugs to distingiush a cd2x update from a full cdclk pll update 310ef7d37ec9 drm/i915: Stop using drm_atomic_helper_check_planes()8c54714256b8 drm/i915: s/pipe_config/crtc_state/ in intel_crtc_atomic_check() 850740ea9902 drm/i915: Extract intel_modeset_calc_cdclk()e54ce69685d3 drm/i915: Allow downscale factor of <3.0 on glk+ for all formats 80004b2116c5 drm/i915: Replace is_planar_yuv_format() with drm_format_info_is_yuv_semiplanar() 659a47bb5ed9 drm/i915: Remove pointless planes_changed=true assignment 4596d7906d1b drm/atomic-helper: Make crtc helper funcs optionaldbe2a597a49b drm: Add drm_modeset_lock_assert_held()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915: Plane cdclk requirements and fp16 for gen4+
In reply to Ville Syrjala== Series Details ==
== Series Details ==
Series: drm/i915: Plane cdclk requirements and fp16 for gen4+
URL : https://patchwork.freedesktop.org/series/63373/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_6429_full -> Patchwork_13562_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_13562_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_rc6_residency@rc6-accuracy:
- shard-kbl: [PASS][1] -> [SKIP][2] ([fdo#109271])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-kbl7/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-kbl7/igt@[email protected]
* igt@i915_suspend@fence-restore-tiled2untiled:
- shard-apl: [PASS][3] -> [DMESG-WARN][4] ([fdo#108566]) +4 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-apl3/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-apl1/igt@[email protected]
* igt@kms_atomic_transition@plane-all-transition-nonblocking:
- shard-iclb: [PASS][5] -> [INCOMPLETE][6] ([fdo#107713])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-iclb8/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-iclb7/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-kbl: [PASS][7] -> [DMESG-WARN][8] ([fdo#108566]) +3 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-kbl1/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-kbl2/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite:
- shard-iclb: [PASS][9] -> [FAIL][10] ([fdo#103167]) +4 similar issues
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-iclb6/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-iclb7/igt@kms_frontbuffer_tracking@fbc-1p-offscren-pri-shrfb-draw-pwrite.html
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: [PASS][11] -> [FAIL][12] ([fdo#108145] / [fdo#110403])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-skl2/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-skl10/igt@[email protected]
* igt@kms_psr@psr2_sprite_plane_move:
- shard-iclb: [PASS][13] -> [SKIP][14] ([fdo#109441]) +1 similar issue
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-iclb2/igt@kms_psr@psr2_sprite_plane_move.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-iclb4/igt@kms_psr@psr2_sprite_plane_move.html
* igt@prime_busy@hang-render:
- shard-hsw: [PASS][15] -> [INCOMPLETE][16] ([fdo#103540])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-hsw8/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-hsw5/igt@[email protected]
#### Possible fixes ####
* igt@kms_big_fb@linear-64bpp-rotate-180:
- shard-apl: [SKIP][17] ([fdo#109271]) -> [PASS][18] +5 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-apl4/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-apl7/igt@[email protected]
- shard-glk: [SKIP][19] ([fdo#109271]) -> [PASS][20] +5 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-glk3/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-glk4/igt@[email protected]
- shard-hsw: [SKIP][21] ([fdo#109271]) -> [PASS][22] +3 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-hsw4/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-hsw1/igt@[email protected]
* igt@kms_big_fb@x-tiled-64bpp-rotate-0:
- shard-snb: [SKIP][23] ([fdo#109271]) -> [PASS][24] +3 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-snb6/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-snb2/igt@[email protected]
* igt@kms_big_fb@x-tiled-64bpp-rotate-180:
- shard-skl: [SKIP][25] ([fdo#109271]) -> [PASS][26] +3 similar issues
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-skl5/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-skl3/igt@[email protected]
* igt@kms_big_fb@y-tiled-64bpp-rotate-0:
- shard-kbl: [SKIP][27] ([fdo#109271]) -> [PASS][28] +5 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-kbl7/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-kbl7/igt@[email protected]
* igt@kms_flip@flip-vs-suspend-interruptible:
- shard-glk: [INCOMPLETE][29] ([fdo#103359] / [k.org#198133]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-glk2/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-glk5/igt@[email protected]
- shard-apl: [DMESG-WARN][31] ([fdo#108566]) -> [PASS][32] +3 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-apl2/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-apl5/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite:
- shard-iclb: [FAIL][33] ([fdo#103167]) -> [PASS][34] +5 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-iclb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-iclb6/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-pwrite.html
* igt@kms_frontbuffer_tracking@psr-suspend:
- shard-skl: [INCOMPLETE][35] ([fdo#104108] / [fdo#106978]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-skl7/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-skl5/igt@[email protected]
* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: [SKIP][37] ([fdo#109441]) -> [PASS][38] +1 similar issue
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-iclb5/igt@kms_psr@psr2_cursor_mmap_cpu.html
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html
* igt@kms_setmode@basic:
- shard-kbl: [FAIL][39] ([fdo#99912]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-kbl4/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-kbl6/igt@[email protected]
* igt@kms_vblank@pipe-a-ts-continuation-dpms-suspend:
- shard-skl: [INCOMPLETE][41] ([fdo#104108]) -> [PASS][42] +2 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-skl3/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-skl3/igt@[email protected]
* igt@perf@blocking:
- shard-skl: [FAIL][43] ([fdo#110728]) -> [PASS][44] +1 similar issue
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-skl5/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-skl3/igt@[email protected]
#### Warnings ####
* igt@kms_dp_dsc@basic-dsc-enable-edp:
- shard-iclb: [DMESG-WARN][45] ([fdo#107724]) -> [SKIP][46] ([fdo#109349])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_6429/shard-iclb2/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_13562/shard-iclb7/igt@[email protected]
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103359]: https://bugs.freedesktop.org/show_bug.cgi?id=103359
[fdo#103540]: https://bugs.freedesktop.org/show_bug.cgi?id=103540
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#106978]: https://bugs.freedesktop.org/show_bug.cgi?id=106978
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108566]: https://bugs.freedesktop.org/show_bug.cgi?id=108566
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109349]: https://bugs.freedesktop.org/show_bug.cgi?id=109349
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[fdo#110403]: https://bugs.freedesktop.org/show_bug.cgi?id=110403
[fdo#110728]: https://bugs.freedesktop.org/show_bug.cgi?id=110728
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
[k.org#198133]: https://bugzilla.kernel.org/show_bug.cgi?id=198133
Participating hosts (10 -> 10)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_6429 -> Patchwork_13562
CI_DRM_6429: ec3f2457cb852af756bf9022496370f4a22b0fee @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5089: d2a10fb734c34b72eb17c58d9dae813321112ee6 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_13562: 82a5e8058527e3a276c8e4db125f104db23f2ff4 @ 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_13562/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx