Patch Name: PHKL_30039 Patch Description: s700_800 11.23 IDE/ATAPI cumulative patch Creation Date: 04/03/01 Post Date: 04/03/23 Hardware Platforms - OS Releases: s700: 11.23 s800: 11.23 Products: N/A Filesets: OS-Core.CORE2-KRN,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP Automatic Reboot?: Yes Status: General Release Critical: Yes PHKL_30039: PANIC Category Tags: defect_repair general_release critical panic Path Name: /hp-ux_patches/s700_800/11.X/PHKL_30039 Symptoms: PHKL_30039: ( SR:8606337871 CR:JAGae98874 ) 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:8606337874 CR:JAGae98877 ) Accessing an IDE device after the driver initialization has failed can panic the system. ( SR:8606343295 CR:JAGaf04189 ) 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:8606351600 CR:JAGaf12405 ) An IO to an IDE ATAPI drive can fail if a DMA is active on the other IDE channel. Defect Description: PHKL_30039: ( SR:8606337871 CR:JAGae98874 ) 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:8606337874 CR:JAGae98877 ) 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:8606343295 CR:JAGaf04189 ) 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:8606351600 CR:JAGaf12405 ) A PIO IO 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. Enhancement: No SR: 8606337871 8606337874 8606343295 8606351600 Patch Files: OS-Core.CORE2-KRN,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP: /usr/conf/lib/libdebug.a(scsi_ide_dbg.o) /usr/conf/lib/libdump-pdk.a(scsi_ide_dumpdev.o) /usr/conf/lib/libwsio.a(scsi_ide.o) what(1) Output: OS-Core.CORE2-KRN,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP: /usr/conf/lib/libdebug.a(scsi_ide_dbg.o): scsi_ide_dbg.c $Date: 2004/03/01 09:47:40 $Revision: r11.23/1 PATCH_11.23 (PHKL_30039) /usr/conf/lib/libdump-pdk.a(scsi_ide_dumpdev.o): scsi_ide_dumpdev.c $Date: 2004/03/01 09:46:23 $Revis ion: r11.23/1 PATCH_11.23 (PHKL_30039) /usr/conf/lib/libwsio.a(scsi_ide.o): scsi_ide.c $Date: 2004/03/01 09:45:26 $Revision: r11 .23/1 PATCH_11.23 (PHKL_30039) cksum(1) Output: OS-Core.CORE2-KRN,fr=B.11.23,fa=HP-UX_B.11.23_IA,v=HP: 3717008101 85672 /usr/conf/lib/libdebug.a(scsi_ide_dbg.o) 2176703242 78408 /usr/conf/lib/ libdump-pdk.a(scsi_ide_dumpdev.o) 2715034322 246112 /usr/conf/lib/libwsio.a(scsi_ide.o) Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: None Equivalent Patches: PHKL_30038: s700: 11.11 s800: 11.11 Patch Package Size: 160 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_30039 5. Run swinstall to install the patch: swinstall -x autoreboot=true -x patch_match_target=true \ -s /tmp/PHKL_30039.depot By default swinstall will archive the original software in /var/adm/sw/save/PHKL_30039. 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_30039.text file is available in the product readme: swlist -l product -a readme -d @ /tmp/PHKL_30039.depot To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHKL_30039.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None