* Oops on rmmod mtdblock module while in dev dir.
@ 2005-05-31 12:06 Clemens Koller
2005-05-31 12:25 ` Thomas Gleixner
0 siblings, 1 reply; 6+ messages in thread
From: Clemens Koller @ 2005-05-31 12:06 UTC (permalink / raw)
To: linux-mtd
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Oops on rmmod mtdblock module while in dev dir.
2005-05-31 12:06 Oops on rmmod mtdblock module while in dev dir Clemens Koller
@ 2005-05-31 12:25 ` Thomas Gleixner
2005-05-31 15:51 ` David Woodhouse
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Gleixner @ 2005-05-31 12:25 UTC (permalink / raw)
To: Clemens Koller; +Cc: linux-mtd
On Tue, 2005-05-31 at 14:06 +0200, Clemens Koller wrote:
> Unfortunately, when I try to rmmod mtdblock while I am cd'd into
> /dev/mtdblock, I get a little Oops like this:
> c12dfcc0 TRAP: 0700 Tainted: P
-------------------------^^^^^^^^^^
Please read linux/Documentation/oops-tracing.txt section Tainted kernels
> May 31 13:43:20 ecam kernel: NIP [c0090d20] sysfs_remove_dir+0x28/0x184
Thats not a problem of mtd. Its a problem of sysfs/devfs
tglx
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Oops on rmmod mtdblock module while in dev dir.
2005-05-31 12:25 ` Thomas Gleixner
@ 2005-05-31 15:51 ` David Woodhouse
2005-05-31 15:55 ` Josh Boyer
0 siblings, 1 reply; 6+ messages in thread
From: David Woodhouse @ 2005-05-31 15:51 UTC (permalink / raw)
To: tglx; +Cc: Clemens Koller, linux-mtd
On Tue, 2005-05-31 at 14:25 +0200, Thomas Gleixner wrote:
> Thats not a problem of mtd. Its a problem of sysfs/devfs
IIRC it's because we register more than one gendisk with the same major.
--
dwmw2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Oops on rmmod mtdblock module while in dev dir.
2005-05-31 15:51 ` David Woodhouse
@ 2005-05-31 15:55 ` Josh Boyer
2005-05-31 15:57 ` David Woodhouse
0 siblings, 1 reply; 6+ messages in thread
From: Josh Boyer @ 2005-05-31 15:55 UTC (permalink / raw)
To: David Woodhouse; +Cc: tglx, Clemens Koller, linux-mtd
On Tue, 2005-05-31 at 16:51 +0100, David Woodhouse wrote:
> On Tue, 2005-05-31 at 14:25 +0200, Thomas Gleixner wrote:
> > Thats not a problem of mtd. Its a problem of sysfs/devfs
>
> IIRC it's because we register more than one gendisk with the same major.
It's even more complicated when working with partitions. A MTD
partition is actually a whole new device to MTD, whereas a partition in
general block terms is just a subset of a particular device. Things in
this area need some help.
josh
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Oops on rmmod mtdblock module while in dev dir.
2005-05-31 15:55 ` Josh Boyer
@ 2005-05-31 15:57 ` David Woodhouse
2005-06-01 8:51 ` Jörn Engel
0 siblings, 1 reply; 6+ messages in thread
From: David Woodhouse @ 2005-05-31 15:57 UTC (permalink / raw)
To: Josh Boyer; +Cc: tglx, Clemens Koller, linux-mtd
On Tue, 2005-05-31 at 10:55 -0500, Josh Boyer wrote:
> It's even more complicated when working with partitions. A MTD
> partition is actually a whole new device to MTD, whereas a partition in
> general block terms is just a subset of a particular device. Things in
> this area need some help.
That's just a terminology mismatch though, and shouldn't really be
relevant.
--
dwmw2
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Oops on rmmod mtdblock module while in dev dir.
2005-05-31 15:57 ` David Woodhouse
@ 2005-06-01 8:51 ` Jörn Engel
0 siblings, 0 replies; 6+ messages in thread
From: Jörn Engel @ 2005-06-01 8:51 UTC (permalink / raw)
To: David Woodhouse; +Cc: tglx, Clemens Koller, linux-mtd
On Tue, 31 May 2005 16:57:49 +0100, David Woodhouse wrote:
> On Tue, 2005-05-31 at 10:55 -0500, Josh Boyer wrote:
> > It's even more complicated when working with partitions. A MTD
> > partition is actually a whole new device to MTD, whereas a partition in
> > general block terms is just a subset of a particular device. Things in
> > this area need some help.
>
> That's just a terminology mismatch though, and shouldn't really be
> relevant.
Unless you add hotplug. Treating partitions as independent devices
might have some interesting effects.
Jörn
--
Happiness isn't having what you want, it's wanting what you have.
-- unknown
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-06-01 8:52 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-31 12:06 Oops on rmmod mtdblock module while in dev dir Clemens Koller
2005-05-31 12:25 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox