Rivafb won't work with DVI connector
I have a TFT LCD screen (1600x1200) with both D-Sub and DVI inputs, and a NV25 [GeForce4 Ti 4600] with same outputs.
Using the old D-Sub cable works fine:
rivafb: nVidia device/chipset 10DE0250
rivafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
rivafb: Detected CRTC controller 0 being used
rivafb: RIVA MTRR set to ON
rivafb: Found EDID Block from BUS 2
rivafb: setting virtual Y resolution to 83886
Console: switching to colour frame buffer device 200x75
rivafb: PCI nVidia NV25 framebuffer ver 0.9.5b (128MB @ 0xE0000000)
but with the DVI cable (dsub disconnected) I get a blank screen as soon as rivafb takes over:
rivafb: nVidia device/chipset 10DE0250
rivafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
rivafb: Detected CRTC controller 0 being used
rivafb: RIVA MTRR set to ON
rivafb: Found EDID Block from BUS 3
EDID checksum failed, aborting
rivafb: setting virtual Y resolution to 209715
Console: switching to colour frame buffer device 80x30
rivafb: PCI nVidia NV25 framebuffer ver 0.9.5b (128MB @ 0xE0000000)
I then have to plug the d-sub back in to see the output. [side note: 2.6.8.1 shows only garbage on reconnecting dsub, so rc2 is an improvement.]
No I don't understand the lingo here, but I assume EDID/BUS2/BUS3 and the checksum failure are the bits I'm interested in here.
I'm willing to do the grunt work to get this fixed, but can you guys give me a heads up on how this stuff works, and what might be involved in a fix?
Thanks
Andrew Walrond
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
Quoted 27 lines · Andrew Walrond
I have a TFT LCD screen (1600x1200) with both D-Sub and DVI inputs, and a NV25 [GeForce4 Ti 4600] with same outputs.
Using the old D-Sub cable works fine:
rivafb: nVidia device/chipset 10DE0250
rivafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
rivafb: Detected CRTC controller 0 being used
rivafb: RIVA MTRR set to ON
rivafb: Found EDID Block from BUS 2
rivafb: setting virtual Y resolution to 83886
Console: switching to colour frame buffer device 200x75
rivafb: PCI nVidia NV25 framebuffer ver 0.9.5b (128MB @0xE0000000)but with the DVI cable (dsub disconnected) I get a blank screen as soon as rivafb takes over:
rivafb: nVidia device/chipset 10DE0250
rivafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
rivafb: Detected CRTC controller 0 being used
rivafb: RIVA MTRR set to ON
rivafb: Found EDID Block from BUS 3
EDID checksum failed, aborting
rivafb: setting virtual Y resolution to 209715
Console: switching to colour frame buffer device 80x30
rivafb: PCI nVidia NV25 framebuffer ver 0.9.5b (128MB @0xE0000000)
Quoted 6 lines
I then have to plug the d-sub back in to see the output. [side note: 2.6.8.1 shows only garbage on reconnecting dsub, so rc2 is an improvement.]
No I don't understand the lingo here, but I assume EDID/BUS2/BUS3 and the checksum failure are the bits I'm interested in here.
You can try the following:
1. turn on verbose debug output in drivers/video/fbmon.c
2. Try just grabbing the EDID from BUS2, since the EDID checksum failed from BUS3.
3. if you can, send me your EDID block. You can use the utility 'read-edid'.
Tony
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
Quoted 32 lines · Antonino A. Daplas
Quoted 31 lines · Andrew Walrond
I have a TFT LCD screen (1600x1200) with both D-Sub and DVI inputs, and a NV25 [GeForce4 Ti 4600] with same outputs.
Using the old D-Sub cable works fine:
rivafb: nVidia device/chipset 10DE0250
rivafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
rivafb: Detected CRTC controller 0 being used
rivafb: RIVA MTRR set to ON
rivafb: Found EDID Block from BUS 2
rivafb: setting virtual Y resolution to 83886
Console: switching to colour frame buffer device 200x75
rivafb: PCI nVidia NV25 framebuffer ver 0.9.5b (128MB @0xE0000000)but with the DVI cable (dsub disconnected) I get a blank screen as soon as rivafb takes over:
rivafb: nVidia device/chipset 10DE0250
rivafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
rivafb: Detected CRTC controller 0 being used
rivafb: RIVA MTRR set to ON
rivafb: Found EDID Block from BUS 3
EDID checksum failed, aborting
rivafb: setting virtual Y resolution to 209715
Console: switching to colour frame buffer device 80x30
rivafb: PCI nVidia NV25 framebuffer ver 0.9.5b (128MB @0xE0000000)I then have to plug the d-sub back in to see the output. [side note: 2.6.8.1 shows only garbage on reconnecting dsub, so rc2 is an improvement.]
Quoted 6 lines
Quoted 2 lines
No I don't understand the lingo here, but I assume EDID/BUS2/BUS3 and the checksum failure are the bits I'm interested in here.
You can try the following:
1. turn on verbose debug output in
drivers/video/fbmon.c
Done; but nothing gets displayed when checksum fails. Displays lots of nice stuff with dsub connection though :)
Quoted 3 lines
2. Try just grabbing the EDID from BUS2, since the EDID checksum failed from BUS3.
Ok - I modified riva_get_EDID_i2c to probe only BUS 2, but the checksum still fails unless the dsub is (also) connected. Infact, I hard coded each bus, 1-3 in turn. With just DVI connected, the returned EDID failed the checksum for all three buses. With the Dsub connected, I got valid EDID's on BUS 1 and 2, and a message saying none was available on BUS 3.
I cannot get a DVI display, whatever I try. I have also tried various combinations of video:rivafb:forceCRTC=0/1 and video:rivafb:flatpanel, all to no effect (flatpanel gives me a corrupt dsub display)
Quoted 3 lines
3. if you can, send me your EDID block. You can use the utility 'read-edid'.
EDID attached. Parsed output:
./read-edid-1.4.1/parse-edid: parse-edid version 1.4.1 ./read-edid-1.4.1/parse-edid: EDID checksum passed.
# EDID version 1 revision 3
Section "Monitor"
# Block type: 2:0 3:fd
# Block type: 2:0 3:fc
Identifier "iiyama "
VendorName "IVM"
ModelName "iiyama "
# Block type: 2:0 3:fd
HorizSync 30-80
VertRefresh 56-85
# Max dot clock (video bandwidth) 170 MHz
# Block type: 2:0 3:fc
# DPMS capabilities: Active off:yes Suspend:yes Standby:yes
Mode "1024x768" # vfreq 59.196Hz, hfreq 48.363kHz
DotClock 65.000000
HTimings 1024 1040 1104 1344
VTimings 768 781 783 817
Flags "-HSync" "-VSync"
EndMode
Mode "1600x1200" # vfreq 60.000Hz, hfreq 75.000kHz
DotClock 162.000000
HTimings 1600 1664 1856 2160
VTimings 1200 1201 1204 1250
Flags "+HSync" "+VSync"
EndMode
# Block type: 2:0 3:fd
# Block type: 2:0 3:fcEndSection
Quoted 4 lines · Andrew Walrond
Quoted 3 lines · Antonino A. Daplas
Quoted 2 lines · Andrew Walrond
I have a TFT LCD screen (1600x1200) with both D-Sub and DVI inputs, and a NV25 [GeForce4 Ti 4600] with same outputs.
Can you try this driver rewrite for nVidia chipsets? I'm planning to add this driver because it's getting harder and harder to support newer chipsets with the old code.
- based on the most recent Xorg nv driver
- supports console acceleration via DMA instead of PIO
- should support all chipsets supported by rivafb except for Riva128 (NV_ARCH_03) and in theory should also support NV_ARCH_30 and NV_ARCH_40 chipsets. I've already added a few pci_ids for these newer chipsets.
The reference file that I based the driver on seems to have better DVI support, so hopefully this works.
You have to disable rivafb in your kernel config. The module name is nvidiafb and boot options are very similar to rivafb:
video=nvidiafb:<your options>
This is a preliminary patch, but it should be almost as functional as rivafb.
Tony
drivers/video/Kconfig | 7 drivers/video/Makefile | 4 drivers/video/nvidia/Makefile | 11 drivers/video/nvidia/nv_accel.c | 342 ++++++++ drivers/video/nvidia/nv_dma.h | 180 ++++ drivers/video/nvidia/nv_local.h | 91 ++ drivers/video/nvidia/nv_proto.h | 59 + drivers/video/nvidia/nv_setup.c | 626 +++++++++++++++ drivers/video/nvidia/nv_type.h | 171 ++++ drivers/video/nvidia/nvidia-i2c.c | 229 +++++ drivers/video/nvidia/nvidia.c | 1221 ++++++++++++++++++++++++++++++ drivers/video/nvidia/nvidia_hw.c | 1509 ++++++++++++++++++++++++++++++++++++++ include/linux/pci_ids.h | 49 +
Quoted 20 lines · Antonino A. Daplas
Quoted 4 lines · Andrew Walrond
Quoted 3 lines · Antonino A. Daplas
Quoted 2 lines · Andrew Walrond
I have a TFT LCD screen (1600x1200) with both D-Sub and DVI inputs, and a NV25 [GeForce4 Ti 4600] with same outputs.
Can you try this driver rewrite for nVidia chipsets? I'm planning to add this driver because it's getting harder and harder to support newer chipsets with the old code.
- based on the most recent Xorg nv driver
- supports console acceleration via DMA instead of PIO
- should support all chipsets supported by rivafb except for Riva128 (NV_ARCH_03) and in theory should also supportNV_ARCH_30andNV_ARCH_40chipsets. I've already added a fewpci_idsfor these newer chipsets.The reference file that I based the driver on seems to have better DVI support, so hopefully this works.
Quoted 8 lines
You have to disable rivafb in your kernel config. The module name is nvidiafb and boot options are very similar to rivafb:
video=nvidiafb:<your options>
This is a preliminary patch, but it should be almost as functional as rivafb.
Hi Tony,
Some results. I both cases I booted with
video=nvidia:1600x1200-16@60
on an Iiuama AU4831D 1600x1200 TFT LCD with both dsub and dvi connectors.
Using the dsub connector, everything works fine. From dmesg:
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
...can't find one
...found one
nvidiafb: CRTC 0appears to have a CRT attached
nvidiafb: Using CRT on CRTC 0
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 200x75
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
Using the dvi connector, I get lovely shade of green filling the whole screen. Dmesg is interesting:
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
...can't find one
...can't find one
nvidiafb: CRTC 1 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 1
Panel size is 1024 x 768
nvidiafb: MTRR set to ON
warning: many lost ticks.
Your time source seems to be instable or some driver is hogging interupts rip default_idle+0x20/0x30
Console: switching to colour frame buffer device 200x75
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
Notice in particular
- "some driver hogging interrupts"
- "Panel size is 1024x768" (should be 1600x1200)
I'll try to boot on dvi without and module parameters and report back shortly.
Anything else I can do to help, let me know.
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 4 lines · Andrew Walrond
I'll try to boot on dvi without and module parameters and report back shortly.
Ok, some progress. Booting without any module parameters on dvi connector gets me what is probably a 1024x768 display on my 1600x1200 tft screen. However, the console text is shifted right a bit less than half a screen width such that the right hand of the display appears wrapped on the left. There also seem to be two cursors, seperated by about two character widths. (Note these are not artifacts of the screen, which handles 1024x768 just fine under normal circumstances, either with a large border, or scaled to fit the whole screen)
Dmesg:
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
...can't find one
...can't find one
nvidiafb: CRTC 1 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 1
Panel size is 1024 x 768
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 80x30
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
But hell, at least I am seeing some stuff through the dvi !
Anything I can do, let me know.
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 26 lines · Andrew Walrond
Quoted 2 lines · Andrew Walrond
I'll try to boot on dvi without and module parameters and report back shortly.
Ok, some progress. Booting without any module parameters on dvi connector gets me what is probably a 1024x768 display on my 1600x1200 tft screen. However, the console text is shifted right a bit less than half a screen width such that the right hand of the display appears wrapped on the left. There also seem to be two cursors, seperated by about two character widths. (Note these are not artifacts of the screen, which handles 1024x768 just fine under normal circumstances, either with a large border, or scaled to fit the whole screen)
Dmesg:
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
...can't find one
...can't find one
nvidiafb: CRTC 1 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 1
Panel size is 1024 x 768
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 80x30
nvidiafb: PCI nVidia NV25 framebuffer (128MB @0xE0000000)
Quoted 1 line
But hell, at least I am seeing some stuff through the dvi !
That sounds like progress :-)
Try this patch (reverse the previous one first)
- update code against the latest CVS version of Xorg
- added VESA blanking support
- added backlight support for powermacs
- added hardware cursor support using option 'hwcur'.
- clean-up of i2c code
Let me know, again, of the results. Thanks.
Tony
Quoted 11 lines · Antonino A. Daplas
Try this patch (reverse the previous one first)
- update code against the latest CVS version of Xorg
- added VESA blanking support
- added backlight support for powermacs
- added hardware cursor support using option 'hwcur'.
- clean-up of i2c codeLet me know, again, of the results. Thanks.
Ok; getting closer. In all cases booting with DVI connection:
Booting with no module params gives an almost working 80x30 console, but shifted/wrapped half a screen to the right as with the previous version.
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
nvidiafb: CRTC0 not found
nvidiafb: CRTC1 not found
nvidiafb: CRTC 1 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 1
Panel size is 1024 x 768
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 80x30
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
Note the erroneous panel detection; this is a 1600x1200 tft lcd. The panel is detected as 1024x768 in every following case.
Now, with params. If I omit the @60 refresh rate, all I get is a screen of dots; I can make out that there is are a couple of penguin smeared across the top, but thats about all. So all the following have @60 which produces a better display.
video=nvidia:1024x768-16@60
This produces a readable 128x48 display, but shifted about a quarter of a display to the right. The penguins are a bit disjointed aswell.
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
nvidiafb: CRTC0 not found
nvidiafb: CRTC1 not found
nvidiafb: CRTC 1 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 1
Panel size is 1024 x 768
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 128x48
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
video=nvidia:1024x768-32@60
Same results as -16, but my test programme confirms display is 32bpp. Dmesg is identical
Interestingly, on all the shifted/wrapped displays, If I hit ctrl-L to clear the screen, the prompt moves back to the correct position for just that one top line. The next and subsequent lines are shifted right again.
video=nvidia:1280x1024-16@60
video=nvidia:1280x1024-32@60
video=nvidia:1600x1200-16@60
video=nvidia:1600x1200-32@60
All modes above 1024x768 produce the same result; a FULLY WORKING console, but ONLY AT 80x25. No sign of the shifting/wrapping problem though.
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
nvidiafb: CRTC0 not found
nvidiafb: CRTC1 not found
nvidiafb: CRTC 1 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 1
Panel size is 1024 x 768
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 80x25
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
So, the main problems as I see them are:
- Panel is misdetected as 1024x768. Refresh rates are also likely misdetected
since I only get gibberish unless I add @60 (although monitor doesn't report "out of range")
- Displays <= 1024x768 have this shifted/wrapped to the right problem.
Getting closer though!
I'll try the dsub connection next.
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 3 lines · Andrew Walrond
I'll try the dsub connection next.
Booting with dsub connection and video=1600x1200-32@60 works perfectly.
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
nvidiafb: CRTC0 not found
nvidiafb: CRTC1 found
nvidiafb: CRTC 0appears to have a CRT attached
nvidiafb: Using CRT on CRTC 0
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 200x75
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 27 lines · Andrew Walrond
Quoted 9 lines · Antonino A. Daplas
Try this patch (reverse the previous one first)
- update code against the latest CVS version of Xorg
- added VESA blanking support
- added backlight support for powermacs
- added hardware cursor support using option 'hwcur'.
- clean-up of i2c codeLet me know, again, of the results. Thanks.
Ok; getting closer. In all cases booting with DVI connection:
Booting with no module params gives an almost working 80x30 console, but shifted/wrapped half a screen to the right as with the previous version.
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600]
nvidiafb: CRTC0 not found
nvidiafb: CRTC1 not found
nvidiafb: CRTC 1 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 1
Panel size is 1024 x 768
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 80x30
nvidiafb: PCI nVidia NV25 framebuffer (128MB @0xE0000000)
Quoted 2 lines
Note the erroneous panel detection; this is a 1600x1200 tft lcd. The panel is detected as 1024x768 in every following case.
The panel size is programmed by the BIOS, not sure what what we can do about that. So even if your display supports 1600x1200, you're still limited to 1024x768.
Perhaps, if we can combine the vesafb code so the BIOS forces it to 1600x1200, then have nvidiafb detect and use the vesa mode, we can get a resolution higher than 1024x768. I'll play around with this, and I'll give you a test patch later.
Quoted 7 lines
Now, with params. If I omit the @60 refresh rate, all I get is a screen of dots; I can make out that there is are a couple of penguin smeared across the top, but thats about all. So all the following have @60 which produces a better display.
video=nvidia:1024x768-16@60
It seems that EDID block is not detected whether digital or analog. I think I missed a Kconfig changeset. Should be fixed with the included patch.
Select y to FB_NVIDIA_I2C.
Quoted 5 lines
- Panel is misdetected as 1024x768. Refresh rates are also likely
misdetected since I only get gibberish unless I add @60 (although monitor doesn't report "out of range")- Displays <= 1024x768 have this shifted/wrapped to the right problem.
Most probably the 1024x768@60 entry in the mode database is wreaking havoc to the timings. Let's use the VESA standard 1024x768-60 timing.
Try the attached patch. It's an incremental patch so apply it on top of nvidiafb2.diff
Tony
drivers/video/Kconfig +25 -4
@@ -444,11 +444,32 @@ <http://www.erd.epson.com/vdc/html/products.htm>. config FB_NVIDIA - tristate "nVidia Support" - depends on FB && PCI - select FB_MODE_HELPERS + tristate "nVidia Framebuffer Support" + depends on FB && PCI + select I2C_ALGOBIT if FB_NVIDIA_I2C + select I2C if FB_NVIDIA_I2C + select FB_MODE_HELPERS + help + This driver supports graphics boards with the nVidia chips, TNT + and newer. For very old chipsets, such as the RIVA128, then use + the the rivafb. + Say Y if you have such a graphics board. + + To compile this driver as a module, choose M here: the + module will be called nvidiafb. + none yet + +config FB_NVIDIA_I2C + bool "Enable DDC Support" + depends on FB_NVIDIA help - none yet + This enables I2C support for nVidia Chipsets. This is used + only for getting EDID information from the attached display + allowing for robust video mode handling and switching. + + Because fbdev-2.6 requires that drivers must be able to + independently validate video mode parameters, you should say Y + here. config FB_RIVA tristate "nVidia Riva support"
drivers/video/modedb.c +2 -2
@@ -86,8 +86,8 @@FB_SYNC_HOR_HIGH_ACT |FB_SYNC_VERT_HIGH_ACT ,FB_VMODE_NONINTERLACED }, {/* 1024x768 @ 60 Hz, 48.4 kHz hsync */ -NULL ,60 ,1024 ,768 ,15384 ,168 ,8 ,29 ,3 ,144 ,6 , -0 ,FB_VMODE_NONINTERLACED +NULL ,60 ,1024 ,768 ,15384 ,160 ,24 ,29 ,3 ,136 ,6 , +0 ,FB_VMODE_NONINTERLACED ,FB_MODE_IS_VESA }, {/* 640x480 @ 100 Hz, 53.01 kHz hsync */ NULL, 100, 640, 480, 21834, 96, 32, 36, 8, 96, 6,
Quoted 8 lines · Antonino A. Daplas
Quoted 3 lines · Andrew Walrond
Note the erroneous panel detection; this is a 1600x1200 tft lcd. The panel is detected as 1024x768 in every following case.
The panel size is programmed by the BIOS, not sure what what we can do about that. So even if your display supports 1600x1200, you're still limited to 1024x768.
What, the video-card BIOS? Shouldn't it get the correct info from the EDID?
andrew@orac fbdev $ read-edid-1.4.1/parse-edid edid.dsub.32 read-edid-1.4.1/parse-edid: parse-edid version 1.4.1 read-edid-1.4.1/parse-edid: EDID checksum passed.
# EDID version 1 revision 3
Section "Monitor"
# Block type: 2:0 3:fd
# Block type: 2:0 3:fc
Identifier "iiyama "
VendorName "IVM"
ModelName "iiyama "
# Block type: 2:0 3:fd
HorizSync 30-80
VertRefresh 56-85
# Max dot clock (video bandwidth) 170 MHz
# Block type: 2:0 3:fc
# DPMS capabilities: Active off:yes Suspend:yes Standby:yes
Mode "1024x768" # vfreq 59.196Hz, hfreq 48.363kHz
DotClock 65.000000
HTimings 1024 1040 1104 1344
VTimings 768 781 783 817
Flags "-HSync" "-VSync"
EndMode
Mode "1600x1200" # vfreq 60.000Hz, hfreq 75.000kHz
DotClock 162.000000
HTimings 1600 1664 1856 2160
VTimings 1200 1201 1204 1250
Flags "+HSync" "+VSync"
EndMode
# Block type: 2:0 3:fd
# Block type: 2:0 3:fcEndSection
Quoted 6 lines
It seems that EDID block is not detected whether digital or analog. I think I missed a
Kconfigchangeset. Should be fixed with the included patch.Select y to
FB_NVIDIA_I2C.
Ok, with your incremental patch, DSUB connection and no kernel params, the kernel boots into a corruption free 1600x1200 (200xwhatever) console with two nice penguins, after detecting EDIDs on BUS2 and BUS3. Unfortunately, it then Oops's like this: (copied by hand)
Oops : PREEMPT SMP
tty_open+342 chrdev_open+457
dentry_open+315 filp_open+62
get_unused_fd+244 sys_open+76
init+652 child_rip+8
init+0 child_rip+0
RIP: check_tty_count+58
Booting with DVI connection and no params gives me a corruption free 1024x768 console with two nice penguins. It also then Oopses in an identical way to above.
Getting closer...
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 10 lines · Andrew Walrond
Quoted 7 lines · Antonino A. Daplas
Quoted 2 lines · Andrew Walrond
Note the erroneous panel detection; this is a 1600x1200 tft lcd. The panel is detected as 1024x768 in every following case.
The panel size is programmed by the BIOS, not sure what what we can do about that. So even if your display supports 1600x1200, you're still limited to 1024x768.
What, the video-card BIOS? Shouldn't it get the correct info from the EDID?
If the display has an analog input, then yes. It's different when the input is digital.
(Also, the EDID block may differ depending on the input type, this I'm not sure).
Quoted 5 lines
Ok, with your incremental patch, DSUB connection and no kernel params, the kernel boots into a corruption free 1600x1200 (200xwhatever) console with two nice penguins, after detecting EDIDs on BUS2 and BUS3. Unfortunately, it then Oops's like this: (copied by hand)
Quoted 8 lines
Oops : PREEMPT SMP
tty_open+342 chrdev_open+457
dentry_open+315 filp_open+62
get_unused_fd+244 sys_open+76
init+652 child_rip+8
init+0 child_rip+0
Okay, try the attached patch.
Tony
drivers/video/nvidia/nv_setup.c +37 -29
@@ -289,7 +289,8 @@u16 implementation = par->Chipset &0x0ff0 ;u8 *edidA, *edidB;struct fb_monspecs monitorA, monitorB; -int mobile =0 , validA =0 , validB =0 ; +struct fb_monspecs *monA =NULL , *monB =NULL ; +int mobile =0 ;int tvA =0 ;int tvB =0 ;int FlatPanel =-1 ;/* really means the CRTC is slaved */
@@ -397,13 +398,13 @@nvidia_probe_i2c_connector (par,1 , &edidA);if (edidA && !fb_parse_edid (edidA, &var)) {printk ("nvidiafb: EDID found from BUS1\n" ); -fb_edid_to_monspecs (edidA, &monitorA); - FlatPanel = (monitorA.input ==FB_DISP_DDI ) ?1 :0 ; + monA = &monitorA; +fb_edid_to_monspecs (edidA, monA); + FlatPanel = (monA->input ==FB_DISP_DDI ) ?1 :0 ;/* NV4 doesn't support FlatPanels */ if ((par->Chipset &0x0fff ) <=0x0020 ) FlatPanel =0 ; - validA =1 ; }else {VGA_WR08 (par->PCIO,0x03D4 ,0x28 );if (VGA_RD08 (par->PCIO,0x03D5 ) &0x80 ) {
@@ -484,15 +485,15 @@nvidia_probe_i2c_connector (par,1 , &edidA);if (edidA && !fb_parse_edid (edidA, &var)) {printk ("nvidiafb: EDID found from BUS1\n" ); -fb_edid_to_monspecs (edidA, &monitorA); - validA =1 ; + monA = &monitorA; +fb_edid_to_monspecs (edidA, monA); }nvidia_probe_i2c_connector (par,2 , &edidB);if (edidB && !fb_parse_edid (edidB, &var)) {printk ("nvidiafb: EDID found from BUS2\n" ); -fb_edid_to_monspecs (edidB, &monitorB); - validB =1 ; + monB = &monitorB; +fb_edid_to_monspecs (edidB, monB); }if (slaved_on_A && !tvA) {
@@ -529,10 +530,10 @@ Television =1 ;printk ("nvidiafb: CRTC 1 is currently programmed for " "TV\n" ); - }else if (validA) { - FlatPanel = (monitorA.input ==FB_DISP_DDI ) ?1 :0 ; - }else if (validB) { - FlatPanel = (monitorB.input ==FB_DISP_DDI ) ?1 :0 ; + }else if (monA) { + FlatPanel = (monA->input ==FB_DISP_DDI ) ?1 :0 ; + }else if (monB) { + FlatPanel = (monB->input ==FB_DISP_DDI ) ?1 :0 ; }if (par->FlatPanel ==-1 ) {
@@ -572,25 +573,30 @@ "specified\n", par->CRTCnumber); } -if (validA) { -if (((monitorA.input ==FB_DISP_DDI ) && +if (monA) { +if (((monA->input ==FB_DISP_DDI ) && par->FlatPanel) || - ((monitorA.input !=FB_DISP_DDI ) && - !par->FlatPanel)) { -if (validB) -fb_destroy_modedb (monitorB.modedb); - }else -fb_destroy_modedb (monitorA.modedb); + ((monA->input !=FB_DISP_DDI ) && + !par->FlatPanel)) { +if (monB) { +fb_destroy_modedb (monB->modedb); + monB =NULL ; + } + }else { +fb_destroy_modedb (monA->modedb); + monA =NULL ; + } } -if (validB) { -if (((monitorB.input ==FB_DISP_DDI ) && +if (monB) { +if (((monB->input ==FB_DISP_DDI ) && !par->FlatPanel) || - ((!monitorB.input !=FB_DISP_DDI ) && - par->FlatPanel)) -fb_destroy_modedb (monitorB.modedb); -else - monitorA = monitorB; + ((monB->input !=FB_DISP_DDI ) && + par->FlatPanel)) { +fb_destroy_modedb (monB->modedb); + monB =NULL ; + }else + monA = monB; }if (implementation ==0x0110 )
@@ -615,10 +621,12 @@printk ("Panel size is %i x %i\n" , par->fpWidth, par->fpHeight); } -if (validA || validB) - info->monspecs = monitorA; +if (monA) + info->monspecs = *monA; +kfree (edidA);kfree (edidB); +if (!par->FlatPanel || (info->var.bits_per_pixel !=24 ) || !par->twoHeads) par->FPDither =0 ;
Quoted 3 lines · Antonino A. Daplas
Okay, try the attached patch.
Ok, booting on dsub without params now results in a good 1024x768 (128x48) console and boots cleanly. (Note this was a 1600x1200 (200xwhatever) before the patch, which is the preferred, native resolution of the screen.)
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600] i2c_adapter i2c-0: registered as adapter #0 i2c_adapter i2c-1: registered as adapter #1 i2c_adapter i2c-2: registered as adapter #2
nvidiafb: CRTC0 not found
nvidiafb: CRTC1 found
i2c_adapter i2c-0: master_xfer: with 2 msgs.
nvidiafb: EDID found from BUS1
i2c_adapter i2c-1: master_xfer: with 2 msgs.
nvidiafb: EDID found from BUS2
nvidiafb: CRTC 0appears to have a CRT attached
nvidiafb: Using CRT on CRTC 0
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 128x48
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
Booting on dvi with no kernel params results in a broken (right shifted) 80x30 display as before.
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600] i2c_adapter i2c-0: registered as adapter #0 i2c_adapter i2c-1: registered as adapter #1 i2c_adapter i2c-2: registered as adapter #2
nvidiafb: CRTC0 not found
nvidiafb: CRTC1 not found
i2c_adapter i2c-0: master_xfer: with 2 msgs.
nvidiafb: EDID found from BUS1
i2c_adapter i2c-1: master_xfer: with 2 msgs. i2c_adapter i2c-1: master_xfer: with 2 msgs. i2c_adapter i2c-1: master_xfer: with 2 msgs.
nvidiafb: CRTC 1 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 1
Panel size is 1024 x 768
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 80x30
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
Booting on dvi with video=nvidiafb:1600x1200-32@60 results in a fully working console, but only at 80x25
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600] i2c_adapter i2c-0: registered as adapter #0 i2c_adapter i2c-1: registered as adapter #1 i2c_adapter i2c-2: registered as adapter #2
nvidiafb: CRTC0 not found
nvidiafb: CRTC1 not found
i2c_adapter i2c-0: master_xfer: with 2 msgs.
nvidiafb: EDID found from BUS1
i2c_adapter i2c-1: master_xfer: with 2 msgs. i2c_adapter i2c-1: master_xfer: with 2 msgs. i2c_adapter i2c-1: master_xfer: with 2 msgs.
nvidiafb: CRTC 1 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 1
Panel size is 1024 x 768
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 80x25
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
The Oops has gone though :)
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 7 lines · Andrew Walrond
Quoted 1 line · Antonino A. Daplas
Okay, try the attached patch.
Ok, booting on dsub without params now results in a good 1024x768 (128x48) console and boots cleanly. (Note this was a 1600x1200 (200xwhatever) before the patch, which is the preferred, native resolution of the screen.)
Can you enable debugging in drivers/video/fbmon.c? Just change the "undef" to define in this line:
#undef DEBUG /* define this for verbose EDID parsing output */
Send me the dmesg output for both dvi and dsub.
Tony
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 9 lines · Antonino A. Daplas
Quoted 7 lines · Andrew Walrond
Quoted 1 line · Antonino A. Daplas
Okay, try the attached patch.
Ok, booting on dsub without params now results in a good 1024x768 (128x48) console and boots cleanly. (Note this was a 1600x1200 (200xwhatever) before the patch, which is the preferred, native resolution of the screen.)
Actually, I think this is die to having both dsub and dvi attached during that test. Just dsub boots to 1600x1200 as before
Quoted 7 lines
Can you enable debugging in
drivers/video/fbmon.c? Just change the "undef" to define in this line:#undef DEBUG /* define this for verbose EDID parsing output */
Send me the dmesg output for both dvi and dsub.
DSUB
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600] i2c_adapter i2c-0: registered as adapter #0 i2c_adapter i2c-1: registered as adapter #1 i2c_adapter i2c-2: registered as adapter #2
nvidiafb: CRTC0 not found
nvidiafb: CRTC1 foundi2c_adapter i2c-0: master_xfer: with 2 msgs. i2c_adapter i2c-0: master_xfer: with 2 msgs. i2c_adapter i2c-0: master_xfer: with 2 msgs. i2c_adapter i2c-1: master_xfer: with 2 msgs.
nvidiafb: EDID found from BUS2
========================================
Display Information (EDID)
========================================
EDID Version 1.3
Manufacturer: IVM
Model: 4800
Serial#: 95
Year: 2001 Week 44
Monitor Name: iiyama
Monitor Name: AU4831D
Display Characteristics:
Monitor Operating Limits: From EDID
H: 24-80KHz V: 50-85Hz DCLK: 170MHz
Analog Display Input: Input Voltage - 0.700V/0.000V
Sync: Separate Composite
Max H-size in cm: 39
Max V-size in cm: 29
Gamma: 2.20
DPMS: Active yes, Suspend yes, Standby yes RGB Color Display
Chroma
RedX: 0.619 RedY: 0.340
GreenX: 0.279 GreenY: 0.600
BlueX: 0.140 BlueY: 0.090
WhiteX: 0.289 WhiteY: 0.300
First DETAILED Timing is preferred
Supported VESA Modes
720x400@70Hz
640x480@60Hz
640x480@67Hz
640x480@72Hz
640x480@75Hz
800x600@56Hz
800x600@60Hz
800x600@72Hz
800x600@75Hz
832x624@75Hz
1024x768@60Hz
1024x768@70Hz
1024x768@75Hz
1280x1024@75Hz
Manufacturer's mask: 0
Standard Timings
1600x1200@60Hz
1280x1024@60Hz
1280x1024@70Hz
1152x864@75Hz
1152x864@85Hz
1024x768@66Hz
1024x768@70Hz
1024x768@85Hz
Detailed Timings
162 MHz 1600 1664 1856 2160 1200 1201 1204 1250 +HSync +VSync========================================
nvidiafb: CRTC 0appears to have a CRT attached
nvidiafb: Using CRT on CRTC 0
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 200x75
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
DVI
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600] i2c_adapter i2c-0: registered as adapter #0 i2c_adapter i2c-1: registered as adapter #1 i2c_adapter i2c-2: registered as adapter #2
nvidiafb: CRTC0 not found
nvidiafb: CRTC1 not foundi2c_adapter i2c-0: master_xfer: with 2 msgs.
nvidiafb: EDID found from BUS1
========================================
Display Information (EDID)
========================================
EDID Version 1.3
Manufacturer: IVM
Model: 4800
Serial#: 1001
Year: 2002 Week 1
Monitor Name: iiyama
Display Characteristics:
Monitor Operating Limits: From EDID
H: 30-80KHz V: 56-85Hz DCLK: 170MHz
Digital Display Input
Sync: Serration on
Max H-size in cm: 39
Max V-size in cm: 29
Gamma: 2.20
DPMS: Active yes, Suspend yes, Standby yes RGB Color Display
Chroma
RedX: 0.619 RedY: 0.340
GreenX: 0.279 GreenY: 0.600
BlueX: 0.140 BlueY: 0.090
WhiteX: 0.289 WhiteY: 0.300
First DETAILED Timing is preferred
Supported VESA Modes
720x400@70Hz
640x480@60Hz
640x480@67Hz
640x480@72Hz
640x480@75Hz
800x600@56Hz
800x600@60Hz
800x600@72Hz
800x600@75Hz
832x624@75Hz
1024x768@60Hz
1024x768@70Hz
1024x768@75Hz
1280x1024@75Hz
1152x870@75Hz
Manufacturer's mask: 0
Standard Timings
1280x1024@60Hz
1024x819@85Hz
800x640@85Hz
640x512@85Hz
Detailed Timings
65 MHz 1024 1040 1104 1344 768 781 783 817 -HSync -VSync
162 MHz 1600 1664 1856 2160 1200 1201 1204 1250 +HSync +VSync========================================i2c_adapter i2c-1: master_xfer: with 2 msgs. i2c_adapter i2c-1: master_xfer: with 2 msgs. i2c_adapter i2c-1: master_xfer: with 2 msgs.
nvidiafb: CRTC 1 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 1
Panel size is 1024 x 768
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 80x30
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 5 lines · Andrew Walrond
Quoted 4 lines · Antonino A. Daplas
Quoted 3 lines · Andrew Walrond
Quoted 1 line · Antonino A. Daplas
Okay, try the attached patch.
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Ok, booting on dsub without params now results in a good 1024x768 (128x48) console and boots cleanly. (Note this was a 1600x1200 (200xwhatever) before the patch, which is the preferred, native resolution of the screen.)
Actually, I think this is die to having both dsub and dvi attached during that test. Just dsub boots to 1600x1200 as before
Okay, I think I this should fix the dvi misdetection, and I think it should also fix the preferred timing of 1600x1200 even if both dsub and dvi are attached. Try the attached patch.
Tony
drivers/video/nvidia/nv_setup.c +7 -7
@@ -400,7 +400,7 @@printk ("nvidiafb: EDID found from BUS1\n" ); monA = &monitorA;fb_edid_to_monspecs (edidA, monA); - FlatPanel = (monA->input ==FB_DISP_DDI ) ?1 :0 ; + FlatPanel = (monA->input &FB_DISP_DDI ) ?1 :0 ;/* NV4 doesn't support FlatPanels */ if ((par->Chipset &0x0fff ) <=0x0020 )
@@ -531,9 +531,9 @@printk ("nvidiafb: CRTC 1 is currently programmed for " "TV\n" ); }else if (monA) { - FlatPanel = (monA->input ==FB_DISP_DDI ) ?1 :0 ; + FlatPanel = (monA->input &FB_DISP_DDI ) ?1 :0 ; }else if (monB) { - FlatPanel = (monB->input ==FB_DISP_DDI ) ?1 :0 ; + FlatPanel = (monB->input &FB_DISP_DDI ) ?1 :0 ; }if (par->FlatPanel ==-1 ) {
@@ -574,9 +574,9 @@ }if (monA) { -if (((monA->input ==FB_DISP_DDI ) && +if (((monA->input &FB_DISP_DDI ) && par->FlatPanel) || - ((monA->input !=FB_DISP_DDI ) && + ((!(monA->input &FB_DISP_DDI )) && !par->FlatPanel)) {if (monB) {fb_destroy_modedb (monB->modedb);
@@ -589,9 +589,9 @@ }if (monB) { -if (((monB->input ==FB_DISP_DDI ) && +if (((monB->input &FB_DISP_DDI ) && !par->FlatPanel) || - ((monB->input !=FB_DISP_DDI ) && + ((!(monB->input &FB_DISP_DDI )) && par->FlatPanel)) {fb_destroy_modedb (monB->modedb); monB =NULL ;
Quoted 5 lines · Antonino A. Daplas
Okay, I think I this should fix the dvi misdetection, and I think it should also fix the preferred timing of 1600x1200 even if both dsub and dvi are attached. Try the attached patch.
Not quite, but close...
With just dsub and no params, we get a perfect 1600x1200 (200x75) console
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600] i2c_adapter i2c-0: registered as adapter #0 i2c_adapter i2c-1: registered as adapter #1 i2c_adapter i2c-2: registered as adapter #2
nvidiafb: CRTC0 not found
nvidiafb: CRTC1 foundi2c_adapter i2c-0: master_xfer: with 2 msgs. i2c_adapter i2c-0: master_xfer: with 2 msgs. i2c_adapter i2c-0: master_xfer: with 2 msgs. i2c_adapter i2c-1: master_xfer: with 2 msgs.
nvidiafb: EDID found from BUS2
========================================
Display Information (EDID)
========================================
EDID Version 1.3
Manufacturer: IVM
Model: 4800
Serial#: 95
Year: 2001 Week 44
Monitor Name: iiyama
Monitor Name: AU4831D
Display Characteristics:
Monitor Operating Limits: From EDID
H: 24-80KHz V: 50-85Hz DCLK: 170MHz
Analog Display Input: Input Voltage - 0.700V/0.000V
Sync: Separate Composite
Max H-size in cm: 39
Max V-size in cm: 29
Gamma: 2.20
DPMS: Active yes, Suspend yes, Standby yes RGB Color Display
Chroma
RedX: 0.619 RedY: 0.340
GreenX: 0.279 GreenY: 0.600
BlueX: 0.140 BlueY: 0.090
WhiteX: 0.289 WhiteY: 0.300
First DETAILED Timing is preferred
Supported VESA Modes
720x400@70Hz
640x480@60Hz
640x480@67Hz
640x480@72Hz
640x480@75Hz
800x600@56Hz
800x600@60Hz
800x600@72Hz
800x600@75Hz
832x624@75Hz
1024x768@60Hz
1024x768@70Hz
1024x768@75Hz
1280x1024@75Hz
Manufacturer's mask: 0
Standard Timings
1600x1200@60Hz
1280x1024@60Hz
1280x1024@70Hz
1152x864@75Hz
1152x864@85Hz
1024x768@66Hz
1024x768@70Hz
1024x768@85Hz
Detailed Timings
162 MHz 1600 1664 1856 2160 1200 1201 1204 1250 +HSync +VSync========================================
nvidiafb: CRTC 0appears to have a CRT attached
nvidiafb: Using CRT on CRTC 0
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 200x75
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
With both dsub and dvi, another perfect 1600x1200 console. (first EDID truncated due to dmesg log not big enough; I can fix this if you need)
1024x768@60Hz
1024x768@70Hz
1024x768@75Hz
1280x1024@75Hz
1152x870@75Hz
Manufacturer's mask: 0
Standard Timings
1280x1024@60Hz
1024x819@85Hz
800x640@85Hz
640x512@85Hz
Detailed Timings
65 MHz 1024 1040 1104 1344 768 781 783 817 -HSync -VSync
162 MHz 1600 1664 1856 2160 1200 1201 1204 1250 +HSync +VSync========================================i2c_adapter i2c-1: master_xfer: with 2 msgs.
nvidiafb: EDID found from BUS2
========================================
Display Information (EDID)
========================================
EDID Version 1.3
Manufacturer: IVM
Model: 4800
Serial#: 95
Year: 2001 Week 44
Monitor Name: iiyama
Monitor Name: AU4831D
Display Characteristics:
Monitor Operating Limits: From EDID
H: 24-80KHz V: 50-85Hz DCLK: 170MHz
Analog Display Input: Input Voltage - 0.700V/0.000V
Sync: Separate Composite
Max H-size in cm: 39
Max V-size in cm: 29
Gamma: 2.20
DPMS: Active yes, Suspend yes, Standby yes RGB Color Display
Chroma
RedX: 0.619 RedY: 0.340
GreenX: 0.279 GreenY: 0.600
BlueX: 0.140 BlueY: 0.090
WhiteX: 0.289 WhiteY: 0.300
First DETAILED Timing is preferred
Supported VESA Modes
720x400@70Hz
640x480@60Hz
640x480@67Hz
640x480@72Hz
640x480@75Hz
800x600@56Hz
800x600@60Hz
800x600@72Hz
800x600@75Hz
832x624@75Hz
1024x768@60Hz
1024x768@70Hz
1024x768@75Hz
1280x1024@75Hz
Manufacturer's mask: 0
Standard Timings
1600x1200@60Hz
1280x1024@60Hz
1280x1024@70Hz
1152x864@75Hz
1152x864@85Hz
1024x768@66Hz
1024x768@70Hz
1024x768@85Hz
Detailed Timings
162 MHz 1600 1664 1856 2160 1200 1201 1204 1250 +HSync +VSync========================================
nvidiafb: CRTC 0appears to have a CRT attached
nvidiafb: Using CRT on CRTC 0
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 200x75
With dvi connection and no params, I get a fully working console, but at 1024x768 (128x48)
nvidiafb: nVidia device/chipset 10DE0250
nvidiafb: nVidia Corporation NV25 [GeForce4 Ti 4600] i2c_adapter i2c-0: registered as adapter #0 i2c_adapter i2c-1: registered as adapter #1 i2c_adapter i2c-2: registered as adapter #2
nvidiafb: CRTC0 not found
nvidiafb: CRTC1 not foundi2c_adapter i2c-0: master_xfer: with 2 msgs.
nvidiafb: EDID found from BUS1
========================================
Display Information (EDID)
========================================
EDID Version 1.3
Manufacturer: IVM
Model: 4800
Serial#: 1001
Year: 2002 Week 1
Monitor Name: iiyama
Display Characteristics:
Monitor Operating Limits: From EDID
H: 30-80KHz V: 56-85Hz DCLK: 170MHz
Digital Display Input
Sync: Serration on
Max H-size in cm: 39
Max V-size in cm: 29
Gamma: 2.20
DPMS: Active yes, Suspend yes, Standby yes RGB Color Display
Chroma
RedX: 0.619 RedY: 0.340
GreenX: 0.279 GreenY: 0.600
BlueX: 0.140 BlueY: 0.090
WhiteX: 0.289 WhiteY: 0.300
First DETAILED Timing is preferred
Supported VESA Modes
720x400@70Hz
640x480@60Hz
640x480@67Hz
640x480@72Hz
640x480@75Hz
800x600@56Hz
800x600@60Hz
800x600@72Hz
800x600@75Hz
832x624@75Hz
1024x768@60Hz
1024x768@70Hz
1024x768@75Hz
1280x1024@75Hz
1152x870@75Hz
Manufacturer's mask: 0
Standard Timings
1280x1024@60Hz
1024x819@85Hz
800x640@85Hz
640x512@85Hz
Detailed Timings
65 MHz 1024 1040 1104 1344 768 781 783 817 -HSync -VSync
162 MHz 1600 1664 1856 2160 1200 1201 1204 1250 +HSync +VSync========================================i2c_adapter i2c-1: master_xfer: with 2 msgs. i2c_adapter i2c-1: master_xfer: with 2 msgs. i2c_adapter i2c-1: master_xfer: with 2 msgs.
nvidiafb: CRTC 1 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 1
Panel size is 1024 x 768
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 128x48
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
With DVI and video=nvidiafb:1600x1200-32@60 I get a kernel hang like this (copied by hand and shortened in places)
Decompressing linux
Bootdata ok (command line is root=... video=nvidiafb:1600x1200-32@60) Linux version 2.6.10-rc2 ...
BIOS-provided physical map
Scanning NUMA topology in Northbridge 24
Number of nodes 2 (10010)
Node 0 using interleaving mode 1/0
No NUMA configuration found
and thats as far as it gets.
Getting closer by the hour :)
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 8 lines · Andrew Walrond
Quoted 3 lines · Antonino A. Daplas
Okay, I think I this should fix the dvi misdetection, and I think it should also fix the preferred timing of 1600x1200 even if both dsub and dvi are attached. Try the attached patch.
Not quite, but close...
With just dsub and no params, we get a perfect 1600x1200 (200x75) console
Great.
Quoted 2 lines
With both dsub and dvi, another perfect 1600x1200 console. (first EDID
Great :-)
Quoted 1 line
truncated due to dmesg log not big enough; I can fix this if you need)
No need. The first EDID block is for dvi, the second is for dsub.
Quoted 3 lines
With dvi connection and no params, I get a fully working console, but at 1024x768 (128x48)
Okay, this is what I wanted to fix. Note that the preferred timing when dvi is attached is 1024x768. When dsub, it's 1600x1200. You see this in your dmesg "First DETAILED Timing is preferred", and without options the first detailed timing block will be used.
Quoted 3 lines
With DVI and video=nvidiafb:1600x1200-32@60 I get a kernel hang like this (copied by hand and shortened in places)
Okay, this is expected. Since the panel size is only 1024x768, using a mode of 1600x1200 failed. So the framebuffer exited initialization with an error which caused an oops.
Note, that you may not be able to force resolutions > panel size. You can try, all you need to do is remove this code in drivers/video/nvidia/nvidia.c:nvidiafb_check_var:
if (par->fpWidth && par->fpHeight && (par->fpWidth < var->xres || par->fpHeight < var->yres)) return -EINVAL;
But I don't know if your display can tolerate that.
For now, I'll add checks during the initializatiion that will refuse modes greater than the panel size.
Unfortunately, without any docs on how to adjust the default panel size, you will be limited to this resolution only.
Does vesafb work in x86_64? If it does you can add this in your commandline:
vga=0x307
0x306 is the code for 1280x1024, see Documentation/fb/vesafb.txt.
Then check your dmesg if the panel size also changed. If it did, then you can do this:
vga=0x307 video=nvidiafb:1280x1024@60.
Quoted 11 lines
Decompressing linux
Bootdata ok (command line is root=... video=nvidiafb:1600x1200-32@60) Linux version 2.6.10-rc2 ...
BIOS-provided physical map
Scanning NUMA topology in Northbridge 24
Number of nodes 2 (10010)
Node 0 using interleaving mode 1/0
No NUMA configuration found
Quoted 3 lines
and thats as far as it gets.
Getting closer by the hour :)
Yes.
Tony
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 10 lines · Antonino A. Daplas
Quoted 2 lines · Andrew Walrond
With dvi connection and no params, I get a fully working console, but at 1024x768 (128x48)
Okay, this is what I wanted to fix. Note that the preferred timing when dvi is attached is 1024x768. When dsub, it's 1600x1200. You see this in your dmesg "First DETAILED Timing is preferred", and without options the first detailed timing block will be used.
Can you explain further...
This is £1000 of TFT LCD panel with 1600x1200 _physical_ pixels. The panel size is 1600x1200, not 1024x768. So where is this erroneous value coming from?
Quoted 3 lines
Note, that you may not be able to force resolutions > panel size. You can try, all you need to do is remove this code in drivers/video/nvidia/nvidia.c:nvidiafb_check_var:
I don't want to force illegal modes, I'd rather just have the real panel size reported, then all modes would be legal :(
I wonder; does DVI have any recommended limits on bandwidth, resulting in a max resolution with dvi of 1024x768? Something at the back of my mind is triggering bells here. Anyone know? I guess google is my friend ;)
I'll try the other things you mention and report back later.
Thanks for your efforts this far!
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 5 lines · Andrew Walrond
I wonder; does DVI have any recommended limits on bandwidth, resulting in a max resolution with dvi of 1024x768? Something at the back of my mind is triggering bells here. Anyone know? I guess google is my friend ;)
Further to this, I found
"single link DVI supports a maximum bandwidth of 165 MHz (1920x1080 at 60 Hz,
1280x1024 at 85Hz)"
Here
http://www.bnoack.com/index.html?http&&&www.bnoack.com/data/DVI-conn.html
So it seems it's not a fundamental limit of dvi.
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 4 lines · Antonino A. Daplas
For now, I'll add checks during the initializatiion that will refuse modes greater than the panel size.
Even if they are listed in the list of supported modes and detailed modes in the EDID?
My (dvi) edid lists valid modes of
First DETAILED Timing is preferred
Supported VESA Modes
720x400@70Hz
640x480@60Hz
640x480@67Hz
640x480@72Hz
640x480@75Hz
800x600@56Hz
800x600@60Hz
800x600@72Hz
800x600@75Hz
832x624@75Hz
1024x768@60Hz
1024x768@70Hz
1024x768@75Hz
1280x1024@75Hz
1152x870@75Hz
Manufacturer's mask: 0
Standard Timings
1280x1024@60Hz
1024x819@85Hz
800x640@85Hz
640x512@85Hz
Detailed Timings
65 MHz 1024 1040 1104 1344 768 781 783 817 -HSync -VSync
162 MHz 1600 1664 1856 2160 1200 1201 1204 1250 +HSync +VSyncOk, the first detailed mode is preferred, but the second is equal;y supported.
Quoted 2 lines
Unfortunately, without any docs on how to adjust the default panel size, you will be limited to this resolution only.
I'm a bit confused now. On one hand you seem to be testing for and rejecting modes > panel size in the driver; But here I infer that the hardware won't accept these modes unless we can somehow reset the panel size first?
Quoted 4 lines
Does vesafb work in
x86_64? If it does you can add this in your commandline:
Quoted 8 lines
vga=0x307
0x306is the code for 1280x1024, seeDocumentation/fb/vesafb.txt.Then check your dmesg if the panel size also changed. If it did, then you can do this:
vga=0x307 video=nvidiafb:1280x1024@60.
And this is just a possible means of tricking the hardware into adjusting the panel size for us?
Sorry about all the questions, but I want to understand so I can investigate further. Its frustrating having massively expensive screens with the latest digital dvi cables behaving like a cheap 1024x768 monitor ;)
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 8 lines · Andrew Walrond
Quoted 7 lines · Antonino A. Daplas
Does vesafb work in
x86_64? If it does you can add this in your commandline:vga=0x307
0x306is the code for 1280x1024, seeDocumentation/fb/vesafb.txt.
Quoted 7 lines
Quoted 4 lines
Then check your dmesg if the panel size also changed. If it did, then you can do this:
vga=0x307 video=nvidiafb:1280x1024@60.
And this is just a possible means of tricking the hardware into adjusting the panel size for us?
No, this will use the BIOS to switch to a 1280x1024 mode before starting the kernel. Remember that Tony told you the panel size is set up by the BIOS. If that's really the case, it should help.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 5 lines · Geert Uytterhoeven
No, this will use the BIOS to switch to a 1280x1024 mode before starting the kernel. Remember that Tony told you the panel size is set up by the BIOS. If that's really the case, it should help.
Hi Geert,
I got that. I guess I'm asking whether the problem is self imposed by our driver by rejecting modes > panel size. Ie could we just ignore the panel size and allow any EDID supported modes?
Or, is it the video card that in any case would not allow us to set modes > panel size?
Chad explains it well in his email.
I guess I need to start reading the code :)
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 4 lines · Andrew Walrond
Quoted 3 lines · Geert Uytterhoeven
No, this will use the BIOS to switch to a 1280x1024 mode before starting the kernel. Remember that Tony told you the panel size is set up by the BIOS. If that's really the case, it should help.
When the input is digital, it seems that there are other registers that are programmed besides that of the CRTC registers. During the setup, some of the registers are actually read by the code, and these are the panel width and height. The rest of the registers we don't know about (no documentation).
So the safe approach is to accept what the BIOS programmed for us, use scaling for res < panel size, and reject all res > panel size. If we know how to program the rest of the registers, then this should be no problem.
Therefore, using vesafb to pre-program the registers for higher resolutions means that the BIOS can setup the undocumented registers for us so we can have a limit greater than 1024x768.
If the input is analog, then all that is required are the CRTC registers. The panel size is actually not read in analog input. And since we know what to do with CRTC registers, even if the preferred mode is 1024x768 but the EDID tells us that it can support timings other than that, we can still use that mode.
In short, the main difference is the type of input and lack of documentation.
Quoted 6 lines
Hi Geert,
I got that. I guess I'm asking whether the problem is self imposed by our driver by rejecting modes > panel size. Ie could we just ignore the panel size and allow any EDID supported modes?
As I've said, you can try to ignore the registers pre-programmed by the BIOS, but I don't know the side effects of this.
Quoted 2 lines
Or, is it the video card that in any case would not allow us to set modes > panel size?
No, it's the undocumented registers that prevents us from using modes > panel size.
Quoted 2 lines
Chad explains it well in his email.
Yes, what Chad said is true if the input is analog. It's a different story if the input is digital.
Anyway, attached is a patch that prevents an oops if the boot mode is illegal. It will still limit your resolution to panel size if input is digital.
Tony
BTW: How does X behave if the input is digital. Does it accept modes greater than panel size? If it does, then the documentation is actually there. I'll look at the X code again. And I'll probably do some googling on this. If you happen to encounter any kind of programming info about this, let me know also.
Thanks for testing.
drivers/video/nvidia/nvidia.c +13 -10
@@ -1101,15 +1101,16 @@ | FBINFO_HWACCEL_YPAN |FBINFO_MISC_MODESWITCHLATE ; - info->var = nvidiafb_default_var; -if (mode_option) { -fb_find_mode (&info->var, info, mode_option, specs->modedb, - specs->modedb_len,NULL ,8 ); - }else if (specs->modedb !=NULL ) { +fb_videomode_to_modelist (info->monspecs.modedb, + info->monspecs.modedb_len, + &info->modelist); +fb_var_to_videomode (&modedb, &nvidiafb_default_var); + +if (specs->modedb !=NULL ) {/* get preferred timing */ if (specs->misc &FB_MISC_1ST_DETAIL ) {int i; - +for (i =0 ; i < specs->modedb_len; i++) {if (specs->modedb[i].flag &FB_MODE_IS_FIRST ) { modedb = specs->modedb[i];
@@ -1121,16 +1122,18 @@ modedb = specs->modedb[0 ]; } info->var.bits_per_pixel =8 ; -fb_videomode_to_var (&info->var, &modedb); +fb_videomode_to_var (&nvidiafb_default_var, &modedb); } +if (mode_option) +fb_find_mode (&nvidiafb_default_var, info, mode_option, + specs->modedb, specs->modedb_len, &modedb,8 ); + + info->var = nvidiafb_default_var; info->fix.visual = (info->var.bits_per_pixel ==8 ) ?FB_VISUAL_PSEUDOCOLOR :FB_VISUAL_DIRECTCOLOR ; info->pseudo_palette = par->pseudo_palette;fb_alloc_cmap (&info->cmap,256 ,0 ); -fb_videomode_to_modelist (info->monspecs.modedb, - info->monspecs.modedb_len, - &info->modelist);fb_destroy_modedb (info->monspecs.modedb); info->monspecs.modedb =NULL ;
Hi Tony,
Thanks for taking the time to explain; there is a lot of knowledge in your post that it would have taken an age to acquire from scratch.
Quoted 7 lines · Antonino A. Daplas
BTW: How does X behave if the input is digital. Does it accept modes greater than panel size? If it does, then the documentation is actually there. I'll look at the X code again. And I'll probably do some googling on this. If you happen to encounter any kind of programming info about this, let me know also.
I'll try all the stuff you has suggested and report back some results tomorrow.
Quoted 1 line
Thanks for testing.
Not an issue. I want the linux frame buffer to work well on _all_ modern graphics hardware for my own selfish reasons ;)
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 7 lines · Antonino A. Daplas
BTW: How does X behave if the input is digital. Does it accept modes greater than panel size? If it does, then the documentation is actually there. I'll look at the X code again. And I'll probably do some googling on this. If you happen to encounter any kind of programming info about this, let me know also.
Just tried this; No joy. The screen just goes blank. I think we need to find out about those undocumented registers.
I'll try the vesafb trick next.
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
Quoted 12 lines · Andrew Walrond
Quoted 4 lines · Antonino A. Daplas
For now, I'll add checks during the initializatiion that will refuse modes greater than the panel size.
Even if they are listed in the list of supported modes and detailed modes in the EDID?
My (dvi) edid lists valid modes of
First DETAILED Timing is preferred
Supported VESA Modes
...
Quoted 5 lines
Detailed Timings
65 MHz 1024 1040 1104 1344 768 781 783 817 -HSync -VSync
162 MHz 1600 1664 1856 2160 1200 1201 1204 1250 +HSync +VSyncQuoted 9 lines
Ok, the first detailed mode is preferred, but the second is equal;y supported.
Quoted 2 lines
Unfortunately, without any docs on how to adjust the default panel size, you will be limited to this resolution only.
I'm a bit confused now. On one hand you seem to be testing for and rejecting modes > panel size in the driver; But here I infer that the hardware won't accept these modes unless we can somehow reset the panel size first?
It sounds to me like the driver is assuming that the preferred mode is the maximum size that the panel can display. In your case, this is wrong, since the panel is claiming 1024x768 as a preferred mode. If that assumption were fixed, it should be able to pull 1600x1200 out of the EDID block and run fine with it. You'd still need a video=1600x1200 to override the "preferred" mode, but at least you'd have it.
AFAIK, when doing I2C and reading the EDID block, the driver is bypassing any BIOS, so there should be no need to fiddle with vga=.
Someone else will have to write the patch, though, since I don't have an nvidia card to test on.
Signature · 11 lines
...: Chad Daelhousen :......... "The Soviet Union tried to restrict academic freedom along national lines, and it didn't do the country any good. We should try not to follow in those footsteps." --Bruce Schneier, CRYPTO-GRAM, Oct. 2004 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
Quoted 4 lines · Antonino A. Daplas
Does vesafb work in
x86_64? If it does you can add this in your commandline:
Quoted 9 lines
vga=0x307
0x306is the code for 1280x1024, seeDocumentation/fb/vesafb.txt.Then check your dmesg if the panel size also changed. If it did, then you can do this:
vga=0x307 video=nvidiafb:1280x1024@60.
If I did this right, it doesn't help. I built in the vesafb as well as your new nvidafb, then booted with the commandline
vga=0x31b video=nvidiafb:1280x1024-32@60
It looks like the nvidafb got the first bite of the cherry:
...
nvidiafb: CRTC 1 is currently programmed for DFP
nvidiafb: Using DFP on CRTC 1
Panel size is 1024 x 768
nvidiafb: MTRR set to ON
Console: switching to colour frame buffer device 128x48
nvidiafb: PCI nVidia NV25 framebuffer (128MB @ 0xE0000000)
vesafb: probe of vesafb0 failed with error -6
...
Do you know if the nvidia developers lurk on lkml? I seem to remember somebody saying that they do. If so, is it worth asking them for a bit of help with this? I know they're not about to open source their binary driver due to ip license problems, but the information we require to overcome this problem in the fb driver is probably quite trivial in nature. I assume they have been forthcoming in the past wrt the open source X driver.
What do you think? Worth asking?
Andrew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/