[PATCH] drm_edid: support CEA video modes

2012-05-19 Thread Andy Furniss
Daniel Vetter wrote:
> On Fri, May 18, 2012 at 12:37:51PM +0100, Andy Furniss wrote:
>> Joakim Plate wrote:
>>> Joakim Plate   writes:
>>>

 Christian Schmidt   writes:

>
> TFT/plasma televisions and projectors have become commonplace, and so
> has the use of PCs to drive them. Add the video modes specified by an
> EDID's CEA extension to the mode database for a connector.

 /Joakim

>>>
>>> Shameless bump on the subject. Would be nice if we could
>>> get this list complete when connecting to HDTV's.
>>
>> Yea, it would be nice.
>>
>> UK bluray seems to use 24/1.001 - not that it's that bad watching
>> with TV at 24Hz.
>>
>> I do have issues with interlaced modes on my TV. I don't know how
>> DRM handles interlaced, but CEA says that the number of vblank lines
>> alternates per field. If that isn't happening then I guess that's
>> why.
>
> If this is on an intel gpu, you need kernel 3.4 to make interlaced work.
> If that doesn't help, please file a bug on bugs.freedesktop.org.
> -Daniel

Thanks, but it's AMD I do have a bug open for it.
https://bugs.freedesktop.org/show_bug.cgi?id=35970

Which reminds me - another issue with CEA modes is that the ones that 
should be double clocked are not.





Re: [PATCH] drm_edid: support CEA video modes

2012-05-19 Thread Daniel Vetter
On Fri, May 18, 2012 at 12:37:51PM +0100, Andy Furniss wrote:
 Joakim Plate wrote:
 Joakim Plateelupusat  ecce.se  writes:
 
 
 Christian Schmidtschmidtat  digadd.de  writes:
 
 
 TFT/plasma televisions and projectors have become commonplace, and so
 has the use of PCs to drive them. Add the video modes specified by an
 EDID's CEA extension to the mode database for a connector.
 
 /Joakim
 
 
 Shameless bump on the subject. Would be nice if we could
 get this list complete when connecting to HDTV's.
 
 Yea, it would be nice.
 
 UK bluray seems to use 24/1.001 - not that it's that bad watching
 with TV@24Hz.
 
 I do have issues with interlaced modes on my TV. I don't know how
 DRM handles interlaced, but CEA says that the number of vblank lines
 alternates per field. If that isn't happening then I guess that's
 why.

If this is on an intel gpu, you need kernel 3.4 to make interlaced work.
If that doesn't help, please file a bug on bugs.freedesktop.org.
-Daniel
-- 
Daniel Vetter
Mail: dan...@ffwll.ch
Mobile: +41 (0)79 365 57 48
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH] drm_edid: support CEA video modes

2012-05-19 Thread Andy Furniss

Daniel Vetter wrote:

On Fri, May 18, 2012 at 12:37:51PM +0100, Andy Furniss wrote:

Joakim Plate wrote:

Joakim Plateelupusat   ecce.se   writes:



Christian Schmidtschmidtat   digadd.de   writes:



TFT/plasma televisions and projectors have become commonplace, and so
has the use of PCs to drive them. Add the video modes specified by an
EDID's CEA extension to the mode database for a connector.


/Joakim



Shameless bump on the subject. Would be nice if we could
get this list complete when connecting to HDTV's.


Yea, it would be nice.

UK bluray seems to use 24/1.001 - not that it's that bad watching
with TV@24Hz.

I do have issues with interlaced modes on my TV. I don't know how
DRM handles interlaced, but CEA says that the number of vblank lines
alternates per field. If that isn't happening then I guess that's
why.


If this is on an intel gpu, you need kernel 3.4 to make interlaced work.
If that doesn't help, please file a bug on bugs.freedesktop.org.
-Daniel


Thanks, but it's AMD I do have a bug open for it.
https://bugs.freedesktop.org/show_bug.cgi?id=35970

Which reminds me - another issue with CEA modes is that the ones that 
should be double clocked are not.




___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH] drm_edid: support CEA video modes

2012-05-18 Thread Andy Furniss
Joakim Plate wrote:
> Joakim Plate  writes:
>
>>
>> Christian Schmidt  writes:
>>
>>>
>>> TFT/plasma televisions and projectors have become commonplace, and so
>>> has the use of PCs to drive them. Add the video modes specified by an
>>> EDID's CEA extension to the mode database for a connector.
>>
>> /Joakim
>>
>
> Shameless bump on the subject. Would be nice if we could
> get this list complete when connecting to HDTV's.

Yea, it would be nice.

UK bluray seems to use 24/1.001 - not that it's that bad watching with 
TV at 24Hz.

I do have issues with interlaced modes on my TV. I don't know how DRM 
handles interlaced, but CEA says that the number of vblank lines 
alternates per field. If that isn't happening then I guess that's why.



[PATCH] drm_edid: support CEA video modes

2012-05-18 Thread Joakim Plate
Joakim Plate  ecce.se> writes:

> 
> Christian Schmidt  digadd.de> writes:
> 
> > 
> > TFT/plasma televisions and projectors have become commonplace, and so
> > has the use of PCs to drive them. Add the video modes specified by an
> > EDID's CEA extension to the mode database for a connector.
> 
> /Joakim
> 

Shameless bump on the subject. Would be nice if we could
get this list complete when connecting to HDTV's.






Re: [PATCH] drm_edid: support CEA video modes

2012-05-18 Thread Joakim Plate
Joakim Plate elupus at ecce.se writes:

 
 Christian Schmidt schmidt at digadd.de writes:
 
  
  TFT/plasma televisions and projectors have become commonplace, and so
  has the use of PCs to drive them. Add the video modes specified by an
  EDID's CEA extension to the mode database for a connector.
 
 /Joakim
 

Shameless bump on the subject. Would be nice if we could
get this list complete when connecting to HDTV's.




___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH] drm_edid: support CEA video modes

2012-05-18 Thread Andy Furniss

Joakim Plate wrote:

Joakim Plateelupusat  ecce.se  writes:



Christian Schmidtschmidtat  digadd.de  writes:



TFT/plasma televisions and projectors have become commonplace, and so
has the use of PCs to drive them. Add the video modes specified by an
EDID's CEA extension to the mode database for a connector.


/Joakim



Shameless bump on the subject. Would be nice if we could
get this list complete when connecting to HDTV's.


Yea, it would be nice.

UK bluray seems to use 24/1.001 - not that it's that bad watching with 
TV@24Hz.


I do have issues with interlaced modes on my TV. I don't know how DRM 
handles interlaced, but CEA says that the number of vblank lines 
alternates per field. If that isn't happening then I guess that's why.


___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH] drm_edid: support CEA video modes

2012-02-06 Thread Joakim Plate
Christian Schmidt  digadd.de> writes:

> 
> TFT/plasma televisions and projectors have become commonplace, and so
> has the use of PCs to drive them. Add the video modes specified by an
> EDID's CEA extension to the mode database for a connector.

Hi,

Looking over this i noticed that this patch adds an incomplete list of video 
modes.

For many of the short descriptors, two modes should be added. One for a integer 
refreshrate and one for the old ntsc rate (rate*1000/1001).

Would be nice to see that resolved since it's rather crucial to get right for 
video playback.

/Joakim










Re: [PATCH] drm_edid: support CEA video modes

2012-02-06 Thread Joakim Plate
Christian Schmidt schmidt at digadd.de writes:

 
 TFT/plasma televisions and projectors have become commonplace, and so
 has the use of PCs to drive them. Add the video modes specified by an
 EDID's CEA extension to the mode database for a connector.

Hi,

Looking over this i noticed that this patch adds an incomplete list of video 
modes.

For many of the short descriptors, two modes should be added. One for a integer 
refreshrate and one for the old ntsc rate (rate*1000/1001).

Would be nice to see that resolved since it's rather crucial to get right for 
video playback.

/Joakim








___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH] drm_edid: support CEA video modes

2011-12-19 Thread Dave Airlie
On Tue, Dec 13, 2011 at 5:47 PM, Jesse Barnes  
wrote:
> On Sun, 13 Nov 2011 01:31:35 +0100
> Christian Schmidt  wrote:
>
>> TFT/plasma televisions and projectors have become commonplace, and so
>> has the use of PCs to drive them. Add the video modes specified by an
>> EDID's CEA extension to the mode database for a connector.
>
> Dave, Christian has a few patches outstanding for CEA mode handling.
> Getting them in makes sense to me and this patch looks like it's
> structured nicely at least (I haven't checked the CEA bits against the
> specs though).
>
> Any chance we can get them included for 3.3?

I've put this patch in, but please (and reviewers too, please tell
people before acking) in future,

submit patches as per the kernel's Documentation/SubmittingPatches

This patch was attached instead of inlined, wasn't in git format (not
essential but less work for me so more patches for you).

Is there other patches outstanding if so? please resend with collected reviews.

really anything that involves me taking manual steps will generally
mean I'll just drop the patch without caring with the understanding
that whoever wants the patch merged will care more than I do.

Dave.


Re: [PATCH] drm_edid: support CEA video modes

2011-12-19 Thread Dave Airlie
On Tue, Dec 13, 2011 at 5:47 PM, Jesse Barnes jbar...@virtuousgeek.org wrote:
 On Sun, 13 Nov 2011 01:31:35 +0100
 Christian Schmidt schm...@digadd.de wrote:

 TFT/plasma televisions and projectors have become commonplace, and so
 has the use of PCs to drive them. Add the video modes specified by an
 EDID's CEA extension to the mode database for a connector.

 Dave, Christian has a few patches outstanding for CEA mode handling.
 Getting them in makes sense to me and this patch looks like it's
 structured nicely at least (I haven't checked the CEA bits against the
 specs though).

 Any chance we can get them included for 3.3?

I've put this patch in, but please (and reviewers too, please tell
people before acking) in future,

submit patches as per the kernel's Documentation/SubmittingPatches

This patch was attached instead of inlined, wasn't in git format (not
essential but less work for me so more patches for you).

Is there other patches outstanding if so? please resend with collected reviews.

really anything that involves me taking manual steps will generally
mean I'll just drop the patch without caring with the understanding
that whoever wants the patch merged will care more than I do.

Dave.
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH] drm_edid: support CEA video modes

2011-12-13 Thread Jesse Barnes
On Sun, 13 Nov 2011 01:31:35 +0100
Christian Schmidt  wrote:

> TFT/plasma televisions and projectors have become commonplace, and so
> has the use of PCs to drive them. Add the video modes specified by an
> EDID's CEA extension to the mode database for a connector.

Dave, Christian has a few patches outstanding for CEA mode handling.
Getting them in makes sense to me and this patch looks like it's
structured nicely at least (I haven't checked the CEA bits against the
specs though).

Any chance we can get them included for 3.3?

Thanks,
-- 
Jesse Barnes, Intel Open Source Technology Center
-- next part --
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: 



[PATCH] drm_edid: support CEA video modes

2011-11-20 Thread alanwww1
Another user confirming the working of the patch from xbmc forums:

http://forum.xbmc.org/showpost.php?p=940016=31

Any news on when this will be in master ?

Thanks

2011/11/13 Christian Schmidt 

> TFT/plasma televisions and projectors have become commonplace, and so
> has the use of PCs to drive them. Add the video modes specified by an
> EDID's CEA extension to the mode database for a connector.
>
> Before:
> [1.158869] [drm:drm_mode_debug_printmodeline], Modeline
> 19:"1920x1080i" 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
> [1.158875] [drm:drm_mode_debug_printmodeline], Modeline
> 18:"1920x1080i" 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x48 0x15
> [1.158882] [drm:drm_mode_debug_printmodeline], Modeline
> 20:"1920x1080" 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40 0x5
>
> After:
> [1.144175] [drm:drm_mode_debug_printmodeline], Modeline
> 22:"1920x1080" 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
> [1.144179] [drm:drm_mode_debug_printmodeline], Modeline
> 21:"1920x1080" 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x48 0x15
> [1.144187] [drm:drm_mode_debug_printmodeline], Modeline
> 30:"1920x1080" 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5
> [1.144190] [drm:drm_mode_debug_printmodeline], Modeline
> 29:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
> [1.144192] [drm:drm_mode_debug_printmodeline], Modeline
> 25:"1920x1080" 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40 0x5
> [1.144195] [drm:drm_mode_debug_printmodeline], Modeline
> 24:"1280x720" 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
> [1.144198] [drm:drm_mode_debug_printmodeline], Modeline
> 23:"1280x720" 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
> [1.144201] [drm:drm_mode_debug_printmodeline], Modeline 27:"720x576"
> 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
> [1.144203] [drm:drm_mode_debug_printmodeline], Modeline 26:"720x480"
> 60 27000 720 736 798 858 480 489 495 525 0x40 0xa
> [1.144206] [drm:drm_mode_debug_printmodeline], Modeline 28:"640x480"
> 60 25175 640 656 752 800 480 490 492 525 0x40 0xa
>
>
> Signed-off-by: Christian Schmidt 
>
>
> ___
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
>
-- next part --
An HTML attachment was scrubbed...
URL: 



Re: [PATCH] drm_edid: support CEA video modes

2011-11-19 Thread alanwww1
Another user confirming the working of the patch from xbmc forums:

http://forum.xbmc.org/showpost.php?p=940016postcount=31

Any news on when this will be in master ?

Thanks

2011/11/13 Christian Schmidt schm...@digadd.de

 TFT/plasma televisions and projectors have become commonplace, and so
 has the use of PCs to drive them. Add the video modes specified by an
 EDID's CEA extension to the mode database for a connector.

 Before:
 [1.158869] [drm:drm_mode_debug_printmodeline], Modeline
 19:1920x1080i 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
 [1.158875] [drm:drm_mode_debug_printmodeline], Modeline
 18:1920x1080i 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x48 0x15
 [1.158882] [drm:drm_mode_debug_printmodeline], Modeline
 20:1920x1080 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40 0x5

 After:
 [1.144175] [drm:drm_mode_debug_printmodeline], Modeline
 22:1920x1080 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
 [1.144179] [drm:drm_mode_debug_printmodeline], Modeline
 21:1920x1080 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x48 0x15
 [1.144187] [drm:drm_mode_debug_printmodeline], Modeline
 30:1920x1080 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5
 [1.144190] [drm:drm_mode_debug_printmodeline], Modeline
 29:1920x1080 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
 [1.144192] [drm:drm_mode_debug_printmodeline], Modeline
 25:1920x1080 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40 0x5
 [1.144195] [drm:drm_mode_debug_printmodeline], Modeline
 24:1280x720 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
 [1.144198] [drm:drm_mode_debug_printmodeline], Modeline
 23:1280x720 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
 [1.144201] [drm:drm_mode_debug_printmodeline], Modeline 27:720x576
 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
 [1.144203] [drm:drm_mode_debug_printmodeline], Modeline 26:720x480
 60 27000 720 736 798 858 480 489 495 525 0x40 0xa
 [1.144206] [drm:drm_mode_debug_printmodeline], Modeline 28:640x480
 60 25175 640 656 752 800 480 490 492 525 0x40 0xa


 Signed-off-by: Christian Schmidt schm...@digadd.de


 ___
 dri-devel mailing list
 dri-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/dri-devel


___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH] drm_edid: support CEA video modes

2011-11-15 Thread James Cloos
> "CS" == Christian Schmidt  writes:

CS> TFT/plasma televisions and projectors have become commonplace, and so
CS> has the use of PCs to drive them. Add the video modes specified by an
CS> EDID's CEA extension to the mode database for a connector.

CS> Signed-off-by: Christian Schmidt 

Tested-by: James Cloos 

Works fine here on top of Linus? 7f80850d3f9f with a Radeon HD 4290 and
an hdmi-connected tv.

The new modes not previously seen, as reported by libdrm?s modetest are:

:; diff -U0 a/mt.out b/mt.out
--- a/mt.out2011-11-14 17:25:21.785708725 -0500
+++ b/mt.out2011-11-14 18:41:22.023562219 -0500
@@ -11 +11 @@
-15 14  connected   HDMI-A  820x460 17  14
+15 14  connected   HDMI-A  820x460 22  14
@@ -15 +15,2 @@
-  1920x1080i 60 1920 2008 2052 2200 1080 1084 1094 1125
+  1920x1080 60 1920 2008 2052 2200 1080 1084 1094 1125
+  1920x1080 24 1920 2558 2602 2750 1080 1084 1089 1125
@@ -19,0 +21 @@
+  1280x720 60 1280 1390 1430 1650 720 725 730 750
@@ -22,0 +25 @@
+  1440x480 60 1440 1478 1602 1716 480 488 494 525
@@ -26,0 +30 @@
+  720x480 60 720 736 798 858 480 489 495 525
@@ -29,0 +34 @@
+  640x480 60 640 656 752 800 480 490 492 525
@@ -41,2 +46,2 @@
-10 35  (0,0)   (0x0)
-   0 1920 2008 2052 2200 1080 1084 1089 1125
+10 19  (0,0)   (0x0)
+  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125


-JimC
-- 
James Cloos  OpenPGP: 1024D/ED7DAEA6


[PATCH] drm_edid: support CEA video modes

2011-11-15 Thread alanwww1
I ran a test with the CEA patch, on my Sandy Bridge system with a Samsung
HDTV hooked up with an Onkyo TX-SR-607 AV-receiver.
The patch works like charm. The so wanted missing modelines are there, both
in the kernel log and in the Xorg.log and I can now use them in any Media
Center application,

Dmesg before:

[   10.496714] [drm:drm_mode_debug_printmodeline], Modeline
18:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48
0x5
[   10.496717] [drm:drm_mode_debug_printmodeline], Modeline
20:"1280x720" 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[   10.496719] [drm:drm_mode_debug_printmodeline], Modeline
19:"1280x720" 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[   10.496722] [drm:drm_mode_debug_printmodeline], Modeline
21:"640x480" 60 25200 640 656 752 800 480 490 492 525 0x40 0xa


Dmesg After:

[   10.777130] [drm:drm_mode_prune_invalid], Not using 1920x1080 mode 7
[   10.777132] [drm:drm_mode_debug_printmodeline], Modeline
26:"1920x1080" 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x40
0x15
[   10.777134] [drm:drm_mode_prune_invalid], Not using 1920x1080 mode 7
[   10.777136] [drm:drm_helper_probe_single_connector_modes],
[CONNECTOR:14:HDMI-A-2] probed modes :
[   10.777138] [drm:drm_mode_debug_printmodeline], Modeline
22:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48
0x5
[   10.777140] [drm:drm_mode_debug_printmodeline], Modeline
23:"1920x1080" 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40
0x5
[   10.777143] [drm:drm_mode_debug_printmodeline], Modeline
32:"1920x1080" 30 74250 1920 2008 2052 2200 1080 1084 1089 1125 0x40
0x5
[   10.777145] [drm:drm_mode_debug_printmodeline], Modeline
31:"1920x1080" 25 74250 1920 2448 2492 2640 1080 1084 1089 1125 0x40
0x5
[   10.777147] [drm:drm_mode_debug_printmodeline], Modeline
30:"1920x1080" 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40
0x5
[   10.777149] [drm:drm_mode_debug_printmodeline], Modeline
36:"2880x576" 50 108000 2880 2928 3184 3456 576 581 586 625 0x40 0xa
[   10.777151] [drm:drm_mode_debug_printmodeline], Modeline
35:"2880x480" 60 108000 2880 2944 3192 3432 480 489 495 525 0x40 0xa
[   10.777153] [drm:drm_mode_debug_printmodeline], Modeline
25:"1280x720" 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[   10.777155] [drm:drm_mode_debug_printmodeline], Modeline
24:"1280x720" 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[   10.777158] [drm:drm_mode_debug_printmodeline], Modeline
34:"1440x576" 50 54000 1440 1464 1592 1728 576 581 586 625 0x40 0xa
[   10.777160] [drm:drm_mode_debug_printmodeline], Modeline
33:"1440x480" 60 54000 1440 1472 1596 1716 480 489 495 525 0x40 0xa
[   10.777162] [drm:drm_mode_debug_printmodeline], Modeline
29:"720x576" 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
[   10.777164] [drm:drm_mode_debug_printmodeline], Modeline
28:"720x480" 60 27000 720 736 798 858 480 489 495 525 0x40 0xa
[   10.777166] [drm:drm_mode_debug_printmodeline], Modeline
21:"640x480" 60 25200 640 656 752 800 480 490 492 525 0x40 0xa

Xorg before:

[11.924] (II) intel(0): Printing probed modes for output HDMI2
[11.924] (II) intel(0): Modeline "1920x1080"x60.0  148.50  1920
2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz)
[11.924] (II) intel(0): Modeline "1280x720"x50.0   74.25  1280
1720 1760 1980  720 725 730 750 +hsync +vsync (37.5 kHz)
[11.924] (II) intel(0): Modeline "1280x720"x60.0   74.25  1280
1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz)
[11.924] (II) intel(0): Modeline "640x480"x60.0   25.20  640 656
752 800  480 490 492 525 -hsync -vsync (31.5 kHz)

Xorg after:

[   324.852] (II) intel(0): Printing probed modes for output HDMI2
[   324.852] (II) intel(0): Modeline "1920x1080"x60.0  148.50  1920
2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz)
[   324.852] (II) intel(0): Modeline "1920x1080"x50.0  148.50  1920
2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (56.2 kHz)
[   324.852] (II) intel(0): Modeline "1920x1080"x30.0   74.25  1920
2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (33.8 kHz)
[   324.852] (II) intel(0): Modeline "1920x1080"x25.0   74.25  1920
2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (28.1 kHz)
[   324.852] (II) intel(0): Modeline "1920x1080"x24.0   74.25  1920
2558 2602 2750  1080 1084 1089 1125 +hsync +vsync (27.0 kHz)
[   324.852] (II) intel(0): Modeline "2880x576"x50.0  108.00  2880
2928 3184 3456  576 581 586 625 -hsync -vsync (31.2 kHz)
[   324.852] (II) intel(0): Modeline "2880x480"x59.9  108.00  2880
2944 3192 3432  480 489 495 525 -hsync -vsync (31.5 kHz)
[   324.852] (II) intel(0): Modeline "1280x720"x50.0   74.25  1280
1720 1760 1980  720 725 730 750 +hsync +vsync (37.5 kHz)
[   324.852] (II) intel(0): Modeline "1280x720"x60.0   74.25  1280
1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz)
[   324.852] (II) intel(0): Modeline "1440x576"x50.0   54.00  1440
1464 1592 1728  576 581 586 625 -hsync -vsync (31.2 kHz)
[   324.852] (II) intel(0): Modeline 

Re: [PATCH] drm_edid: support CEA video modes

2011-11-15 Thread James Cloos
 CS == Christian Schmidt schm...@digadd.de writes:

CS TFT/plasma televisions and projectors have become commonplace, and so
CS has the use of PCs to drive them. Add the video modes specified by an
CS EDID's CEA extension to the mode database for a connector.

