Re: No ATA disks on 9.1

Alex Keda <[email protected]>
Newsgroups gmane.os.freebsd.devel.hardware
Message-ID <518401AC.5010009__39959.8356838853$1367605693$gmane$org@lissyara.su>
03.05.2013 20:41, John Baldwin пишет:
> On Thursday, May 02, 2013 4:18:45 pm Alex Keda wrote:
>> see begin in:
>> http://lists.freebsd.org/pipermail/freebsd-current/2012-November/038000.html
>
> Hmm, what I see is that hdac0 is affected by this, but it's a bit odd.  Can
> you try the patch below, but can you also get the output of 'devinfo -u' and
> 'devinfo -rv' from the 9.0 kernel?

I use this patch:
srv0# diff -Nru sys/dev/pci/pci.c.orig  sys/dev/pci/pci.c
--- sys/dev/pci/pci.c.orig      2012-11-17 12:47:51.000000000 +0400
+++ sys/dev/pci/pci.c   2013-05-03 21:49:18.000000000 +0400
@@ -2751,6 +2751,11 @@
                  * from the parent.
                  */
                 resource_list_delete(rl, type, reg);
+               pci_disable_io(dev, type);
+               device_printf(bus,
+                   "pci%d:%d:%d:%d bar %#x failed to allocate\n",
+                   pci_get_domain(dev), pci_get_bus(dev), 
pci_get_slot(dev),
+                   pci_get_function(dev), reg);
         } else {
                 start = rman_get_start(res);
                 pci_write_bar(dev, pm, start);
srv0#


all OK:

HP# uname -a
FreeBSD HP.lissyara.su 9.1-RELEASE-p3 FreeBSD 9.1-RELEASE-p3 #0: Fri May 
  3 22:03:50 MSK 2013 
[email protected]:/usr/obj/usr/src/sys/GENERIC  amd64
HP#


Thanks!
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hardware
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.