English 中文(简体)
Armv8: 收到的请求
原标题:Armv8: request_irq but unexpected interrupt received

我愿将IRQ的手稿登记在军械64 支气管模块中,舱面为5.4.0,我使用<代码>request_irq,并登记。 但是,当IRQ发生时,斜线报告。 收到的意外中断! 因此,我不知道如何解决这一问题。

I m trying to use request_irq to register an IRQ handler in arm64 Linux ko:

    err = request_irq(40, irq_handler, IRQF_SHARED, "hvisor", &hvisor_misc_dev);

并且没有错误。 但是,当我把IRQ40从第2条到第1条时,LC报告的信息是:

[   87.294702] Unexpected interrupt received!
[   87.295733] WARNING: CPU: 0 PID: 0 at drivers/irqchip/irq-gic-v3.c:650 gic_handle_irq+0x124/0x158

Why would this happen and how can I solve it? Who can help me, thanks a lot!

问题回答

我找到了解决办法。 这里必须添加一种 like器,如:

    xxx {
        compatible = "xxx";
        interrupts = <0x00 0x?? 0x01>;
    };

什么地方? 它是在下限32之后的ir。 然后,在海尔科,我们必须利用以下功能检索海尔克号:of_find_node_by_pathof_irq_get。 类似:

    struct device_node *node = NULL;
    node = of_find_node_by_path("/xxx");
    int irq = of_irq_get(node, 0);
    request_irq(irq, ....);

Then everything is okey!





相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...