CS Signed-off-by: Christian Schmidt schm...@digadd.de

Tested-by: James Cloos cl...@jhcloos.com

Works fine here on top of Linus’ 7f80850d3f9f with a Radeon HD 4290 and
an hdmi-connected tv.

The new modes not previously seen, as reported by libdrm’s modetest are:

:; diff -U0 a/mt.out b/mt.out
--- a/mt.out2011-11-14 17:25:21.785708725 -0500
+++ b/mt.out2011-11-14 18:41:22.023562219 -0500
@@ -11 +11 @@
-15 14  connected   HDMI-A  820x460 17  14
+15 14  connected   HDMI-A  820x460 22  14
@@ -15 +15,2 @@
-  1920x1080i 60 1920 2008 2052 2200 1080 1084 1094 1125
+  1920x1080 60 1920 2008 2052 2200 1080 1084 1094 1125
+  1920x1080 24 1920 2558 2602 2750 1080 1084 1089 1125
@@ -19,0 +21 @@
+  1280x720 60 1280 1390 1430 1650 720 725 730 750
@@ -22,0 +25 @@
+  1440x480 60 1440 1478 1602 1716 480 488 494 525
@@ -26,0 +30 @@
+  720x480 60 720 736 798 858 480 489 495 525
@@ -29,0 +34 @@
+  640x480 60 640 656 752 800 480 490 492 525
@@ -41,2 +46,2 @@
-10 35  (0,0)   (0x0)
-   0 1920 2008 2052 2200 1080 1084 1089 1125
+10 19  (0,0)   (0x0)
+  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125


-JimC
-- 
James Cloos cl...@jhcloos.com OpenPGP: 1024D/ED7DAEA6
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH] drm_edid: support CEA video modes

2011-11-14 Thread Paul Menzel
Am Sonntag, den 13.11.2011, 23:16 +0100 schrieb alanwww1:
> This is awesome ! A LOT of HTPC fans are waiting for this! Is there a
> chance that this lands in 3.2 ?

Have you tested this? Adding a Tested-by line would surely help getting
it included.


Thanks,

Paul
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: 



[PATCH] drm_edid: support CEA video modes

2011-11-14 Thread Adam Jackson
On Sun, 2011-11-13 at 01:31 +0100, Christian Schmidt wrote:
> TFT/plasma televisions and projectors have become commonplace, and so
> has the use of PCs to drive them. Add the video modes specified by an
> EDID's CEA extension to the mode database for a connector.

Thanks for finishing this up.  The mode list was indeed mechanically
generated (pdf2text on the spec and then some python to bash it all
together).  It's probably worth noting in the comment that it's from
CEA-861-D, as I suspect subsequent revisions have added more timings (I
haven't bought it yet to check).

Reviewed-by: Adam Jackson 

- ajax
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: 



Re: [PATCH] drm_edid: support CEA video modes

2011-11-14 Thread Paul Menzel
Am Sonntag, den 13.11.2011, 23:16 +0100 schrieb alanwww1:
 This is awesome ! A LOT of HTPC fans are waiting for this! Is there a
 chance that this lands in 3.2 ?

Have you tested this? Adding a Tested-by line would surely help getting
it included.


Thanks,

Paul


signature.asc
Description: This is a digitally signed message part
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH] drm_edid: support CEA video modes

2011-11-14 Thread Adam Jackson
On Sun, 2011-11-13 at 01:31 +0100, Christian Schmidt wrote:
 TFT/plasma televisions and projectors have become commonplace, and so
 has the use of PCs to drive them. Add the video modes specified by an
 EDID's CEA extension to the mode database for a connector.

Thanks for finishing this up.  The mode list was indeed mechanically
generated (pdf2text on the spec and then some python to bash it all
together).  It's probably worth noting in the comment that it's from
CEA-861-D, as I suspect subsequent revisions have added more timings (I
haven't bought it yet to check).

Reviewed-by: Adam Jackson a...@redhat.com

- ajax


signature.asc
Description: This is a digitally signed message part
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH] drm_edid: support CEA video modes

2011-11-14 Thread alanwww1
I ran a test with the CEA patch, on my Sandy Bridge system with a Samsung
HDTV hooked up with an Onkyo TX-SR-607 AV-receiver.
The patch works like charm. The so wanted missing modelines are there, both
in the kernel log and in the Xorg.log and I can now use them in any Media
Center application,

Dmesg before:

[   10.496714] [drm:drm_mode_debug_printmodeline], Modeline
18:1920x1080 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48
0x5
[   10.496717] [drm:drm_mode_debug_printmodeline], Modeline
20:1280x720 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[   10.496719] [drm:drm_mode_debug_printmodeline], Modeline
19:1280x720 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[   10.496722] [drm:drm_mode_debug_printmodeline], Modeline
21:640x480 60 25200 640 656 752 800 480 490 492 525 0x40 0xa


Dmesg After:

[   10.777130] [drm:drm_mode_prune_invalid], Not using 1920x1080 mode 7
[   10.777132] [drm:drm_mode_debug_printmodeline], Modeline
26:1920x1080 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x40
0x15
[   10.777134] [drm:drm_mode_prune_invalid], Not using 1920x1080 mode 7
[   10.777136] [drm:drm_helper_probe_single_connector_modes],
[CONNECTOR:14:HDMI-A-2] probed modes :
[   10.777138] [drm:drm_mode_debug_printmodeline], Modeline
22:1920x1080 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x48
0x5
[   10.777140] [drm:drm_mode_debug_printmodeline], Modeline
23:1920x1080 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40
0x5
[   10.777143] [drm:drm_mode_debug_printmodeline], Modeline
32:1920x1080 30 74250 1920 2008 2052 2200 1080 1084 1089 1125 0x40
0x5
[   10.777145] [drm:drm_mode_debug_printmodeline], Modeline
31:1920x1080 25 74250 1920 2448 2492 2640 1080 1084 1089 1125 0x40
0x5
[   10.777147] [drm:drm_mode_debug_printmodeline], Modeline
30:1920x1080 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40
0x5
[   10.777149] [drm:drm_mode_debug_printmodeline], Modeline
36:2880x576 50 108000 2880 2928 3184 3456 576 581 586 625 0x40 0xa
[   10.777151] [drm:drm_mode_debug_printmodeline], Modeline
35:2880x480 60 108000 2880 2944 3192 3432 480 489 495 525 0x40 0xa
[   10.777153] [drm:drm_mode_debug_printmodeline], Modeline
25:1280x720 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[   10.777155] [drm:drm_mode_debug_printmodeline], Modeline
24:1280x720 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[   10.777158] [drm:drm_mode_debug_printmodeline], Modeline
34:1440x576 50 54000 1440 1464 1592 1728 576 581 586 625 0x40 0xa
[   10.777160] [drm:drm_mode_debug_printmodeline], Modeline
33:1440x480 60 54000 1440 1472 1596 1716 480 489 495 525 0x40 0xa
[   10.777162] [drm:drm_mode_debug_printmodeline], Modeline
29:720x576 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
[   10.777164] [drm:drm_mode_debug_printmodeline], Modeline
28:720x480 60 27000 720 736 798 858 480 489 495 525 0x40 0xa
[   10.777166] [drm:drm_mode_debug_printmodeline], Modeline
21:640x480 60 25200 640 656 752 800 480 490 492 525 0x40 0xa

Xorg before:

[11.924] (II) intel(0): Printing probed modes for output HDMI2
[11.924] (II) intel(0): Modeline 1920x1080x60.0  148.50  1920
2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz)
[11.924] (II) intel(0): Modeline 1280x720x50.0   74.25  1280
1720 1760 1980  720 725 730 750 +hsync +vsync (37.5 kHz)
[11.924] (II) intel(0): Modeline 1280x720x60.0   74.25  1280
1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz)
[11.924] (II) intel(0): Modeline 640x480x60.0   25.20  640 656
752 800  480 490 492 525 -hsync -vsync (31.5 kHz)

Xorg after:

[   324.852] (II) intel(0): Printing probed modes for output HDMI2
[   324.852] (II) intel(0): Modeline 1920x1080x60.0  148.50  1920
2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz)
[   324.852] (II) intel(0): Modeline 1920x1080x50.0  148.50  1920
2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (56.2 kHz)
[   324.852] (II) intel(0): Modeline 1920x1080x30.0   74.25  1920
2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (33.8 kHz)
[   324.852] (II) intel(0): Modeline 1920x1080x25.0   74.25  1920
2448 2492 2640  1080 1084 1089 1125 +hsync +vsync (28.1 kHz)
[   324.852] (II) intel(0): Modeline 1920x1080x24.0   74.25  1920
2558 2602 2750  1080 1084 1089 1125 +hsync +vsync (27.0 kHz)
[   324.852] (II) intel(0): Modeline 2880x576x50.0  108.00  2880
2928 3184 3456  576 581 586 625 -hsync -vsync (31.2 kHz)
[   324.852] (II) intel(0): Modeline 2880x480x59.9  108.00  2880
2944 3192 3432  480 489 495 525 -hsync -vsync (31.5 kHz)
[   324.852] (II) intel(0): Modeline 1280x720x50.0   74.25  1280
1720 1760 1980  720 725 730 750 +hsync +vsync (37.5 kHz)
[   324.852] (II) intel(0): Modeline 1280x720x60.0   74.25  1280
1390 1430 1650  720 725 730 750 +hsync +vsync (45.0 kHz)
[   324.852] (II) intel(0): Modeline 1440x576x50.0   54.00  1440
1464 1592 1728  576 581 586 625 -hsync -vsync (31.2 kHz)
[   324.852] (II) intel(0): Modeline 1440x480x59.9   54.00  1440
1472 1596 1716  480 489 495 525 -hsync -vsync 

[PATCH] drm_edid: support CEA video modes

2011-11-13 Thread alanwww1
This is awesome ! A LOT of HTPC fans are waiting for this! Is there a
chance that this lands in 3.2 ?

Thanks, Alan

2011/11/13 Christian Schmidt :
> TFT/plasma televisions and projectors have become commonplace, and so
> has the use of PCs to drive them. Add the video modes specified by an
> EDID's CEA extension to the mode database for a connector.
>
> Before:
> [ ? ?1.158869] [drm:drm_mode_debug_printmodeline], Modeline
> 19:"1920x1080i" 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
> [ ? ?1.158875] [drm:drm_mode_debug_printmodeline], Modeline
> 18:"1920x1080i" 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x48 0x15
> [ ? ?1.158882] [drm:drm_mode_debug_printmodeline], Modeline
> 20:"1920x1080" 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40 0x5
>
> After:
> [ ? ?1.144175] [drm:drm_mode_debug_printmodeline], Modeline
> 22:"1920x1080" 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
> [ ? ?1.144179] [drm:drm_mode_debug_printmodeline], Modeline
> 21:"1920x1080" 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x48 0x15
> [ ? ?1.144187] [drm:drm_mode_debug_printmodeline], Modeline
> 30:"1920x1080" 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5
> [ ? ?1.144190] [drm:drm_mode_debug_printmodeline], Modeline
> 29:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
> [ ? ?1.144192] [drm:drm_mode_debug_printmodeline], Modeline
> 25:"1920x1080" 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40 0x5
> [ ? ?1.144195] [drm:drm_mode_debug_printmodeline], Modeline
> 24:"1280x720" 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
> [ ? ?1.144198] [drm:drm_mode_debug_printmodeline], Modeline
> 23:"1280x720" 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
> [ ? ?1.144201] [drm:drm_mode_debug_printmodeline], Modeline 27:"720x576"
> 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
> [ ? ?1.144203] [drm:drm_mode_debug_printmodeline], Modeline 26:"720x480"
> 60 27000 720 736 798 858 480 489 495 525 0x40 0xa
> [ ? ?1.144206] [drm:drm_mode_debug_printmodeline], Modeline 28:"640x480"
> 60 25175 640 656 752 800 480 490 492 525 0x40 0xa
>
>
> Signed-off-by: Christian Schmidt 
>
>
> ___
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
>


