public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Modular i810fb broken, partial fix
@ 2005-10-07 13:47 Bernhard Rosenkraenzer
  2005-10-08 10:39 ` Antonino A. Daplas
  0 siblings, 1 reply; 14+ messages in thread
From: Bernhard Rosenkraenzer @ 2005-10-07 13:47 UTC (permalink / raw)
  To: adaplas, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 555 bytes --]

Hi,
i810fb as a module is broken (checked with 2.6.13-mm3 and 2.6.14-rc2-mm1).
It compiles, but the module doesn't actually load because the kernel doesn't 
recognize the hardware (the MODULE_DEVICE_TABLE statement is missing).

The attached patch fixes this.

However, the resulting module still doesn't work.
It loads, and then garbles the display (black screen with a couple of yellow 
lines, no matter what is written into the framebuffer device).

Related .config entries:
CONFIG_I2C_I810=m
CONFIG_FB_I810=m
CONFIG_FB_I810_GTF=y
CONFIG_FB_I810_I2C=y

[-- Attachment #2: 2.6.13-mm3-fix-i810fb.patch --]
[-- Type: text/x-diff, Size: 348 bytes --]

--- linux-2.6.13/drivers/video/i810/i810_main.c.ark	2005-09-13 00:31:37.000000000 +0200
+++ linux-2.6.13/drivers/video/i810/i810_main.c	2005-09-13 00:31:54.000000000 +0200
@@ -83,6 +83,8 @@
 	{ 0 },
 };
 
+MODULE_DEVICE_TABLE(pci, i810fb_pci_tbl);
+
 static struct pci_driver i810fb_driver = {
 	.name     =	"i810fb",
 	.id_table =	i810fb_pci_tbl,

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

* Re: Modular i810fb broken, partial fix
  2005-10-07 13:47 Modular i810fb broken, partial fix Bernhard Rosenkraenzer
@ 2005-10-08 10:39 ` Antonino A. Daplas
  2005-10-08 11:02   ` Bernhard Rosenkraenzer
                     ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Antonino A. Daplas @ 2005-10-08 10:39 UTC (permalink / raw)
  To: Bernhard Rosenkraenzer; +Cc: adaplas, linux-kernel

Bernhard Rosenkraenzer wrote:
> Hi,
> i810fb as a module is broken (checked with 2.6.13-mm3 and 2.6.14-rc2-mm1).
> It compiles, but the module doesn't actually load because the kernel doesn't 
> recognize the hardware (the MODULE_DEVICE_TABLE statement is missing).


> 
> The attached patch fixes this.
> 
> However, the resulting module still doesn't work.
> It loads, and then garbles the display (black screen with a couple of yellow 
> lines, no matter what is written into the framebuffer device).

Did you compile CONFIG_FRAMEBUFFER_CONSOLE statically, or did a modprobe fbcon?
Does i810fb work if compiled statically?

Tony

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

* Re: Modular i810fb broken, partial fix
  2005-10-08 10:39 ` Antonino A. Daplas
@ 2005-10-08 11:02   ` Bernhard Rosenkraenzer
  2005-10-08 11:31   ` Giuseppe Bilotta
  2005-10-08 11:56   ` Manuel Lauss
  2 siblings, 0 replies; 14+ messages in thread
From: Bernhard Rosenkraenzer @ 2005-10-08 11:02 UTC (permalink / raw)
  To: Antonino A. Daplas; +Cc: adaplas, linux-kernel

On Saturday, 8. October 2005 12:39, Antonino A. Daplas wrote:
> Did you compile CONFIG_FRAMEBUFFER_CONSOLE statically, or did a modprobe
> fbcon? Does i810fb work if compiled statically?

CONFIG_FRAMEBUFFER_CONSOLE is compiled statically. Can't tell if it works if 
compiled statically because I don't have the hardware -- I'll try to get the 
user who reported this to check though.

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

* Re: Modular i810fb broken, partial fix
  2005-10-08 10:39 ` Antonino A. Daplas
  2005-10-08 11:02   ` Bernhard Rosenkraenzer
@ 2005-10-08 11:31   ` Giuseppe Bilotta
  2005-10-08 13:03     ` Antonino A. Daplas
  2005-10-08 11:56   ` Manuel Lauss
  2 siblings, 1 reply; 14+ messages in thread
