From owner-freebsd-sparc64@FreeBSD.ORG Mon Dec 31 06:28:24 2007 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 6B0BB16A417 for ; Mon, 31 Dec 2007 06:28:24 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3839613C455 for ; Mon, 31 Dec 2007 06:28:23 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so7850453waf.3 for ; Sun, 30 Dec 2007 22:28:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=oaCOpomyDx1axgomW2EIrxJ8y8T1Dmv9iXYAUitkvvo=; b=HgGHhd4KlaVi1LUt78tW0xSgdvwayWQqUaHbpK32mz/8LyJGe/EICNm0PqMAayahwWjflBKjEGRio28RtCD1heUZ5OqRLyVYwwLdaWU8q4qLCi+4yuLxfjkRwNBo7HBykmup7LnJy/V+XsVOR01c2muZXMLfIS2R3dAneYmnlPE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=n9nvtnTCLyooq3WmxFh7yA/NYXDDyPKN7G+q8G8wRmhCSdFXvHcMhbFQMQYS+v60fQAERsLCN6b9Trq+pZjAIsD0mNpqhddG+HjdCrhAhW5hHaeDXipApJx/aWUzxaXhjwuzdnKGZ2H02bNDTuTy0IEviXF4tkY3c4O4wYyCV14= Received: by 10.114.209.1 with SMTP id h1mr12290813wag.130.1199082503803; Sun, 30 Dec 2007 22:28:23 -0800 (PST) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id k23sm12708013waf.15.2007.12.30.22.28.18 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 30 Dec 2007 22:28:22 -0800 (PST) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id lBV6QaQM021395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Dec 2007 15:26:36 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id lBV6QYuT021394; Mon, 31 Dec 2007 15:26:34 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 31 Dec 2007 15:26:34 +0900 From: Pyun YongHyeon To: Stephen Hurd Message-ID: <20071231062634.GA20276@cdnetworks.co.kr> References: <47786A7B.5060209@sasktel.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47786A7B.5060209@sasktel.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-sparc64@FreeBSD.org Subject: Re: bus_dma lowaddr problems with snd_t4dwave X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2007 06:28:24 -0000 On Sun, Dec 30, 2007 at 08:05:15PM -0800, Stephen Hurd wrote: > After installing FreeBSD 7.0-rc1 on my Blade 100, I decided to take a > stab at getting the on board audio to work. The bit that prevents the > driver from working is that bus_dmamap_load() fails when lowaddr is is > not somewhere over 3GB. The Trident cards apparently require the DMA > address to be in the low 1GB. > Yes, the hardware sucks. You'd better to use newer audio cards that do not have DMA address limitations(e.g. Envy24HT). Last time I checked snd_envy24ht(4) has bus_dma(9) issues so I'm not sure whether it works or not(Had no time to fix it due to other pending works). Long time ago I also tried to make PCI t4dwave(4) work on AXe. The DVMA base address on AXe was beyond scope of DMA address space of Trident 4DWave hardware. I even tried to lower the DVMA base address by poking PCR_TAS. With that change DVMA base address was lowered but other hardwares on the box(e.g. ethernet) didn't work at all. I guess that comes from the region overlapping among devices and this would be one of reason why FreeBSD just get the DVMA base address from firmware. > Are there no bounce pages on sparc64? I think problem is DVMA base address. I have no idea how Sun solved this issue. If we can solve this issue lots of PCI audio hardwares would work. -- Regards, Pyun YongHyeon