Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 May 2013 22:27:56 +0400
From:      Alex Keda <admin@lissyara.su>
To:        John Baldwin <jhb@freebsd.org>
Cc:        hardware@freebsd.org, current@freebsd.org
Subject:   Re: No ATA disks on 9.1
Message-ID:  <518401AC.5010009@lissyara.su>
In-Reply-To: <201305031241.36538.jhb@freebsd.org>
References:  <5182CA25.9030001@lissyara.su> <201305031241.36538.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 
lissyara@srv0.host-food.ru:/usr/obj/usr/src/sys/GENERIC  amd64
HP#


Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?518401AC.5010009>