Customized kernel is modified automatically











up vote
0
down vote

favorite












I modified the ubuntu 16.04 kernel, changing MAX_ORDER from 11 to 15, and build the kernel. Because I want to allocate bigger cma buffers. After installing the kernel in Ubuntu 16.04, I found the kernel is booted when restarted and I'm able to allocate bigger buffers. However, If the computer is connected to the Internet, the kernel is somehow modified automatically that I can not do the allocation anymore. Here is the error message:

[ 1012.916510] xdma 0000:01:00.0: swiotlb buffer is full (sz: 11059200 bytes)
[ 1012.916512] swiotlb: coherent allocation failed for device 0000:01:00.0 size=11059200
[ 1012.916517] CPU: 0 PID: 1780 Comm: img_capture Tainted: G OE 4.13.0-21-generic #24~16.04.1-Ubuntu
[ 1012.916518] Hardware name: ADLINK TECHNOLOGY Inc. MXC6400/MXC6400, BIOS 2.01.10 07/12/2017
[ 1012.916520] Call Trace:
[ 1012.916531] dump_stack+0x63/0x8b
[ 1012.916537] swiotlb_alloc_coherent+0x150/0x160
[ 1012.916543] x86_swiotlb_alloc_coherent+0x43/0x50
[ 1012.916550] vb2_dc_alloc+0xc8/0x1a0 [videobuf2_dma_contig]
[ 1012.916558] __vb2_queue_alloc+0x168/0x440 [videobuf2_core]
[ 1012.916564] vb2_core_reqbufs+0x19e/0x3a0 [videobuf2_core]
[ 1012.916570] vb2_ioctl_reqbufs+0x63/0x90 [videobuf2_v4l2]
[ 1012.916582] v4l_reqbufs+0x43/0x50 [videodev]
[ 1012.916592] __video_do_ioctl+0x292/0x310 [videodev]
[ 1012.916603] video_usercopy+0x1d5/0x610 [videodev]
[ 1012.916612] ? video_ioctl2+0x20/0x20 [videodev]
[ 1012.916623] video_ioctl2+0x15/0x20 [videodev]
[ 1012.916631] v4l2_ioctl+0xbb/0xf0 [videodev]
[ 1012.916637] do_vfs_ioctl+0xa1/0x5f0
[ 1012.916640] ? putname+0x54/0x60
[ 1012.916646] ? do_sys_open+0x1b4/0x280
[ 1012.916650] SyS_ioctl+0x79/0x90
[ 1012.916656] entry_SYSCALL_64_fastpath+0x1e/0xa9
[ 1012.916659] RIP: 0033:0x7fa960c30f47
[ 1012.916661] RSP: 002b:00007ffd59aa1518 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
[ 1012.916665] RAX: ffffffffffffffda RBX: 00007fa960ef9620 RCX: 00007fa960c30f47
[ 1012.916667] RDX: 00007ffd59aa1550 RSI: ffffffffc0145608 RDI: 0000000000000004
[ 1012.916669] RBP: 00007ffd59aa1580 R08: 0000000000000000 R09: 0000000000000094
[ 1012.916671] R10: 0000000000000838 R11: 0000000000000202 R12: 0000000000402e70
[ 1012.916672] R13: 00007ffd59aa1598 R14: 0000000000000000 R15: 0000000000402e8f
[ 1012.916679] xdma 0000:01:00.0: dma_alloc_coherent of size 11059200 failed

Anyone has a idea whether the kernel is automatically updated or? I already switched off the update in fact.










share|improve this question







New contributor




Edward Gao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    0
    down vote

    favorite












    I modified the ubuntu 16.04 kernel, changing MAX_ORDER from 11 to 15, and build the kernel. Because I want to allocate bigger cma buffers. After installing the kernel in Ubuntu 16.04, I found the kernel is booted when restarted and I'm able to allocate bigger buffers. However, If the computer is connected to the Internet, the kernel is somehow modified automatically that I can not do the allocation anymore. Here is the error message:

    [ 1012.916510] xdma 0000:01:00.0: swiotlb buffer is full (sz: 11059200 bytes)
    [ 1012.916512] swiotlb: coherent allocation failed for device 0000:01:00.0 size=11059200
    [ 1012.916517] CPU: 0 PID: 1780 Comm: img_capture Tainted: G OE 4.13.0-21-generic #24~16.04.1-Ubuntu
    [ 1012.916518] Hardware name: ADLINK TECHNOLOGY Inc. MXC6400/MXC6400, BIOS 2.01.10 07/12/2017
    [ 1012.916520] Call Trace:
    [ 1012.916531] dump_stack+0x63/0x8b
    [ 1012.916537] swiotlb_alloc_coherent+0x150/0x160
    [ 1012.916543] x86_swiotlb_alloc_coherent+0x43/0x50
    [ 1012.916550] vb2_dc_alloc+0xc8/0x1a0 [videobuf2_dma_contig]
    [ 1012.916558] __vb2_queue_alloc+0x168/0x440 [videobuf2_core]
    [ 1012.916564] vb2_core_reqbufs+0x19e/0x3a0 [videobuf2_core]
    [ 1012.916570] vb2_ioctl_reqbufs+0x63/0x90 [videobuf2_v4l2]
    [ 1012.916582] v4l_reqbufs+0x43/0x50 [videodev]
    [ 1012.916592] __video_do_ioctl+0x292/0x310 [videodev]
    [ 1012.916603] video_usercopy+0x1d5/0x610 [videodev]
    [ 1012.916612] ? video_ioctl2+0x20/0x20 [videodev]
    [ 1012.916623] video_ioctl2+0x15/0x20 [videodev]
    [ 1012.916631] v4l2_ioctl+0xbb/0xf0 [videodev]
    [ 1012.916637] do_vfs_ioctl+0xa1/0x5f0
    [ 1012.916640] ? putname+0x54/0x60
    [ 1012.916646] ? do_sys_open+0x1b4/0x280
    [ 1012.916650] SyS_ioctl+0x79/0x90
    [ 1012.916656] entry_SYSCALL_64_fastpath+0x1e/0xa9
    [ 1012.916659] RIP: 0033:0x7fa960c30f47
    [ 1012.916661] RSP: 002b:00007ffd59aa1518 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
    [ 1012.916665] RAX: ffffffffffffffda RBX: 00007fa960ef9620 RCX: 00007fa960c30f47
    [ 1012.916667] RDX: 00007ffd59aa1550 RSI: ffffffffc0145608 RDI: 0000000000000004
    [ 1012.916669] RBP: 00007ffd59aa1580 R08: 0000000000000000 R09: 0000000000000094
    [ 1012.916671] R10: 0000000000000838 R11: 0000000000000202 R12: 0000000000402e70
    [ 1012.916672] R13: 00007ffd59aa1598 R14: 0000000000000000 R15: 0000000000402e8f
    [ 1012.916679] xdma 0000:01:00.0: dma_alloc_coherent of size 11059200 failed

    Anyone has a idea whether the kernel is automatically updated or? I already switched off the update in fact.










    share|improve this question







    New contributor




    Edward Gao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I modified the ubuntu 16.04 kernel, changing MAX_ORDER from 11 to 15, and build the kernel. Because I want to allocate bigger cma buffers. After installing the kernel in Ubuntu 16.04, I found the kernel is booted when restarted and I'm able to allocate bigger buffers. However, If the computer is connected to the Internet, the kernel is somehow modified automatically that I can not do the allocation anymore. Here is the error message:

      [ 1012.916510] xdma 0000:01:00.0: swiotlb buffer is full (sz: 11059200 bytes)
      [ 1012.916512] swiotlb: coherent allocation failed for device 0000:01:00.0 size=11059200
      [ 1012.916517] CPU: 0 PID: 1780 Comm: img_capture Tainted: G OE 4.13.0-21-generic #24~16.04.1-Ubuntu
      [ 1012.916518] Hardware name: ADLINK TECHNOLOGY Inc. MXC6400/MXC6400, BIOS 2.01.10 07/12/2017
      [ 1012.916520] Call Trace:
      [ 1012.916531] dump_stack+0x63/0x8b
      [ 1012.916537] swiotlb_alloc_coherent+0x150/0x160
      [ 1012.916543] x86_swiotlb_alloc_coherent+0x43/0x50
      [ 1012.916550] vb2_dc_alloc+0xc8/0x1a0 [videobuf2_dma_contig]
      [ 1012.916558] __vb2_queue_alloc+0x168/0x440 [videobuf2_core]
      [ 1012.916564] vb2_core_reqbufs+0x19e/0x3a0 [videobuf2_core]
      [ 1012.916570] vb2_ioctl_reqbufs+0x63/0x90 [videobuf2_v4l2]
      [ 1012.916582] v4l_reqbufs+0x43/0x50 [videodev]
      [ 1012.916592] __video_do_ioctl+0x292/0x310 [videodev]
      [ 1012.916603] video_usercopy+0x1d5/0x610 [videodev]
      [ 1012.916612] ? video_ioctl2+0x20/0x20 [videodev]
      [ 1012.916623] video_ioctl2+0x15/0x20 [videodev]
      [ 1012.916631] v4l2_ioctl+0xbb/0xf0 [videodev]
      [ 1012.916637] do_vfs_ioctl+0xa1/0x5f0
      [ 1012.916640] ? putname+0x54/0x60
      [ 1012.916646] ? do_sys_open+0x1b4/0x280
      [ 1012.916650] SyS_ioctl+0x79/0x90
      [ 1012.916656] entry_SYSCALL_64_fastpath+0x1e/0xa9
      [ 1012.916659] RIP: 0033:0x7fa960c30f47
      [ 1012.916661] RSP: 002b:00007ffd59aa1518 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
      [ 1012.916665] RAX: ffffffffffffffda RBX: 00007fa960ef9620 RCX: 00007fa960c30f47
      [ 1012.916667] RDX: 00007ffd59aa1550 RSI: ffffffffc0145608 RDI: 0000000000000004
      [ 1012.916669] RBP: 00007ffd59aa1580 R08: 0000000000000000 R09: 0000000000000094
      [ 1012.916671] R10: 0000000000000838 R11: 0000000000000202 R12: 0000000000402e70
      [ 1012.916672] R13: 00007ffd59aa1598 R14: 0000000000000000 R15: 0000000000402e8f
      [ 1012.916679] xdma 0000:01:00.0: dma_alloc_coherent of size 11059200 failed

      Anyone has a idea whether the kernel is automatically updated or? I already switched off the update in fact.










      share|improve this question







      New contributor




      Edward Gao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I modified the ubuntu 16.04 kernel, changing MAX_ORDER from 11 to 15, and build the kernel. Because I want to allocate bigger cma buffers. After installing the kernel in Ubuntu 16.04, I found the kernel is booted when restarted and I'm able to allocate bigger buffers. However, If the computer is connected to the Internet, the kernel is somehow modified automatically that I can not do the allocation anymore. Here is the error message:

      [ 1012.916510] xdma 0000:01:00.0: swiotlb buffer is full (sz: 11059200 bytes)
      [ 1012.916512] swiotlb: coherent allocation failed for device 0000:01:00.0 size=11059200
      [ 1012.916517] CPU: 0 PID: 1780 Comm: img_capture Tainted: G OE 4.13.0-21-generic #24~16.04.1-Ubuntu
      [ 1012.916518] Hardware name: ADLINK TECHNOLOGY Inc. MXC6400/MXC6400, BIOS 2.01.10 07/12/2017
      [ 1012.916520] Call Trace:
      [ 1012.916531] dump_stack+0x63/0x8b
      [ 1012.916537] swiotlb_alloc_coherent+0x150/0x160
      [ 1012.916543] x86_swiotlb_alloc_coherent+0x43/0x50
      [ 1012.916550] vb2_dc_alloc+0xc8/0x1a0 [videobuf2_dma_contig]
      [ 1012.916558] __vb2_queue_alloc+0x168/0x440 [videobuf2_core]
      [ 1012.916564] vb2_core_reqbufs+0x19e/0x3a0 [videobuf2_core]
      [ 1012.916570] vb2_ioctl_reqbufs+0x63/0x90 [videobuf2_v4l2]
      [ 1012.916582] v4l_reqbufs+0x43/0x50 [videodev]
      [ 1012.916592] __video_do_ioctl+0x292/0x310 [videodev]
      [ 1012.916603] video_usercopy+0x1d5/0x610 [videodev]
      [ 1012.916612] ? video_ioctl2+0x20/0x20 [videodev]
      [ 1012.916623] video_ioctl2+0x15/0x20 [videodev]
      [ 1012.916631] v4l2_ioctl+0xbb/0xf0 [videodev]
      [ 1012.916637] do_vfs_ioctl+0xa1/0x5f0
      [ 1012.916640] ? putname+0x54/0x60
      [ 1012.916646] ? do_sys_open+0x1b4/0x280
      [ 1012.916650] SyS_ioctl+0x79/0x90
      [ 1012.916656] entry_SYSCALL_64_fastpath+0x1e/0xa9
      [ 1012.916659] RIP: 0033:0x7fa960c30f47
      [ 1012.916661] RSP: 002b:00007ffd59aa1518 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
      [ 1012.916665] RAX: ffffffffffffffda RBX: 00007fa960ef9620 RCX: 00007fa960c30f47
      [ 1012.916667] RDX: 00007ffd59aa1550 RSI: ffffffffc0145608 RDI: 0000000000000004
      [ 1012.916669] RBP: 00007ffd59aa1580 R08: 0000000000000000 R09: 0000000000000094
      [ 1012.916671] R10: 0000000000000838 R11: 0000000000000202 R12: 0000000000402e70
      [ 1012.916672] R13: 00007ffd59aa1598 R14: 0000000000000000 R15: 0000000000402e8f
      [ 1012.916679] xdma 0000:01:00.0: dma_alloc_coherent of size 11059200 failed

      Anyone has a idea whether the kernel is automatically updated or? I already switched off the update in fact.







      16.04 kernel






      share|improve this question







      New contributor




      Edward Gao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Edward Gao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Edward Gao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 days ago









      Edward Gao

      1




      1




      New contributor




      Edward Gao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Edward Gao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Edward Gao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



























          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Edward Gao is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094096%2fcustomized-kernel-is-modified-automatically%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Edward Gao is a new contributor. Be nice, and check out our Code of Conduct.










           

          draft saved


          draft discarded


















          Edward Gao is a new contributor. Be nice, and check out our Code of Conduct.













          Edward Gao is a new contributor. Be nice, and check out our Code of Conduct.












          Edward Gao is a new contributor. Be nice, and check out our Code of Conduct.















           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1094096%2fcustomized-kernel-is-modified-automatically%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How did Captain America manage to do this?

          迪纳利

          南乌拉尔铁路局