Patch-ID# 108974-40
Keywords: atapi zip removable media sd uata dada dad sd ssd devid panic
Synopsis: SunOS 5.8: dada, uata, dad, sd, ssd and scsi drivers patch
Date: Sep/10/2004


Install Requirements: Reboot immediately after patch is installed                      
                      See Special Install Instructions                      
                      
Solaris Release: 8

SunOS Release: 5.8

Unbundled Product: 

Unbundled Release: 

Xref: This patch available for x86 as patch 116982

Topic: SunOS 5.8: dada, uata, dad, sd, ssd and scsi drivers patch
	***********************************************************
	NOTE: This patch may contain one or more OEM-specific platform ports.
	      See the appropriate OEM_NOTES file within the patch for
	      information specific to these platforms.
	      DO NOT INSTALL this patch on an OEM system if a corresponding
	      OEM_NOTES file is not present (or is present, but instructs not
	      to install the patch), unless the OEM vendor directs otherwise.
	***********************************************************
	NOTE:	Refer to Special Install Instructions section for
		IMPORTANT specific information on this patch.

Relevant Architectures: sparc

BugId's fixed with this patch: 4102203 4231195 4231208 4237299 4262676 4263164 4271068 4271069 4275749 4279959 4284198 4285368 4285546 4291601 4295457 4297348 4302559 4303604 4304790 4305131 4305767 4313216 4313235 4318239 4325397 4325722 4325730 4328843 4328971 4329580 4329996 4335919 4337637 4337798 4343075 4343747 4346167 4347117 4348075 4349893 4352908 4353025 4353074 4354337 4356701 4357397 4361271 4361307 4362287 4364927 4365456 4367306 4367910 4375899 4382037 4382044 4384992 4387723 4388213 4393407 4397494 4402632 4402772 4405706 4407802 4409417 4417686 4419089 4419120 4432931 4470156 4471243 4472239 4474300 4474380 4477250 4480681 4500536 4511840 4512347 4516415 4530942 4615223 4625067 4628764 4636627 4643720 4655315 4656322 4656416 4667718 4673801 4687149 4739785 4741633 4765756 4770566 4776340 4788885 4793775 4812565 4818293 4820811 4831997 4848845 4851925 4867133 4873442 4883142 4894442 5027030

Changes incorporated in this version: 4687149

Patches accumulated and obsoleted by this patch: 109343-04 109524-15 111766-01 111768-01 114289-01 115128-02

Patches which conflict with this patch: 

Patches required with this patch: 108528-29 or greater

Obsoleted by: 

Files included with this patch: 

/etc/driver_aliases
/etc/minor_perm
/etc/name_to_major
/kernel/drv/dad
/kernel/drv/sd
/kernel/drv/sparcv9/dad
/kernel/drv/sparcv9/sd
/kernel/drv/sparcv9/ssd
/kernel/drv/sparcv9/uata
/kernel/drv/ssd
/kernel/drv/uata
/kernel/misc/dada
/kernel/misc/scsi
/kernel/misc/sparcv9/dada
/kernel/misc/sparcv9/scsi
/usr/include/sys/scsi/impl/inquiry.h
/usr/include/sys/scsi/impl/services.h
/usr/include/sys/scsi/scsi_ctl.h
/usr/include/sys/scsi/targets/sddef.h
/usr/include/sys/scsi/targets/ssddef.h
/usr/lib/adb/ata_controller
/usr/lib/adb/ata_drive
/usr/lib/adb/ata_pkt
/usr/lib/adb/dcd_disk
/usr/lib/adb/scsi_disk
/usr/lib/adb/sparcv9/ata_controller
/usr/lib/adb/sparcv9/ata_drive
/usr/lib/adb/sparcv9/ata_pkt
/usr/lib/adb/sparcv9/dcd_disk
/usr/lib/adb/sparcv9/scsi_disk
/usr/lib/adb/sparcv9/ssa_disk
/usr/lib/adb/ssa_disk

