All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Feretich <bob.feretich@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Adeos patch prevents IRQ 384 (MMC Chip Detect) on omap-2.6.33
Date: Fri, 23 Jul 2010 16:43:43 -0700	[thread overview]
Message-ID: <4C4A292F.5040900@domain.hid> (raw)
In-Reply-To: <4C48C2CE.1030706@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 6468 bytes --]

  I have started a new thread with a name that better describes the 
failure I am seeing. This may or may not be the reason I was seeing root 
file system mount hang on omap-2.6.31 (previous thread).

The SD card/MMC  "Chip Detect" interrupt (activated when a SD card is 
inserted or removed) can't be tested when the root file system is on the 
SD card. So I rebuilt my 2.6.33 BeagleBoard system to mount the root 
file system via NFS. Now the  failure of Xenomai to handle twl4030 
interrupts can be identified and isolated.

2.6.33 without the Adeos patch...
The Angstrom Distribution beagleboard ttyS2

Angstrom 2010.4-test-20100518 beagleboard ttyS2

beagleboard login: root
root@domain.hid:~# cat /proc/interrupts
            CPU0
   7:          2        INTC  TWL4030-PIH
  12:        203        INTC  DMA
  37:       1219        INTC  gp timer
  56:        368        INTC  i2c_omap
  61:          0        INTC  i2c_omap
  74:        125        INTC  serial
  77:      10694        INTC  ehci_hcd:usb2
  83:        106        INTC  mmc0
  92:          1        INTC  musb_hdrc
  93:          0        INTC  musb_hdrc
378:          2     twl4030  twl4030_usb
379:          0     twl4030  rtc0
384:          0     twl4030  mmc0
Err:          0
root@domain.hid:~# ls /dev
block               ram6                tty39
... snipped ...
mem                 tty2                tty58
mmcblk0             tty20               tty59
mmcblk0p1           tty21               tty6
mmcblk0p2           tty22               tty60
network_latency     tty23               tty61
... snipped ...
root@domain.hid:~# umount /dev/mmcblk0p1
root@domain.hid:~# umount /dev/mmcblk0p2

****** I removed the SD card here ****************************

root@domain.hid:~# [  122.126495] mmc0: card 0007 removed
root@domain.hid:~# ls /dev
block               ram9                tty40
... snipped ...
mem                 tty21               tty59 <=== mmc entries are gone
network_latency     tty22               tty6
... snipped ...
root@domain.hid:~# cat /proc/interrupts
            CPU0
   7:          3        INTC  TWL4030-PIH
  12:        208        INTC  DMA
  37:       2477        INTC  gp timer
  56:        388        INTC  i2c_omap
  61:          0        INTC  i2c_omap
  74:        437        INTC  serial
  77:      12374        INTC  ehci_hcd:usb2
  83:        135        INTC  mmc0
  92:          1        INTC  musb_hdrc
  93:          0        INTC  musb_hdrc
378:          2     twl4030  twl4030_usb
379:          0     twl4030  rtc0
384:          1     twl4030  mmc0 <===== notice the Chip Detect irpt
Err:          0

****** I reinserted the SD card here ****************************

root@domain.hid:~# [  270.691955] mmc0: new high speed SD card at 
address 0007
[  270.699981] mmcblk0: mmc0:0007 SD01G 972 MiB
[  270.704742]  mmcblk0: p1 p2
[  271.448608] EXT2-fs (mmcblk0p2): warning: mounting ext3 filesystem as 
ext2
[  271.455749] EXT2-fs (mmcblk0p2): warning: mounting unchecked fs, 
running e2fsck is recommended

root@domain.hid:~# cat /proc/interrupts
            CPU0
   7:          4        INTC  TWL4030-PIH
  12:        358        INTC  DMA
  37:       3520        INTC  gp timer
  56:        416        INTC  i2c_omap
  61:          0        INTC  i2c_omap
  74:        625        INTC  serial
  77:      14021        INTC  ehci_hcd:usb2
  83:        247        INTC  mmc0
  92:          1        INTC  musb_hdrc
  93:          0        INTC  musb_hdrc
378:          2     twl4030  twl4030_usb
379:          0     twl4030  rtc0
384:          2     twl4030  mmc0 <===== notice second Chip Detect irpt
Err:          0

2.6.33 with the Adeos patch and Xenomai enabled...
The Angstrom Distribution beagleboard ttyS2

Angstrom 2010.4-test-20100518 beagleboard ttyS2

beagleboard login: root
root@domain.hid:~# cat /proc/interrupts
            CPU0
   7:     161656        INTC  TWL4030-PIH
  12:        176        INTC  DMA
  37:       2642        INTC  gp timer
  56:     585760        INTC  i2c_omap
  61:          0        INTC  i2c_omap
  74:         85        INTC  serial
  77:      11018        INTC  ehci_hcd:usb2
  83:        144        INTC  mmc0
  92:          1        INTC  musb_hdrc
  93:          0        INTC  musb_hdrc
378:          0     twl4030  twl4030_usb
379:          0     twl4030  rtc0
384:          0     twl4030  mmc0
Err:          0
root@domain.hid:~# ls /dev
block               rtp11               tty29
... snipped ...
mem                 rtp30               tty48
mmcblk0             rtp31               tty49
mmcblk0p1           rtp4                tty5
mmcblk0p2           rtp5                tty50
network_latency     rtp6                tty51
... snipped ...
root@domain.hid:~# umount /dev/mmcblk0p1
root@domain.hid:~# umount /dev/mmcblk0p2

****** I removed the SD card here, no removal msg  *****************

root@domain.hid:~# ls /dev
block               rtp11               tty29
... snipped ...
mem                 rtp30               tty48
mmcblk0             rtp31               tty49
mmcblk0p1           rtp4                tty5
mmcblk0p2           rtp5                tty50
network_latency     rtp6                tty51
... snipped ...
root@domain.hid:~# cat /proc/interrupts
            CPU0
   7:    1106318        INTC  TWL4030-PIH
  12:        180        INTC  DMA
  37:      13933        INTC  gp timer
  56:    4029606        INTC  i2c_omap
  61:          0        INTC  i2c_omap
  74:        440        INTC  serial
  77:      12416        INTC  ehci_hcd:usb2
  83:        364        INTC  mmc0
  92:          1        INTC  musb_hdrc
  93:          0        INTC  musb_hdrc
378:          0     twl4030  twl4030_usb <=== also 0, but not sure if 
its meaningful
379:          0     twl4030  rtc0
384:          0     twl4030  mmc0 <===== no Chip Detect irpt
Err:          0

Reinserting the SD card did not result in a message. The SD card file 
systems seemed to be in a half mounted state.

I suspect that this bug effects all interrupts received via twl4030 
family devices.

Regards,
Bob Feretich

On 7/22/2010 3:14 PM, Gilles Chanteperdrix wrote:
> ... snipped ...
> As I said, the absence of IRQ 378 in 2.6.33 looks like a regression,
> which should be easy to find with git bisect. Then when you know the
> commit which caused the regression, tell me, I will revert it on 2.6.33,
> so that I can reproduce the bug you are facing on my board, and
> hopefully what happens with the Adeos patch.
>
>

[-- Attachment #2: Type: text/html, Size: 10728 bytes --]

  parent reply	other threads:[~2010-07-23 23:43 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19  3:36 [Xenomai-help] Adeos patched kernel hangs mounting root file system Bob Feretich
2010-07-19  4:19 ` Gilles Chanteperdrix
2010-07-19  7:18   ` Bob Feretich
2010-07-19  8:31     ` Gilles Chanteperdrix
2010-07-20  0:11       ` Bob Feretich
2010-07-20  7:11         ` Gilles Chanteperdrix
2010-07-20  7:31           ` Bob Feretich
2010-07-20  7:45             ` Gilles Chanteperdrix
2010-07-20 16:29               ` Gilles Chanteperdrix
2010-07-20 20:20                 ` Bob Feretich
2010-07-20 21:24                   ` Gilles Chanteperdrix
2010-07-21  5:06                     ` Bob Feretich
2010-07-21  5:24                       ` Gilles Chanteperdrix
2010-07-21  6:19                         ` Bob Feretich
2010-07-21 20:33                         ` Bob Feretich
2010-07-21 23:30                           ` Bob Feretich
2010-07-22 22:10                             ` [Xenomai-help] Adeos patched kernel hangs mounting root file system - correction Bob Feretich
2010-07-22 22:14                               ` Gilles Chanteperdrix
2010-07-22 23:33                                 ` Bob Feretich
2010-07-22 23:35                                   ` Gilles Chanteperdrix
2010-07-23  0:37                                     ` Bob Feretich
2010-07-23  5:37                                       ` Gilles Chanteperdrix
2010-07-23 23:43                                 ` Bob Feretich [this message]
2010-07-24 12:42                                   ` [Xenomai-help] Adeos patch prevents IRQ 384 (MMC Chip Detect) on omap-2.6.33 Gilles Chanteperdrix
2010-07-24 12:57                                     ` Gilles Chanteperdrix
2010-07-24 18:50                                     ` Bob Feretich
2010-07-24 18:57                                       ` Gilles Chanteperdrix
2010-07-25  5:08                                         ` Bob Feretich
2010-07-25  7:02                                           ` Gilles Chanteperdrix
2010-07-25  9:24                                           ` Gilles Chanteperdrix
2010-07-26  1:57                                             ` [Xenomai-help] Adeos patch prevents IRQ 384 (MMC Chip Detect) on omap-2.6.33 - working now Bob Feretich
2010-07-26  7:01                                               ` Gilles Chanteperdrix
2010-07-20  7:15       ` [Xenomai-help] Adeos patched kernel hangs mounting root file system Bob Feretich
2010-07-20  7:17         ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C4A292F.5040900@domain.hid \
    --to=bob.feretich@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.