Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
451 Discussions

How to request more DMA memory for Arria 10 "pcie"?

7aximus
Beginner
1,651 Views

Currently, I can use the "pcie_dma_coherent" function to request 1M of data, but when I try to request more memory, I encounter an error. What is the maximum amount of memory that can be allocated for PCIE DMA, and how can I request it?

0 Kudos
11 Replies
wchiah
Employee
1,612 Views

Hi,


Can I know what Error code that you are seeing ?

Do you want to perform memory read or write ?


Regards,

Wincent_Intel


0 Kudos
7aximus
Beginner
1,575 Views

Hi,

 

This is an error printed from the kernel log:

 

[ 411.470649] WARNING: CPU: 5 PID: 4820 at /build/linux-hwe-5.4-b3AsfY/linux-hwe-5.4-5.4.0/mm/page_alloc.c:4744 __alloc_pages_nodemask+0x1cd/0x320
[ 411.470649] Modules linked in: intel_fpga_pcie_drv(OE+) xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c bpfilter br_netfilter bridge stp llc aufs overlay intel_rapl_msr snd_hda_codec_hdmi binfmt_misc mei_hdcp snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio intel_rapl_common x86_pkg_temp_thermal intel_powerclamp snd_hda_intel coretemp snd_intel_dspcfg snd_hda_codec kvm_intel snd_hda_core kvm snd_hwdep snd_pcm crct10dif_pclmul i915 crc32_pclmul snd_seq_midi ghash_clmulni_intel snd_seq_midi_event aesni_intel snd_rawmidi drm_kms_helper crypto_simd snd_seq cryptd drm snd_seq_device glue_helper i2c_algo_bit snd_timer fb_sys_fops joydev syscopyarea input_leds snd rapl sysfillrect intel_cstate sysimgblt soundcore altera_cvp fpga_mgr mei_me mei mac_hid acpi_pad sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_logitech_hidpp hid_logitech_dj
[ 411.470667] hid_generic usbhid hid e1000e ahci libahci video
[ 411.470671] CPU: 5 PID: 4820 Comm: insmod Tainted: G OE 5.4.0-132-generic #148~18.04.1-Ubuntu
[ 411.470671] Hardware name: Gigabyte Technology Co., Ltd. B250M-D3H/B250M-D3H-CF, BIOS F8 11/08/2017
[ 411.470673] RIP: 0010:__alloc_pages_nodemask+0x1cd/0x320
[ 411.470673] Code: 22 ff ff ff 65 48 8b 04 25 c0 bb 01 00 48 05 38 0c 00 00 41 bf 01 00 00 00 48 89 45 b0 e9 04 ff ff ff 81 e7 00 20 00 00 75 02 <0f> 0b 45 31 ff eb 95 44 8b 6d c0 65 8b 05 81 c8 38 68 89 c0 48 0f
[ 411.470674] RSP: 0018:ffffb5bac359f8c8 EFLAGS: 00010246
[ 411.470675] RAX: 0000000000000000 RBX: 0000000000003fff RCX: 0000000000000000
[ 411.470675] RDX: 0000000000000000 RSI: 000000000000000e RDI: 0000000000000000
[ 411.470676] RBP: ffffb5bac359f920 R08: 0000000000000000 R09: ffffffffffffffff
[ 411.470676] R10: ffffb5bac2e01000 R11: 0000000000000001 R12: 0000000000000cc0
[ 411.470676] R13: ffff8ea81b82f0b0 R14: 00000000ffffffff R15: ffffffffffffffff
[ 411.470677] FS: 00007f8c9f3ff540(0000) GS:ffff8ea81eb40000(0000) knlGS:0000000000000000
[ 411.470678] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 411.470678] CR2: 0000562b9dbcb2c8 CR3: 0000000387084005 CR4: 00000000003606e0
[ 411.470678] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 411.470679] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 411.470679] Call Trace:
[ 411.470683] __dma_direct_alloc_pages+0xf1/0x200 //
[ 411.470684] dma_direct_alloc_pages+0x28/0x120
[ 411.470685] dma_direct_alloc+0xe/0x10
[ 411.470686] dma_alloc_attrs+0x30/0x60
[ 411.470689] intel_fpga_pcie_dma_probe+0x133/0x280 [intel_fpga_pcie_drv]
[ 411.470690] intel_fpga_pcie_probe+0x3dd/0x640 [intel_fpga_pcie_drv]
[ 411.470693] local_pci_probe+0x47/0xa0
[ 411.470694] pci_device_probe+0x10b/0x1b0
[ 411.470696] really_probe+0xf5/0x440
[ 411.470697] driver_probe_device+0x11b/0x130
[ 411.470698] device_driver_attach+0x58/0x60
[ 411.470699] __driver_attach+0xa3/0x150
[ 411.470700] ? device_driver_attach+0x60/0x60
[ 411.470701] ? device_driver_attach+0x60/0x60
[ 411.470702] bus_for_each_dev+0x74/0xb0
[ 411.470704] ? kmem_cache_alloc_trace+0x170/0x230
[ 411.470705] driver_attach+0x1e/0x20
[ 411.470705] bus_add_driver+0x159/0x240
[ 411.470707] ? intel_fpga_pcie_chr_init+0x267/0x267 [intel_fpga_pcie_drv]
[ 411.470708] ? intel_fpga_pcie_chr_init+0x267/0x267 [intel_fpga_pcie_drv]
[ 411.470710] driver_register+0x60/0x100
[ 411.470711] ? intel_fpga_pcie_chr_init+0x267/0x267 [intel_fpga_pcie_drv]
[ 411.470712] __pci_register_driver+0x5a/0x60
[ 411.470713] intel_fpga_pcie_init+0x97/0xd99 [intel_fpga_pcie_drv]
[ 411.470715] do_one_initcall+0x4a/0x200
[ 411.470717] ? _cond_resched+0x19/0x40
[ 411.470718] ? kmem_cache_alloc_trace+0x170/0x230
[ 411.470720] do_init_module+0x4f/0x20f
[ 411.470722] load_module+0x1c9b/0x22d0
[ 411.470724] __do_sys_finit_module+0xfc/0x120
[ 411.470725] ? __do_sys_finit_module+0xfc/0x120
[ 411.470727] __x64_sys_finit_module+0x1a/0x20
[ 411.470728] do_syscall_64+0x57/0x190
[ 411.470729] entry_SYSCALL_64_after_hwframe+0x5c/0xc1
[ 411.470730] RIP: 0033:0x7f8c9ef44539
[ 411.470731] Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 1f f9 2c 00 f7 d8 64 89 01 48
[ 411.470731] RSP: 002b:00007ffcf296d138 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 411.470732] RAX: ffffffffffffffda RBX: 0000562b9dbc7780 RCX: 00007f8c9ef44539
[ 411.470732] RDX: 0000000000000000 RSI: 0000562b9c5a4cee RDI: 0000000000000003
[ 411.470733] RBP: 0000562b9c5a4cee R08: 0000000000000000 R09: 00007f8c9f217000
[ 411.470733] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
[ 411.470733] R13: 0000562b9dbca2c0 R14: 0000000000000000 R15: 0000000000000000
[ 411.470735] ---[ end trace 0543968c043c65c4 ]---
[ 411.470735] intel_fpga_pcie_dma_probe - 0320:
[ 411.470736] couldn't create write descriptor table.

[ 411.470737] intel_fpga_pcie_probe - 0188:
[ 411.470737] couldn't initialize DMA controller.

[ 411.470746] intel_fpga_pcie_drv 0000:02:00.0: goto err_regions
[ 411.470747] intel_fpga_pcie_drv 0000:02:00.0: goto err_dma_mask
[ 411.470748] Trying to free nonexistent resource <00000000f0100000-00000000f010ffff>
[ 411.470748] Trying to free nonexistent resource <00000000f0000000-00000000f00fffff>
[ 411.470751] intel_fpga_pcie_drv: probe of 0000:02:00.0 failed with error -12

0 Kudos
7aximus
Beginner
1,575 Views

Hi,

 

This is an error printed from the kernel log:

[ 411.470649] WARNING: CPU: 5 PID: 4820 at /build/linux-hwe-5.4-b3AsfY/linux-hwe-5.4-5.4.0/mm/page_alloc.c:4744 __alloc_pages_nodemask+0x1cd/0x320
[ 411.470649] Modules linked in: intel_fpga_pcie_drv(OE+) xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c bpfilter br_netfilter bridge stp llc aufs overlay intel_rapl_msr snd_hda_codec_hdmi binfmt_misc mei_hdcp snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio intel_rapl_common x86_pkg_temp_thermal intel_powerclamp snd_hda_intel coretemp snd_intel_dspcfg snd_hda_codec kvm_intel snd_hda_core kvm snd_hwdep snd_pcm crct10dif_pclmul i915 crc32_pclmul snd_seq_midi ghash_clmulni_intel snd_seq_midi_event aesni_intel snd_rawmidi drm_kms_helper crypto_simd snd_seq cryptd drm snd_seq_device glue_helper i2c_algo_bit snd_timer fb_sys_fops joydev syscopyarea input_leds snd rapl sysfillrect intel_cstate sysimgblt soundcore altera_cvp fpga_mgr mei_me mei mac_hid acpi_pad sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_logitech_hidpp hid_logitech_dj
[ 411.470667] hid_generic usbhid hid e1000e ahci libahci video
[ 411.470671] CPU: 5 PID: 4820 Comm: insmod Tainted: G OE 5.4.0-132-generic #148~18.04.1-Ubuntu
[ 411.470671] Hardware name: Gigabyte Technology Co., Ltd. B250M-D3H/B250M-D3H-CF, BIOS F8 11/08/2017
[ 411.470673] RIP: 0010:__alloc_pages_nodemask+0x1cd/0x320
[ 411.470673] Code: 22 ff ff ff 65 48 8b 04 25 c0 bb 01 00 48 05 38 0c 00 00 41 bf 01 00 00 00 48 89 45 b0 e9 04 ff ff ff 81 e7 00 20 00 00 75 02 <0f> 0b 45 31 ff eb 95 44 8b 6d c0 65 8b 05 81 c8 38 68 89 c0 48 0f
[ 411.470674] RSP: 0018:ffffb5bac359f8c8 EFLAGS: 00010246
[ 411.470675] RAX: 0000000000000000 RBX: 0000000000003fff RCX: 0000000000000000
[ 411.470675] RDX: 0000000000000000 RSI: 000000000000000e RDI: 0000000000000000
[ 411.470676] RBP: ffffb5bac359f920 R08: 0000000000000000 R09: ffffffffffffffff
[ 411.470676] R10: ffffb5bac2e01000 R11: 0000000000000001 R12: 0000000000000cc0
[ 411.470676] R13: ffff8ea81b82f0b0 R14: 00000000ffffffff R15: ffffffffffffffff
[ 411.470677] FS: 00007f8c9f3ff540(0000) GS:ffff8ea81eb40000(0000) knlGS:0000000000000000
[ 411.470678] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 411.470678] CR2: 0000562b9dbcb2c8 CR3: 0000000387084005 CR4: 00000000003606e0
[ 411.470678] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 411.470679] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 411.470679] Call Trace:
[ 411.470683] __dma_direct_alloc_pages+0xf1/0x200 //
[ 411.470684] dma_direct_alloc_pages+0x28/0x120
[ 411.470685] dma_direct_alloc+0xe/0x10
[ 411.470686] dma_alloc_attrs+0x30/0x60
[ 411.470689] intel_fpga_pcie_dma_probe+0x133/0x280 [intel_fpga_pcie_drv]
[ 411.470690] intel_fpga_pcie_probe+0x3dd/0x640 [intel_fpga_pcie_drv]
[ 411.470693] local_pci_probe+0x47/0xa0
[ 411.470694] pci_device_probe+0x10b/0x1b0
[ 411.470696] really_probe+0xf5/0x440
[ 411.470697] driver_probe_device+0x11b/0x130
[ 411.470698] device_driver_attach+0x58/0x60
[ 411.470699] __driver_attach+0xa3/0x150
[ 411.470700] ? device_driver_attach+0x60/0x60
[ 411.470701] ? device_driver_attach+0x60/0x60
[ 411.470702] bus_for_each_dev+0x74/0xb0
[ 411.470704] ? kmem_cache_alloc_trace+0x170/0x230
[ 411.470705] driver_attach+0x1e/0x20
[ 411.470705] bus_add_driver+0x159/0x240
[ 411.470707] ? intel_fpga_pcie_chr_init+0x267/0x267 [intel_fpga_pcie_drv]
[ 411.470708] ? intel_fpga_pcie_chr_init+0x267/0x267 [intel_fpga_pcie_drv]
[ 411.470710] driver_register+0x60/0x100
[ 411.470711] ? intel_fpga_pcie_chr_init+0x267/0x267 [intel_fpga_pcie_drv]
[ 411.470712] __pci_register_driver+0x5a/0x60
[ 411.470713] intel_fpga_pcie_init+0x97/0xd99 [intel_fpga_pcie_drv]
[ 411.470715] do_one_initcall+0x4a/0x200
[ 411.470717] ? _cond_resched+0x19/0x40
[ 411.470718] ? kmem_cache_alloc_trace+0x170/0x230
[ 411.470720] do_init_module+0x4f/0x20f
[ 411.470722] load_module+0x1c9b/0x22d0
[ 411.470724] __do_sys_finit_module+0xfc/0x120
[ 411.470725] ? __do_sys_finit_module+0xfc/0x120
[ 411.470727] __x64_sys_finit_module+0x1a/0x20
[ 411.470728] do_syscall_64+0x57/0x190
[ 411.470729] entry_SYSCALL_64_after_hwframe+0x5c/0xc1
[ 411.470730] RIP: 0033:0x7f8c9ef44539
[ 411.470731] Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 1f f9 2c 00 f7 d8 64 89 01 48
[ 411.470731] RSP: 002b:00007ffcf296d138 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 411.470732] RAX: ffffffffffffffda RBX: 0000562b9dbc7780 RCX: 00007f8c9ef44539
[ 411.470732] RDX: 0000000000000000 RSI: 0000562b9c5a4cee RDI: 0000000000000003
[ 411.470733] RBP: 0000562b9c5a4cee R08: 0000000000000000 R09: 00007f8c9f217000
[ 411.470733] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
[ 411.470733] R13: 0000562b9dbca2c0 R14: 0000000000000000 R15: 0000000000000000
[ 411.470735] ---[ end trace 0543968c043c65c4 ]---
[ 411.470735] intel_fpga_pcie_dma_probe - 0320:
[ 411.470736] couldn't create write descriptor table.

[ 411.470737] intel_fpga_pcie_probe - 0188:
[ 411.470737] couldn't initialize DMA controller.

[ 411.470746] intel_fpga_pcie_drv 0000:02:00.0: goto err_regions
[ 411.470747] intel_fpga_pcie_drv 0000:02:00.0: goto err_dma_mask
[ 411.470748] Trying to free nonexistent resource <00000000f0100000-00000000f010ffff>
[ 411.470748] Trying to free nonexistent resource <00000000f0000000-00000000f00fffff>
[ 411.470751] intel_fpga_pcie_drv: probe of 0000:02:00.0 failed with error -12

0 Kudos
7aximus
Beginner
1,585 Views

Hi,

 

This is an error printed from the kernel log:


[ 411.470731] Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 1f f9 2c 00 f7 d8 64 89 01 48
[ 411.470731] RSP: 002b:00007ffcf296d138 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 411.470732] RAX: ffffffffffffffda RBX: 0000562b9dbc7780 RCX: 00007f8c9ef44539
[ 411.470732] RDX: 0000000000000000 RSI: 0000562b9c5a4cee RDI: 0000000000000003
[ 411.470733] RBP: 0000562b9c5a4cee R08: 0000000000000000 R09: 00007f8c9f217000
[ 411.470733] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
[ 411.470733] R13: 0000562b9dbca2c0 R14: 0000000000000000 R15: 0000000000000000
[ 411.470735] ---[ end trace 0543968c043c65c4 ]---
[ 411.470735] intel_fpga_pcie_dma_probe - 0320:
[ 411.470736] couldn't create write descriptor table.

[ 411.470737] intel_fpga_pcie_probe - 0188:
[ 411.470737] couldn't initialize DMA controller.

[ 411.470746] intel_fpga_pcie_drv 0000:02:00.0: goto err_regions
[ 411.470747] intel_fpga_pcie_drv 0000:02:00.0: goto err_dma_mask
[ 411.470748] Trying to free nonexistent resource <00000000f0100000-00000000f010ffff>
[ 411.470748] Trying to free nonexistent resource <00000000f0000000-00000000f00fffff>
[ 411.470751] intel_fpga_pcie_drv: probe of 0000:02:00.0 failed with error -12

0 Kudos
7aximus
Beginner
1,576 Views

Hi,

 

This is an error printed from the kernel log:

 

[ 411.470649] WARNING: CPU: 5 PID: 4820 at /build/linux-hwe-5.4-b3AsfY/linux-hwe-5.4-5.4.0/mm/page_alloc.c:4744 __alloc_pages_nodemask+0x1cd/0x320
[ 411.470649] Modules linked in: intel_fpga_pcie_drv(OE+) xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c bpfilter br_netfilter bridge stp llc aufs overlay intel_rapl_msr snd_hda_codec_hdmi binfmt_misc mei_hdcp snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio intel_rapl_common x86_pkg_temp_thermal intel_powerclamp snd_hda_intel coretemp snd_intel_dspcfg snd_hda_codec kvm_intel snd_hda_core kvm snd_hwdep snd_pcm crct10dif_pclmul i915 crc32_pclmul snd_seq_midi ghash_clmulni_intel snd_seq_midi_event aesni_intel snd_rawmidi drm_kms_helper crypto_simd snd_seq cryptd drm snd_seq_device glue_helper i2c_algo_bit snd_timer fb_sys_fops joydev syscopyarea input_leds snd rapl sysfillrect intel_cstate sysimgblt soundcore altera_cvp fpga_mgr mei_me mei mac_hid acpi_pad sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_logitech_hidpp hid_logitech_dj
[ 411.470667] hid_generic usbhid hid e1000e ahci libahci video
[ 411.470671] CPU: 5 PID: 4820 Comm: insmod Tainted: G OE 5.4.0-132-generic #148~18.04.1-Ubuntu
[ 411.470671] Hardware name: Gigabyte Technology Co., Ltd. B250M-D3H/B250M-D3H-CF, BIOS F8 11/08/2017
[ 411.470673] RIP: 0010:__alloc_pages_nodemask+0x1cd/0x320
[ 411.470673] Code: 22 ff ff ff 65 48 8b 04 25 c0 bb 01 00 48 05 38 0c 00 00 41 bf 01 00 00 00 48 89 45 b0 e9 04 ff ff ff 81 e7 00 20 00 00 75 02 <0f> 0b 45 31 ff eb 95 44 8b 6d c0 65 8b 05 81 c8 38 68 89 c0 48 0f
[ 411.470674] RSP: 0018:ffffb5bac359f8c8 EFLAGS: 00010246
[ 411.470675] RAX: 0000000000000000 RBX: 0000000000003fff RCX: 0000000000000000
[ 411.470675] RDX: 0000000000000000 RSI: 000000000000000e RDI: 0000000000000000
[ 411.470676] RBP: ffffb5bac359f920 R08: 0000000000000000 R09: ffffffffffffffff
[ 411.470676] R10: ffffb5bac2e01000 R11: 0000000000000001 R12: 0000000000000cc0
[ 411.470676] R13: ffff8ea81b82f0b0 R14: 00000000ffffffff R15: ffffffffffffffff
[ 411.470677] FS: 00007f8c9f3ff540(0000) GS:ffff8ea81eb40000(0000) knlGS:0000000000000000
[ 411.470678] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 411.470678] CR2: 0000562b9dbcb2c8 CR3: 0000000387084005 CR4: 00000000003606e0
[ 411.470678] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 411.470679] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 411.470679] Call Trace:
[ 411.470683] __dma_direct_alloc_pages+0xf1/0x200 //
[ 411.470684] dma_direct_alloc_pages+0x28/0x120
[ 411.470685] dma_direct_alloc+0xe/0x10
[ 411.470686] dma_alloc_attrs+0x30/0x60
[ 411.470689] intel_fpga_pcie_dma_probe+0x133/0x280 [intel_fpga_pcie_drv]
[ 411.470690] intel_fpga_pcie_probe+0x3dd/0x640 [intel_fpga_pcie_drv]
[ 411.470693] local_pci_probe+0x47/0xa0
[ 411.470694] pci_device_probe+0x10b/0x1b0
[ 411.470696] really_probe+0xf5/0x440
[ 411.470697] driver_probe_device+0x11b/0x130
[ 411.470698] device_driver_attach+0x58/0x60
[ 411.470699] __driver_attach+0xa3/0x150
[ 411.470700] ? device_driver_attach+0x60/0x60
[ 411.470701] ? device_driver_attach+0x60/0x60
[ 411.470702] bus_for_each_dev+0x74/0xb0
[ 411.470704] ? kmem_cache_alloc_trace+0x170/0x230
[ 411.470705] driver_attach+0x1e/0x20
[ 411.470705] bus_add_driver+0x159/0x240
[ 411.470707] ? intel_fpga_pcie_chr_init+0x267/0x267 [intel_fpga_pcie_drv]
[ 411.470708] ? intel_fpga_pcie_chr_init+0x267/0x267 [intel_fpga_pcie_drv]
[ 411.470710] driver_register+0x60/0x100
[ 411.470711] ? intel_fpga_pcie_chr_init+0x267/0x267 [intel_fpga_pcie_drv]
[ 411.470712] __pci_register_driver+0x5a/0x60
[ 411.470713] intel_fpga_pcie_init+0x97/0xd99 [intel_fpga_pcie_drv]
[ 411.470715] do_one_initcall+0x4a/0x200
[ 411.470717] ? _cond_resched+0x19/0x40
[ 411.470718] ? kmem_cache_alloc_trace+0x170/0x230
[ 411.470720] do_init_module+0x4f/0x20f
[ 411.470722] load_module+0x1c9b/0x22d0
[ 411.470724] __do_sys_finit_module+0xfc/0x120
[ 411.470725] ? __do_sys_finit_module+0xfc/0x120
[ 411.470727] __x64_sys_finit_module+0x1a/0x20
[ 411.470728] do_syscall_64+0x57/0x190
[ 411.470729] entry_SYSCALL_64_after_hwframe+0x5c/0xc1
[ 411.470730] RIP: 0033:0x7f8c9ef44539
[ 411.470731] Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 1f f9 2c 00 f7 d8 64 89 01 48
[ 411.470731] RSP: 002b:00007ffcf296d138 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 411.470732] RAX: ffffffffffffffda RBX: 0000562b9dbc7780 RCX: 00007f8c9ef44539
[ 411.470732] RDX: 0000000000000000 RSI: 0000562b9c5a4cee RDI: 0000000000000003
[ 411.470733] RBP: 0000562b9c5a4cee R08: 0000000000000000 R09: 00007f8c9f217000
[ 411.470733] R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000000
[ 411.470733] R13: 0000562b9dbca2c0 R14: 0000000000000000 R15: 0000000000000000
[ 411.470735] ---[ end trace 0543968c043c65c4 ]---
[ 411.470735] intel_fpga_pcie_dma_probe - 0320:
[ 411.470736] couldn't create write descriptor table.

[ 411.470737] intel_fpga_pcie_probe - 0188:
[ 411.470737] couldn't initialize DMA controller.

[ 411.470746] intel_fpga_pcie_drv 0000:02:00.0: goto err_regions
[ 411.470747] intel_fpga_pcie_drv 0000:02:00.0: goto err_dma_mask
[ 411.470748] Trying to free nonexistent resource <00000000f0100000-00000000f010ffff>
[ 411.470748] Trying to free nonexistent resource <00000000f0000000-00000000f00fffff>
[ 411.470751] intel_fpga_pcie_drv: probe of 0000:02:00.0 failed with error -12

0 Kudos
wchiah
Employee
1,550 Views

Hi,


Do you want to perform memory read or write ?


Regards,

Wincent_Intel


0 Kudos
7aximus
Beginner
1,510 Views

Hi,

I want to use PCIE dma to read and write data, and I want to apply for 1G dma memory space.

I wonder if PCIE dma can apply for larger memory, how to apply?

0 Kudos
wchiah
Employee
1,516 Views

Hi,

I wish to follow up with you about this forum case.

Hoping to hear back from you so that we can proceed for next step.

Regards,

Wincent_Intel


0 Kudos
wchiah
Employee
1,488 Views

Hi,


For Arria 10 DMA memory read/write, you can refer to user guide below

https://www.altera.com/content/dam/altera-www/global/en_US/pdfs/literature/ug/archives/ug_a10_pcie_avmm_dma-17-0.pdf

Under section 5.1.1 Read DMA Avalon-MM Master Port

and 5.1.2 Write DMA Avalon-MM Master Port


Let me know if this is helpful.

Regards,

Wincent_Intel


0 Kudos
wchiah
Employee
1,441 Views

Hi,

 

I wish to follow up with you about this case.

Do you have any further questions on this matter ?

​​​​​​​Else I would like to have your permission to close this forum ticket

 

Regards,

Wincent_Intel


0 Kudos
wchiah
Employee
1,421 Views

Hi

 

We have not hear from you and this Case is idling. It is not recommended to idle for too long.

Therefore following our support policy, I have to put this case in close status. My apologies if any inconvenience cause

Hence, This thread will be transitioned to community support.

If you have a new question, feel free to open a new thread to get support from Intel experts.

Otherwise, the community users will continue to help you on this thread. Thank you

If you feel your support experience was less than a 9 or 10,

please allow me to correct it before closing or let me know the cause so that I may improve your future support experience.

 

Regards,

Wincent_Intel


0 Kudos
Reply