From mboxrd@z Thu Jan 1 00:00:00 1970 From: anarsoul@gmail.com (Vasily Khoruzhick) Date: Mon, 31 Jan 2011 14:35:02 +0200 Subject: PXA270 overlay problem In-Reply-To: <201101311337.16622.marek.vasut@gmail.com> References: <201101262246.01164.anarsoul@gmail.com> <201101311337.16622.marek.vasut@gmail.com> Message-ID: <201101311435.03185.anarsoul@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Monday 31 January 2011 14:37:16 Marek Vasut wrote: > On Wednesday 26 January 2011 21:46:00 Vasily Khoruzhick wrote: > > Hi, I'm experiencing problems with overlay1/overlay2 on PXA270 using > > pxafb driver. Main problem is overlays just don't work for some reason, > > and even more - after enabling any overlay something weird happens (LCD > > blinks for a 0.5 second, and then main plane comes back, no overlay > > plane is visible), I'm getting following messages on dmesg: > > > > [ 93.679574] overlay1fb_disable: timeout disabling overlay1 > > [ 95.601537] BUG: Bad page state in process sh pfn:a1b60 > > [ 95.601645] page:c0456c00 count:0 mapcount:0 mapping: (null) > > index:0x0 [ 95.601698] page flags: 0x200(arch_1) > > [ 95.601917] [] (unwind_backtrace+0x0/0xe4) from [] > > (bad_page+0xc8/0xf4) > > [ 95.602042] [] (bad_page+0xc8/0xf4) from [] > > (get_page_from_freelist+0x378/0x494) > > [ 95.602167] [] (get_page_from_freelist+0x378/0x494) from > > [] (__alloc_pages_nodemask+0xc8/0x50c) > > [ 95.602290] [] (__alloc_pages_nodemask+0xc8/0x50c) from > > [] (__get_free_pages+0x10/0x3c) > > [ 95.602424] [] (__get_free_pages+0x10/0x3c) from > > [] (pgd_alloc+0x14/0xd0) > > [ 95.602581] [] (pgd_alloc+0x14/0xd0) from [] > > (mm_init.clone.54+0x98/0xd8) > > [ 95.602702] [] (mm_init.clone.54+0x98/0xd8) from > > [] (dup_mm+0x60/0x4e0) > > [ 95.602819] [] (dup_mm+0x60/0x4e0) from [] > > (copy_process+0x6cc/0xde4) > > [ 95.602933] [] (copy_process+0x6cc/0xde4) from [] > > (do_fork+0x160/0x334) > > [ 95.603042] [] (do_fork+0x160/0x334) from [] > > (sys_fork+0x20/0x24) > > [ 95.603196] [] (sys_fork+0x20/0x24) from [] > > (ret_fast_syscall+0x0/0x2c) > > [ 95.603264] Disabling lock debugging due to kernel taint > > [ 95.607171] BUG: Bad page state in process sh pfn:a1b64 > > [ 95.607282] page:c0456c80 count:0 mapcount:0 mapping: (null) > > index:0x0 [ 95.607335] page flags: 0x200(arch_1) > > [ 95.607556] [] (unwind_backtrace+0x0/0xe4) from [] > > (bad_page+0xc8/0xf4) > > [ 95.607680] [] (bad_page+0xc8/0xf4) from [] > > (get_page_from_freelist+0x378/0x494) > > [ 95.607805] [] (get_page_from_freelist+0x378/0x494) from > > [] (__alloc_pages_nodemask+0xc8/0x50c) > > [ 95.607955] [] (__alloc_pages_nodemask+0xc8/0x50c) from > > [] (__pte_alloc+0x20/0x1a4) > > [ 95.608080] [] (__pte_alloc+0x20/0x1a4) from [] > > (copy_page_range+0xf4/0x42c) > > [ 95.608236] [] (copy_page_range+0xf4/0x42c) from > > [] (dup_mm+0x2fc/0x4e0) > > [ 95.608355] [] (dup_mm+0x2fc/0x4e0) from [] > > (copy_process+0x6cc/0xde4) > > [ 95.608471] [] (copy_process+0x6cc/0xde4) from [] > > (do_fork+0x160/0x334) > > [ 95.608580] [] (do_fork+0x160/0x334) from [] > > (sys_fork+0x20/0x24) > > [ 95.608735] [] (sys_fork+0x20/0x24) from [] > > (ret_fast_syscall+0x0/0x2c) > > > > And kernel hangs in few minutes after that. > > > > Sample code is attached, it tries to enable 1st overlay and fill it with > > some color. > > > > Any ideas what can be wrong? > > > > Regards > > Vasily > > Do you -- by any chance -- have any weird changes to the pxafb driver? Nope, no changes to pxafb driver.