2007-05-24 05:37:46

by Dmitry Torokhov

[permalink] [raw]
Subject: Nvidiafb issues on Inspiron 8100

Hi Antonino,

I am having the following issues on my Dell Inspiron 8100. They are not
new but I just got around to report them.

With CONFIG_FB_NVIDIA_I2C I get 1600x1200 resolution but pixels
"swarming" and it is unuseable. There are following messages in
dmesg (note complaints from i2c):

May 24 00:53:29 core kernel: [ 0.000000] Kernel command line: ro root=LABEL=/ video=nvidiafb:
1600x1200MR atkbd.softrepeat selinux=0
May 24 00:53:29 core kernel: [ 12.876534] nvidiafb_setup START
May 24 00:53:29 core kernel: [ 12.876608] nvidiafb_setup END
May 24 00:53:29 core kernel: [ 12.877920] nvidiafb_probe START
May 24 00:53:29 core kernel: [ 12.880624] nvidiafb: Device ID: 10de0112
May 24 00:53:29 core kernel: [ 13.105685] nvidiafb: EDID found from BUS1
May 24 00:53:29 core kernel: [ 13.182737] i2c-adapter i2c-1: unable to read EDID block.
May 24 00:53:29 core kernel: [ 13.262611] Switched to high resolution mode on CPU 0
May 24 00:53:29 core kernel: [ 13.302898] i2c-adapter i2c-1: unable to read EDID block.
May 24 00:53:29 core kernel: [ 13.422871] i2c-adapter i2c-1: unable to read EDID block.
May 24 00:53:29 core kernel: [ 13.465822] nvidiafb: CRTC 1 is currently programmed for DFP
May 24 00:53:29 core kernel: [ 13.465892] nvidiafb: Using DFP on CRTC 1
May 24 00:53:29 core kernel: [ 13.465960] nvidiafb: Panel size is 1600 x 1200
May 24 00:53:29 core kernel: [ 13.466025] nvidiafb: Panel is LVDS
May 24 00:53:29 core kernel: [ 13.466982] nvidiafb: MTRR set to ON
May 24 00:53:29 core kernel: [ 13.467060] nvidia_set_fbinfo START
May 24 00:53:29 core kernel: [ 13.467135] fbcvt: 1600x1200@60: CVT Name - 1.920M3-R
May 24 00:53:29 core kernel: [ 13.467204] nvidiafb_check_var START
May 24 00:53:29 core kernel: [ 13.467266] nvidiafb_check_var END
May 24 00:53:29 core kernel: [ 13.467332] nvidia_set_fbinfo END
May 24 00:53:29 core kernel: [ 13.467391] nvidiafb_check_var START
May 24 00:53:29 core kernel: [ 13.467452] nvidiafb_check_var END
May 24 00:53:29 core kernel: [ 13.467513] nvidia_save_vga START
May 24 00:53:29 core kernel: [ 13.467846] nvidia_save_vga END
May 24 00:53:29 core kernel: [ 13.613205] nvidia_save_vga START
May 24 00:53:29 core kernel: [ 13.613459] nvidia_save_vga END
May 24 00:53:29 core kernel: [ 13.630281] nvidiafb_set_par START
May 24 00:53:29 core kernel: [ 13.630293] nvidiafb: Flat panel dithering disabled
May 24 00:53:29 core kernel: [ 13.630335] nvidia_write_regs START
May 24 00:53:29 core kernel: [ 13.630523] nvidia_write_regs END
May 24 00:53:29 core kernel: [ 13.630540] nvidiafb_set_par END
May 24 00:53:29 core kernel: [ 13.630593] nvidiafb_setcolreg START
May 24 00:53:29 core kernel: [ 13.630599] nvidiafb_setcolreg END
....
May 24 00:53:29 core kernel: [ 13.636561] Console: switching to colour frame buffer device 200x75
....
May 24 00:53:29 core kernel: [ 13.728536] nvidiafb: PCI nVidia NV11 framebuffer (32MB @ 0xE0000000)
May 24 00:53:29 core kernel: [ 13.729568] nvidiafb_probe END

If I disable CONFIG_FB_NVIDIA_I2C and enable CONFIG_FIRMWARE_EDID then
it looks like I have a virtual screen with large font extending past
physical. If I do:

fbset 1024x768-60
fbset 1600x1200-60

everything is back to normal.

And below a cosmetic patch for you...

Thank you.

--
Dmitry

nvidiafb: tweak wording on module parameters descriptions

Signed-off-by: Dmitry Torokhov <[email protected]>
---

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

