[Intel-gfx] [PATCH 16/16] drm/i915: Nuke PIPE_CONFIG_QUIRK_BIGJOINER_SLAVE

Navare, Manasi manasi.d.navare at intel.com
Wed Oct 20 23:53:53 UTC 2021


On Mon, Sep 13, 2021 at 05:44:40PM +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> Now that the bigjoiner state readout/computation has been
> made to do the right thing nuke the related state checker
> quirk.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

Reviewed-by: Manasi Navare <manasi.d.navare at intel.com>

Manasi

> ---
>  drivers/gpu/drm/i915/display/intel_display.c  | 105 ++++++++----------
>  .../drm/i915/display/intel_display_types.h    |   1 -
>  2 files changed, 47 insertions(+), 59 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c
> index 17d12d12bc0a..a6d1d6fbaeef 100644
> --- a/drivers/gpu/drm/i915/display/intel_display.c
> +++ b/drivers/gpu/drm/i915/display/intel_display.c
> @@ -8087,51 +8087,48 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,
>  
>  	PIPE_CONF_CHECK_X(output_types);
>  
> -	/* FIXME do the readout properly and get rid of this quirk */
> -	if (!PIPE_CONF_QUIRK(PIPE_CONFIG_QUIRK_BIGJOINER_SLAVE)) {
> -		PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_hdisplay);
> -		PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_htotal);
> -		PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_hblank_start);
> -		PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_hblank_end);
> -		PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_hsync_start);
> -		PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_hsync_end);
> +	PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_hdisplay);
> +	PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_htotal);
> +	PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_hblank_start);
> +	PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_hblank_end);
> +	PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_hsync_start);
> +	PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_hsync_end);
>  
> -		PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_vdisplay);
> -		PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_vtotal);
> -		PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_vblank_start);
> -		PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_vblank_end);
> -		PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_vsync_start);
> -		PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_vsync_end);
> +	PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_vdisplay);
> +	PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_vtotal);
> +	PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_vblank_start);
> +	PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_vblank_end);
> +	PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_vsync_start);
> +	PIPE_CONF_CHECK_I(hw.pipe_mode.crtc_vsync_end);
>  
> -		PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_hdisplay);
> -		PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_htotal);
> -		PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_hblank_start);
> -		PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_hblank_end);
> -		PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_hsync_start);
> -		PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_hsync_end);
> +	PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_hdisplay);
> +	PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_htotal);
> +	PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_hblank_start);
> +	PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_hblank_end);
> +	PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_hsync_start);
> +	PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_hsync_end);
>  
> -		PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_vdisplay);
> -		PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_vtotal);
> -		PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_vblank_start);
> -		PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_vblank_end);
> -		PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_vsync_start);
> -		PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_vsync_end);
> +	PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_vdisplay);
> +	PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_vtotal);
> +	PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_vblank_start);
> +	PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_vblank_end);
> +	PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_vsync_start);
> +	PIPE_CONF_CHECK_I(hw.adjusted_mode.crtc_vsync_end);
>  
> -		PIPE_CONF_CHECK_I(pixel_multiplier);
> +	PIPE_CONF_CHECK_I(pixel_multiplier);
>  
> -		PIPE_CONF_CHECK_FLAGS(hw.adjusted_mode.flags,
> -				      DRM_MODE_FLAG_INTERLACE);
> +	PIPE_CONF_CHECK_FLAGS(hw.adjusted_mode.flags,
> +			      DRM_MODE_FLAG_INTERLACE);
>  
> -		if (!PIPE_CONF_QUIRK(PIPE_CONFIG_QUIRK_MODE_SYNC_FLAGS)) {
> -			PIPE_CONF_CHECK_FLAGS(hw.adjusted_mode.flags,
> -					      DRM_MODE_FLAG_PHSYNC);
> -			PIPE_CONF_CHECK_FLAGS(hw.adjusted_mode.flags,
> -					      DRM_MODE_FLAG_NHSYNC);
> -			PIPE_CONF_CHECK_FLAGS(hw.adjusted_mode.flags,
> -					      DRM_MODE_FLAG_PVSYNC);
> -			PIPE_CONF_CHECK_FLAGS(hw.adjusted_mode.flags,
> -					      DRM_MODE_FLAG_NVSYNC);
> -		}
> +	if (!PIPE_CONF_QUIRK(PIPE_CONFIG_QUIRK_MODE_SYNC_FLAGS)) {
> +		PIPE_CONF_CHECK_FLAGS(hw.adjusted_mode.flags,
> +				      DRM_MODE_FLAG_PHSYNC);
> +		PIPE_CONF_CHECK_FLAGS(hw.adjusted_mode.flags,
> +				      DRM_MODE_FLAG_NHSYNC);
> +		PIPE_CONF_CHECK_FLAGS(hw.adjusted_mode.flags,
> +				      DRM_MODE_FLAG_PVSYNC);
> +		PIPE_CONF_CHECK_FLAGS(hw.adjusted_mode.flags,
> +				      DRM_MODE_FLAG_NVSYNC);
>  	}
>  
>  	PIPE_CONF_CHECK_I(output_format);
> @@ -8143,9 +8140,7 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,
>  	PIPE_CONF_CHECK_BOOL(hdmi_scrambling);
>  	PIPE_CONF_CHECK_BOOL(hdmi_high_tmds_clock_ratio);
>  	PIPE_CONF_CHECK_BOOL(has_infoframe);
> -	/* FIXME do the readout properly and get rid of this quirk */
> -	if (!PIPE_CONF_QUIRK(PIPE_CONFIG_QUIRK_BIGJOINER_SLAVE))
> -		PIPE_CONF_CHECK_BOOL(fec_enable);
> +	PIPE_CONF_CHECK_BOOL(fec_enable);
>  
>  	PIPE_CONF_CHECK_BOOL_INCOMPLETE(has_audio);
>  
> @@ -8174,9 +8169,7 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,
>  		}
>  
>  		PIPE_CONF_CHECK_I(scaler_state.scaler_id);
> -		/* FIXME do the readout properly and get rid of this quirk */
> -		if (!PIPE_CONF_QUIRK(PIPE_CONFIG_QUIRK_BIGJOINER_SLAVE))
> -			PIPE_CONF_CHECK_CLOCK_FUZZY(pixel_rate);
> +		PIPE_CONF_CHECK_CLOCK_FUZZY(pixel_rate);
>  
>  		PIPE_CONF_CHECK_X(gamma_mode);
>  		if (IS_CHERRYVIEW(dev_priv))
> @@ -8201,11 +8194,9 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,
>  
>  	PIPE_CONF_CHECK_BOOL(double_wide);
>  
> -	if (dev_priv->dpll.mgr)
> +	if (dev_priv->dpll.mgr) {
>  		PIPE_CONF_CHECK_P(shared_dpll);
>  
> -	/* FIXME do the readout properly and get rid of this quirk */
> -	if (dev_priv->dpll.mgr && !PIPE_CONF_QUIRK(PIPE_CONFIG_QUIRK_BIGJOINER_SLAVE)) {
>  		PIPE_CONF_CHECK_X(dpll_hw_state.dpll);
>  		PIPE_CONF_CHECK_X(dpll_hw_state.dpll_md);
>  		PIPE_CONF_CHECK_X(dpll_hw_state.fp0);
> @@ -8239,19 +8230,17 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,
>  		PIPE_CONF_CHECK_X(dpll_hw_state.mg_pll_tdc_coldst_bias);
>  	}
>  
> -	if (!PIPE_CONF_QUIRK(PIPE_CONFIG_QUIRK_BIGJOINER_SLAVE)) {
> -		PIPE_CONF_CHECK_X(dsi_pll.ctrl);
> -		PIPE_CONF_CHECK_X(dsi_pll.div);
> +	PIPE_CONF_CHECK_X(dsi_pll.ctrl);
> +	PIPE_CONF_CHECK_X(dsi_pll.div);
>  
> -		if (IS_G4X(dev_priv) || DISPLAY_VER(dev_priv) >= 5)
> -			PIPE_CONF_CHECK_I(pipe_bpp);
> +	if (IS_G4X(dev_priv) || DISPLAY_VER(dev_priv) >= 5)
> +		PIPE_CONF_CHECK_I(pipe_bpp);
>  
> -		PIPE_CONF_CHECK_CLOCK_FUZZY(hw.pipe_mode.crtc_clock);
> -		PIPE_CONF_CHECK_CLOCK_FUZZY(hw.adjusted_mode.crtc_clock);
> -		PIPE_CONF_CHECK_CLOCK_FUZZY(port_clock);
> +	PIPE_CONF_CHECK_CLOCK_FUZZY(hw.pipe_mode.crtc_clock);
> +	PIPE_CONF_CHECK_CLOCK_FUZZY(hw.adjusted_mode.crtc_clock);
> +	PIPE_CONF_CHECK_CLOCK_FUZZY(port_clock);
>  
> -		PIPE_CONF_CHECK_I(min_voltage_level);
> -	}
> +	PIPE_CONF_CHECK_I(min_voltage_level);
>  
>  	if (fastset && (current_config->has_psr || pipe_config->has_psr))
>  		PIPE_CONF_CHECK_X_WITH_MASK(infoframes.enable,
> diff --git a/drivers/gpu/drm/i915/display/intel_display_types.h b/drivers/gpu/drm/i915/display/intel_display_types.h
> index 7d852affead1..ee45fc3b1672 100644
> --- a/drivers/gpu/drm/i915/display/intel_display_types.h
> +++ b/drivers/gpu/drm/i915/display/intel_display_types.h
> @@ -938,7 +938,6 @@ struct intel_crtc_state {
>  	 * accordingly.
>  	 */
>  #define PIPE_CONFIG_QUIRK_MODE_SYNC_FLAGS	(1<<0) /* unreliable sync mode.flags */
> -#define PIPE_CONFIG_QUIRK_BIGJOINER_SLAVE      (1<<1) /* bigjoiner slave, partial readout */
>  	unsigned long quirks;
>  
>  	unsigned fb_bits; /* framebuffers to flip */
> -- 
> 2.32.0
> 


More information about the Intel-gfx mailing list