Andrew Morton | 21 Sep 01:18

Re: [Bugme-new] [Bug 18912] New: BUG: unable to handle kernel NULL pointer dereference at (null)


(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Mon, 20 Sep 2010 22:34:17 GMT bugzilla-daemon <at> bugzilla.kernel.org wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=18912
> 
>            Summary: BUG: unable to handle kernel NULL pointer dereference
>                     at (null)
>            Product: IO/Storage
>            Version: 2.5
>     Kernel Version: 2.6.35
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Other
>         AssignedTo: io_other <at> kernel-bugs.osdl.org
>         ReportedBy: thomas.creutz <at> gmx.de
>         Regression: No
> 
> 
> Created an attachment (id=30872)
>  --> (https://bugzilla.kernel.org/attachment.cgi?id=30872)
> full dmesg
> 
> at restart with ubuntu mainline kernel from there
(Continue reading)

Andrew Morton | 23 Mar 20:11

Re: [PATCH] fix Kconfig breakage in drivers/video

On Mon, 15 Mar 2010 08:39:20 +0200
Baruch Siach <baruch <at> tkos.co.il> wrote:

> Hi Krzysztof,
> 
> On Sun, Mar 14, 2010 at 10:53:29PM +0100, Krzysztof Helt wrote:
> > From: Krzysztof Helt <krzysztof.h1 <at> wp.pl>
> > 
> > There are two new options inside the CONFIG_FB section which do not
> > depend on the CONFIG_FB. This break Kconfig menu layout.
> > 
> > Fix it and reduce few conditions for sparc frame buffers
> > as the FB_SBUS == ((FB = y) && SPARC).
> > 
> > Signed-off-by: Krzysztof Helt <krzysztof.h1 <at> wp.pl>
> > ---
> > 
> > --- linux-orig/drivers/video/Kconfig	2010-03-14 23:54:39.000000000 +0100
> > +++ linux-git/drivers/video/Kconfig	2010-03-15 00:05:59.000000000 +0100
> > @@ -400,12 +400,9 @@ config FB_SA1100
> >  	  If you plan to use the LCD display with your SA-1100 system, say
> >  	  Y here.
> >  
> > -config HAVE_FB_IMX
> > -	bool
> > -
> >  config FB_IMX
> >  	tristate "Motorola i.MX LCD support"
> > -	depends on FB && (HAVE_FB_IMX || ARCH_MX1 || ARCH_MX2)
> > +	depends on FB && (ARCH_MX1 || ARCH_MX2)
(Continue reading)

David Miller | 14 Mar 23:19
Favicon

Re: [PATCH] fix Kconfig breakage in drivers/video

From: Krzysztof Helt <krzysztof.h1 <at> poczta.fm>
Date: Sun, 14 Mar 2010 22:53:29 +0100

> From: Krzysztof Helt <krzysztof.h1 <at> wp.pl>
> 
> There are two new options inside the CONFIG_FB section which do not
> depend on the CONFIG_FB. This break Kconfig menu layout.
> 
> Fix it and reduce few conditions for sparc frame buffers
> as the FB_SBUS == ((FB = y) && SPARC).
> 
> Signed-off-by: Krzysztof Helt <krzysztof.h1 <at> wp.pl>

Acked-by: David S. Miller <davem <at> davemloft.net>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Andrew Morton | 8 Dec 21:25

Re: [PATCH 2/4] da850/omap-l138: Add callback to control LCD panel power

On Tue, 08 Dec 2009 09:53:46 -0800
Kevin Hilman <khilman <at> deeprootsystems.com> wrote:

> Chaithrika U S <chaithrika <at> ti.com> writes:
> 
> > Add the platform specific callback to control LCD panel and
> > backlight power.
> >
> > Signed-off-by: Chaithrika U S <chaithrika <at> ti.com>
> > ---
> > This patch applies to DaVinci GIT tree at
> > http://git.kernel.org/?p=linux/kernel/git/khilman/linux-davinci.git;a=summary
> 
> Andrew,
> 
> I see you have pulled this series into -mm.  Thanks.  The
> drivers/video/* changes in patches 1,3 and 4 should go upstream
> through you, but I'd like to request that you drop this patch (PATCH
> 2/4) from your queue, and I will queue it in davinci-next.

I autodrop patches when they turn up in linux-next.  So if you want to
merge something then please just merge away, then I'll drop my copy.

This way patches don't get lost, and I get to check whether the patch
which was in linux-next matches the version I had, and whether the patch
which was merged into linux-next is missing any followup patches which
I had accumulated against the original.

------------------------------------------------------------------------------
Return on Information:
(Continue reading)

Henry Nestler | 2 Dec 03:59
Picon

[PATCH 4/4] fbcon: Replace vc_cursor_type mask 0x10 with CUR_USE_SW

from: Henry Nestler <henry.nestler <at> gmail.com>

Replace hard coded vc_cursor_type mask 0x10 with macro CUR_USE_SW.

Signed-off-by: Henry Nestler <henry.nestler <at> gmail.com>
---

This patch depends on [patch 3/4], because it used new macro CUR_USE_SW 0x10.

Kernel version 2.6.32-rc8

 drivers/video/console/tileblit.c        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/console/tileblit.c b/drivers/video/console/tileblit.c
--- a/drivers/video/console/tileblit.c
+++ b/drivers/video/console/tileblit.c
@@ -83,7 +83,7 @@ static void tile_cursor(struct vc_data *vc, struct
fb_info *info, int mode,
 			int softback_lines, int fg, int bg)
 {
 	struct fb_tilecursor cursor;
-	int use_sw = (vc->vc_cursor_type & 0x10);
+	int use_sw = (vc->vc_cursor_type & CUR_USE_SW);

 	cursor.sx = vc->vc_x;
 	cursor.sy = vc->vc_y;
===

------------------------------------------------------------------------------
(Continue reading)

Henry Nestler | 2 Dec 03:52
Picon

[PATCH 3/4] fbcon: Bugfix soft cursor detection in Tile Blitting

from: Henry Nestler <henry.nestler <at> gmail.com>

Use mask 0x10 for "soft cursor" detection on in function tile_cursor.
(Tile Blitting Operation in framebuffer console).

The old mask 0x01 for vc_cursor_type detects CUR_NONE, CUR_LOWER_THIRD
and every second mode value as "software cursor". This hides the cursor
for these modes (cursor.mode = 0). But, only CUR_NONE or "software cursor"
should hide the cursor.

Signed-off-by: Henry Nestler <henry.nestler <at> gmail.com>
---
Kernel version 2.6.32-rc8

 drivers/video/console/tileblit.c        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/console/tileblit.c b/drivers/video/console/tileblit.c
index 0056a41..15e8e1a 100644
--- a/drivers/video/console/tileblit.c
+++ b/drivers/video/console/tileblit.c
@@ -83,7 +83,7 @@ static void tile_cursor(struct vc_data *vc, struct
fb_info *info, int mode,
 			int softback_lines, int fg, int bg)
 {
 	struct fb_tilecursor cursor;
-	int use_sw = (vc->vc_cursor_type & 0x01);
+	int use_sw = (vc->vc_cursor_type & 0x10);

 	cursor.sx = vc->vc_x;
(Continue reading)

Henry Nestler | 2 Dec 03:50
Picon

[PATCH 2/4] fbcon: Macro CUR_USE_SW for vc_cursor_type mask 0x10

from: Henry Nestler <henry.nestler <at> gmail.com>

Replace hard coded 0x10 mask for vc_cursor_type with new macro CUR_USE_SW.

Signed-off-by: Henry Nestler <henry.nestler <at> gmail.com>
---
Kernel version 2.6.32-rc8

 drivers/char/vt.c                       |    2 +-
 drivers/video/console/bitblit.c         |    2 +-
 drivers/video/console/fbcon.c           |    2 +-
 drivers/video/console/fbcon_ccw.c       |    2 +-
 drivers/video/console/fbcon_cw.c        |    2 +-
 drivers/video/console/fbcon_ud.c        |    2 +-
 include/linux/console_struct.h          |    1 +
 7 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/char/vt.c b/drivers/char/vt.c
index 0c80c68..f8b0f58 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -566,7 +566,7 @@ static void add_softcursor(struct vc_data *vc)
 	int i = scr_readw((u16 *) vc->vc_pos);
 	u32 type = vc->vc_cursor_type;

-	if (! (type & 0x10)) return;
+	if (! (type & CUR_USE_SW)) return;
 	if (softcursor_original != -1) return;
 	softcursor_original = i;
 	i |= ((type >> 8) & 0xff00 );
(Continue reading)

Henry Nestler | 2 Dec 03:45
Picon

[PATCH 1/4] vt: Replace mask 0x0f with macro CUR_HWMASK

from: Henry Nestler <henry.nestler <at> gmail.com>

Replace hard coded 0x0f with pre-defined macro CUR_HWMASK
to mask vc_cursor_type, and replace hard coded 1 with CUR_NONE.

Signed-off-by: Henry Nestler <henry.nestler <at> gmail.com>
---
Kernel version 2.6.32-rc8

 drivers/char/vt.c                       |    2 +-
 drivers/usb/misc/sisusbvga/sisusb_con.c |    2 +-
 drivers/video/console/mdacon.c          |    2 +-
 drivers/video/console/sticon.c          |    2 +-
 drivers/video/console/tileblit.c        |    2 +-
 drivers/video/console/vgacon.c          |    2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/char/vt.c b/drivers/char/vt.c
index 0c80c68..26cf397 100644
--- a/drivers/char/vt.c
+++ b/drivers/char/vt.c
@@ -606,7 +606,7 @@ static void set_cursor(struct vc_data *vc)
 		if (vc == sel_cons)
 			clear_selection();
 		add_softcursor(vc);
-		if ((vc->vc_cursor_type & 0x0f) != 1)
+		if ((vc->vc_cursor_type & CUR_HWMASK) != CUR_NONE)
 			vc->vc_sw->con_cursor(vc, CM_DRAW);
 	} else
 		hide_cursor(vc);
(Continue reading)

Dan Carpenter | 22 Nov 15:21
Picon

[patch] fix oops with no /proc

Fixed a typo:  missing *.  This would lead to a kernel oops if the kernel
was compiled without support for the /proc file system.

Found with a static checker.  Compile tested.

regards,
dan carpenter

Signed-off-by: Dan Carpenter <error27 <at> gmail.com>

--- orig/drivers/video/via/viafbdev.c	2009-11-21 14:44:33.000000000 +0200
+++ devel/drivers/video/via/viafbdev.c	2009-11-21 14:44:43.000000000 +0200
@@ -1797,7 +1797,7 @@ static const struct file_operations viaf
 static void viafb_init_proc(struct proc_dir_entry **viafb_entry)
 {
 	*viafb_entry = proc_mkdir("viafb", NULL);
-	if (viafb_entry) {
+	if (*viafb_entry) {
 		proc_create("dvp0", 0, *viafb_entry, &viafb_dvp0_proc_fops);
 		proc_create("dvp1", 0, *viafb_entry, &viafb_dvp1_proc_fops);
 		proc_create("dfph", 0, *viafb_entry, &viafb_dfph_proc_fops);

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Ben Dooks | 23 Nov 17:01
Picon
Favicon

[PATCH 1/4] FRAMEBUFFER: Fix cfbfillrect for non-zero colours.

From: Vincent Sanders <vince <at> simtec.co.uk>

The cfbfillrect routine was incorrectly using the palette to lookup true and
direct colours, but using indexed colours directly. This was simply the
inversion of the sense of an 'if' statement. This patch fixes that so that
colours other than black work properly for cfbfillrect.

Signed-off-by: Vincent Sanders <vince <at> simtec.co.uk>
Signed-off-by: Simtec Linux Team <linux <at> simtec.co.uk>

---
 drivers/video/cfbfillrect.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: b/drivers/video/cfbfillrect.c
===================================================================
--- a/drivers/video/cfbfillrect.c	2009-05-10 14:11:19.000000000 +0100
+++ b/drivers/video/cfbfillrect.c	2009-05-10 14:16:33.000000000 +0100
@@ -289,9 +289,9 @@ void cfb_fillrect(struct fb_info *p, con

 	if (p->fix.visual == FB_VISUAL_TRUECOLOR ||
 	    p->fix.visual == FB_VISUAL_DIRECTCOLOR )
-		fg = ((u32 *) (p->pseudo_palette))[rect->color];
-	else
 		fg = rect->color;
+	else
+		fg = ((u32 *) (p->pseudo_palette))[rect->color];

 	pat = pixel_to_pat(bpp, fg);

(Continue reading)

Ben Dooks | 23 Nov 17:01
Picon
Favicon

[PATCH 4/4] SM501: Implement acceleration features

From: Vincent Sanders <vince <at> simtec.co.uk>

This patch provides the acceleration entry points for the SM501
framebuffer driver.

This patch provides the sync, copyarea and fillrect entry points,
using the SM501's 2D acceleration engine to perform the operations
in-chip rather than across the bus.

Signed-off-by: Simtec Linux Team <linux <at> simtec.co.uk>
Signed-off-by: Vincent Sanders <vince <at> simtec.co.uk>

---
 drivers/video/sm501fb.c    |  237 ++++++++++++++++++++++++++++++++++++++++++---
 include/linux/sm501-regs.h |    2 
 2 files changed, 226 insertions(+), 13 deletions(-)

Index: b/drivers/video/sm501fb.c
===================================================================
--- a/drivers/video/sm501fb.c	2009-11-23 10:30:13.000000000 +0000
+++ b/drivers/video/sm501fb.c	2009-11-23 10:30:16.000000000 +0000
@@ -66,6 +66,7 @@ struct sm501fb_info {
 	struct fb_info		*fb[2];		/* fb info for both heads */
 	struct resource		*fbmem_res;	/* framebuffer resource */
 	struct resource		*regs_res;	/* registers resource */
+	struct resource		*regs2d_res;	/* 2d registers resource */
 	struct sm501_platdata_fb *pdata;	/* our platform data */

 	unsigned long		 pm_crt_ctrl;	/* pm: crt ctrl save */
@@ -73,6 +74,7 @@ struct sm501fb_info {
(Continue reading)


Gmane