From: Giuseppe Bilotta @ 2005-10-08 11:31 UTC (permalink / raw)
  To: linux-kernel

On Sat, 08 Oct 2005 18:39:35 +0800, Antonino A. Daplas wrote:

> Bernhard Rosenkraenzer wrote:
>> Hi,
>> i810fb as a module is broken (checked with 2.6.13-mm3 and 2.6.14-rc2-mm1).
>> It compiles, but the module doesn't actually load because the kernel doesn't 
>> recognize the hardware (the MODULE_DEVICE_TABLE statement is missing).
> 
>> 
>> The attached patch fixes this.
>> 
>> However, the resulting module still doesn't work.
>> It loads, and then garbles the display (black screen with a couple of yellow 
>> lines, no matter what is written into the framebuffer device).
> 
> Did you compile CONFIG_FRAMEBUFFER_CONSOLE statically, or did a modprobe fbcon?
> Does i810fb work if compiled statically?

Since this is *really* coming out often: is there a specific reason
why the fb modules do not depend on fbcon?

-- 
Giuseppe "Oblomov" Bilotta

"They that can give up essential liberty to obtain
a little temporary safety deserve neither liberty
nor safety." Benjamin Franklin


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

* Re: Modular i810fb broken, partial fix
  2005-10-08 10:39 ` Antonino A. Daplas
  2005-10-08 11:02   ` Bernhard Rosenkraenzer
  2005-10-08 11:31   ` Giuseppe Bilotta
@ 2005-10-08 11:56   ` Manuel Lauss
  2005-10-08 13:03     ` Antonino A. Daplas
  2 siblings, 1 reply; 14+ messages in thread
From: Manuel Lauss @ 2005-10-08 11:56 UTC (permalink / raw)
  To: Antonino A. Daplas; +Cc: Bernhard Rosenkraenzer, adaplas, linux-kernel

Antonino A. Daplas wrote:
> Bernhard Rosenkraenzer wrote:
> 
>>Hi,
>>i810fb as a module is broken (checked with 2.6.13-mm3 and 2.6.14-rc2-mm1).
>>It compiles, but the module doesn't actually load because the kernel doesn't 
>>recognize the hardware (the MODULE_DEVICE_TABLE statement is missing).
> 
> 
> 
>>The attached patch fixes this.
>>
>>However, the resulting module still doesn't work.
>>It loads, and then garbles the display (black screen with a couple of yellow 
>>lines, no matter what is written into the framebuffer device).
> 
> 
> Did you compile CONFIG_FRAMEBUFFER_CONSOLE statically, or did a modprobe fbcon?
> Does i810fb work if compiled statically?

I tried the module on my i815 laptop, after modprobe the module does nothing.
The call to pci_register_driver() returns 0, and thats it; the probe function
does not get called. Same thing with Bernhard's patch applied. No problems
when compiled-in. Kernel 2.6.14-rc2-mm1, AGP compiled in, no DRM.

thx,

-- 
  Manuel Lauss.

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

* Re: Modular i810fb broken, partial fix
  2005-10-08 11:31   ` Giuseppe Bilotta
@ 2005-10-08 13:03     ` Antonino A. Daplas
  2005-10-08 14:51       ` Giuseppe Bilotta
  0 siblings, 1 reply; 14+ messages in thread
From: Antonino A. Daplas @ 2005-10-08 13:03 UTC (permalink / raw)
  To: Giuseppe Bilotta; +Cc: linux-kernel

Giuseppe Bilotta wrote:
> On Sat, 08 Oct 2005 18:39:35 +0800, Antonino A. Daplas wrote:
> 
>> Bernhard Rosenkraenzer wrote:
>>> Hi,
>>> i810fb as a module is broken (checked with 2.6.13-mm3 and 2.6.14-rc2-mm1).
>>> It compiles, but the module doesn't actually load because the kernel doesn't 
>>> recognize the hardware (the MODULE_DEVICE_TABLE statement is missing).
>>> The attached patch fixes this.
>>>
>>> However, the resulting module still doesn't work.
>>> It loads, and then garbles the display (black screen with a couple of yellow 
>>> lines, no matter what is written into the framebuffer device).
>> Did you compile CONFIG_FRAMEBUFFER_CONSOLE statically, or did a modprobe fbcon?
>> Does i810fb work if compiled statically?
> 
> Since this is *really* coming out often: is there a specific reason
> why the fb modules do not depend on fbcon?
> 

