From hd_keeper@mail.ru Fri Jun 12 09:46:07 2009 Return-Path: Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FB611065672 for ; Fri, 12 Jun 2009 09:46:02 +0000 (UTC) (envelope-from hd_keeper@mail.ru) Received: from mx45.mail.ru (mx45.mail.ru [94.100.176.59]) by mx1.freebsd.org (Postfix) with ESMTP id 176908FC08 for ; Fri, 12 Jun 2009 09:46:02 +0000 (UTC) (envelope-from hd_keeper@mail.ru) Received: from f160.mail.ru (f160.mail.ru [194.67.57.33]) by mx45.mail.ru (mPOP.Fallback_MX) with ESMTP id 6323AE000236 for ; Fri, 12 Jun 2009 13:02:55 +0400 (MSD) Received: from mail by f160.mail.ru with local id 1MF2fA-0004pU-00; Fri, 12 Jun 2009 13:03:04 +0400 Received: from [92.50.248.43] by win.mail.ru with HTTP; Fri, 12 Jun 2009 13:03:04 +0400 Message-Id: Date: Fri, 12 Jun 2009 13:03:04 +0400 From: Keeper Reply-To: Keeper To: FreeBSD-gnats-submit@freebsd.org Cc: hd_keeper@mail.ru Subject: [ata] JMicron JMB363 controller does not recognize PATA hard disk >Number: 135498 >Category: kern >Synopsis: [ata] JMicron JMB363 controller does not recognize PATA hard disk >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 12 09:50:03 UTC 2009 >Closed-Date: Fri Jun 12 13:40:32 UTC 2009 >Last-Modified: Fri Jun 12 13:40:32 UTC 2009 >Originator: Keeper >Release: FreeBSD 7.2-RELEASE-p1 i386 >Organization: none >Environment: System: FreeBSD aeon 7.2-RELEASE-p1 FreeBSD 7.2-RELEASE-p1 #0: Wed Jun 10 20:09:14 MSD 2009 keeper@aeon:/usr/obj/usr/src/sys/KEEPER i386 Hardware: Motherboard ASUS P5K-E with JMicron JMB363 PATA controller BIOS settings: J-Micron eSATA/PATA Controller - Enabled, Controller Mode - IDE >Description: I've got a motherboard ASUS P5K-E with JMicron JMB363 PATA controller. I connect Seagate PATA hard disk to the JMicron controller's port. After the system startup, the kernel do recognize JMB363 PATA controller, but PATA hard disk is not recognized: atapci0: [JMicron JMB363 SATA300 controller] port 0xec00-0xec07,0xe880-0xe883,0xe800-0xe807,0xe480-0xe483,0xe400-0xe40f mem 0xfeafe000-0xfeafffff irq 16 at device 0.0 on pci3 atapci0: [ITHREAD] atapci0: AHCI called from vendor specific driver atapci0: AHCI Version 01.00 controller with 2 ports detected No corresponding device file is created under /dev either. Also, I've tried both patches (patch.txt and patch-2.diff) submitted for PR kern/132082 with no success. >How-To-Repeat: Get a box with a motherboard with Intel ICH9 chipset and JMicron JMB363 PATA controller. Connect a PATA (IDE) hard disk to the PATA controller's port. Boot FreeBSD either 7.1-RELEASE or 7.2-RELEASE. >Fix: I've found a dirty hack to work around this issue. Detaching and attaching ATA channels do some magic - PATA hard disk becomes available and works fine afterwards. # atacontrol detach ata4 && atacontrol attach ata4 ata4: [ITHREAD] ad9: 76319MB [Seagate ST380011A 8.01] at ata4-slave UDMA100 GEOM_LABEL: Label for provider ad9s1 is ntfs/PORTABLE. Master: no device present Slave: ad9 [ST380011A/8.01] ATA/ATAPI revision 6 If one executes this magic command once again, the hard disk disappears: # atacontrol detach ata4 && atacontrol attach ata4 GEOM_LABEL: Label ntfs/PORTABLE removed. ata4: [ITHREAD] Master: no device present Slave: no device present >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Fri Jun 12 13:40:18 UTC 2009 State-Changed-Why: Duplicate of kern/135497. http://www.freebsd.org/cgi/query-pr.cgi?pr=135498 >Unformatted: