From owner-freebsd-current@FreeBSD.ORG Mon Apr 5 23:21:23 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBF4F16A4CE for ; Mon, 5 Apr 2004 23:21:23 -0700 (PDT) Received: from md.gfk.ru (md.gfk.ru [62.205.179.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F50F43D5A for ; Mon, 5 Apr 2004 23:21:22 -0700 (PDT) (envelope-from Yuriy.Tsibizov@gfk.ru) Received: from mx.gfk.ru ([10.0.0.30]) by md.gfk.ru (md.gfk.ru [62.205.179.201]) (MDaemon.PRO.v6.8.5.R) with ESMTP id 54-md50000000160.tmp for ; Tue, 06 Apr 2004 10:20:11 +0400 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-MIMEOLE: Produced By Microsoft Exchange V6.0.5762.3 Date: Tue, 6 Apr 2004 10:20:10 +0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: dev/sound/pcm/sound.h shadows INTR_MPSAFE declaration Thread-Index: AcQbhkUpnl/ESyuXTzisCx74h3H9hAAFb8oQ From: "Yuriy Tsibizov" To: "Doug White" X-Spam-Processed: md.gfk.ru, Tue, 06 Apr 2004 10:20:11 +0400 (not processed: message from valid local sender) X-MDRemoteIP: 10.0.0.30 X-Return-Path: Yuriy.Tsibizov@gfk.ru X-MDaemon-Deliver-To: freebsd-current@freebsd.org cc: freebsd-current@freebsd.org cc: Mathew Kanner Subject: RE: dev/sound/pcm/sound.h shadows INTR_MPSAFE declaration X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 06:21:24 -0000 > > Today I've noticied that my driver is marked as Giant-locked: >=20 > Is it actually MPSAFE? If so, feel free to mark it as such,=20 > although pcm > isn't fully locked yet, so we take no responsibility for any damage > caused :) Some sound drivers in -CURRENT allocate interrupts with INTR_MPSAFE.=20 The problem is that after including dev/sound/pcm/sound.h INTR_MPSAFE no = longer equals to 512, but it is set to 0. And if sound driver interrupt = was allocated as INTR_TYPE_AV|INTR_MPSAFE it will be marked only as = INTR_TYPE_TTY.=20 Yuriy.