xref: /OK3568_Linux_fs/kernel/Documentation/ide/ChangeLog.ide-cd.1994-2004 (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun/*
2*4882a593Smuzhiyun * 1.00  Oct 31, 1994 -- Initial version.
3*4882a593Smuzhiyun * 1.01  Nov  2, 1994 -- Fixed problem with starting request in
4*4882a593Smuzhiyun *                       cdrom_check_status.
5*4882a593Smuzhiyun * 1.03  Nov 25, 1994 -- leaving unmask_intr[] as a user-setting (as for disks)
6*4882a593Smuzhiyun * (from mlord)       -- minor changes to cdrom_setup()
7*4882a593Smuzhiyun *                    -- renamed ide_dev_s to ide_drive_t, enable irq on command
8*4882a593Smuzhiyun * 2.00  Nov 27, 1994 -- Generalize packet command interface;
9*4882a593Smuzhiyun *                       add audio ioctls.
10*4882a593Smuzhiyun * 2.01  Dec  3, 1994 -- Rework packet command interface to handle devices
11*4882a593Smuzhiyun *                       which send an interrupt when ready for a command.
12*4882a593Smuzhiyun * 2.02  Dec 11, 1994 -- Cache the TOC in the driver.
13*4882a593Smuzhiyun *                       Don't use SCMD_PLAYAUDIO_TI; it's not included
14*4882a593Smuzhiyun *                       in the current version of ATAPI.
15*4882a593Smuzhiyun *                       Try to use LBA instead of track or MSF addressing
16*4882a593Smuzhiyun *                       when possible.
17*4882a593Smuzhiyun *                       Don't wait for READY_STAT.
18*4882a593Smuzhiyun * 2.03  Jan 10, 1995 -- Rewrite block read routines to handle block sizes
19*4882a593Smuzhiyun *                       other than 2k and to move multiple sectors in a
20*4882a593Smuzhiyun *                       single transaction.
21*4882a593Smuzhiyun * 2.04  Apr 21, 1995 -- Add work-around for Creative Labs CD220E drives.
22*4882a593Smuzhiyun *                       Thanks to Nick Saw <cwsaw@pts7.pts.mot.com> for
23*4882a593Smuzhiyun *                       help in figuring this out.  Ditto for Acer and
24*4882a593Smuzhiyun *                       Aztech drives, which seem to have the same problem.
25*4882a593Smuzhiyun * 2.04b May 30, 1995 -- Fix to match changes in ide.c version 3.16 -ml
26*4882a593Smuzhiyun * 2.05  Jun  8, 1995 -- Don't attempt to retry after an illegal request
27*4882a593Smuzhiyun *                        or data protect error.
28*4882a593Smuzhiyun *                       Use HWIF and DEV_HWIF macros as in ide.c.
29*4882a593Smuzhiyun *                       Always try to do a request_sense after
30*4882a593Smuzhiyun *                        a failed command.
31*4882a593Smuzhiyun *                       Include an option to give textual descriptions
32*4882a593Smuzhiyun *                        of ATAPI errors.
33*4882a593Smuzhiyun *                       Fix a bug in handling the sector cache which
34*4882a593Smuzhiyun *                        showed up if the drive returned data in 512 byte
35*4882a593Smuzhiyun *                        blocks (like Pioneer drives).  Thanks to
36*4882a593Smuzhiyun *                        Richard Hirst <srh@gpt.co.uk> for diagnosing this.
37*4882a593Smuzhiyun *                       Properly supply the page number field in the
38*4882a593Smuzhiyun *                        MODE_SELECT command.
39*4882a593Smuzhiyun *                       PLAYAUDIO12 is broken on the Aztech; work around it.
40*4882a593Smuzhiyun * 2.05x Aug 11, 1995 -- lots of data structure renaming/restructuring in ide.c
41*4882a593Smuzhiyun *                       (my apologies to Scott, but now ide-cd.c is independent)
42*4882a593Smuzhiyun * 3.00  Aug 22, 1995 -- Implement CDROMMULTISESSION ioctl.
43*4882a593Smuzhiyun *                       Implement CDROMREADAUDIO ioctl (UNTESTED).
44*4882a593Smuzhiyun *                       Use input_ide_data() and output_ide_data().
45*4882a593Smuzhiyun *                       Add door locking.
46*4882a593Smuzhiyun *                       Fix usage count leak in cdrom_open, which happened
47*4882a593Smuzhiyun *                        when a read-write mount was attempted.
48*4882a593Smuzhiyun *                       Try to load the disk on open.
49*4882a593Smuzhiyun *                       Implement CDROMEJECT_SW ioctl (off by default).
50*4882a593Smuzhiyun *                       Read total cdrom capacity during open.
51*4882a593Smuzhiyun *                       Rearrange logic in cdrom_decode_status.  Issue
52*4882a593Smuzhiyun *                        request sense commands for failed packet commands
53*4882a593Smuzhiyun *                        from here instead of from cdrom_queue_packet_command.
54*4882a593Smuzhiyun *                        Fix a race condition in retrieving error information.
55*4882a593Smuzhiyun *                       Suppress printing normal unit attention errors and
56*4882a593Smuzhiyun *                        some drive not ready errors.
57*4882a593Smuzhiyun *                       Implement CDROMVOLREAD ioctl.
58*4882a593Smuzhiyun *                       Implement CDROMREADMODE1/2 ioctls.
59*4882a593Smuzhiyun *                       Fix race condition in setting up interrupt handlers
60*4882a593Smuzhiyun *                        when the `serialize' option is used.
61*4882a593Smuzhiyun * 3.01  Sep  2, 1995 -- Fix ordering of reenabling interrupts in
62*4882a593Smuzhiyun *                        cdrom_queue_request.
63*4882a593Smuzhiyun *                       Another try at using ide_[input,output]_data.
64*4882a593Smuzhiyun * 3.02  Sep 16, 1995 -- Stick total disk capacity in partition table as well.
65*4882a593Smuzhiyun *                       Make VERBOSE_IDE_CD_ERRORS dump failed command again.
66*4882a593Smuzhiyun *                       Dump out more information for ILLEGAL REQUEST errs.
67*4882a593Smuzhiyun *                       Fix handling of errors occurring before the
68*4882a593Smuzhiyun *                        packet command is transferred.
69*4882a593Smuzhiyun *                       Fix transfers with odd bytelengths.
70*4882a593Smuzhiyun * 3.03  Oct 27, 1995 -- Some Creative drives have an id of just `CD'.
71*4882a593Smuzhiyun *                       `DCI-2S10' drives are broken too.
72*4882a593Smuzhiyun * 3.04  Nov 20, 1995 -- So are Vertos drives.
73*4882a593Smuzhiyun * 3.05  Dec  1, 1995 -- Changes to go with overhaul of ide.c and ide-tape.c
74*4882a593Smuzhiyun * 3.06  Dec 16, 1995 -- Add support needed for partitions.
75*4882a593Smuzhiyun *                       More workarounds for Vertos bugs (based on patches
76*4882a593Smuzhiyun *                        from Holger Dietze <dietze@aix520.informatik.uni-leipzig.de>).
77*4882a593Smuzhiyun *                       Try to eliminate byteorder assumptions.
78*4882a593Smuzhiyun *                       Use atapi_cdrom_subchnl struct definition.
79*4882a593Smuzhiyun *                       Add STANDARD_ATAPI compilation option.
80*4882a593Smuzhiyun * 3.07  Jan 29, 1996 -- More twiddling for broken drives: Sony 55D,
81*4882a593Smuzhiyun *                        Vertos 300.
82*4882a593Smuzhiyun *                       Add NO_DOOR_LOCKING configuration option.
83*4882a593Smuzhiyun *                       Handle drive_cmd requests w/NULL args (for hdparm -t).
84*4882a593Smuzhiyun *                       Work around sporadic Sony55e audio play problem.
85*4882a593Smuzhiyun * 3.07a Feb 11, 1996 -- check drive->id for NULL before dereferencing, to fix
86*4882a593Smuzhiyun *                        problem with "hde=cdrom" with no drive present.  -ml
87*4882a593Smuzhiyun * 3.08  Mar  6, 1996 -- More Vertos workarounds.
88*4882a593Smuzhiyun * 3.09  Apr  5, 1996 -- Add CDROMCLOSETRAY ioctl.
89*4882a593Smuzhiyun *                       Switch to using MSF addressing for audio commands.
90*4882a593Smuzhiyun *                       Reformat to match kernel tabbing style.
91*4882a593Smuzhiyun *                       Add CDROM_GET_UPC ioctl.
92*4882a593Smuzhiyun * 3.10  Apr 10, 1996 -- Fix compilation error with STANDARD_ATAPI.
93*4882a593Smuzhiyun * 3.11  Apr 29, 1996 -- Patch from Heiko Eißfeldt <heiko@colossus.escape.de>
94*4882a593Smuzhiyun *                       to remove redundant verify_area calls.
95*4882a593Smuzhiyun * 3.12  May  7, 1996 -- Rudimentary changer support.  Based on patches
96*4882a593Smuzhiyun *                        from Gerhard Zuber <zuber@berlin.snafu.de>.
97*4882a593Smuzhiyun *                       Let open succeed even if there's no loaded disc.
98*4882a593Smuzhiyun * 3.13  May 19, 1996 -- Fixes for changer code.
99*4882a593Smuzhiyun * 3.14  May 29, 1996 -- Add work-around for Vertos 600.
100*4882a593Smuzhiyun *                        (From Hennus Bergman <hennus@sky.ow.nl>.)
101*4882a593Smuzhiyun * 3.15  July 2, 1996 -- Added support for Sanyo 3 CD changers
102*4882a593Smuzhiyun *                        from Ben Galliart <bgallia@luc.edu> with
103*4882a593Smuzhiyun *                        special help from Jeff Lightfoot
104*4882a593Smuzhiyun *                        <jeffml@pobox.com>
105*4882a593Smuzhiyun * 3.15a July 9, 1996 -- Improved Sanyo 3 CD changer identification
106*4882a593Smuzhiyun * 3.16  Jul 28, 1996 -- Fix from Gadi to reduce kernel stack usage for ioctl.
107*4882a593Smuzhiyun * 3.17  Sep 17, 1996 -- Tweak audio reads for some drives.
108*4882a593Smuzhiyun *                       Start changing CDROMLOADFROMSLOT to CDROM_SELECT_DISC.
109*4882a593Smuzhiyun * 3.18  Oct 31, 1996 -- Added module and DMA support.
110*4882a593Smuzhiyun *
111*4882a593Smuzhiyun * 4.00  Nov 5, 1996   -- New ide-cd maintainer,
112*4882a593Smuzhiyun *                                 Erik B. Andersen <andersee@debian.org>
113*4882a593Smuzhiyun *                     -- Newer Creative drives don't always set the error
114*4882a593Smuzhiyun *                          register correctly.  Make sure we see media changes
115*4882a593Smuzhiyun *                          regardless.
116*4882a593Smuzhiyun *                     -- Integrate with generic cdrom driver.
117*4882a593Smuzhiyun *                     -- CDROMGETSPINDOWN and CDROMSETSPINDOWN ioctls, based on
118*4882a593Smuzhiyun *                          a patch from Ciro Cattuto <>.
119*4882a593Smuzhiyun *                     -- Call set_device_ro.
120*4882a593Smuzhiyun *                     -- Implement CDROMMECHANISMSTATUS and CDROMSLOTTABLE
121*4882a593Smuzhiyun *                          ioctls, based on patch by Erik Andersen
122*4882a593Smuzhiyun *                     -- Add some probes of drive capability during setup.
123*4882a593Smuzhiyun *
124*4882a593Smuzhiyun * 4.01  Nov 11, 1996  -- Split into ide-cd.c and ide-cd.h
125*4882a593Smuzhiyun *                     -- Removed CDROMMECHANISMSTATUS and CDROMSLOTTABLE
126*4882a593Smuzhiyun *                          ioctls in favor of a generalized approach
127*4882a593Smuzhiyun *                          using the generic cdrom driver.
128*4882a593Smuzhiyun *                     -- Fully integrated with the 2.1.X kernel.
129*4882a593Smuzhiyun *                     -- Other stuff that I forgot (lots of changes)
130*4882a593Smuzhiyun *
131*4882a593Smuzhiyun * 4.02  Dec 01, 1996  -- Applied patch from Gadi Oxman <gadio@netvision.net.il>
132*4882a593Smuzhiyun *                          to fix the drive door locking problems.
133*4882a593Smuzhiyun *
134*4882a593Smuzhiyun * 4.03  Dec 04, 1996  -- Added DSC overlap support.
135*4882a593Smuzhiyun * 4.04  Dec 29, 1996  -- Added CDROMREADRAW ioclt based on patch
136*4882a593Smuzhiyun *                          by Ales Makarov (xmakarov@sun.felk.cvut.cz)
137*4882a593Smuzhiyun *
138*4882a593Smuzhiyun * 4.05  Nov 20, 1997  -- Modified to print more drive info on init
139*4882a593Smuzhiyun *                        Minor other changes
140*4882a593Smuzhiyun *                        Fix errors on CDROMSTOP (If you have a "Dolphin",
141*4882a593Smuzhiyun *                          you must define IHAVEADOLPHIN)
142*4882a593Smuzhiyun *                        Added identifier so new Sanyo CD-changer works
143*4882a593Smuzhiyun *                        Better detection if door locking isn't supported
144*4882a593Smuzhiyun *
145*4882a593Smuzhiyun * 4.06  Dec 17, 1997  -- fixed endless "tray open" messages  -ml
146*4882a593Smuzhiyun * 4.07  Dec 17, 1997  -- fallback to set pc->stat on "tray open"
147*4882a593Smuzhiyun * 4.08  Dec 18, 1997  -- spew less noise when tray is empty
148*4882a593Smuzhiyun *                     -- fix speed display for ACER 24X, 18X
149*4882a593Smuzhiyun * 4.09  Jan 04, 1998  -- fix handling of the last block so we return
150*4882a593Smuzhiyun *                         an end of file instead of an I/O error (Gadi)
151*4882a593Smuzhiyun * 4.10  Jan 24, 1998  -- fixed a bug so now changers can change to a new
152*4882a593Smuzhiyun *                         slot when there is no disc in the current slot.
153*4882a593Smuzhiyun *                     -- Fixed a memory leak where info->changer_info was
154*4882a593Smuzhiyun *                         malloc'ed but never free'd when closing the device.
155*4882a593Smuzhiyun *                     -- Cleaned up the global namespace a bit by making more
156*4882a593Smuzhiyun *                         functions static that should already have been.
157*4882a593Smuzhiyun * 4.11  Mar 12, 1998  -- Added support for the CDROM_SELECT_SPEED ioctl
158*4882a593Smuzhiyun *                         based on a patch for 2.0.33 by Jelle Foks
159*4882a593Smuzhiyun *                         <jelle@scintilla.utwente.nl>, a patch for 2.0.33
160*4882a593Smuzhiyun *                         by Toni Giorgino <toni@pcape2.pi.infn.it>, the SCSI
161*4882a593Smuzhiyun *                         version, and my own efforts.  -erik
162*4882a593Smuzhiyun *                     -- Fixed a stupid bug which egcs was kind enough to
163*4882a593Smuzhiyun *                         inform me of where "Illegal mode for this track"
164*4882a593Smuzhiyun *                         was never returned due to a comparison on data
165*4882a593Smuzhiyun *                         types of limited range.
166*4882a593Smuzhiyun * 4.12  Mar 29, 1998  -- Fixed bug in CDROM_SELECT_SPEED so write speed is
167*4882a593Smuzhiyun *                         now set ionly for CD-R and CD-RW drives.  I had
168*4882a593Smuzhiyun *                         removed this support because it produced errors.
169*4882a593Smuzhiyun *                         It produced errors _only_ for non-writers. duh.
170*4882a593Smuzhiyun * 4.13  May 05, 1998  -- Suppress useless "in progress of becoming ready"
171*4882a593Smuzhiyun *                         messages, since this is not an error.
172*4882a593Smuzhiyun *                     -- Change error messages to be const
173*4882a593Smuzhiyun *                     -- Remove a "\t" which looks ugly in the syslogs
174*4882a593Smuzhiyun * 4.14  July 17, 1998 -- Change to pointing to .ps version of ATAPI spec
175*4882a593Smuzhiyun *                         since the .pdf version doesn't seem to work...
176*4882a593Smuzhiyun *                     -- Updated the TODO list to something more current.
177*4882a593Smuzhiyun *
178*4882a593Smuzhiyun * 4.15  Aug 25, 1998  -- Updated ide-cd.h to respect machine endianness,
179*4882a593Smuzhiyun *                         patch thanks to "Eddie C. Dost" <ecd@skynet.be>
180*4882a593Smuzhiyun *
181*4882a593Smuzhiyun * 4.50  Oct 19, 1998  -- New maintainers!
182*4882a593Smuzhiyun *                         Jens Axboe <axboe@image.dk>
183*4882a593Smuzhiyun *                         Chris Zwilling <chris@cloudnet.com>
184*4882a593Smuzhiyun *
185*4882a593Smuzhiyun * 4.51  Dec 23, 1998  -- Jens Axboe <axboe@image.dk>
186*4882a593Smuzhiyun *                      - ide_cdrom_reset enabled since the ide subsystem
187*4882a593Smuzhiyun *                         handles resets fine now. <axboe@image.dk>
188*4882a593Smuzhiyun *                      - Transfer size fix for Samsung CD-ROMs, thanks to
189*4882a593Smuzhiyun *                        "Ville Hallik" <ville.hallik@mail.ee>.
190*4882a593Smuzhiyun *                      - other minor stuff.
191*4882a593Smuzhiyun *
192*4882a593Smuzhiyun * 4.52  Jan 19, 1999  -- Jens Axboe <axboe@image.dk>
193*4882a593Smuzhiyun *                      - Detect DVD-ROM/RAM drives
194*4882a593Smuzhiyun *
195*4882a593Smuzhiyun * 4.53  Feb 22, 1999   - Include other model Samsung and one Goldstar
196*4882a593Smuzhiyun *                         drive in transfer size limit.
197*4882a593Smuzhiyun *                      - Fix the I/O error when doing eject without a medium
198*4882a593Smuzhiyun *                         loaded on some drives.
199*4882a593Smuzhiyun *                      - CDROMREADMODE2 is now implemented through
200*4882a593Smuzhiyun *                         CDROMREADRAW, since many drives don't support
201*4882a593Smuzhiyun *                         MODE2 (even though ATAPI 2.6 says they must).
202*4882a593Smuzhiyun *                      - Added ignore parameter to ide-cd (as a module), eg
203*4882a593Smuzhiyun *                         	insmod ide-cd ignore='hda hdb'
204*4882a593Smuzhiyun *                         Useful when using ide-cd in conjunction with
205*4882a593Smuzhiyun *                         ide-scsi. TODO: non-modular way of doing the
206*4882a593Smuzhiyun *                         same.
207*4882a593Smuzhiyun *
208*4882a593Smuzhiyun * 4.54  Aug 5, 1999	- Support for MMC2 class commands through the generic
209*4882a593Smuzhiyun *			  packet interface to cdrom.c.
210*4882a593Smuzhiyun *			- Unified audio ioctl support, most of it.
211*4882a593Smuzhiyun *			- cleaned up various deprecated verify_area().
212*4882a593Smuzhiyun *			- Added ide_cdrom_packet() as the interface for
213*4882a593Smuzhiyun *			  the Uniform generic_packet().
214*4882a593Smuzhiyun *			- bunch of other stuff, will fill in logs later.
215*4882a593Smuzhiyun *			- report 1 slot for non-changers, like the other
216*4882a593Smuzhiyun *			  cd-rom drivers. don't report select disc for
217*4882a593Smuzhiyun *			  non-changers as well.
218*4882a593Smuzhiyun *			- mask out audio playing, if the device can't do it.
219*4882a593Smuzhiyun *
220*4882a593Smuzhiyun * 4.55  Sep 1, 1999	- Eliminated the rest of the audio ioctls, except
221*4882a593Smuzhiyun *			  for CDROMREADTOC[ENTRY|HEADER]. Some of the drivers
222*4882a593Smuzhiyun *			  use this independently of the actual audio handling.
223*4882a593Smuzhiyun *			  They will disappear later when I get the time to
224*4882a593Smuzhiyun *			  do it cleanly.
225*4882a593Smuzhiyun *			- Minimize the TOC reading - only do it when we
226*4882a593Smuzhiyun *			  know a media change has occurred.
227*4882a593Smuzhiyun *			- Moved all the CDROMREADx ioctls to the Uniform layer.
228*4882a593Smuzhiyun *			- Heiko Eißfeldt <heiko@colossus.escape.de> supplied
229*4882a593Smuzhiyun *			  some fixes for CDI.
230*4882a593Smuzhiyun *			- CD-ROM leaving door locked fix from Andries
231*4882a593Smuzhiyun *			  Brouwer <Andries.Brouwer@cwi.nl>
232*4882a593Smuzhiyun *			- Erik Andersen <andersen@xmission.com> unified
233*4882a593Smuzhiyun *			  commands across the various drivers and how
234*4882a593Smuzhiyun *			  sense errors are handled.
235*4882a593Smuzhiyun *
236*4882a593Smuzhiyun * 4.56  Sep 12, 1999	- Removed changer support - it is now in the
237*4882a593Smuzhiyun *			  Uniform layer.
238*4882a593Smuzhiyun *			- Added partition based multisession handling.
239*4882a593Smuzhiyun *			- Mode sense and mode select moved to the
240*4882a593Smuzhiyun *			  Uniform layer.
241*4882a593Smuzhiyun *			- Fixed a problem with WPI CDS-32X drive - it
242*4882a593Smuzhiyun *			  failed the capabilities
243*4882a593Smuzhiyun *
244*4882a593Smuzhiyun * 4.57  Apr 7, 2000	- Fixed sense reporting.
245*4882a593Smuzhiyun *			- Fixed possible oops in ide_cdrom_get_last_session()
246*4882a593Smuzhiyun *			- Fix locking mania and make ide_cdrom_reset relock
247*4882a593Smuzhiyun *			- Stop spewing errors to log when magicdev polls with
248*4882a593Smuzhiyun *			  TEST_UNIT_READY on some drives.
249*4882a593Smuzhiyun *			- Various fixes from Tobias Ringstrom:
250*4882a593Smuzhiyun *			  tray if it was locked prior to the reset.
251*4882a593Smuzhiyun *			  - cdrom_read_capacity returns one frame too little.
252*4882a593Smuzhiyun *			  - Fix real capacity reporting.
253*4882a593Smuzhiyun *
254*4882a593Smuzhiyun * 4.58  May 1, 2000	- Clean up ACER50 stuff.
255*4882a593Smuzhiyun *			- Fix small problem with ide_cdrom_capacity
256*4882a593Smuzhiyun *
257*4882a593Smuzhiyun * 4.59  Aug 11, 2000	- Fix changer problem in cdrom_read_toc, we weren't
258*4882a593Smuzhiyun *			  correctly sensing a disc change.
259*4882a593Smuzhiyun *			- Rearranged some code
260*4882a593Smuzhiyun *			- Use extended sense on drives that support it for
261*4882a593Smuzhiyun *			  correctly reporting tray status -- from
262*4882a593Smuzhiyun *			  Michael D Johnson <johnsom@orst.edu>
263*4882a593Smuzhiyun * 4.60  Dec 17, 2003	- Add mt rainier support
264*4882a593Smuzhiyun *			- Bump timeout for packet commands, matches sr
265*4882a593Smuzhiyun *			- Odd stuff
266*4882a593Smuzhiyun * 4.61  Jan 22, 2004	- support hardware sector sizes other than 2kB,
267*4882a593Smuzhiyun *			  Pascal Schmidt <der.eremit@email.de>
268*4882a593Smuzhiyun */
269