From owner-freebsd-multimedia@FreeBSD.ORG Fri Jul 1 14:48:13 2005 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A06B16A41C for ; Fri, 1 Jul 2005 14:48:13 +0000 (GMT) (envelope-from mus.bsd@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1729B43D1D for ; Fri, 1 Jul 2005 14:48:12 +0000 (GMT) (envelope-from mus.bsd@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so328089wra for ; Fri, 01 Jul 2005 07:48:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cU9KzSvsGQRJbNXWMLbBexIFUm49cClkghm5yaE39PS9eb8hnzmgCgzU3qMoV+PPtGLk53bgLZ1Jahb1TVK7dzcPNfcFGYakN6JBFszUDOxyDXMmOHutOXbO8soy5AKg58en3oqvxZPqWL0QeEvV3gvLlDTRejDr/80NRaBtVRk= Received: by 10.54.45.7 with SMTP id s7mr1597668wrs; Fri, 01 Jul 2005 07:48:12 -0700 (PDT) Received: by 10.54.129.5 with HTTP; Fri, 1 Jul 2005 07:48:12 -0700 (PDT) Message-ID: <8eb2b81050701074853656129@mail.gmail.com> Date: Fri, 1 Jul 2005 22:48:12 +0800 From: Muzaffar Ariff To: pyunyh@gmail.com In-Reply-To: <20050701023307.GF17609@rndsoft.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8eb2b81050628200659d338ab@mail.gmail.com> <20050629043027.GB8832@rndsoft.co.kr> <42C2B94F.2010708@samsco.org> <20050701023307.GF17609@rndsoft.co.kr> Cc: freebsd-multimedia@freebsd.org Subject: Re: ESS Maestro3 no sound X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Muzaffar Ariff List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Jul 2005 14:48:13 -0000 I'll give it a try first thing tomorrow. Had a busy week (hence no reply) :) I personally don't have a clue on how to load the patch but i think i can figure it out. I'll keep you guys posted next week. -m- On 7/1/05, Pyun YongHyeon wrote: > On Wed, Jun 29, 2005 at 09:07:59AM -0600, Scott Long wrote: >=20 > [...] >=20 > > > > It looks like yet more decay in the driver. When I wrote it, I was la= zy > > and didn't want to figure out which chip versions preferred IOPORT > > mapping and which ones preferred MEMIO, so I just had it try MEMIO fir= st > > (since that is a better choice) and then fail back to IOPORT. The > > resource manager seemed to tolerate this back then, but apparently it > > doesn't now. My guess is that the first call to bus_alloc_resource > > returns success but actually fails, and in the process it leaks the > > resource out of the resource manager. Then when you unload and load > > again, the resource is unavailable (since it was leaked) so the first > > call to fails, prompting it to go to the second call which succeeds > > fully. This would mean that there are now a number of bugs in the > > resource manager which need to be fixed. > > > > Based on what I've seen over the years, it might be safe to assume tha= t > > BAR0 on both the meastro3 and allegro1 is IOPORT and that BAR1 on the > > maestro3 is MEMIO. Thus, the easiest change might be to just remove > > the first bus_alloc_resource call and force the driver to always use > > IOPORT. I'd still like to use this as a test case for fixing the deep= er > > bugs in the resource manager, though. > > >=20 > Thanks for detailed explanation. :-) > Here is patch. Muzaffar, does the patch change your situation? >=20 > Btw, I encountered dreasful message "play interrupt timeout, channel dead= " > again. Unloading the driver and then reloading the driver fixed it. > Since I see "pci_link2: Unable to choose an IRQ" during driver load > I can't sure it's fault of maestro3(4) driver. >=20 > > Scott >=20 > PS. Due to mail server issues I sent again. > -- > Regards, > Pyun YongHyeon >=20 >=20 >=20 --=20 Muzaffar Ariff mus.bsd@gmail.com