[PATCH] drm_edid: support CEA video modes

2011-11-13 Thread Christian Schmidt
TFT/plasma televisions and projectors have become commonplace, and so
has the use of PCs to drive them. Add the video modes specified by an
EDID's CEA extension to the mode database for a connector.

Before:
[1.158869] [drm:drm_mode_debug_printmodeline], Modeline
19:"1920x1080i" 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
[1.158875] [drm:drm_mode_debug_printmodeline], Modeline
18:"1920x1080i" 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x48 0x15
[1.158882] [drm:drm_mode_debug_printmodeline], Modeline
20:"1920x1080" 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40 0x5

After:
[1.144175] [drm:drm_mode_debug_printmodeline], Modeline
22:"1920x1080" 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
[1.144179] [drm:drm_mode_debug_printmodeline], Modeline
21:"1920x1080" 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x48 0x15
[1.144187] [drm:drm_mode_debug_printmodeline], Modeline
30:"1920x1080" 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5
[1.144190] [drm:drm_mode_debug_printmodeline], Modeline
29:"1920x1080" 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
[1.144192] [drm:drm_mode_debug_printmodeline], Modeline
25:"1920x1080" 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40 0x5
[1.144195] [drm:drm_mode_debug_printmodeline], Modeline
24:"1280x720" 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[1.144198] [drm:drm_mode_debug_printmodeline], Modeline
23:"1280x720" 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[1.144201] [drm:drm_mode_debug_printmodeline], Modeline 27:"720x576"
50 27000 720 732 796 864 576 581 586 625 0x40 0xa
[1.144203] [drm:drm_mode_debug_printmodeline], Modeline 26:"720x480"
60 27000 720 736 798 858 480 489 495 525 0x40 0xa
[1.144206] [drm:drm_mode_debug_printmodeline], Modeline 28:"640x480"
60 25175 640 656 752 800 480 490 492 525 0x40 0xa


Signed-off-by: Christian Schmidt 

-- next part --
A non-text attachment was scrubbed...
Name: drm_cea_modes.patch
Type: text/x-patch
Size: 15139 bytes
Desc: not available
URL: 



[PATCH] drm_edid: support CEA video modes

2011-11-13 Thread Christian Schmidt
TFT/plasma televisions and projectors have become commonplace, and so
has the use of PCs to drive them. Add the video modes specified by an
EDID's CEA extension to the mode database for a connector.

Before:
[1.158869] [drm:drm_mode_debug_printmodeline], Modeline
19:1920x1080i 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
[1.158875] [drm:drm_mode_debug_printmodeline], Modeline
18:1920x1080i 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x48 0x15
[1.158882] [drm:drm_mode_debug_printmodeline], Modeline
20:1920x1080 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40 0x5

After:
[1.144175] [drm:drm_mode_debug_printmodeline], Modeline
22:1920x1080 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
[1.144179] [drm:drm_mode_debug_printmodeline], Modeline
21:1920x1080 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x48 0x15
[1.144187] [drm:drm_mode_debug_printmodeline], Modeline
30:1920x1080 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5
[1.144190] [drm:drm_mode_debug_printmodeline], Modeline
29:1920x1080 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
[1.144192] [drm:drm_mode_debug_printmodeline], Modeline
25:1920x1080 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40 0x5
[1.144195] [drm:drm_mode_debug_printmodeline], Modeline
24:1280x720 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
[1.144198] [drm:drm_mode_debug_printmodeline], Modeline
23:1280x720 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
[1.144201] [drm:drm_mode_debug_printmodeline], Modeline 27:720x576
50 27000 720 732 796 864 576 581 586 625 0x40 0xa
[1.144203] [drm:drm_mode_debug_printmodeline], Modeline 26:720x480
60 27000 720 736 798 858 480 489 495 525 0x40 0xa
[1.144206] [drm:drm_mode_debug_printmodeline], Modeline 28:640x480
60 25175 640 656 752 800 480 490 492 525 0x40 0xa


Signed-off-by: Christian Schmidt schm...@digadd.de

diff -ur linux-3.2-rc1.orig/drivers/gpu/drm/drm_edid.c linux-3.2-rc1/drivers/gpu/drm/drm_edid.c
--- linux-3.2-rc1.orig/drivers/gpu/drm/drm_edid.c	2011-11-08 01:16:02.0 +0100
+++ linux-3.2-rc1/drivers/gpu/drm/drm_edid.c	2011-11-12 19:51:47.164161263 +0100
@@ -1319,6 +1319,7 @@
 
 #define HDMI_IDENTIFIER 0x000C03
 #define AUDIO_BLOCK	0x01
+#define VIDEO_BLOCK 0x02
 #define VENDOR_BLOCK0x03
 #define SPEAKER_BLOCK	0x04
 #define EDID_BASIC_AUDIO	(1  6)
@@ -1349,6 +1350,47 @@
 }
 EXPORT_SYMBOL(drm_find_cea_extension);
 
