All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvidiafb: Fix reversed DDC port
@ 2007-04-01  9:35 Antonino A. Daplas
  2007-04-01 23:07 ` Dave Airlie
  0 siblings, 1 reply; 3+ messages in thread
From: Antonino A. Daplas @ 2007-04-01  9:35 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Petr Vandrovec, Linux Fbdev development list

From: Petr Vandrovec <vandrove@vc.cvut.cz>

After I added some debugging printks I've found that code became a bit
confused because it believed that primary monitor is 1920x540, but later
it found in CRTC0's registers that panel size is 1920x1200 (Windows also
agree that 1920x1200 is primary monitor, and 1920x1080i secondary one).

When I applied attached patch then my monitor became as happy as it was
before I connected HDMI cable to secondary output.

Signed-off-by: Petr Vandrovec <vandrove@vc.cvut.cz>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
---

 drivers/video/nvidia/nv_i2c.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/video/nvidia/nv_i2c.c b/drivers/video/nvidia/nv_i2c.c
index b91d404..bcde013 100644
--- a/drivers/video/nvidia/nv_i2c.c
+++ b/drivers/video/nvidia/nv_i2c.c
@@ -131,10 +131,10 @@ void nvidia_create_i2c_busses(struct nvi
 	par->chan[1].par = par;
 	par->chan[2].par = par;
 
-	par->chan[0].ddc_base = 0x3e;
+	par->chan[0].ddc_base = 0x36;
 	nvidia_setup_i2c_bus(&par->chan[0], "nvidia #0");
 
-	par->chan[1].ddc_base = 0x36;
+	par->chan[1].ddc_base = 0x3e;
 	nvidia_setup_i2c_bus(&par->chan[1], "nvidia #1");
 
 	par->chan[2].ddc_base = 0x50;


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] nvidiafb: Fix reversed DDC port
  2007-04-01  9:35 [PATCH] nvidiafb: Fix reversed DDC port Antonino A. Daplas
@ 2007-04-01 23:07 ` Dave Airlie
  2007-04-01 23:33   ` Antonino A. Daplas
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Airlie @ 2007-04-01 23:07 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: Andrew Morton, Petr Vandrovec

> After I added some debugging printks I've found that code became a bit
> confused because it believed that primary monitor is 1920x540, but later
> it found in CRTC0's registers that panel size is 1920x1200 (Windows also
> agree that 1920x1200 is primary monitor, and 1920x1080i secondary one).
>
> When I applied attached patch then my monitor became as happy as it was
> before I connected HDMI cable to secondary output.
>

I don't think this will do much except break other peoples cards,
different nvidia cards map the i2c to outputs differently, the correct
way to fix it is to read a table in the BIOS called the DCB table (for
NV4x and above...) guess what? we don't know how to do that properly
because nvidia are very unfriendly...

Dave.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] nvidiafb: Fix reversed DDC port
  2007-04-01 23:07 ` Dave Airlie
@ 2007-04-01 23:33   ` Antonino A. Daplas
  0 siblings, 0 replies; 3+ messages in thread
From: Antonino A. Daplas @ 2007-04-01 23:33 UTC (permalink / raw)
  To: linux-fbdev-devel; +Cc: Andrew Morton, Petr Vandrovec

On Mon, 2007-04-02 at 09:07 +1000, Dave Airlie wrote:
> > After I added some debugging printks I've found that code became a bit
> > confused because it believed that primary monitor is 1920x540, but later
> > it found in CRTC0's registers that panel size is 1920x1200 (Windows also
> > agree that 1920x1200 is primary monitor, and 1920x1080i secondary one).
> >
> > When I applied attached patch then my monitor became as happy as it was
> > before I connected HDMI cable to secondary output.
> >
> 
> I don't think this will do much except break other peoples cards,
> different nvidia cards map the i2c to outputs differently, the correct
> way to fix it is to read a table in the BIOS called the DCB table (for
> NV4x and above...) guess what? we don't know how to do that properly
> because nvidia are very unfriendly...
> 

True. The port assignment does not matter for a single display, or
dual-displays with different output types, as nvidiafb and nv has code
that matches the EDID output to the monitor type. 

If nvidia is not consistent with the port assignment, and there is no
sane way of determining this, the best hack we can do is a boot option.

Anyway, Petr's patch is still 'correct', because, in relation with X's
nv driver, the ports are indeed reversed :-)

Tony 



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-04-01 23:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-01  9:35 [PATCH] nvidiafb: Fix reversed DDC port Antonino A. Daplas
2007-04-01 23:07 ` Dave Airlie
2007-04-01 23:33   ` Antonino A. Daplas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.