Re: No ATA disks on 9.1

From: Alex Keda <admin_at_lissyara.su>
Date: Fri, 03 May 2013 22:27:56 +0400
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
_at__at_ -2751,6 +2751,11 _at__at_
                  * 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 
lissyara_at_srv0.host-food.ru:/usr/obj/usr/src/sys/GENERIC  amd64
HP#


Thanks!
Received on Fri May 03 2013 - 16:27:58 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:37 UTC