Coder Social home page Coder Social logo

sunxi-can-driver's Introduction

sunxi-can-driver

sunxi CAN controller driver use socketcan refer to the SJA1000 driver

sunxi-can-driver's People

Contributors

ryangithub avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sunxi-can-driver's Issues

Bus error IRQ no body cared

Bug report:
When send a frame with CANBUS disconnected.The driver will trogger a bus err interrupt.The driver does capture the interrupt and enter the bus error handle function.The weird thing is CPU report "irq 58: nobody cared..". Logs are shown below.

<6>[ 2293.374112] CAN_INT_ADDR:0x00000084
<6>[ 2293.374134] irq:BUS_ERR...
<6>[ 2293.374144] sun7i_can_err
<6>[ 2293.374167] irq:n=1
<6>[ 2293.374177] CAN_INT_ADDR:0x00000000
<3>[ 2293.610243] irq 58: nobody cared (try booting with the "irqpoll" option)
<1>[ 2293.617754] [<c00142d0>] (unwind_backtrace+0x0/0xe0) from [<c009ab7c>] (__report_bad_irq+0x24/0xb8)
<1>[ 2293.627842] [<c009ab7c>] (__report_bad_irq+0x24/0xb8) from [<c009afcc>] (note_interrupt+0x180/0x230)
<1>[ 2293.638023] [<c009afcc>] (note_interrupt+0x180/0x230) from [<c009926c>] (handle_irq_event_percpu+0x148/0x16c)
<1>[ 2293.649076] [<c009926c>] (handle_irq_event_percpu+0x148/0x16c) from [<c00992cc>] (handle_irq_event+0x3c/0x5c)
<1>[ 2293.660127] [<c00992cc>] (handle_irq_event+0x3c/0x5c) from [<c009bb68>] (handle_fasteoi_irq+0xc8/0x114)
<1>[ 2293.670599] [<c009bb68>] (handle_fasteoi_irq+0xc8/0x114) from [<c0098a64>] (generic_handle_irq+0x2c/0x40)
<1>[ 2293.681269] [<c0098a64>] (generic_handle_irq+0x2c/0x40) from [<c000e81c>] (handle_IRQ+0x78/0xb8)
<1>[ 2293.691063] [<c000e81c>] (handle_IRQ+0x78/0xb8) from [<c00084c4>] (gic_handle_irq+0x34/0x58)
<1>[ 2293.700469] [<c00084c4>] (gic_handle_irq+0x34/0x58) from [<c000d500>] (__irq_svc+0x40/0x70)
<1>[ 2293.709769] Exception stack(0xee055cf0 to 0xee055d38)
<1>[ 2293.715396] 5ce0:                                     00000000 00000000 ee055d28 00000000
<1>[ 2293.724510] 5d00: ee054000 00000282 c06d7c60 ee055dcc 0000000a 000280d0 c073a3c0 c0718cc0
<1>[ 2293.733622] 5d20: 00000000 ee055d38 c005700c c0057018 20000113 ffffffff
<1>[ 2293.740999] [<c000d500>] (__irq_svc+0x40/0x70) from [<c0057018>] (__do_softirq+0x44/0x12c)
<1>[ 2293.750212] [<c0057018>] (__do_softirq+0x44/0x12c) from [<c005751c>] (irq_exit+0x44/0x98)
<1>[ 2293.759327] [<c005751c>] (irq_exit+0x44/0x98) from [<c000e820>] (handle_IRQ+0x7c/0xb8)
<1>[ 2293.768152] [<c000e820>] (handle_IRQ+0x7c/0xb8) from [<c00084c4>] (gic_handle_irq+0x34/0x58)
<1>[ 2293.777557] [<c00084c4>] (gic_handle_irq+0x34/0x58) from [<c000d500>] (__irq_svc+0x40/0x70)
<1>[ 2293.786856] Exception stack(0xee055d98 to 0xee055de0)
<1>[ 2293.792481] 5d80:                                                       ee1bcf50 00000016
<1>[ 2293.801595] 5da0: aaaaaaaa aaaaaaaa ee1bc000 000000aa aaaaaaaa aaaaaaaa 00000001 000280d0
<1>[ 2293.810709] 5dc0: 00000001 c0718cc0 00001000 ee055de4 c00c7590 c01d4104 20000013 ffffffff
<1>[ 2293.819828] [<c000d500>] (__irq_svc+0x40/0x70) from [<c01d4104>] (memchr_inv+0x100/0x130)
<1>[ 2293.828949] [<c01d4104>] (memchr_inv+0x100/0x130) from [<c00c7590>] (kernel_map_pages+0x44/0x16c)
<1>[ 2293.838844] [<c00c7590>] (kernel_map_pages+0x44/0x16c) from [<c00a8118>] (get_page_from_freelist+0x3b0/0x478)
<1>[ 2293.849898] [<c00a8118>] (get_page_from_freelist+0x3b0/0x478) from [<c00a832c>] (__alloc_pages_nodemask+0x14c/0x62c)
<1>[ 2293.861629] [<c00a832c>] (__alloc_pages_nodemask+0x14c/0x62c) from [<c0050490>] (copy_process+0xb8/0xdf0)
<1>[ 2293.872294] [<c0050490>] (copy_process+0xb8/0xdf0) from [<c00512c8>] (do_fork+0xdc/0x2b8)
<1>[ 2293.881413] [<c00512c8>] (do_fork+0xdc/0x2b8) from [<c000d900>] (ret_fast_syscall+0x0/0x30)
<3>[ 2293.890711] handlers:
<3>[ 2293.893247] [<bf2970e0>] sun7i_can_interrupt
<0>[ 2293.898004] Disabling IRQ #58

I am confused about this problem and have no idea to deal with.Google tells that it may something about the CPU north bridge settings.<refer to:http://blog.csdn.net/unbutun/article/details/6595909>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.