Problem Description:

4687149 Incorrect data read from DVD media >4Gb in 32 bit mode on solaris 8.
 
(from 108974-39)
 
5027030 device node disappears after hotplug on the Emulex card LP9802
 
(from 108974-38)
 
4667718 config-reader will cause EMC storage array to phone home
 
(from 108974-37)
 
4873442 WARNING: kstat_create('sd', 50, 'sd50'): kstat namespace collision with KID 223
 
(from 108974-36)
 
4883142 scsi_hba_ioctl should return ENOTTY immediately if received IOCTL
 
(from 108974-35)
 
4851925 limiting the infinite retries for unit attention
4894442 Request for sd/ssd drivers to allow 3 mins to become ready for STK OPENstorage
 
(from 108974-34)
 
4867133 sd continuously echoes "transport rejected" messages
 
(from 108974-33)
 
4739785 ssd incorrectly sets the throttle for disks of type ST336605FSUN36G and MAL3364F
 
(from 108974-32)
 
4848845 Request for sd/ssd drivers to allow 3 mins to become ready for certain VID/PID
4812565 Solaris target disk driver needs a device table entry for the Pirus appliance
 
(from 108974-31)
 
        This patch revision was generated to accumulate and obsolete
        the feature changes introduced in feature point patch 115128-02.
        See description below for bugid(s) associated with feature point
        patch 115128-02.
 
(from 108974-30)
 
4765756 I/O to Veritas volume made with A5200 by Oracle thread got stuck in biowait
 
(from 108974-29)
 
4500536 sd: improve driver error handling of timeout events
 
(from 108974-28)
 
      This patch revision was generated to accumulate and obsolete
      the feature changes introduced in feature point patch 114289-01
 
(from 108974-27)
 
4770566 VTOC error: write a block that is out of range .
 
(from 108974-26)
 
4656322 Need to enhance scsi_reset() interface to support LUN reset.
4656416 FC Disk driver does not support Maserati
 
(from 108974-25)
 
4655315 Empty CDRW at boot cause continuous device failed to power-up messages
 
(from 108974-24)
 
4432931 Provide ATA-100 support in ide driver on sparc.
 
(from 108974-23)
 
4625067 sd: panic in sd_ejected
 
(from 108974-22)
 
4419089 Release of SD_MUTEX during kstat deletion leaves kernel vulnerable to panic
4643720 Grover/Grover+: WARNING: timeout: early timeout chno = 0 targ = 0
4673801 sd_decode_sense in sd (not ssd) still suffers from buffer overflow in S7 and S8
 
(from 108974-21)
 
4628764 Sunfire 6800 hangs while booting/performing devcfg w/JNI & 9960 Storage box
 
(from 108974-20)
 
4328971 pointer to a sd_thr_request struct is bogus, called from sd_mhd_resvd_recover
4636627 Failed write operation on a read-only LUN is reporting retryable
 
(from 108974-19)
 
4615223 Data miscompare using block sizes >128K on LVM soft partitions with DAD drives
 
(from 108974-18)
 
4474380 E420R panics in getblk_common() while installing Solaris 8-101 from CD
4402632 ssd is verbose to console about sense data slowing sonoma failover.
4511840 sd error recovery for failed lun on A1000 can reduce total array throughput ~0
 
(from 108974-17)
 
4388213 vtoc handling broken in 64-bit dad driver.
4477250 Solaris 8 sun4u: sd_get_serial_num() is vulnerable to buf overflow
 
(from 108974-16)
 
4364927 bad trap panic while trying to label disk
4387723 vtoc timstamp  handling is wrong in a 64-bit sd and ssd
4480681 ata_controller:Secondary Channel BSY set after reset
4382037 atapi devices returns a resid for I/O commands to target driver.
 
(from 108974-15)
 
4325397 deadlock in sd driver due to un_rqs_sema usage in interrupt context
4409417 volmgt gets confused with CDRW commands
4474300 Changes required to IDE HBA for supporting firmware download
4472239 Remove scsi specific messages from ghd files.
4471243 SET MULTIPLE command needs to be handled correctly
4470156 misaligned write buffer bug zeroed out during write to IDE drive
 
(from 108974-14)
 
	This patch revision was generated to accumulate and obsolete
       	the feature changes introduced in feature point patch 111766-01.
 
(from 108974-13)
 
4303604 disk IO may fail without ever going to hardware
 
(from 108974-12)
 
4402772 SUNW,Sun-Blade-100 system can hang in case of hard errors from drive
4419120 System panics with atapi drive in PIO mode.
4407802 panic during boot -r on systems with ATAPI cdrw devices
4365456 250M Zip drive doesn't work with Sol 8, works ok with Solaris 7
4417686 SPARC IDE driver uses fabricated device IDs
 
(from 108974-11)
 
4347117 Can't create stripe metadevice with more than 1 non-Sun disks
 
(from 108974-10)
 
4349893 sd/ssd don't recognize new LSI Series 4 LSI arrays with Vendor ID "LSI"
4357397 make ssd per partition kstats optional
4384992 A3x00 SCSI controller NOT_READY up to 111 secs after a Bus Reset
 
(from 108974-09)
 
4393407 SouthBridge can cause data corruption on grover. Need sw workaround
4361271 South Bridge used in grover motherboard goes into a weird state upon device error
 
(from 108974-08)
 
4354337 potential hang in sdclose if pm_raise_power fails
4353025 Need to raise power of device for DKIOCSTATE ioctl
4343075 scsi_watch_suspend() stomps on freed scsi_watch_requests, causes heap corruption
4353074 Need to remove device reset from sd detach
4318239 sd: Solaris8 Boot -rv & -arv Sends Log Sense & Does Not Handle Illegal Requests
4352908 potential hang in ssdopen()/ssdclose()
4329996 ssd misleads cpr about devices - causes assert failure
 
(from 108974-07)
 
4343747 rdriver wants sd/ssd to attach a LSI_array property to all LSI devinfos
 
(from 108974-06)
 
4348075 "fdisk: Error in ioctl DKIOCSMBOOT on /dev/rdsk/c0t0d0p0." of the scsi drives
 
(from 108974-05)
 
	This patch revision was generated to accumulate and obsolete
	the feature changes introduced in point patch 109343-04, and
        to include the following additional fixes:
 
4279959 some of the cdio ioctl'a fail on DVD-ROM drives
4291601 sd: can't power manage CD-ROM when no media is present
4305131 sd: LUN not ready condition is not being handled properly
4313235 sd: complains about attempt to read when no media present in a removable drive
4325722 sd should not issue READ on non-data CDs
4325730 fixes for pm of removable media devices
4328843 warlock and cstyle broken for scsi/sd
 
(from 108974-04)
 
4271069 ssd:  Overloaded (Queue Full) throttle
4297348 ssd: ssddump() does not work reliably
4271068 ssd:  Eliminate excessive transport rejected messages
 
(from 108974-03)
 
4304790 sometimes must eject/remount to rmformat zip media on intel
 
(from 108974-02)
 
4313235 sd: complains about attempt to read when no media present in a removable drive
 
(from 108974-01)
 
4285546 When atapi zip is read-write protected there are error
4285368 atapi zip with ufs can not be mounted on Ultra-10
4305131 sd: LUN not ready condition is not being handled properly
 
(from 109343-04)
 
4337637 new platform: IDE doesn't complete all writes
4346167 SB IDE interrupt can not be blocked - can not remove intr handler in cpr
 
(from 109343-03)
 
4302559 Unable To Install A 3rd Party EIDE DRIVE > 32GB On An Ultra 5/10 Running Solaris
4335919 uata: Drive not ready before set_features
 
