From: "Antonino A. Daplas" <adaplas@gmail.com>
To: Manuel Lauss <mano@roarinelk.homelinux.net>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.13-mm2
Date: Sat, 10 Sep 2005 20:42:05 +0800 [thread overview]
Message-ID: <4322D49D.5040506@pol.net> (raw)
In-Reply-To: <4322C741.9060808@roarinelk.homelinux.net>
Manuel Lauss wrote:
> Hello,
>
> Andrew Morton wrote:
>
>> +i810fb-add-i2c-ddc-support.patch
>> +i810fb-add-i2c-ddc-support-fix.patch
>> +i810fb-add-i2c-ddc-support-fix-fix.patch
>> +i810fb-add-i2c-ddc-support-Makefile-fix.patch
>
> compiled with CONFIG_FB_I810_I2C = n and CONFIG_FB_I810 = y
> it oopses at boot in file drivers/video/i810/i810_main.c:1884
>
> ...
> Kernel command line: root=/dev/hda7
> video=i810fb:xres:1024,yres:768,bpp:8,hsync1:40,hsync2:80,vsync1:60,vsync2:60,extvga,vram:4,accel,mtrr
>
> ...
> Unable to handle kernel NULL pointer dereference at virtual address
> 00000054
> printing eip:
> c02543c0
> *pde = 00000000
> Oops: 0000 [#1]
> last sysfs file:
> Modules linked in:
> CPU: 0
> EIP: 0060:[<c02543c0>] Not tainted VLI
> EFLAGS: 00010286 (2.6.13-mm2)
> EIP is at i810fb_find_init_mode+0x53/0x93
> eax: c113ddd4 ebx: c1194000 ecx: c04be2dd edx: c1194000
> esi: c1194008 edi: c113ddd4 ebp: c1194240 esp: c113ddcc
> ds: 007b es: 007b ss: 0068
> Process swapper (pid: 1, threadinfo=c113c000 task=c7cd6a30)
> Stack: 00000000 00000008 00000400 00000300 00000000 00001000 00000000
> 00000000
> 00000008 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000
> 00000000 00000000 00000000 00000000 00000000 00000000 00000000
> 00000000
> Call Trace:
> [<c01ecb01>] fb_alloc_cmap+0x8d/0xa0
> [<c025491b>] i810fb_init_pci+0x10a/0x23c
> [<c026dd9e>] __driver_attach+0x0/0x33
> [<c01e1198>] pci_call_probe+0xa/0xc
> [<c01e11c8>] __pci_device_probe+0x2e/0x3f
> [<c01e11f7>] pci_device_probe+0x1e/0x30
> [<c026dcfb>] driver_probe_device+0x31/0x82
> [<c026ddc1>] __driver_attach+0x23/0x33
> [<c026d60f>] bus_for_each_dev+0x35/0x59
> [<c026dde2>] driver_attach+0x11/0x13
> [<c026dd9e>] __driver_attach+0x0/0x33
> [<c026d993>] bus_add_driver+0x52/0x92
> [<c026e0a2>] driver_register+0x2f/0x34
> [<c01e1394>] pci_register_driver+0x64/0x74
> [<c0254b51>] i810fb_init+0x2f/0x36
> [<c049a676>] do_initcalls+0x49/0x8e
> [<c0100269>] init+0x0/0x107
> [<c010028b>] init+0x22/0x107
> [<c0101281>] kernel_thread_helper+0x5/0xb
> Code: 02 00 00 f3 ab 8d 73 08 b9 a0 00 00 00 89 f2 89 e0 89 e7 e8 5f 8a
> f8 ff 8b 0d 78 8e 4f c0 85 c9 74 1d ff 73 20 89 da 89 f8 6a 00 <ff> 35
> 54 00 00 00 ff 35 20 00 00 00 e8 37
> <0>Kernel panic - not syncing: Attempted to kill init!
>
>
> A few debug printks suggest the pointer "specs" is NULL.
>
Ah, yes, sorry about that. Can you try this patch?
Fix kernel oops when CONFIG_FB_I810_I2C is set to 'n'.
Signed-off-by: Antonino Daplas <adaplas@pol.net>
diff --git a/drivers/video/i810/i810_main.c b/drivers/video/i810/i810_main.c
--- a/drivers/video/i810/i810_main.c
+++ b/drivers/video/i810/i810_main.c
@@ -1830,7 +1830,7 @@ static void __devinit i810fb_find_init_m
{
struct fb_videomode mode;
struct fb_var_screeninfo var;
- struct fb_monspecs *specs = NULL;
+ struct fb_monspecs *specs = &info->monspecs;
int found = 0;
#ifdef CONFIG_FB_I810_I2C
int i;
@@ -1853,12 +1853,11 @@ static void __devinit i810fb_find_init_m
if (!err)
printk("i810fb_init_pci: DDC probe successful\n");
- fb_edid_to_monspecs(par->edid, &info->monspecs);
+ fb_edid_to_monspecs(par->edid, specs);
- if (info->monspecs.modedb == NULL)
+ if (specs->modedb == NULL)
printk("i810fb_init_pci: Unable to get Mode Database\n");
- specs = &info->monspecs;
fb_videomode_to_modelist(specs->modedb, specs->modedb_len,
&info->modelist);
if (specs->modedb != NULL) {
next prev parent reply other threads:[~2005-09-10 12:43 UTC|newest]
Thread overview: 84+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-08 12:30 2.6.13-mm2 Andrew Morton
2005-09-08 13:12 ` 2.6.13-mm2 Benoit Boissinot
2005-09-08 13:48 ` 2.6.13-mm2 Christoph Hellwig
2005-09-08 14:30 ` 2.6.13-mm2 Martin J. Bligh
2005-09-09 0:39 ` 2.6.13-mm2 Andi Kleen
2005-09-09 10:41 ` 2.6.13-mm2 Andrew Morton
2005-09-09 10:46 ` 2.6.13-mm2 Andi Kleen
2005-09-08 15:11 ` 2.6.13-mm2 high memory support borken? Michal Piotrowski
2005-09-09 9:29 ` Andrew Morton
2005-09-08 17:20 ` 2.6.13-mm2 Michael Thonke
2005-09-08 19:39 ` 2.6.13-mm2 Andrew Morton
2005-09-10 7:02 ` 2.6.13-mm2 Michael Thonke
2005-09-09 1:47 ` 2.6.13-mm2 Grant Coady
2005-09-09 9:43 ` 2.6.13-mm2 Andrew Morton
2005-09-09 13:45 ` 2.6.13-mm2 Grant Coady
2005-09-10 6:33 ` 2.6.13-mm2 Marko Kohtala
2005-09-09 2:52 ` 2.6.13-mm2 - drivers/char/speakup/speakup doesn't compile (+warnings from other things) Damir Perisa
2005-09-09 12:18 ` Alan Cox
2005-09-09 20:57 ` 2.6.13-mm2 (general protection fault) Dominik Karall
2005-09-10 11:45 ` 2.6.13-mm2 Manuel Lauss
2005-09-10 12:42 ` Antonino A. Daplas [this message]
2005-09-10 13:46 ` 2.6.13-mm2 Manuel Lauss
2005-09-10 20:21 ` 2.6.13-mm2 Antonino A. Daplas
2005-09-10 21:26 ` 2.6.13-mm2 Antonino A. Daplas
2005-09-10 18:43 ` 2.6.13-mm2 Dominik Karall
2005-09-10 22:12 ` 2.6.13-mm2 Andrew Morton
2005-09-10 23:46 ` 2.6.13-mm2 J.A. Magallon
2005-09-10 23:56 ` 2.6.13-mm2 Andrew Morton
2005-09-11 0:07 ` 2.6.13-mm2 Patrick McHardy
2005-09-11 0:49 ` 2.6.13-mm2 J.A. Magallon
2005-09-11 0:58 ` 2.6.13-mm2 J.A. Magallon
2005-09-11 1:03 ` 2.6.13-mm2 Patrick McHardy
2005-09-11 1:22 ` 2.6.13-mm2 J.A. Magallon
2005-09-11 1:25 ` 2.6.13-mm2 Patrick McHardy
2005-09-11 17:03 ` 2.6.13-mm2 Rafael J. Wysocki
2005-09-11 19:36 ` 2.6.13-mm2 Andrew Morton
2005-09-11 20:03 ` 2.6.13-mm2 Hugh Dickins
2005-09-12 19:19 ` 2.6.13-mm2 Rafael J. Wysocki
2005-09-11 20:08 ` 2.6.13-mm2 Daniel Ritz
2005-09-12 10:04 ` 2.6.13-mm2 Rafael J. Wysocki
2005-09-12 10:06 ` 2.6.13-mm2 Rafael J. Wysocki
2005-09-12 10:09 ` 2.6.13-mm2 Rafael J. Wysocki
2005-09-18 21:49 ` 2.6.13-mm2 Daniel Ritz
2005-09-19 3:07 ` 2.6.13-mm2 Hugh Dickins
2005-09-19 15:56 ` 2.6.13-mm2 Daniel Ritz
2005-09-23 16:52 ` 2.6.13-mm2 Rafael J. Wysocki
2005-09-28 20:05 ` 2.6.13-mm2 Daniel Ritz
2005-09-28 20:23 ` [linux-usb-devel] 2.6.13-mm2 David Brownell
2005-09-28 20:37 ` Rafael J. Wysocki
2005-09-28 20:56 ` David Brownell
2005-09-28 21:34 ` Rafael J. Wysocki
2005-09-28 22:04 ` David Brownell
2005-09-28 22:32 ` Daniel Ritz
2005-09-29 0:09 ` David Brownell
2005-09-29 15:36 ` Linus Torvalds
2005-09-29 16:31 ` David Brownell
2005-09-29 19:39 ` Daniel Ritz
2005-09-30 16:33 ` Linus Torvalds
2005-09-30 17:48 ` David Brownell
2005-09-29 2:54 ` Alan Stern
2005-09-28 20:45 ` Daniel Ritz
2005-09-28 21:07 ` David Brownell
2005-09-28 21:47 ` Rafael J. Wysocki
2005-09-28 22:07 ` Daniel Ritz
2005-09-28 21:10 ` Alan Stern
2005-09-29 15:22 ` 2.6.13-mm2 Linus Torvalds
2005-09-12 3:07 ` 2.6.13-mm2 Martin J. Bligh
2005-09-12 5:01 ` 2.6.13-mm2 Andi Kleen
2005-09-12 6:09 ` 2.6.13-mm2 Martin J. Bligh
2005-09-12 7:16 ` 2.6.13-mm2 Andi Kleen
2005-09-12 18:06 ` 2.6.13-mm2 Martin J. Bligh
2005-09-12 18:19 ` 2.6.13-mm2 Dave Hansen
2005-09-12 18:51 ` 2.6.13-mm2 Andi Kleen
2005-09-12 22:46 ` 2.6.13-mm2 Martin J. Bligh
2005-09-13 0:08 ` 2.6.13-mm2 Andrew Morton
2005-09-13 4:00 ` 2.6.13-mm2 Martin J. Bligh
2005-09-12 3:10 ` 2.6.13-mm2 Martin J. Bligh
[not found] <4KtRD-7Nt-13@gated-at.bofh.it>
2005-09-08 23:23 ` 2.6.13-mm2 Ronny V. Vindenes
2005-09-08 23:34 ` 2.6.13-mm2 Andrew Morton
2005-09-09 0:26 ` 2.6.13-mm2 Parag Warudkar
2005-09-09 0:55 ` 2.6.13-mm2 Roland McGrath
-- strict thread matches above, loose matches on Subject: below --
2005-09-17 0:36 2.6.13-mm2 Chuck Ebbert
2005-09-17 4:17 ` 2.6.13-mm2 Parag Warudkar
2005-09-17 4:30 ` 2.6.13-mm2 Parag Warudkar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4322D49D.5040506@pol.net \
--to=adaplas@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mano@roarinelk.homelinux.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox