Skip to contentSkip to conversation

2.6.{14,15-rc4} harddrive cache not detected

DISCUSSION Sebastian Kärgel 3 participants 5 messages Dec 8, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

after installing a new harddrive, the kernel does no longer detect the harddrives cache.

Old one:
ide0: BM-DMA at 0x1100-0x1107, BIOS settings: hda:DMA, hdb:pio
hda: ST94019A, ATA DISK drive
hda: 78140160 sectors (40007 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA
(33)

New one:
ide0: BM-DMA at 0x1100-0x1107, BIOS settings: hda:DMA, hdb:pio
hda: TOSHIBA MK4025GAS, ATA DISK drive
hda: 78140160 sectors (40007 MB), CHS=65535/16/63, UDMA(33)

Note, that there is nothing printed about the cache size. According to the manufactor the new harddrive should have 8mb cache. /proc/ide/ide0/hda/cache also show "0"

hdparm gives the following:
...
BuffType=unknown, BuffSize=0kB
...

I verified this problem with 2.6.14 and 2.6.15-rc4.

Thanks for your help,
Sebastian

#1 lore raw
Quoted 20 lines · Sebastian Kärgel

Hello,

after installing a new harddrive, the kernel does no longer detect the harddrives cache.

Old one:
ide0: BM-DMA at 0x1100-0x1107, BIOS settings: hda:DMA, hdb:pio
hda: ST94019A, ATA DISK drive
hda: 78140160 sectors (40007 MB) w/2048KiB Cache, CHS=16383/255/63, UDMA
(33)

New one:
ide0: BM-DMA at 0x1100-0x1107, BIOS settings: hda:DMA, hdb:pio
hda: TOSHIBA MK4025GAS, ATA DISK drive
hda: 78140160 sectors (40007 MB), CHS=65535/16/63, UDMA(33)

Note, that there is nothing printed about the cache size. According to the manufactor the new harddrive should have 8mb cache. /proc/ide/ide0/hda/cache also show "0"

Quoted 6 lines

hdparm gives the following:
...
BuffType=unknown, BuffSize=0kB
...

I verified this problem with 2.6.14 and 2.6.15-rc4.

I think that I've seen before some other Toshiba
disks that incorrectly report cache size.

Could you send /proc/ide/hda/identify?

Bartlomiej

#2 lore raw
Quoted 4 lines · On Thu, 8 Dec 2005 20:05:37 +0100 Bartlomiej Zolnierkiewicz…

I think that I've seen before some other Toshiba
disks that incorrectly report cache size.

Could you send /proc/ide/hda/identify?

Hello,

# cat /proc/ide/hda/identify
0040 3fff c837 0010 0000 0000 003f 0000
0000 0000 2020 2020 2020 2020 2020 2059
3535 4c37 3338 3253 0000 0000 0030 4b41
3130 3041 2020 544f 5348 4942 4120 4d4b
3430 3235 4741 5320 2020 2020 2020 2020
2020 2020 2020 2020 2020 2020 2020 8010
0000 2f00 4000 0200 0000 0007 3fff 0010
003f fc10 00fb 0110 5300 04a8 0007 0007
0003 0078 0078 0078 0078 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
007e 0000 7c6b 5908 4003 7c69 1808 4003
043f 0012 0000 0080 fffe 604b 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0001 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 77a5

Hope this helps.

Thanks, Sebastian

#3 lore raw
Quoted 6 lines · Sebastian Kärgel
Quoted 3 lines · On Thu, 8 Dec 2005 20:05:37 +0100 Bartlomiej Zolnierkiewicz…

I think that I've seen before some other Toshiba
disks that incorrectly report cache size.

Quoted 7 lines
Quoted 1 line

Could you send /proc/ide/hda/identify?

Hello,

# cat /proc/ide/hda/identify

007e 0000 7c6b 5908 4003 7c69 1808 4003

write-cache is enabled so disk just doesn't report the size of the cache, as noted by Alan - no need to worry :)

Bartlomiej

#4 lore raw
In reply to Sebastian Kärgel
Quoted 2 lines · Sebastian Kärgel

According to the manufactor the new harddrive should have 8mb cache. /proc/ide/ide0/hda/cache also show "0"

Zero doesn't mean "no cache" in that field it means it hasnt provided the info. I wouldnt worry too much - we dont actually use the cache info for anything but pretty reporting.