시리얼 관련 커널 에러입니다.

pinebud의 이미지

어디에 질문을 올려야할지 막막해서 질문 올려봅니다.

시리얼 포트를 오픈할때 에러가 발생합니다.
BIOS나 펌웨어가 새로운 플랫폼이라서 정확히 드라이버 문제라고 하기도 힘든 상황입니다.
/proc/interrupts에서는 irq4에는 달려있는 디바이스가 없습니다.
디버그에 필요한 툴이나 힌트가 없을까요? 혹은 어디에 질문을 올리는 것이 좋을까요?

커널 버전은 2.6.24, 메세지는 다음과 같습니다.
.........
Bluetooth: SCO socket layer initialized
irq 4: nobody cared (try booting with the "irqpoll" option)
Pid: 2723, comm: hh2gpsd Not tainted 2.6.24 #9
[] __report_bad_irq+0x36/0x75
[] note_interrupt+0x212/0x24f
[] handle_IRQ_event+0x1a/0x3f
[] handle_edge_irq+0xb3/0xff
[] do_IRQ+0x57/0x70
[] common_interrupt+0x23/0x30
[] rtc_do_ioctl+0x2f0/0x6d1
[] audit_receive_filter+0x588/0x9a9
[] _spin_unlock_irqrestore+0x8/0x9
[] serial8250_startup+0x479/0x4f1
[] uart_startup+0x67/0x10c
[] uart_open+0x13e/0x348
[] check_tty_count+0x16/0x8f
[] tty_open+0x177/0x277
[] chrdev_open+0x118/0x133
[] chrdev_open+0x0/0x133
[] __dentry_open+0xce/0x185
[] nameidata_to_filp+0x24/0x33
[] do_filp_open+0x37/0x3e
[] get_unused_fd_flags+0x5a/0xc2
[] do_sys_open+0x44/0xca
[] sys_open+0x1c/0x1e
[] sysenter_past_esp+0x5f/0x89
=======================
handlers:
[] (serial8250_interrupt+0x0/0x10f)
Disabling IRQ #4
hda-intel: Invalid position buffer, using LPIB read method instead.
........

bushi의 이미지

/proc/interrupts에서는 irq4에는 달려있는 디바이스가 없습니다.

ttyS 들은 open() 때 request_irq() 를 합니다.
그러므로, 평상시에 /proc/interrupts 로 확인할 수 없습니다.
부팅 메시지나 dmesg 의 결과를 살펴보시면 할당된 io, irq 를 확인하실 수 있습니다.

트레이스를 보면,
염려하시듯 irq #4 에 대한 핸들러(interrupt service routine) 이 없어서 발생하는 panic() 인데...
2.4 커널은 본지도 오래됐고 볼 일도 없고... 어디 물어봐도 제대로 된 댓글 달리기 어려울 것 같습니다.

짐작으로는,
request_irq() 전에 어떤 이유에선가 irq#4 가 먼저 enable 됐고,
재수없게도 마침 irq#4 인터럽트가 발생한 것 같습니다.
커널 수정한 부분이 있으면 위처럼 절차를 어긋나게 수정한 곳이 있는 지 확인해보세요.

OTL

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.