* Re: kernel oops with framebuffer device vt8623fb
[not found] <487E2911.5090701@gmx.net>
@ 2008-07-17 1:39 ` Ondrej Zajicek
2008-07-17 11:21 ` alois.klingler
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Ondrej Zajicek @ 2008-07-17 1:39 UTC (permalink / raw)
To: MadLoisae; +Cc: linux-fbdev-devel, Alexey Dobriyan, linux-kernel
On Wed, Jul 16, 2008 at 07:00:02PM +0200, MadLoisae@gmx.net wrote:
> Hi!
>
> I've updated my machine from 2.6.25.11 to 2.6.26 and I think I've found
> a problem.
>
> If I load the module vt8623fb i get a kernel oops, if the VIA 8623
> display framebuffer driver is compiled direct into kernel the system
> hangs up very early at booting the kernel.
I am sorry for mistake, here is a patch for 2.6.26 fixing the bug:
Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>
diff -uprN -X linux-2.6.26-orig/Documentation/dontdiff linux-2.6.26-orig/drivers/video/arkfb.c linux-2.6.26/drivers/video/arkfb.c
--- linux-2.6.26-orig/drivers/video/arkfb.c 2008-07-13 23:51:29.000000000 +0200
+++ linux-2.6.26/drivers/video/arkfb.c 2008-07-16 22:56:34.000000000 +0200
@@ -958,20 +958,20 @@ static int __devinit ark_pci_probe(struc
/* Prepare PCI device */
rc = pci_enable_device(dev);
if (rc < 0) {
- dev_err(info->dev, "cannot enable PCI device\n");
+ dev_err(info->device, "cannot enable PCI device\n");
goto err_enable_device;
}
rc = pci_request_regions(dev, "arkfb");
if (rc < 0) {
- dev_err(info->dev, "cannot reserve framebuffer region\n");
+ dev_err(info->device, "cannot reserve framebuffer region\n");
goto err_request_regions;
}
par->dac = ics5342_init(ark_dac_read_regs, ark_dac_write_regs, info);
if (! par->dac) {
rc = -ENOMEM;
- dev_err(info->dev, "RAMDAC initialization failed\n");
+ dev_err(info->device, "RAMDAC initialization failed\n");
goto err_dac;
}
@@ -982,7 +982,7 @@ static int __devinit ark_pci_probe(struc
info->screen_base = pci_iomap(dev, 0, 0);
if (! info->screen_base) {
rc = -ENOMEM;
- dev_err(info->dev, "iomap for framebuffer failed\n");
+ dev_err(info->device, "iomap for framebuffer failed\n");
goto err_iomap;
}
@@ -1004,19 +1004,19 @@ static int __devinit ark_pci_probe(struc
rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);
if (! ((rc == 1) || (rc == 2))) {
rc = -EINVAL;
- dev_err(info->dev, "mode %s not found\n", mode_option);
+ dev_err(info->device, "mode %s not found\n", mode_option);
goto err_find_mode;
}
rc = fb_alloc_cmap(&info->cmap, 256, 0);
if (rc < 0) {
- dev_err(info->dev, "cannot allocate colormap\n");
+ dev_err(info->device, "cannot allocate colormap\n");
goto err_alloc_cmap;
}
rc = register_framebuffer(info);
if (rc < 0) {
- dev_err(info->dev, "cannot register framebugger\n");
+ dev_err(info->device, "cannot register framebugger\n");
goto err_reg_fb;
}
@@ -1090,7 +1090,7 @@ static int ark_pci_suspend (struct pci_d
struct fb_info *info = pci_get_drvdata(dev);
struct arkfb_info *par = info->par;
- dev_info(info->dev, "suspend\n");
+ dev_info(info->device, "suspend\n");
acquire_console_sem();
mutex_lock(&(par->open_lock));
@@ -1121,7 +1121,7 @@ static int ark_pci_resume (struct pci_de
struct fb_info *info = pci_get_drvdata(dev);
struct arkfb_info *par = info->par;
- dev_info(info->dev, "resume\n");
+ dev_info(info->device, "resume\n");
acquire_console_sem();
mutex_lock(&(par->open_lock));
diff -uprN -X linux-2.6.26-orig/Documentation/dontdiff linux-2.6.26-orig/drivers/video/s3fb.c linux-2.6.26/drivers/video/s3fb.c
--- linux-2.6.26-orig/drivers/video/s3fb.c 2008-07-13 23:51:29.000000000 +0200
+++ linux-2.6.26/drivers/video/s3fb.c 2008-07-16 22:44:19.000000000 +0200
@@ -903,13 +903,13 @@ static int __devinit s3_pci_probe(struct
/* Prepare PCI device */
rc = pci_enable_device(dev);
if (rc < 0) {
- dev_err(info->dev, "cannot enable PCI device\n");
+ dev_err(info->device, "cannot enable PCI device\n");
goto err_enable_device;
}
rc = pci_request_regions(dev, "s3fb");
if (rc < 0) {
- dev_err(info->dev, "cannot reserve framebuffer region\n");
+ dev_err(info->device, "cannot reserve framebuffer region\n");
goto err_request_regions;
}
@@ -921,7 +921,7 @@ static int __devinit s3_pci_probe(struct
info->screen_base = pci_iomap(dev, 0, 0);
if (! info->screen_base) {
rc = -ENOMEM;
- dev_err(info->dev, "iomap for framebuffer failed\n");
+ dev_err(info->device, "iomap for framebuffer failed\n");
goto err_iomap;
}
@@ -965,19 +965,19 @@ static int __devinit s3_pci_probe(struct
rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);
if (! ((rc == 1) || (rc == 2))) {
rc = -EINVAL;
- dev_err(info->dev, "mode %s not found\n", mode_option);
+ dev_err(info->device, "mode %s not found\n", mode_option);
goto err_find_mode;
}
rc = fb_alloc_cmap(&info->cmap, 256, 0);
if (rc < 0) {
- dev_err(info->dev, "cannot allocate colormap\n");
+ dev_err(info->device, "cannot allocate colormap\n");
goto err_alloc_cmap;
}
rc = register_framebuffer(info);
if (rc < 0) {
- dev_err(info->dev, "cannot register framebuffer\n");
+ dev_err(info->device, "cannot register framebuffer\n");
goto err_reg_fb;
}
@@ -1053,7 +1053,7 @@ static int s3_pci_suspend(struct pci_dev
struct fb_info *info = pci_get_drvdata(dev);
struct s3fb_info *par = info->par;
- dev_info(info->dev, "suspend\n");
+ dev_info(info->device, "suspend\n");
acquire_console_sem();
mutex_lock(&(par->open_lock));
@@ -1085,7 +1085,7 @@ static int s3_pci_resume(struct pci_dev*
struct s3fb_info *par = info->par;
int err;
- dev_info(info->dev, "resume\n");
+ dev_info(info->device, "resume\n");
acquire_console_sem();
mutex_lock(&(par->open_lock));
@@ -1102,7 +1102,7 @@ static int s3_pci_resume(struct pci_dev*
if (err) {
mutex_unlock(&(par->open_lock));
release_console_sem();
- dev_err(info->dev, "error %d enabling device for resume\n", err);
+ dev_err(info->device, "error %d enabling device for resume\n", err);
return err;
}
pci_set_master(dev);
diff -uprN -X linux-2.6.26-orig/Documentation/dontdiff linux-2.6.26-orig/drivers/video/vt8623fb.c linux-2.6.26/drivers/video/vt8623fb.c
--- linux-2.6.26-orig/drivers/video/vt8623fb.c 2008-07-13 23:51:29.000000000 +0200
+++ linux-2.6.26/drivers/video/vt8623fb.c 2008-07-16 22:57:05.000000000 +0200
@@ -677,13 +677,13 @@ static int __devinit vt8623_pci_probe(st
rc = pci_enable_device(dev);
if (rc < 0) {
- dev_err(info->dev, "cannot enable PCI device\n");
+ dev_err(info->device, "cannot enable PCI device\n");
goto err_enable_device;
}
rc = pci_request_regions(dev, "vt8623fb");
if (rc < 0) {
- dev_err(info->dev, "cannot reserve framebuffer region\n");
+ dev_err(info->device, "cannot reserve framebuffer region\n");
goto err_request_regions;
}
@@ -696,14 +696,14 @@ static int __devinit vt8623_pci_probe(st
info->screen_base = pci_iomap(dev, 0, 0);
if (! info->screen_base) {
rc = -ENOMEM;
- dev_err(info->dev, "iomap for framebuffer failed\n");
+ dev_err(info->device, "iomap for framebuffer failed\n");
goto err_iomap_1;
}
par->mmio_base = pci_iomap(dev, 1, 0);
if (! par->mmio_base) {
rc = -ENOMEM;
- dev_err(info->dev, "iomap for MMIO failed\n");
+ dev_err(info->device, "iomap for MMIO failed\n");
goto err_iomap_2;
}
@@ -714,7 +714,7 @@ static int __devinit vt8623_pci_probe(st
if ((16 <= memsize1) && (memsize1 <= 64) && (memsize1 == memsize2))
info->screen_size = memsize1 << 20;
else {
- dev_err(info->dev, "memory size detection failed (%x %x), suppose 16 MB\n", memsize1, memsize2);
+ dev_err(info->device, "memory size detection failed (%x %x), suppose 16 MB\n", memsize1, memsize2);
info->screen_size = 16 << 20;
}
@@ -731,19 +731,19 @@ static int __devinit vt8623_pci_probe(st
rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);
if (! ((rc == 1) || (rc == 2))) {
rc = -EINVAL;
- dev_err(info->dev, "mode %s not found\n", mode_option);
+ dev_err(info->device, "mode %s not found\n", mode_option);
goto err_find_mode;
}
rc = fb_alloc_cmap(&info->cmap, 256, 0);
if (rc < 0) {
- dev_err(info->dev, "cannot allocate colormap\n");
+ dev_err(info->device, "cannot allocate colormap\n");
goto err_alloc_cmap;
}
rc = register_framebuffer(info);
if (rc < 0) {
- dev_err(info->dev, "cannot register framebugger\n");
+ dev_err(info->device, "cannot register framebugger\n");
goto err_reg_fb;
}
@@ -817,7 +817,7 @@ static int vt8623_pci_suspend(struct pci
struct fb_info *info = pci_get_drvdata(dev);
struct vt8623fb_info *par = info->par;
- dev_info(info->dev, "suspend\n");
+ dev_info(info->device, "suspend\n");
acquire_console_sem();
mutex_lock(&(par->open_lock));
@@ -848,7 +848,7 @@ static int vt8623_pci_resume(struct pci_
struct fb_info *info = pci_get_drvdata(dev);
struct vt8623fb_info *par = info->par;
- dev_info(info->dev, "resume\n");
+ dev_info(info->device, "resume\n");
acquire_console_sem();
mutex_lock(&(par->open_lock));
--
Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel oops with framebuffer device vt8623fb
2008-07-17 1:39 ` kernel oops with framebuffer device vt8623fb Ondrej Zajicek
@ 2008-07-17 11:21 ` alois.klingler
2008-07-17 11:23 ` MadLoisae
2008-07-29 3:48 ` Andrew Morton
2 siblings, 0 replies; 6+ messages in thread
From: alois.klingler @ 2008-07-17 11:21 UTC (permalink / raw)
To: Ondrej Zajicek; +Cc: linux-fbdev-devel, adobriyan, linux-kernel
[-- Attachment #1.1: Type: text/plain, Size: 9385 bytes --]
Hi!
this patch fixed my problem completly.
thanks a lot!
kind regards, Alois
Ondrej Zajicek wrote:
> On Wed, Jul 16, 2008 at 07:00:02PM +0200, MadLoisae@gmx.net wrote:
>
>> Hi!
>>
>> I've updated my machine from 2.6.25.11 to 2.6.26 and I think I've found
>> a problem.
>>
>> If I load the module vt8623fb i get a kernel oops, if the VIA 8623
>> display framebuffer driver is compiled direct into kernel the system
>> hangs up very early at booting the kernel.
>>
>
> I am sorry for mistake, here is a patch for 2.6.26 fixing the bug:
>
> Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>
>
> diff -uprN -X linux-2.6.26-orig/Documentation/dontdiff linux-2.6.26-orig/drivers/video/arkfb.c linux-2.6.26/drivers/video/arkfb.c
> --- linux-2.6.26-orig/drivers/video/arkfb.c 2008-07-13 23:51:29.000000000 +0200
> +++ linux-2.6.26/drivers/video/arkfb.c 2008-07-16 22:56:34.000000000 +0200
> @@ -958,20 +958,20 @@ static int __devinit ark_pci_probe(struc
> /* Prepare PCI device */
> rc = pci_enable_device(dev);
> if (rc < 0) {
> - dev_err(info->dev, "cannot enable PCI device\n");
> + dev_err(info->device, "cannot enable PCI device\n");
> goto err_enable_device;
> }
>
> rc = pci_request_regions(dev, "arkfb");
> if (rc < 0) {
> - dev_err(info->dev, "cannot reserve framebuffer region\n");
> + dev_err(info->device, "cannot reserve framebuffer region\n");
> goto err_request_regions;
> }
>
> par->dac = ics5342_init(ark_dac_read_regs, ark_dac_write_regs, info);
> if (! par->dac) {
> rc = -ENOMEM;
> - dev_err(info->dev, "RAMDAC initialization failed\n");
> + dev_err(info->device, "RAMDAC initialization failed\n");
> goto err_dac;
> }
>
> @@ -982,7 +982,7 @@ static int __devinit ark_pci_probe(struc
> info->screen_base = pci_iomap(dev, 0, 0);
> if (! info->screen_base) {
> rc = -ENOMEM;
> - dev_err(info->dev, "iomap for framebuffer failed\n");
> + dev_err(info->device, "iomap for framebuffer failed\n");
> goto err_iomap;
> }
>
> @@ -1004,19 +1004,19 @@ static int __devinit ark_pci_probe(struc
> rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);
> if (! ((rc == 1) || (rc == 2))) {
> rc = -EINVAL;
> - dev_err(info->dev, "mode %s not found\n", mode_option);
> + dev_err(info->device, "mode %s not found\n", mode_option);
> goto err_find_mode;
> }
>
> rc = fb_alloc_cmap(&info->cmap, 256, 0);
> if (rc < 0) {
> - dev_err(info->dev, "cannot allocate colormap\n");
> + dev_err(info->device, "cannot allocate colormap\n");
> goto err_alloc_cmap;
> }
>
> rc = register_framebuffer(info);
> if (rc < 0) {
> - dev_err(info->dev, "cannot register framebugger\n");
> + dev_err(info->device, "cannot register framebugger\n");
> goto err_reg_fb;
> }
>
> @@ -1090,7 +1090,7 @@ static int ark_pci_suspend (struct pci_d
> struct fb_info *info = pci_get_drvdata(dev);
> struct arkfb_info *par = info->par;
>
> - dev_info(info->dev, "suspend\n");
> + dev_info(info->device, "suspend\n");
>
> acquire_console_sem();
> mutex_lock(&(par->open_lock));
> @@ -1121,7 +1121,7 @@ static int ark_pci_resume (struct pci_de
> struct fb_info *info = pci_get_drvdata(dev);
> struct arkfb_info *par = info->par;
>
> - dev_info(info->dev, "resume\n");
> + dev_info(info->device, "resume\n");
>
> acquire_console_sem();
> mutex_lock(&(par->open_lock));
> diff -uprN -X linux-2.6.26-orig/Documentation/dontdiff linux-2.6.26-orig/drivers/video/s3fb.c linux-2.6.26/drivers/video/s3fb.c
> --- linux-2.6.26-orig/drivers/video/s3fb.c 2008-07-13 23:51:29.000000000 +0200
> +++ linux-2.6.26/drivers/video/s3fb.c 2008-07-16 22:44:19.000000000 +0200
> @@ -903,13 +903,13 @@ static int __devinit s3_pci_probe(struct
> /* Prepare PCI device */
> rc = pci_enable_device(dev);
> if (rc < 0) {
> - dev_err(info->dev, "cannot enable PCI device\n");
> + dev_err(info->device, "cannot enable PCI device\n");
> goto err_enable_device;
> }
>
> rc = pci_request_regions(dev, "s3fb");
> if (rc < 0) {
> - dev_err(info->dev, "cannot reserve framebuffer region\n");
> + dev_err(info->device, "cannot reserve framebuffer region\n");
> goto err_request_regions;
> }
>
> @@ -921,7 +921,7 @@ static int __devinit s3_pci_probe(struct
> info->screen_base = pci_iomap(dev, 0, 0);
> if (! info->screen_base) {
> rc = -ENOMEM;
> - dev_err(info->dev, "iomap for framebuffer failed\n");
> + dev_err(info->device, "iomap for framebuffer failed\n");
> goto err_iomap;
> }
>
> @@ -965,19 +965,19 @@ static int __devinit s3_pci_probe(struct
> rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);
> if (! ((rc == 1) || (rc == 2))) {
> rc = -EINVAL;
> - dev_err(info->dev, "mode %s not found\n", mode_option);
> + dev_err(info->device, "mode %s not found\n", mode_option);
> goto err_find_mode;
> }
>
> rc = fb_alloc_cmap(&info->cmap, 256, 0);
> if (rc < 0) {
> - dev_err(info->dev, "cannot allocate colormap\n");
> + dev_err(info->device, "cannot allocate colormap\n");
> goto err_alloc_cmap;
> }
>
> rc = register_framebuffer(info);
> if (rc < 0) {
> - dev_err(info->dev, "cannot register framebuffer\n");
> + dev_err(info->device, "cannot register framebuffer\n");
> goto err_reg_fb;
> }
>
> @@ -1053,7 +1053,7 @@ static int s3_pci_suspend(struct pci_dev
> struct fb_info *info = pci_get_drvdata(dev);
> struct s3fb_info *par = info->par;
>
> - dev_info(info->dev, "suspend\n");
> + dev_info(info->device, "suspend\n");
>
> acquire_console_sem();
> mutex_lock(&(par->open_lock));
> @@ -1085,7 +1085,7 @@ static int s3_pci_resume(struct pci_dev*
> struct s3fb_info *par = info->par;
> int err;
>
> - dev_info(info->dev, "resume\n");
> + dev_info(info->device, "resume\n");
>
> acquire_console_sem();
> mutex_lock(&(par->open_lock));
> @@ -1102,7 +1102,7 @@ static int s3_pci_resume(struct pci_dev*
> if (err) {
> mutex_unlock(&(par->open_lock));
> release_console_sem();
> - dev_err(info->dev, "error %d enabling device for resume\n", err);
> + dev_err(info->device, "error %d enabling device for resume\n", err);
> return err;
> }
> pci_set_master(dev);
> diff -uprN -X linux-2.6.26-orig/Documentation/dontdiff linux-2.6.26-orig/drivers/video/vt8623fb.c linux-2.6.26/drivers/video/vt8623fb.c
> --- linux-2.6.26-orig/drivers/video/vt8623fb.c 2008-07-13 23:51:29.000000000 +0200
> +++ linux-2.6.26/drivers/video/vt8623fb.c 2008-07-16 22:57:05.000000000 +0200
> @@ -677,13 +677,13 @@ static int __devinit vt8623_pci_probe(st
>
> rc = pci_enable_device(dev);
> if (rc < 0) {
> - dev_err(info->dev, "cannot enable PCI device\n");
> + dev_err(info->device, "cannot enable PCI device\n");
> goto err_enable_device;
> }
>
> rc = pci_request_regions(dev, "vt8623fb");
> if (rc < 0) {
> - dev_err(info->dev, "cannot reserve framebuffer region\n");
> + dev_err(info->device, "cannot reserve framebuffer region\n");
> goto err_request_regions;
> }
>
> @@ -696,14 +696,14 @@ static int __devinit vt8623_pci_probe(st
> info->screen_base = pci_iomap(dev, 0, 0);
> if (! info->screen_base) {
> rc = -ENOMEM;
> - dev_err(info->dev, "iomap for framebuffer failed\n");
> + dev_err(info->device, "iomap for framebuffer failed\n");
> goto err_iomap_1;
> }
>
> par->mmio_base = pci_iomap(dev, 1, 0);
> if (! par->mmio_base) {
> rc = -ENOMEM;
> - dev_err(info->dev, "iomap for MMIO failed\n");
> + dev_err(info->device, "iomap for MMIO failed\n");
> goto err_iomap_2;
> }
>
> @@ -714,7 +714,7 @@ static int __devinit vt8623_pci_probe(st
> if ((16 <= memsize1) && (memsize1 <= 64) && (memsize1 == memsize2))
> info->screen_size = memsize1 << 20;
> else {
> - dev_err(info->dev, "memory size detection failed (%x %x), suppose 16 MB\n", memsize1, memsize2);
> + dev_err(info->device, "memory size detection failed (%x %x), suppose 16 MB\n", memsize1, memsize2);
> info->screen_size = 16 << 20;
> }
>
> @@ -731,19 +731,19 @@ static int __devinit vt8623_pci_probe(st
> rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);
> if (! ((rc == 1) || (rc == 2))) {
> rc = -EINVAL;
> - dev_err(info->dev, "mode %s not found\n", mode_option);
> + dev_err(info->device, "mode %s not found\n", mode_option);
> goto err_find_mode;
> }
>
> rc = fb_alloc_cmap(&info->cmap, 256, 0);
> if (rc < 0) {
> - dev_err(info->dev, "cannot allocate colormap\n");
> + dev_err(info->device, "cannot allocate colormap\n");
> goto err_alloc_cmap;
> }
>
> rc = register_framebuffer(info);
> if (rc < 0) {
> - dev_err(info->dev, "cannot register framebugger\n");
> + dev_err(info->device, "cannot register framebugger\n");
> goto err_reg_fb;
> }
>
> @@ -817,7 +817,7 @@ static int vt8623_pci_suspend(struct pci
> struct fb_info *info = pci_get_drvdata(dev);
> struct vt8623fb_info *par = info->par;
>
> - dev_info(info->dev, "suspend\n");
> + dev_info(info->device, "suspend\n");
>
> acquire_console_sem();
> mutex_lock(&(par->open_lock));
> @@ -848,7 +848,7 @@ static int vt8623_pci_resume(struct pci_
> struct fb_info *info = pci_get_drvdata(dev);
> struct vt8623fb_info *par = info->par;
>
> - dev_info(info->dev, "resume\n");
> + dev_info(info->device, "resume\n");
>
> acquire_console_sem();
> mutex_lock(&(par->open_lock));
>
>
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 9875 bytes --]
[-- Attachment #2: Type: text/plain, Size: 363 bytes --]
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
[-- Attachment #3: Type: text/plain, Size: 182 bytes --]
_______________________________________________
Linux-fbdev-devel mailing list
Linux-fbdev-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel oops with framebuffer device vt8623fb
2008-07-17 1:39 ` kernel oops with framebuffer device vt8623fb Ondrej Zajicek
2008-07-17 11:21 ` alois.klingler
@ 2008-07-17 11:23 ` MadLoisae
2008-07-29 3:48 ` Andrew Morton
2 siblings, 0 replies; 6+ messages in thread
From: MadLoisae @ 2008-07-17 11:23 UTC (permalink / raw)
To: Ondrej Zajicek; +Cc: adobriyan, linux-kernel, linux-fbdev-devel
Hi!
this patch fixed my problem completly.
thanks a lot!
kind regards, Alois
Ondrej Zajicek wrote:
> On Wed, Jul 16, 2008 at 07:00:02PM +0200, MadLoisae@gmx.net wrote:
>
>> Hi!
>>
>> I've updated my machine from 2.6.25.11 to 2.6.26 and I think I've found
>> a problem.
>>
>> If I load the module vt8623fb i get a kernel oops, if the VIA 8623
>> display framebuffer driver is compiled direct into kernel the system
>> hangs up very early at booting the kernel.
>>
>
> I am sorry for mistake, here is a patch for 2.6.26 fixing the bug:
>
> Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>
>
> diff -uprN -X linux-2.6.26-orig/Documentation/dontdiff linux-2.6.26-orig/drivers/video/arkfb.c linux-2.6.26/drivers/video/arkfb.c
> --- linux-2.6.26-orig/drivers/video/arkfb.c 2008-07-13 23:51:29.000000000 +0200
> +++ linux-2.6.26/drivers/video/arkfb.c 2008-07-16 22:56:34.000000000 +0200
> @@ -958,20 +958,20 @@ static int __devinit ark_pci_probe(struc
> /* Prepare PCI device */
> rc = pci_enable_device(dev);
> if (rc < 0) {
> - dev_err(info->dev, "cannot enable PCI device\n");
> + dev_err(info->device, "cannot enable PCI device\n");
> goto err_enable_device;
> }
>
> rc = pci_request_regions(dev, "arkfb");
> if (rc < 0) {
> - dev_err(info->dev, "cannot reserve framebuffer region\n");
> + dev_err(info->device, "cannot reserve framebuffer region\n");
> goto err_request_regions;
> }
>
> par->dac = ics5342_init(ark_dac_read_regs, ark_dac_write_regs, info);
> if (! par->dac) {
> rc = -ENOMEM;
> - dev_err(info->dev, "RAMDAC initialization failed\n");
> + dev_err(info->device, "RAMDAC initialization failed\n");
> goto err_dac;
> }
>
> @@ -982,7 +982,7 @@ static int __devinit ark_pci_probe(struc
> info->screen_base = pci_iomap(dev, 0, 0);
> if (! info->screen_base) {
> rc = -ENOMEM;
> - dev_err(info->dev, "iomap for framebuffer failed\n");
> + dev_err(info->device, "iomap for framebuffer failed\n");
> goto err_iomap;
> }
>
> @@ -1004,19 +1004,19 @@ static int __devinit ark_pci_probe(struc
> rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);
> if (! ((rc == 1) || (rc == 2))) {
> rc = -EINVAL;
> - dev_err(info->dev, "mode %s not found\n", mode_option);
> + dev_err(info->device, "mode %s not found\n", mode_option);
> goto err_find_mode;
> }
>
> rc = fb_alloc_cmap(&info->cmap, 256, 0);
> if (rc < 0) {
> - dev_err(info->dev, "cannot allocate colormap\n");
> + dev_err(info->device, "cannot allocate colormap\n");
> goto err_alloc_cmap;
> }
>
> rc = register_framebuffer(info);
> if (rc < 0) {
> - dev_err(info->dev, "cannot register framebugger\n");
> + dev_err(info->device, "cannot register framebugger\n");
> goto err_reg_fb;
> }
>
> @@ -1090,7 +1090,7 @@ static int ark_pci_suspend (struct pci_d
> struct fb_info *info = pci_get_drvdata(dev);
> struct arkfb_info *par = info->par;
>
> - dev_info(info->dev, "suspend\n");
> + dev_info(info->device, "suspend\n");
>
> acquire_console_sem();
> mutex_lock(&(par->open_lock));
> @@ -1121,7 +1121,7 @@ static int ark_pci_resume (struct pci_de
> struct fb_info *info = pci_get_drvdata(dev);
> struct arkfb_info *par = info->par;
>
> - dev_info(info->dev, "resume\n");
> + dev_info(info->device, "resume\n");
>
> acquire_console_sem();
> mutex_lock(&(par->open_lock));
> diff -uprN -X linux-2.6.26-orig/Documentation/dontdiff linux-2.6.26-orig/drivers/video/s3fb.c linux-2.6.26/drivers/video/s3fb.c
> --- linux-2.6.26-orig/drivers/video/s3fb.c 2008-07-13 23:51:29.000000000 +0200
> +++ linux-2.6.26/drivers/video/s3fb.c 2008-07-16 22:44:19.000000000 +0200
> @@ -903,13 +903,13 @@ static int __devinit s3_pci_probe(struct
> /* Prepare PCI device */
> rc = pci_enable_device(dev);
> if (rc < 0) {
> - dev_err(info->dev, "cannot enable PCI device\n");
> + dev_err(info->device, "cannot enable PCI device\n");
> goto err_enable_device;
> }
>
> rc = pci_request_regions(dev, "s3fb");
> if (rc < 0) {
> - dev_err(info->dev, "cannot reserve framebuffer region\n");
> + dev_err(info->device, "cannot reserve framebuffer region\n");
> goto err_request_regions;
> }
>
> @@ -921,7 +921,7 @@ static int __devinit s3_pci_probe(struct
> info->screen_base = pci_iomap(dev, 0, 0);
> if (! info->screen_base) {
> rc = -ENOMEM;
> - dev_err(info->dev, "iomap for framebuffer failed\n");
> + dev_err(info->device, "iomap for framebuffer failed\n");
> goto err_iomap;
> }
>
> @@ -965,19 +965,19 @@ static int __devinit s3_pci_probe(struct
> rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);
> if (! ((rc == 1) || (rc == 2))) {
> rc = -EINVAL;
> - dev_err(info->dev, "mode %s not found\n", mode_option);
> + dev_err(info->device, "mode %s not found\n", mode_option);
> goto err_find_mode;
> }
>
> rc = fb_alloc_cmap(&info->cmap, 256, 0);
> if (rc < 0) {
> - dev_err(info->dev, "cannot allocate colormap\n");
> + dev_err(info->device, "cannot allocate colormap\n");
> goto err_alloc_cmap;
> }
>
> rc = register_framebuffer(info);
> if (rc < 0) {
> - dev_err(info->dev, "cannot register framebuffer\n");
> + dev_err(info->device, "cannot register framebuffer\n");
> goto err_reg_fb;
> }
>
> @@ -1053,7 +1053,7 @@ static int s3_pci_suspend(struct pci_dev
> struct fb_info *info = pci_get_drvdata(dev);
> struct s3fb_info *par = info->par;
>
> - dev_info(info->dev, "suspend\n");
> + dev_info(info->device, "suspend\n");
>
> acquire_console_sem();
> mutex_lock(&(par->open_lock));
> @@ -1085,7 +1085,7 @@ static int s3_pci_resume(struct pci_dev*
> struct s3fb_info *par = info->par;
> int err;
>
> - dev_info(info->dev, "resume\n");
> + dev_info(info->device, "resume\n");
>
> acquire_console_sem();
> mutex_lock(&(par->open_lock));
> @@ -1102,7 +1102,7 @@ static int s3_pci_resume(struct pci_dev*
> if (err) {
> mutex_unlock(&(par->open_lock));
> release_console_sem();
> - dev_err(info->dev, "error %d enabling device for resume\n", err);
> + dev_err(info->device, "error %d enabling device for resume\n", err);
> return err;
> }
> pci_set_master(dev);
> diff -uprN -X linux-2.6.26-orig/Documentation/dontdiff linux-2.6.26-orig/drivers/video/vt8623fb.c linux-2.6.26/drivers/video/vt8623fb.c
> --- linux-2.6.26-orig/drivers/video/vt8623fb.c 2008-07-13 23:51:29.000000000 +0200
> +++ linux-2.6.26/drivers/video/vt8623fb.c 2008-07-16 22:57:05.000000000 +0200
> @@ -677,13 +677,13 @@ static int __devinit vt8623_pci_probe(st
>
> rc = pci_enable_device(dev);
> if (rc < 0) {
> - dev_err(info->dev, "cannot enable PCI device\n");
> + dev_err(info->device, "cannot enable PCI device\n");
> goto err_enable_device;
> }
>
> rc = pci_request_regions(dev, "vt8623fb");
> if (rc < 0) {
> - dev_err(info->dev, "cannot reserve framebuffer region\n");
> + dev_err(info->device, "cannot reserve framebuffer region\n");
> goto err_request_regions;
> }
>
> @@ -696,14 +696,14 @@ static int __devinit vt8623_pci_probe(st
> info->screen_base = pci_iomap(dev, 0, 0);
> if (! info->screen_base) {
> rc = -ENOMEM;
> - dev_err(info->dev, "iomap for framebuffer failed\n");
> + dev_err(info->device, "iomap for framebuffer failed\n");
> goto err_iomap_1;
> }
>
> par->mmio_base = pci_iomap(dev, 1, 0);
> if (! par->mmio_base) {
> rc = -ENOMEM;
> - dev_err(info->dev, "iomap for MMIO failed\n");
> + dev_err(info->device, "iomap for MMIO failed\n");
> goto err_iomap_2;
> }
>
> @@ -714,7 +714,7 @@ static int __devinit vt8623_pci_probe(st
> if ((16 <= memsize1) && (memsize1 <= 64) && (memsize1 == memsize2))
> info->screen_size = memsize1 << 20;
> else {
> - dev_err(info->dev, "memory size detection failed (%x %x), suppose 16 MB\n", memsize1, memsize2);
> + dev_err(info->device, "memory size detection failed (%x %x), suppose 16 MB\n", memsize1, memsize2);
> info->screen_size = 16 << 20;
> }
>
> @@ -731,19 +731,19 @@ static int __devinit vt8623_pci_probe(st
> rc = fb_find_mode(&(info->var), info, mode_option, NULL, 0, NULL, 8);
> if (! ((rc == 1) || (rc == 2))) {
> rc = -EINVAL;
> - dev_err(info->dev, "mode %s not found\n", mode_option);
> + dev_err(info->device, "mode %s not found\n", mode_option);
> goto err_find_mode;
> }
>
> rc = fb_alloc_cmap(&info->cmap, 256, 0);
> if (rc < 0) {
> - dev_err(info->dev, "cannot allocate colormap\n");
> + dev_err(info->device, "cannot allocate colormap\n");
> goto err_alloc_cmap;
> }
>
> rc = register_framebuffer(info);
> if (rc < 0) {
> - dev_err(info->dev, "cannot register framebugger\n");
> + dev_err(info->device, "cannot register framebugger\n");
> goto err_reg_fb;
> }
>
> @@ -817,7 +817,7 @@ static int vt8623_pci_suspend(struct pci
> struct fb_info *info = pci_get_drvdata(dev);
> struct vt8623fb_info *par = info->par;
>
> - dev_info(info->dev, "suspend\n");
> + dev_info(info->device, "suspend\n");
>
> acquire_console_sem();
> mutex_lock(&(par->open_lock));
> @@ -848,7 +848,7 @@ static int vt8623_pci_resume(struct pci_
> struct fb_info *info = pci_get_drvdata(dev);
> struct vt8623fb_info *par = info->par;
>
> - dev_info(info->dev, "resume\n");
> + dev_info(info->device, "resume\n");
>
> acquire_console_sem();
> mutex_lock(&(par->open_lock));
>
>
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel oops with framebuffer device vt8623fb
2008-07-17 1:39 ` kernel oops with framebuffer device vt8623fb Ondrej Zajicek
2008-07-17 11:21 ` alois.klingler
2008-07-17 11:23 ` MadLoisae
@ 2008-07-29 3:48 ` Andrew Morton
2008-08-05 11:17 ` alois.klingler
2 siblings, 1 reply; 6+ messages in thread
From: Andrew Morton @ 2008-07-29 3:48 UTC (permalink / raw)
To: Ondrej Zajicek
Cc: MadLoisae, linux-fbdev-devel, Alexey Dobriyan, linux-kernel
On Thu, 17 Jul 2008 03:39:18 +0200 Ondrej Zajicek <santiago@crfreenet.org> wrote:
> On Wed, Jul 16, 2008 at 07:00:02PM +0200, MadLoisae@gmx.net wrote:
> > Hi!
> >
> > I've updated my machine from 2.6.25.11 to 2.6.26 and I think I've found
> > a problem.
> >
> > If I load the module vt8623fb i get a kernel oops, if the VIA 8623
> > display framebuffer driver is compiled direct into kernel the system
> > hangs up very early at booting the kernel.
>
> I am sorry for mistake, here is a patch for 2.6.26 fixing the bug:
>
> Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>
I went back through the email thread and wrote your changelog for you.
Not a very good one though.
It would be better were you to write your changelogs, please.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel oops with framebuffer device vt8623fb
2008-07-29 3:48 ` Andrew Morton
@ 2008-08-05 11:17 ` alois.klingler
2008-08-05 16:12 ` Andrew Morton
0 siblings, 1 reply; 6+ messages in thread
From: alois.klingler @ 2008-08-05 11:17 UTC (permalink / raw)
To: Andrew Morton; +Cc: MadLoisae, linux-fbdev-devel, Alexey Dobriyan, linux-kernel
Hi!
This issue is still not fixed in 2.6.26.1 - may be there a way to commit
it in 2.6.26.2?
Still, the provided patch I got on 07/17/2008 works great ...
Thanks, anyway!
kind regards, Alois
Andrew Morton wrote:
> On Thu, 17 Jul 2008 03:39:18 +0200 Ondrej Zajicek <santiago@crfreenet.org> wrote:
>
>
>> On Wed, Jul 16, 2008 at 07:00:02PM +0200, MadLoisae@gmx.net wrote:
>>
>>> Hi!
>>>
>>> I've updated my machine from 2.6.25.11 to 2.6.26 and I think I've found
>>> a problem.
>>>
>>> If I load the module vt8623fb i get a kernel oops, if the VIA 8623
>>> display framebuffer driver is compiled direct into kernel the system
>>> hangs up very early at booting the kernel.
>>>
>> I am sorry for mistake, here is a patch for 2.6.26 fixing the bug:
>>
>> Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>
>>
>
> I went back through the email thread and wrote your changelog for you.
> Not a very good one though.
>
> It would be better were you to write your changelogs, please.
>
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: kernel oops with framebuffer device vt8623fb
2008-08-05 11:17 ` alois.klingler
@ 2008-08-05 16:12 ` Andrew Morton
0 siblings, 0 replies; 6+ messages in thread
From: Andrew Morton @ 2008-08-05 16:12 UTC (permalink / raw)
To: alois.klingler
Cc: linux-fbdev-devel, MadLoisae, linux-kernel, Alexey, Dobriyan
On Tue, 05 Aug 2008 13:17:39 +0200 "alois.klingler@chello.at" <alois.klingler@chello.at> wrote:
>
> Andrew Morton wrote:
> > On Thu, 17 Jul 2008 03:39:18 +0200 Ondrej Zajicek <santiago@crfreenet.org> wrote:
> >
> >
> >> On Wed, Jul 16, 2008 at 07:00:02PM +0200, MadLoisae@gmx.net wrote:
> >>
> >>> Hi!
> >>>
> >>> I've updated my machine from 2.6.25.11 to 2.6.26 and I think I've found
> >>> a problem.
> >>>
> >>> If I load the module vt8623fb i get a kernel oops, if the VIA 8623
> >>> display framebuffer driver is compiled direct into kernel the system
> >>> hangs up very early at booting the kernel.
> >>>
> >> I am sorry for mistake, here is a patch for 2.6.26 fixing the bug:
> >>
> >> Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>
> >>
> >
> > I went back through the email thread and wrote your changelog for you.
> > Not a very good one though.
> >
> > It would be better were you to write your changelogs, please.
> >
>
> Hi!
>
> This issue is still not fixed in 2.6.26.1 - may be there a way to commit
> it in 2.6.26.2?
>
> Still, the provided patch I got on 07/17/2008 works great ...
>
> Thanks, anyway!
>
> kind regards, Alois
>
(top-posting repaired)
The fix will be in my next batch for Linus. It'll be merged this week.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-08-05 16:12 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <487E2911.5090701@gmx.net>
2008-07-17 1:39 ` kernel oops with framebuffer device vt8623fb Ondrej Zajicek
2008-07-17 11:21 ` alois.klingler
2008-07-17 11:23 ` MadLoisae
2008-07-29 3:48 ` Andrew Morton
2008-08-05 11:17 ` alois.klingler
2008-08-05 16:12 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).