Index: work/drivers/video/nvidia/nvidia.c
===================================================================
--- work.orig/drivers/video/nvidia/nvidia.c
+++ work/drivers/video/nvidia/nvidia.c
@@ -1562,11 +1562,11 @@ MODULE_PARM_DESC(noaccel,
"(default=0)");
module_param(noscale, int, 0);
MODULE_PARM_DESC(noscale,
- "Disables screen scaleing. (0 or 1=disable) "
+ "Disables screen scaling. (0 or 1=disable) "
"(default=0, do scaling)");
module_param(paneltweak, int, 0);
MODULE_PARM_DESC(paneltweak,
- "Tweak display settings for flatpanels. "
+ "Tweak display settings for flat panels. "
"(default=0, no tweaks)");
module_param(forceCRTC, int, 0);
MODULE_PARM_DESC(forceCRTC,
@@ -1574,13 +1574,12 @@ MODULE_PARM_DESC(forceCRTC,
"fails. (0 or 1) (default=autodetect)");
module_param(vram, int, 0);
MODULE_PARM_DESC(vram,
- "amount of framebuffer memory to remap in MiB"
+ "Amount of framebuffer memory to remap in MiB"
"(default=0 - remap entire memory)");
module_param(mode_option, charp, 0);
MODULE_PARM_DESC(mode_option, "Specify initial video mode");
module_param(bpp, int, 0);
-MODULE_PARM_DESC(bpp, "pixel width in bits"
- "(default=8)");
+MODULE_PARM_DESC(bpp, "Pixel width in bits (default=8)");
#ifdef CONFIG_MTRR
module_param(nomtrr, bool, 0);
MODULE_PARM_DESC(nomtrr, "Disables MTRR support (0 or 1=disabled) "


2007-05-25 21:42:19

by Antonino A. Daplas

[permalink] [raw]
Subject: Re: Nvidiafb issues on Inspiron 8100

On Thu, 2007-05-24 at 01:37 -0400, Dmitry Torokhov wrote:
> Hi Antonino,
>
> I am having the following issues on my Dell Inspiron 8100. They are not
> new but I just got around to report them.
>
> With CONFIG_FB_NVIDIA_I2C I get 1600x1200 resolution but pixels
> "swarming" and it is unuseable. There are following messages in
> dmesg (note complaints from i2c):

Looks like an EDID block not accessible by i2c and only available
through the BIOS. And it's probably broken too.

Can you #define DEBUG in drivers/video/fbmon.c, enable
CONFIG_FIRMWARE_EDID, the post your dmesg?

For now, the best you can do is disable i2c support and add:

video=nvidiafb:1600x1200@60

in your boot line.

Tony



2007-05-29 20:12:45

by Dmitry Torokhov

[permalink] [raw]
Subject: Re: Nvidiafb issues on Inspiron 8100

On 5/25/07, Antonino A. Daplas <[email protected]> wrote:
> On Thu, 2007-05-24 at 01:37 -0400, Dmitry Torokhov wrote:
> > Hi Antonino,
> >
> > I am having the following issues on my Dell Inspiron 8100. They are not
> > new but I just got around to report them.
> >
> > With CONFIG_FB_NVIDIA_I2C I get 1600x1200 resolution but pixels
> > "swarming" and it is unuseable. There are following messages in
> > dmesg (note complaints from i2c):
>
> Looks like an EDID block not accessible by i2c and only available
> through the BIOS. And it's probably broken too.
>
> Can you #define DEBUG in drivers/video/fbmon.c, enable
> CONFIG_FIRMWARE_EDID, the post your dmesg?
>
> For now, the best you can do is disable i2c support and add:
>
> video=nvidiafb:1600x1200@60
>
> in your boot line.

You know, I disabled Nvidia's DDC stuff and enabled firmware EDID
again and it started working fine, even without
video=nvidiafb:1600x1200MR on the command line that I had for a long
time.

So it works fine now. Would you oppode adding dmi check for inspiron
8100 to automatically disable nvidia i2c support at runtime?

--
Dmitry

2007-05-29 21:47:00

by Antonino A. Daplas

[permalink] [raw]
Subject: Re: Nvidiafb issues on Inspiron 8100

On Tue, 2007-05-29 at 16:12 -0400, Dmitry Torokhov wrote:
> On 5/25/07, Antonino A. Daplas <[email protected]> wrote:
> > On Thu, 2007-05-24 at 01:37 -0400, Dmitry Torokhov wrote:
> > > Hi Antonino,
> > >

> You know, I disabled Nvidia's DDC stuff and enabled firmware EDID
> again and it started working fine, even without
> video=nvidiafb:1600x1200MR on the command line that I had for a long
> time.
>
> So it works fine now. Would you oppode adding dmi check for inspiron
> 8100 to automatically disable nvidia i2c support at runtime?

I have no problems with that.

Tony