(from 109343-02)
 
4329580 Need to have lower time for cpr resume on new platform
 
(from 109343-01)
 
4231195 Commands timeout for a request which does not start from even address.
4102203 IDE driver code needs cleanup
4231208 IDE driver uses non-recommended commands for READ/WRITE DMA
4237299 Separate out chip specific code from the IDE HBA driver.
4262676 Need to implement a backup  speed mechanism in IDE drivers.
4263164 UDCDCMD ioctl does not work properly in 64 bit OS
4275749 Permission for internal IDE drive are set wrong for the group (sys)
4284198 Need power management support for 'dad' driver....
4305767 Need to support power management in the IDE HBA driver - uata
4313216 Warning "uata: WARNING: ata_controller - Can not reset 1st channel"
 
(from 111766-01)
 
4405706 mhd: add a new service action of "register and ignore existing key"
 
(from 114289-01)
 
4776340 ON support for Enchilada and Taco workstations
4741633 DVD device fails to power back up after a few PM cycles
4788885 Reset pkt failure flags before retrying the command after ATAPI device reset
4382044 Need to set register block 60-64 for southbridge in read/write mode
4362287 rmformat(1m) should allow formatting ls-120 and usb floppies
 
(from 109524-15)
 
4770566 VTOC error: write a block that is out of range .
 
(from 109524-14)
 
4656322 Need to enhance scsi_reset() interface to support LUN reset.
4656416 FC Disk driver does not support Maserati
 
(from 109524-13)
 
4530942 Panic in ssdstrategy due to null kstat pointers
 
(from 109524-12)
 
4328971 pointer to a sd_thr_request struct is bogus, called from sd_mhd_resvd_recover
4636627 Failed write operation on a read-only LUN is reporting retryable
 
(from 109524-11)
 
4402632 ssd is verbose to console about sense data slowing sonoma failover.
4511840 sd error recovery for failed lun on A1000 can reduce total array throughput ~0
4516415 ssd driver needs added support for SVE unique throttle and retry values
 
(from 109524-10)
 
4512347 ssd/solaris2.8/sparc - not honoring USCSI_SILENT flag
 
(from 109524-09)
 
4364927 bad trap panic while trying to label disk
4387723 vtoc timstamp  handling is wrong in a 64-bit sd and ssd
 
(from 109524-08)
 
4367910 dr fails with A3500fc with i/o after switch lun between controllers.
 
(from 109524-07)
 
	This patch revision was generated to accumulate and obsolete
        the feature changes introduced in feature point patch 111768-01.
 
(from 109524-06)
 
4303604 disk IO may fail without ever going to hardware
 
(from 109524-05)
 
4349893 sd/ssd don't recognize new LSI Series 4 LSI arrays with Vendor ID "LSI"
4356701 ssd:  not waiting 3 minutes for purple BUSY status
4357397 make ssd per partition kstats optional
4367306 T300 fails reserve cmd ocassionally while another node is rebooting
4375899 sd and ssd MHIOCREREGISTERDEVID implementations need to be updated.
4384992 A3x00 SCSI controller NOT_READY up to 111 secs after a Bus Reset
4397494 Add the following drives to ssd_disk_table
 
(from 109524-04)
 
4354337 potential hang in sdclose if pm_raise_power fails
4353025 Need to raise power of device for DKIOCSTATE ioctl
4343075 scsi_watch_suspend() stomps on freed scsi_watch_requests, causes heap corruption
4353074 Need to remove device reset from sd detach
4318239 sd: Solaris8 Boot -rv & -arv Sends Log Sense & Does Not Handle Illegal Requests
4352908 potential hang in ssdopen()/ssdclose()
4329996 ssd misleads cpr about devices - causes assert failure
 
(from 109524-03)
 
4343747 rdriver wants sd/ssd to attach a LSI_array property to all LSI devinfos
 
(from 109524-02)
 
4271069 ssd:  Overloaded (Queue Full) throttle
4297348 ssd: ssddump() does not work reliably
4271068 ssd:  Eliminate excessive transport rejected messages
4337798 Seagate drives have throttling problem
 
(from 109524-01)
 
4295457 ssd: serial number should be obtained from the Unit Serial Number page
 
(from 111768-01)
 
4405706 mhd: add a new service action of "register and ignore existing key"
 
(from 115128-02)
 
4361307 System can panic if cdrom in low power mode and sd driver gets detached
4831997 taco system freezes when estar is powering up disk
 
(from 115128-01)
 
4793775 uata: panics with  tsb miss on locked kernel tte
4818293 Incorrect programming of IDE controller  during  mode changes may cause failures
4820811 Modify recovery from SET FEATURE failure to work in all the failure cases
4831997 taco system freezes when estar is powering up disk

Patch Installation Instructions:
--------------------------------
 
For Solaris 2.0-2.6 releases, refer to the Install.info file and/or
the README within the patch for instructions on using the generic
'installpatch' and 'backoutpatch' scripts provided with each patch.
 
For Solaris 7-9 releases, refer to the man pages for instructions
on using 'patchadd' and 'patchrm' scripts provided with Solaris.
Any other special or non-generic installation instructions should be
described below as special instructions.  The following example
installs a patch to a standalone machine:
 
       example# patchadd /var/spool/patch/104945-02
 
The following example removes a patch from a standalone system:
 
       example# patchrm 104945-02
 
For additional examples please see the appropriate man pages.

Special Install Instructions:
-----------------------------
 
This patch repairs the device identification (devid) algorithm for
fibre-channel attached storage products.  A devid provides a unique
handle for a device which allows the Solaris kernel to identify them
independently of the datapath used to access them and provides this
handle to applications.
 
This patch affects the use of T300 storage devices.  T300 is a RAID
controller that prior to this patch would report the same devid for
all LUNs created behind the RAID controller.
 
If you are using version 2.3 of the Alternate Pathing (AP) product,
this patch prevents the loss of an existing AP 2.3 configuration with
T300 devices and allows a successful upgrade to AP 2.3.1.  If you are
installing AP 2.3.1 this patch will allow creation of alternate paths
to T300 devices.
 
Sun has identified Sun Cluster 2.x products to require assistance in
upgrading to this patch and suggests that you contact your SE in this
case.  Products that have been identified as NOT affected by this
changes are all Veritas VxVM products, all Sun StorEdge RAID manager
products and all Solstice Disk Suite products.
 
-----------------------------------------------------------------------
Reboot the system after patch installation.
 
	NOTE 1:	If you're using CDE 1.4, you MUST also install the following
                patches:
 
                109165-01 (or newer)    CDE 1.4: dtfile patch
                109167-01 (or newer)    CDE 1.4: Desktop Help Update Patch
                108921-02 (or newer)    CDE 1.4: dtwm Patch
 
		If you're using OpenWindows 3.8, you MUST also install patch
                109463-01 (or newer).
 
        NOTE 2: To get the complete Removable Media functionality, one
		needs to also install the following patches:
 
		108970-01 (or newer)	/usr/lib/fs/pcfs/fsck and
					/usr/lib/fs/pcfs/mkfs patch
		108972-01 (or newer)	/sbin/fdisk patch
		108977-01 (or newer)	libsmedia patch
		108968-01 (or newer)	vol/vold/rmmount patch
		108975-01 (or newer)    /usr/bin/rmformat and
					/usr/sbin/format patch
 
	NOTE 3: To get the complete fix for 4304790 (sometimes must eject/
		remount to rmformat zip media on intel), one needs to
		also install the following patches:
 
		109642-01 (or newer)    /usr/include/sys/dkio.h patch
		108972-02 (or newer)    /sbin/fdisk patch
		108975-03 (or newer)    /usr/bin/rmformat patch
 
	NOTE 4:	To get the complete fix for 4405706 (mhd: add a new
		service action of "register and ignore existing key"), one
		needs to also install the following patch:
 
		111800-01 (or newer)	/usr/include/sys/mhd.h patch
 
        NOTE 5: For complete platform support of the SUNW,Sun-Fire-V210,
                SUNW,Sun-Fire-V240, SUNW,Netra-240, or SUNW,Serverblade1,
                please also install the following patches:
 
                109888-18 (or newer)   platform drivers patch
                109889-02 (or newer)   platform links & libc_psr patch
                110460-26 (or newer)   fruid/PICL plug-ins patch
                111794-02 (or newer)   /usr/lib/libcpc.so.1 patch
                111883-14 (or newer)   Sun GigSwift Ethernet 1.0 driver patch
                112249-02 (or newer)   libprtdiag_psr.so.1 patch
                113679-01 (or newer)   rmc* and librsc.so.1 patch
                113680-01 (or newer)   bge patch
                113681-01 (or newer)   mc-us3i patch
                113682-01 (or newer)   pmugpio patch
                113683-01 (or newer)   todm5819p_rmc patch
                113684-01 (or newer)   scadm patch
 
	NOTE 6: For complete platform support for the SUNW,Sun-Blade-1500 and
		SUNW,Sun-Blade-2500, please also install the following patches:
 
		108975-08 (or newer)   rmformat and format patch
		108977-02 (or newer)   libsmedia patch
		109793-18 (or newer)   su patch
		109873-17 (or newer)   libprtdiag_psr.so.1 patch
		109885-11 (or newer)   glm patch
		109887-16 (or newer)   smartcard patch
		109888-21 (or newer)   platform drivers patch
		109889-04 (or newer)   platform links & libc_psr patch
		109896-13 (or newer)   USB patch
		109920-08 (or newer)   pcic driver patch
		110320-03 (or newer)   s1394 patch
		110460-28 (or newer)   fruid/PICL plug-ins patch
		110609-04 (or newer)   USB header patch
		111804-03 (or newer)   update_drv,rem_drv patch
		111808-02 (or newer)   /usr/lib/adb/devinfo patch
		109892-04 (or newer)   ecpp patch
 
        NOTE 7: For complete platform support for the SUNW,Sun-Fire-V250 and
                SUNW,Sun-Fire-V440, please also install the following patches:
 
                109873-19 (or newer)    libprtdiag_psr.so.1 patch
                109888-24 (or newer)    platform drivers patch
                109889-06 (or newer)    platform links & libc_psr patch
                110819-04 (or newer)    us driver patch
                110460-30 (or newer)    fruid/PICL plug-ins patch
                112249-04 (or newer)    Netra-12 libprtdiag_psr.so.1 patch
                113679-04 (or newer)    rmc* and librsc.so.1 patch
                113684-03 (or newer)    scadm patch
                115274-01 (or newer)    raidctl patch
                115275-01 (or newer)    mpt driver patch
                109896-17 (or newer)    USB and Audio Framework patch
                110918-05 (or newer)    openeepr and prtconf patch
                113682-02 (or newer)    pmugpio patch
                109793-19 (or newer)    su driver patch
 
        NOTE 8: Please add the mpt driver to the /etc/name_to_major file
                if the patch has not successfully added the entry.  Entries
                from the /etc/name_to_major file included with this patch
                are usually appended to the end of the file on the customer's
                system.  Not including the mpt entry may result in the following
                message seen when the customer's system is rebooted:
 
                    "WARNING: add_spec: No major number for mpt"
 
                Message seen in /var/sadm/patch/<patchid>/log file when
                entry has not successfully been added to the /etc/name_to_major
                file:
 
                      SUNWcsr: failed to add mpt to  /etc/name_to_major:
    		      (mpt) already in use as a driver or alias.

README -- Last modified date:  Friday, September 10, 2004

