Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Sep 2003 09:34:26 -0400
From:      Keith Mitchell <kmitch@guru.org>
To:        Jorge Aldana <jorge@salk.edu>
Cc:        Keith Mitchell <kmitch@weenix.guru.org>
Subject:   Re: pcm0 freezes computer with recent -STABLE
Message-ID:  <3F798662.2090101@guru.org>
In-Reply-To: <20030929193846.W8587@merckx.snl.salk.edu>
References:  <20030930021350.8394CACAC0@weenix.guru.org> <20030929193846.W8587@merckx.snl.salk.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F798662.2090101>