linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.5.60 "Badness in kobject_register at lib/kobject.c:152"
@ 2003-02-11 12:00 Guennadi Liakhovetski
  2003-02-11 13:26 ` Alan Cox
  0 siblings, 1 reply; 8+ messages in thread
From: Guennadi Liakhovetski @ 2003-02-11 12:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andre Hedrick

Hell

I reported earlier a problem with getting 2 flash disks to work in
true-IDE mode with 2.4.[18|20]
(http://www.uwsg.indiana.edu/hypermail/linux/kernel/0302.0/0918.html).
Today I tried 2.5.60. Tried with 2 flash-disks and with 1 only. With 2
flash-disks connected the kernel panics (notice, hda disappears after the
initial detection):

...

Kernel command line: BOOT_IMAGE=4 ro root=301 hdb=flash console=ttyS0,38400 console=tty1
ide_setup: hdb=flash

...

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xfc90-0xfc97, BIOS settings: hda:pio, hdb:pio
hda: Hitachi CV 7.1.1, CFA DISK drive
hdb: SunDisk SDP3B-220, CFA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hdb: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hdb: task_no_data_intr: error=0x04 { DriveStatusError }
hdb: 430080 sectors (220 MB) w/1KiB Cache, CHS=840/16/32, BUG
 hdb:hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdb: dma_intr: error=0x04 { DriveStatusError }
hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdb: dma_intr: error=0x04 { DriveStatusError }
hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdb: dma_intr: error=0x04 { DriveStatusError }
hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdb: dma_intr: error=0x04 { DriveStatusError }
hdb: DMA disabled
ide0: reset: success
 hdb1
 hdb: hdb1
Badness in kobject_register at lib/kobject.c:152
Call Trace:
 [<c01972ba>] kobject_register+0x3e/0x54
 [<c015d816>] add_partition+0x56/0x60
 [<c015d95a>] register_disk+0xfa/0x128
 [<c01b8ed1>] add_disk+0x35/0x44
 [<c01b8e70>] exact_match+0x0/0xc
 [<c01b8e7c>] exact_lock+0x0/0x20
 [<c01cdebe>] idedisk_attach+0x17a/0x18c
 [<c01ca6f6>] ata_attach+0x46/0xac
 [<c01cb23e>] ide_register_driver+0x9a/0xcc
 [<c01cdedd>] idedisk_init+0xd/0x20
 [<c010502c>] init+0x0/0x144
 [<c0105049>] init+0x1d/0x144
 [<c010502c>] init+0x0/0x144
 [<c0107001>] kernel_thread_helper+0x5/0xc

...

VFS: Cannot open root device "301" or 03:01
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 03:01

With only one (hda) disk the system boots, but there's still an error
message:

...

Kernel command line: BOOT_IMAGE=4 ro root=301 hdb=flash console=ttyS0,38400 console=tty1
ide_setup: hdb=flash

...

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xfc90-0xfc97, BIOS settings: hda:pio, hdb:pio
hda: Hitachi CV 7.1.1, CFA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: 31488 sectors (16 MB) w/1KiB Cache, CHS=246/4/32, BUG
 hda:hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x04 { DriveStatusError }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x04 { DriveStatusError }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x04 { DriveStatusError }
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x04 { DriveStatusError }
hda: DMA disabled
ide0: reset: success
 hda1
 hda: hda1
Badness in kobject_register at lib/kobject.c:152
Call Trace:
 [<c01972ba>] kobject_register+0x3e/0x54
 [<c015d816>] add_partition+0x56/0x60
 [<c015d95a>] register_disk+0xfa/0x128
 [<c01b8ed1>] add_disk+0x35/0x44
 [<c01b8e70>] exact_match+0x0/0xc
 [<c01b8e7c>] exact_lock+0x0/0x20
 [<c01cdebe>] idedisk_attach+0x17a/0x18c
 [<c01ca6f6>] ata_attach+0x46/0xac
 [<c01cb23e>] ide_register_driver+0x9a/0xcc
 [<c01cdedd>] idedisk_init+0xd/0x20
 [<c010502c>] init+0x0/0x144
 [<c0105049>] init+0x1d/0x144
 [<c010502c>] init+0x0/0x144
 [<c0107001>] kernel_thread_helper+0x5/0xc

...

 hda: hda1
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 88k freed

The configuration:

...

#
# Bus options (PCI, PCMCIA, EISA, MCA, ISA)
#
CONFIG_PCI=y
# CONFIG_PCI_GOBIOS is not set
# CONFIG_PCI_GODIRECT is not set
CONFIG_PCI_GOANY=y
CONFIG_PCI_BIOS=y
CONFIG_PCI_DIRECT=y

...

#
# ATA/ATAPI/MFM/RLL device support
#
CONFIG_IDE=y

#
# IDE, ATA and ATAPI Block devices
#
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_HD_IDE is not set
# CONFIG_BLK_DEV_HD is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
# CONFIG_IDEDISK_STROKE is not set
CONFIG_BLK_DEV_IDECS=m
CONFIG_BLK_DEV_IDECD=m
# CONFIG_BLK_DEV_IDEFLOPPY is not set
CONFIG_BLK_DEV_IDESCSI=m
# CONFIG_IDE_TASK_IOCTL is not set

#
# IDE chipset support/bugfixes
#
# CONFIG_BLK_DEV_CMD640 is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_IDEPCI_SHARE_IRQ is not set
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDE_TCQ is not set
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
# CONFIG_IDEDMA_PCI_AUTO is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_PCI_WIP is not set
CONFIG_BLK_DEV_ADMA=y

...

CONFIG_BLK_DEV_PIIX=y

...

CONFIG_BLK_DEV_IDE_MODES=y

...

Thanks
Guennadi
---------------------------------
Guennadi Liakhovetski, Ph.D.
DSA Daten- und Systemtechnik GmbH
Pascalstr. 28
D-52076 Aachen
Germany


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.60 "Badness in kobject_register at lib/kobject.c:152"
  2003-02-11 12:00 2.5.60 "Badness in kobject_register at lib/kobject.c:152" Guennadi Liakhovetski
@ 2003-02-11 13:26 ` Alan Cox
  2003-02-12  8:14   ` Guennadi Liakhovetski
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Alan Cox @ 2003-02-11 13:26 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: Linux Kernel Mailing List, Andre Hedrick

On Tue, 2003-02-11 at 12:00, Guennadi Liakhovetski wrote:
> Hell
> 
> I reported earlier a problem with getting 2 flash disks to work in
> true-IDE mode with 2.4.[18|20]
> (http://www.uwsg.indiana.edu/hypermail/linux/kernel/0302.0/0918.html).
> Today I tried 2.5.60. Tried with 2 flash-disks and with 1 only. With 2
> flash-disks connected the kernel panics (notice, hda disappears after the
> initial detection):

Known problem. Its probably fixed in the 2.4 changes I made to the
probe and flash bits yesterday. Its two bugs together. The vanishing
disk is definitely fixed, the oops from drive->id = NULL should be
sorted too (and the general noprobe, cdrom cases)

Alan


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.60 "Badness in kobject_register at lib/kobject.c:152"
  2003-02-11 13:26 ` Alan Cox
@ 2003-02-12  8:14   ` Guennadi Liakhovetski
  2003-02-12  9:50   ` Guennadi Liakhovetski
  2003-02-12 14:49   ` Guennadi Liakhovetski
  2 siblings, 0 replies; 8+ messages in thread
From: Guennadi Liakhovetski @ 2003-02-12  8:14 UTC (permalink / raw)
  To: Alan Cox; +Cc: Linux Kernel Mailing List

> > I reported earlier a problem with getting 2 flash disks to work in
> > true-IDE mode with 2.4.[18|20]
> > (http://www.uwsg.indiana.edu/hypermail/linux/kernel/0302.0/0918.html).
> > Today I tried 2.5.60. Tried with 2 flash-disks and with 1 only. With 2
> > flash-disks connected the kernel panics (notice, hda disappears after the
> > initial detection):
>
> Known problem. Its probably fixed in the 2.4 changes I made to the
> probe and flash bits yesterday. Its two bugs together. The vanishing
> disk is definitely fixed, the oops from drive->id = NULL should be
> sorted too (and the general noprobe, cdrom cases)

Great! Is there a patch available? I still have time until today early
afternoon to fix this... So, a patch would be really highly appreciated!

Thanks
Guennadi
---------------------------------
Guennadi Liakhovetski, Ph.D.
DSA Daten- und Systemtechnik GmbH
Pascalstr. 28
D-52076 Aachen
Germany


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.60 "Badness in kobject_register at lib/kobject.c:152"
  2003-02-11 13:26 ` Alan Cox
  2003-02-12  8:14   ` Guennadi Liakhovetski
@ 2003-02-12  9:50   ` Guennadi Liakhovetski
  2003-02-12 14:49   ` Guennadi Liakhovetski
  2 siblings, 0 replies; 8+ messages in thread
From: Guennadi Liakhovetski @ 2003-02-12  9:50 UTC (permalink / raw)
  To: Alan Cox; +Cc: Linux Kernel Mailing List

> Known problem. Its probably fixed in the 2.4 changes I made to the
> probe and flash bits yesterday. Its two bugs together. The vanishing
> disk is definitely fixed, the oops from drive->id = NULL should be
> sorted too (and the general noprobe, cdrom cases)

Ok, found it - 21-pre4-ac4, right? Sorry, should've checked before
writing... Trying...

Guennadi
---------------------------------
Guennadi Liakhovetski, Ph.D.
DSA Daten- und Systemtechnik GmbH
Pascalstr. 28
D-52076 Aachen
Germany


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.60 "Badness in kobject_register at lib/kobject.c:152"
  2003-02-11 13:26 ` Alan Cox
  2003-02-12  8:14   ` Guennadi Liakhovetski
  2003-02-12  9:50   ` Guennadi Liakhovetski
