{"action":"created","issue":{"url":"https://api.github.com/repos/RedPitaya/RedPitaya/issues/89","repository_url":"https://api.github.com/repos/RedPitaya/RedPitaya","labels_url":"https://api.github.com/repos/RedPitaya/RedPitaya/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/RedPitaya/RedPitaya/issues/89/comments","events_url":"https://api.github.com/repos/RedPitaya/RedPitaya/issues/89/events","html_url":"https://github.com/RedPitaya/RedPitaya/issues/89","id":196241933,"number":89,"title":"problem with direct memory access in v0.97","user":{"login":"pavel-demin","id":8037893,"avatar_url":"https://avatars.githubusercontent.com/u/8037893?v=3","gravatar_id":"","url":"https://api.github.com/users/pavel-demin","html_url":"https://github.com/pavel-demin","followers_url":"https://api.github.com/users/pavel-demin/followers","following_url":"https://api.github.com/users/pavel-demin/following{/other_user}","gists_url":"https://api.github.com/users/pavel-demin/gists{/gist_id}","starred_url":"https://api.github.com/users/pavel-demin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavel-demin/subscriptions","organizations_url":"https://api.github.com/users/pavel-demin/orgs","repos_url":"https://api.github.com/users/pavel-demin/repos","events_url":"https://api.github.com/users/pavel-demin/events{/privacy}","received_events_url":"https://api.github.com/users/pavel-demin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-12-17T20:45:37Z","updated_at":"2016-12-18T22:33:11Z","closed_at":null,"body":"Dear Red Pitaya developers,\r\n\r\nI've just tested one of the recent SD card images (red_pitaya_OS-v0.97-f9094af-release.zip) and found that the direct memory access in my MCPHA application doesn't work with this SD card image. It works fine with v0.95.\r\n\r\nMy FPGA configuration is writing data to RAM via S_AXI_HP0 and a C program is reading the data starting from the address 0x1e000000.\r\n\r\nIn v0.97, some parts of the data are corrupted.\r\n\r\nI suspect that the source of the problem is in the PCW_S_AXI_HP0_DATA_WIDTH parameter set to 32 in system.tcl:\r\nhttps://github.com/RedPitaya/RedPitaya/blob/master/fpga/prj/logic_orig/ip/system.tcl#L974\r\nhttps://github.com/RedPitaya/RedPitaya/blob/master/fpga/prj/logic/ip/system.tcl#L991\r\n\r\nSimilar problems were reported in the following Xilinx forum threads:\r\nhttps://forums.xilinx.com/t5/Embedded-Linux/Corrupted-data-received-from-AXI-DMA-via-HP0-in-32-bit-mode/td-p/715245\r\nhttps://forums.xilinx.com/t5/Zynq-All-Programmable-SoC/AXI-DMA-IP-Issues-with-Zynq-Zedboard-Running-Linux/td-p/412683\r\n\r\nCould you please set PCW_S_AXI_HP0_DATA_WIDTH to 64?\r\n\r\nBest regards,\r\n\r\nPavel"},"comment":{"url":"https://api.github.com/repos/RedPitaya/RedPitaya/issues/comments/267852027","html_url":"https://github.com/RedPitaya/RedPitaya/issues/89#issuecomment-267852027","issue_url":"https://api.github.com/repos/RedPitaya/RedPitaya/issues/89","id":267852027,"user":{"login":"pavel-demin","id":8037893,"avatar_url":"https://avatars.githubusercontent.com/u/8037893?v=3","gravatar_id":"","url":"https://api.github.com/users/pavel-demin","html_url":"https://github.com/pavel-demin","followers_url":"https://api.github.com/users/pavel-demin/followers","following_url":"https://api.github.com/users/pavel-demin/following{/other_user}","gists_url":"https://api.github.com/users/pavel-demin/gists{/gist_id}","starred_url":"https://api.github.com/users/pavel-demin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavel-demin/subscriptions","organizations_url":"https://api.github.com/users/pavel-demin/orgs","repos_url":"https://api.github.com/users/pavel-demin/repos","events_url":"https://api.github.com/users/pavel-demin/events{/privacy}","received_events_url":"https://api.github.com/users/pavel-demin/received_events","type":"User","site_admin":false},"created_at":"2016-12-18T22:33:11Z","updated_at":"2016-12-18T22:33:11Z","body":"> You may need to reset the interface by way of writing 0 to the appropriate bit in 0xf8000240\r\n\r\nAlso found it and tried. Doesn't seem to help. Here are the commands:\r\n\r\n```\r\ndevmem2 0xF8000008 h 0xDF0D\r\ndevmem2 0xF8000240 w 0x0000\r\ndevmem2 0xF8008000 w 0x0001\r\ndevmem2 0xF8008014 w 0x0F01\r\ndevmem2 0xf8000004 h 0x767B\r\n```\r\n\r\nI've also tried several other combinations but with the same result."}}
{"actor":{"display_login":"pavel-demin"}}