{"action":"created","issue":{"url":"https://api.github.com/repos/OP-TEE/optee_os/issues/2242","repository_url":"https://api.github.com/repos/OP-TEE/optee_os","labels_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/2242/labels{/name}","comments_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/2242/comments","events_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/2242/events","html_url":"https://github.com/OP-TEE/optee_os/issues/2242","id":313172308,"number":2242,"title":"Latest 3.1.0-rc1 can not boot on Juno","user":{"login":"KenLSoft","id":27667677,"avatar_url":"https://avatars2.githubusercontent.com/u/27667677?v=4","gravatar_id":"","url":"https://api.github.com/users/KenLSoft","html_url":"https://github.com/KenLSoft","followers_url":"https://api.github.com/users/KenLSoft/followers","following_url":"https://api.github.com/users/KenLSoft/following{/other_user}","gists_url":"https://api.github.com/users/KenLSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/KenLSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KenLSoft/subscriptions","organizations_url":"https://api.github.com/users/KenLSoft/orgs","repos_url":"https://api.github.com/users/KenLSoft/repos","events_url":"https://api.github.com/users/KenLSoft/events{/privacy}","received_events_url":"https://api.github.com/users/KenLSoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-11T04:47:15Z","updated_at":"2018-04-16T03:33:49Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\nI am trying latest tags on Juno; and just found that 3.1.0 boot up failed; while 3.0.0 works well. Here is the fail log:\r\nD/TC:0 add_phys_mem:527 CFG_SHMEM_START type NSEC_SHM 0xfee00000 size 0x00200000\r\nD/TC:0 add_phys_mem:527 CFG_TA_RAM_START type TA_RAM 0xff200000 size 0x00c00000\r\nD/TC:0 add_phys_mem:527 VCORE_UNPG_RW_PA type TEE_RAM_RW 0xff045000 size 0x001bb\r\n000\r\nD/TC:0 add_phys_mem:527 VCORE_UNPG_RX_PA type TEE_RAM_RX 0xff000000 size 0x00045\r\n000\r\nD/TC:0 add_phys_mem:527 GICC_BASE type IO_SEC 0x2c000000 size 0x00200000\r\nD/TC:0 add_phys_mem:527 GICD_BASE type IO_SEC 0x2c000000 size 0x00200000\r\nD/TC:0 add_phys_mem:540 Physical mem map overlaps 0x2c000000\r\nD/TC:0 add_phys_mem:527 CONSOLE_UART_BASE type IO_SEC 0x7fe00000 size 0x00200000\r\nD/TC:0 verify_special_mem_areas:465 No NSEC DDR memory area defined\r\nD/TC:0 add_va_space:566 type RES_VASPACE size 0x01400000\r\nD/TC:0 add_va_space:566 type SHM_VASPACE size 0x02000000\r\nD/TC:0 dump_mmap_table:699 type IO_SEC       va 0xfaa00000..0xfabfffff pa 0x2c00\r\n0000..0x2c1fffff size 0x00200000 (pgdir)\r\nD/TC:0 dump_mmap_table:699 type NSEC_SHM     va 0xfac00000..0xfadfffff pa 0xfee0\r\n0000..0xfeffffff size 0x00200000 (pgdir)\r\nD/TC:0 dump_mmap_table:699 type TA_RAM       va 0xfae00000..0xfb9fffff pa 0xff20\r\n0000..0xffdfffff size 0x00c00000 (pgdir)\r\nD/TC:0 dump_mmap_table:699 type RES_VASPACE  va 0xfba00000..0xfcdfffff pa 0x0000\r\n0000..0x013fffff size 0x01400000 (pgdir)\r\nD/TC:0 dump_mmap_table:699 type IO_SEC       va 0xfce00000..0xfcffffff pa 0x7fe0\r\n0000..0x7fffffff size 0x00200000 (pgdir)\r\nD/TC:0 dump_mmap_table:699 type SHM_VASPACE  va 0xfd000000..0xfeffffff pa 0x0000\r\n0000..0x01ffffff size 0x02000000 (pgdir)\r\nD/TC:0 dump_mmap_table:699 type TEE_RAM_RX   va 0xff000000..0xff044fff pa 0xff00\r\n0000..0xff044fff size 0x00045000 (smallpg)\r\nD/TC:0 dump_mmap_table:699 type TEE_RAM_RW   va 0xff045000..0xff1fffff pa 0xff04\r\n5000..0xff1fffff size 0x001bb000 (smallpg)\r\nD/TC:0 core_mmu_entry_to_finer_grained:622 xlat tables used 1 / 5\r\nD/TC:0 core_mmu_entry_to_finer_grained:622 xlat tables used 2 / 5\r\n\r\nAnd then whole system freeze. Has anybody tried on Juno ?"},"comment":{"url":"https://api.github.com/repos/OP-TEE/optee_os/issues/comments/381470852","html_url":"https://github.com/OP-TEE/optee_os/issues/2242#issuecomment-381470852","issue_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/2242","id":381470852,"user":{"login":"KenLSoft","id":27667677,"avatar_url":"https://avatars2.githubusercontent.com/u/27667677?v=4","gravatar_id":"","url":"https://api.github.com/users/KenLSoft","html_url":"https://github.com/KenLSoft","followers_url":"https://api.github.com/users/KenLSoft/followers","following_url":"https://api.github.com/users/KenLSoft/following{/other_user}","gists_url":"https://api.github.com/users/KenLSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/KenLSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KenLSoft/subscriptions","organizations_url":"https://api.github.com/users/KenLSoft/orgs","repos_url":"https://api.github.com/users/KenLSoft/repos","events_url":"https://api.github.com/users/KenLSoft/events{/privacy}","received_events_url":"https://api.github.com/users/KenLSoft/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T03:33:49Z","updated_at":"2018-04-16T03:33:49Z","author_association":"NONE","body":"Hi,\r\nJust update that I have found the problem; and prepared a patch; but I need to go through internal process so it could be ready in this week; if you guys think it is just piece of cake you could just create a patch yourself and merge it. :)\r\n\r\nThe problem is that MMU patch think CPU 0 is primary CPU while in my configuration I set CPU5 as primary CPU; while copying primary mapping table to other cores it copy a empty table from CPU0 to other cores; which fails the boot.\r\n\r\nThe root cause is here:\r\nhttps://github.com/OP-TEE/optee_os/blob/0ab9388c0d553a6bb5ae04e41b38ba40cf0474bf/core/arch/arm/mm/core_mmu_lpae.c#L408\r\n\r\nAnd solution would be use extra index to let copy table from get_core_pos() to round(get_core_pos() + 1, NB_CORES) for NB_CORES times.\r\n\r\nThanks.\r\n"}}
{"actor":{"display_login":"KenLSoft"}}