@ 2003-02-12 14:49   ` Guennadi Liakhovetski
  2003-02-12 16:44     ` Alan Cox
  2 siblings, 1 reply; 8+ messages in thread
From: Guennadi Liakhovetski @ 2003-02-12 14:49 UTC (permalink / raw)
  To: Alan Cox; +Cc: Linux Kernel Mailing List

> Known problem. Its probably fixed in the 2.4 changes I made to the
> probe and flash bits yesterday. Its two bugs together. The vanishing
> disk is definitely fixed, the oops from drive->id = NULL should be
> sorted too (and the general noprobe, cdrom cases)

Yep! Works! Thanks! There are still errors coming:
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: 31488 sectors (16 MB) w/1KiB Cache, CHS=246/4/32, BUG <=============
Then same for hdb, then
Partition chack:
 hda:hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x04 { DriveStatusError }
repeated 4 times, then
hda: DMA disabled
hdb: DMA disabled
ide0: reset: success
 hda1
 hdb: hdb1

then, on mounting root again
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: Write Cache FAILED Flushing!
/dev/hda1: clean...
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: Write Cache FAILED Flushing!
VFS: busy inodes on changed media.
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: Write Cache FAILED Flushing!

And then these errors appear again on some disk-opoerations, e.g. when
running lilo, doing dd if=/dev/hda, and some others (raw access?). Can
this errors be disk-specific? (it's a SiliconTech disk, reported as
Hitachi) I can try some others, e.g. SunDisk.