Some need fbdev only, without fbcon, ie, embedded.

Tony

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

* Re: Modular i810fb broken, partial fix
  2005-10-08 11:56   ` Manuel Lauss
@ 2005-10-08 13:03     ` Antonino A. Daplas
  2005-10-08 15:30       ` Manuel Lauss
  0 siblings, 1 reply; 14+ messages in thread
From: Antonino A. Daplas @ 2005-10-08 13:03 UTC (permalink / raw)
  To: Manuel Lauss
  Cc: Antonino A. Daplas, Bernhard Rosenkraenzer, adaplas, linux-kernel

Manuel Lauss wrote:
> Antonino A. Daplas wrote:
>> Bernhard Rosenkraenzer wrote:
>>
>>> Hi,
>>> i810fb as a module is broken (checked with 2.6.13-mm3 and
>>> 2.6.14-rc2-mm1).
>>> It compiles, but the module doesn't actually load because the kernel
>>> doesn't recognize the hardware (the MODULE_DEVICE_TABLE statement is
>>> missing).
>>
>>
>>
>>> The attached patch fixes this.
>>>
>>> However, the resulting module still doesn't work.
>>> It loads, and then garbles the display (black screen with a couple of
>>> yellow lines, no matter what is written into the framebuffer device).
>>
>>
>> Did you compile CONFIG_FRAMEBUFFER_CONSOLE statically, or did a
>> modprobe fbcon?
>> Does i810fb work if compiled statically?
> 
> I tried the module on my i815 laptop, after modprobe the module does
> nothing.
> The call to pci_register_driver() returns 0, and thats it; the probe
> function
> does not get called. Same thing with Bernhard's patch applied. No problems
> when compiled-in. Kernel 2.6.14-rc2-mm1, AGP compiled in, no DRM.

That's weird.  Can you find out why the probe function is not called? Can
you trace the pci_register_driver call starting in drivers/pci/pci-driver.c, then
in drivers/base/*.c?

(Or you can #define DEBUG somewhere, perhaps in include/linux/device.h?)
 
Tony 

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

* Re: Modular i810fb broken, partial fix
  2005-10-08 13:03     ` Antonino A. Daplas
@ 2005-10-08 14:51       ` Giuseppe Bilotta
  2005-10-08 21:22         ` Antonino A. Daplas
  0 siblings, 1 reply; 14+ messages in thread
From: Giuseppe Bilotta @ 2005-10-08 14:51 UTC (permalink / raw)
  To: linux-kernel

On Sat, 08 Oct 2005 21:03:15 +0800, Antonino A. Daplas wrote:

> Giuseppe Bilotta wrote:
>> On Sat, 08 Oct 2005 18:39:35 +0800, Antonino A. Daplas wrote:
>> 
>>> Bernhard Rosenkraenzer wrote:
>>>> Hi,
>>>> i810fb as a module is broken (checked with 2.6.13-mm3 and 2.6.14-rc2-mm1).
>>>> It compiles, but the module doesn't actually load because the kernel doesn't 
>>>> recognize the hardware (the MODULE_DEVICE_TABLE statement is missing).
>>>> The attached patch fixes this.
>>>>
>>>> However, the resulting module still doesn't work.
>>>> It loads, and then garbles the display (black screen with a couple of yellow 
>>>> lines, no matter what is written into the framebuffer device).
>>> Did you compile CONFIG_FRAMEBUFFER_CONSOLE statically, or did a modprobe fbcon?
>>> Does i810fb work if compiled statically?
>> 
>> Since this is *really* coming out often: is there a specific reason
>> why the fb modules do not depend on fbcon?
>> 
> 
> Some need fbdev only, without fbcon, ie, embedded.

And does fbcon make sense *without* fbdevs?

-- 
Giuseppe "Oblomov" Bilotta

"Da grande lotterò per la pace"
"A me me la compra il mio babbo"
(Altan)
("When I grow up, I will fight for peace"
 "I'll have my daddy buy it for me")


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

* Re: Modular i810fb broken, partial fix
  2005-10-08 13:03     ` Antonino A. Daplas
@ 2005-10-08 15:30       ` Manuel Lauss
  2005-10-09 16:48         ` Bernhard Rosenkraenzer
  0 siblings, 1 reply; 14+ messages in thread
From: Manuel Lauss @ 2005-10-08 15:30 UTC (permalink / raw)
  To: Antonino A. Daplas; +Cc: Bernhard Rosenkraenzer, linux-kernel

Antonino A. Daplas wrote:
> Manuel Lauss wrote:
>>I tried the module on my i815 laptop, after modprobe the module does
>>nothing.
>>The call to pci_register_driver() returns 0, and thats it; the probe
>>function
>>does not get called. Same thing with Bernhard's patch applied. No problems
>>when compiled-in. Kernel 2.6.14-rc2-mm1, AGP compiled in, no DRM.
> 
> 
> That's weird.  Can you find out why the probe function is not called? Can

Stupid me, the i810_smbus driver grabbed the device and so the driver core
didn't probe i810fb against it.
With that one out of the way, modprobing i810fb with the appropriate parameters
correctly switches to graphics mode and fbcon gives me a nice console,
with and without Bernhard's patch.

for reference:
modprobe i810fb mode_option=1024x768-8@60 hsync1=40 hsync2=60 vsync1=50 vsync2=70 vram=4


-- 
  Manuel Lauss

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

* Re: Modular i810fb broken, partial fix
  2005-10-08 14:51       ` Giuseppe Bilotta
@ 2005-10-08 21:22         ` Antonino A. Daplas
  0 siblings, 0 replies; 14+ messages in thread
From: Antonino A. Daplas @ 2005-10-08 21:22 UTC (permalink / raw)
  To: Giuseppe Bilotta; +Cc: linux-kernel

Giuseppe Bilotta wrote:
> On Sat, 08 Oct 2005 21:03:15 +0800, Antonino A. Daplas wrote:
> 
>> Giuseppe Bilotta wrote:
>>> On Sat, 08 Oct 2005 18:39:35 +0800, Antonino A. Daplas wrote:
>>>
>>>> Bernhard Rosenkraenzer wrote:
>>>>> Hi,
>>>>> i810fb as a module is broken (checked with 2.6.13-mm3 and 2.6.14-rc2-mm1).
>>>>> It compiles, but the module doesn't actually load because the kernel doesn't 
>>>>> recognize the hardware (the MODULE_DEVICE_TABLE statement is missing).
>>>>> The attached patch fixes this.
>>>>>
>>>>> However, the resulting module still doesn't work.
>>>>> It loads, and then garbles the display (black screen with a couple of yellow 
>>>>> lines, no matter what is written into the framebuffer device).
>>>> Did you compile CONFIG_FRAMEBUFFER_CONSOLE statically, or did a modprobe fbcon?
>>>> Does i810fb work if compiled statically?
>>> Since this is *really* coming out often: is there a specific reason
>>> why the fb modules do not depend on fbcon?
>>>
>> Some need fbdev only, without fbcon, ie, embedded.
> 
> And does fbcon make sense *without* fbdevs?
> 

You can load fbcon only if you also load the core fb layer.  But without
any registered fbdevs, fbcon just stays in memory and will not take over
the console.

Tony

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

* Re: Modular i810fb broken, partial fix
  2005-10-08 15:30       ` Manuel Lauss
@ 2005-10-09 16:48         ` Bernhard Rosenkraenzer
  2005-10-09 17:13           ` Manuel Lauss
                             ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Bernhard Rosenkraenzer @ 2005-10-09 16:48 UTC (permalink / raw)
  To: Manuel Lauss; +Cc: Antonino A. Daplas, linux-kernel

On Saturday, 8. October 2005 17:30, Manuel Lauss wrote:
> for reference:
> modprobe i810fb mode_option=1024x768-8@60 hsync1=40 hsync2=60 vsync1=50
> vsync2=70 vram=4

Can you try with 1024x768-16@60? That's what we're using in the installer (and 
what people reported to gable the display).

Thanks
bero

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

* Re: Modular i810fb broken, partial fix
  2005-10-09 16:48         ` Bernhard Rosenkraenzer
@ 2005-10-09 17:13           ` Manuel Lauss
  2005-10-09 17:21           ` Manuel Lauss
  2005-10-10  8:06           ` Antonino A. Daplas
  2 siblings, 0 replies; 14+ messages in thread
From: Manuel Lauss @ 2005-10-09 17:13 UTC (permalink / raw)
  To: Bernhard Rosenkraenzer; +Cc: Antonino A. Daplas, linux-kernel

Bernhard Rosenkraenzer wrote:
> On Saturday, 8. October 2005 17:30, Manuel Lauss wrote:
> 
>>for reference:
>>modprobe i810fb mode_option=1024x768-8@60 hsync1=40 hsync2=60 vsync1=50
>>vsync2=70 vram=4
> 
> 
> Can you try with 1024x768-16@60? That's what we're using in the installer (and 
> what people reported to gable the display).

tried with -16 and -32, with/without accel=1, mtrr=1, extvga=1,
no problems. I _do_ see problems with >8 bpp when
warm-rebooting from windows. Cursor is a 8 character long
random pixelpile or a 3x3 ch blinking block of text.
 Cold boot and warm-rebooting from linux
are okay though (I suspect bios does not reset accel engine).

-- 
 mano

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

* Re: Modular i810fb broken, partial fix
  2005-10-09 16:48         ` Bernhard Rosenkraenzer
  2005-10-09 17:13           ` Manuel Lauss
@ 2005-10-09 17:21           ` Manuel Lauss
  2005-10-10  8:06           ` Antonino A. Daplas
  2 siblings, 0 replies; 14+ messages in thread
From: Manuel Lauss @ 2005-10-09 17:21 UTC (permalink / raw)
  To: Bernhard Rosenkraenzer; +Cc: Antonino A. Daplas, linux-kernel

Bernhard Rosenkraenzer wrote:
> On Saturday, 8. October 2005 17:30, Manuel Lauss wrote:
> 
>>for reference:
>>modprobe i810fb mode_option=1024x768-8@60 hsync1=40 hsync2=60 vsync1=50
>>vsync2=70 vram=4
> 
> 
> Can you try with 1024x768-16@60? That's what we're using in the installer (and 
> what people reported to gable the display).

Are you using bootsplash in your installer kernels?
Last time I tried that (2.4.22 iirc), it garbled
the display horribly.

-- 
 Manuel Lauss

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

* Re: Modular i810fb broken, partial fix
  2005-10-09 16:48         ` Bernhard Rosenkraenzer
  2005-10-09 17:13           ` Manuel Lauss
  2005-10-09 17:21           ` Manuel Lauss
@ 2005-10-10  8:06           ` Antonino A. Daplas
  2 siblings, 0 replies; 14+ messages in thread
From: Antonino A. Daplas @ 2005-10-10  8:06 UTC (permalink / raw)
  To: Bernhard Rosenkraenzer; +Cc: Manuel Lauss, linux-kernel

Bernhard Rosenkraenzer wrote:
> On Saturday, 8. October 2005 17:30, Manuel Lauss wrote:
>> for reference:
>> modprobe i810fb mode_option=1024x768-8@60 hsync1=40 hsync2=60 vsync1=50
>> vsync2=70 vram=4
> 
> Can you try with 1024x768-16@60? That's what we're using in the installer (and 
> what people reported to gable the display).
> 

Try disabling I2C/DDC support of i810fb.  A messed-up EDID block can
give problems with the display.

Tony


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

end of thread, other threads:[~2005-10-10  8:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-07 13:47 Modular i810fb broken, partial fix Bernhard Rosenkraenzer
2005-10-08 10:39 ` Antonino A. Daplas
2005-10-08 11:02   ` Bernhard Rosenkraenzer
2005-10-08 11:31   ` Giuseppe Bilotta
2005-10-08 13:03     ` Antonino A. Daplas
2005-10-08 14:51       ` Giuseppe Bilotta
2005-10-08 21:22         ` Antonino A. Daplas
2005-10-08 11:56   ` Manuel Lauss
2005-10-08 13:03     ` Antonino A. Daplas
2005-10-08 15:30       ` Manuel Lauss
2005-10-09 16:48         ` Bernhard Rosenkraenzer
2005-10-09 17:13           ` Manuel Lauss
2005-10-09 17:21           ` Manuel Lauss
2005-10-10  8:06           ` Antonino A. Daplas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox