pcm0 freezes computer with recent -STABLE

Michael Sierchio kudzu at tenebras.com
Mon Sep 22 16:40:13 PDT 2003


Patrick C wrote:
> I just cvsup'd Sept 21, installed everything today... kernel freezes when 
> detecting pcm0 during boot. After removing my soundcard, I'm able to boot no 
> problem. Any major changes to pcm0 in -STABLE lately?

This happened intermittently to my Dell Inspiron -- there is a bug
in the pcibus.c device probe, actually.   See if the following cures
it.  Warner supposedly had a more correct revision, but I don't
think it's been mfc'd.



*** pcibus.c.orig       Mon Sep 22 16:36:04 2003
--- pcibus.c    Mon Sep 22 16:36:14 2003
***************
*** 260,264 ****
--- 260,270 ----
    retry:
         for (probe.slot = 0; probe.slot <= PCI_SLOTMAX; probe.slot++) {
+               u_int32_t       id;
+
                 probe.func = 0;
+               id = pci_cfgread(&probe, PCIR_DEVVENDOR, 4);
+               if (id == -1)
+                       continue;
+
                 hdrtype = pci_cfgread(&probe, PCIR_HEADERTYPE, 1);
                 if (hdrtype & PCIM_MFDEV && (!found_orion || hdrtype != 0xff) )
***************
*** 272,276 ****
                          * Read the IDs and class from the device.
                          */
-                       u_int32_t id;
                         u_int8_t class, subclass, busnum;
                         device_t child;
--- 278,281 ----



More information about the freebsd-stable mailing list