Patch Name: PHKL_30038 Patch Description: s700_800 11.11 IDE/ATAPI cumulative patch Creation Date: 04/03/08 Post Date: 04/03/23 Hardware Platforms - OS Releases: s700: 11.11 s800: 11.11 Products: N/A Filesets: OS-Core.CORE2-KRN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP OS-Core.KERN2-RUN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP Automatic Reboot?: Yes Status: General Release Critical: Yes PHKL_30038: PANIC PHKL_29076: HANG PHKL_27225: ABORT OTHER CORRUPTION HANG High Priority Machine Check (HPMC) HP-UX installation abort Data corruption while reading from Teac DVD drive PHKL_26410: OTHER ABORT High Priority Machine Check (HPMC) HP-UX installation abort PHKL_23438: ABORT Category Tags: defect_repair hardware_enablement general_release critical panic halts_system corruption Path Name: /hp-ux_patches/s700_800/11.X/PHKL_30038 Symptoms: PHKL_30038: ( SR:8606329799 CR:JAGae90922 ) Systems using the CMD649 or CMD680 IDE controller without drives attached to each channel, might have one of the following messages in the dmesg buffer after booting: side_setup_drive_transfer_mode() Failed setting PIO mode, device error side_setup_drive_transfer_mode() Failed setting DMA mode, device error side_identify() Failed reading identify data from device Also, a non-existent IDE drive may also appear in the ioscan output. ( SR:8606331258 CR:JAGae92379 ) Accessing an IDE device after the driver initialization has failed can panic the system. ( SR:8606343294 CR:JAGaf04188 ) Requesting SCSI serial number page using a buffer less than 256 bytes could cause a Buffer Overrun panic with a stack trace similar to the following. panic: Buffer Overrun Stack Trace: IP Function Name 0xe0000000018a4610 kmem_arena_panic+0x1b0 0xe0000000018a4300 kmem_chk_poison+0x110 0xe0000000018ac9c0 kfree+0x320 0xe0000000005f2c40 scsi_iodone+0x420 0xe0000000005f1b40 scsi_cbfn+0x890 0xe0000000005c0fe0 side_done+0x300 0xe0000000005b3bc0 side_if_start+0x650 0xe0000000005e3aa0 scsi_start_bus_locked+0xc90 0xe0000000005f9320 scsi_strategy_real+0x800 0xe0000000005f7f30 scsi_strategy+0x320 0xe0000000005f73a0 scsi_cmdx+0xae0 0xe0000000005f9830 sioc_vpd_inquiry+0x170 0xe0000000005d8c00 scsi_ioctl+0x460 0xe0000000005caa10 sdisk_ioctl+0x50 0xe000000000da8c80 spec_ioctl+0x410 0xe000000000d7c3b0 vno_ioctl+0x310 0xe000000001dfc520 ioctl+0x160 0xe0000000015500f0 syscall+0x1460 End of Stack Trace ( SR:8606351599 CR:JAGaf12404 ) An IO to an IDE ATAPI drive can fail if a DMA is active on the other IDE channel. PHKL_29076: ( SR:8606309696 CR:JAGae72571 ) The CMD-680 IDE interface controller is not supported on PA-RISC systems. ( SR:8606309888 CR:JAGae72762 ) System hangs during boot with IDE HP CD-Writer+ 9500b drive attached. ( SR:8606309890 CR:JAGae72764 ) A format command sent to a DVD drive to format DVD+RW media will immediately fail without formatting the DVD+RW media. PHKL_28062: ( SR:8606280661 CR:JAGae44631 ) The CMD-649 IDE interface controller is not supported on PA-RISC systems. ( SR:8606217458 CR:JAGad86610 ) IDE status messages emitted from IDE interface driver to system console and syslog. ( SR:8606286502 CR:JAGae50441 ) The utility "cdrecord" fails in disk-at-once mode. Commands used for DVD authoring are not supported. Cannot extract audio tracks from media. PHKL_27225: ( SR:8606259281 CR:JAGae23599 ) A High Priority Machine Check (HPMC) can occur when attempting to boot from a half-height DVD drive on current workstation models (B, C and J class systems). The HPMC is dependent upon timing conditions present during boot and may not occur with all kernels. Changing the configuration of the kernel may eliminate the HPMC. ( SR:8606269368 CR:JAGae33603 ) This defect has two symptoms and only occurs on multi-processor systems: 1. Data read from the slimline Teac DVD drive (A8069A) may appear corrupted. 2. A user process, such as the mount(1M) command, may hang for approximately fifteen minutes if issued while the IDE CD/DVD drive is becoming ready. At the end of this period the command will fail. If the command is issued again it will succeed. PHKL_26410: ( SR:8606237066 CR:JAGae06113 ) An HPMC can occur when attempting to boot from a half-height DVD drive on current workstation models (B, C and J class systems). ( SR:8606251613 CR:JAGae17678 ) When installing HP-UX from a CD-ROM media using the half- height DVD drive on current workstation models (B, C and J class systems), an error message similar to the following appears: "ERROR: Cannot open source device: /dev/dsk/c0t0d0: Device busy (errno = 16). NOTE: Default (boot) source does not appear to be a valid (or complete) install source, switching source to Network." PHKL_24283: ( SR:8606198839 CR:JAGad68028 ) Current IDE capable workstations do not support CD-RW drives. PHKL_23438: ( SR:8606167175 CR:JAGad36461 ) The diskinfo(1M) command coredumps or reports random data when the SCSI-IDE CD-ROM drive is empty. Defect Description: PHKL_30038: ( SR:8606329799 CR:JAGae90922 ) When a device is not present on an IDE channel, random values might be read from the device registers. This causes the IDE driver to attempt to setup a non-existent drive. The setup either fails and a failure message is printed to the dmesg buffer or the setup works and a non-existent drive appears in the ioscan output. Resolution: After initially finding a new device on an IDE channel the IDE interface driver performs a series of checks to verify a device is actually present. ( SR:8606331258 CR:JAGae92379 ) After failing to initialize the IDE controller the IDE interface driver was not properly setting driver state. Resolution: After initialization failure the IDE interface driver properly cleans up and sets state. ( SR:8606343294 CR:JAGaf04188 ) The IDE interface driver returned the entire serial number data structure with checking the size of the user buffer. Resolution: The IDE interface driver will not return more data than the user buffer can hold. ( SR:8606351599 CR:JAGaf12404 ) A PIO to an IDE ATAPI drive might fail if a DMA IO is active on the other IDE channel. Resolution: The IDE driver will use DMA to transfer data for commands sent to IDE ATAPI drives. PHKL_29076: ( SR:8606309696 CR:JAGae72571 ) The CMD-680 IDE interface controller is not claimed by the IDE interface driver and is unusable. Resolution: The CMD-680 IDE controller is now fully supported by the IDE interface driver on PA-RISC systems (Core IO only, no support for PCI cards). ( SR:8606309888 CR:JAGae72762 ) After an IDE hardware reset the HP CD-Writer+ 9500b drive will issue an interrupt. The IDE interface driver does not clear the interrupt and this causes the system to hang. Resolution: After a hardware reset the IDE interface driver now clears any pending interrupts. ( SR:8606309890 CR:JAGae72764 ) The IDE interface driver is incorrectly modifying the format command before sending it to the drive. This causes the drive to reject the command. Resolution: The IDE interface driver sends the format command, unmodified to the DVD drive and the drive properly formats the DVD+RW media. PHKL_28062: ( SR:8606280661 CR:JAGae44631 ) The CMD-649 IDE interface controller is not claimed by the IDE interface driver and is unusable. Resolution: The CMD-649 IDE controller is now fully supported by the IDE interface driver (Core IO only, no support for PCI cards). ( SR:8606217458 CR:JAGad86610 ) IDE interface driver status messages do not indicate trouble with the IDE interface and are confusing. Resolution: Eliminated printing of extraneous messages by the IDE interface driver. ( SR:8606286502 CR:JAGae50441 ) The IDE interface driver does not support all MMC2 (MultiMedia Commands Specification 2) commands. Resolution: Support for the full set of MMC2 (MultiMedia Commands Specification 2) commands has been added to the IDE interface driver. PHKL_27225: ( SR:8606259281 CR:JAGae23599 ) Booting HP-UX from CD-ROM media using the HLDS half-height DVD drive (A8068A) yields a High Priority Machine Check (HPMC). This is caused by a controller initiated reset on the IDE bus before the configuration of each IDE channel is complete. Resolution: Configuration of each IDE channel is now done before the IDE bus is reset by the driver. This prevents the driver from accessing the drive too soon after the reset. ( SR:8606269368 CR:JAGae33603 ) The IDE interface driver was not designed to handle forwarded IOs. On any system with IO forwarding enabled, the driver accesses the IDE drive more often to poll for status. In some instances this can cause data corruption when reading from a Teac DVD slimline IDE drive (A8069A) on multi-processor systems. When an IDE CD/DVD drive is becoming ready on a multi-processor system and the IDE interface driver is handling a forwarded IO, the driver does not properly read the ATAPI interrupt register. The IDE interface driver will then incorrectly wait for the IDE drive to become ready for data transfer without obtaining the current drive status. The drive becomes ready, but the IDE interface driver never acknowledges the state change. This can cause a user application to hang for approximately fifteen minutes, at the end of which the driver times out the IO and returns an error to the user application. Resolution: IO forwarding turned off for the IDE interface driver. PHKL_26410: ( SR:8606237066 CR:JAGae06113 ) Booting HP-UX from CD-ROM media using the HLDS half-height DVD drive yields a High Priority Machine Check (HPMC). This is caused by the driver's failure to allow enough time for the drive to recover after a hardware reset. Resolution: The driver now waits longer to access the drive following a hardware reset. ( SR:8606251613 CR:JAGae17678 ) Installing HP-UX from CD-ROM media using the HLDS half-height DVD drive yields a device busy error. This is caused by the driver's failure to allow enough time for the drive to recover after a hardware reset. Resolution: The driver now waits longer to access the drive following a hardware reset. PHKL_24283: ( SR:8606198839 CR:JAGad68028 ) The OS needs to be enhanced to support CD-RW drives. Resolution: Support for CD-RW drives has been added to the HP-UX IDE/ATAPI driver. PHKL_23438: ( SR:8606167175 CR:JAGad36461 ) The IDE driver buffers data, including disk capacity information. The buffer is not cleared when there is no media in the CD-ROM drive. Resolution: The IDE driver now checks for the "No media present" condition and resets the disk capacity to zero. Enhancement: No SR: 8606167175 8606198839 8606217458 8606237066 8606251613 8606259281 8606269368 8606280661 8606286502 8606309696 8606309888 8606309890 8606329799 8606331258 8606343294 8606351599 Patch Files: OS-Core.CORE2-KRN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: /usr/conf/lib/libdebug.a(scsi_ide_dbg.o) /usr/conf/lib/libwsio.a(scsi_ide.o) /usr/conf/lib/libwsio.a(scsi_ide_multi.o) OS-Core.KERN2-RUN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: /usr/conf/master.d/side what(1) Output: OS-Core.CORE2-KRN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: /usr/conf/lib/libdebug.a(scsi_ide_dbg.o): scsi_ide_dbg.c $Date: 2002/11/21 08:31:51 $Revision: r11.11/1 PATCH_11.11 (PHKL_28062) /usr/conf/lib/libwsio.a(scsi_ide.o): scsi_ide.c $Date: 2004/03/08 10:37:45 $Revision: r11 .11/9 PATCH_11.11 (PHKL_30038) /usr/conf/lib/libwsio.a(scsi_ide_multi.o): scsi_ide_multi.c $Date: 2003/06/17 15:28:39 $Revisio n: r11.11/2 PATCH_11.11 (PHKL_29076) OS-Core.KERN2-RUN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: /usr/conf/master.d/side: side $Date: 2002/11/21 08:34:19 $Revision: r11.11/1 PATCH_11.11 (PHKL_28062) cksum(1) Output: OS-Core.CORE2-KRN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: 4044574640 173672 /usr/conf/lib/libdebug.a(scsi_ide_dbg.o) 2971776315 121072 /usr/conf/lib/libwsio.a(scsi_ide.o) 210596535 10800 /usr/conf/lib/libwsio.a(scsi_ide_multi.o) OS-Core.KERN2-RUN,fr=B.11.11,fa=HP-UX_B.11.11_64,v=HP: 3666297945 4522 /usr/conf/master.d/side Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHKL_29076 PHKL_28062 PHKL_27225 PHKL_26410 PHKL_24283 PHKL_23438 Equivalent Patches: PHKL_30039: s700: 11.23 s800: 11.23 Patch Package Size: 130 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHKL_30038 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHKL_30038.depot By default swinstall will archive the original software in /var/adm/sw/save/PHKL_30038. If you do not wish to retain a copy of the original software, include the patch_save_files option in the swinstall command above: -x patch_save_files=false WARNING: If patch_save_files is false when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. For future reference, the contents of the PHKL_30038.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHKL_30038.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHKL_30038.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None