Thanks
Guennadi
---------------------------------
Guennadi Liakhovetski, Ph.D.
DSA Daten- und Systemtechnik GmbH
Pascalstr. 28
D-52076 Aachen
Germany


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.60 "Badness in kobject_register at lib/kobject.c:152"
  2003-02-12 14:49   ` Guennadi Liakhovetski
@ 2003-02-12 16:44     ` Alan Cox
  2003-02-14 13:36       ` Guennadi Liakhovetski
  0 siblings, 1 reply; 8+ messages in thread
From: Alan Cox @ 2003-02-12 16:44 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: Linux Kernel Mailing List

On Wed, 2003-02-12 at 14:49, Guennadi Liakhovetski wrote:
> hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
> hda: task_no_data_intr: error=0x04 { DriveStatusError }

This is it rejecting a command at start up, thats ok. I do need to
quieten these further yet.

> hda: 31488 sectors (16 MB) w/1KiB Cache, CHS=246/4/32, BUG <=============

Curious. I'll tae a look

> then, on mounting root again
> hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
> hda: task_no_data_intr: error=0x04 { DriveStatusError }
> hda: Write Cache FAILED Flushing!

For some reason we decided the drive support cache flush. However it
apparently doesnt

> And then these errors appear again on some disk-opoerations, e.g. when
> running lilo, doing dd if=/dev/hda, and some others (raw access?). Can
> this errors be disk-specific? (it's a SiliconTech disk, reported as
> Hitachi) I can try some others, e.g. SunDisk.
> 

I would be interested to see how they compare


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.60 "Badness in kobject_register at lib/kobject.c:152"
  2003-02-12 16:44     ` Alan Cox
@ 2003-02-14 13:36       ` Guennadi Liakhovetski
  2003-02-14 14:50         ` Alan Cox
  0 siblings, 1 reply; 8+ messages in thread
From: Guennadi Liakhovetski @ 2003-02-14 13:36 UTC (permalink / raw)
  To: Alan Cox; +Cc: Linux Kernel Mailing List

> > Can
> > this errors be disk-specific? (it's a SiliconTech disk, reported as
> > Hitachi) I can try some others, e.g. SunDisk.
>
> I would be interested to see how they compare

Ok, finally I was able to do a comparison. SanDisk does look a bit better:

> > hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
> > hda: task_no_data_intr: error=0x04 { DriveStatusError }
>
> This is it rejecting a command at start up, thats ok. I do need to
> quieten these further yet.

And they still appear with SanDisk.

> > hda: 31488 sectors (16 MB) w/1KiB Cache, CHS=246/4/32, BUG <=============
>
> Curious. I'll tae a look

And this one too.

> > then, on mounting root again
> > hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
> > hda: task_no_data_intr: error=0x04 { DriveStatusError }
> > hda: Write Cache FAILED Flushing!
>
> For some reason we decided the drive support cache flush. However it
> apparently doesnt

The last of the above errors does not appear on SanDisk - it supports
cache flush?

Guennadi
---------------------------------
Guennadi Liakhovetski, Ph.D.
DSA Daten- und Systemtechnik GmbH
Pascalstr. 28
D-52076 Aachen
Germany


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 2.5.60 "Badness in kobject_register at lib/kobject.c:152"
  2003-02-14 13:36       ` Guennadi Liakhovetski
@ 2003-02-14 14:50         ` Alan Cox
  0 siblings, 0 replies; 8+ messages in thread
From: Alan Cox @ 2003-02-14 14:50 UTC (permalink / raw)
  To: Guennadi Liakhovetski; +Cc: Linux Kernel Mailing List

On Fri, 2003-02-14 at 13:36, Guennadi Liakhovetski wrote:
> > For some reason we decided the drive support cache flush. However it
> > apparently doesnt
> 
> The last of the above errors does not appear on SanDisk - it supports
> cache flush?

Could be. Or could be the other flash disk claims to support it but
does not. You'd want to check the identify data for the disk to see
what commands it claims support for



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-02-14 13:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-11 12:00 2.5.60 "Badness in kobject_register at lib/kobject.c:152" Guennadi Liakhovetski
2003-02-11 13:26 ` Alan Cox
2003-02-12  8:14   ` Guennadi Liakhovetski
2003-02-12  9:50   ` Guennadi Liakhovetski
2003-02-12 14:49   ` Guennadi Liakhovetski
2003-02-12 16:44     ` Alan Cox
2003-02-14 13:36       ` Guennadi Liakhovetski
2003-02-14 14:50         ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).