omapfb not initialised - ioremap failure

Bug #624115 reported by Dave Martin
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Linaro Linux
Fix Released
High
Nicolas Pitre
linux-linaro (Ubuntu)
Fix Released
High
John Rigby

Bug Description

omapfb does not seem to work for me in the linaro trees right now.

Tested on Beagle C3 (I've also had reports of similar problems with omapfb on OMAP3EVM).

I tried the following kernel trees and configurations (actual files attached below)

git://git.linaro.org/ubuntu/linux-linaro.git (linaro-2.6.35-2 branch)
HEAD is ea914bd44cd2b7c31313a2c72225471b2bedbdce

Successful build:
 * config: config-linaro_linaro-2.6.35-2
 * build log: make.log-linaro_linaro-2.6.35-2
 * dmesg output: dmesg-linaro_linaro-2.6.35-2.txt

8<--
[ 1.833618] OMAPFB: omapfb_init
[ 1.833740] OMAPFB: omapfb_probe
[ 1.833831] fbcvt: 1280x720@60: CVT Name - .921M9-R
[ 1.838867] OMAPFB: create 3 framebuffers
[ 1.838897] OMAPFB: fb_infos allocated
[ 1.838928] OMAPFB: allocating 1843200 bytes for fb 0
[ 1.850341] ------------[ cut here ]------------
[ 1.855102] WARNING: at arch/arm/mm/ioremap.c:207 __arm_ioremap_pfn_caller+0x20c/0x214()
[ 1.863281] Modules linked in:
[ 1.866424] [<c004b2fc>] (unwind_backtrace+0x0/0x100) from [<c04fed38>] (dump_stack+0x18/0x1c)
[ 1.875183] [<c04fed38>] (dump_stack+0x18/0x1c) from [<c0080fc4>] (warn_slowpath_common+0x5c/0x6c)
[ 1.884277] [<c0080fc4>] (warn_slowpath_common+0x5c/0x6c) from [<c0080ff8>] (warn_slowpath_null+0x24/0x2c)
[ 1.894073] [<c0080ff8>] (warn_slowpath_null+0x24/0x2c) from [<c00500cc>] (__arm_ioremap_pfn_caller+0x20c/0x214)
[ 1.904388] [<c00500cc>] (__arm_ioremap_pfn_caller+0x20c/0x214) from [<c0050150>] (__arm_ioremap_caller+0x5c/0x64)
[ 1.914855] [<c0050150>] (__arm_ioremap_caller+0x5c/0x64) from [<c0063484>] (omap_ioremap+0x7c/0x90)
[ 1.924133] [<c0063484>] (omap_ioremap+0x7c/0x90) from [<c02d6ed8>] (omapfb_alloc_fbmem+0x94/0x1ec)
[ 1.933319] [<c02d6ed8>] (omapfb_alloc_fbmem+0x94/0x1ec) from [<c02d7364>] (omapfb_allocate_all_fbs+0x334/0x460)
[ 1.943634] [<c02d7364>] (omapfb_allocate_all_fbs+0x334/0x460) from [<c02d8430>] (omapfb_probe+0x324/0xb24)
[ 1.953491] [<c02d8430>] (omapfb_probe+0x324/0xb24) from [<c030db48>] (platform_drv_probe+0x20/0x24)
[ 1.962768] [<c030db48>] (platform_drv_probe+0x20/0x24) from [<c030c728>] (driver_probe_device+0xa4/0x1ac)
[ 1.972564] [<c030c728>] (driver_probe_device+0xa4/0x1ac) from [<c030c8c4>] (__driver_attach+0x94/0x98)
[ 1.982086] [<c030c8c4>] (__driver_attach+0x94/0x98) from [<c030be08>] (bus_for_each_dev+0x68/0x94)
[ 1.991271] [<c030be08>] (bus_for_each_dev+0x68/0x94) from [<c030c594>] (driver_attach+0x24/0x28)
[ 2.000274] [<c030c594>] (driver_attach+0x24/0x28) from [<c030b540>] (bus_add_driver+0xd8/0x328)
[ 2.009185] [<c030b540>] (bus_add_driver+0xd8/0x328) from [<c030cbb0>] (driver_register+0x80/0x198)
[ 2.018341] [<c030cbb0>] (driver_register+0x80/0x198) from [<c030e09c>] (platform_driver_register+0x5c/0x60)
[ 2.028320] [<c030e09c>] (platform_driver_register+0x5c/0x60) from [<c0026c20>] (omapfb_init+0x38/0x54)
[ 2.037841] [<c0026c20>] (omapfb_init+0x38/0x54) from [<c00433d4>] (do_one_initcall+0x3c/0x1dc)
[ 2.046661] [<c00433d4>] (do_one_initcall+0x3c/0x1dc) from [<c0008634>] (kernel_init+0xe4/0x180)
[ 2.055603] [<c0008634>] (kernel_init+0xe4/0x180) from [<c0044b44>] (kernel_thread_exit+0x0/0x8)
[ 2.064483] ---[ end trace 2de355b0b6b05a1d ]---
[ 2.069152] omapfb omapfb: failed to ioremap framebuffer
[ 2.074615] usb 1-2: new high speed USB device using ehci-omap and address 2
[ 2.081848] omapfb omapfb: failed to allocate fbmem
[ 2.086853] OMAPFB: free_resources
[ 2.086883] OMAPFB: free all fbmem
[ 2.086883] omapfb omapfb: failed to setup omapfb
[ 2.091705] omapfb: probe of omapfb failed with error -12
[ 2.097717] regulator_init_complete: incomplete constraints, leaving VPLL2 on
[ 2.105255] regulator_init_complete: incomplete constraints, leaving VDAC on
[ 2.112792] regulator_init_complete: incomplete constraints, leaving VUSB3V1 on
[ 2.120574] regulator_init_complete: incomplete constraints, leaving VUSB1V8 on
[ 2.128356] regulator_init_complete: incomplete constraints, leaving VUSB1V5 on
-->8

git://git.linaro.org/kernel/linux-linaro-2.6.35.git (master branch)
HEAD is ecb90040e319cb49de5f376c8bb2d2165bc33ce0

Failed build 1:
 * config: config.fail-linaro-2.6.35_master (should be default linaro config for omap flavour)
 * build log: make.log.fail-linaro-2.6.35_master
8<--
drivers/mtd/nand/omap2.c: In function 'omap_nand_dma_transfer':
drivers/mtd/nand/omap2.c:416: error: too few arguments to function 'gpmc_prefetch_reset'
-->8

Failed build 2: (disabled CONFIG_MTD_NAND_OMAP2)
 * config: config.fail-2-linaro-2.6.35_master
 * build log: make.log.fail-2-linaro-2.6.35_master
8<--
arch/arm/mach-omap2/built-in.o: In function `omap3_evm_init':
/home/davem/src/linux-linaro-stable-2/arch/arm/mach-omap2/board-omap3evm.c:684: undefined reference to `usb_nop_xceiv_register'
-->8

Successful build: (also disabled CONFIG_MACH_OMAP3EVM, CONFIG_MACH_OMAP3517EVM)
 * config: config-linaro-2.6.35_master
 * build log: make.log-linaro-2.6.35_master
 * dmesg-linaro-2.6.35_master.txt
8<--
[ 1.695587] OMAPFB: omapfb_init
[ 1.695770] OMAPFB: omapfb_probe
[ 1.695770] omapfb omapfb: no displays
[ 1.699584] OMAPFB: free_resources
[ 1.699584] OMAPFB: free all fbmem
[ 1.699584] omapfb omapfb: failed to setup omapfb
[ 1.704437] omapfb: probe of omapfb failed with error -22
[ 1.711486] regulator_init_complete: incomplete constraints, leaving VDVI on
[ 1.720977] regulator_init_complete: incomplete constraints, leaving VDAC on
[ 1.728515] regulator_init_complete: incomplete constraints, leaving VUSB3V1 on
[ 1.736206] regulator_init_complete: incomplete constraints, leaving VUSB1V8 on
[ 1.743896] regulator_init_complete: incomplete constraints, leaving VUSB1V5
-->8

Tags: armel omap
Revision history for this message
Dave Martin (dave-martin-arm) wrote :
Revision history for this message
Dave Martin (dave-martin-arm) wrote :
Revision history for this message
Dave Martin (dave-martin-arm) wrote :
Revision history for this message
Dave Martin (dave-martin-arm) wrote :
Revision history for this message
Dave Martin (dave-martin-arm) wrote :
Revision history for this message
Dave Martin (dave-martin-arm) wrote :
Revision history for this message
Dave Martin (dave-martin-arm) wrote :
Revision history for this message
Dave Martin (dave-martin-arm) wrote :
Revision history for this message
Dave Martin (dave-martin-arm) wrote :
Revision history for this message
Dave Martin (dave-martin-arm) wrote :
Revision history for this message
John Rigby (jcrigby) wrote :

This is fixed by (after cleaning up the patch): http://permalink.gmane.org/gmane.linux.ports.arm.omap/41348

Revision history for this message
John Rigby (jcrigby) wrote :

Tested fix on Beagle C4 and xM.

Revision history for this message
Loïc Minier (lool) wrote :

Nico, mind merging http://permalink.gmane.org/gmane.linux.ports.arm.omap/41348 into linux-linaro stable and -next?

Thanks

Changed in linux-linaro:
status: New → Triaged
Changed in linux-linaro (Ubuntu):
status: New → Triaged
Changed in linux-linaro:
assignee: nobody → Nicolas Pitre (npitre)
Changed in linux-linaro (Ubuntu):
assignee: nobody → John Rigby (jcrigby)
Changed in linux-linaro:
importance: Undecided → High
Changed in linux-linaro (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux-linaro - 2.6.35-1004.9

---------------
linux-linaro (2.6.35-1004.9) maverick; urgency=low

  [ Upstream Kernel Changes ]

  * ARM: OMAP: Beagle: revision detection
    - LP: #613855
  * ARM: OMAP: Beagle: only Cx boards use pin 23 for write protect
    - LP: #613855
  * ARM: OMAP: Beagle: no gpio_wp pin connection on xM
    - LP: #613855
  * OMAP: DSS2: OMAPFB: use phys_to_virt for RAM mappings
    - LP: #624115
 -- John Rigby <email address hidden> Fri, 27 Aug 2010 20:27:29 -0600

Changed in linux-linaro (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Tom Gall (tom-gall) wrote :
Download full text (3.5 KiB)

On my Rev A2 Beagle-XM using the beta candidate:

cat /proc/cmdline
console=tty0 console=ttyS2,115200n8 earlyprintk fixrtc nocompcache root=UUID=1a62aa74-64be-43ec-90da-4a8272f3f293 rootwait ro vram=12M omapfb.debug=y omapfb.mode=dvi:1280x720MR-16@60

at bootup the following is seen in the dmsg:

[ 6.822784] ------------[ cut here ]------------
[ 6.827514] WARNING: at /build/buildd/linux-linaro-2.6.35/arch/arm/mm/ioremap.c:207 __arm_ioremap_pfn_caller+0x20c/0x214()
[ 6.838745] Modules linked in:
[ 6.841918] [<c004a3e0>] (unwind_backtrace+0x0/0x100) from [<c05074b8>] (dump_stack+0x18/0x1c)
[ 6.850708] [<c05074b8>] (dump_stack+0x18/0x1c) from [<c008054c>] (warn_slowpath_common+0x5c/0x6c)
[ 6.859832] [<c008054c>] (warn_slowpath_common+0x5c/0x6c) from [<c0080580>] (warn_slowpath_null+0x24/0x2c)
[ 6.869659] [<c0080580>] (warn_slowpath_null+0x24/0x2c) from [<c004f1c4>] (__arm_ioremap_pfn_caller+0x20c/0x214)
[ 6.879974] [<c004f1c4>] (__arm_ioremap_pfn_caller+0x20c/0x214) from [<c004f248>] (__arm_ioremap_caller+0x5c/0x64)
[ 6.890502] [<c004f248>] (__arm_ioremap_caller+0x5c/0x64) from [<c0062bc8>] (omap_ioremap+0x7c/0x90)
[ 6.899780] [<c0062bc8>] (omap_ioremap+0x7c/0x90) from [<c02dba7c>] (omapfb_alloc_fbmem+0x94/0x1ec)
[ 6.908996] [<c02dba7c>] (omapfb_alloc_fbmem+0x94/0x1ec) from [<c02dbc80>] (omapfb_alloc_fbmem_display+0xac/0x19c)
[ 6.919494] [<c02dbc80>] (omapfb_alloc_fbmem_display+0xac/0x19c) from [<c02dbf48>] (omapfb_allocate_all_fbs+0x1d8/0x260)
[ 6.930541] [<c02dbf48>] (omapfb_allocate_all_fbs+0x1d8/0x260) from [<c02dce3c>] (omapfb_create_framebuffers+0x1a8/0x4c8)
[ 6.941650] [<c02dce3c>] (omapfb_create_framebuffers+0x1a8/0x4c8) from [<c02dd2e8>] (omapfb_probe+0x18c/0x488)
[ 6.951812] [<c02dd2e8>] (omapfb_probe+0x18c/0x488) from [<c03124e8>] (platform_drv_probe+0x20/0x24)
[ 6.961120] [<c03124e8>] (platform_drv_probe+0x20/0x24) from [<c031106c>] (really_probe+0x6c/0x168)
[ 6.970306] [<c031106c>] (really_probe+0x6c/0x168) from [<c03111b8>] (driver_probe_device+0x50/0x68)
[ 6.979583] [<c03111b8>] (driver_probe_device+0x50/0x68) from [<c0311264>] (__driver_attach+0x94/0x98)
[ 6.989044] [<c0311264>] (__driver_attach+0x94/0x98) from [<c0310784>] (bus_for_each_dev+0x68/0x94)
[ 6.998229] [<c0310784>] (bus_for_each_dev+0x68/0x94) from [<c0310f10>] (driver_attach+0x24/0x28)
[ 7.007232] [<c0310f10>] (driver_attach+0x24/0x28) from [<c030febc>] (bus_add_driver+0xd8/0x328)
[ 7.016174] [<c030febc>] (bus_add_driver+0xd8/0x328) from [<c0311550>] (driver_register+0x80/0x198)
[ 7.025360] [<c0311550>] (driver_register+0x80/0x198) from [<c0312a3c>] (platform_driver_register+0x5c/0x60)
[ 7.035339] [<c0312a3c>] (platform_driver_register+0x5c/0x60) from [<c0026654>] (omapfb_init+0x38/0x54)
[ 7.044891] [<c0026654>] (omapfb_init+0x38/0x54) from [<c00423c4>] (do_one_initcall+0x3c/0x1dc)
[ 7.053741] [<c00423c4>] (do_one_initcall+0x3c/0x1dc) from [<c00085b4>] (do_basic_setup+0x64/0x74)
[ 7.062835] [<c00085b4>] (do_basic_setup+0x64/0x74) from [<c0008654>] (kernel_init+0x90/0x120)
[ 7.071594] [<c0008654>] (kernel_init+0x90/0x120) from [<c0043b04>] (kernel_thread_exit+0x0/0x8)
[ 7.08053...

Read more...

Revision history for this message
Tom Gall (tom-gall) wrote :

The Daily 0831-2 build does not have this issue on either my Rev C4 Beagle nor does it have this issue on my Rev A2 Beagle XM

I think this bug can be marked fixed.

Revision history for this message
Loïc Minier (lool) wrote :

Tom, the bug is marked as fixed in the ubuntu/linux-linaro source package, but there's an open task in merging that fix in git.linaro.org/kernel/linux-linaro*.git trees.

Revision history for this message
John Rigby (jcrigby) wrote :

The fix has been committed to git.linaro.org/kernel/linux-linaro-2.6.35.git:

http://git.linaro.org/gitweb?p=kernel/linux-linaro-2.6.35.git;a=commit;h=a0e1e0f754955ad1237ff38286717773b58168c1

but not git://git.linaro.org/kernel/linux-linaro-next.git

Revision history for this message
Nicolas Pitre (npitre) wrote : Re: [Bug 624115] Re: omapfb not initialised - ioremap failure
Download full text (6.5 KiB)

Done, plus a few others.

On Wed, 1 Sep 2010, John Rigby wrote:

> The fix has been committed to git.linaro.org/kernel/linux-
> linaro-2.6.35.git:
>
> http://git.linaro.org/gitweb?p=kernel/linux-
> linaro-2.6.35.git;a=commit;h=a0e1e0f754955ad1237ff38286717773b58168c1
>
> but not git://git.linaro.org/kernel/linux-linaro-next.git
>
> --
> omapfb not initialised - ioremap failure
> https://bugs.launchpad.net/bugs/624115
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in Linaro Linux: Triaged
> Status in “linux-linaro” package in Ubuntu: Fix Released
>
> Bug description:
> omapfb does not seem to work for me in the linaro trees right now.
>
> Tested on Beagle C3 (I've also had reports of similar problems with omapfb on OMAP3EVM).
>
>
> I tried the following kernel trees and configurations (actual files attached below)
>
> git://git.linaro.org/ubuntu/linux-linaro.git (linaro-2.6.35-2 branch)
> HEAD is ea914bd44cd2b7c31313a2c72225471b2bedbdce
>
> Successful build:
> * config: config-linaro_linaro-2.6.35-2
> * build log: make.log-linaro_linaro-2.6.35-2
> * dmesg output: dmesg-linaro_linaro-2.6.35-2.txt
>
> 8<--
> [ 1.833618] OMAPFB: omapfb_init
> [ 1.833740] OMAPFB: omapfb_probe
> [ 1.833831] fbcvt: 1280x720@60: CVT Name - .921M9-R
> [ 1.838867] OMAPFB: create 3 framebuffers
> [ 1.838897] OMAPFB: fb_infos allocated
> [ 1.838928] OMAPFB: allocating 1843200 bytes for fb 0
> [ 1.850341] ------------[ cut here ]------------
> [ 1.855102] WARNING: at arch/arm/mm/ioremap.c:207 __arm_ioremap_pfn_caller+0x20c/0x214()
> [ 1.863281] Modules linked in:
> [ 1.866424] [<c004b2fc>] (unwind_backtrace+0x0/0x100) from [<c04fed38>] (dump_stack+0x18/0x1c)
> [ 1.875183] [<c04fed38>] (dump_stack+0x18/0x1c) from [<c0080fc4>] (warn_slowpath_common+0x5c/0x6c)
> [ 1.884277] [<c0080fc4>] (warn_slowpath_common+0x5c/0x6c) from [<c0080ff8>] (warn_slowpath_null+0x24/0x2c)
> [ 1.894073] [<c0080ff8>] (warn_slowpath_null+0x24/0x2c) from [<c00500cc>] (__arm_ioremap_pfn_caller+0x20c/0x214)
> [ 1.904388] [<c00500cc>] (__arm_ioremap_pfn_caller+0x20c/0x214) from [<c0050150>] (__arm_ioremap_caller+0x5c/0x64)
> [ 1.914855] [<c0050150>] (__arm_ioremap_caller+0x5c/0x64) from [<c0063484>] (omap_ioremap+0x7c/0x90)
> [ 1.924133] [<c0063484>] (omap_ioremap+0x7c/0x90) from [<c02d6ed8>] (omapfb_alloc_fbmem+0x94/0x1ec)
> [ 1.933319] [<c02d6ed8>] (omapfb_alloc_fbmem+0x94/0x1ec) from [<c02d7364>] (omapfb_allocate_all_fbs+0x334/0x460)
> [ 1.943634] [<c02d7364>] (omapfb_allocate_all_fbs+0x334/0x460) from [<c02d8430>] (omapfb_probe+0x324/0xb24)
> [ 1.953491] [<c02d8430>] (omapfb_probe+0x324/0xb24) from [<c030db48>] (platform_drv_probe+0x20/0x24)
> [ 1.962768] [<c030db48>] (platform_drv_probe+0x20/0x24) from [<c030c728>] (driver_probe_device+0xa4/0x1ac)
> [ 1.972564] [<c030c728>] (driver_probe_device+0xa4/0x1ac) from [<c030c8c4>] (__driver_attach+0x94/0x98)
> [ 1.982086] [<c030c8c4>] (__driver_attach+0x94/0x98) from [<c030be08>] (bus_for_each_dev+0x68/0x94)
> [ 1.991271] [<c030be08>] (bus_for_each_dev+0x68/0x94) from [<c030c594>] (driver_attach+0x24/0x28)
> [ 2.00027...

Read more...

Revision history for this message
John Rigby (jcrigby) wrote :
Changed in linux-linaro:
status: Triaged → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
John Rigby (jcrigby) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.