cpudyn fails on some sata drives
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cpudyn (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: cpudyn
I tried to use cpudyn to spindown my sata harddrives after about 120 seconds, but it wasn't even possible to start it without cpu frequency control, because my sata drives are completly ignored.
I found out, that there is a get_dev() function disks.c which checks the type of the drive. My SATA drives are detected as SCSI_DISK0_MAJOR (code #8, whatever that means) and these are "not supported". To verify the problem, I changed code a bit, so that SCSI_DISK*_MAJOR drives are also accepted by get_dev() and now, cpudyn is working as expected. So the standby-method is working on the SATA drives.
*** My first SATA drive:
15: IDE 00.0: 10600 Disk
[Created at block.218]
Unique ID: mE25.pVJj+bCSEX6
Parent ID: w7Y8.dsHTgbwctm3
SysFS ID: /block/sda
SysFS BusID: 0:0:0:0
SysFS Device Link: /devices/
Hardware Class: disk
Model: "WDC WD4000AAKS-0"
Vendor: "WDC"
Device: "WD4000AAKS-0"
Revision: "12.0"
Serial ID: "WD-WMAPW1091102"
Driver: "ata_piix", "sd"
Driver Modules: "ata_piix"
Device File: /dev/sda
Device Files: /dev/sda, /dev/disk/
Device Number: block 8:0-8:15
BIOS id: 0x80
Geometry (Logical): CHS 48641/255/63
Size: 781422768 sectors a 512 bytes
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #11 (IDE interface)
*** Modules loaded:
Module Size Used by
joydev 10816 0
st 40092 0
sr_mod 17060 0
ide_cd 32544 0
cdrom 37536 2 sr_mod,ide_cd
ipv6 273344 14
speedstep_lib 6148 0
cpufreq_powersave 2688 0
cpufreq_userspace 5408 0
acpi_cpufreq 10056 1
freq_table 5792 1 acpi_cpufreq
af_packet 23688 2
lp 12324 0
parport 36808 1 lp
intel_agp 25244 1
shpchp 34452 0
pci_hotplug 32448 1 shpchp
iTCO_wdt 11940 0
iTCO_vendor_support 4868 1 iTCO_wdt
psmouse 38920 0
serio_raw 7940 0
pcspkr 4224 0
agpgart 35528 1 intel_agp
tsdev 8768 0
evdev 11008 0
ext3 132872 1
jbd 59816 1 ext3
mbcache 9604 1 ext3
sg 35996 0
sd_mod 23300 3
generic 5124 0 [permanent]
ata_generic 9092 0
ata_piix 15620 3
libata 125848 2 ata_generic,
scsi_mod 142220 5 st,sr_mod,
e1000 126528 0
uhci_hcd 25488 0
ehci_hcd 34572 0
usbcore 134408 3 uhci_hcd,ehci_hcd
thermal 14856 0
processor 31048 2 acpi_cpufreq,
fan 5636 0
fbcon 42656 0
tileblit 3584 1 fbcon
font 9216 1 fbcon
bitblit 6912 1 fbcon
softcursor 3200 1 bitblit
vesafb 9220 0
capability 5896 0
commoncap 8192 1 capability
*** Versions
OS: Ubuntu server 7.04
Kernel: Linux lupo 2.6.20-15-server #2 SMP Sun Apr 15 07:41:34 UTC 2007 i686 GNU/Linux
cpudyn: cpudynd version 1.0 Copyright: Ricardo Galli <email address hidden> (sourcecode says version 1.0.1)
*** Hardware
CPU: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz
Mainboard: MSI MS-9632 945GT Speedster
Storage Controller:
19: PCI 1f.2: 0101 IDE interface
[Created at pci.281]
Unique ID: w7Y8.dsHTgbwctm3
SysFS ID: /devices/
SysFS BusID: 0000:00:1f.2
Hardware Class: storage
Model: "Micro-Star International 82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller IDE"
Vendor: pci 0x8086 "Intel Corporation"
Device: pci 0x27c0 "82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller IDE"
SubVendor: pci 0x1462 "Micro-Star International Co., Ltd."
SubDevice: pci 0x6320
Revision: 0x01
Driver: "ata_piix"
Driver Modules: "ata_piix"
I/O Ports: 0x1f0-0x1f7 (rw)
I/O Port: 0x3f6 (rw)
I/O Ports: 0x170-0x177 (rw)
I/O Port: 0x376 (rw)
I/O Ports: 0xfa00-0xfa0f (rw)
Memory Range: 0xfdffe000-
IRQ: 18 (no events)
Module Alias: "pci:v00008086d
Driver Info #0:
Driver Status: ata_piix is active
Driver Activation Cmd: "modprobe ata_piix"
Driver Info #1:
Driver Status: ata_generic is active
Driver Activation Cmd: "modprobe ata_generic"
Driver Info #2:
Driver Status: generic is active
Driver Activation Cmd: "modprobe generic"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Is this symptom still reproducible in 8.10 beta?