Skip to contentSkip to conversation

dsp: don't use registered_fb[1]

PATCH In review Arnaud Patard (Rtp) 3 participants 4 messages Jan 14, 2007 – Jan 31, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dsp: don't use registered_fb[1]

According to dsp_fbexport(), the dsp code handles only the first registered framebuffer, so using registered_fb[1] in mbox_fbctl_upd is wrong. registered_fb[0] must be used instead.
This code has also the side effect to oops the kernel as registered_fb[1] is null and omapfb_update_window_async doesn't handle this case. The fix for omapfb_update_window_async is sent in an other mail.

---

---
arch/arm/plat-omap/dsp/dsp_mem.c | 2 1 + 1 - 0 !

 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/plat-omap/dsp/dsp_mem.c +1 -1
Index: linux-omap-2.6/arch/arm/plat-omap/dsp/dsp_mem.c
===================================================================
@@ -2052,7 +2052,7 @@ void mbox_fbctl_upd(void)
 		return;
 	}
 	//printk("calling omapfb_update_window_async()\n");
-	omapfb_update_window_async(registered_fb[1], &win, fbupd_cb, NULL);
+	omapfb_update_window_async(registered_fb[0], &win, fbupd_cb, NULL);
 }
 
 #else /* CONFIG_FB_OMAP_LCDC_EXTERNAL */
#1 lore raw
Quoted 22 lines · Arnaud Patard

According to dsp_fbexport(), the dsp code handles only the first registered framebuffer, so using registered_fb[1] in mbox_fbctl_upd is wrong. registered_fb[0] must be used instead.
This code has also the side effect to oops the kernel as registered_fb[1] is null and omapfb_update_window_async doesn't handle this case. The fix for omapfb_update_window_async is sent in an other mail.

---

---
arch/arm/plat-omap/dsp/dsp_mem.c | 2 1 + 1 - 0 !

 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-omap-2.6/arch/arm/plat-omap/dsp/dsp_mem.c
===================================================================

arch/arm/plat-omap/dsp/dsp_mem.c void mbox_fbctl_upd(void) · line 2058

Quoted 8 lines
arch/arm/plat-omap/dsp/dsp_mem.c +1 -1
@@ -2052,7 +2052,7 @@ void mbox_fbctl_upd(void)
 		return;
 	}
 	//printk("calling omapfb_update_window_async()\n");
-	omapfb_update_window_async(registered_fb[1], &win, fbupd_cb, NULL);
+	omapfb_update_window_async(registered_fb[0], &win, fbupd_cb, NULL);
 }
 
 #else /* CONFIG_FB_OMAP_LCDC_EXTERNAL */

Toshihiro and Hiroshi, can you ack this one?

Regards,

Tony

#2 lore raw

Acked.

From: "ext Tony Lindgren" <[email protected]>
Subject: Re: [PATCH] dsp: don't use registered_fb[1]
Date: Fri, 26 Jan 2007 13:51:24 -0800

Quoted 37 lines · Arnaud Patard
Quoted 22 lines

According to dsp_fbexport(), the dsp code handles only the first registered framebuffer, so using registered_fb[1] in mbox_fbctl_upd is wrong. registered_fb[0] must be used instead.
This code has also the side effect to oops the kernel as registered_fb[1] is null and omapfb_update_window_async doesn't handle this case. The fix for omapfb_update_window_async is sent in an other mail.

---

---
arch/arm/plat-omap/dsp/dsp_mem.c | 2 1 + 1 - 0 !

 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-omap-2.6/arch/arm/plat-omap/dsp/dsp_mem.c
===================================================================

arch/arm/plat-omap/dsp/dsp_mem.c void mbox_fbctl_upd(void) · line 2058

Quoted 8 lines
arch/arm/plat-omap/dsp/dsp_mem.c +1 -1
@@ -2052,7 +2052,7 @@ void mbox_fbctl_upd(void)
 		return;
 	}
 	//printk("calling omapfb_update_window_async()\n");
-	omapfb_update_window_async(registered_fb[1], &win, fbupd_cb, NULL);
+	omapfb_update_window_async(registered_fb[0], &win, fbupd_cb, NULL);
 }
 
 #else /* CONFIG_FB_OMAP_LCDC_EXTERNAL */

Toshihiro and Hiroshi, can you ack this one?

Regards,

Tony

#3 lore raw
Quoted 39 lines · Hiroshi DOYU

Acked.

From: "ext Tony Lindgren" <[email protected]>
Subject: Re: [PATCH] dsp: don't use registered_fb[1]
Date: Fri, 26 Jan 2007 13:51:24 -0800

Quoted 33 lines · Arnaud Patard
Quoted 22 lines

According to dsp_fbexport(), the dsp code handles only the first registered framebuffer, so using registered_fb[1] in mbox_fbctl_upd is wrong. registered_fb[0] must be used instead.
This code has also the side effect to oops the kernel as registered_fb[1] is null and omapfb_update_window_async doesn't handle this case. The fix for omapfb_update_window_async is sent in an other mail.

---

---
arch/arm/plat-omap/dsp/dsp_mem.c | 2 1 + 1 - 0 !

 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-omap-2.6/arch/arm/plat-omap/dsp/dsp_mem.c
===================================================================

arch/arm/plat-omap/dsp/dsp_mem.c void mbox_fbctl_upd(void) · line 2058

Quoted 8 lines
arch/arm/plat-omap/dsp/dsp_mem.c +1 -1
@@ -2052,7 +2052,7 @@ void mbox_fbctl_upd(void)
 		return;
 	}
 	//printk("calling omapfb_update_window_async()\n");
-	omapfb_update_window_async(registered_fb[1], &win, fbupd_cb, NULL);
+	omapfb_update_window_async(registered_fb[0], &win, fbupd_cb, NULL);
 }
 
 #else /* CONFIG_FB_OMAP_LCDC_EXTERNAL */

Toshihiro and Hiroshi, can you ack this one?

Pushing today.

Tony