Re: [linux-usb-devel] Re: /dev/sr0 not ready, but working

From: Alan Stern (stern_at_rowland.harvard.edu)
Date: 11/24/05

  • Next message: Michael Renner: "Re: faulty oom-killer on amd64?"
    Date:	Thu, 24 Nov 2005 12:28:09 -0500 (EST)
    To: Mark Lord <lkml@rtr.ca>
    
    

    On Thu, 24 Nov 2005, Mark Lord wrote:

    > Jeff Garzik wrote:

    > > The difference is between ide-cd.c and sr.c, most likely.
    >
    > Agreed. I get hundreds and hundreds of these when simply playing a DVD:
    >
    > sr0: CDROM not ready. Make sure there is a disc in the drive.
    >
    > Nothing really wrong here, other than that the kernel is flooding
    > my syslogs with messages that could really be left to the userspace
    > application to decide about.

    If any of you is interested in pursuing this, try out this patch. It will
    tell what the offending command is and how it is getting submitted. Once
    that is known, the generic cdrom layer or the sr driver can be changed to
    suppress these warnings.

    Alan Stern

    --- a/drivers/scsi/sr_ioctl.c Mon Oct 31 10:12:20 2005
    +++ b/drivers/scsi/sr_ioctl.c Thu Nov 24 12:24:59 2005
    @@ -139,8 +139,15 @@
                                             break;
                                     }
                             }
    - if (!cgc->quiet)
    - printk(KERN_INFO "%s: CDROM not ready. Make sure there is a disc in the drive.\n", cd->cdi.name);
    + if (!cgc->quiet) {
    + static int cnt = 0;
    + if (cnt < 8) {
    + ++cnt;
    + printk(KERN_INFO "%s: CDROM not ready. Make sure there is a disc in the drive.\n", cd->cdi.name);
    + printk("cmd[0] = %d\n", cgc->cmd[0]);
    + dump_stack();
    + }
    + }
     #ifdef DEBUG
                             scsi_print_sense_hdr("sr", &sshdr);
     #endif

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Michael Renner: "Re: faulty oom-killer on amd64?"

    Relevant Pages

    • Re: libata errors with smartctl on 2.6.24, WD3200AAKS and nVidia AHCI
      ... ACPI: IRQ0 used by override. ... sr0: CDROM not ready yet. ... Make sure there is a disc in the drive. ...
      (Linux-Kernel)
    • Re: DMA problem
      ... SuSE, Debian, Mandrake, RedHat? ... > If I insert a cdrom in the drive the led doesn't go out, ... > Could someone give me an explanation of what is happening and a way to ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: DVD doesnt mount, but writing works fine.
      ... There have been CDROM access issues in Fedora since FC2. ... I ask this as I have three FC4 ... I find that putting a blank DVD in actually mounts the ...
      (Fedora)
    • Re: CD writing in future Linux (stirring up a hornets nest)
      ... capabilities of the drive (ie, look if it's a cdrom or a dvd, etc) ... I guess the cdrom driver could in the future be taught to export ... HAL tells you that the sysfs path associated to a device. ... (yes, that "udi" path sucks) ...
      (Linux-Kernel)
    • CD/DVD Drive Problems (Etch 4.0)
      ... I just installed Debian Etch 4.0 on to a machine that has a NEC CDROM ... I noticed this when I tried to install a package such as: ... It prompted to insert the DVD ISO that I used to install with: ...
      (Debian-User)