From owner-freebsd-sparc64@FreeBSD.ORG Tue Aug 18 06:51:49 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 BEDD3106568B for ; Tue, 18 Aug 2009 06:51:49 +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 64FD78FC55 for ; Tue, 18 Aug 2009 06:51:49 +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 n7I6pmIh093829; Tue, 18 Aug 2009 08:51:48 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id n7I6pmVY093828; Tue, 18 Aug 2009 08:51:48 +0200 (CEST) (envelope-from marius) Date: Tue, 18 Aug 2009 08:51:48 +0200 From: Marius Strobl To: Pyun YongHyeon Message-ID: <20090818065147.GI25891@alchemy.franken.de> References: <4A7C6B50.3070503@networkz.ch> <20090817205340.GA75477@alchemy.franken.de> <20090817215612.GB75477@alchemy.franken.de> <20090817223051.GB1369@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090817223051.GB1369@michelle.cdnetworks.com> User-Agent: Mutt/1.4.2.3i Cc: Christian Ramseyer , 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: Tue, 18 Aug 2009 06:51:49 -0000 On Mon, Aug 17, 2009 at 03:30:51PM -0700, Pyun YongHyeon wrote: > On Mon, Aug 17, 2009 at 11:56:12PM +0200, Marius Strobl wrote: > > On Mon, Aug 17, 2009 at 10:53:40PM +0200, Marius Strobl wrote: > > > On Fri, Aug 07, 2009 at 07:58:40PM +0200, Christian Ramseyer wrote: > > > > Hi > > > > > > > > I'm trying to get sound on a Sunblade 100 with 7.2R. I've added > > > > > > > > device sound > > > > device snd_t4dwave > > > > > > > > to the kernel and recompiled. pciconf shows an attached driver: > > > > > > > > pcm0@pci0:0:8:0: class=0x040100 card=0x545110b9 chip=0x545110b9 > > > > rev=0x01 hdr=0x00 > > > > vendor = 'Acer Labs Incorporated (ALi/ULi)' > > > > device = 'ALI M5451 PCI AC-Link Controller Audio Device' > > > > class = multimedia > > > > subclass = audio > > > > > > > > However, there are errors in dmesg: > > > > > > > > pcm0: port 0x900-0x9ff mem 0x424000-0x424fff at device > > > > 8.0 on pci0 > > > > pcm0: > > > > pcm0: [GIANT-LOCKED] > > > > pcm0: [ITHREAD] > > > > pcm0: chn_init(pcm0:record:dsp0.r0) failed: err = 19 > > > > pcm0: pcm_chn_create(trrchan, -1, 0xfffff80001370800) failed > > > > pcm0: chn_init(pcm0:play:dsp0.p0) failed: err = 19 > > > > pcm0: pcm_chn_create(trpchan, 1, 0xfffff80001370800) failed > > > > > > > > I've also found this message from 2006: > > > > http://lists.freebsd.org/mailman/htdig/freebsd-sparc64/2006-June/004168.html > > > > > > > > So, am I just doing something wrong or are there problems with 5451 > > > > audio on SPARC? I see that the release notes only list i386 and amd64 as > > > > architectures for the t4dwave driver. > > > > > > > > By the way, thanks a lot for all the work your guys are doing in general > > > > and for the SPARC port in particular. I'm currently trying BSD for the > > > > first time in my life and I like it a lot. It runs surprisingly well on > > > > this outdated platform. > > > > > > > > > > Could you (or any other Blade 100 user) please give the following > > > patch at try? > > > http://people.freebsd.org/~marius/t4dwave_sparc64_32-bit.diff > > 404 > > > > This gets at least the line-out of the M5451 in my Blade 1500 > > > working (I've no idea whether its internal speaker is also > > > connected to the sound chip like for example in a Blade 1000 > > > and thus supposed to also work or just to a PC-style beeper, > > > the firmware at least makes it beep that way...), but which > > > also has a newer revision of this chip. > > > > > > > Looks like I've spoken to soon; it only works when it happens > > to get certain buffer addresses, otherwise nothing is played > > and the interrupt times out (which according to google isn't > > a sparc64 specific problem). This probably means that some > > bus_dma(9) parameters are incorrect... > > > > Since I couldn't get the patch I don't know what it does, but > the PCI trident 4D wave NX hardware I had surely had DMA address > limitations where MSB 2bits of LBA register are used as other > purposes. I don't know 4D wave compatible controller on Blade 100 > removed this limitation. > Marius, does the DVMA base address of blade 100 is lower than 1GB? No, but the M5451 actually does 31-bit DMA and in order to generate 32-bit DMA the 31st bit can be set via its accompanying ISA bridge. Marius