Introduce drm sharpness property
Subsystems (5)
cover Introduce drm sharpness property
Many a times images are blurred or upscaled content is also not as
crisp as original rendered image. Traditional sharpening techniques often apply a uniform level of enhancement across entire image, which sometimes result in over-sharpening of some areas and potential loss of natural details.
Intel has come up with Display Engine based adaptive sharpening filter with minimal power and performance impact. From LNL onwards, the Display hardware can use one of the pipe scaler for adaptive sharpness filter. This can be used for both gaming and non-gaming use cases like photos, image viewing. It works on a region of pixels depending on the tap size.
This is an attempt to introduce an adaptive sharpness solution which helps in improving the image quality. For this new CRTC property is added. The user can set this property with desired sharpness strength value with 0-255. A value of 1 representing minimum sharpening strength and 255 representing maximum sharpness strength. A strength value of 0 means no sharpening or sharpening feature disabled.
It works on a region of pixels depending on the tap size. The coefficients are used to generate an alpha value which is used to blend the sharpened image to original image.
Middleware MR link: https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3665
IGT patchwork link: https://patchwork.freedesktop.org/series/130218/
Continuing discussions from: https://patchwork.freedesktop.org/series/129888/
Nemesa Garg (6):
drm: Introduce sharpness strength property drm/i915/display: Compute the scaler filter coefficients drm/i915/display: Enable the second scaler drm/i915/display: Configure the second scaler for sharpness drm/i915/display: Add registers and compute the strength drm/i915/display: Load the lut values and enable sharpness
drivers/gpu/drm/drm_atomic_uapi.c | 4 + drivers/gpu/drm/drm_crtc.c | 35 +++ drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_casf.c | 272 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_casf.h | 24 ++ .../gpu/drm/i915/display/intel_casf_regs.h | 41 +++ drivers/gpu/drm/i915/display/intel_crtc.c | 3 + .../drm/i915/display/intel_crtc_state_dump.c | 5 + drivers/gpu/drm/i915/display/intel_display.c | 44 ++- .../drm/i915/display/intel_display_device.h | 1 + .../drm/i915/display/intel_display_types.h | 16 ++ drivers/gpu/drm/i915/display/intel_pfit.c | 8 + drivers/gpu/drm/i915/display/skl_scaler.c | 105 ++++++- drivers/gpu/drm/i915/display/skl_scaler.h | 1 + drivers/gpu/drm/xe/Makefile | 1 + include/drm/drm_crtc.h | 17 ++ 16 files changed, 562 insertions(+), 16 deletions(-) create mode 100644 drivers/gpu/drm/i915/display/intel_casf.c create mode 100644 drivers/gpu/drm/i915/display/intel_casf.h create mode 100644 drivers/gpu/drm/i915/display/intel_casf_regs.h
Signature · 1 line
2.25.1
PATCH 1/6 drm: Introduce sharpness strength property
Introduces the new crtc property "SHARPNESS_STRENGTH" that allows the user to set the intensity so as to get the sharpness effect. The value of this property can be set from 0-255.
It is useful in scenario when the output is blurry and user want to sharpen the pixels. User can increase/decrease the sharpness level depending on the content displayed.
v2: Rename crtc property variable [Arun]
Add modeset detail in uapi doc[Uma]
v3: Fix build issue
--- drivers/gpu/drm/drm_atomic_uapi.c | 4 ++++ drivers/gpu/drm/drm_crtc.c | 35 +++++++++++++++++++++++++++++++ include/drm/drm_crtc.h | 17 +++++++++++++++ 3 files changed, 56 insertions(+)
drivers/gpu/drm/drm_atomic_uapi.c +4 -0
@@ -417,6 +417,8 @@ static int drm_atomic_crtc_set_property(struct drm_crtc *crtc,set_out_fence_for_crtc (state->state, crtc, fence_ptr); }else if (property == crtc->scaling_filter_property) { state->scaling_filter = val; + }else if (property == crtc->sharpness_strength_property) { + state->sharpness_strength = val; }else if (crtc->funcs->atomic_set_property) {return crtc->funcs->atomic_set_property (crtc, state, property, val); }else {
@@ -454,6 +456,8 @@ drm_atomic_crtc_get_property(struct drm_crtc *crtc, *val =0 ; else if (property == crtc->scaling_filter_property) *val = state->scaling_filter; + else if (property == crtc->sharpness_strength_property) + *val = state->sharpness_strength; else if (crtc->funcs->atomic_get_property) return crtc->funcs->atomic_get_property(crtc, state, property, val); else {
drivers/gpu/drm/drm_crtc.c +35 -0
@@ -229,6 +229,25 @@ struct dma_fence *drm_crtc_create_fence(struct drm_crtc *crtc)* Driver's default scaling filter * Nearest Neighbor: * Nearest Neighbor scaling filter +* SHARPNESS_STRENGTH: +* Atomic property for setting the sharpness strength/intensity by userspace. +* +* The value of this property is set as an integer value ranging +* from 0 - 255 where: +* +* 0 means feature is disabled. +* +* 1 means minimum sharpness. +* +* 255 means maximum sharpness. +* +* User can gradually increase or decrease the sharpness level and can +* set the optimum value depending on content and this value will be +* passed to kernel through the Uapi. +* The setting of this property does not require modeset. +* The sharpness effect takes place post blending on the final composed output. +* If the feature is disabled, the content remains same without any sharpening effect +* and when this feature is applied, it enhances the clarity of the content. */ __printf (6 ,0 )
@@ -940,6 +959,22 @@ int drm_crtc_create_scaling_filter_property(struct drm_crtc *crtc, }EXPORT_SYMBOL (drm_crtc_create_scaling_filter_property); +int drm_crtc_create_sharpness_strength_property (struct drm_crtc *crtc) +{ +struct drm_device *dev = crtc->dev; +struct drm_property *prop = +drm_property_create_range (dev,0 ,"SHARPNESS_STRENGTH" ,0 ,255 ); + +if (!prop) +return -ENOMEM ; + + crtc->sharpness_strength_property = prop; +drm_object_attach_property (&crtc->base, prop,0 ); + +return 0 ; +} +EXPORT_SYMBOL (drm_crtc_create_sharpness_strength_property); +/** * drm_crtc_in_clone_mode - check if the given CRTC state is in clone mode *
include/drm/drm_crtc.h +17 -0
@@ -317,6 +317,16 @@ struct drm_crtc_state {*/ enum drm_scaling_filter scaling_filter; +/** +* @sharpness_strength +* +* Used by the user to set the sharpness intensity. +* The value ranges from 0-255. +* Any value greater than 0 means enabling the featuring +* along with setting the value for sharpness. +*/ +u8 sharpness_strength; +/** * @event: *
@@ -1088,6 +1098,12 @@ struct drm_crtc {*/ struct drm_property *scaling_filter_property; +/** +* @sharpness_strength_prop: property to apply +* the intensity of the sharpness requested. +*/ +struct drm_property *sharpness_strength_property; +/** * @state: *
@@ -1324,4 +1340,5 @@ static inline struct drm_crtc *drm_crtc_find(struct drm_device *dev,int drm_crtc_create_scaling_filter_property (struct drm_crtc *crtc,unsigned int supported_filters);bool drm_crtc_in_clone_mode (struct drm_crtc_state *crtc_state); +int drm_crtc_create_sharpness_strength_property (struct drm_crtc *crtc);#endif /* __DRM_CRTC_H__ */
Signature · 1 line
2.25.1
PATCH v7 2/6 drm/i915/display: Compute the scaler filter coefficients
In reply to Nemesa GargThe sharpness property requires the use of one of the scaler so need to set the sharpness scaler coefficient values. These values are based on experiments and vary for different tap value/win size. These values are normalized by taking the sum of all values and then dividing each value with a sum.
v2: Fix ifndef header naming issue reported by kernel test robot
v3: Rename file name[Arun]
Replace array size number with macro[Arun]
v4: Correct the register format[Jani]
Add brief comment and expalin about file[Jani] Remove coefficient value from crtc_state[Jani]
v5: Fix build issue
v6: Add new function for writing coefficients[Ankit]
v7: Add cooments and add a scaler id check [Ankit]
--- drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_casf.c | 154 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_casf.h | 16 ++ .../gpu/drm/i915/display/intel_casf_regs.h | 19 +++ drivers/gpu/drm/i915/display/intel_display.c | 1 + .../drm/i915/display/intel_display_types.h | 13 ++ drivers/gpu/drm/xe/Makefile | 1 + 7 files changed, 205 insertions(+) create mode 100644 drivers/gpu/drm/i915/display/intel_casf.c create mode 100644 drivers/gpu/drm/i915/display/intel_casf.h create mode 100644 drivers/gpu/drm/i915/display/intel_casf_regs.h
drivers/gpu/drm/i915/Makefile +1 -0
@@ -230,6 +230,7 @@ i915-y += \ display/intel_bios.o \ display/intel_bo.o \ display/intel_bw.o \ + display/intel_casf.o \ display/intel_cdclk.o \ display/intel_cmtg.o \ display/intel_color.o \
drivers/gpu/drm/i915/display/intel_casf.c new file +154 -0
154 lines not on this page · raw message
drivers/gpu/drm/i915/display/intel_casf.h new file +16 -0
@@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2025 Intel Corporation +*/ + +#ifndef __INTEL_CASF_H__ +#define __INTEL_CASF_H__ + +#include <linux/types.h> + +struct intel_crtc_state ; + +void intel_casf_enable (struct intel_crtc_state *crtc_state); +void intel_casf_scaler_compute_config (struct intel_crtc_state *crtc_state); + +#endif /* __INTEL_CASF_H__ */
drivers/gpu/drm/i915/display/intel_casf_regs.h new file +19 -0
@@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: MIT */ +/* +* Copyright © 2024 Intel Corporation +*/ + +#ifndef __INTEL_CASF_REGS_H__ +#define __INTEL_CASF_REGS_H__ + +#include "intel_display_reg_defs.h" + +/* Scaler Coefficient structure */ +#define SIGN REG_BIT(15) +#define EXPONENT_MASK REG_GENMASK(13, 12) +#define EXPONENT (x) REG_FIELD_PREP(EXPONENT_MASK, (x)) +#define MANTISSA_MASK REG_GENMASK(11, 3) +#define MANTISSA (x) REG_FIELD_PREP(MANTISSA_MASK, (x)) + +#endif /* __INTEL_CASF_REGS__ */ +
drivers/gpu/drm/i915/display/intel_display.c +1 -0
@@ -60,6 +60,7 @@#include "intel_audio.h" #include "intel_bo.h" #include "intel_bw.h" +#include "intel_casf.h" #include "intel_cdclk.h" #include "intel_clock_gating.h" #include "intel_color.h"
drivers/gpu/drm/i915/display/intel_display_types.h +13 -0
@@ -933,6 +933,18 @@ struct intel_csc_matrix {u16 postoff[3 ]; }; +struct scaler_filter_coeff { +u16 sign; +u16 exp; +u16 mantissa; +}; + +struct intel_casf { +#define SCALER_FILTER_NUM_TAPS 7 +struct scaler_filter_coeff coeff[SCALER_FILTER_NUM_TAPS ]; +u8 win_size; +}; +void intel_io_mmio_fw_write (void *ctx,i915_reg_t reg,u32 val);typedef void (*intel_io_reg_write )(void *ctx,i915_reg_t reg,u32 val);
@@ -973,6 +985,7 @@ struct intel_crtc_state {struct drm_property_blob *degamma_lut, *gamma_lut, *ctm;struct drm_display_mode mode, pipe_mode, adjusted_mode;enum drm_scaling_filter scaling_filter; +struct intel_casf casf_params; } hw;/* actual state of LUTs */
drivers/gpu/drm/xe/Makefile +1 -0
@@ -205,6 +205,7 @@ xe-$(CONFIG_DRM_XE_DISPLAY) += \ i915-display/intel_backlight.o \ i915-display/intel_bios.o \ i915-display/intel_bw.o \ + i915-display/intel_casf.o \ i915-display/intel_cdclk.o \ i915-display/intel_cmtg.o \ i915-display/intel_color.o \
Signature · 1 line
2.25.1
PATCH 3/6 drm/i915/display: Enable the second scaler
In reply to Nemesa GargWrite the scaler registers for sharpness.
v1: Rename the title of patch [Ankit]
--- drivers/gpu/drm/i915/display/intel_casf.c | 2 + drivers/gpu/drm/i915/display/skl_scaler.c | 45 +++++++++++++++++++++++ drivers/gpu/drm/i915/display/skl_scaler.h | 1 + 3 files changed, 48 insertions(+)
drivers/gpu/drm/i915/display/intel_casf.c +2 -0
@@ -109,6 +109,8 @@ static void intel_casf_write_coeff(struct intel_crtc_state *crtc_state)void intel_casf_enable (struct intel_crtc_state *crtc_state) {intel_casf_write_coeff (crtc_state); + +skl_scaler_setup_casf (crtc_state); } static void convert_sharpness_coef_binary(struct scaler_filter_coeff *coeff,
drivers/gpu/drm/i915/display/skl_scaler.c +45 -0
57 lines not on this page · raw message
drivers/gpu/drm/i915/display/skl_scaler.h +1 -0
@@ -28,5 +28,6 @@ void skl_detach_scalers(const struct intel_crtc_state *crtc_state);void skl_scaler_disable (const struct intel_crtc_state *old_crtc_state);void skl_scaler_get_config (struct intel_crtc_state *crtc_state); +void skl_scaler_setup_casf (struct intel_crtc_state *crtc_state);#endif
Signature · 1 line
2.25.1
PATCH 4/6 drm/i915/display: Configure the second scaler for sharpness
In reply to Nemesa GargAs only second scaler can be used for sharpness check if it is available and also check if panel fitting is also not enabled, then set the sharpness. Panel fitting will have the preference over sharpness property.
v2: Add the panel fitting check before enabling sharpness
v3: Reframe commit message[Arun]
v4: Replace string based comparison with plane_state[Jani]
v5: Rebase
v6: Fix build issue
v7: Remove scaler id from verify_crtc_state[Ankit]
v8: Change the patch title. Add code comment.
Move the config part in patch#6. [Ankit]
--- drivers/gpu/drm/i915/display/intel_casf.c | 20 +++++++++++ drivers/gpu/drm/i915/display/intel_casf.h | 6 ++++ drivers/gpu/drm/i915/display/intel_display.c | 8 +++-- .../drm/i915/display/intel_display_device.h | 1 + .../drm/i915/display/intel_display_types.h | 1 + drivers/gpu/drm/i915/display/intel_pfit.c | 8 +++++ drivers/gpu/drm/i915/display/skl_scaler.c | 36 +++++++++++++------ 7 files changed, 66 insertions(+), 14 deletions(-)
drivers/gpu/drm/i915/display/intel_casf.c +20 -0
@@ -113,6 +113,26 @@ void intel_casf_enable(struct intel_crtc_state *crtc_state)skl_scaler_setup_casf (crtc_state); } +bool intel_casf_needs_scaler (const struct intel_crtc_state *crtc_state) +{ +if (crtc_state->hw.casf_params.casf_enable) +return true; + +return false; +} + +int intel_casf_compute_config (struct intel_crtc_state *crtc_state) +{ +struct intel_display *display =to_intel_display (crtc_state); + +if (!HAS_CASF (display)) +return -EINVAL ; + + crtc_state->hw.casf_params.casf_enable = true; + +return 0 ; +} +static void convert_sharpness_coef_binary (struct scaler_filter_coeff *coeff,u16 coefficient) {
drivers/gpu/drm/i915/display/intel_casf.h +6 -0
@@ -12,5 +12,11 @@ struct intel_crtc_state;void intel_casf_enable (struct intel_crtc_state *crtc_state);void intel_casf_scaler_compute_config (struct intel_crtc_state *crtc_state); +int intel_casf_compute_config (struct intel_crtc_state *crtc_state); +bool intel_casf_needs_scaler (const struct intel_crtc_state *crtc_state); +void intel_filter_lut_load (struct intel_crtc *crtc, +const struct intel_crtc_state *crtc_state); +bool intel_casf_strength_changed (struct intel_crtc_state *new_crtc_state, +const struct intel_crtc_state *old_crtc_state);#endif /* __INTEL_CASF_H__ */
drivers/gpu/drm/i915/display/intel_display.c +5 -3
@@ -2138,7 +2138,7 @@ static void get_crtc_power_domains(struct intel_crtc_state *crtc_state,set_bit (POWER_DOMAIN_PIPE (pipe), mask->bits);set_bit (POWER_DOMAIN_TRANSCODER (cpu_transcoder), mask->bits);if (crtc_state->pch_pfit.enabled || - crtc_state->pch_pfit.force_thru) + crtc_state->pch_pfit.force_thru ||intel_casf_needs_scaler (crtc_state))set_bit (POWER_DOMAIN_PIPE_PANEL_FITTER (pipe), mask->bits); drm_for_each_encoder_mask(encoder, &dev_priv->drm,
@@ -2389,7 +2389,7 @@ static u32 ilk_pipe_pixel_rate(const struct intel_crtc_state *crtc_state)* PF-ID we'll need to adjust the pixel_rate here. */ -if (!crtc_state->pch_pfit.enabled) +if (!crtc_state->pch_pfit.enabled ||intel_casf_needs_scaler (crtc_state))return pixel_rate; drm_rect_init(&src, 0, 0,
@@ -4657,7 +4657,8 @@ static int intel_crtc_atomic_check(struct intel_atomic_state *state,if (DISPLAY_VER (dev_priv) >=9 ) {if (intel_crtc_needs_modeset (crtc_state) || -intel_crtc_needs_fastset (crtc_state)) { +intel_crtc_needs_fastset (crtc_state) || +intel_casf_needs_scaler (crtc_state)) { ret =skl_update_scaler_crtc (crtc_state);if (ret)return ret;
@@ -5826,6 +5827,7 @@ intel_pipe_config_compare(const struct intel_crtc_state *current_config,PIPE_CONF_CHECK_LLI (cmrr.cmrr_m);PIPE_CONF_CHECK_LLI (cmrr.cmrr_n);PIPE_CONF_CHECK_BOOL (cmrr.enable); +PIPE_CONF_CHECK_BOOL (hw.casf_params.casf_enable); }#undef PIPE_CONF_CHECK_X
drivers/gpu/drm/i915/display/intel_display_device.h +1 -0
@@ -190,6 +190,7 @@ struct intel_display_platforms {#define HAS_VRR (__display) (DISPLAY_VER(__display) >= 11)#define HAS_AS_SDP (__display) (DISPLAY_VER(__display) >= 13)#define HAS_CMRR (__display) (DISPLAY_VER(__display) >= 20) +#define HAS_CASF (__display) (DISPLAY_VER(__display) >= 20)#define INTEL_NUM_PIPES (__display) (hweight8(DISPLAY_RUNTIME_INFO(__display)->pipe_mask))#define I915_HAS_HOTPLUG (__display) (DISPLAY_INFO(__display)->has_hotplug)#define OVERLAY_NEEDS_PHYSICAL (__display) (DISPLAY_INFO(__display)->overlay_needs_physical)
drivers/gpu/drm/i915/display/intel_display_types.h +1 -0
@@ -943,6 +943,7 @@ struct intel_casf {#define SCALER_FILTER_NUM_TAPS 7struct scaler_filter_coeff coeff[SCALER_FILTER_NUM_TAPS ];u8 win_size; +bool casf_enable; };void intel_io_mmio_fw_write (void *ctx,i915_reg_t reg,u32 val);
drivers/gpu/drm/i915/display/intel_pfit.c +8 -0
@@ -5,6 +5,7 @@#include "i915_reg.h" #include "i915_utils.h" +#include "intel_casf.h" #include "intel_display_core.h" #include "intel_display_driver.h" #include "intel_display_types.h"
@@ -183,6 +184,9 @@ static int pch_panel_fitting(struct intel_crtc_state *crtc_state,struct intel_display *display =to_intel_display (crtc_state);const struct drm_display_mode *adjusted_mode = &crtc_state->hw.adjusted_mode; +struct intel_atomic_state *state =to_intel_atomic_state (conn_state->state); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); +struct intel_crtc_state *old_crtc_state =intel_atomic_get_old_crtc_state (state, crtc);int pipe_src_w =drm_rect_width (&crtc_state->pipe_src);int pipe_src_h =drm_rect_height (&crtc_state->pipe_src);int ret, x, y, width, height;
@@ -193,6 +197,10 @@ static int pch_panel_fitting(struct intel_crtc_state *crtc_state, crtc_state->output_format != INTEL_OUTPUT_FORMAT_YCBCR420)return 0 ; +/* If CASF enabled then pfit cannot be enabled */ +if (intel_casf_needs_scaler (old_crtc_state)) +return -EINVAL ; +switch (conn_state->scaling_mode) {case DRM_MODE_SCALE_CENTER : width = pipe_src_w;
drivers/gpu/drm/i915/display/skl_scaler.c +25 -11
@@ -5,6 +5,7 @@#include "i915_drv.h" #include "i915_reg.h" +#include "intel_casf.h" #include "intel_de.h" #include "intel_display_trace.h" #include "intel_display_types.h"
@@ -271,7 +272,8 @@ int skl_update_scaler_crtc(struct intel_crtc_state *crtc_state)drm_rect_width (&crtc_state->pipe_src),drm_rect_height (&crtc_state->pipe_src), width, height,NULL ,0 , - crtc_state->pch_pfit.enabled); + crtc_state->pch_pfit.enabled || + intel_casf_needs_scaler(crtc_state)); }/**
@@ -310,7 +312,9 @@ int skl_update_scaler_plane(struct intel_crtc_state *crtc_state, }static int intel_allocate_scaler (struct intel_crtc_scaler_state *scaler_state, -struct intel_crtc *crtc) +struct intel_crtc *crtc, +struct intel_plane_state *plane_state, +bool casf_scaler) {int i;
@@ -318,6 +322,12 @@ static int intel_allocate_scaler(struct intel_crtc_scaler_state *scaler_state,if (scaler_state->scalers[i].in_use)continue ; +/* CASF needs second scaler */ +if (!plane_state) { +if (casf_scaler && i !=1 ) +continue ; + } + scaler_state->scalers[i].in_use = true;return i;
@@ -368,7 +378,7 @@ static int intel_atomic_setup_scaler(struct intel_crtc_state *crtc_state, int num_scalers_need, struct intel_crtc *crtc, const char *name, int idx, struct intel_plane_state *plane_state, - int *scaler_id) + int *scaler_id, bool casf_scaler) { struct intel_display *display = to_intel_display(crtc);struct intel_crtc_scaler_state *scaler_state = &crtc_state->scaler_state;
@@ -377,12 +387,15 @@ static int intel_atomic_setup_scaler(struct intel_crtc_state *crtc_state,int vscale =0 ;if (*scaler_id <0 ) - *scaler_id =intel_allocate_scaler (scaler_state, crtc); + *scaler_id =intel_allocate_scaler (scaler_state, crtc, plane_state, casf_scaler);if (drm_WARN (display->drm, *scaler_id <0 ,"Cannot find scaler for %s:%d\n" , name, idx))return -EINVAL ; +if (casf_scaler) + mode =SKL_PS_SCALER_MODE_HQ ; +/* set scaler mode */ if (plane_state && plane_state->hw.fb && plane_state->hw.fb->format->is_yuv &&
@@ -512,7 +525,8 @@ static int setup_crtc_scaler(struct intel_atomic_state *state,return intel_atomic_setup_scaler (crtc_state,hweight32 (scaler_state->scaler_users), crtc,"CRTC" , crtc->base.base.id, -NULL , &scaler_state->scaler_id); +NULL , &scaler_state->scaler_id, +intel_casf_needs_scaler (crtc_state)); } static int setup_plane_scaler(struct intel_atomic_state *state,
@@ -547,7 +561,8 @@ static int setup_plane_scaler(struct intel_atomic_state *state,return intel_atomic_setup_scaler (crtc_state,hweight32 (scaler_state->scaler_users), crtc,"PLANE" , plane->base.base.id, - plane_state, &plane_state->scaler_id); + plane_state, &plane_state->scaler_id, +intel_casf_needs_scaler (crtc_state)); }/**
@@ -938,16 +953,15 @@ void skl_scaler_get_config(struct intel_crtc_state *crtc_state)continue ; id = i; - crtc_state->pch_pfit.enabled = true; pos =intel_de_read (display,SKL_PS_WIN_POS (crtc->pipe, i)); size =intel_de_read (display,SKL_PS_WIN_SZ (crtc->pipe, i));drm_rect_init (&crtc_state->pch_pfit.dst, -REG_FIELD_GET (PS_WIN_XPOS_MASK , pos), -REG_FIELD_GET (PS_WIN_YPOS_MASK , pos), -REG_FIELD_GET (PS_WIN_XSIZE_MASK , size), -REG_FIELD_GET (PS_WIN_YSIZE_MASK , size)); +REG_FIELD_GET (PS_WIN_XPOS_MASK , pos), +REG_FIELD_GET (PS_WIN_YPOS_MASK , pos), +REG_FIELD_GET (PS_WIN_XSIZE_MASK , size), +REG_FIELD_GET (PS_WIN_YSIZE_MASK , size)); scaler_state->scalers[i].in_use = true;break ;
Signature · 1 line
2.25.1
PATCH v8 5/6 drm/i915/display: Add registers and compute the strength
In reply to Nemesa GargAdd new registers and related bits. Compute the strength value and tap value based on display mode.
v2: Replace i915/dev_priv with display[Jani]
v3: Create separate file for defining register[Jani]
Add display->drm in debug prints[Jani]
v4: Rebase
v5: Fix build issue
v6: Remove erraneous condition[Ankit]
v7: Change the place of compute function
v8: Add strength, size in crtc_state_dump.
Add bits for filter size. [Ankit]
--- drivers/gpu/drm/i915/display/intel_casf.c | 96 +++++++++++++++++++ drivers/gpu/drm/i915/display/intel_casf.h | 6 +- .../gpu/drm/i915/display/intel_casf_regs.h | 22 +++++ .../drm/i915/display/intel_crtc_state_dump.c | 5 + drivers/gpu/drm/i915/display/intel_display.c | 4 + 5 files changed, 131 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/display/intel_casf.c +96 -0
@@ -17,6 +17,9 @@#define FILTER_COEFF_0_0 0#define SET_POSITIVE_SIGN (x) ((x) & (~SIGN)) +#define MAX_PIXELS_FOR_3_TAP_FILTER (1920 * 1080) +#define MAX_PIXELS_FOR_5_TAP_FILTER (3840 * 2160) +/** * DOC: Content Adaptive Sharpness Filter (CASF) *
@@ -64,6 +67,64 @@ static u16 casf_coeff(struct intel_crtc_state *crtc_state, int t)return coeff; } +/* Default LUT values to be loaded one time. */ +static const u16 lut_data[] = { +4095 ,2047 ,1364 ,1022 ,816 ,678 ,579 , +504 ,444 ,397 ,357 ,323 ,293 ,268 ,244 ,224 , +204 ,187 ,170 ,154 ,139 ,125 ,111 ,98 ,85 , +73 ,60 ,48 ,36 ,24 ,12 ,0 +}; + +void intel_filter_lut_load (struct intel_crtc *crtc, +const struct intel_crtc_state *crtc_state) +{ +struct intel_display *display =to_intel_display (crtc_state); +int i; + +intel_de_write (display,SHRPLUT_INDEX (crtc->pipe), +INDEX_AUTO_INCR |INDEX_VALUE (0 )); + +for (i =0 ; i <ARRAY_SIZE (lut_data); i++) +intel_de_write (display,SHRPLUT_DATA (crtc->pipe), + lut_data[i]); +} + +static void intel_casf_size_compute (struct intel_crtc_state *crtc_state) +{ +const struct drm_display_mode *mode = &crtc_state->hw.adjusted_mode; +u16 total_pixels = mode->hdisplay * mode->vdisplay; + +if (total_pixels <=MAX_PIXELS_FOR_3_TAP_FILTER ) + crtc_state->hw.casf_params.win_size =0 ; +else if (total_pixels <=MAX_PIXELS_FOR_5_TAP_FILTER ) + crtc_state->hw.casf_params.win_size =1 ; +else + crtc_state->hw.casf_params.win_size =2 ; +} + +void intel_casf_update_strength (struct intel_crtc_state *crtc_state) +{ +struct intel_display *display =to_intel_display (crtc_state); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); +u32 sharpness_ctl; + + sharpness_ctl =FILTER_EN |FILTER_STRENGTH (crtc_state->hw.casf_params.strength); + +switch (crtc_state->hw.casf_params.win_size) { +case 0 : + sharpness_ctl |=SHARPNESS_FILTER_SIZE_3X3 ; +break ; +case 1 : + sharpness_ctl |=SHARPNESS_FILTER_SIZE_5X5 ; +break ; +default : + sharpness_ctl |=SHARPNESS_FILTER_SIZE_7X7 ; +break ; + } + +intel_de_write (display,SHARPNESS_CTL (crtc->pipe), sharpness_ctl); +} +/* * 17 phase of 7 taps requires 119 coefficients in 60 dwords per set. * To enable casf: program scaler coefficients with the coeffients
@@ -108,6 +169,8 @@ static void intel_casf_write_coeff(struct intel_crtc_state *crtc_state)void intel_casf_enable (struct intel_crtc_state *crtc_state) { +intel_casf_update_strength (crtc_state); +intel_casf_write_coeff (crtc_state);skl_scaler_setup_casf (crtc_state);
@@ -128,8 +191,33 @@ int intel_casf_compute_config(struct intel_crtc_state *crtc_state)if (!HAS_CASF (display))return -EINVAL ; +if (crtc_state->uapi.sharpness_strength ==0 ) { + crtc_state->hw.casf_params.casf_enable = false; + crtc_state->hw.casf_params.strength =0 ; +return 0 ; + } + +/* If panel fitting enabled casf cannot be enabled */ +if (crtc_state->pch_pfit.enabled) +return -EINVAL ; + crtc_state->hw.casf_params.casf_enable = true; +/* +* HW takes a value in form (1.0 + strength) in 4.4 fixed format. +* Strength is from 0.0-14.9375 ie from 0-239. +* User can give value from 0-255 but is clamped to 239. +* Ex. User gives 85 which is 5.3125 and adding 1.0 gives 6.3125. +* 6.3125 in 4.4 format is b01100101 which is equal to 101. +* Also 85 + 16 = 101. +*/ + crtc_state->hw.casf_params.strength = +min (crtc_state->uapi.sharpness_strength,0xEF ) +0x10 ; + +intel_casf_size_compute (crtc_state); + +intel_casf_scaler_compute_config (crtc_state); +return 0 ; }
@@ -174,3 +262,11 @@ void intel_casf_scaler_compute_config(struct intel_crtc_state *crtc_state) filter_coeff[i]); } } + +void intel_casf_disable (const struct intel_crtc_state *crtc_state) +{ +struct intel_display *display =to_intel_display (crtc_state); +struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc); + +intel_de_write (display,SHARPNESS_CTL (crtc->pipe),0 ); +}
drivers/gpu/drm/i915/display/intel_casf.h +4 -2
@@ -9,6 +9,8 @@#include <linux/types.h> struct intel_crtc_state ; +struct intel_atomic_state ; +struct intel_crtc ;void intel_casf_enable (struct intel_crtc_state *crtc_state);void intel_casf_scaler_compute_config (struct intel_crtc_state *crtc_state);
@@ -16,7 +18,7 @@ int intel_casf_compute_config(struct intel_crtc_state *crtc_state);bool intel_casf_needs_scaler (const struct intel_crtc_state *crtc_state);void intel_filter_lut_load (struct intel_crtc *crtc,const struct intel_crtc_state *crtc_state); -bool intel_casf_strength_changed (struct intel_crtc_state *new_crtc_state, -const struct intel_crtc_state *old_crtc_state); +void intel_casf_update_strength (struct intel_crtc_state *new_crtc_state); +void intel_casf_disable (const struct intel_crtc_state *crtc_state);#endif /* __INTEL_CASF_H__ */
drivers/gpu/drm/i915/display/intel_casf_regs.h +22 -0
@@ -15,5 +15,27 @@#define MANTISSA_MASK REG_GENMASK(11, 3)#define MANTISSA (x) REG_FIELD_PREP(MANTISSA_MASK, (x)) +#define _SHARPNESS_CTL_A 0x682B0 +#define _SHARPNESS_CTL_B 0x68AB0 +#define SHARPNESS_CTL (pipe) _MMIO_PIPE(pipe, _SHARPNESS_CTL_A, _SHARPNESS_CTL_B) +#define FILTER_EN REG_BIT(31) +#define FILTER_STRENGTH_MASK REG_GENMASK(15, 8) +#define FILTER_STRENGTH (x) REG_FIELD_PREP(FILTER_STRENGTH_MASK, (x)) +#define FILTER_SIZE_MASK REG_GENMASK(1, 0) +#define SHARPNESS_FILTER_SIZE_3X3 REG_FIELD_PREP(FILTER_SIZE_MASK, 0) +#define SHARPNESS_FILTER_SIZE_5X5 REG_FIELD_PREP(FILTER_SIZE_MASK, 1) +#define SHARPNESS_FILTER_SIZE_7X7 REG_FIELD_PREP(FILTER_SIZE_MASK, 2) + +#define _SHRPLUT_DATA_A 0x682B8 +#define _SHRPLUT_DATA_B 0x68AB8 +#define SHRPLUT_DATA (pipe) _MMIO_PIPE(pipe, _SHRPLUT_DATA_A, _SHRPLUT_DATA_B) + +#define _SHRPLUT_INDEX_A 0x682B4 +#define _SHRPLUT_INDEX_B 0x68AB4 +#define SHRPLUT_INDEX (pipe) _MMIO_PIPE(pipe, _SHRPLUT_INDEX_A, _SHRPLUT_INDEX_B) +#define INDEX_AUTO_INCR REG_BIT(10) +#define INDEX_VALUE_MASK REG_GENMASK(4, 0) +#define INDEX_VALUE (x) REG_FIELD_PREP(INDEX_VALUE_MASK, (x)) +#endif /* __INTEL_CASF_REGS__ */
drivers/gpu/drm/i915/display/intel_crtc_state_dump.c +5 -0
@@ -372,6 +372,11 @@ void intel_crtc_state_dump(const struct intel_crtc_state *pipe_config,intel_vdsc_state_dump (&p,0 , pipe_config); +if (HAS_CASF (i915)) { +drm_printf (&p,"sharpness strength : %d\n" , pipe_config->hw.casf_params.strength); +drm_printf (&p,"sharpness tap size : %d\n" , pipe_config->hw.casf_params.win_size); + } + dump_planes:if (!state)return ;
drivers/gpu/drm/i915/display/intel_display.c +4 -0
@@ -4655,6 +4655,10 @@ static int intel_crtc_atomic_check(struct intel_atomic_state *state,return ret; } + ret =intel_casf_compute_config (crtc_state); +if (ret) +return ret; +if (DISPLAY_VER (dev_priv) >=9 ) { if (intel_crtc_needs_modeset(crtc_state) || intel_crtc_needs_fastset(crtc_state) ||
Signature · 1 line
2.25.1
PATCH v5 6/6 drm/i915/display: Load the lut values and enable sharpness
In reply to Nemesa GargLoad the lut values during pipe enable.
v2: Add the display version check
v3: Fix build issue
v4: Rebase
v5: Add HAS_CASF macro. [Ankit]
Add scaler_id check while reading state. [Ankit]
--- drivers/gpu/drm/i915/display/intel_crtc.c | 3 ++ drivers/gpu/drm/i915/display/intel_display.c | 31 ++++++++++++++++++ .../drm/i915/display/intel_display_types.h | 2 ++ drivers/gpu/drm/i915/display/skl_scaler.c | 32 +++++++++++++++---- 4 files changed, 62 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/display/intel_crtc.c +3 -0
@@ -391,6 +391,9 @@ int intel_crtc_init(struct intel_display *display, enum pipe pipe)drm_WARN_ON (display->drm,drm_crtc_index (&crtc->base) != crtc->pipe); +if (HAS_CASF (dev_priv)) +drm_crtc_create_sharpness_strength_property (&crtc->base); +return 0 ; fail:
drivers/gpu/drm/i915/display/intel_display.c +31 -0
@@ -1177,6 +1177,24 @@ static bool audio_disabling(const struct intel_crtc_state *old_crtc_state, memcmp(old_crtc_state->eld, new_crtc_state->eld, MAX_ELD_BYTES) != 0); } +static bool intel_casf_enabling (const struct intel_crtc_state *new_crtc_state, +const struct intel_crtc_state *old_crtc_state) +{ +if (!new_crtc_state->hw.active) +return false; + +return is_enabling (hw.casf_params.casf_enable, old_crtc_state, new_crtc_state); +} + +static bool intel_casf_disabling (const struct intel_crtc_state *new_crtc_state, +const struct intel_crtc_state *old_crtc_state) +{ +if (!new_crtc_state->hw.active) +return false; + +return is_disabling (hw.casf_params.casf_enable, old_crtc_state, new_crtc_state); +} +#undef is_disabling#undef is_enabling
@@ -1322,6 +1340,9 @@ static void intel_pre_plane_update(struct intel_atomic_state *state,if (audio_disabling (old_crtc_state, new_crtc_state))intel_encoders_audio_disable (state, crtc); +if (intel_casf_disabling (old_crtc_state, new_crtc_state)) +intel_casf_disable (new_crtc_state); +intel_drrs_deactivate (old_crtc_state);intel_psr_pre_plane_update (state, crtc);
@@ -1789,6 +1810,8 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,struct intel_display *display =to_intel_display (state);const struct intel_crtc_state *new_crtc_state =intel_atomic_get_new_crtc_state (state, crtc); +const struct intel_crtc_state *old_crtc_state = +intel_atomic_get_old_crtc_state (state, crtc);struct drm_i915_private *dev_priv =to_i915 (crtc->base.dev);enum transcoder cpu_transcoder = new_crtc_state->cpu_transcoder;struct intel_crtc *pipe_crtc;
@@ -1882,6 +1905,9 @@ static void hsw_crtc_enable(struct intel_atomic_state *state,intel_crtc_wait_for_next_vblank (wa_crtc); } } + +if (intel_casf_enabling (new_crtc_state, old_crtc_state)) +intel_filter_lut_load (crtc, new_crtc_state); }void ilk_pfit_disable (const struct intel_crtc_state *old_crtc_state)
@@ -7250,6 +7276,11 @@ static void intel_pre_update_crtc(struct intel_atomic_state *state,intel_vrr_set_transcoder_timings (new_crtc_state); } +if (intel_casf_enabling (new_crtc_state, old_crtc_state)) +intel_casf_enable (new_crtc_state); +else if (new_crtc_state->hw.casf_params.strength != old_crtc_state->hw.casf_params.strength) +intel_casf_update_strength (new_crtc_state); +intel_fbc_update (state, crtc);drm_WARN_ON (display->drm, !intel_display_power_is_enabled (display,POWER_DOMAIN_DC_OFF ));
drivers/gpu/drm/i915/display/intel_display_types.h +2 -0
@@ -944,6 +944,8 @@ struct intel_casf {struct scaler_filter_coeff coeff[SCALER_FILTER_NUM_TAPS ];u8 win_size;bool casf_enable; +bool strength_changed; +u8 strength; };void intel_io_mmio_fw_write (void *ctx,i915_reg_t reg,u32 val);
drivers/gpu/drm/i915/display/skl_scaler.c +26 -6
@@ -10,6 +10,7 @@#include "intel_display_trace.h" #include "intel_display_types.h" #include "intel_fb.h" +#include "intel_casf_regs.h" #include "skl_scaler.h" #include "skl_universal_plane.h"
@@ -946,7 +947,7 @@ void skl_scaler_get_config(struct intel_crtc_state *crtc_state)/* find scaler attached to this pipe */ for (i =0 ; i < crtc->num_scalers; i++) { -u32 ctl, pos, size; +u32 ctl, pos, size, sharp; ctl =intel_de_read (display,SKL_PS_CTRL (crtc->pipe, i));if ((ctl & (PS_SCALER_EN |PS_BINDING_MASK )) != (PS_SCALER_EN |PS_BINDING_PIPE ))
@@ -954,14 +955,33 @@ void skl_scaler_get_config(struct intel_crtc_state *crtc_state) id = i; +if (HAS_CASF (display) && id ==1 ) { + sharp =intel_de_read (display,SHARPNESS_CTL (crtc->pipe)); +if (sharp &FILTER_EN ) { +if (drm_WARN_ON (display->drm, +REG_FIELD_GET (FILTER_STRENGTH_MASK , sharp) <16 )) + crtc_state->hw.casf_params.strength =0 ; +else + crtc_state->hw.casf_params.strength = +REG_FIELD_GET (FILTER_STRENGTH_MASK , sharp) -16 ; + crtc_state->hw.casf_params.casf_enable = true; + crtc_state->hw.casf_params.win_size = +REG_FIELD_GET (FILTER_SIZE_MASK , sharp); + } + } + +if (!crtc_state->hw.casf_params.casf_enable) + crtc_state->pch_pfit.enabled = true; + pos =intel_de_read (display,SKL_PS_WIN_POS (crtc->pipe, i)); size =intel_de_read (display,SKL_PS_WIN_SZ (crtc->pipe, i)); -drm_rect_init (&crtc_state->pch_pfit.dst, -REG_FIELD_GET (PS_WIN_XPOS_MASK , pos), -REG_FIELD_GET (PS_WIN_YPOS_MASK , pos), -REG_FIELD_GET (PS_WIN_XSIZE_MASK , size), -REG_FIELD_GET (PS_WIN_YSIZE_MASK , size)); +if (!crtc_state->hw.casf_params.casf_enable) +drm_rect_init (&crtc_state->pch_pfit.dst, +REG_FIELD_GET (PS_WIN_XPOS_MASK , pos), +REG_FIELD_GET (PS_WIN_YPOS_MASK , pos), +REG_FIELD_GET (PS_WIN_XSIZE_MASK , size), +REG_FIELD_GET (PS_WIN_YSIZE_MASK , size)); scaler_state->scalers[i].in_use = true;break ;
Signature · 1 line
2.25.1
Patchwork
CI✗ Fi.CI.CHECKPATCH: warning for Introduce drm sharpness property (rev8)
In reply to Nemesa Garg== Series Details ==
== Series Details ==
Series: Introduce drm sharpness property (rev8)
URL : https://patchwork.freedesktop.org/series/138754/
State : warning
== Summary ==
Error: dim checkpatch failed01aefcb25d32 drm: Introduce sharpness strength property2a5374b660b1 drm/i915/display: Compute the scaler filter coefficients
-:38: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #38:
new file mode 100644
total: 0 errors, 1 warnings, 0 checks, 235 lines checked 9f4cdff79540 drm/i915/display: Enable the second scaler -:64: CHECK:MULTIPLE_ASSIGNMENTS: multiple assignments should be avoided #64: FILE: drivers/gpu/drm/i915/display/skl_scaler.c:744:
+ x = y = 0;
total: 0 errors, 0 warnings, 1 checks, 71 lines checked d9c92f923afe drm/i915/display: Configure the second scaler for sharpness 10e262efd25d drm/i915/display: Add registers and compute the strength fe63e8052d55 drm/i915/display: Load the lut values and enable sharpness
Patchwork
CI✗ Fi.CI.SPARSE: warning for Introduce drm sharpness property (rev8)
In reply to Nemesa Garg== Series Details ==
== Series Details ==
Series: Introduce drm sharpness property (rev8)
URL : https://patchwork.freedesktop.org/series/138754/
State : warning
== Summary ==
Error: dim sparse failed
Sparse version: v0.6.2
Fast mode used, each commit won't be checked separately.
Patchwork
CI✗ i915.CI.BAT: failure for Introduce drm sharpness property (rev8)
In reply to Nemesa Garg== Series Details ==
== Series Details ==
Series: Introduce drm sharpness property (rev8)
URL : https://patchwork.freedesktop.org/series/138754/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_16136 -> Patchwork_138754v8
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_138754v8 absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes
introduced in Patchwork_138754v8, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/index.html
Participating hosts (42 -> 42)
------------------------------
Additional (1): fi-pnv-d510
Missing (1): fi-snb-2520m
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_138754v8:
### IGT changes ###
#### Possible regressions ####
* igt@debugfs_test@read_all_entries:
- fi-elk-e7500: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-elk-e7500/igt@debugfs_test@read_all_entries.html
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-elk-e7500/igt@debugfs_test@read_all_entries.html
- bat-adls-6: [PASS][3] -> [ABORT][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-adls-6/igt@debugfs_test@read_all_entries.html
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-adls-6/igt@debugfs_test@read_all_entries.html
- bat-jsl-1: [PASS][5] -> [ABORT][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-jsl-1/igt@debugfs_test@read_all_entries.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-jsl-1/igt@debugfs_test@read_all_entries.html
- fi-tgl-1115g4: [PASS][7] -> [ABORT][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-tgl-1115g4/igt@debugfs_test@read_all_entries.html
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-tgl-1115g4/igt@debugfs_test@read_all_entries.html
- fi-blb-e6850: [PASS][9] -> [ABORT][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-blb-e6850/igt@debugfs_test@read_all_entries.html
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-blb-e6850/igt@debugfs_test@read_all_entries.html
- fi-bsw-n3050: [PASS][11] -> [ABORT][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-bsw-n3050/igt@debugfs_test@read_all_entries.html
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-bsw-n3050/igt@debugfs_test@read_all_entries.html
- bat-arlh-3: [PASS][13] -> [ABORT][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-arlh-3/igt@debugfs_test@read_all_entries.html
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-arlh-3/igt@debugfs_test@read_all_entries.html
- fi-pnv-d510: NOTRUN -> [ABORT][15]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-pnv-d510/igt@debugfs_test@read_all_entries.html
- bat-dg1-7: [PASS][16] -> [ABORT][17]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-dg1-7/igt@debugfs_test@read_all_entries.html
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-dg1-7/igt@debugfs_test@read_all_entries.html
- fi-glk-j4005: [PASS][18] -> [ABORT][19]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-glk-j4005/igt@debugfs_test@read_all_entries.html
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-glk-j4005/igt@debugfs_test@read_all_entries.html
- bat-twl-1: [PASS][20] -> [ABORT][21]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-twl-1/igt@debugfs_test@read_all_entries.html
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-twl-1/igt@debugfs_test@read_all_entries.html
- fi-bsw-nick: [PASS][22] -> [ABORT][23]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-bsw-nick/igt@debugfs_test@read_all_entries.html
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-bsw-nick/igt@debugfs_test@read_all_entries.html
- bat-rplp-1: [PASS][24] -> [ABORT][25]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-rplp-1/igt@debugfs_test@read_all_entries.html
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-rplp-1/igt@debugfs_test@read_all_entries.html
- fi-rkl-11600: [PASS][26] -> [ABORT][27]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-rkl-11600/igt@debugfs_test@read_all_entries.html
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-rkl-11600/igt@debugfs_test@read_all_entries.html
- bat-jsl-3: [PASS][28] -> [ABORT][29]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-jsl-3/igt@debugfs_test@read_all_entries.html
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-jsl-3/igt@debugfs_test@read_all_entries.html
* igt@i915_module_load@load:
- fi-ilk-650: [PASS][30] -> [ABORT][31]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-ilk-650/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-ilk-650/igt@[email protected]
- fi-hsw-4770: [PASS][32] -> [ABORT][33]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-hsw-4770/igt@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-hsw-4770/igt@[email protected]
- fi-ivb-3770: [PASS][34] -> [ABORT][35]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-ivb-3770/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-ivb-3770/igt@[email protected]
* igt@i915_pm_rpm@module-reload:
- bat-kbl-2: [PASS][36] -> [FAIL][37] +4 other tests fail
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-kbl-2/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-kbl-2/igt@[email protected]
- bat-arlh-2: [PASS][38] -> [FAIL][39] +2 other tests fail
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-arlh-2/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-arlh-2/igt@[email protected]
- bat-adlp-11: [PASS][40] -> [FAIL][41] +2 other tests fail
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-adlp-11/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-adlp-11/igt@[email protected]
* igt@i915_selftest@live@client:
- fi-kbl-guc: [PASS][42] -> [DMESG-WARN][43] +39 other tests dmesg-warn
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-kbl-guc/igt@i915_selftest@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-kbl-guc/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@dmabuf:
- bat-arlh-2: [PASS][44] -> [DMESG-WARN][45] +39 other tests dmesg-warn
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-arlh-2/igt@i915_selftest@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-arlh-2/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@gem_contexts:
- bat-mtlp-6: [PASS][46] -> [DMESG-WARN][47] +39 other tests dmesg-warn
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-mtlp-6/igt@i915_selftest@live@gem_contexts.html
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-mtlp-6/igt@i915_selftest@live@gem_contexts.html
* igt@i915_selftest@live@gt_timelines:
- bat-adlp-11: [PASS][48] -> [DMESG-WARN][49] +7 other tests dmesg-warn
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-adlp-11/igt@i915_selftest@live@gt_timelines.html
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-adlp-11/igt@i915_selftest@live@gt_timelines.html
* igt@i915_selftest@live@guc_multi_lrc:
- bat-dg1-6: [PASS][50] -> [DMESG-WARN][51] +47 other tests dmesg-warn
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-dg1-6/igt@i915_selftest@live@guc_multi_lrc.html
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-dg1-6/igt@i915_selftest@live@guc_multi_lrc.html
* igt@i915_selftest@live@perf:
- fi-kbl-x1275: [PASS][52] -> [DMESG-WARN][53] +39 other tests dmesg-warn
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-kbl-x1275/igt@i915_selftest@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-kbl-x1275/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@requests:
- bat-kbl-2: [PASS][54] -> [DMESG-WARN][55] +39 other tests dmesg-warn
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-kbl-2/igt@i915_selftest@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-kbl-2/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@ring_submission:
- fi-kbl-8809g: [PASS][56] -> [DMESG-WARN][57] +39 other tests dmesg-warn
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-kbl-8809g/igt@i915_selftest@live@ring_submission.html
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-kbl-8809g/igt@i915_selftest@live@ring_submission.html
* igt@kms_chamelium_hpd@dp-hpd-fast:
- bat-dg2-13: [PASS][58] -> [FAIL][59] +6 other tests fail
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-dg2-13/igt@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-dg2-13/igt@[email protected]
* igt@kms_force_connector_basic@force-connector-state:
- bat-mtlp-6: [PASS][60] -> [FAIL][61] +4 other tests fail
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-mtlp-6/igt@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-mtlp-6/igt@[email protected]
* igt@kms_pm_rpm@basic-pci-d3-state:
- fi-kbl-8809g: [PASS][62] -> [FAIL][63] +4 other tests fail
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-kbl-8809g/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-kbl-8809g/igt@[email protected]
- fi-kbl-guc: [PASS][64] -> [FAIL][65] +4 other tests fail
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-kbl-guc/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-kbl-guc/igt@[email protected]
- bat-dg1-6: [PASS][66] -> [FAIL][67] +4 other tests fail
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-dg1-6/igt@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-dg1-6/igt@[email protected]
* igt@kms_pm_rpm@basic-rte:
- fi-kbl-x1275: [PASS][68] -> [FAIL][69] +3 other tests fail
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-kbl-x1275/igt@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-kbl-x1275/igt@[email protected]
#### Warnings ####
* igt@kms_chamelium_hpd@vga-hpd-fast:
- bat-dg2-13: [SKIP][70] ([Intel XE#484] / [i915#4550]) -> [FAIL][71] +1 other test fail
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-dg2-13/igt@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-dg2-13/igt@[email protected]
* igt@kms_hdmi_inject@inject-audio:
- fi-kbl-x1275: [SKIP][72] -> [FAIL][73]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-kbl-x1275/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-kbl-x1275/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_138754v8 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@debugfs_test@read_all_entries:
- fi-cfl-8109u: [PASS][74] -> [ABORT][75] ([i915#13525])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-cfl-8109u/igt@debugfs_test@read_all_entries.html
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-cfl-8109u/igt@debugfs_test@read_all_entries.html
- fi-kbl-7567u: [PASS][76] -> [ABORT][77] ([i915#13525])
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-kbl-7567u/igt@debugfs_test@read_all_entries.html
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-kbl-7567u/igt@debugfs_test@read_all_entries.html
- bat-dg2-8: [PASS][78] -> [ABORT][79] ([i915#13525])
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-dg2-8/igt@debugfs_test@read_all_entries.html
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-dg2-8/igt@debugfs_test@read_all_entries.html
- fi-cfl-guc: [PASS][80] -> [ABORT][81] ([i915#13525])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-cfl-guc/igt@debugfs_test@read_all_entries.html
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-cfl-guc/igt@debugfs_test@read_all_entries.html
- bat-arls-6: [PASS][82] -> [ABORT][83] ([i915#13525])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-arls-6/igt@debugfs_test@read_all_entries.html
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-arls-6/igt@debugfs_test@read_all_entries.html
- bat-adlp-9: [PASS][84] -> [ABORT][85] ([i915#13525])
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-adlp-9/igt@debugfs_test@read_all_entries.html
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-adlp-9/igt@debugfs_test@read_all_entries.html
- bat-rpls-4: [PASS][86] -> [ABORT][87] ([i915#13525])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-rpls-4/igt@debugfs_test@read_all_entries.html
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-rpls-4/igt@debugfs_test@read_all_entries.html
- fi-cfl-8700k: [PASS][88] -> [ABORT][89] ([i915#13525])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/fi-cfl-8700k/igt@debugfs_test@read_all_entries.html
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/fi-cfl-8700k/igt@debugfs_test@read_all_entries.html
- bat-apl-1: [PASS][90] -> [ABORT][91] ([i915#13525])
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-apl-1/igt@debugfs_test@read_all_entries.html
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-apl-1/igt@debugfs_test@read_all_entries.html
- bat-dg2-14: [PASS][92] -> [ABORT][93] ([i915#13525])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-dg2-14/igt@debugfs_test@read_all_entries.html
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-dg2-14/igt@debugfs_test@read_all_entries.html
- bat-arls-5: [PASS][94] -> [ABORT][95] ([i915#13525])
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-arls-5/igt@debugfs_test@read_all_entries.html
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-arls-5/igt@debugfs_test@read_all_entries.html
- bat-adlp-6: [PASS][96] -> [ABORT][97] ([i915#13525])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-adlp-6/igt@debugfs_test@read_all_entries.html
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-adlp-6/igt@debugfs_test@read_all_entries.html
- bat-dg2-9: [PASS][98] -> [ABORT][99] ([i915#13525])
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-dg2-9/igt@debugfs_test@read_all_entries.html
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-dg2-9/igt@debugfs_test@read_all_entries.html
- bat-dg2-11: [PASS][100] -> [ABORT][101] ([i915#13525])
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-dg2-11/igt@debugfs_test@read_all_entries.html
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-dg2-11/igt@debugfs_test@read_all_entries.html
* igt@i915_selftest@live:
- bat-adlp-11: [PASS][102] -> [ABORT][103] ([i915#9413]) +1 other test abort
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_16136/bat-adlp-11/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/bat-adlp-11/igt@[email protected]
[Intel XE#484]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/484
[i915#13525]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13525
[i915#4550]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4550
[i915#9413]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9413
Build changes
-------------
* Linux: CI_DRM_16136 -> Patchwork_138754v8
CI-20190529: 20190529
CI_DRM_16136: 371df966fcc8fbfb21725c2e5eb32b5c1eb12b36 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_8230: 8230
Patchwork_138754v8: 371df966fcc8fbfb21725c2e5eb32b5c1eb12b36 @ git://anongit.freedesktop.org/gfx-ci/linux
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_138754v8/index.html