drm/i915: Simplify platform checks in intel_fb_pitch_limit()
Subsystems (2)
PATCH 1/1 drm/i915: Simplify platform checks in intel_fb_pitch_limit()
From: Ville Syrjälä <[email protected]>
Replace the VLV/CHV check with a HAS_GMCH_DISPLAY check intel_fb_pitch_limit(), because it's shorter.
--- drivers/gpu/drm/i915/intel_display.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +1 -2
@@ -14346,8 +14346,7 @@ u32 intel_fb_pitch_limit(struct drm_i915_private *dev_priv,* pixels and 32K bytes." */ return min (8192 * cpp,32768 ); - }else if (gen >=5 && !IS_VALLEYVIEW (dev_priv) && - !IS_CHERRYVIEW (dev_priv)) { + }else if (gen >=5 && !HAS_GMCH_DISPLAY (dev_priv)) {return 32 *1024 ; }else if (gen >=4 ) {if (fb_modifier ==I915_FORMAT_MOD_X_TILED )
Signature · 6 lines
2.10.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Simplify platform checks in intel_fb_pitch_limit()
== Series Details ==
== Series Details ==
Series: drm/i915: Simplify platform checks in intel_fb_pitch_limit()
URL : https://patchwork.freedesktop.org/series/19330/
State : success
== Summary ==
Series 19330v1 drm/i915: Simplify platform checks in intel_fb_pitch_limit()
https://patchwork.freedesktop.org/api/1.0/series/19330/revisions/1/mbox/
Test gem_exec_fence:
Subgroup await-hang-default:
incomplete -> PASS (fi-hsw-4770)
Test kms_pipe_crc_basic:
Subgroup suspend-read-crc-pipe-a:
incomplete -> PASS (fi-ilk-650)fi-bdw-5557u total:252 pass:238 dwarn:0 dfail:0 fail:0 skip:14 fi-bsw-n3050 total:252 pass:213 dwarn:0 dfail:0 fail:0 skip:39 fi-bxt-j4205 total:252 pass:230 dwarn:0 dfail:0 fail:0 skip:22 fi-bxt-t5700 total:83 pass:70 dwarn:0 dfail:0 fail:0 skip:12 fi-byt-j1900 total:252 pass:225 dwarn:0 dfail:0 fail:0 skip:27 fi-byt-n2820 total:252 pass:221 dwarn:0 dfail:0 fail:0 skip:31 fi-hsw-4770 total:252 pass:233 dwarn:0 dfail:0 fail:0 skip:19 fi-hsw-4770r total:252 pass:233 dwarn:0 dfail:0 fail:0 skip:19 fi-ilk-650 total:252 pass:199 dwarn:0 dfail:0 fail:0 skip:53 fi-ivb-3520m total:252 pass:231 dwarn:0 dfail:0 fail:0 skip:21 fi-ivb-3770 total:252 pass:231 dwarn:0 dfail:0 fail:0 skip:21 fi-kbl-7500u total:252 pass:229 dwarn:0 dfail:0 fail:2 skip:21 fi-skl-6260u total:252 pass:239 dwarn:0 dfail:0 fail:0 skip:13 fi-skl-6700hq total:252 pass:232 dwarn:0 dfail:0 fail:0 skip:20 fi-skl-6700k total:252 pass:227 dwarn:4 dfail:0 fail:0 skip:21 fi-skl-6770hq total:252 pass:239 dwarn:0 dfail:0 fail:0 skip:13 fi-snb-2520m total:252 pass:221 dwarn:0 dfail:0 fail:0 skip:31 fi-snb-2600 total:252 pass:220 dwarn:0 dfail:0 fail:0 skip:32
2699547830db3e698485f452e29278c09f084397 drm-tip: 2017y-02m-08d-18h-25m-45s UTC integration manifest 9d54d19 drm/i915: Simplify platform checks in intel_fb_pitch_limit()
== Logs ==
For more details see: https://intel-gfx-ci.01.org/CI/Patchwork_3742/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 3 lines · On Wed, 2017-02-08 at 19:53 +0200, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
Replace the VLV/CHV check with a
HAS_GMCH_DISPLAYcheck
in
Quoted 3 lines
intel_fb_pitch_limit(), because it's shorter.Signed-off-by Ville Syrjälä <[email protected]>
Quoted 19 lines
---
drivers/gpu/drm/i915/intel_display.c | 3 +--1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/i915/intel_display.c +1
-2@@ -14346,8 +14346,7 @@ u32 intel_fb_pitch_limit(struct drm_i915_private*dev_priv, * pixels and 32K bytes." */ return min(8192 * cpp, 32768); - }else if (gen >=5 && !IS_VALLEYVIEW (dev_priv) && - !IS_CHERRYVIEW(dev_priv)) { + }else if (gen >=5 && !HAS_GMCH_DISPLAY (dev_priv)) { return 32*1024; } else if (gen >= 4) {
Quoted 1 line
if (
fb_modifier==I915_FORMAT_MOD_X_TILED)
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · Ander Conselvan De Oliveira
Quoted 3 lines · On Wed, 2017-02-08 at 19:53 +0200, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
Replace the VLV/CHV check with a
HAS_GMCH_DISPLAYcheckin
Fixed, and pushed to dinq. Thanks for the review.
Quoted 27 lines
Quoted 4 lines
intel_fb_pitch_limit(), because it's shorter.Signed-off-by Ville Syrjälä <[email protected]>Reviewed-by Ander Conselvan de Oliveira <[email protected]>Quoted 20 lines
---
drivers/gpu/drm/i915/intel_display.c | 3 +--1 file changed, 1 insertion(+), 2 deletions(-)drivers/gpu/drm/i915/intel_display.c +1
-2@@ -14346,8 +14346,7 @@ u32 intel_fb_pitch_limit(struct drm_i915_private*dev_priv, * pixels and 32K bytes." */ return min(8192 * cpp, 32768); - }else if (gen >=5 && !IS_VALLEYVIEW (dev_priv) && - !IS_CHERRYVIEW(dev_priv)) { + }else if (gen >=5 && !HAS_GMCH_DISPLAY (dev_priv)) { return 32*1024; } else if (gen >= 4) {if (
fb_modifier==I915_FORMAT_MOD_X_TILED)
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx