mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Woody Wu <narkewoody@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Serial8250 doesn't populate in /proc/iomem?
Date: Mon, 10 Dec 2012 06:25:14 +0000 (UTC)	[thread overview]
Message-ID: <slrnkcb00b.77o.narkewoody@zuhnb712.local.com> (raw)

Hi, list

I found some io memory information is lost from /dev/iomem and want to
find out why.

I have a 2.6.16 kernel running on a ARM board (Samsung S3C2410). From
the kernel log, I see 16 8250 serial ports were detected, and each of
thoese ports has a memory address:

Serial: 8250/16550 driver $Revision: 1.90 $ 16 ports, IRQ sharing enabled
serial8250: tts0 at MMIO 0xe1400000 (irq = 16) is a 16550A
serial8250: tts1 at MMIO 0xe1400008 (irq = 16) is a 16550A
serial8250: tts2 at MMIO 0xe1400010 (irq = 17) is a 16550A
serial8250: tts3 at MMIO 0xe1400018 (irq = 17) is a 16550A
serial8250: tts4 at MMIO 0xe1400020 (irq = 18) is a 16550A
serial8250: tts5 at MMIO 0xe1400028 (irq = 18) is a 16550A
serial8250: tts6 at MMIO 0xe1400030 (irq = 19) is a 16550A
serial8250: tts7 at MMIO 0xe1400038 (irq = 19) is a 16550A
serial8250: tts8 at MMIO 0xe1400040 (irq = 48) is a 16550A
serial8250: tts9 at MMIO 0xe1400048 (irq = 48) is a 16550A
serial8250: tts10 at MMIO 0xe1400050 (irq = 49) is a 16550A
serial8250: tts11 at MMIO 0xe1400058 (irq = 49) is a 16550A
serial8250: tts12 at MMIO 0xe1400060 (irq = 60) is a 16550A
serial8250: tts13 at MMIO 0xe1400068 (irq = 60) is a 16550A
serial8250: tts14 at MMIO 0xe1400070 (irq = 61) is a 16550A
serial8250: tts15 at MMIO 0xe1400078 (irq = 61) is a 16550A

I can read/write these serial ports from /dev/ttys*, in other words,
they do exist.  I also can find the driver info from /proc/devices:

Character devices:                                               

  ...
  4 /dev/vc/0
  4 tty
  4 tts
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  7 vcs
  ...

The problem is, I don't understand why there is no information about
these ports in /proc/iomem file. The 'iomem' file now contains:

11000000-11000ffe : AX88796B
19000000-19000ffe : AX88796B
30000000-33ffffff : System RAM
  3001c000-301e826b : Kernel text
  301ea000-302234a3 : Kernel data
49000000-490fffff : s3c2410-ohci
  49000000-490fffff : ohci_hcd
4e000000-4e0fffff : s3c2410-nand
  4e000000-4e0fffff : s3c2410-nand
50000000-50003fff : s3c2410-uart.0
  50000000-500000ff : s3c2410-uart
50004000-50007fff : s3c2410-uart.1
  50004000-500040ff : s3c2410-uart
50008000-5000bfff : s3c2410-uart.2
  50008000-500080ff : s3c2410-uart
53000000-530fffff : s3c2410-wdt
54000000-540fffff : s3c2410-i2c
5a000000-5a0fffff : s3c2410-sdi
  5a000000-5a0fffff : mmci-s3c2410

You see, there is no serial8250 informations.

Can anyone here please tell me how this can happen?  Does it mean the
serial8250 driver don't populate or register in the /proc/iomem?




-- 
woody
I can't go back to yesterday - because I was a different person then.


             reply	other threads:[~2012-12-10  6:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-10  6:25 Woody Wu [this message]
2012-12-11  1:10 ` Woody Wu
2012-12-11 10:26   ` Alan Cox
2012-12-11  2:54 ` Bjorn Helgaas

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=slrnkcb00b.77o.narkewoody@zuhnb712.local.com \
    --to=narkewoody@gmail.com \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®