kern/132082: [ata] [patch] ATA driver does not find PATA drives attached to JMB363 controller

Alexander Motin mav at FreeBSD.org
Thu May 7 01:30:06 UTC 2009


The following reply was made to PR kern/132082; it has been noted by GNATS.

From: Alexander Motin <mav at FreeBSD.org>
To: bug-followup at FreeBSD.org, freebsd at sopwith.solgatos.com
Cc:  
Subject: Re: kern/132082: [ata] [patch] ATA driver does not find PATA drives
 attached to JMB363 controller
Date: Thu, 07 May 2009 03:22:45 +0300

 This is a multi-part message in MIME format.
 --------------070709020706000907030706
 Content-Type: text/plain; charset=KOI8-R; format=flowed
 Content-Transfer-Encoding: 7bit
 
 AHCI driver priority was already reduced on 8-CURRENT, but in other, 
 inapplicable here, fashion. For 7.X, try attached patch.
 
 -- 
 Alexander Motin
 
 --------------070709020706000907030706
 Content-Type: text/plain;
  name="ahci.prio.7.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="ahci.prio.7.patch"
 
 --- ata-pci.c.prev	2007-11-21 23:15:00.000000000 +0200
 +++ ata-pci.c	2009-05-07 03:08:44.000000000 +0300
 @@ -76,12 +76,6 @@ ata_pci_probe(device_t dev)
      if (pci_get_class(dev) != PCIC_STORAGE)
  	return ENXIO;
  
 -    /* if this is an AHCI chipset grab it */
 -    if (pci_get_subclass(dev) == PCIS_STORAGE_SATA) {
 -	if (!ata_ahci_ident(dev))
 -	    return ATA_PROBE_OK;
 -    }
 -
      /* run through the vendor specific drivers */
      switch (pci_get_vendor(dev)) {
      case ATA_ACARD_ID: 
 @@ -178,6 +172,12 @@ ata_pci_probe(device_t dev)
  	break;
      }
  
 +    /* if this is an AHCI chipset grab it */
 +    if (pci_get_subclass(dev) == PCIS_STORAGE_SATA) {
 +	if (!ata_ahci_ident(dev))
 +	    return ATA_PROBE_OK;
 +    }
 +
      /* unknown chipset, try generic DMA if it seems possible */
      if (pci_get_subclass(dev) == PCIS_STORAGE_IDE) {
  	if (!ata_generic_ident(dev))
 
 --------------070709020706000907030706--


More information about the freebsd-bugs mailing list