Re: pcm0 freezes computer with recent -STABLE

From: Keith Mitchell (kmitch_at_guru.org)
Date: 09/30/03

  • Next message: Andre Albsmeier: "Re: FreeBSD 4.9 RC1 (i386) now available"
    Date: Tue, 30 Sep 2003 09:34:26 -0400
    To: Jorge Aldana <jorge@salk.edu>
    
    

    As I mentioned, Ian's fix for the USB problem also fixed the pcm0 hang
    for me. CVSupping should fix it (I rebuilt my kernel with just this fix
    and it started working). The actual commit that fixed this is:

    iedowse 2003/09/28 04:08:31 PDT

      FreeBSD src repository

      Modified files: (Branch: RELENG_4)
        sys/kern kern_fork.c
      Log:
      Save and restore the interrupt mask in fork1() instead of using
      spl0() and hence assuming that the old interrupt mask was zero.
      Although fork1() is normally called with a zero mask, one exception
      to this is when it is called by kthread_create() before configure()
      has unmasked interrupts for the first time. In that case it can
      cause interrupt storm hangs during device configuration, because
      interrupts can be delivered before the corresponding device drivers
      are ready to receive them.

      This should fix the boot-time USB hangs that have been reported.

      Approved by: re (murray)

      Revision Changes Path
      1.72.2.15 +3 -3 src/sys/kern/kern_fork.c

    Jorge Aldana wrote:

    >>From the previous posts and replies, one fix or workaround is to reassign your
    >soundcards IRQ and re-boot, it worked for me on the first reassignment, my code
    >also was from the 28th, code right after the 2nd Arp patch notice. If the cvsup
    >worked let us know.
    >
    >Here's some of the notes from the other thread:
    >
    >---------------------------------------
    >
    >From: Patrick C <patrick@filespanker.com>
    >Subject: Re: psm0 lockup on boot (FreeBSD 4.9 PreRelease #2)
    >
    >
    >
    >>I lost the previous thread on the psm0 lock but also wanted to report that
    >>after cvsup-ing for the arp patch and rebuilding that the lockup still
    >>occurs, any leads on a fix/workaround? (Besides removing psm0 or disabling
    >>the sound card).
    >>
    >>
    >
    >I had the same problem where my kernel would lock up until I changed the
    >soundcard PCI slot -- as well as my network card -- and assigned irqs to each
    >of those slots and my video card. This appears to be because of irq
    >conflicts. Here's what I found this in the LINT file:
    >
    ># Note: It has been reported that ISA DMA with the SoundBlaster will
    ># lock up the machine (PR docs/5358). If this happens to you,
    ># turning off USWC write posting in your machine's BIOS may fix
    ># the problem.
    >
    >----------------------------------------
    >
    >Jorge
    >
    >

    -- 
    Keith Mitchell
    Email: kmitch@guru.org				PGP key available upon request
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
    

  • Next message: Andre Albsmeier: "Re: FreeBSD 4.9 RC1 (i386) now available"

    Relevant Pages

    • Time Drift Compensation on Linux Clusters
      ... While working on a Linux cluster with kernel version 2.4.27 we've ... for this problem which is based on the Pentium's TSC clock. ... Following is a detailed description of the problem and the fix, ... The number of interrupt per second is defined by ...
      (Linux-Kernel)
    • [GIT]: Networking
      ... ATH9K interrupt storm fix. ... Three bluetooth btusb driver fixes to deal with some regression list ...
      (Linux-Kernel)
    • Re: Fix time going backward with clock=pit [1/2]
      ... Oh, I see, you were also assuming there's a way to fix that. ... return more than a jiffy is dangerous if we can ever lose a tick (due to ... Is there really no way to detect the pending interrupt (e.g. ... It's not that important if it's not completely correct for SMP systems, ...
      (Linux-Kernel)
    • [git patches] net driver fixes
      ... natsemi: Consistently use interrupt enable/disable functions ... Bug fix for Jumbo frames on XG card ... writel(DEFAULT_INTR, ioaddr + IntrMask); ...
      (Linux-Kernel)
    • [PATCH] serial driver PMC MSP71xx, kernel linux-mips.git master
      ... Seventh attempt at the serial driver patch for the PMC-Sierra ... Fix for DesignWare APB THRE errata: ... fixes it so we have dropped our initial workaround. ... interrupt to be generated if it's busy when the LCR is written. ...
      (Linux-Kernel)