kern/135497: [ata] JMicron JMB363 controller does not recognize PATA hard disk

Keeper hd_keeper at mail.ru
Fri Jun 12 09:10:02 UTC 2009


>Number:         135497
>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:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Keeper
>Release:        7.1-RELEASE, 7.2-RELEASE
>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 at 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-0
xe483,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:


More information about the freebsd-bugs mailing list