Skip to contentSkip to conversation

drm/i915/bdw: Broaden FBC resolution limit to 4096x4096

PATCH In review Damien Lespiau 3 participants 6 messages Jun 16, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915/bdw: Broaden FBC resolution limit to 4096x4096

From: Daisy Sun <[email protected]>

Staring from BDW, the resolution limit of FBC has increased to 4096x4096>

Issue: APDEV-2935
Otc-Tracker: VIZ-3826

Change-Id I842f64e3cf2c0d18d29ef1bcfef3b9bb1f1764ac
---
 drivers/gpu/drm/i915/intel_pm.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_pm.c +4 -1
index 0b088fe..8cc60fc 100644
@@ -529,7 +529,10 @@ void intel_update_fbc(struct drm_device *dev)
 		goto out_disable;
 	}
 
-	if (IS_G4X(dev) || INTEL_INFO(dev)->gen >= 5) {
+	if (INTEL_INFO(dev)->gen >= 8) {
+		max_width = 4096;
+		max_height = 4096;
+	} else if (IS_G4X(dev) || INTEL_INFO(dev)->gen >= 5) {
 		max_width = 4096;
 		max_height = 2048;
 	} else {
Signature · 1 line
1.8.3.1
author Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Damien Lespiau

From: Daisy Sun <[email protected]>

Staring from BDW, the resolution limit of FBC has increased to 4096x4096>

Issue: APDEV-2935
Otc-Tracker: VIZ-3826

Change-Id I842f64e3cf2c0d18d29ef1bcfef3b9bb1f1764ac
Signature · 1 line
Damien
Quoted 27 lines
---
 drivers/gpu/drm/i915/intel_pm.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_pm.c +4 -1
index 0b088fe..8cc60fc 100644
@@ -529,7 +529,10 @@ void intel_update_fbc(struct drm_device *dev)
 		goto out_disable;
 	}
 
-	if (IS_G4X(dev) || INTEL_INFO(dev)->gen >= 5) {
+	if (INTEL_INFO(dev)->gen >= 8) {
+		max_width = 4096;
+		max_height = 4096;
+	} else if (IS_G4X(dev) || INTEL_INFO(dev)->gen >= 5) {
 		max_width = 4096;
 		max_height = 2048;
 	} else {
Signature · 6 lines
1.8.3.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#2 lore raw
Quoted 6 lines · Damien Lespiau
Quoted 5 lines · Damien Lespiau

From: Daisy Sun <[email protected]>

Staring from BDW, the resolution limit of FBC has increased to 4096x4096>

Quoted 6 lines
Quoted 4 lines

Issue: APDEV-2935
Otc-Tracker: VIZ-3826

Change-Id I842f64e3cf2c0d18d29ef1bcfef3b9bb1f1764ac

Iirc 4kx4k is allowed on hsw already, albeit with the lower 2k lines being uncompressed. Please double-check bspec and update the patch.

Also: Please insert rant here that I've written a mail a year ago about the piles of little issues in our fbc feature checking. -Daniel

Quoted 35 lines
Signature · 2 lines
-- 
Damien
Quoted 27 lines
---
 drivers/gpu/drm/i915/intel_pm.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_pm.c +4 -1
index 0b088fe..8cc60fc 100644
@@ -529,7 +529,10 @@ void intel_update_fbc(struct drm_device *dev)
 		goto out_disable;
 	}
 
-	if (IS_G4X(dev) || INTEL_INFO(dev)->gen >= 5) {
+	if (INTEL_INFO(dev)->gen >= 8) {
+		max_width = 4096;
+		max_height = 4096;
+	} else if (IS_G4X(dev) || INTEL_INFO(dev)->gen >= 5) {
 		max_width = 4096;
 		max_height = 2048;
 	} else {
Signature · 6 lines
1.8.3.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
#3 lore raw

Yes, the change starts from HSW. I'll update the patch.
what's the "rant" I need to insert? I was not in the list a year ago:), having some trouble find the email as reference. Any archives I can look into?

Quoted 53 lines · Daniel Vetter
Quoted 11 lines · Damien Lespiau
Quoted 9 lines · Damien Lespiau

From: Daisy Sun <[email protected]>

Staring from BDW, the resolution limit of FBC has increased to 4096x4096>

Issue: APDEV-2935
Otc-Tracker: VIZ-3826

Change-Id I842f64e3cf2c0d18d29ef1bcfef3b9bb1f1764ac

Iirc 4kx4k is allowed on hsw already, albeit with the lower 2k lines being uncompressed. Please double-check bspec and update the patch.

Also: Please insert rant here that I've written a mail a year ago about the piles of little issues in our fbc feature checking. -Daniel

Quoted 34 lines
Signature · 1 line
Damien
Quoted 27 lines
---
  drivers/gpu/drm/i915/intel_pm.c | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_pm.c +4 -1
index 0b088fe..8cc60fc 100644
@@ -529,7 +529,10 @@ void intel_update_fbc(struct drm_device *dev)
  		goto out_disable;
  	}
 
-	if (IS_G4X(dev) || INTEL_INFO(dev)->gen >= 5) {
+	if (INTEL_INFO(dev)->gen >= 8) {
+		max_width = 4096;
+		max_height = 4096;
+	} else if (IS_G4X(dev) || INTEL_INFO(dev)->gen >= 5) {
  		max_width = 4096;
  		max_height = 2048;
  	} else {
Signature · 6 lines
1.8.3.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#4 lore raw
Quoted 4 lines · Daisy

Yes, the change starts from HSW. I'll update the patch. what's the "rant" I need to insert? I was not in the list a year ago:), having some trouble find the email as reference.
Any archives I can look into?

No rant to insert for you ;-) That was a placeholder in my mail, instead of boring people with all the details. Iirc that was to the internal mailing list, and could be older than a year even.

Essentially there's a bunch of constraints about pixel depth and pfit usage on recent platforms that we don't quite check correctly. Your patch update to check for gen >= 8 || IS_HASWELL is perfectly fine as-is.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
#5 lore raw

IC. I started working from BDW FBC, did not check all the gens thoroughly:-) Sent out a version 2 just now.
- Daisy

Quoted 14 lines · Daniel Vetter
Quoted 4 lines · Daisy

Yes, the change starts from HSW. I'll update the patch. what's the "rant" I need to insert? I was not in the list a year ago:), having some trouble find the email as reference.
Any archives I can look into?

No rant to insert for you ;-) That was a placeholder in my mail, instead of boring people with all the details. Iirc that was to the internal mailing list, and could be older than a year even.

Essentially there's a bunch of constraints about pixel depth and pfit usage on recent platforms that we don't quite check correctly. Your patch update to check for gen >= 8 || IS_HASWELL is perfectly fine as-is.
-Daniel