Hi Andrzej, since your commit 772a7a724f69d258025fedd87dde1aafe4171aef (usb: gadget: f_fs: Allow scatter-gather buffers), we get the following BUG when trying to use ffs: > [ 59.013689] BUG: unable to handle kernel paging request at ffff9dcad2b6f000 > [ 59.021473] #PF error: [PROT] [WRITE] > [ 59.025558] PGD 1f1400067 P4D 1f1400067 PUD 221821063 PMD 212a31063 PTE 8000000212b6f161 > [ 59.034593] Oops: 0003 [#1] PREEMPT SMP > [ 59.038871] CPU: 0 PID: 3078 Comm: irq/13-dwc3 Tainted: G U O 5.0.0-rc1-intel-next-quilt-2e5dc0ac-02325-gd75caf5 #1 > [ 59.051787] RIP: 0010:memcpy_erms+0x6/0x10 > [ 59.056353] Code: ff ff ff 90 eb 1e 0f 1f 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 <f3> a4 c3 0f 1f 80 00 00 00 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe > [ 59.077318] RSP: 0000:ffffb859c0dabcd8 EFLAGS: 00010086 > [ 59.083148] RAX: ffff9dcad2b6f000 RBX: 00000000776ef800 RCX: 000000000000013d > [ 59.091108] RDX: 000000000000013d RSI: ffff9dc9376ef800 RDI: ffff9dcad2b6f000 > [ 59.099066] RBP: ffffb859c0dabce0 R08: 0000000000000000 R09: 0000000000000000 > [ 59.107026] R10: ffffb859c9c8bdb8 R11: 0000000000001220 R12: ffff9dcb359660b0 > [ 59.114981] R13: 000000000000013d R14: 0000000000000002 R15: 0000000000000000 > [ 59.122944] FS: 0000000000000000(0000) GS:ffff9dcb37a00000(0000) knlGS:0000000000000000 > [ 59.131974] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 59.138383] CR2: ffff9dcad2b6f000 CR3: 0000000201c68000 CR4: 00000000003406f0 > [ 59.146349] Call Trace: > [ 59.149074] ? swiotlb_tbl_sync_single+0x77/0x90 > [ 59.154227] dma_direct_sync_single_for_cpu+0x31/0x40 > [ 59.159866] dma_direct_unmap_page+0x6a/0x70 > [ 59.164629] dma_direct_unmap_sg+0x46/0x70 > [ 59.169199] usb_gadget_unmap_request_by_dev+0xa8/0xd0 > [ 59.174939] dwc3_gadget_del_and_unmap_request.isra.25+0x90/0x120 [dwc3] > [ 59.182428] dwc3_gadget_giveback+0x36/0x60 [dwc3] > [ 59.187780] dwc3_thread_interrupt+0x4bc/0x12a0 [dwc3] > [ 59.193523] irq_thread_fn+0x26/0x60 > [ 59.197502] ? irq_thread+0xa8/0x1b0 > [ 59.201485] irq_thread+0x10e/0x1b0 > [ 59.205375] ? irq_forced_thread_fn+0x80/0x80 > [ 59.210237] ? wake_threads_waitq+0x30/0x30 > [ 59.214905] kthread+0x12b/0x150 > [ 59.218506] ? irq_thread_dtor+0xa0/0xa0 > [ 59.222882] ? kthread_create_worker_on_cpu+0x70/0x70 > [ 59.228522] ret_from_fork+0x3a/0x50 > [ 59.232509] Modules linked in: hci_uart bluetooth ecdh_generic rfkill_gpio dwc3_pci dwc3 pcie8xxx(O) mlan(O) snd_usb_audio tpm_crb xhci_pci snd_usbmidi_lib mei_me xhci_hcd tpm mei snd_hwdep cfg80211 snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc trusty_timer snd_soc_sst_dsp snd_hda_ext_core snd_hda_core videobuf2_dma_sg > [ 59.263895] CR2: ffff9dcad2b6f000 > [ 59.267595] ---[ end trace 15d6f4312393d5c7 ]--- I don't have the setup to run the same test for which I got the bug report, can you test on your side and make sure everything is working fine? -- balbi
Attachment:
signature.asc
Description: PGP signature