Skip to contentSkip to conversation

drm: tilcdc: reduce max_width for revision 1

PATCH New Bartosz Golaszewski 2 participants 4 messages Nov 21, 2016

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

PATCH 1/1 drm: tilcdc: reduce max_width for revision 1

While debugging the drm_bridge support for revision 1 I noticed the driver was selecting the 1024x768 resolution as default from the set retrieved from EDID. The following patch reduces the max_width for rev1 in tilcdc.

Bartosz Golaszewski (1):
drm: tilcdc: reduce max_width for revision 1

 drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/1 drm: tilcdc: reduce max_width for revision 1

It has been determined that the highest resolution supported correctly by LCDC rev1 is 800x600. Reduce the max_width value for rev1 to 800 in crtc_max_width().

---
 drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tilcdc/tilcdc_crtc.c +1 -1
index dfe3dd0..9081de5 100644
@@ -683,7 +683,7 @@ int tilcdc_crtc_max_width(struct drm_crtc *crtc)
 	int max_width = 0;
 
 	if (priv->rev == 1)
-		max_width = 1024;
+		max_width = 800;
 	else if (priv->rev == 2)
 		max_width = 2048;
 
Signature · 1 line
2.9.3
#2 lore raw
Quoted 4 lines · Bartosz Golaszewski

It has been determined that the highest resolution supported correctly by LCDC rev1 is 800x600. Reduce the max_width value for rev1 to 800 in crtc_max_width().

I don't think this is the right way to limit the supported video modes. There is technically there is no such limit, is there?

If memory bandwidth is limiting the functionality of higher resolutions, you should use "max-bandwidth" tilcdc device-tree property [1].

Cheers,
Jyri

[1] In "Documentation/devicetree/bindings/display/tilcdc/tilcdc.txt":
Optional properties:
- max-bandwidth: The maximum pixels per second that the memory interface / lcd controller combination can sustain

Quoted 19 lines
---
 drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tilcdc/tilcdc_crtc.c +1 -1
index dfe3dd0..9081de5 100644
@@ -683,7 +683,7 @@ int tilcdc_crtc_max_width(struct drm_crtc *crtc)
 	int max_width = 0;
 
 	if (priv->rev == 1)
-		max_width = 1024;
+		max_width = 800;
 	else if (priv->rev == 2)
 		max_width = 2048;
 
#3 lore raw

2016-11-21 18:26 GMT+01:00 Jyri Sarha <[email protected]>:

Quoted 6 lines · Bartosz Golaszewski
Quoted 4 lines

It has been determined that the highest resolution supported correctly by LCDC rev1 is 800x600. Reduce the max_width value for rev1 to 800 in crtc_max_width().

Quoted 9 lines

I don't think this is the right way to limit the supported video modes. There is technically there is no such limit, is there?

If memory bandwidth is limiting the functionality of higher resolutions, you should use "max-bandwidth" tilcdc device-tree property [1].

Cheers,
Jyri

Will do, thanks.

Bartosz Golaszewski