Forum Discussion
Altera_Forum
Honored Contributor
7 years agoWhen I tried to start the test, the driver crashed.
My test system is Ubuntu 18.04 with kernel 4.15 so the crash could be caused by that. I'll look deeper into the driver and design. [ 4656.163395] BUG: unable to handle kernel paging request at ffffb38e819d0000 [ 4656.163420] IP: iowrite32+0x1e/0x40 [ 4656.163426] PGD 45d142067 P4D 45d142067 PUD 0 [ 4656.163441] Oops: 0002 [#1] SMP PTI [ 4656.163447] Modules linked in: altera_dma(OE) sep4_1(OE) socperf2_0(OE) pax(OE) nls_iso8859_1 snd_soc_skl snd_soc_skl_ipc snd_hda_ext_core snd_soc_sst_dsp snd_soc_sst_ipc snd_soc_acpi snd_soc_core snd_hda_codec_hdmi snd_compress snd_hda_codec_realtek snd_hda_codec_generic ac97_bus intel_rapl snd_pcm_dmaengine snd_hda_intel x86_pkg_temp_thermal snd_hda_codec intel_powerclamp coretemp snd_hda_core snd_hwdep kvm_intel snd_pcm kvm snd_seq_midi snd_seq_midi_event irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_rawmidi pcbc snd_seq aesni_intel input_leds snd_seq_device aes_x86_64 snd_timer crypto_simd glue_helper cryptd intel_cstate intel_rapl_perf snd mei_me intel_wmi_thunderbolt mei fpga_mgr intel_pch_thermal soundcore shpchp sch_fq_codel mac_hid acpi_pad parport_pc ppdev lp parport ip_tables [ 4656.163574] x_tables autofs4 hid_generic usbhid hid i915 drm_kms_helper igb e1000e syscopyarea sysfillrect sysimgblt dca fb_sys_fops i2c_algo_bit ahci ptp drm pps_core libahci wmi video pinctrl_sunrisepoint [last unloaded: altera_cvp] [ 4656.163627] CPU: 3 PID: 2392 Comm: user Tainted: G OE 4.15.0-22-generic# 24-Ubuntu [ 4656.163633] Hardware name: DFI Inc. KU17x/KU17x, BIOS B17C.15A 12/15/2017 [ 4656.163641] RIP: 0010:iowrite32+0x1e/0x40 [ 4656.163647] RSP: 0018:ffffb38e4244bd80 EFLAGS: 00010292 [ 4656.163654] RAX: 0000000000000000 RBX: ffffb38e819d0000 RCX: 0000000000000000 [ 4656.163661] RDX: 0000000000000040 RSI: ffffb38e819d0000 RDI: 0000000060109915 [ 4656.163667] RBP: ffffb38e4244bd80 R08: ffffb38e4244bcf8 R09: ffffb38e4244bcf8 [ 4656.163672] R10: 00000000a7509d81 R11: 000000006b9b0bd0 R12: 0000000040000004 [ 4656.163678] R13: ffff999c5a382000 R14: 0000000040000800 R15: ffff999c2f200800 [ 4656.163685] FS: 00007fd863fda500(0000) GS:ffff999c6dd80000(0000) knlGS:0000000000000000 [ 4656.163692] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4656.163697] CR2: ffffb38e819d0000 CR3: 000000042a9ce006 CR4: 00000000003606e0 [ 4656.163703] Call Trace: [ 4656.163721] init_ep_mem.constprop.13+0x5a/0x90 [altera_dma] [ 4656.163732] altera_dma_ioctl+0x4ed/0xe20 [altera_dma] [ 4656.163744] ? do_wait_intr_irq+0x90/0x90 [ 4656.163757] do_vfs_ioctl+0xa8/0x630 [ 4656.163769] ? vfs_read+0x115/0x130 [ 4656.163780] SyS_ioctl+0x79/0x90 [ 4656.163791] do_syscall_64+0x73/0x130 [ 4656.163803] entry_SYSCALL_64_after_hwframe+0x3d/0xa2 [ 4656.163810] RIP: 0033:0x7fd863af15d7 [ 4656.163816] RSP: 002b:00007ffe48631e18 EFLAGS: 00000207 ORIG_RAX: 0000000000000010 [ 4656.163824] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fd863af15d7 [ 4656.163829] RDX: fffffffffffff38d RSI: 0000000000006601 RDI: 0000000000000003 [ 4656.163835] RBP: 00007ffe48631e80 R08: 00007ffe48631e51 R09: 0000000000000000 [ 4656.163840] R10: 00007fd863b79cc0 R11: 0000000000000207 R12: 0000558c2cfdfae0 [ 4656.163846] R13: 00007ffe48631f60 R14: 0000000000000000 R15: 0000000000000000 [ 4656.163853] Code: 5d c3 90 66 2e 0f 1f 84 00 00 00 00 00 55 48 81 fe ff ff 03 00 48 89 e5 77 11 48 81 fe 00 00 01 00 76 0c 0f b7 d6 89 f8 ef 5d c3 <89> 3e 5d c3 48 89 f7 48 c7 c6 76 5f f1 9e e8 5f fe ff ff 5d c3 [ 4656.163973] RIP: iowrite32+0x1e/0x40 RSP: ffffb38e4244bd80 [ 4656.163977] CR2: ffffb38e819d0000 [ 4656.163985] ---[ end trace 29297b63cb0dbe98 ]---