From: Clemens Koller <clemens.koller@anagramm.de>
To: linux-mtd@lists.infradead.org
Subject: Oops on rmmod mtdblock module while in dev dir.
Date: Tue, 31 May 2005 14:06:31 +0200 [thread overview]
Message-ID: <429C5347.1080208@anagramm.de> (raw)
Hi, There!
I am new on this list, and new with mtd... so please be patient with me.
Some explanations what I am currently doing:
I'm working on an embedded PowerPC system (Freescale MPC8540 CPU) with
linux-2.6.11.9 (the latest mainstream ones).
I want to use a mtd to map the (IntelStrata) flash of my board at 0xfe000000
and another one to map my fpga at 0xfc000000 for some high speed framegrabber
applications.
So, I compiled several mtd things as modules and started to play
around a little to get an overview and see what happens...
While I was using the mtdblock and mtdchar at the same time along with
the physmap module (to map some 0xfc000000 space).
Reading from the mtd's seems to work fine (tested with cp and dd) and I
get my hardware generating the right chipselects and so on...
Unfortunately, when I try to rmmod mtdblock while I am cd'd into
/dev/mtdblock, I get a little Oops like this:
May 31 13:43:20 ecam kernel: kernel BUG in dget at include/linux/dcache.h:293!
May 31 13:43:20 ecam kernel: Oops: Exception in kernel mode, sig: 5 [#1]
May 31 13:43:20 ecam kernel: NIP: C0090D20 LR: C0101DE8 SP: C12DFD70 REGS: c12dfcc0 TRAP: 0700 Tainted: P
May 31 13:43:20 ecam kernel: MSR: 00029000 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 00
May 31 13:43:20 ecam kernel: TASK = c9ff4a60[3821] 'rmmod' THREAD: c12de000
May 31 13:43:20 ecam kernel: Last syscall: 129
May 31 13:43:20 ecam kernel: GPR00: 00000001 C12DFD70 C9FF4A60 CA084528 C055DB60 00000001 C12DFDA8 C0566380
May 31 13:43:20 ecam kernel: GPR08: C05663A4 00000000 C024EA1C C055DB70 00000000 1001A18C 00000000 00000000
May 31 13:43:20 ecam kernel: GPR16: 10000000 00000000 00000000 00000000 7FFFCF00 10013008 00000001 00000002
May 31 13:43:20 ecam kernel: GPR24: 00000880 7FFFCED0 C025B1A8 D1200354 C07F6800 CA084528 C9D7A90C C07DF044
May 31 13:43:20 ecam kernel: NIP [c0090d20] sysfs_remove_dir+0x28/0x184
May 31 13:43:20 ecam kernel: LR [c0101de8] kobject_del+0x18/0x30
May 31 13:43:20 ecam kernel: Call trace:
May 31 13:43:20 ecam kernel: [c0101de8] kobject_del+0x18/0x30
May 31 13:43:20 ecam kernel: [c0101e18] kobject_unregister+0x18/0x30
May 31 13:43:20 ecam kernel: [c013dc2c] elv_unregister_queue+0x24/0x40
May 31 13:43:20 ecam kernel: [c01428a4] blk_unregister_queue+0x48/0x6c
May 31 13:43:20 ecam kernel: [c0143894] unlink_gendisk+0x18/0x40
May 31 13:43:20 ecam kernel: [c008e9d4] del_gendisk+0x68/0xfc
May 31 13:43:20 ecam kernel: [c0168094] del_mtd_blktrans_dev+0x90/0xb8
May 31 13:43:20 ecam kernel: [d11ff91c] mtdblock_remove_dev+0x18/0x34 [mtdblock]
May 31 13:43:20 ecam kernel: [c0168164] blktrans_notify_remove+0xa8/0xac
May 31 13:43:20 ecam kernel: [c0165724] del_mtd_device+0xc8/0x14c
May 31 13:43:20 ecam kernel: [d120401c] cleanup_physmap+0x1c/0x130 [physmap]
May 31 13:43:20 ecam kernel: [c0036428] sys_delete_module+0x1f4/0x2b8
May 31 13:43:20 ecam kernel: [c0001ec4] ret_from_syscall+0x0/0x48
So maybe there are some missing error handlers...
As I will work more on the mtd's next time and get more into
all that I can try to find and fix that bug. But that will
take some time.
Best greets,
Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany
http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19
next reply other threads:[~2005-05-31 12:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-31 12:06 Clemens Koller [this message]
2005-05-31 12:25 ` Oops on rmmod mtdblock module while in dev dir Thomas Gleixner
2005-05-31 15:51 ` David Woodhouse
2005-05-31 15:55 ` Josh Boyer
2005-05-31 15:57 ` David Woodhouse
2005-06-01 8:51 ` Jörn Engel
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=429C5347.1080208@anagramm.de \
--to=clemens.koller@anagramm.de \
--cc=linux-mtd@lists.infradead.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