Introduce drm scaling filter property
Subsystems (5)
v5 cover Introduce drm scaling filter property
Earlier, I kept this series on hold since we wanted to have a reference userspace implementation in place.
Now, Sameer has implemented Integer scaling in Kodi Retro gaming framework which demonstrate how Integer scaling gives distinctive look to pixel art games when played on higher resolution monitors.
Kodi patches are almost reviewed and closer to merge now. Here is the userspace patch series link:
https://github.com/xbmc/xbmc/pull/18194
Background on Integer scaling:
Integer scaling (IS) is a nearest-neighbor upscaling technique that simply scales up the existing pixels by an integer (i.e., whole number) multiplier. Nearest-neighbor (NN) interpolation works by filling in the missing color values in the upscaled image with that of the coordinate-mapped nearest source pixel value.
Both IS and NN preserve the clarity of the original image. In contrast, traditional upscaling algorithms, such as bilinear or bicubic interpolation, result in blurry upscaled images because they employ interpolation techniques that smooth out the transition from one pixel to another. Therefore, integer scaling is particularly useful for pixel art games that rely on sharp, blocky images to deliver their distinctive look.
Many gaming communities have been asking for integer-mode scaling support, some links and background:
https://software.intel.com/en-us/articles/integer-scaling-support-on-intel-graphics
http://tanalin.com/en/articles/lossless-scaling/
https://community.amd.com/thread/209107
https://www.nvidia.com/en-us/geforce/forums/game-ready-drivers/13/1002/feature-request-nonblurry-upscaling-at-integer-rat/
* Changes in v5:
- Rebase to latest drm-tip.
Pankaj Bharadiya (5):
drm: Introduce plane and CRTC scaling filter properties drm/drm-kms.rst: Add plane and CRTC scaling filter property
documentation
drm/i915: Introduce scaling filter related registers and bit fields. drm/i915/display: Add Nearest-neighbor based integer scaling support drm/i915: Enable scaling filter for plane and CRTC
Documentation/gpu/drm-kms.rst | 12 ++ drivers/gpu/drm/drm_atomic_uapi.c | 8 ++ drivers/gpu/drm/drm_crtc.c | 48 +++++++ drivers/gpu/drm/drm_crtc_internal.h | 3 + drivers/gpu/drm/drm_plane.c | 90 ++++++++++++++ .../gpu/drm/i915/display/intel_atomic_plane.c | 1 + drivers/gpu/drm/i915/display/intel_display.c | 117 +++++++++++++++++- drivers/gpu/drm/i915/display/intel_display.h | 4 + .../drm/i915/display/intel_display_types.h | 2 + drivers/gpu/drm/i915/display/intel_sprite.c | 15 ++- drivers/gpu/drm/i915/i915_reg.h | 22 ++++ include/drm/drm_crtc.h | 16 +++ include/drm/drm_plane.h | 21 ++++ 13 files changed, 355 insertions(+), 4 deletions(-)
Signature · 6 lines
2.23.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v5 1/5 drm: Introduce plane and CRTC scaling filter properties
Introduce per-plane and per-CRTC scaling filter properties to allow userspace to select the driver's default scaling filter or Nearest-neighbor(NN) filter for upscaling operations on CRTC and plane.
Drivers can set up this property for a plane by calling drm_plane_create_scaling_filter() and for a CRTC by calling drm_crtc_create_scaling_filter().
NN filter works by filling in the missing color values in the upscaled image with that of the coordinate-mapped nearest source pixel value.
NN filter for integer multiple scaling can be particularly useful for for pixel art games that rely on sharp, blocky images to deliver their distinctive look.
changes since v3:
* Refactor code, add new function for common code (Ville) changes since v2:
* Create per-plane and per-CRTC scaling filter property (Ville) changes since v1:
* None
changes since RFC:
* Add separate properties for plane and CRTC (Ville)
--- drivers/gpu/drm/drm_atomic_uapi.c | 8 +++ drivers/gpu/drm/drm_crtc.c | 48 +++++++++++++++ drivers/gpu/drm/drm_crtc_internal.h | 3 + drivers/gpu/drm/drm_plane.c | 90 +++++++++++++++++++++++++++++ include/drm/drm_crtc.h | 16 +++++ include/drm/drm_plane.h | 21 +++++++ 6 files changed, 186 insertions(+)
drivers/gpu/drm/drm_atomic_uapi.c +8 -0
@@ -469,6 +469,8 @@ static int drm_atomic_crtc_set_property(struct drm_crtc *crtc,return -EFAULT ;set_out_fence_for_crtc (state->state, crtc, fence_ptr); + }else if (property == crtc->scaling_filter_property) { + state->scaling_filter = val; }else if (crtc->funcs->atomic_set_property) {return crtc->funcs->atomic_set_property (crtc, state, property, val); }else {
@@ -503,6 +505,8 @@ drm_atomic_crtc_get_property(struct drm_crtc *crtc, *val = (state->gamma_lut) ? state->gamma_lut->base.id :0 ; else if (property == config->prop_out_fence_ptr) *val = 0; + else if (property == crtc->scaling_filter_property) + *val = state->scaling_filter; else if (crtc->funcs->atomic_get_property) return crtc->funcs->atomic_get_property(crtc, state, property, val); else
@@ -585,6 +589,8 @@ static int drm_atomic_plane_set_property(struct drm_plane *plane,sizeof (struct drm_rect ), &replaced);return ret; + }else if (property == plane->scaling_filter_property) { + state->scaling_filter = val; }else if (plane->funcs->atomic_set_property) {return plane->funcs->atomic_set_property (plane, state, property, val);
@@ -643,6 +649,8 @@ drm_atomic_plane_get_property(struct drm_plane *plane, }else if (property == config->prop_fb_damage_clips) { *val = (state->fb_damage_clips) ? state->fb_damage_clips->base.id :0 ; + }else if (property == plane->scaling_filter_property) { + *val = state->scaling_filter; }else if (plane->funcs->atomic_get_property) {return plane->funcs->atomic_get_property (plane, state, property, val); }else {
drivers/gpu/drm/drm_crtc.c +48 -0
51 lines not on this page · raw message
drivers/gpu/drm/drm_crtc_internal.h +3 -0
@@ -72,6 +72,9 @@ int drm_crtc_force_disable(struct drm_crtc *crtc);struct dma_fence *drm_crtc_create_fence (struct drm_crtc *crtc); +struct drm_property * +drm_create_scaling_filter_prop (struct drm_device *dev, +unsigned int supported_filters);/* IOCTLs */ int drm_mode_getcrtc (struct drm_device *dev,void *data,struct drm_file *file_priv);
drivers/gpu/drm/drm_plane.c +90 -0
93 lines not on this page · raw message
include/drm/drm_crtc.h +16 -0
@@ -324,6 +324,13 @@ struct drm_crtc_state {*/ bool self_refresh_active; +/** +* @scaling_filter: +* +* Scaling filter to be applied +*/ +enum drm_scaling_filter scaling_filter; +/** * @event: *
@@ -1083,6 +1090,12 @@ struct drm_crtc {/** @properties: property tracking for this CRTC */ struct drm_object_properties properties; +/** +* @scaling_filter_property: property to apply a particular filter while +* scaling. +*/ +struct drm_property *scaling_filter_property; +/** * @state: *
@@ -1266,4 +1279,7 @@ static inline struct drm_crtc *drm_crtc_find(struct drm_device *dev,#define drm_for_each_crtc (crtc, dev) \ list_for_each_entry(crtc, &(dev)->mode_config.crtc_list, head) +int drm_crtc_create_scaling_filter_property (struct drm_crtc *crtc, +unsigned int supported_filters); +#endif /* __DRM_CRTC_H__ */
include/drm/drm_plane.h +21 -0
@@ -35,6 +35,11 @@ struct drm_crtc;struct drm_printer ;struct drm_modeset_acquire_ctx ; +enum drm_scaling_filter { +DRM_SCALING_FILTER_DEFAULT , +DRM_SCALING_FILTER_NEAREST_NEIGHBOR , +}; +/** * struct drm_plane_state - mutable plane state *
@@ -214,6 +219,13 @@ struct drm_plane_state {*/ bool visible; +/** +* @scaling_filter: +* +* Scaling filter to be applied +*/ +enum drm_scaling_filter scaling_filter; +/** * @commit: Tracks the pending commit to prevent use-after-free conditions, * and for async plane updates.
@@ -724,6 +736,12 @@ struct drm_plane {* See drm_plane_create_color_properties(). */ struct drm_property *color_range_property; + +/** +* @scaling_filter_property: property to apply a particular filter while +* scaling. +*/ +struct drm_property *scaling_filter_property; };#define obj_to_plane (x) container_of(x, struct drm_plane, base)
@@ -862,4 +880,7 @@ drm_plane_get_damage_clips(const struct drm_plane_state *state) state->fb_damage_clips->data : NULL); } +int drm_plane_create_scaling_filter_property (struct drm_plane *plane, +unsigned int supported_filters); +#endif
Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
RE: [Intel-gfx] [PATCH v5 1/5] drm: Introduce plane and CRTC scaling filter properties
Quoted 171 lines
-----Original Message-----
From: Intel-gfx <[email protected]> On Behalf Of Pankaj Bharadiya
Sent: Monday, August 3, 2020 10:00 AM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Lattannavar, Sameer <[email protected]>; Maarten Lankhorst <[email protected]>; Maxime Ripard <[email protected]>; Thomas Zimmermann <[email protected]>; David Airlie <[email protected]>
Subject: [Intel-gfx] [PATCH v5 1/5] drm: Introduce plane and CRTC scaling filter propertiesIntroduce per-plane and per-CRTC scaling filter properties to allow userspace to select the driver's default scaling filter or
Nearest-neighbor(NN) filter for upscaling operations on CRTC and plane.Drivers can set up this property for a plane by calling
drm_plane_create_scaling_filter()and for a CRTC by callingdrm_crtc_create_scaling_filter().NN filter works by filling in the missing color values in the upscaled image with that of the coordinate-mapped nearest source pixel value.
NN filter for integer multiple scaling can be particularly useful for for pixel art games that rely on sharp, blocky images to deliver their distinctive look.
changes since v3:
* Refactor code, add new function for common code (Ville) changes since v2:
* Create per-plane and per-CRTC scaling filter property (Ville) changes since v1:
* None
changes since RFC:
* Add separate properties for plane and CRTC (Ville)Signed-off-by Pankaj Bharadiya <[email protected]>--- drivers/gpu/drm/drm_atomic_uapi.c | 8 +++ drivers/gpu/drm/drm_crtc.c | 48 +++++++++++++++ drivers/gpu/drm/drm_crtc_internal.h | 3 + drivers/gpu/drm/drm_plane.c | 90 +++++++++++++++++++++++++++++ include/drm/drm_crtc.h | 16 +++++ include/drm/drm_plane.h | 21 +++++++ 6 files changed, 186 insertions(+)drivers/gpu/drm/drm_atomic_uapi.c +2
-0@@ -469,6 +469,8 @@ static int drm_atomic_crtc_set_property(struct drm_crtc *crtc, return -EFAULT ;set_out_fence_for_crtc (state->state, crtc, fence_ptr); + }else if (property == crtc->scaling_filter_property) { + state->scaling_filter = val; }else if (crtc->funcs->atomic_set_property) { return crtc->funcs->atomic_set_property(crtc, state, property,val);
drivers/gpu/drm/drm_atomic_uapi.c +2
-0}else {@@ -503,6 +505,8 @@ drm_atomic_crtc_get_property(struct drm_crtc *crtc, *val = (state->gamma_lut) ? state->gamma_lut->base.id :0 ; else if (property == config->prop_out_fence_ptr) *val = 0; + else if (property == crtc->scaling_filter_property) + *val = state->scaling_filter; else if (crtc->funcs->atomic_get_property) return crtc->funcs->atomic_get_property(crtc, state, property, val);drivers/gpu/drm/drm_atomic_uapi.c +2
-0else @@ -585,6 +589,8 @@ static int drm_atomic_plane_set_property(struct drm_plane *plane,sizeof (struct drm_rect ), &replaced);return ret; + }else if (property == plane->scaling_filter_property) { + state->scaling_filter = val; }else if (plane->funcs->atomic_set_property) { return plane->funcs->atomic_set_property(plane, state,drivers/gpu/drm/drm_atomic_uapi.c +2
-0property, val);@@ -643,6 +649,8 @@ drm_atomic_plane_get_property(struct drm_plane *plane, }else if (property == config->prop_fb_damage_clips) { *val = (state->fb_damage_clips) ? state->fb_damage_clips->base.id :0 ; + }else if (property == plane->scaling_filter_property) { + *val = state->scaling_filter; }else if (plane->funcs->atomic_get_property) { return plane->funcs->atomic_get_property(plane, state,property, val);
drivers/gpu/drm/drm_atomic_uapi.c +0
-0}else {drivers/gpu/drm/drm_crtc.c index renamed from drivers/gpu/drm/drm_crtc.c +0
-0
283bcc4362ca..70f5cd9704ba100644drivers/gpu/drm/drm_crtc.c +49
-0@@ -776,3 +776,51 @@ int drm_mode_crtc_set_obj_prop(structdrm_mode_object *obj, return ret; } + +/** +* DOC: CRTC scaling filter property +* +* SCALING_FILTER: +* +* Indicates scaling filter to be used for CRTC scaler +* +* The value of this property can be one of the following: +* Default: +* Driver's default scaling filter +* Nearest Neighbor: +* Nearest Neighbor scaling filter +* +* Drivers can set up this property for a CRTC by calling +* drm_crtc_create_scaling_filter_property +*/ + +/** +* drm_crtc_create_scaling_filter_property - create a new scaling +filter +* property +* +* @crtc: drm CRTC +* @supported_filters: bitmask of supported scaling filters, must include +* BIT(DRM_SCALING_FILTER_DEFAULT). +* +* This function lets driver to enable the scaling filter property on a +given +* CRTC. +* +* RETURNS: +* Zero for success or -errno +*/ +int drm_crtc_create_scaling_filter_property (struct drm_crtc *crtc, +unsigned int supported_filters) { +struct drm_property *prop = +drm_create_scaling_filter_prop (crtc->dev, supported_filters); + +if (IS_ERR (prop)) +return PTR_ERR (prop); + +drm_object_attach_property (&crtc->base, prop, +DRM_SCALING_FILTER_DEFAULT ); + crtc->scaling_filter_property = prop; + +return 0 ; +} +EXPORT_SYMBOL (drm_crtc_create_scaling_filter_property);drivers/gpu/drm/drm_crtc_internal.h +3
-0@@ -72,6 +72,9 @@ int drm_crtc_force_disable(struct drm_crtc *crtc);struct dma_fence *drm_crtc_create_fence (struct drm_crtc *crtc); +struct drm_property * +drm_create_scaling_filter_prop (struct drm_device *dev, +unsigned int supported_filters);/* IOCTLs */ int drm_mode_getcrtc (struct drm_device *dev, void *data, struct drm_file *file_priv); diff --git
a/drivers/gpu/drm/drm_plane.cb/drivers/gpu/drm/drm_plane.cindexb7b90b3a2e38..de3888572684100644
drivers/gpu/drm/drm_plane.c int drm_mode_page_flip_ioctl(struct drm_device
Quoted 8 lines
drivers/gpu/drm/drm_plane.c +4
-0@@ -1231,3 +1231,93 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev, return ret; } + +struct drm_property * +drm_create_scaling_filter_prop (struct drm_device *dev, +unsigned int supported_filters) {
This property is used generically by crtc and plane. Can we move this function outside the plane file to a more generic location. We could use drm_mode_config.c for instance.
Other than this, it looks good to me.
Quoted 182 lines
drivers/gpu/drm/drm_plane.c +4
-0+struct drm_property *prop; +static const struct drm_prop_enum_list props[] = { + {DRM_SCALING_FILTER_DEFAULT ,"Default" }, + { DRM_SCALING_FILTER_NEAREST_NEIGHBOR, "NearestNeighbor" },
drivers/gpu/drm/drm_plane.c +3
-0+ }; + unsigned int valid_mode_mask = BIT(DRM_SCALING_FILTER_DEFAULT) | +
BIT(DRM_SCALING_FILTER_NEAREST_NEIGHBOR);drivers/gpu/drm/drm_plane.c +4
-0+int i; + + if (WARN_ON((supported_filters & ~valid_mode_mask) || + ((supported_filters & BIT(DRM_SCALING_FILTER_DEFAULT)) ==0)))
drivers/gpu/drm/drm_plane.c +75
-0+return ERR_PTR (-EINVAL ); + + prop =drm_property_create (dev,DRM_MODE_PROP_ENUM , +"SCALING_FILTER" , +hweight32 (supported_filters)); +if (!prop) +return ERR_PTR (-ENOMEM ); + +for (i =0 ; i <ARRAY_SIZE (props); i++) { +int ret; + +if (!(BIT (props[i].type) & supported_filters)) +continue ; + + ret =drm_property_add_enum (prop, props[i].type, + props[i].name); + +if (ret) { +drm_property_destroy (dev, prop); + +return ERR_PTR (ret); + } + } + +return prop; +} + +/** +* DOC: Plane scaling filter property +* +* SCALING_FILTER: +* +* Indicates scaling filter to be used for plane scaler +* +* The value of this property can be one of the following: +* Default: +* Driver's default scaling filter +* Nearest Neighbor: +* Nearest Neighbor scaling filter +* +* Drivers can set up this property for a plane by calling +* drm_plane_create_scaling_filter_property +*/ + +/** +* drm_plane_create_scaling_filter_property - create a new scaling +filter +* property +* +* @plane: drm plane +* @supported_filters: bitmask of supported scaling filters, must include +* BIT(DRM_SCALING_FILTER_DEFAULT). +* +* This function lets driver to enable the scaling filter property on a +given +* plane. +* +* RETURNS: +* Zero for success or -errno +*/ +int drm_plane_create_scaling_filter_property (struct drm_plane *plane, +unsigned int supported_filters) { +struct drm_property *prop = +drm_create_scaling_filter_prop (plane->dev, supported_filters); + +if (IS_ERR (prop)) +return PTR_ERR (prop); + +drm_object_attach_property (&plane->base, prop, +DRM_SCALING_FILTER_DEFAULT ); + plane->scaling_filter_property = prop; + +return 0 ; +} +EXPORT_SYMBOL (drm_plane_create_scaling_filter_property);include/drm/drm_crtc.h index renamed from include/drm/drm_crtc.h +0
-0
59b51a09cae6..ba839e5e357d100644include/drm/drm_crtc.h +16
-0@@ -324,6 +324,13 @@ struct drm_crtc_state {*/ bool self_refresh_active; +/** +* @scaling_filter: +* +* Scaling filter to be applied +*/ +enum drm_scaling_filter scaling_filter; +/** * @event: * @@ -1083,6 +1090,12 @@ struct drm_crtc {/** @properties: property tracking for this CRTC */ struct drm_object_properties properties; +/** +* @scaling_filter_property: property to apply a particular filter while +* scaling. +*/ +struct drm_property *scaling_filter_property; +/** * @state: * @@ -1266,4 +1279,7 @@ static inline struct drm_crtc *drm_crtc_find(struct drm_device *dev, #define drm_for_each_crtc(crtc, dev) \ list_for_each_entry(crtc, &(dev)->mode_config.crtc_list, head) +int drm_crtc_create_scaling_filter_property(struct drm_crtc *crtc, + unsigned int supported_filters); +#endif /* __DRM_CRTC_H__ */ include/drm/drm_plane.h index renamed from include/drm/drm_plane.h +0
-0
3f396d94afe4..1d82b264e5e4100644include/drm/drm_plane.h +12
-0@@ -35,6 +35,11 @@ struct drm_crtc;struct drm_printer ;struct drm_modeset_acquire_ctx ; +enum drm_scaling_filter { +DRM_SCALING_FILTER_DEFAULT , +DRM_SCALING_FILTER_NEAREST_NEIGHBOR , +}; +/** * struct drm_plane_state - mutable plane state * @@ -214,6 +219,13 @@ struct drm_plane_state {*/ bool visible; +/** +* @scaling_filter: +* +* Scaling filter to be applied +*/ +enum drm_scaling_filter scaling_filter; +/** * @commit: Tracks the pending commit to prevent use-after-free conditions, include/drm/drm_plane.h +10
-1* and for async plane updates. @@ -724,6 +736,12 @@ struct drm_plane {* See drm_plane_create_color_properties(). */ struct drm_property *color_range_property; + +/** +* @scaling_filter_property: property to apply a particular filter while +* scaling. +*/ +struct drm_property *scaling_filter_property; };#define obj_to_plane (x) container_of(x, struct drm_plane, base) @@ -862,4 +880,7 @@ drm_plane_get_damage_clips(const struct drm_plane_state *state) state->fb_damage_clips->data : NULL); } +int drm_plane_create_scaling_filter_property (struct drm_plane *plane, +unsigned int supported_filters); +#endif --2.23.0
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
RE: [Intel-gfx] [PATCH v5 1/5] drm: Introduce plane and CRTC scaling filter properties
Quoted 195 lines
-----Original Message-----
From: Shankar, Uma <[email protected]>
Sent: 19 August 2020 13:44
To: Laxminarayan Bharadiya, Pankaj <[email protected]>; [email protected]; [email protected]; [email protected]; dri- [email protected]; [email protected]; [email protected]; Lattannavar, Sameer <[email protected]>; Maarten Lankhorst <[email protected]>; Maxime Ripard <[email protected]>; Thomas Zimmermann <[email protected]>; David Airlie <[email protected]>
Subject: RE: [Intel-gfx] [PATCH v5 1/5] drm: Introduce plane and CRTC scaling filter propertiesQuoted 10 lines
-----Original Message-----
From: Intel-gfx <[email protected]> On Behalf Of Pankaj Bharadiya
Sent: Monday, August 3, 2020 10:00 AM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Lattannavar, Sameer <[email protected]>; Maarten Lankhorst <[email protected]>; Maxime Ripard <[email protected]>; Thomas Zimmermann <[email protected]>;David
Quoted 12 lines
Airlie <[email protected]>
Subject: [Intel-gfx] [PATCH v5 1/5] drm: Introduce plane and CRTC scaling filter propertiesIntroduce per-plane and per-CRTC scaling filter properties to allow userspace to select the driver's default scaling filter or Nearest-neighbor(NN) filter for upscaling operations on CRTC and plane.
Drivers can set up this property for a plane by calling
drm_plane_create_scaling_filter()and for a CRTC by callingdrm_crtc_create_scaling_filter().Quoted 5 lines
NN filter works by filling in the missing color values in the upscaled image with that of the coordinate-mapped nearest source pixel value.
NN filter for integer multiple scaling can be particularly useful for for pixel art games that rely on sharp, blocky images to deliver their distinctive
look.
Quoted 4 lines
changes since v3:
* Refactor code, add new function for common code (Ville) changes since v2:
* Create per-plane and per-CRTC scaling filter property (Ville) changes sincev1:
Quoted 52 lines
* None
changes since RFC:
* Add separate properties for plane and CRTC (Ville)Signed-off-by: Pankaj Bharadiya
<[email protected]>--- drivers/gpu/drm/drm_atomic_uapi.c | 8 +++ drivers/gpu/drm/drm_crtc.c | 48 +++++++++++++++ drivers/gpu/drm/drm_crtc_internal.h | 3 + drivers/gpu/drm/drm_plane.c | 90 +++++++++++++++++++++++++++++ include/drm/drm_crtc.h | 16 +++++ include/drm/drm_plane.h | 21 +++++++ 6 files changed, 186 insertions(+)drivers/gpu/drm/drm_atomic_uapi.c +2
-0@@ -469,6 +469,8 @@ static int drm_atomic_crtc_set_property(struct drm_crtc *crtc, return -EFAULT ;set_out_fence_for_crtc (state->state, crtc, fence_ptr); + }else if (property == crtc->scaling_filter_property) { + state->scaling_filter = val; }else if (crtc->funcs->atomic_set_property) { return crtc->funcs->atomic_set_property(crtc, state, property,val);
drivers/gpu/drm/drm_atomic_uapi.c +2
-0}else {@@ -503,6 +505,8 @@ drm_atomic_crtc_get_property(struct drm_crtc *crtc, *val = (state->gamma_lut) ? state->gamma_lut->base.id :0 ; else if (property == config->prop_out_fence_ptr) *val = 0; + else if (property == crtc->scaling_filter_property) + *val = state->scaling_filter; else if (crtc->funcs->atomic_get_property) return crtc->funcs->atomic_get_property(crtc, state, property, val);drivers/gpu/drm/drm_atomic_uapi.c +2
-0else @@ -585,6 +589,8 @@ static int drm_atomic_plane_set_property(struct drm_plane *plane,sizeof (struct drm_rect ), &replaced);return ret; + }else if (property == plane->scaling_filter_property) { + state->scaling_filter = val; }else if (plane->funcs->atomic_set_property) { return plane->funcs->atomic_set_property(plane, state,drivers/gpu/drm/drm_atomic_uapi.c +0
-0property, val);drivers/gpu/drm/drm_atomic_uapi.c drm_atomic_plane_get_property(struct drm_plane · line 656
Quoted 8 lines
drivers/gpu/drm/drm_atomic_uapi.c +2
-0@@ -643,6 +649,8 @@ drm_atomic_plane_get_property(struct drm_plane *plane, }else if (property == config->prop_fb_damage_clips) { *val = (state->fb_damage_clips) ? state->fb_damage_clips->base.id :0 ; + }else if (property == plane->scaling_filter_property) { + *val = state->scaling_filter; }else if (plane->funcs->atomic_get_property) { return plane->funcs->atomic_get_property(plane, state,property,
Quoted 82 lines
val);
drivers/gpu/drm/drm_atomic_uapi.c +0
-0}else {drivers/gpu/drm/drm_crtc.c +49
-0@@ -776,3 +776,51 @@ int drm_mode_crtc_set_obj_prop(structdrm_mode_object *obj, return ret; } + +/** +* DOC: CRTC scaling filter property +* +* SCALING_FILTER: +* +* Indicates scaling filter to be used for CRTC scaler +* +* The value of this property can be one of the following: +* Default: +* Driver's default scaling filter +* Nearest Neighbor: +* Nearest Neighbor scaling filter +* +* Drivers can set up this property for a CRTC by calling +* drm_crtc_create_scaling_filter_property +*/ + +/** +* drm_crtc_create_scaling_filter_property - create a new scaling +filter +* property +* +* @crtc: drm CRTC +* @supported_filters: bitmask of supported scaling filters, must include +* BIT(DRM_SCALING_FILTER_DEFAULT). +* +* This function lets driver to enable the scaling filter property on +a given +* CRTC. +* +* RETURNS: +* Zero for success or -errno +*/ +int drm_crtc_create_scaling_filter_property (struct drm_crtc *crtc, +unsigned int supported_filters) { +struct drm_property *prop = +drm_create_scaling_filter_prop (crtc->dev, supported_filters); + +if (IS_ERR (prop)) +return PTR_ERR (prop); + +drm_object_attach_property (&crtc->base, prop, +DRM_SCALING_FILTER_DEFAULT ); + crtc->scaling_filter_property = prop; + +return 0 ; +} +EXPORT_SYMBOL (drm_crtc_create_scaling_filter_property);drivers/gpu/drm/drm_crtc_internal.h +3
-0@@ -72,6 +72,9 @@ int drm_crtc_force_disable(struct drm_crtc *crtc);struct dma_fence *drm_crtc_create_fence (struct drm_crtc *crtc); +struct drm_property * +drm_create_scaling_filter_prop (struct drm_device *dev, +unsigned int supported_filters);/* IOCTLs */ int drm_mode_getcrtc (struct drm_device *dev, void *data, struct drm_file *file_priv); diff --git
a/drivers/gpu/drm/drm_plane.cb/drivers/gpu/drm/drm_plane.cindexb7b90b3a2e38..de3888572684100644drivers/gpu/drm/drm_plane.c +0
-0@@ -1231,3 +1231,93 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev,
Quoted 10 lines
drivers/gpu/drm/drm_plane.c int drm_mode_page_flip_ioctl(struct drm_device *dev,
Quoted 6 lines
drivers/gpu/drm/drm_plane.c +4
-0return ret; } + +struct drm_property * +drm_create_scaling_filter_prop (struct drm_device *dev, +unsigned int supported_filters) {This property is used generically by crtc and plane. Can we move this function outside the plane file to a more generic location. We could use
drm_mode_config.cfor instance.
I feel, drm_mode_config.c is not the correct place to handle this property as this is an optional property and optional property implementation details are handled in separate files (e.g. drm_color_mgmt.c for COLOR_ENCODING).
I think, ideally new file should get added for handling interger scaling property but not sure if it makes sense for just one function. I prefer to keep it at present place. Any suggestions..?
Thanks,
Pankaj
Quoted 192 lines
Other than this, it looks good to me.
Reviewed-by Uma Shankar <[email protected]>drivers/gpu/drm/drm_plane.c
Quoted 7 lines
drivers/gpu/drm/drm_plane.c +4
-0+struct drm_property *prop; +static const struct drm_prop_enum_list props[] = { + {DRM_SCALING_FILTER_DEFAULT ,"Default" }, + { DRM_SCALING_FILTER_NEAREST_NEIGHBOR, "NearestNeighbor" },
drivers/gpu/drm/drm_plane.c +2
-0+ }; +unsigned int valid_mode_mask =BIT (DRM_SCALING_FILTER_DEFAULT )|
drivers/gpu/drm/drm_plane.c int drm_mode_page_flip_ioctl(struct drm_device *dev,
Quoted 6 lines
+
BIT(DRM_SCALING_FILTER_NEAREST_NEIGHBOR);drivers/gpu/drm/drm_plane.c +4
-0+int i; + + if (WARN_ON((supported_filters & ~valid_mode_mask) || + ((supported_filters & BIT(DRM_SCALING_FILTER_DEFAULT))==
Quoted 108 lines
0)))
drivers/gpu/drm/drm_plane.c +75
-0+return ERR_PTR (-EINVAL ); + + prop =drm_property_create (dev,DRM_MODE_PROP_ENUM , +"SCALING_FILTER" , +hweight32 (supported_filters)); +if (!prop) +return ERR_PTR (-ENOMEM ); + +for (i =0 ; i <ARRAY_SIZE (props); i++) { +int ret; + +if (!(BIT (props[i].type) & supported_filters)) +continue ; + + ret =drm_property_add_enum (prop, props[i].type, + props[i].name); + +if (ret) { +drm_property_destroy (dev, prop); + +return ERR_PTR (ret); + } + } + +return prop; +} + +/** +* DOC: Plane scaling filter property +* +* SCALING_FILTER: +* +* Indicates scaling filter to be used for plane scaler +* +* The value of this property can be one of the following: +* Default: +* Driver's default scaling filter +* Nearest Neighbor: +* Nearest Neighbor scaling filter +* +* Drivers can set up this property for a plane by calling +* drm_plane_create_scaling_filter_property +*/ + +/** +* drm_plane_create_scaling_filter_property - create a new scaling +filter +* property +* +* @plane: drm plane +* @supported_filters: bitmask of supported scaling filters, must include +* BIT(DRM_SCALING_FILTER_DEFAULT). +* +* This function lets driver to enable the scaling filter property on +a given +* plane. +* +* RETURNS: +* Zero for success or -errno +*/ +int drm_plane_create_scaling_filter_property (struct drm_plane *plane, +unsigned int supported_filters) { +struct drm_property *prop = +drm_create_scaling_filter_prop (plane->dev, supported_filters); + +if (IS_ERR (prop)) +return PTR_ERR (prop); + +drm_object_attach_property (&plane->base, prop, +DRM_SCALING_FILTER_DEFAULT ); + plane->scaling_filter_property = prop; + +return 0 ; +} +EXPORT_SYMBOL (drm_plane_create_scaling_filter_property);include/drm/drm_crtc.h index renamed from include/drm/drm_crtc.h +0
-0
59b51a09cae6..ba839e5e357d100644include/drm/drm_crtc.h +13
-0@@ -324,6 +324,13 @@ struct drm_crtc_state {*/ bool self_refresh_active; +/** +* @scaling_filter: +* +* Scaling filter to be applied +*/ +enum drm_scaling_filter scaling_filter; +/** * @event: * @@ -1083,6 +1090,12 @@ struct drm_crtc {/** @properties: property tracking for this CRTC */ struct drm_object_properties properties; +/** +* @scaling_filter_property: property to apply a particular filter while +* scaling. +*/ +struct drm_property *scaling_filter_property; +/** * @state: * include/drm/drm_crtc.h static inline struct drm_crtc · line 1279
Quoted 1 line
include/drm/drm_crtc.h +0
-0@@ -1266,4 +1279,7 @@ static inline struct drm_crtc *drm_crtc_find(struct drm_device *dev, #define drm_for_each_crtc(crtc, dev)\
Quoted 44 lines
include/drm/drm_crtc.h +3
-0list_for_each_entry (crtc, &(dev)->mode_config.crtc_list, head) +int drm_crtc_create_scaling_filter_property(struct drm_crtc *crtc, + unsigned int supported_filters); +#endif /* __DRM_CRTC_H__ */ include/drm/drm_plane.h index renamed from include/drm/drm_plane.h +0
-0
3f396d94afe4..1d82b264e5e4100644include/drm/drm_plane.h +12
-0@@ -35,6 +35,11 @@ struct drm_crtc;struct drm_printer ;struct drm_modeset_acquire_ctx ; +enum drm_scaling_filter { +DRM_SCALING_FILTER_DEFAULT , +DRM_SCALING_FILTER_NEAREST_NEIGHBOR , +}; +/** * struct drm_plane_state - mutable plane state * @@ -214,6 +219,13 @@ struct drm_plane_state {*/ bool visible; +/** +* @scaling_filter: +* +* Scaling filter to be applied +*/ +enum drm_scaling_filter scaling_filter; +/** * @commit: Tracks the pending commit to prevent use-after-free conditions, include/drm/drm_plane.h +3
-0* and for async plane updates. @@ -724,6 +736,12 @@ struct drm_plane {* See drm_plane_create_color_properties(). */ struct drm_property *color_range_property; + +/** +* @scaling_filter_property: property to apply a particular filter while include/drm/drm_plane.h struct drm_plane {
Quoted 10 lines
include/drm/drm_plane.h +5
-1+* scaling. +*/ +struct drm_property *scaling_filter_property; };#define obj_to_plane (x) container_of(x, struct drm_plane, base) @@ -862,4 +880,7 @@ drm_plane_get_damage_clips(const struct drm_plane_state +*state) state->fb_damage_clips->data : NULL);}
Quoted 8 lines
include/drm/drm_plane.h +3
-1+int drm_plane_create_scaling_filter_property (struct drm_plane *plane, +unsigned int supported_filters); +#endif --2.23.0
Quoted 4 lines
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v5 2/5 drm/drm-kms.rst: Add plane and CRTC scaling filter property documentation
In reply to Pankaj BharadiyaAdd documentation for newly introduced KMS plane and CRTC scaling filter properties.
changes since v3:
* None
changes since v1:
* None
changes since RFC:
* Add separate documentation for plane and CRTC.
--- Documentation/gpu/drm-kms.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+)
Documentation/gpu/drm-kms.rst +12 -0
@@ -518,6 +518,18 @@ Variable Refresh Properties .. kernel-doc:: drivers/gpu/drm/drm_connector.c :doc: Variable refresh properties +Plane Scaling Filter Property +----------------------- + +.. kernel-doc:: drivers/gpu/drm/drm_plane.c + :doc: Plane scaling filter property + +CRTC Scaling Filter Property +----------------------- + +.. kernel-doc:: drivers/gpu/drm/drm_crtc.c + :doc: CRTC scaling filter property + Existing KMS Properties -----------------------
Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
RE: [PATCH v5 2/5] drm/drm-kms.rst: Add plane and CRTC scaling filter property documentation
Quoted 17 lines
-----Original Message-----
From: dri-devel <[email protected]> On Behalf Of Pankaj Bharadiya
Sent: Monday, August 3, 2020 10:00 AM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Lattannavar, Sameer <[email protected]>; Maarten Lankhorst <[email protected]>; Maxime Ripard <[email protected]>; Thomas Zimmermann <[email protected]>; David Airlie <[email protected]>; Jonathan Corbet <[email protected]>
Cc: Laxminarayan Bharadiya, Pankaj <[email protected]>
Subject: [PATCH v5 2/5]drm/drm-kms.rst: Add plane and CRTC scaling filter property documentation
Quoted 2 lines
Add documentation for newly introduced KMS plane and CRTC scaling filter properties.
Looks good to me.
Quoted 38 lines
changes since v3:
* None
changes since v1:
* None
changes since RFC:
* Add separate documentation for plane and CRTC.Signed-off-by Pankaj Bharadiya <[email protected]>--- Documentation/gpu/drm-kms.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+)Documentation/gpu/drm-kms.rst +0
-0@@ -518,6 +518,18 @@ Variable Refresh Properties .. kernel-doc::
drivers/gpu/drm/drm_connector.c
:doc: Variable refresh propertiesDocumentation/gpu/drm-kms.rst +12
-1+Plane Scaling Filter Property +----------------------- + +.. kernel-doc:: drivers/gpu/drm/drm_plane.c + :doc: Plane scaling filter property + +CRTC Scaling Filter Property +----------------------- + +.. kernel-doc:: drivers/gpu/drm/drm_crtc.c + :doc: CRTC scaling filter property + Existing KMS Properties ----------------------- --2.23.0
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v5 3/5 drm/i915: Introduce scaling filter related registers and bit fields.
In reply to Pankaj BharadiyaIntroduce scaler registers and bit fields needed to configure the scaling filter in prgrammed mode and configure scaling filter coefficients.
changes since v3:
* None
changes since v2:
* Change macro names to CNL_* and use +(set)*8 instead of adding another trip through _PICK_EVEN (Ville).
changes since v1:
* None
changes since RFC:
* Parametrize scaler coeffient macros by 'set' (Ville)
--- drivers/gpu/drm/i915/i915_reg.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)
drivers/gpu/drm/i915/i915_reg.h +22 -0
@@ -7391,6 +7391,7 @@ enum {#define PS_PLANE_SEL (plane) (((plane) + 1) << 25)#define PS_FILTER_MASK (3 << 23)#define PS_FILTER_MEDIUM (0 << 23) +#define PS_FILTER_PROGRAMMED (1 << 23)#define PS_FILTER_EDGE_ENHANCE (2 << 23)#define PS_FILTER_BILINEAR (3 << 23)#define PS_VERT3TAP (1 << 21)
@@ -7405,6 +7406,10 @@ enum {#define PS_VADAPT_MODE_MOST_ADAPT (3 << 5)#define PS_PLANE_Y_SEL_MASK (7 << 5)#define PS_PLANE_Y_SEL (plane) (((plane) + 1) << 5) +#define PS_Y_VERT_FILTER_SELECT (set) ((set) << 4) +#define PS_Y_HORZ_FILTER_SELECT (set) ((set) << 3) +#define PS_UV_VERT_FILTER_SELECT (set) ((set) << 2) +#define PS_UV_HORZ_FILTER_SELECT (set) ((set) << 1)#define _PS_PWR_GATE_1A 0x68160#define _PS_PWR_GATE_2A 0x68260
@@ -7467,6 +7472,17 @@ enum {#define _PS_ECC_STAT_2B 0x68AD0#define _PS_ECC_STAT_1C 0x691D0 +#define _PS_COEF_SET0_INDEX_1A 0x68198 +#define _PS_COEF_SET0_INDEX_2A 0x68298 +#define _PS_COEF_SET0_INDEX_1B 0x68998 +#define _PS_COEF_SET0_INDEX_2B 0x68A98 +#define PS_COEE_INDEX_AUTO_INC (1 << 10) + +#define _PS_COEF_SET0_DATA_1A 0x6819C +#define _PS_COEF_SET0_DATA_2A 0x6829C +#define _PS_COEF_SET0_DATA_1B 0x6899C +#define _PS_COEF_SET0_DATA_2B 0x68A9C +#define _ID (id, a, b) _PICK_EVEN(id, a, b)#define SKL_PS_CTRL (pipe, id) _MMIO_PIPE(pipe, \ _ID(id, _PS_1A_CTRL, _PS_2A_CTRL), \
@@ -7495,7 +7511,13 @@ enum {#define SKL_PS_ECC_STAT (pipe, id) _MMIO_PIPE(pipe, \ _ID(id, _PS_ECC_STAT_1A, _PS_ECC_STAT_2A), \ _ID(id, _PS_ECC_STAT_1B, _PS_ECC_STAT_2B)) +#define CNL_PS_COEF_INDEX_SET (pipe, id, set) _MMIO_PIPE(pipe, \ + _ID(id, _PS_COEF_SET0_INDEX_1A, _PS_COEF_SET0_INDEX_2A) + (set) * 8, \ + _ID(id, _PS_COEF_SET0_INDEX_1B, _PS_COEF_SET0_INDEX_2B) + (set) * 8) +#define CNL_PS_COEF_DATA_SET (pipe, id, set) _MMIO_PIPE(pipe, \ + _ID(id, _PS_COEF_SET0_DATA_1A, _PS_COEF_SET0_DATA_2A) + (set) * 8, \ + _ID(id, _PS_COEF_SET0_DATA_1B, _PS_COEF_SET0_DATA_2B) + (set) * 8)/* legacy palette */ #define _LGC_PALETTE_A 0x4a000#define _LGC_PALETTE_B 0x4a800
Signature · 6 lines
2.23.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
RE: [PATCH v5 3/5] drm/i915: Introduce scaling filter related registers and bit fields.
Quoted 15 lines
-----Original Message-----
From: dri-devel <[email protected]> On Behalf Of Pankaj Bharadiya
Sent: Monday, August 3, 2020 10:00 AM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Lattannavar, Sameer <[email protected]>; Joonas Lahtinen <[email protected]>; Vivi, Rodrigo <[email protected]>; David Airlie <[email protected]>
Cc: Laxminarayan Bharadiya, Pankaj <[email protected]>
Subject: [PATCH v5 3/5] drm/i915: Introduce scaling filter related registers and bit fields.
You can drop the "." from header.
Overall Changes look good to me.
Quoted 82 lines
Introduce scaler registers and bit fields needed to configure the scaling filter in prgrammed mode and configure scaling filter coefficients.
changes since v3:
* None
changes since v2:
* Change macro names to CNL_* and use +(set)*8 instead of adding another trip through_PICK_EVEN(Ville).
changes since v1:
* None
changes since RFC:
* Parametrize scaler coeffient macros by 'set' (Ville)Signed-off-by Shashank Sharma <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>Signed-off-by Pankaj Bharadiya <[email protected]>--- drivers/gpu/drm/i915/i915_reg.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)drivers/gpu/drm/i915/i915_reg.h +22
-0@@ -7391,6 +7391,7 @@ enum {#define PS_PLANE_SEL (plane) (((plane) + 1) << 25)#define PS_FILTER_MASK (3 << 23)#define PS_FILTER_MEDIUM (0 << 23) +#define PS_FILTER_PROGRAMMED (1 << 23)#define PS_FILTER_EDGE_ENHANCE (2 << 23)#define PS_FILTER_BILINEAR (3 << 23)#define PS_VERT3TAP (1 << 21)@@ -7405,6 +7406,10 @@ enum {#define PS_VADAPT_MODE_MOST_ADAPT (3 << 5) #define PS_PLANE_Y_SEL_MASK (7 << 5) #define PS_PLANE_Y_SEL(plane) (((plane) + 1) << 5) +#define PS_Y_VERT_FILTER_SELECT(set) ((set) << 4) +#define PS_Y_HORZ_FILTER_SELECT(set) ((set) << 3) +#define PS_UV_VERT_FILTER_SELECT(set) ((set) << 2) #define +PS_UV_HORZ_FILTER_SELECT(set) ((set) << 1)#define _PS_PWR_GATE_1A 0x68160#define _PS_PWR_GATE_2A 0x68260@@ -7467,6 +7472,17 @@ enum {#define _PS_ECC_STAT_2B 0x68AD0#define _PS_ECC_STAT_1C 0x691D0 +#define _PS_COEF_SET0_INDEX_1A 0x68198 +#define _PS_COEF_SET0_INDEX_2A 0x68298 +#define _PS_COEF_SET0_INDEX_1B 0x68998 +#define _PS_COEF_SET0_INDEX_2B 0x68A98 +#define PS_COEE_INDEX_AUTO_INC (1 << 10) + +#define _PS_COEF_SET0_DATA_1A 0x6819C +#define _PS_COEF_SET0_DATA_2A 0x6829C +#define _PS_COEF_SET0_DATA_1B 0x6899C +#define _PS_COEF_SET0_DATA_2B 0x68A9C +#define _ID (id, a, b) _PICK_EVEN(id, a, b)#define SKL_PS_CTRL (pipe, id) _MMIO_PIPE(pipe, \ _ID(id, _PS_1A_CTRL, _PS_2A_CTRL), \@@ -7495,7 +7511,13 @@ enum {#define SKL_PS_ECC_STAT (pipe, id) _MMIO_PIPE(pipe, \ _ID(id, _PS_ECC_STAT_1A, _PS_ECC_STAT_2A), \ _ID(id, _PS_ECC_STAT_1B, _PS_ECC_STAT_2B)) +#define CNL_PS_COEF_INDEX_SET (pipe, id, set) _MMIO_PIPE(pipe, \ + _ID(id, _PS_COEF_SET0_INDEX_1A, _PS_COEF_SET0_INDEX_2A) + (set) * 8, \ + _ID(id, _PS_COEF_SET0_INDEX_1B, _PS_COEF_SET0_INDEX_2B) + (set) * 8) +#define CNL_PS_COEF_DATA_SET (pipe, id, set) _MMIO_PIPE(pipe, \ + _ID(id, _PS_COEF_SET0_DATA_1A, _PS_COEF_SET0_DATA_2A) + (set) * 8, \ + _ID(id, _PS_COEF_SET0_DATA_1B,
_PS_COEF_SET0_DATA_2B) + (set) * 8)
/* legacy palette */
#define_LGC_PALETTE_A0x4a000
#define_LGC_PALETTE_B0x4a800
--
2.23.0
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH v5 4/5 drm/i915/display: Add Nearest-neighbor based integer scaling support
In reply to Pankaj BharadiyaInteger scaling (IS) is a nearest-neighbor upscaling technique that simply scales up the existing pixels by an integer (i.e., whole number) multiplier.Nearest-neighbor (NN) interpolation works by filling in the missing color values in the upscaled image with that of the coordinate-mapped nearest source pixel value.
Both IS and NN preserve the clarity of the original image. Integer scaling is particularly useful for pixel art games that rely on sharp, blocky images to deliver their distinctive look.
Introduce functions to configure the scaler filter coefficients to enable nearest-neighbor filtering.
Bspec: 49247
changes since v3:
* None
changes since v2:
* Move APIs from 5/5 into this patch.
* Change filter programming related function names to cnl_*, move filter select bits related code into inline function (Ville)
changes since v1:
* Rearrange skl_scaler_setup_nearest_neighbor_filter() to iterate the registers directly instead of the phases and taps (Ville)
changes since RFC:
* Refine the skl_scaler_setup_nearest_neighbor_filter() logic (Ville)
--- drivers/gpu/drm/i915/display/intel_display.c | 99 ++++++++++++++++++++ drivers/gpu/drm/i915/display/intel_display.h | 4 + 2 files changed, 103 insertions(+)
drivers/gpu/drm/i915/display/intel_display.c +99 -0
@@ -6233,6 +6233,105 @@ void skl_scaler_disable(const struct intel_crtc_state *old_crtc_state)skl_detach_scaler (crtc, i); } +static int cnl_coef_tap (int i) +{ +return i %7 ; +} + +static u16 cnl_nearest_filter_coef (int t) +{ +return t ==3 ?0x0800 :0x3000 ; +} + +/** +* Theory behind setting nearest-neighbor integer scaling: +* +* 17 phase of 7 taps requires 119 coefficients in 60 dwords per set. +* The letter represents the filter tap (D is the center tap) and the number +* represents the coefficient set for a phase (0-16). +* +* +------------+------------------------+------------------------+ +* |Index value | Data value coeffient 1 | Data value coeffient 2 | +* +------------+------------------------+------------------------+ +* | 00h | B0 | A0 | +* +------------+------------------------+------------------------+ +* | 01h | D0 | C0 | +* +------------+------------------------+------------------------+ +* | 02h | F0 | E0 | +* +------------+------------------------+------------------------+ +* | 03h | A1 | G0 | +* +------------+------------------------+------------------------+ +* | 04h | C1 | B1 | +* +------------+------------------------+------------------------+ +* | ... | ... | ... | +* +------------+------------------------+------------------------+ +* | 38h | B16 | A16 | +* +------------+------------------------+------------------------+ +* | 39h | D16 | C16 | +* +------------+------------------------+------------------------+ +* | 3Ah | F16 | C16 | +* +------------+------------------------+------------------------+ +* | 3Bh | Reserved | G16 | +* +------------+------------------------+------------------------+ +* +* To enable nearest-neighbor scaling: program scaler coefficents with +* the center tap (Dxx) values set to 1 and all other values set to 0 as per +* SCALER_COEFFICIENT_FORMAT +* +*/ + +static void cnl_program_nearest_filter_coefs (struct drm_i915_private *dev_priv, +enum pipe pipe,int id,int set) +{ +int i; + +intel_de_write_fw (dev_priv,CNL_PS_COEF_INDEX_SET (pipe, id, set), +PS_COEE_INDEX_AUTO_INC ); + +for (i =0 ; i <17 *7 ; i +=2 ) { +u32 tmp; +int t; + + t =cnl_coef_tap (i); + tmp =cnl_nearest_filter_coef (t); + + t =cnl_coef_tap (i +1 ); + tmp |=cnl_nearest_filter_coef (t) <<16 ; + +intel_de_write_fw (dev_priv,CNL_PS_COEF_DATA_SET (pipe, id, set), + tmp); + } + +intel_de_write_fw (dev_priv,CNL_PS_COEF_INDEX_SET (pipe, id, set),0 ); +} + +inline u32 skl_scaler_get_filter_select (enum drm_scaling_filter filter,int set) +{ +if (filter ==DRM_SCALING_FILTER_NEAREST_NEIGHBOR ) { +return (PS_FILTER_PROGRAMMED | +PS_Y_VERT_FILTER_SELECT (set) | +PS_Y_HORZ_FILTER_SELECT (set) | +PS_UV_VERT_FILTER_SELECT (set) | +PS_UV_HORZ_FILTER_SELECT (set)); + } + +return PS_FILTER_MEDIUM ; +} + +void skl_scaler_setup_filter (struct drm_i915_private *dev_priv,enum pipe pipe, +int id,int set,enum drm_scaling_filter filter) +{ +switch (filter) { +case DRM_SCALING_FILTER_DEFAULT : +break ; +case DRM_SCALING_FILTER_NEAREST_NEIGHBOR : +cnl_program_nearest_filter_coefs (dev_priv, pipe, id, set); +break ; +default : +MISSING_CASE (filter); + } +} +static void skl_pfit_enable (const struct intel_crtc_state *crtc_state) {struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);
drivers/gpu/drm/i915/display/intel_display.h +4 -0
@@ -28,6 +28,7 @@#include <drm/drm_util.h> enum link_m_n_set ; +enum drm_scaling_filter ;struct dpll ;struct drm_connector ;struct drm_device ;
@@ -599,6 +600,9 @@ void intel_crtc_arm_fifo_underrun(struct intel_crtc *crtc,u16 skl_scaler_calc_phase (int sub,int scale,bool chroma_center);void skl_scaler_disable (const struct intel_crtc_state *old_crtc_state); +u32 skl_scaler_get_filter_select (enum drm_scaling_filter filter,int set); +void skl_scaler_setup_filter (struct drm_i915_private *dev_priv,enum pipe pipe, +int id,int set,enum drm_scaling_filter filter);void ilk_pfit_disable (const struct intel_crtc_state *old_crtc_state);u32 glk_plane_color_ctl (const struct intel_crtc_state *crtc_state,const struct intel_plane_state *plane_state);
Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
RE: [Intel-gfx] [PATCH v5 4/5] drm/i915/display: Add Nearest-neighbor based integer scaling support
Quoted 59 lines
-----Original Message-----
From: Intel-gfx <[email protected]> On Behalf Of Pankaj Bharadiya
Sent: Monday, August 3, 2020 10:00 AM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Lattannavar, Sameer <[email protected]>; Joonas Lahtinen <[email protected]>; Vivi, Rodrigo <[email protected]>; David Airlie <[email protected]>; Souza, Jose <[email protected]>; Maarten Lankhorst <[email protected]>; Chris Wilson <[email protected]>; Navare, Manasi D <[email protected]>; Wambui Karuga <[email protected]>; De Marchi, Lucas <[email protected]>; C, Ramalingam <[email protected]>
Subject: [Intel-gfx] [PATCH v5 4/5] drm/i915/display: Add Nearest-neighbor based integer scaling supportInteger scaling (IS) is a nearest-neighbor upscaling technique that simply scales up the existing pixels by an integer (i.e., whole number) multiplier.Nearest- neighbor (NN) interpolation works by filling in the missing color values in the upscaled image with that of the coordinate-mapped nearest source pixel value.
Both IS and NN preserve the clarity of the original image. Integer scaling is particularly useful for pixel art games that rely on sharp, blocky images to deliver their distinctive look.
Introduce functions to configure the scaler filter coefficients to enable nearest- neighbor filtering.
Bspec: 49247
changes since v3:
* None
changes since v2:
* Move APIs from 5/5 into this patch.
* Change filter programming related function names to cnl_*, move filter select bits related code into inline function (Ville) changes since v1:
* Rearrangeskl_scaler_setup_nearest_neighbor_filter()to iterate the registers directly instead of the phases and taps (Ville)changes since RFC:
* Refine theskl_scaler_setup_nearest_neighbor_filter()logic (Ville)Signed-off-by Shashank Sharma <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>Signed-off-by Pankaj Bharadiya <[email protected]>--- drivers/gpu/drm/i915/display/intel_display.c | 99 ++++++++++++++++++++ drivers/gpu/drm/i915/display/intel_display.h | 4 + 2 files changed, 103 insertions(+)drivers/gpu/drm/i915/display/intel_display.c +0
-0
drivers/gpu/drm/i915/display/intel_display.c void skl_scaler_disable(const struct intel_crtc_state · line 6237
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_display.c +1
-0@@ -6233,6 +6233,105 @@ void skl_scaler_disable(const struct intel_crtc_state *old_crtc_state)skl_detach_scaler (crtc, i); } +static int cnl_coef_tap (int i)
You can make this inline.
drivers/gpu/drm/i915/display/intel_display.c void skl_scaler_disable(const struct intel_crtc_state *old_crtc_state)
Quoted 5 lines
drivers/gpu/drm/i915/display/intel_display.c +5
-0+{ +return i %7 ; +} + +static u16 cnl_nearest_filter_coef (int t) {
Same here.
Overall, Changes look good to me.
Quoted 123 lines
drivers/gpu/drm/i915/display/intel_display.c +93
-0+return t ==3 ?0x0800 :0x3000 ; +} + +/** +* Theory behind setting nearest-neighbor integer scaling: +* +* 17 phase of 7 taps requires 119 coefficients in 60 dwords per set. +* The letter represents the filter tap (D is the center tap) and the +number +* represents the coefficient set for a phase (0-16). +* +* +------------+------------------------+------------------------+ +* |Index value | Data value coeffient 1 | Data value coeffient 2 | +* +------------+------------------------+------------------------+ +* | 00h | B0 | A0 | +* +------------+------------------------+------------------------+ +* | 01h | D0 | C0 | +* +------------+------------------------+------------------------+ +* | 02h | F0 | E0 | +* +------------+------------------------+------------------------+ +* | 03h | A1 | G0 | +* +------------+------------------------+------------------------+ +* | 04h | C1 | B1 | +* +------------+------------------------+------------------------+ +* | ... | ... | ... | +* +------------+------------------------+------------------------+ +* | 38h | B16 | A16 | +* +------------+------------------------+------------------------+ +* | 39h | D16 | C16 | +* +------------+------------------------+------------------------+ +* | 3Ah | F16 | C16 | +* +------------+------------------------+------------------------+ +* | 3Bh | Reserved | G16 | +* +------------+------------------------+------------------------+ +* +* To enable nearest-neighbor scaling: program scaler coefficents +with +* the center tap (Dxx) values set to 1 and all other values set to 0 +as per +* SCALER_COEFFICIENT_FORMAT +* +*/ + +static void cnl_program_nearest_filter_coefs (struct drm_i915_private *dev_priv, +enum pipe pipe,int id,int set) { +int i; + +intel_de_write_fw (dev_priv,CNL_PS_COEF_INDEX_SET (pipe, id, set), +PS_COEE_INDEX_AUTO_INC ); + +for (i =0 ; i <17 *7 ; i +=2 ) { +u32 tmp; +int t; + + t =cnl_coef_tap (i); + tmp =cnl_nearest_filter_coef (t); + + t =cnl_coef_tap (i +1 ); + tmp |=cnl_nearest_filter_coef (t) <<16 ; + +intel_de_write_fw (dev_priv,CNL_PS_COEF_DATA_SET (pipe, id, set), + tmp); + } + +intel_de_write_fw (dev_priv,CNL_PS_COEF_INDEX_SET (pipe, id, set),0 ); +} + +inline u32 skl_scaler_get_filter_select (enum drm_scaling_filter filter, +int set) { +if (filter ==DRM_SCALING_FILTER_NEAREST_NEIGHBOR ) { +return (PS_FILTER_PROGRAMMED | +PS_Y_VERT_FILTER_SELECT (set) | +PS_Y_HORZ_FILTER_SELECT (set) | +PS_UV_VERT_FILTER_SELECT (set) | +PS_UV_HORZ_FILTER_SELECT (set)); + } + +return PS_FILTER_MEDIUM ; +} + +void skl_scaler_setup_filter (struct drm_i915_private *dev_priv,enum pipe pipe, +int id,int set,enum drm_scaling_filter filter) { +switch (filter) { +case DRM_SCALING_FILTER_DEFAULT : +break ; +case DRM_SCALING_FILTER_NEAREST_NEIGHBOR : +cnl_program_nearest_filter_coefs (dev_priv, pipe, id, set); +break ; +default : +MISSING_CASE (filter); + } +} +static void skl_pfit_enable (const struct intel_crtc_state *crtc_state) {drivers/gpu/drm/i915/display/intel_display.c +0
-0struct intel_crtc *crtc =to_intel_crtc (crtc_state->uapi.crtc);drivers/gpu/drm/i915/display/intel_display.h +4
-0@@ -28,6 +28,7 @@#include <drm/drm_util.h> enum link_m_n_set ; +enum drm_scaling_filter ;struct dpll ;struct drm_connector ;struct drm_device ;@@ -599,6 +600,9 @@ void intel_crtc_arm_fifo_underrun(struct intel_crtc *crtc,u16 skl_scaler_calc_phase (int sub,int scale,bool chroma_center);void skl_scaler_disable (const struct intel_crtc_state *old_crtc_state); +u32 skl_scaler_get_filter_select (enum drm_scaling_filter filter,int +set);void skl_scaler_setup_filter (struct drm_i915_private *dev_priv,enum pipe pipe, +int id,int set,enum drm_scaling_filter filter);void ilk_pfit_disable (const struct intel_crtc_state *old_crtc_state); u32 glk_plane_color_ctl(const struct intel_crtc_state *crtc_state,const struct
intel_plane_state*plane_state);
--
2.23.0
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH v5 5/5 drm/i915: Enable scaling filter for plane and CRTC
In reply to Pankaj BharadiyaGEN >= 10 hardware supports the programmable scaler filter.
Attach scaling filter property for CRTC and plane for GEN >= 10 hardwares and program scaler filter based on the selected filter type.
changes since v3:
* None
changes since v2:
* Use updated functions
* Add ps_ctrl var to contain the full PS_CTRL register value (Ville)
* Duplicate the scaling filter in crtc and plane hw state (Ville) changes since v1:
* None
Changes since RFC:
* Enable properties for GEN >= 10 platforms (Ville)
* Do not round off the crtc co-ordinate (Danial Stone, Ville)
* Add new functions to handle scaling filter setup (Ville)
* Remove coefficient set 0 hardcoding.
--- .../gpu/drm/i915/display/intel_atomic_plane.c | 1 + drivers/gpu/drm/i915/display/intel_display.c | 18 ++++++++++++++++-- .../gpu/drm/i915/display/intel_display_types.h | 2 ++ drivers/gpu/drm/i915/display/intel_sprite.c | 15 +++++++++++++-- 4 files changed, 32 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/display/intel_atomic_plane.c +1 -0
@@ -262,6 +262,7 @@ void intel_plane_copy_uapi_to_hw_state(struct intel_plane_state *plane_state, plane_state->hw.rotation = from_plane_state->uapi.rotation; plane_state->hw.color_encoding = from_plane_state->uapi.color_encoding; plane_state->hw.color_range = from_plane_state->uapi.color_range; + plane_state->hw.scaling_filter = from_plane_state->uapi.scaling_filter; } void intel_plane_set_invisible(struct intel_crtc_state *crtc_state,
drivers/gpu/drm/i915/display/intel_display.c +16 -2
@@ -6352,6 +6352,7 @@ static void skl_pfit_enable(const struct intel_crtc_state *crtc_state)int hscale, vscale;unsigned long irqflags;int id; +u32 ps_ctrl;if (!crtc_state->pch_pfit.enabled)return ;
@@ -6368,10 +6369,16 @@ static void skl_pfit_enable(const struct intel_crtc_state *crtc_state) id = scaler_state->scaler_id; + ps_ctrl =skl_scaler_get_filter_select (crtc_state->hw.scaling_filter,0 ); + ps_ctrl |=PS_SCALER_EN | scaler_state->scalers[id].mode; +spin_lock_irqsave (&dev_priv->uncore.lock, irqflags); -intel_de_write_fw (dev_priv,SKL_PS_CTRL (pipe, id),PS_SCALER_EN | -PS_FILTER_MEDIUM | scaler_state->scalers[id].mode); +skl_scaler_setup_filter (dev_priv, pipe, id,0 , + crtc_state->hw.scaling_filter); + +intel_de_write_fw (dev_priv,SKL_PS_CTRL (pipe, id), ps_ctrl); +intel_de_write_fw (dev_priv,SKL_PS_VPHASE (pipe, id),PS_Y_PHASE (0 ) |PS_UV_RGB_PHASE (uv_rgb_vphase)); intel_de_write_fw(dev_priv, SKL_PS_HPHASE(pipe, id),
@@ -13332,6 +13339,7 @@ intel_crtc_copy_uapi_to_hw_state(struct intel_crtc_state *crtc_state) crtc_state->hw.active = crtc_state->uapi.active; crtc_state->hw.mode = crtc_state->uapi.mode; crtc_state->hw.adjusted_mode = crtc_state->uapi.adjusted_mode; + crtc_state->hw.scaling_filter = crtc_state->uapi.scaling_filter;intel_crtc_copy_uapi_to_hw_state_nomodeset (crtc_state); }
@@ -13343,6 +13351,7 @@ static void intel_crtc_copy_hw_to_uapi_state(struct intel_crtc_state *crtc_state drm_atomic_set_mode_for_crtc(&crtc_state->uapi, &crtc_state->hw.mode) < 0); crtc_state->uapi.adjusted_mode = crtc_state->hw.adjusted_mode; + crtc_state->uapi.scaling_filter = crtc_state->hw.scaling_filter;/* copy color blobs to uapi */ drm_property_replace_blob(&crtc_state->uapi.degamma_lut,
@@ -16810,6 +16819,11 @@ static int intel_crtc_init(struct drm_i915_private *dev_priv, enum pipe pipe) dev_priv->plane_to_crtc_mapping[i9xx_plane] = crtc; } +if (INTEL_GEN (dev_priv) >=10 ) +drm_crtc_create_scaling_filter_property (&crtc->base, +BIT (DRM_SCALING_FILTER_DEFAULT ) | +BIT (DRM_SCALING_FILTER_NEAREST_NEIGHBOR )); +intel_color_init (crtc);intel_crtc_crc_init (crtc);
drivers/gpu/drm/i915/display/intel_display_types.h +2 -0
@@ -518,6 +518,7 @@ struct intel_plane_state {unsigned int rotation;enum drm_color_encoding color_encoding;enum drm_color_range color_range; +enum drm_scaling_filter scaling_filter; } hw;struct i915_ggtt_view view;
@@ -808,6 +809,7 @@ struct intel_crtc_state {bool active, enable;struct drm_property_blob *degamma_lut, *gamma_lut, *ctm;struct drm_display_mode mode, adjusted_mode; +enum drm_scaling_filter scaling_filter; } hw;/**
drivers/gpu/drm/i915/display/intel_sprite.c +13 -2
@@ -429,6 +429,7 @@ skl_program_scaler(struct intel_plane *plane,u16 y_hphase, uv_rgb_hphase;u16 y_vphase, uv_rgb_vphase;int hscale, vscale; +u32 ps_ctrl; hscale = drm_rect_calc_hscale(&plane_state->uapi.src, &plane_state->uapi.dst,
@@ -455,8 +456,13 @@ skl_program_scaler(struct intel_plane *plane, uv_rgb_vphase =skl_scaler_calc_phase (1 , vscale, false); } -intel_de_write_fw (dev_priv,SKL_PS_CTRL (pipe, scaler_id), -PS_SCALER_EN |PS_PLANE_SEL (plane->id) | scaler->mode); + ps_ctrl =skl_scaler_get_filter_select (plane_state->hw.scaling_filter,0 ); + ps_ctrl |=PS_SCALER_EN |PS_PLANE_SEL (plane->id) | scaler->mode; + +skl_scaler_setup_filter (dev_priv, pipe, scaler_id,0 , + plane_state->hw.scaling_filter); + +intel_de_write_fw (dev_priv,SKL_PS_CTRL (pipe, scaler_id), ps_ctrl);intel_de_write_fw (dev_priv,SKL_PS_VPHASE (pipe, scaler_id),PS_Y_PHASE (y_vphase) |PS_UV_RGB_PHASE (uv_rgb_vphase)); intel_de_write_fw(dev_priv, SKL_PS_HPHASE(pipe, scaler_id),
@@ -3161,6 +3167,11 @@ skl_universal_plane_create(struct drm_i915_private *dev_priv,if (INTEL_GEN (dev_priv) >=12 )drm_plane_enable_fb_damage_clips (&plane->base); +if (INTEL_GEN (dev_priv) >=10 ) +drm_plane_create_scaling_filter_property (&plane->base, +BIT (DRM_SCALING_FILTER_DEFAULT ) | +BIT (DRM_SCALING_FILTER_NEAREST_NEIGHBOR )); +drm_plane_helper_add (&plane->base, &intel_plane_helper_funcs);return plane;
Signature · 6 lines
2.23.0 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
RE: [PATCH v5 5/5] drm/i915: Enable scaling filter for plane and CRTC
Quoted 22 lines
-----Original Message-----
From: Laxminarayan Bharadiya, Pankaj <[email protected]>
Sent: Monday, August 3, 2020 10:00 AM
To: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Lattannavar, Sameer <[email protected]>; Joonas Lahtinen <[email protected]>; Vivi, Rodrigo <[email protected]>; David Airlie <[email protected]>; Maarten Lankhorst <[email protected]>; Chris Wilson <[email protected]>; Deak, Imre <[email protected]>; Laxminarayan Bharadiya, Pankaj <[email protected]>; Lisovskiy, Stanislav <[email protected]>; Souza, Jose <[email protected]>; Navare, Manasi D <[email protected]>; Wambui Karuga <[email protected]>; Gupta, Anshuman <[email protected]>; Shankar, Uma <[email protected]>; Roper, Matthew D <[email protected]>; Pandiyan, Dhinakaran <[email protected]>
Subject: [PATCH v5 5/5] drm/i915: Enable scaling filter for plane and CRTC
Quoted 4 lines
GEN >= 10 hardware supports the programmable scaler filter.
Attach scaling filter property for CRTC and plane for GEN >= 10 hardwares and program scaler filter based on the selected filter type.
Looks good to me.
Quoted 175 lines
changes since v3:
* None
changes since v2:
* Use updated functions
* Addps_ctrlvar to contain the fullPS_CTRLregister value (Ville)
* Duplicate the scaling filter in crtc and plane hw state (Ville) changes since v1:
* None
Changes since RFC:
* Enable properties for GEN >= 10 platforms (Ville)
* Do not round off the crtc co-ordinate (Danial Stone, Ville)
* Add new functions to handle scaling filter setup (Ville)
* Remove coefficient set 0 hardcoding.Signed-off-by Shashank Sharma <[email protected]>Signed-off-by Ankit Nautiyal <[email protected]>Signed-off-by Pankaj Bharadiya <[email protected]>--- .../gpu/drm/i915/display/intel_atomic_plane.c | 1 + drivers/gpu/drm/i915/display/intel_display.c | 18 ++++++++++++++++-- .../gpu/drm/i915/display/intel_display_types.h | 2 ++ drivers/gpu/drm/i915/display/intel_sprite.c | 15 +++++++++++++-- 4 files changed, 32 insertions(+), 4 deletions(-)drivers/gpu/drm/i915/display/intel_atomic_plane.c +2
-0@@ -262,6 +262,7 @@ void intel_plane_copy_uapi_to_hw_state(struct intel_plane_state *plane_state, plane_state->hw.rotation = from_plane_state->uapi.rotation; plane_state->hw.color_encoding = from_plane_state- >uapi.color_encoding; plane_state->hw.color_range = from_plane_state->uapi.color_range; + plane_state->hw.scaling_filter = +from_plane_state->uapi.scaling_filter; } void intel_plane_set_invisible(struct intel_crtc_state *crtc_state, diff --git
a/drivers/gpu/drm/i915/display/intel_display.cb/drivers/gpu/drm/i915/display/intel_display.c
index388999404e05..507932099b8d100644drivers/gpu/drm/i915/display/intel_display.c +1
-0@@ -6352,6 +6352,7 @@ static void skl_pfit_enable(const struct intel_crtc_state *crtc_state)int hscale, vscale;unsigned long irqflags;int id; +u32 ps_ctrl;if (!crtc_state->pch_pfit.enabled)drivers/gpu/drm/i915/display/intel_display.c +8
-2return ;@@ -6368,10 +6369,16 @@ static void skl_pfit_enable(const struct intel_crtc_state *crtc_state) id = scaler_state->scaler_id; + ps_ctrl =skl_scaler_get_filter_select (crtc_state->hw.scaling_filter,0 ); + ps_ctrl |=PS_SCALER_EN | scaler_state->scalers[id].mode; +spin_lock_irqsave (&dev_priv->uncore.lock, irqflags); -intel_de_write_fw (dev_priv,SKL_PS_CTRL (pipe, id),PS_SCALER_EN | -PS_FILTER_MEDIUM | scaler_state->scalers[id].mode); +skl_scaler_setup_filter (dev_priv, pipe, id,0 , + crtc_state->hw.scaling_filter); + +intel_de_write_fw (dev_priv,SKL_PS_CTRL (pipe, id), ps_ctrl); +intel_de_write_fw (dev_priv,SKL_PS_VPHASE (pipe, id),PS_Y_PHASE (0 ) |PS_UV_RGB_PHASE (uv_rgb_vphase));intel_de_write_fw(dev_priv,
SKL_PS_HPHASE(pipe, id), @@ -13332,6
+13339,7 @@intel_crtc_copy_uapi_to_hw_state(struct intel_crtc_state *crtc_state)drivers/gpu/drm/i915/display/intel_display.c +1
-0crtc_state->hw.active = crtc_state->uapi.active; crtc_state->hw.mode = crtc_state->uapi.mode; crtc_state->hw.adjusted_mode = crtc_state->uapi.adjusted_mode; + crtc_state->hw.scaling_filter = crtc_state->uapi.scaling_filter;intel_crtc_copy_uapi_to_hw_state_nomodeset (crtc_state); }@@ -13343,6 +13351,7 @@ static void intel_crtc_copy_hw_to_uapi_state(struct
intel_crtc_state*crtc_state
drm_atomic_set_mode_for_crtc(&crtc_state->uapi,&crtc_state->hw.mode) < 0);drivers/gpu/drm/i915/display/intel_display.c +6
-0crtc_state->uapi.adjusted_mode = crtc_state->hw.adjusted_mode; + crtc_state->uapi.scaling_filter = crtc_state->hw.scaling_filter;/* copy color blobs to uapi */ drm_property_replace_blob(&crtc_state->uapi.degamma_lut,@@ -16810,6 +16819,11 @@ static int intel_crtc_init(struct drm_i915_private *dev_priv, enum pipe pipe) dev_priv->plane_to_crtc_mapping[i9xx_plane] = crtc; } +if (INTEL_GEN (dev_priv) >=10 ) +drm_crtc_create_scaling_filter_property (&crtc->base, +BIT (DRM_SCALING_FILTER_DEFAULT ) | +BIT (DRM_SCALING_FILTER_NEAREST_NEIGHBOR )); +drivers/gpu/drm/i915/display/intel_display.c +0
-0intel_color_init (crtc);intel_crtc_crc_init (crtc);drivers/gpu/drm/i915/display/intel_display_types.h +2
-0@@ -518,6 +518,7 @@ struct intel_plane_state {unsigned int rotation;enum drm_color_encoding color_encoding;enum drm_color_range color_range; +enum drm_scaling_filter scaling_filter; } hw;struct i915_ggtt_view view;@@ -808,6 +809,7 @@ struct intel_crtc_state {bool active, enable;struct drm_property_blob *degamma_lut, *gamma_lut, *ctm;struct drm_display_mode mode, adjusted_mode; +enum drm_scaling_filter scaling_filter; } hw;/** drivers/gpu/drm/i915/display/intel_sprite.c +8
-2@@ -429,6 +429,7 @@ skl_program_scaler(struct intel_plane *plane,u16 y_hphase, uv_rgb_hphase;u16 y_vphase, uv_rgb_vphase;int hscale, vscale; +u32 ps_ctrl; hscale = drm_rect_calc_hscale(&plane_state->uapi.src, &plane_state->uapi.dst,@@ -455,8 +456,13 @@ skl_program_scaler(struct intel_plane *plane, uv_rgb_vphase =skl_scaler_calc_phase (1 , vscale, false); } -intel_de_write_fw (dev_priv,SKL_PS_CTRL (pipe, scaler_id), -PS_SCALER_EN |PS_PLANE_SEL (plane->id) | scaler- >mode); + ps_ctrl =skl_scaler_get_filter_select (plane_state->hw.scaling_filter,0 ); + ps_ctrl |=PS_SCALER_EN |PS_PLANE_SEL (plane->id) | scaler->mode; + +skl_scaler_setup_filter (dev_priv, pipe, scaler_id,0 , + plane_state->hw.scaling_filter); + +intel_de_write_fw (dev_priv,SKL_PS_CTRL (pipe, scaler_id), ps_ctrl); intel_de_write_fw(dev_priv, SKL_PS_VPHASE(pipe, scaler_id), PS_Y_PHASE(y_vphase) |
PS_UV_RGB_PHASE(uv_rgb_vphase));
intel_de_write_fw(dev_priv,SKL_PS_HPHASE(pipe, scaler_id), @@ -
3161,6 +3167,11 @@ skl_universal_plane_create(structdrm_i915_private*dev_priv,drivers/gpu/drm/i915/display/intel_sprite.c +3
-0if (INTEL_GEN (dev_priv) >=12 )drm_plane_enable_fb_damage_clips (&plane->base); +if (INTEL_GEN (dev_priv) >=10 ) + drm_plane_create_scaling_filter_property(&plane->base, +
BIT(DRM_SCALING_FILTER_DEFAULT)|
+BIT(DRM_SCALING_FILTER_NEAREST_NEIGHBOR));drivers/gpu/drm/i915/display/intel_sprite.c +1
-1+drm_plane_helper_add (&plane->base, &intel_plane_helper_funcs);return plane; --
Quoted 1 line
2.23.0
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Patchwork
CI[Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for Introduce drm scaling filter property (rev7)
In reply to Pankaj Bharadiya== Series Details ==
== Series Details ==
Series: Introduce drm scaling filter property (rev7)
URL : https://patchwork.freedesktop.org/series/73883/
State : warning
== Summary ==
$ dim checkpatch origin/drm-tip e4e6d491d898 drm: Introduce plane and CRTC scaling filter properties aef69ee0f157 drm/drm-kms.rst: Add plane and CRTC scaling filter property documentation 1e38228e0f26 drm/i915: Introduce scaling filter related registers and bit fields. -:70: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'id' - possible side-effects? #70: FILE: drivers/gpu/drm/i915/i915_reg.h:7514: +#define CNL_PS_COEF_INDEX_SET(pipe, id, set) _MMIO_PIPE(pipe, \ + _ID(id, _PS_COEF_SET0_INDEX_1A, _PS_COEF_SET0_INDEX_2A) + (set) * 8, \ + _ID(id, _PS_COEF_SET0_INDEX_1B, _PS_COEF_SET0_INDEX_2B) + (set) * 8)
-:70: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'set' - possible side-effects? #70: FILE: drivers/gpu/drm/i915/i915_reg.h:7514:
+#define CNL_PS_COEF_INDEX_SET(pipe, id, set) _MMIO_PIPE(pipe, \
+ _ID(id, _PS_COEF_SET0_INDEX_1A, _PS_COEF_SET0_INDEX_2A) + (set) * 8, \
+ _ID(id, _PS_COEF_SET0_INDEX_1B, _PS_COEF_SET0_INDEX_2B) + (set) * 8)
-:74: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'id' - possible side-effects? #74: FILE: drivers/gpu/drm/i915/i915_reg.h:7518:
+#define CNL_PS_COEF_DATA_SET(pipe, id, set) _MMIO_PIPE(pipe, \
+ _ID(id, _PS_COEF_SET0_DATA_1A, _PS_COEF_SET0_DATA_2A) + (set) * 8, \
+ _ID(id, _PS_COEF_SET0_DATA_1B, _PS_COEF_SET0_DATA_2B) + (set) * 8)
-:74: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'set' - possible side-effects? #74: FILE: drivers/gpu/drm/i915/i915_reg.h:7518:
+#define CNL_PS_COEF_DATA_SET(pipe, id, set) _MMIO_PIPE(pipe, \
+ _ID(id, _PS_COEF_SET0_DATA_1A, _PS_COEF_SET0_DATA_2A) + (set) * 8, \
+ _ID(id, _PS_COEF_SET0_DATA_1B, _PS_COEF_SET0_DATA_2B) + (set) * 8)
total: 0 errors, 0 warnings, 4 checks, 47 lines checked8eff2169f553 drm/i915/display: Add Nearest-neighbor based integer scaling support c7a29cfbc920 drm/i915: Enable scaling filter for plane and CRTC -:95: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #95: FILE: drivers/gpu/drm/i915/display/intel_display.c:16824:
+ drm_crtc_create_scaling_filter_property(&crtc->base,
+ BIT(DRM_SCALING_FILTER_DEFAULT) |
-:155: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #155: FILE: drivers/gpu/drm/i915/display/intel_sprite.c:3172:
+ drm_plane_create_scaling_filter_property(&plane->base,
+ BIT(DRM_SCALING_FILTER_DEFAULT) |
total: 0 errors, 0 warnings, 2 checks, 104 lines checked
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.SPARSE: warning for Introduce drm scaling filter property (rev7)
In reply to Pankaj Bharadiya== Series Details ==
== Series Details ==
Series: Introduce drm scaling filter property (rev7)
URL : https://patchwork.freedesktop.org/series/73883/
State : warning
== Summary ==
$ dim sparse --fast origin/drm-tip Sparse version: v0.6.0 Fast mode used, each commit won't be checked separately.
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✓ Fi.CI.BAT: success for Introduce drm scaling filter property (rev7)
In reply to Pankaj Bharadiya== Series Details ==
== Series Details ==
Series: Introduce drm scaling filter property (rev7)
URL : https://patchwork.freedesktop.org/series/73883/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_8832 -> Patchwork_18296
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/index.html
Known issues
------------
Here are the changes found in Patchwork_18296 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@kms_cursor_legacy@basic-flip-after-cursor-atomic:
- fi-icl-u2: [PASS][1] -> [DMESG-WARN][2] ([i915#1982])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/fi-icl-u2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/fi-icl-u2/igt@[email protected]
#### Possible fixes ####
* igt@i915_module_load@reload:
- fi-bxt-dsi: [DMESG-WARN][3] ([i915#1635] / [i915#1982]) -> [PASS][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/fi-bxt-dsi/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/fi-bxt-dsi/igt@[email protected]
* igt@i915_selftest@live@active:
- {fi-ehl-1}: [DMESG-FAIL][5] ([i915#541]) -> [PASS][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/fi-ehl-1/igt@i915_selftest@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/fi-ehl-1/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@execlists:
- fi-icl-y: [INCOMPLETE][7] -> [PASS][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/fi-icl-y/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/fi-icl-y/igt@i915_selftest@[email protected]
* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-atomic:
- fi-bsw-n3050: [DMESG-WARN][9] ([i915#1982]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/fi-bsw-n3050/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/fi-bsw-n3050/igt@[email protected]
- fi-bsw-kefka: [DMESG-WARN][11] ([i915#1982]) -> [PASS][12] +1 similar issue
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/fi-bsw-kefka/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/fi-bsw-kefka/igt@[email protected]
* igt@kms_flip@basic-flip-vs-wf_vblank@c-edp1:
- fi-icl-u2: [DMESG-WARN][13] ([i915#1982]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/fi-icl-u2/igt@kms_flip@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/fi-icl-u2/igt@kms_flip@[email protected]
#### Warnings ####
* igt@gem_exec_suspend@basic-s0:
- fi-kbl-x1275: [DMESG-WARN][15] ([i915#62] / [i915#92]) -> [DMESG-WARN][16] ([i915#1982] / [i915#62] / [i915#92])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/fi-kbl-x1275/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/fi-kbl-x1275/igt@[email protected]
* igt@kms_cursor_legacy@basic-flip-after-cursor-legacy:
- fi-kbl-x1275: [DMESG-WARN][17] ([i915#62] / [i915#92] / [i915#95]) -> [DMESG-WARN][18] ([i915#62] / [i915#92]) +2 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/fi-kbl-x1275/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/fi-kbl-x1275/igt@[email protected]
* igt@kms_force_connector_basic@force-edid:
- fi-kbl-x1275: [DMESG-WARN][19] ([i915#62] / [i915#92]) -> [DMESG-WARN][20] ([i915#62] / [i915#92] / [i915#95]) +3 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/fi-kbl-x1275/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/fi-kbl-x1275/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#541]: https://gitlab.freedesktop.org/drm/intel/issues/541
[i915#579]: https://gitlab.freedesktop.org/drm/intel/issues/579
[i915#62]: https://gitlab.freedesktop.org/drm/intel/issues/62
[i915#665]: https://gitlab.freedesktop.org/drm/intel/issues/665
[i915#92]: https://gitlab.freedesktop.org/drm/intel/issues/92
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (42 -> 35)
------------------------------
Missing (7): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600 fi-byt-clapper fi-bdw-samus
Build changes
-------------
* Linux: CI_DRM_8832 -> Patchwork_18296
CI-20190529: 20190529
CI_DRM_8832: 00b9a4b2331e1dceef8994e3b144e2c5e8c55003 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5757: d78c7fd293cb228fe03ccff730202b033e25ff18 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18296: c7a29cfbc920df16ad17fbf6b7d06131bacd732a @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
c7a29cfbc920 drm/i915: Enable scaling filter for plane and CRTC 8eff2169f553 drm/i915/display: Add Nearest-neighbor based integer scaling support 1e38228e0f26 drm/i915: Introduce scaling filter related registers and bit fields. aef69ee0f157 drm/drm-kms.rst: Add plane and CRTC scaling filter property documentation e4e6d491d898 drm: Introduce plane and CRTC scaling filter properties
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI[Intel-gfx] ✗ Fi.CI.IGT: failure for Introduce drm scaling filter property (rev7)
In reply to Pankaj Bharadiya== Series Details ==
== Series Details ==
Series: Introduce drm scaling filter property (rev7)
URL : https://patchwork.freedesktop.org/series/73883/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_8832_full -> Patchwork_18296_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with Patchwork_18296_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in Patchwork_18296_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in Patchwork_18296_full:
### IGT changes ###
#### Possible regressions ####
* igt@kms_mmap_write_crc@main:
- shard-glk: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-glk2/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-glk3/igt@[email protected]
Known issues
------------
Here are the changes found in Patchwork_18296_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_pm_dc@dc6-psr:
- shard-skl: [PASS][3] -> [FAIL][4] ([i915#454])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-skl5/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-skl10/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-kbl: [PASS][5] -> [DMESG-WARN][6] ([i915#180]) +4 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-kbl1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-kbl2/igt@[email protected]
* igt@kms_cursor_edge_walk@pipe-c-256x256-bottom-edge:
- shard-skl: [PASS][7] -> [DMESG-WARN][8] ([i915#1982]) +9 similar issues
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-skl6/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-skl2/igt@[email protected]
* igt@kms_cursor_legacy@long-nonblocking-modeset-vs-cursor-atomic:
- shard-apl: [PASS][9] -> [FAIL][10] ([i915#1181] / [i915#1635])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-apl6/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-apl6/igt@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@b-edp1:
- shard-skl: [PASS][11] -> [FAIL][12] ([i915#79])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-skl6/igt@kms_flip@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-skl10/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-expired-vblank-interruptible@c-hdmi-a1:
- shard-glk: [PASS][13] -> [FAIL][14] ([i915#79])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-glk3/igt@kms_flip@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-glk5/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-suspend@c-hdmi-a1:
- shard-hsw: [PASS][15] -> [INCOMPLETE][16] ([i915#2055])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-hsw1/igt@kms_flip@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-hsw2/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-ts-check-interruptible@c-edp1:
- shard-skl: [PASS][17] -> [FAIL][18] ([i915#2122])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-skl5/igt@kms_flip@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-skl10/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-move:
- shard-glk: [PASS][19] -> [FAIL][20] ([i915#49])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-glk2/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-glk3/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-modesetfrombusy:
- shard-tglb: [PASS][21] -> [DMESG-WARN][22] ([i915#1982])
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-tglb2/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-tglb3/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: [PASS][23] -> [FAIL][24] ([fdo#108145] / [i915#265]) +2 similar issues
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-skl6/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-skl1/igt@[email protected]
* igt@kms_plane_scaling@pipe-c-scaler-with-clipping-clamping:
- shard-iclb: [PASS][25] -> [DMESG-WARN][26] ([i915#1982])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-iclb8/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-iclb3/igt@[email protected]
* igt@kms_psr@psr2_cursor_mmap_cpu:
- shard-iclb: [PASS][27] -> [SKIP][28] ([fdo#109441]) +2 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-iclb2/igt@kms_psr@psr2_cursor_mmap_cpu.html
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-iclb4/igt@kms_psr@psr2_cursor_mmap_cpu.html
* igt@kms_setmode@basic:
- shard-kbl: [PASS][29] -> [FAIL][30] ([i915#31])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-kbl6/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-kbl1/igt@[email protected]
* igt@perf@blocking-parameterized:
- shard-iclb: [PASS][31] -> [FAIL][32] ([i915#1542])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-iclb4/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-iclb3/igt@[email protected]
#### Possible fixes ####
* igt@gem_eio@in-flight-suspend:
- shard-skl: [INCOMPLETE][33] -> [PASS][34]
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-skl10/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-skl8/igt@[email protected]
* igt@i915_module_load@reload:
- shard-skl: [DMESG-WARN][35] ([i915#1982]) -> [PASS][36] +10 similar issues
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-skl9/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-skl4/igt@[email protected]
* igt@kms_big_fb@y-tiled-64bpp-rotate-0:
- shard-glk: [DMESG-FAIL][37] ([i915#118] / [i915#95]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-glk8/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-glk1/igt@[email protected]
* igt@kms_color@pipe-c-ctm-blue-to-red:
- shard-kbl: [DMESG-WARN][39] ([i915#78]) -> [PASS][40]
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-kbl2/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-kbl6/igt@[email protected]
* igt@kms_cursor_crc@pipe-b-cursor-128x42-random:
- shard-glk: [FAIL][41] ([i915#54]) -> [PASS][42]
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-glk8/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-glk1/igt@[email protected]
* igt@kms_cursor_crc@pipe-c-cursor-suspend:
- shard-apl: [INCOMPLETE][43] ([i915#1635]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-apl8/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-apl6/igt@[email protected]
* igt@kms_cursor_legacy@all-pipes-torture-bo:
- shard-iclb: [DMESG-WARN][45] ([i915#128]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-iclb5/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-iclb6/igt@[email protected]
* igt@kms_cursor_legacy@cursor-vs-flip-varying-size:
- shard-hsw: [FAIL][47] ([i915#57]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-hsw1/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-hsw1/igt@[email protected]
* igt@kms_flip@flip-vs-dpms-off-vs-modeset@b-dp1:
- shard-kbl: [DMESG-WARN][49] -> [PASS][50]
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-kbl2/igt@kms_flip@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-kbl6/igt@kms_flip@[email protected]
* igt@kms_flip@flip-vs-dpms-off-vs-modeset@c-dp1:
- shard-kbl: [DMESG-WARN][51] ([i915#165]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-kbl2/igt@kms_flip@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-kbl6/igt@kms_flip@[email protected]
* igt@kms_flip@plain-flip-ts-check-interruptible@b-edp1:
- shard-skl: [FAIL][53] ([i915#2122]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-skl5/igt@kms_flip@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-skl10/igt@kms_flip@[email protected]
* igt@kms_frontbuffer_tracking@fbc-suspend:
- shard-kbl: [DMESG-WARN][55] ([i915#180]) -> [PASS][56] +7 similar issues
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-kbl6/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-kbl1/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render:
- shard-tglb: [DMESG-WARN][57] ([i915#1982]) -> [PASS][58] +1 similar issue
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-tglb3/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-tglb2/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-shrfb-draw-render.html
* igt@kms_frontbuffer_tracking@psr-shrfb-scaledprimary:
- shard-iclb: [DMESG-WARN][59] ([i915#1982]) -> [PASS][60]
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-iclb3/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-iclb5/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: [DMESG-FAIL][61] ([fdo#108145] / [i915#1982]) -> [PASS][62]
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-skl5/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-skl10/igt@[email protected]
* igt@kms_plane_alpha_blend@pipe-c-constant-alpha-min:
- shard-skl: [FAIL][63] ([fdo#108145] / [i915#265]) -> [PASS][64]
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-skl1/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-skl9/igt@[email protected]
* igt@kms_psr@psr2_primary_mmap_cpu:
- shard-iclb: [SKIP][65] ([fdo#109441]) -> [PASS][66] +2 similar issues
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-iclb1/igt@kms_psr@psr2_primary_mmap_cpu.html
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-iclb2/igt@kms_psr@psr2_primary_mmap_cpu.html
* igt@kms_setmode@basic:
- shard-glk: [FAIL][67] ([i915#31]) -> [PASS][68]
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-glk5/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-glk8/igt@[email protected]
#### Warnings ####
* igt@gem_exec_reloc@basic-concurrent16:
- shard-iclb: [INCOMPLETE][69] ([i915#1958]) -> [TIMEOUT][70] ([i915#1958])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-iclb8/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-iclb6/igt@[email protected]
* igt@kms_content_protection@lic:
- shard-kbl: [TIMEOUT][71] ([i915#1319] / [i915#1958]) -> [TIMEOUT][72] ([i915#1319])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_8832/shard-kbl6/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_18296/shard-kbl1/igt@[email protected]
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#109441]: https://bugs.freedesktop.org/show_bug.cgi?id=109441
[i915#118]: https://gitlab.freedesktop.org/drm/intel/issues/118
[i915#1181]: https://gitlab.freedesktop.org/drm/intel/issues/1181
[i915#128]: https://gitlab.freedesktop.org/drm/intel/issues/128
[i915#1319]: https://gitlab.freedesktop.org/drm/intel/issues/1319
[i915#1542]: https://gitlab.freedesktop.org/drm/intel/issues/1542
[i915#1635]: https://gitlab.freedesktop.org/drm/intel/issues/1635
[i915#165]: https://gitlab.freedesktop.org/drm/intel/issues/165
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1958]: https://gitlab.freedesktop.org/drm/intel/issues/1958
[i915#1982]: https://gitlab.freedesktop.org/drm/intel/issues/1982
[i915#2055]: https://gitlab.freedesktop.org/drm/intel/issues/2055
[i915#2122]: https://gitlab.freedesktop.org/drm/intel/issues/2122
[i915#265]: https://gitlab.freedesktop.org/drm/intel/issues/265
[i915#31]: https://gitlab.freedesktop.org/drm/intel/issues/31
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#49]: https://gitlab.freedesktop.org/drm/intel/issues/49
[i915#54]: https://gitlab.freedesktop.org/drm/intel/issues/54
[i915#57]: https://gitlab.freedesktop.org/drm/intel/issues/57
[i915#78]: https://gitlab.freedesktop.org/drm/intel/issues/78
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#95]: https://gitlab.freedesktop.org/drm/intel/issues/95
Participating hosts (11 -> 11)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_8832 -> Patchwork_18296
CI-20190529: 20190529
CI_DRM_8832: 00b9a4b2331e1dceef8994e3b144e2c5e8c55003 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_5757: d78c7fd293cb228fe03ccff730202b033e25ff18 @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_18296: c7a29cfbc920df16ad17fbf6b7d06131bacd732a @ 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_18296/index.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx