{"action":"closed","issue":{"url":"https://api.github.com/repos/OP-TEE/optee_os/issues/1192","repository_url":"https://api.github.com/repos/OP-TEE/optee_os","labels_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/1192/labels{/name}","comments_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/1192/comments","events_url":"https://api.github.com/repos/OP-TEE/optee_os/issues/1192/events","html_url":"https://github.com/OP-TEE/optee_os/issues/1192","id":190789578,"number":1192,"title":"Raspberry Pi3 Memory Mapping","user":{"login":"bentau","id":12658091,"avatar_url":"https://avatars.githubusercontent.com/u/12658091?v=3","gravatar_id":"","url":"https://api.github.com/users/bentau","html_url":"https://github.com/bentau","followers_url":"https://api.github.com/users/bentau/followers","following_url":"https://api.github.com/users/bentau/following{/other_user}","gists_url":"https://api.github.com/users/bentau/gists{/gist_id}","starred_url":"https://api.github.com/users/bentau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bentau/subscriptions","organizations_url":"https://api.github.com/users/bentau/orgs","repos_url":"https://api.github.com/users/bentau/repos","events_url":"https://api.github.com/users/bentau/events{/privacy}","received_events_url":"https://api.github.com/users/bentau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-21T17:49:13Z","updated_at":"2016-11-22T14:59:55Z","closed_at":"2016-11-22T14:59:55Z","body":"Hi! \r\n\r\nI modified the memory mapping of the Raspberry Pi a bit so that it looks like this\r\n\r\n\r\n```\r\nDEBUG:   TEE-CORE:add_phys_mem:262: 4096 9 0x00001000 size 0x01400000\r\nDEBUG:   TEE-CORE:add_phys_mem:262: DEVICE0_PA_BASE 7 0x3f200000 size 0x00200000\r\nDEBUG:   TEE-CORE:add_phys_mem:262: CFG_SHMEM_START 4 0x08000000 size 0x00400000\r\nDEBUG:   TEE-CORE:add_phys_mem:262: CFG_TA_RAM_START 3 0x08800000 size 0x01000000\r\nDEBUG:   TEE-CORE:add_phys_mem:262: CFG_TEE_RAM_START 1 0x08400000 size 0x00400000\r\nDEBUG:   TEE-CORE:add_phys_mem:262: 0x0 5 0x00000000 size 0x00001000\r\nDEBUG:   TEE-CORE:init_mem_map:403: type va 1 0x08400000..0x087fffff pa 0x08400000..0x087fffff size 0x400000\r\nDEBUG:   TEE-CORE:init_mem_map:403: type va 3 0x08800000..0x097fffff pa 0x08800000..0x097fffff size 0x1000000\r\nDEBUG:   TEE-CORE:init_mem_map:403: type va 4 0x09800000..0x09bfffff pa 0x08000000..0x083fffff size 0x400000\r\nDEBUG:   TEE-CORE:init_mem_map:403: type va 5 0x09c00000..0x09c00fff pa 0x00000000..0x00000fff size 0x1000\r\nDEBUG:   TEE-CORE:init_mem_map:403: type va 7 0x09e00000..0x09ffffff pa 0x3f200000..0x3f3fffff size 0x200000\r\nDEBUG:   TEE-CORE:init_mem_map:403: type va 9 0x0a001000..0x0b400fff pa 0x00001000..0x01400fff size 0x1400000\r\n```\r\n\r\n\r\nI assigned the page at adress 0 as MEM_AREA_RAM_NSEC\r\n\r\nWhen I now access it later the address translation seems to work, but I  only read 0x55 0x55 0x55 from optee_os which is different to the result I get from\r\n`dd if=/dev/mem bs=1K count=1`\r\n\r\n\r\n\r\nThe iomem looks the following\r\n```\r\n00000000-3affffff : System RAM\r\n  00080000-008effff : Kernel code\r\n  00985000-00b1dfff : Kernel data\r\n3f006000-3f006fff : dwc_otg\r\n3f007000-3f007eff : /soc/dma@7e007000\r\n3f00b840-3f00b84e : /soc/vchiq\r\n3f00b880-3f00b8bf : /soc/mailbox@7e00b800\r\n3f200000-3f2000b3 : /soc/gpio@7e200000\r\n3f201000-3f201fff : /soc/uart@7e201000\r\n  3f201000-3f201fff : /soc/uart@7e201000\r\n3f202000-3f2020ff : /soc/sdhost@7e202000\r\n3f215040-3f21507f : serial\r\n3f300000-3f3000ff : /soc/mmc@7e300000\r\n3f980000-3f98ffff : dwc_otg\r\n```\r\n\r\nAny idea what goes wrong?"}}
{"actor":{"display_login":"bentau"}}