Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129506 - Running Hald causes cdrom kernel errors with TS-L532M CD/DVD-ROM drive
Summary: Running Hald causes cdrom kernel errors with TS-L532M CD/DVD-ROM drive
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Project Gentopia
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-10 11:25 UTC by Bryan O'Shea
Modified: 2007-02-14 05:52 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bryan O'Shea 2006-04-10 11:25:49 UTC
I have a compaq presario v2000 laptop with a TSSTcorpCD/DVDW TS-L532M, ATAPI CD/DVD-ROM drive.  When I run hald it causes many kernel errors to show up in my logs when I have no medium inserted into the drive.  

ATAPI device hdc:
  Error: Not ready -- (Sense key=0x02)
  Incompatible medium installed -- (asc=0x30, ascq=0x00)
  The failed "Read Cd/Dvd Capacity" packet command was:
  "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
ATAPI device hdc:
  Error: Not ready -- (Sense key=0x02)
  Incompatible medium installed -- (asc=0x30, ascq=0x00)
  The failed "Read Cd/Dvd Capacity" packet command was:
  "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
ATAPI device hdc:
  Error: Not ready -- (Sense key=0x02)
  Incompatible medium installed -- (asc=0x30, ascq=0x00)
  The failed "Read Cd/Dvd Capacity" packet command was:
  "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
ATAPI device hdc:

Hald is polling the drive with out checking the status first.

The fix is to add this section to 
/usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi

  <device>
    <match key="storage.bus" string="ide">
     <match key="storage.model" string="TSSTcorpCD/DVDW TS-L532M">
       <match key="block.device" string="/dev/hdc">
         <merge key="storage.media_check_enabled" type="bool">false</merge>
       </match>
     </match>
    </match>
  </device>

Although this is entered I still get a few errors in the kernel when hald is starting at least its not continuously logging as before. I am using kernels 2.6.15.1 and 2.6.16.2 to reproduce these errors.

Don't know if this is a Hal bug or kernel bug as I get a single instance of the error in my kernel startup? 


hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, DMA
Uniform CD-ROM driver Revision: 3.20
ATAPI device hdc:
  Error: Not ready -- (Sense key=0x02)
  Incompatible medium installed -- (asc=0x30, ascq=0x00)
  The failed "Read Cd/Dvd Capacity" packet command was:
  "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:13.2[A] -> Link [LNKD] -> GSI 11 (level, low) -> IRQ 11
ehci_hcd 0000:00:13.2: EHCI Host Controller
ehci_hcd 0000:00:13.2: new USB bus registered, assigned bus number
Comment 1 Steev Klimaszewski (RETIRED) gentoo-dev 2006-05-18 00:34:58 UTC
Do you still get this with the latest kernel?
Comment 2 Bryan O'Shea 2006-05-26 11:02:47 UTC
I just emerged latest vanilla-sources 2.6.16.16 and recieved same message in kernel log.

hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache, DMA
Uniform CD-ROM driver Revision: 3.20
ATAPI device hdc:
  Error: Not ready -- (Sense key=0x02)
  Incompatible medium installed -- (asc=0x30, ascq=0x00)
  The failed "Read Cd/Dvd Capacity" packet command was: 
  "25 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

Same symptoms as before.  There appears to be 2 issues.  1 the kernel error message and 2 the hald causing the kernel to spit out the errors more frequently.  Maybe i should log a kernel bug?  Not sure.

Thanks 
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2006-05-27 20:38:20 UTC
I'll gladly pass this upstream to a blacklist file... however it is a kernel bug. The kernel should support that query properly.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2006-05-27 20:39:27 UTC
Steve,

We should have a Gentoo specific blacklist file..

Changing to assigned to make one.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2006-06-16 09:58:23 UTC
can you give a lshal of the device?
Comment 6 Bryan O'Shea 2006-06-18 20:51:41 UTC
udi = '/org/freedesktop/Hal/devices/storage_serial_Y54C303500'
  storage.policy.desired_mount_point = 'cdrecorder'  (string)
  storage.policy.mount_filesystem = 'auto'  (string)
  storage.policy.should_mount = true  (bool)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_Y54C303500'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_serial_Y54C303500'  (string)
  storage.cdrom.write_speed = 4234  (0x108a)  (int)
  storage.cdrom.read_speed = 4234  (0x108a)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.dvdplusrdl = false  (bool)
  storage.cdrom.dvdplusrw = false  (bool)
  storage.cdrom.dvdplusr = false  (bool)
  storage.cdrom.dvdram = false  (bool)
  storage.cdrom.dvdrw = false  (bool)
  storage.cdrom.dvdr = true  (bool)
  storage.cdrom.dvd = true  (bool)
  storage.cdrom.cdrw = true  (bool)
  storage.cdrom.cdr = true  (bool)
  storage.firmware_version = 'HR08'  (string)
  storage.serial = 'Y54C303500'  (string)
  storage.requires_eject = true  (bool)
  storage.hotpluggable = false  (bool)
  info.capabilities = {'storage', 'block', 'storage.cdrom'} (string list)
  info.category = 'storage'  (string)
  info.product = 'TSSTcorpCD/DVDW TS-L532M'  (string)
  storage.removable = true  (bool)
  storage.physical_device = '/org/freedesktop/Hal/devices/pci_1002_4376_ide_1_0'  (string)
  storage.drive_type = 'cdrom'  (string)
  storage.vendor = ''  (string)
  storage.model = 'TSSTcorpCD/DVDW TS-L532M'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.media_check_enabled = true  (bool)
  storage.no_partitions_hint = true  (bool)
  storage.bus = 'ide'  (string)
  block.is_volume = false  (bool)
  block.minor = 0  (0x0)  (int)
  block.major = 22  (0x16)  (int)
  block.device = '/dev/hdc'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent = '/org/freedesktop/Hal/devices/pci_1002_4376_ide_1_0'  (string)
  linux.sysfs_path_device = '/sys/block/hdc'  (string)
  linux.sysfs_path = '/sys/block/hdc'  (string)
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2007-02-14 05:52:01 UTC
I'm going to have to defer this to some of the newer revisions available. Please test with those.