From owner-freebsd-sparc64@FreeBSD.ORG Wed Aug 26 20:59:07 2009 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05EF9106568F for ; Wed, 26 Aug 2009 20:59:07 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 8661C8FC14 for ; Wed, 26 Aug 2009 20:59:06 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.3/8.14.3/ALCHEMY.FRANKEN.DE) with ESMTP id n7QKx533021315; Wed, 26 Aug 2009 22:59:05 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id n7QKx5aa021314; Wed, 26 Aug 2009 22:59:05 +0200 (CEST) (envelope-from marius) Date: Wed, 26 Aug 2009 22:59:05 +0200 From: Marius Strobl To: Gheorghe Ardelean Message-ID: <20090826205905.GG94142@alchemy.franken.de> References: <20090817205340.GA75477@alchemy.franken.de> <20090817215612.GB75477@alchemy.franken.de> <20090818192748.GA6585@alchemy.franken.de> <20090819161410.GA19351@alchemy.franken.de> <4A8DC0DF.4040701@networkz.ch> <4A8EDE72.6040703@networkz.ch> <20090821193740.GA66639@alchemy.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: Gheorghe Ardelean , freebsd-sparc64@freebsd.org Subject: Re: Audio on Sunblade 100 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2009 20:59:07 -0000 On Mon, Aug 24, 2009 at 12:07:44PM +0200, Gheorghe Ardelean wrote: <...> Thanks for the dumps! > > >From all this dumps all I can see is that on my Blade100s there are some > bytes in the isab0@pci... dumps which are different from what the Christian > has: > > ardelean@ahorn:~> diff -u pciconf-myconfig1.txt pciconf-christian.txt > --- pciconf-myconfig1.txt 2009-08-24 11:24:52.758524000 +0200 > +++ pciconf-christian.txt 2009-08-24 11:25:30.791166000 +0200 > > -00 00 06 00 41 03 00 d3 04 02 00 04 00 00 01 10 > +00 00 06 00 41 03 00 d3 04 02 00 02 00 00 01 10 > > and the boot verbose part: > > -pcm0: sndbuf_setmap c1140000, 10000; 0xc0c62000 -> c1140000 > -pcm0: sndbuf_setmap c1160000, 10000; 0xc0c82000 -> c1160000 > +pcm0: sndbuf_setmap c1140000, 10000; 0xc0c50000 -> c1140000 > +pcm0: sndbuf_setmap c1160000, 10000; 0xc0c70000 -> c1160000 > The interesing bits here are the leftmost and the rightmost columns which contain the DVMA addresses. Aa they are indentical on both machines, incorrect bus_dma(9) parameters can be ruled out as a cause for the problem Christian is seeing. > So one can see that there are differences in the output of isab0@pci > dump and also in the dmesg. In the case of Christian this diference is > at bye offset 0x79 (one byte). In my case the difference is at > byteoffset 0x82 (two bytes). Christian could try whether changing the value of register 0x7b (I think you got the offset of the first one wrong) to 4 via `pciconf -wb isab0@pci0:0:7:0 0x7b 4` before playing audio makes any difference, but given that with the latest firmware your machines also use 2 without problems I doubt that will make a difference. > I don't know what is the meaning of this > bytes but maybe someone could tell us. Well, the datasheet for the M1543C southbridge, which in theory contains the same ISA bridge as its successor, just lists it as reserved. Unfortunately I don't have on for the M1543D which Sun uses. > > Nevertheless thank you Marius! It's working (at least for me :) > Unfortunately, I'm currently out of ideas what could be the reason for the problem Christian is seeing. Given that what I have works fine on 2 of 3 Blade 100 and my Blade 1500, I'll commit it once I had a chance to verify it doesn't break i386 though. It would be great however if you could try a slightly updated version of the patch at http://people.freebsd.org/~marius/t4dwave_M5451_32-bit.diff (MD5 hash: 7aaee2bfeab57c21ab23c98cf1c67f23) with one of your Blade 100. Marius