{"action":"created","issue":{"url":"https://api.github.com/repos/bmartini/zynq-xdma/issues/1","repository_url":"https://api.github.com/repos/bmartini/zynq-xdma","labels_url":"https://api.github.com/repos/bmartini/zynq-xdma/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/bmartini/zynq-xdma/issues/1/comments","events_url":"https://api.github.com/repos/bmartini/zynq-xdma/issues/1/events","html_url":"https://github.com/bmartini/zynq-xdma/issues/1","id":23238666,"number":1,"title":"broken","user":{"login":"vanmierlo","id":3007095,"avatar_url":"https://avatars.githubusercontent.com/u/3007095?v=3","gravatar_id":"","url":"https://api.github.com/users/vanmierlo","html_url":"https://github.com/vanmierlo","followers_url":"https://api.github.com/users/vanmierlo/followers","following_url":"https://api.github.com/users/vanmierlo/following{/other_user}","gists_url":"https://api.github.com/users/vanmierlo/gists{/gist_id}","starred_url":"https://api.github.com/users/vanmierlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanmierlo/subscriptions","organizations_url":"https://api.github.com/users/vanmierlo/orgs","repos_url":"https://api.github.com/users/vanmierlo/repos","events_url":"https://api.github.com/users/vanmierlo/events{/privacy}","received_events_url":"https://api.github.com/users/vanmierlo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"bmartini","id":189017,"avatar_url":"https://avatars.githubusercontent.com/u/189017?v=3","gravatar_id":"","url":"https://api.github.com/users/bmartini","html_url":"https://github.com/bmartini","followers_url":"https://api.github.com/users/bmartini/followers","following_url":"https://api.github.com/users/bmartini/following{/other_user}","gists_url":"https://api.github.com/users/bmartini/gists{/gist_id}","starred_url":"https://api.github.com/users/bmartini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmartini/subscriptions","organizations_url":"https://api.github.com/users/bmartini/orgs","repos_url":"https://api.github.com/users/bmartini/repos","events_url":"https://api.github.com/users/bmartini/events{/privacy}","received_events_url":"https://api.github.com/users/bmartini/received_events","type":"User","site_admin":false},"milestone":null,"comments":28,"created_at":"2013-11-25T12:18:01Z","updated_at":"2016-03-22T22:51:45Z","closed_at":"2013-12-03T23:50:07Z","body":"Hello,\r\n\r\nThis project is currently broken.\r\n- The top Makefile does not build the lib\r\n- The lib doesn't compile due to warnings turned into errors\r\n    error: cast from pointer to integer of different size\r\n- The demo Makefile does not include the lib dir for the compiler\r\n    error: libxdma.h: No such file or directory\r\n- The demo Makefile does not include the lib dir for the linker\r\n    cannot find -lxdma\r\n\r\nAnd finally it won't load:\r\n    xdma: disagrees about version of symbol module_layout\r\n    insmod: can't insert 'xdma.ko': invalid module format\r\n\r\nMaarten"},"comment":{"url":"https://api.github.com/repos/bmartini/zynq-xdma/issues/comments/200068053","html_url":"https://github.com/bmartini/zynq-xdma/issues/1#issuecomment-200068053","issue_url":"https://api.github.com/repos/bmartini/zynq-xdma/issues/1","id":200068053,"user":{"login":"hussein-alasadi","id":7384447,"avatar_url":"https://avatars.githubusercontent.com/u/7384447?v=3","gravatar_id":"","url":"https://api.github.com/users/hussein-alasadi","html_url":"https://github.com/hussein-alasadi","followers_url":"https://api.github.com/users/hussein-alasadi/followers","following_url":"https://api.github.com/users/hussein-alasadi/following{/other_user}","gists_url":"https://api.github.com/users/hussein-alasadi/gists{/gist_id}","starred_url":"https://api.github.com/users/hussein-alasadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hussein-alasadi/subscriptions","organizations_url":"https://api.github.com/users/hussein-alasadi/orgs","repos_url":"https://api.github.com/users/hussein-alasadi/repos","events_url":"https://api.github.com/users/hussein-alasadi/events{/privacy}","received_events_url":"https://api.github.com/users/hussein-alasadi/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T22:51:44Z","updated_at":"2016-03-22T22:51:44Z","body":"Hi there,\r\n\r\nMost probably CMA is still not enabled.\r\n\r\nNot sure what the CONFIG_ variables are called, however in kconfig (console menu) the options to enable are:\r\n\r\nKernel Features -> Contiguous Memory Allocator\r\nDevice Drivers -> Generic Driver Options -> DMA contiguous Memory Allocator\r\n\r\nRegards\r\n\r\nFrom: trevdawg122 [mailto:notifications@github.com]\r\nSent: Tuesday, March 22, 2016 9:41 PM\r\nTo: bmartini/zynq-xdma <zynq-xdma@noreply.github.com>\r\nSubject: Re: [zynq-xdma] broken (#1)\r\n\r\n\r\nHi. I'm trying to use the zynq-xdma driver and I'm having one of the problems described above. When I try to load the xdma.ko module using insmod, I get the following error:\r\nError: allocating dma memory failed\r\nI’ve included the libxdma.h/so files, added cma=64M to the device tree bootargs, and added CONFIG_CMA=y and CONFIG_CMA_DEBUG=y to the kernel config file, but the failure persists. We're using linux-xlnx kernel version (tag) xilinx-v2014.4-trd and the latest zynq-xdma driver commit c869423<https://github.com/bmartini/zynq-xdma/commit/c869423cd6b711952878aa8c67fda68fc8879db0> on Feb 12, 2015. Below is our device tree dma node:\r\n\r\naxi_dma_0: dma@4040000<https://github.com/dma/zynq-xdma/commit/40400000> {\r\ncompatible = \"xlnx,axi-dma\";\r\ninterrupt-parent = <&intc>;\r\ninterrupts = <0 30 4>;\r\nreg = <0x40400000 0x1000>;\r\nxlnx,include-sg ;\r\ndma-channel@4040003<https://github.com/dma-channel/zynq-xdma/commit/40400030> {\r\ncompatible = \"xlnx,axi-dma-s2mm-channel\";\r\ninterrupts = <0 30 4>;\r\nxlnx,datawidth = <0x40>;\r\nxlnx,device-id = <0x0>;\r\n};\r\n};\r\n\r\nThanks,\r\nTrevor\r\n\r\n—\r\nYou are receiving this because you are subscribed to this thread.\r\nReply to this email directly or view it on GitHub<https://github.com/bmartini/zynq-xdma/issues/1#issuecomment-200013761>\r\n"}}