+static int
+do_cea_modes (struct drm_connector *connector, u8 *db, u8 len)
+{
+	struct drm_device *dev = connector-dev;
+	u8 * mode, cea_mode;
+	int modes = 0;
+
+	for (mode = db; mode  db + len; mode++) {
+		cea_mode = (*mode  127) - 1; /* CEA modes are numbered 1..127 */
+		if (cea_mode  drm_num_cea_modes) {
+			struct drm_display_mode *newmode;
+			newmode = drm_mode_duplicate(dev,
+		 edid_cea_modes[cea_mode]);
+			if (newmode) {
+drm_mode_probed_add(connector, newmode);
+modes++;
+			}
+		}
+	}
+
+	return modes;
+}
+
+static int
+add_cea_modes(struct drm_connector *connector, struct edid *edid)
+{
+	u8 * cea = drm_find_cea_extension(edid);
+	u8 * db, dbl;
+	int modes = 0;
+
+	if (cea  cea[1] = 3) {
+		for (db = cea + 4; db  cea + cea[2]; db += dbl + 1) {
+			dbl = db[0]  0x1f;
+			if (((db[0]  0xe0)  5) == VIDEO_BLOCK)
+modes += do_cea_modes (connector, db+1, dbl);
+		}
+	}
+
+	return modes;
+}
+
 static void
 parse_hdmi_vsdb(struct drm_connector *connector, uint8_t *db)
 {
@@ -1722,6 +1764,7 @@
 	num_modes += add_standard_modes(connector, edid);
 	num_modes += add_established_modes(connector, edid);
 	num_modes += add_inferred_modes(connector, edid);
+	num_modes += add_cea_modes(connector, edid);
 
 	if (quirks  (EDID_QUIRK_PREFER_LARGE_60 | EDID_QUIRK_PREFER_LARGE_75))
 		edid_fixup_preferred(connector, quirks);
diff -ur linux-3.2-rc1.orig/drivers/gpu/drm/drm_edid_modes.h linux-3.2-rc1/drivers/gpu/drm/drm_edid_modes.h
--- linux-3.2-rc1.orig/drivers/gpu/drm/drm_edid_modes.h	2011-11-08 01:16:02.0 +0100
+++ linux-3.2-rc1/drivers/gpu/drm/drm_edid_modes.h	2011-11-12 19:46:35.942052075 +0100
@@ -378,3 +378,287 @@
 	{ 1920, 1440, 75, 0 },
 };
 static const int num_est3_modes = sizeof(est3_modes) / sizeof(est3_modes[0]);
+
+/*
+ * Probably taken from CEA-861 spec.
+ * This table is converted from xorg's hw/xfree86/modes/xf86EdidModes.c.
+ */
+static const struct drm_display_mode edid_cea_modes[] = {
+	/* 640x480@60Hz */
+	{ DRM_MODE(640x480, DRM_MODE_TYPE_DRIVER, 25175, 640, 656,
+		   752, 800, 0, 480, 490, 492, 525, 0,
+		   DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC) },
+	/* 720x480@60Hz */
+	{ DRM_MODE(720x480, DRM_MODE_TYPE_DRIVER, 27000, 720, 736,
+		   798, 858, 0, 480, 489, 495, 525, 0,
+		   DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC) },
+	/* 720x480@60Hz */
+	{ DRM_MODE(720x480, DRM_MODE_TYPE_DRIVER, 27000, 720, 736,
+		   798, 858, 0, 480, 489, 495, 525, 0,
+		   DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC) },
+	/* 1280x720@60Hz */
+	{ 

Re: [PATCH] drm_edid: support CEA video modes

2011-11-13 Thread alanwww1
This is awesome ! A LOT of HTPC fans are waiting for this! Is there a
chance that this lands in 3.2 ?

Thanks, Alan

2011/11/13 Christian Schmidt schm...@digadd.de:
 TFT/plasma televisions and projectors have become commonplace, and so
 has the use of PCs to drive them. Add the video modes specified by an
 EDID's CEA extension to the mode database for a connector.

 Before:
 [    1.158869] [drm:drm_mode_debug_printmodeline], Modeline
 19:1920x1080i 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
 [    1.158875] [drm:drm_mode_debug_printmodeline], Modeline
 18:1920x1080i 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x48 0x15
 [    1.158882] [drm:drm_mode_debug_printmodeline], Modeline
 20:1920x1080 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40 0x5

 After:
 [    1.144175] [drm:drm_mode_debug_printmodeline], Modeline
 22:1920x1080 0 74250 1920 2448 2492 2640 1080 1084 1094 1125 0x40 0x15
 [    1.144179] [drm:drm_mode_debug_printmodeline], Modeline
 21:1920x1080 0 74250 1920 2008 2052 2200 1080 1084 1094 1125 0x48 0x15
 [    1.144187] [drm:drm_mode_debug_printmodeline], Modeline
 30:1920x1080 50 148500 1920 2448 2492 2640 1080 1084 1089 1125 0x40 0x5
 [    1.144190] [drm:drm_mode_debug_printmodeline], Modeline
 29:1920x1080 60 148500 1920 2008 2052 2200 1080 1084 1089 1125 0x40 0x5
 [    1.144192] [drm:drm_mode_debug_printmodeline], Modeline
 25:1920x1080 24 74250 1920 2558 2602 2750 1080 1084 1089 1125 0x40 0x5
 [    1.144195] [drm:drm_mode_debug_printmodeline], Modeline
 24:1280x720 50 74250 1280 1720 1760 1980 720 725 730 750 0x40 0x5
 [    1.144198] [drm:drm_mode_debug_printmodeline], Modeline
 23:1280x720 60 74250 1280 1390 1430 1650 720 725 730 750 0x40 0x5
 [    1.144201] [drm:drm_mode_debug_printmodeline], Modeline 27:720x576
 50 27000 720 732 796 864 576 581 586 625 0x40 0xa
 [    1.144203] [drm:drm_mode_debug_printmodeline], Modeline 26:720x480
 60 27000 720 736 798 858 480 489 495 525 0x40 0xa
 [    1.144206] [drm:drm_mode_debug_printmodeline], Modeline 28:640x480
 60 25175 640 656 752 800 480 490 492 525 0x40 0xa


 Signed-off-by: Christian Schmidt schm...@digadd.de


 ___
 dri-devel mailing list
 dri-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/dri-devel


___
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel