回复:Re:Xenomai Digest, Vol 81, Issue 19

张建昆 kunzj at 126.com
Sat Jan 26 09:04:17 CET 2019


Hi liang, Thanks!

I've read your link, will try later.

This is the way i register the irq handler:
    error = request_threaded_irq(client->irq, NULL, edt_ft5x06_ts_isr,
                                 IRQF_TRIGGER_FALLING | IRQF_ONESHOT | IRQF_NO_SUSPEND,
                                 client->name, tsdata);
The code is in my driver function edt_ft5x06_ts_probe;


The call trace at start up with ipipe are:

1.
edt_ft5x06_ts_probe
 gpiod_to_irq
  gpiochip_to_irq
   irq_create_mapping
    irq_domain_associate
     gpiochip_irq_map
      irq_set_chip_and_handler_name
       __irq_set_handler
        __irq_do_set_handler
         __fixup_irq_handler
2.
omap_gpio_probe
 omap_gpio_chip_init
  gpiochip_irqchip_add(&bank->chip, irqc, irq_base, handle_bad_irq, IRQ_TYPE_NONE);
   gpiochip_irqchip_add_key     struct gpio_chip->irq_handler
  irq_set_chained_handler_and_data  struct gpio_chip->irq_handler omap_gpio_irq_handler







在 2019-01-26 13:01:04,"liang_1911 via Xenomai" <xenomai at xenomai.org> 写道:
>Hi, JianKun
>How do you register the  irq handler?
>You can refer to this link:
>bbb板子xenomai GPIO irq驱动出现异常 - Sitara™ Cortex-A8 和 ARM9 微处理器 - Sitara™ Cortex-A8 和 ARM9 微处理器 - TI E2E™ 中文社区
>
>
>--
>
>----------------------------------------------
>         Quan
>THANKS & BR!
>
>
>
>
>
>At 2019-01-22 19:00:01, xenomai-request at xenomai.org wrote:
>>Send Xenomai mailing list submissions to
>>	xenomai at xenomai.org
>>
>>To subscribe or unsubscribe via the World Wide Web, visit
>>	https://xenomai.org/mailman/listinfo/xenomai
>>or, via email, send a message with subject or body 'help' to
>>	xenomai-request at xenomai.org
>>
>>You can reach the person managing the list at
>>	xenomai-owner at xenomai.org
>>
>>When replying, please edit your Subject line so it is more specific
>>than "Re: Contents of Xenomai digest..."
>>
>>
>>Today's Topics:
>>
>>   1. Re:Help: System freeze when edge interrupt trigger,
>>      Xenomain3.0.8, ipipe-arm main line, am335x (张建昆)
>>
>>
>>----------------------------------------------------------------------
>>
>>Message: 1
>>Date: Tue, 22 Jan 2019 18:33:50 +0800 (CST)
>>From: 张建昆 <kunzj at 126.com>
>>To: xenomai at xenomai.org
>>Subject: Re:Help: System freeze when edge interrupt trigger,
>>	Xenomain3.0.8, ipipe-arm main line, am335x
>>Message-ID: <4ddd614.76d7.168751f9385.Coremail.kunzj at 126.com>
>>Content-Type: text/plain; charset=GBK
>>
>>Hello everyone, here is some new clues:
>>1. I tried xenomai 3.0.8, kernel 3.14.17 and ipipe-core-4.14.71-arm-4.patch. Still the same question.
>>
>>2. It seems the system is locked up once a gpio interrupt is triggered.
>>
>>3. Some debug information show that, once a gpio interrupt is triggered, the function
>>
>>    'omap_gpio_irq_handler' is triggered all the time.
>>
>>There may be a little bug exists, but i don't know how to amend it. Thank you very much, if anyone can help.
>>
>>>------------------------------
>>>
>>>Message: 3
>>>Date: Fri, 18 Jan 2019 11:48:12 +0800 (CST)
>>>From: 张建昆 <kunzj at 126.com>
>>>To: xenomai at xenomai.org
>>>Subject: Help: System freeze when edge interrupt trigger,
>>>	Xenomain3.0.8, ipipe-arm main line, am335x
>>>Message-ID: <55c89c76.3420.1685f12c488.Coremail.kunzj at 126.com>
>>>Content-Type: text/plain; charset="gbk"
>>>
>>>Hello!
>>>    The system freeze when interrupt is triggered. I clone ipipe-arm master, and use xenomai 3.0.8 following xenomai startup tutorial.
>>>The hardware cpu is am3358. System works fine after start up, but the system immediately locks up when a edge interrupt. For example,
>>>the mmc card in pluged in. Is it something worng ? Thank you very much!
>>>
>>>    The kernel config file and dts attached.
>>>
>>>
>>>-------------- next part --------------
>>>A non-text attachment was scrubbed...
>>>Name: .config
>>>Type: application/octet-stream
>>>Size: 129591 bytes
>>>Desc: not available
>>>URL: <http://xenomai.org/pipermail/xenomai/attachments/20190118/538175f9/attachment.obj>
>>>-------------- next part --------------
>>>A non-text attachment was scrubbed...
>>>Name: am335x-dnk-v1_LCD800x480_TM070RDH13.dts
>>>Type: application/octet-stream
>>>Size: 29436 bytes
>>>Desc: not available
>>>URL: <http://xenomai.org/pipermail/xenomai/attachments/20190118/538175f9/attachment-0001.obj>
>>>
>>>------------------------------
>>>
>>>Subject: Digest Footer
>>>
>>>
>>>
>>>
>>>------------------------------
>>>
>>>End of Xenomai Digest, Vol 81, Issue 17
>>>***************************************
>>
>>------------------------------
>>
>>Subject: Digest Footer
>>
>>
>>
>>
>>------------------------------
>>
>>End of Xenomai Digest, Vol 81, Issue 19
>>***************************************


More information about the Xenomai mailing list