drm/i915: Increase max texture to 16k for gen9+
Subsystems (2)
PATCH 1/1 drm/i915: Increase max texture to 16k for gen9+
Rrefer to another patch [1] on mesa to extend width/height to 16384. For issue :
- https://bugs.freedesktop.org/show_bug.cgi?id=102508
- LP: #1714178 Triple monitor display failed with Dell Dock (HiDPI)
[1] https://patchwork.freedesktop.org/patch/124918/
--- drivers/gpu/drm/i915/intel_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/intel_display.c +3 -3
@@ -13905,7 +13905,7 @@ u32 intel_fb_pitch_limit(struct drm_i915_private *dev_priv,/* "The stride in bytes must not exceed the of the size of 8K * pixels and 32K bytes." */ -return min (8192 * cpp,32768 ); +return min (16384 * cpp,65536 ); }else if (gen >=5 && !HAS_GMCH_DISPLAY (dev_priv)) {return 32 *1024 ; }else if (gen >=4 ) {
@@ -14604,8 +14604,8 @@ int intel_modeset_init(struct drm_device *dev) dev->mode_config.max_width =4096 ; dev->mode_config.max_height =4096 ; }else { - dev->mode_config.max_width =8192 ; - dev->mode_config.max_height =8192 ; + dev->mode_config.max_width =16384 ; + dev->mode_config.max_height =16384 ; }if (IS_I845G (dev_priv) ||IS_I865G (dev_priv)) {
Signature · 1 line
2.11.0
Quoting Alex Tu (2017-12-07 09:26:00)
Quoted 26 lines
Rrefer to another patch [1] on mesa to extend width/height to 16384. For issue :
- https://bugs.freedesktop.org/show_bug.cgi?id=102508
- LP: #1714178 Triple monitor display failed with Dell Dock (HiDPI)[1] https://patchwork.freedesktop.org/patch/124918/
Signed-off-by Alex Tu <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/intel_display.c +1
-1@@ -13905,7 +13905,7 @@ u32 intel_fb_pitch_limit(struct drm_i915_private *dev_priv,/* "The stride in bytes must not exceed the of the size of 8K * pixels and 32K bytes." */ -return min (8192 * cpp,32768 ); +return min (16384 * cpp,65536 ); }else if (gen >=5 && !HAS_GMCH_DISPLAY (dev_priv)) {return 32 *1024 ; }else if (gen >=4 ) {
drivers/gpu/drm/i915/intel_display.c int intel_modeset_init(struct drm_device *dev) · line 14608
Quoted 7 lines
drivers/gpu/drm/i915/intel_display.c +2
-2@@ -14604,8 +14604,8 @@ int intel_modeset_init(struct drm_device *dev) dev->mode_config.max_width =4096 ; dev->mode_config.max_height =4096 ; }else { - dev->mode_config.max_width =8192 ; - dev->mode_config.max_height =8192 ; + dev->mode_config.max_width =16384 ; + dev->mode_config.max_height =16384 ;
These are nothing to do with texture size, but single CRTC bounds. -Chris
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Thanks for comment.
I'm not familiar with that, so just followed the patch in mes
https://patchwork.freedesktop.org/patch/124918/a.
How about change subtitle to "drm/i915: Increase max CRTC bounds to 16k for gen9+"?
Quoted 32 lines · Chris Wilson
Quoting Alex Tu (2017-12-07 09:26:00)
Quoted 5 lines
Rrefer to another patch [1] on mesa to extend width/height to 16384. For issue :
- https://bugs.freedesktop.org/show_bug.cgi?id=102508
- LP: #1714178 Triple monitor display failed with Dell Dock (HiDPI)Review
Quoted 8 lines
[1] https://patchwork.freedesktop.org/patch/124918/
Signed-off-by Alex Tu <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/i915/intel_display.cdrivers/gpu/drm/i915/intel_display.c u32 intel_fb_pitch_limit(struct drm_i915_private
Quoted 4 lines
index
47a2f6acee50..556fa57b18b8100644drivers/gpu/drm/i915/intel_display.c +0
-0@@ -13905,7 +13905,7 @@ u32 intel_fb_pitch_limit(struct drm_i915_private
*dev_priv,drivers/gpu/drm/i915/intel_display.c u32 intel_fb_pitch_limit(struct drm_i915_private · line 13905
Quoted 1 line
drivers/gpu/drm/i915/intel_display.c +0
-0/* "The stride in bytes must not exceed the of the size of 8K
Quoted 10 lines
drivers/gpu/drm/i915/intel_display.c +1
-1* pixels and 32K bytes." */ -return min (8192 * cpp,32768 ); +return min (16384 * cpp,65536 ); }else if (gen >=5 && !HAS_GMCH_DISPLAY (dev_priv)) {return 32 *1024 ; }else if (gen >=4 ) {@@ -14604,8 +14604,8 @@ int intel_modeset_init(struct drm_device *dev) dev->mode_config.max_width =4096 ; dev->mode_config.max_height =4096 ;
Quoted 9 lines
drivers/gpu/drm/i915/intel_display.c int intel_modeset_init(struct drm_device *dev) · line 14608
Quoted 5 lines
drivers/gpu/drm/i915/intel_display.c +2
-2}else { - dev->mode_config.max_width =8192 ; - dev->mode_config.max_height =8192 ; + dev->mode_config.max_width =16384 ; + dev->mode_config.max_height =16384 ;These are nothing to do with texture size, but single CRTC bounds. -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · Alex Tu
Thanks for comment.
I'm not familiar with that, so just followed the patch in mes
https://patchwork.freedesktop.org/patch/124918/a.How about change subtitle to "drm/i915: Increase max CRTC bounds to 16k for gen9+"?
The render side of the gpu has nothing to do with the display side. Just because render has higher limits doesn't mean the same limits apply to the display side. We've had plenty of chips where they don't match.
So trying to justify a CRTC limit change with a mesa change is bogus. -Daniel
Quoted 49 lines
Quoted 32 lines · Chris Wilson
Quoting Alex Tu (2017-12-07 09:26:00)
Quoted 5 lines
Rrefer to another patch [1] on mesa to extend width/height to 16384. For issue :
- https://bugs.freedesktop.org/show_bug.cgi?id=102508
- LP: #1714178 Triple monitor display failed with Dell Dock (HiDPI)Review
Quoted 8 lines
[1] https://patchwork.freedesktop.org/patch/124918/
Signed-off-by Alex Tu <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/i915/intel_display.cdrivers/gpu/drm/i915/intel_display.c u32 intel_fb_pitch_limit(struct drm_i915_private
Quoted 4 lines
index
47a2f6acee50..556fa57b18b8100644drivers/gpu/drm/i915/intel_display.c +0
-0@@ -13905,7 +13905,7 @@ u32 intel_fb_pitch_limit(struct drm_i915_private
*dev_priv,drivers/gpu/drm/i915/intel_display.c u32 intel_fb_pitch_limit(struct drm_i915_private · line 13905
Quoted 1 line
drivers/gpu/drm/i915/intel_display.c +0
-0/* "The stride in bytes must not exceed the of the size of 8K
Quoted 10 lines
drivers/gpu/drm/i915/intel_display.c +1
-1* pixels and 32K bytes." */ -return min (8192 * cpp,32768 ); +return min (16384 * cpp,65536 ); }else if (gen >=5 && !HAS_GMCH_DISPLAY (dev_priv)) {return 32 *1024 ; }else if (gen >=4 ) {@@ -14604,8 +14604,8 @@ int intel_modeset_init(struct drm_device *dev) dev->mode_config.max_width =4096 ; dev->mode_config.max_height =4096 ;Quoted 9 lines
drivers/gpu/drm/i915/intel_display.c int intel_modeset_init(struct drm_device *dev) · line 14608
Quoted 5 lines
drivers/gpu/drm/i915/intel_display.c +2
-2}else { - dev->mode_config.max_width =8192 ; - dev->mode_config.max_height =8192 ; + dev->mode_config.max_width =16384 ; + dev->mode_config.max_height =16384 ;These are nothing to do with texture size, but single CRTC bounds. -Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoting Alex Tu (2017-12-07 09:26:00)
Quoted 8 lines
Rrefer to another patch [1] on mesa to extend width/height to 16384. For issue :
- https://bugs.freedesktop.org/show_bug.cgi?id=102508
- LP: #1714178 Triple monitor display failed with Dell Dock (HiDPI)[1] https://patchwork.freedesktop.org/patch/124918/
Signed-off-by Alex Tu <[email protected]>
For -intel, I just used RandR to split the fb into per-crtc-pixmaps. However, Kristian has suggested another approach where we carve per-crtc-pixmaps/-fb out of the global frontbuffer, which allows us to completely get around the stride limits of scanout and have no synchronisation penalty. We still have to create new per-crtc-fb for a flip, just like with RandR but we can avoid the extra blit.
How one feeds such details through gbm into -modesetting, I have no idea.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for drm/i915: Increase max texture to 16k for gen9+
In reply to Alex Tu== Series Details ==
== Series Details ==
Series: drm/i915: Increase max texture to 16k for gen9+
URL : https://patchwork.freedesktop.org/series/35016/
State : success
== Summary ==
Series 35016v1 drm/i915: Increase max texture to 16k for gen9+
https://patchwork.freedesktop.org/api/1.0/series/35016/revisions/1/mbox/
fi-bdw-5557u total:288 pass:267 dwarn:0 dfail:0 fail:0 skip:21 time:441s fi-blb-e6850 total:288 pass:223 dwarn:1 dfail:0 fail:0 skip:64 time:383s fi-bsw-n3050 total:288 pass:242 dwarn:0 dfail:0 fail:0 skip:46 time:512s fi-bwr-2160 total:288 pass:183 dwarn:0 dfail:0 fail:0 skip:105 time:281s fi-bxt-dsi total:288 pass:258 dwarn:0 dfail:0 fail:0 skip:30 time:508s fi-bxt-j4205 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:504s fi-byt-j1900 total:288 pass:253 dwarn:0 dfail:0 fail:0 skip:35 time:490s fi-byt-n2820 total:288 pass:249 dwarn:0 dfail:0 fail:0 skip:39 time:473s fi-gdg-551 total:288 pass:179 dwarn:1 dfail:0 fail:0 skip:108 time:268s fi-glk-1 total:288 pass:260 dwarn:0 dfail:0 fail:0 skip:28 time:534s fi-hsw-4770 total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:383s fi-hsw-4770r total:288 pass:224 dwarn:0 dfail:0 fail:0 skip:64 time:259s fi-ilk-650 total:288 pass:228 dwarn:0 dfail:0 fail:0 skip:60 time:391s fi-ivb-3520m total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:480s fi-ivb-3770 total:288 pass:259 dwarn:0 dfail:0 fail:0 skip:29 time:445s fi-kbl-7500u total:288 pass:263 dwarn:1 dfail:0 fail:0 skip:24 time:490s fi-kbl-7560u total:288 pass:269 dwarn:0 dfail:0 fail:0 skip:19 time:526s fi-kbl-7567u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:476s fi-kbl-r total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:534s fi-pnv-d510 total:288 pass:222 dwarn:1 dfail:0 fail:0 skip:65 time:585s fi-skl-6260u total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:458s fi-skl-6600u total:288 pass:261 dwarn:0 dfail:0 fail:0 skip:27 time:538s fi-skl-6700hq total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:563s fi-skl-6700k total:288 pass:264 dwarn:0 dfail:0 fail:0 skip:24 time:524s fi-skl-6770hq total:288 pass:268 dwarn:0 dfail:0 fail:0 skip:20 time:496s fi-skl-gvtdvm total:288 pass:265 dwarn:0 dfail:0 fail:0 skip:23 time:444s fi-snb-2600 total:288 pass:248 dwarn:0 dfail:0 fail:0 skip:40 time:414s Blacklisted hosts: fi-cfl-s2 total:288 pass:262 dwarn:0 dfail:0 fail:0 skip:26 time:611s fi-glk-dsi total:288 pass:257 dwarn:0 dfail:0 fail:1 skip:30 time:493s
628d1a2176a1ff6ddc4aa282aeb42c526bc64e8a drm-tip: 2017y-12m-07d-10h-57m-50s UTC integration manifest 645b40fc37d4 drm/i915: Increase max texture to 16k for gen9+
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7435/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Joonas Lahtinen
maintainer+ Ville as Jani is OoO
Quoted 36 lines · Alex Tu
Rrefer to another patch [1] on mesa to extend width/height to 16384. For issue :
- https://bugs.freedesktop.org/show_bug.cgi?id=102508
- LP: #1714178 Triple monitor display failed with Dell Dock (HiDPI)[1] https://patchwork.freedesktop.org/patch/124918/
Signed-off-by Alex Tu <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/intel_display.c +3
-3@@ -13905,7 +13905,7 @@ u32 intel_fb_pitch_limit(struct drm_i915_private *dev_priv,/* "The stride in bytes must not exceed the of the size of 8K * pixels and 32K bytes." */ -return min (8192 * cpp,32768 ); +return min (16384 * cpp,65536 ); }else if (gen >=5 && !HAS_GMCH_DISPLAY (dev_priv)) {return 32 *1024 ; }else if (gen >=4 ) {@@ -14604,8 +14604,8 @@ int intel_modeset_init(struct drm_device *dev) dev->mode_config.max_width =4096 ; dev->mode_config.max_height =4096 ; }else { - dev->mode_config.max_width =8192 ; - dev->mode_config.max_height =8192 ; + dev->mode_config.max_width =16384 ; + dev->mode_config.max_height =16384 ; }if (IS_I845G (dev_priv) ||IS_I865G (dev_priv)) {
Signature · 7 lines
Joonas Lahtinen Open Source Technology Center Intel Corporation _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 17 lines · Alex Tu
Rrefer to another patch [1] on mesa to extend width/height to 16384. For issue :
- https://bugs.freedesktop.org/show_bug.cgi?id=102508
- LP: #1714178 Triple monitor display failed with Dell Dock (HiDPI)[1] https://patchwork.freedesktop.org/patch/124918/
Signed-off-by Alex Tu <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/intel_display.c +0
-0
drivers/gpu/drm/i915/intel_display.c u32 intel_fb_pitch_limit(struct drm_i915_private *dev_priv, · line 13906
Quoted 2 lines
drivers/gpu/drm/i915/intel_display.c +0
-0@@ -13905,7 +13905,7 @@ u32 intel_fb_pitch_limit(struct drm_i915_private *dev_priv,/* "The stride in bytes must not exceed the of the size of 8K * pixels and 32K bytes."
The spec queote clearly says the patch is wrong. Either that or the spec quote is outdated.
Quoted 7 lines
drivers/gpu/drm/i915/intel_display.c +1
-1*/ -return min (8192 * cpp,32768 ); +return min (16384 * cpp,65536 ); }else if (gen >=5 && !HAS_GMCH_DISPLAY (dev_priv)) {return 32 *1024 ; }else if (gen >=4 ) {
drivers/gpu/drm/i915/intel_display.c int intel_modeset_init(struct drm_device *dev) · line 14608
Quoted 7 lines
drivers/gpu/drm/i915/intel_display.c +2
-2@@ -14604,8 +14604,8 @@ int intel_modeset_init(struct drm_device *dev) dev->mode_config.max_width =4096 ; dev->mode_config.max_height =4096 ; }else { - dev->mode_config.max_width =8192 ; - dev->mode_config.max_height =8192 ; + dev->mode_config.max_width =16384 ; + dev->mode_config.max_height =16384 ;
Even if this would be correct (which it's not for most platforms at least, not quite sure about the very latest hardware), anyone doing this should at least do a cursory check of the relevant math in the driver to make seure we don't end up with integer overflows.
Quoted 10 lines
drivers/gpu/drm/i915/intel_display.c +0
-0}if (IS_I845G (dev_priv) ||IS_I865G (dev_priv)) {Signature · 6 lines
2.11.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 2 lines
Ville Syrjälä Intel OTC
looks it's not that easy as I thought.
This change is for https://bugs.freedesktop.org/show_bug.cgi?id=102508 , and the hardware configuration is
* 00:02.0 VGA compatible controller [0300]: Intel Corporation Device [8086:591d] (rev 04)
* Dell Thunderbolt BME dock :
http://www.dell.com/support/article/us/en/04/sln301105/dell-thunderbolt-dock--tb16--information-and-specifications?lang=en
* internal native monitor is 4K, another 2 4K monitors are plugged behind BME dock
This patch could let this setting work, but looks it not the correct way. Not see the the relevant math in original code of commit b321803dfb and ac484963f9 .
Does someone know how the original value 8192 be calculated out? So that the way might could be followed for this new change.
Thanks.
Quoted 53 lines · Ville Syrjälä
Quoted 5 lines · Alex Tu
Rrefer to another patch [1] on mesa to extend width/height to 16384. For issue :
- https://bugs.freedesktop.org/show_bug.cgi?id=102508
- LP: #1714178 Triple monitor display failed with Dell Dock (HiDPI)Review
Quoted 8 lines
[1] https://patchwork.freedesktop.org/patch/124918/
Signed-off-by Alex Tu <[email protected]>--- drivers/gpu/drm/i915/intel_display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/i915/intel_display.cdrivers/gpu/drm/i915/intel_display.c u32 intel_fb_pitch_limit(struct drm_i915_private
Quoted 4 lines
index
47a2f6acee50..556fa57b18b8100644drivers/gpu/drm/i915/intel_display.c +0
-0@@ -13905,7 +13905,7 @@ u32 intel_fb_pitch_limit(struct drm_i915_private
*dev_priv,drivers/gpu/drm/i915/intel_display.c u32 intel_fb_pitch_limit(struct drm_i915_private · line 13905
Quoted 1 line
drivers/gpu/drm/i915/intel_display.c +0
-0/* "The stride in bytes must not exceed the of the size of 8K
drivers/gpu/drm/i915/intel_display.c u32 intel_fb_pitch_limit(struct drm_i915_private *dev_priv, · line 13906
Quoted 1 line
drivers/gpu/drm/i915/intel_display.c +0
-0* pixels and 32K bytes." The spec queote clearly says the patch is wrong. Either that or the spec quote is outdated.
Quoted 7 lines
drivers/gpu/drm/i915/intel_display.c +1
-1*/ -return min (8192 * cpp,32768 ); +return min (16384 * cpp,65536 ); }else if (gen >=5 && !HAS_GMCH_DISPLAY (dev_priv)) {return 32 *1024 ; }else if (gen >=4 ) {drivers/gpu/drm/i915/intel_display.c int intel_modeset_init(struct drm_device *dev) · line 14608
Quoted 7 lines
drivers/gpu/drm/i915/intel_display.c +2
-2@@ -14604,8 +14604,8 @@ int intel_modeset_init(struct drm_device *dev) dev->mode_config.max_width =4096 ; dev->mode_config.max_height =4096 ; }else { - dev->mode_config.max_width =8192 ; - dev->mode_config.max_height =8192 ; + dev->mode_config.max_width =16384 ; + dev->mode_config.max_height =16384 ;Even if this would be correct (which it's not for most platforms at least, not quite sure about the very latest hardware), anyone doing this should at least do a cursory check of the relevant math in the driver to make seure we don't end up with integer overflows.
Quoted 6 lines
drivers/gpu/drm/i915/intel_display.c +0
-1}if (IS_I845G (dev_priv) ||IS_I865G (dev_priv)) { --2.11.0
Quoted 9 lines
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx--
Ville Syrjälä
Intel OTC
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for drm/i915: Increase max texture to 16k for gen9+
In reply to Alex Tu== Series Details ==
== Series Details ==
Series: drm/i915: Increase max texture to 16k for gen9+
URL : https://patchwork.freedesktop.org/series/35016/
State : success
== Summary ==
Test kms_frontbuffer_tracking:
Subgroup fbc-1p-offscren-pri-shrfb-draw-render:
fail -> PASS (shard-snb) fdo#101623 +1
Test drv_module_reload:
Subgroup basic-reload-inject:
pass -> DMESG-WARN (shard-snb) fdo#102707
Test gem_tiled_swapping:
Subgroup non-threaded:
incomplete -> PASS (shard-snb) fdo#104009fdo#101623 https://bugs.freedesktop.org/show_bug.cgi?id=101623
fdo#102707 https://bugs.freedesktop.org/show_bug.cgi?id=102707
fdo#104009 https://bugs.freedesktop.org/show_bug.cgi?id=104009
shard-hsw total:2679 pass:1535 dwarn:2 dfail:0 fail:10 skip:1132 time:9486s shard-snb total:2679 pass:1308 dwarn:2 dfail:0 fail:11 skip:1358 time:8122s
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_7435/shards.html
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx