Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jun 2009 13:03:04 +0400
From:      Keeper <hd_keeper@mail.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        hd_keeper@mail.ru
Subject:   kern/135498: [ata] JMicron JMB363 controller does not recognize PATA hard disk
Message-ID:  <E1MF2fA-0004pU-00.hd_keeper-mail-ru@f160.mail.ru>
Resent-Message-ID: <200906120950.n5C9o3wi065782@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 12 09:50:03 UTC 2009
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1MF2fA-0004pU-00.hd_keeper-mail-ru>