public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug 11803] New: sr_mod: CDROM_DRIVE_STATUS ioctl causes tray to be closed
@ 2008-10-21 22:37 bugme-daemon
  2008-10-22  1:50 ` [Bug 11803] " bugme-daemon
  2008-10-22 15:57 ` [Bug 11803] New: " James Bottomley
  0 siblings, 2 replies; 3+ messages in thread
From: bugme-daemon @ 2008-10-21 22:37 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=11803

           Summary: sr_mod: CDROM_DRIVE_STATUS ioctl causes tray to be
                    closed
           Product: SCSI Drivers
           Version: 2.5
     KernelVersion: 2.6.27-2
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
        AssignedTo: scsi_drivers-other@kernel-bugs.osdl.org
        ReportedBy: martin.pitt@ubuntu.com


Latest working kernel version: 2.6.24 (maybe later)
Earliest failing kernel version: 2.6.27 (maybe earlier)
Distribution: Ubuntu 8.10
Hardware Environment:
 - standard ATAPI CD-ROM drive which works through sr_mod (e. g. PIONEER DVD-RW
DVR-212)
 - not using IDE drivers, but libata and pata (PATA_AMD in my case)
Software Environment:
 - single user mode
Problem Description:

As reported in https://launchpad.net/bugs/283316 and a couple of duplicates,
CD-ROM drives which are opened/ejected immediately close again. This is due to
hal polling the device every 2 seconds for an inserted medium for automounting.

The reason is that the CDROM_DRIVE_STATUS ioctl now causes an open CD tray to
get closed, instead of just returning CDS_TRAY_OPEN and leaving the tray alone
(as in earlier kernel releases).

Unfortunately I cannot precisely tell at which kernel version it regressed,
since the CD drive of my workstation doesn't support mechanical closing (one of
those external Dell drives).

I built a minimal upstream 2.7.27.2 vanilla kernel with just enough PATA_AMD
and SCSI stuff to boot and reproduce this. Given the reported duplicates, it is
not specific to a CD ROM drive model or architecture (I reproduced it on
x86_64, many reporters are on i386).

IANAKD, but a cursory glance at
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=history;f=drivers/scsi/sr_ioctl.c
revealed that there weren't any changes since about 2.6.24 (where it still
worked fine). So I'm afraid I'm lost where to look.

Steps to reproduce:
 - Open CD tray (CD drive must support mechanical closing)
 - perl -e 'open F, "/dev/scd0"; ioctl (F, 0x5326, 0x7fffffff);'


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug 11803] sr_mod: CDROM_DRIVE_STATUS ioctl causes tray to be closed
  2008-10-21 22:37 [Bug 11803] New: sr_mod: CDROM_DRIVE_STATUS ioctl causes tray to be closed bugme-daemon
@ 2008-10-22  1:50 ` bugme-daemon
  2008-10-22 15:57 ` [Bug 11803] New: " James Bottomley
  1 sibling, 0 replies; 3+ messages in thread
From: bugme-daemon @ 2008-10-22  1:50 UTC (permalink / raw)
  To: linux-scsi

http://bugzilla.kernel.org/show_bug.cgi?id=11803


tj@kernel.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|scsi_drivers-other@kernel-  |tj@kernel.org
                   |bugs.osdl.org               |
             Status|NEW                         |ASSIGNED




------- Comment #1 from tj@kernel.org  2008-10-21 18:50 -------
Does the kernel whine about anything after that?


-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bug 11803] New: sr_mod: CDROM_DRIVE_STATUS ioctl causes tray to be closed
  2008-10-21 22:37 [Bug 11803] New: sr_mod: CDROM_DRIVE_STATUS ioctl causes tray to be closed bugme-daemon
  2008-10-22  1:50 ` [Bug 11803] " bugme-daemon
@ 2008-10-22 15:57 ` James Bottomley
  1 sibling, 0 replies; 3+ messages in thread
From: James Bottomley @ 2008-10-22 15:57 UTC (permalink / raw)
  To: bugme-daemon; +Cc: linux-scsi

On Tue, 2008-10-21 at 15:37 -0700, bugme-daemon@bugzilla.kernel.org
wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=11803
> 
>            Summary: sr_mod: CDROM_DRIVE_STATUS ioctl causes tray to be
>                     closed
>            Product: SCSI Drivers
>            Version: 2.5
>      KernelVersion: 2.6.27-2
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Other
>         AssignedTo: scsi_drivers-other@kernel-bugs.osdl.org
>         ReportedBy: martin.pitt@ubuntu.com
> 
> 
> Latest working kernel version: 2.6.24 (maybe later)
> Earliest failing kernel version: 2.6.27 (maybe earlier)
> Distribution: Ubuntu 8.10
> Hardware Environment:
>  - standard ATAPI CD-ROM drive which works through sr_mod (e. g. PIONEER DVD-RW
> DVR-212)
>  - not using IDE drivers, but libata and pata (PATA_AMD in my case)
> Software Environment:
>  - single user mode
> Problem Description:
> 
> As reported in https://launchpad.net/bugs/283316 and a couple of duplicates,
> CD-ROM drives which are opened/ejected immediately close again. This is due to
> hal polling the device every 2 seconds for an inserted medium for automounting.
> 
> The reason is that the CDROM_DRIVE_STATUS ioctl now causes an open CD tray to
> get closed, instead of just returning CDS_TRAY_OPEN and leaving the tray alone
> (as in earlier kernel releases).
> 
> Unfortunately I cannot precisely tell at which kernel version it regressed,
> since the CD drive of my workstation doesn't support mechanical closing (one of
> those external Dell drives).
> 
> I built a minimal upstream 2.7.27.2 vanilla kernel with just enough PATA_AMD
> and SCSI stuff to boot and reproduce this. Given the reported duplicates, it is
> not specific to a CD ROM drive model or architecture (I reproduced it on
> x86_64, many reporters are on i386).
> 
> IANAKD, but a cursory glance at
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=history;f=drivers/scsi/sr_ioctl.c
> revealed that there weren't any changes since about 2.6.24 (where it still
> worked fine). So I'm afraid I'm lost where to look.
> 
> Steps to reproduce:
>  - Open CD tray (CD drive must support mechanical closing)
>  - perl -e 'open F, "/dev/scd0"; ioctl (F, 0x5326, 0x7fffffff);'

I'd finger this commit:

commit 210ba1d1724f5c4ed87a2ab1a21ca861a915f734
Author: James Bottomley <James.Bottomley@HansenPartnership.com>
Date:   Sat Jan 5 10:39:51 2008 -0600

    [SCSI] sr: update to follow tray status correctly

It's actually a gentoo patch trying to make tray status report with
finer detail.  Can you revert it and see if the problem goes away?

Thanks,

James



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-22 15:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 22:37 [Bug 11803] New: sr_mod: CDROM_DRIVE_STATUS ioctl causes tray to be closed bugme-daemon
2008-10-22  1:50 ` [Bug 11803] " bugme-daemon
2008-10-22 15:57 ` [Bug 11803] New: " James Bottomley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox