cpudyn fails on some sata drives

Bug #115192 reported by Andreas Hammerschmidt
4
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/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0
  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/by-id/scsi-1ATA_WDC_WD4000AAKS-00TMA0_WD-WMAPW1091102, /dev/disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0
  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,ata_piix
scsi_mod 142220 5 st,sr_mod,sg,sd_mod,libata
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,thermal
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/pci0000:00/0000:00:1f.2
  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-0xfdffe3ff (rw,non-prefetchable)
  IRQ: 18 (no events)
  Module Alias: "pci:v00008086d000027C0sv00001462sd00006320bc01sc01i8a"
  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

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 beta?

Changed in cpudyn:
status: New → Incomplete
Revision history for this message
Andreas Hammerschmidt (andreas-hammerschmidt) wrote : Re: [Bug 115192] Re: cpudyn fails on some sata drives

Hi Daniel!

I am sorry, but the machine where I encountered this bug the first time
is now i production use and I will not upgrade to a beta version.

But I have some new machines here and if there is time, I'll try to
reproduce the problem! (perhaps next weekend)

yours,
Andreas

Daniel T Chen schrieb:
> Is this symptom still reproducible in 8.10 beta?
>
> ** Changed in: cpudyn (Ubuntu)
> Status: New => Incomplete
>
>
> ------------------------------------------------------------------------
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.173 / Virus Database: 270.8.0/1718 - Release Date: 10.10.2008 07:07
>
>

Revision history for this message
Philip Muškovac (yofel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Thanks in advance.

Revision history for this message
Philip Muškovac (yofel) wrote :

 We are closing this bug report because Feisty (7.04) has reached EOL in October 2008. Please reopen it if you can reprodcue it in a newer release, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in cpudyn (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.