[Letux-kernel] build log :) - towards working OMAP3 + SGX530

H. Nikolaus Schaller hns at goldelico.com
Mon Oct 31 10:57:35 CET 2016


> Am 31.10.2016 um 10:14 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> 
> 
>> Am 30.10.2016 um 20:46 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
>> 
>>> 
>>> 
>>> Untfortunately, it compiles but hangs right after "Starting kernel ..."
>> 
>> I have doe some experiments with the merge on top of linus/v4.3
>> and the version manually rebased to linus/v4.9.rc2.
>> 
>> After adding some letux_defconfig I was able to compile both.
>> 
>> The v4.3 boots while the v4.9-rc2 hangs as described.
>> 
>> So there is something incompatible to rebasing... Anyways this is good news. Basically it is
>> possible to bisect the bug between v4.9-rc2 and the merged patches.
> 
> Now I did bisect the v4.9-rc2 variant.
> 
> 6f46910aa92c0b2cd718d7334b8f72424e490a3a is the first bad commit
> commit 6f46910aa92c0b2cd718d7334b8f72424e490a3a
> Author: Tero Kristo <t-kristo at ti.com>
> Date:   Thu Sep 24 17:26:51 2015 +0300
> 
>    ARM: OMAP2+: hwmod: parse reset information from DT
> 
>    DT can now be used to provide reset information, so parse this to avoid
>    the need to have reset info under hwmod data. This patch disables the
>    support for existing reset data under hwmod data, so shall be applied
>    only after the DT reset conversion.
> 
> Ok, here the reset information is added to DT.
> Nothing removed.
> 
> So it is not the real cause, just the trigger.
> 
> Anyways it is a good hint. The real problem is hidden in some
> earlier patch and only "enabled" by this one.
> 
> So there are two new ideas to follow:
> a) look into the earlier patches (there are only 2 non-DT patches)
> b) remove changes in 6f46910aa92c one by one until it works
> 
> I think variant b) is easier to do initially.
> 
> BR,
> Nikolaus

Ok, is a little more difficult. But by commenting out this (and enabling some debug messages):

http://git.goldelico.com/?p=gta04-kernel.git;a=blob;f=arch/arm/mach-omap2/omap_hwmod.c;h=b665e931a5f5bc96320cb922013ced44f168ed76;hb=6f46910aa92c0b2cd718d7334b8f72424e490a3a#l2603

I can get it boot again, although with errors:

[    0.679412] _lookup_hardreset
[    0.679473] omap_hwmod: iva: _lookup_hardreset: logic: rst 0 st 8 rc 0
[    0.679473] _dt_assert_hardreset: iva: missing rc
[    0.679504] ------------[ cut here ]------------
[    0.679534] WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:3242 _dt_assert_hardreset+0x4c/0x74
[    0.679565] missing rc
[    0.679565] Modules linked in:
[    0.679626] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.0-rc2-letux+ #292
[    0.679626] Hardware name: Generic OMAP36xx (Flattened Device Tree)
[    0.679687] [<c010f0f0>] (unwind_backtrace) from [<c010b6e8>] (show_stack+0x10/0x14)
[    0.679718] [<c010b6e8>] (show_stack) from [<c03f9198>] (dump_stack+0x98/0xd0)
[    0.679748] [<c03f9198>] (dump_stack) from [<c013039c>] (__warn+0xd0/0x100)
[    0.679779] [<c013039c>] (__warn) from [<c0130400>] (warn_slowpath_fmt+0x34/0x44)
[    0.679809] [<c0130400>] (warn_slowpath_fmt) from [<c011ce18>] (_dt_assert_hardreset+0x4c/0x74)
[    0.679840] [<c011ce18>] (_dt_assert_hardreset) from [<c011c550>] (_assert_hardreset+0x48/0x54)
[    0.679870] [<c011c550>] (_assert_hardreset) from [<c0a0d95c>] (_setup+0x140/0x3f4)
[    0.679901] [<c0a0d95c>] (_setup) from [<c011dcfc>] (omap_hwmod_for_each+0x3c/0x64)
[    0.679931] [<c011dcfc>] (omap_hwmod_for_each) from [<c0a0df44>] (__omap_hwmod_setup_all+0x30/0x40)
[    0.679962] [<c0a0df44>] (__omap_hwmod_setup_all) from [<c010193c>] (do_one_initcall+0xac/0x154)
[    0.679992] [<c010193c>] (do_one_initcall) from [<c0a00d78>] (kernel_init_freeable+0x120/0x1ec)
[    0.680023] [<c0a00d78>] (kernel_init_freeable) from [<c06f5ac4>] (kernel_init+0x8/0x110)
[    0.680084] [<c06f5ac4>] (kernel_init) from [<c01070d0>] (ret_from_fork+0x14/0x24)
[    0.680114] ---[ end trace 893319658f745009 ]---
[    0.680145] _lookup_hardreset
[    0.680145] omap_hwmod: iva: _lookup_hardreset: seq0: rst 1 st 9 rc 0
[    0.680175] _dt_assert_hardreset: iva: missing rc
[    0.680175] _lookup_hardreset
[    0.680206] omap_hwmod: iva: _lookup_hardreset: seq1: rst 2 st 10 rc 0
[    0.680206] _dt_assert_hardreset: iva: missing rc
[    0.722747] _lookup_hardreset
[    0.722808] omap_hwmod: sad2d: _lookup_hardreset: rst_modem_pwron_sw: rst 0 st 0 rc 0
[    0.722808] _dt_assert_hardreset: sad2d: missing rc
[    0.722839] _lookup_hardreset
[    0.722839] omap_hwmod: sad2d: _lookup_hardreset: rst_modem_sw: rst 1 st 0 rc 0
[    0.722869] _dt_assert_hardreset: sad2d: missing rc
[    0.722930] _lookup_hardreset
[    0.722930] omap_hwmod: mmu_iva: _lookup_hardreset: mmu: rst 1 st 9 rc 0
[    0.722961] _dt_assert_hardreset: mmu_iva: missing rc




More information about the Letux-kernel mailing list