dsp: don't use registered_fb[1]
Subsystems (2)
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
@@ -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 */
Quoted 22 lines · Arnaud Patard
According to
dsp_fbexport(), the dsp code handles only the first registered framebuffer, so using registered_fb[1] inmbox_fbctl_updis 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 andomapfb_update_window_asyncdoesn't handle this case. The fix foromapfb_update_window_asyncis sent in an other mail.Signed-off-by Arnaud Patard <[email protected]>---
---
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
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] inmbox_fbctl_updis 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 andomapfb_update_window_asyncdoesn't handle this case. The fix foromapfb_update_window_asyncis sent in an other mail.Signed-off-by Arnaud Patard <[email protected]>---
---
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
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 -0800Quoted 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] inmbox_fbctl_updis 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 andomapfb_update_window_asyncdoesn't handle this case. The fix foromapfb_update_window_asyncis sent in an other mail.Signed-off-by Arnaud Patard <[email protected]>---
---
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