Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.6.27 Drive Initialization Delays
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Sun Oct 19, 2008 3:11 pm    Post subject: 2.6.27 Drive Initialization Delays Reply with quote

Upgraded to 2.6.27 and my HTPC now takes twice as long to init the kernel

One of the main offenders is:
Code:
[0.935931 < 0.000005 >] Uniform Multi-Platform E-IDE driver
[0.936019 < 0.000088 >] amd74xx 0000:00:06.0: UDMA133 controller
[0.936022 < 0.000003 >] amd74xx 0000:00:06.0: IDE controller (0x10de:0x0560 rev 0xa1)
[0.936035 < 0.000013 >] amd74xx 0000:00:06.0: IDE port disabled
[0.936041 < 0.000006 >] amd74xx 0000:00:06.0: not 100% native mode: will probe irqs later
[0.936045 < 0.000004 >]     ide0: BM-DMA at 0xf000-0xf007
[0.936049 < 0.000004 >] Probing IDE interface ide0...
[1.709109 < 0.773060 >] hda: _NEC DVD_RW ND-2510A, ATAPI CD/DVD-ROM drive
[2.321066 < 0.611957 >] hda: host max PIO5 wanted PIO255(auto-tune) selected PIO4
[2.325037 < 0.003971 >] hda: UDMA/33 mode selected
[2.325225 < 0.000188 >] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[2.325992 < 0.000767 >] hda: ATAPI 40X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
[2.325996 < 0.000004 >] Uniform CD-ROM driver Revision: 3.20

For some reason my CD-ROM now takes over a second to initialize. Any ideas why?
I'm fairly certain it didn't do this in 2.6.26, but I don't have an old kernel handy to test


Furthermore, the next line is where my SATA drives init, starting with:
Code:
[6.333730 < 4.007734 >] Driver 'sd' needs updating - please use bus_type methods


4 seconds when the sd driver is loaded. Any ideas?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54799
Location: 56N 3W

PostPosted: Sun Oct 19, 2008 3:26 pm    Post subject: Reply with quote

El_Presidente_Pufferfish,

Try migrating to SCSI and libata for everything. My hard drives and DVD writers are up in just over 2 seconds.
Code:
[    1.998671]  sdc: sdc1 sdc2
[    2.017832] sd 2:0:0:0: [sdc] Attached SCSI disk
[    2.021335] scsi 3:0:0:0: CD-ROM            SONY     DVD RW DW-D22A   BYS1 PQ: 0 ANSI: 5
[    2.024956] scsi 3:0:1:0: CD-ROM            SONY     DVD RW DW-D22A   BYS1 PQ: 0 ANSI: 5

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
El_Presidente_Pufferfish
Veteran
Veteran


Joined: 11 Jul 2002
Posts: 1179
Location: Seattle

PostPosted: Sun Oct 19, 2008 4:11 pm    Post subject: Reply with quote

Code:
[3.539899 < 0.000100 >] pata_amd 0000:00:06.0: version 0.3.10
[3.539932 < 0.000033 >] pata_amd 0000:00:06.0: setting latency timer to 64
[3.539997 < 0.000065 >] scsi4 : pata_amd
[3.540107 < 0.000110 >] scsi5 : pata_amd
[3.540667 < 0.000560 >] ata5: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xf000 irq 14
[3.540669 < 0.000002 >] ata6: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xf008 irq 15
[3.740237 < 0.199568 >] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x2)
[8.845417 < 5.105180 >] ata5.00: ATAPI: _NEC DVD_RW ND-2510A, 2.18, max UDMA/33
[8.845426 < 0.000009 >] ata5: nv_mode_filter: 0x739f&0x701f->0x701f, BIOS=0x7000 (0xc0000000) ACPI=0x701f (60:600:0x13)
[8.851375 < 0.005949 >] ata5.00: configured for UDMA/33
[8.851394 < 0.000019 >] ata6: port disabled. ignoring.
[8.852689 < 0.001295 >] scsi 4:0:0:0: CD-ROM            _NEC     DVD_RW ND-2510A  2.18 PQ: 0 ANSI: 5
[8.854825 < 0.002136 >] sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
[8.854827 < 0.000002 >] Uniform CD-ROM driver Revision: 3.20
[8.854942 < 0.000115 >] sr 4:0:0:0: Attached scsi CD-ROM sr0


Most notably:
Code:
[8.845417 < 5.105180 >] ata5.00: ATAPI: _NEC DVD_RW ND-2510A, 2.18, max UDMA/33


Seems...worse if anything
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54799
Location: 56N 3W

PostPosted: Sun Oct 19, 2008 4:21 pm    Post subject: Reply with quote

El_Presidente_Pufferfish,

Code:
[3.740237 < 0.199568 >] ata5.00: failed to IDENTIFY (I/O error, err_mask=0x2)
[8.845417 < 5.105180 >] ata5.00: ATAPI: _NEC DVD_RW ND-2510A, 2.18, max UDMA/33
Its taking two goes to identify whats on ata5, so it has to reset the port, wait a while, then try again.

The question is, why does it fail the first time.

Looking back at your IDE setup, the same drive seemed to want to operate in PIO modes. Thats pretty dire for performance and not permitted under the SCSI subsystem. Maybe its taking two goes to get DMA to work?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum