From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: Hammerfall (hdsp) initialization problem Date: Tue, 27 Jul 2004 15:47:36 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <1090607568.17750.7.camel@modemcable182.55-70-69.mc.videotron.ca> <20040724100520.26b4ac8f@laptop> <1090734488.3156.2.camel@modemcable182.55-70-69.mc.videotron.ca> <1090754189.15178.8.camel@localhost> Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1090754189.15178.8.camel@localhost> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Thomas Charbonnel Cc: Jean-Marc Valin , Tim Blechmann , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Sun, 25 Jul 2004 13:16:29 +0200, Thomas Charbonnel wrote: > > > > > that's a known problem with the hdsp driver, a lot of continuous memory > > > has to be allocated, which can more likely be done on a freshly booted > > > machine ... > > > the best solution: keep the cardbus interface plugged into the slot all > > > the time ... if you start the computer, the memory will be allocated > > > > Actually, I suspect there's more than that. I've tried running a program > > that malloc()'s 1 GB of memory (the amount of RAM I have), writes to it > > and then free()'s it, so there's lots of memory available after that. > > Still doesn't work (and obviously there's lots of continuous memory > > available). > > > > Jean-Marc > > The problem is that for the preallocation to work, the card has to be > inserted and recognized (the preallocation code scans for the pci vendor > and device ids), so this is a cardbus specific issue. If the card is not > inserted when the preallocation is run, then it will default at probing > time to the standard snd_dma_alloc_pages which is more and more likely > to fail as your uptime rises. The only solution would be to preallocate > the memory anyway, but most user won't need this. Takashi, how about a > kernel/compile time option forcing preallocation for cardbus hdsp owners > ? The problem is that you have to know the PCI pointer to call dma_alloc_coherent() correctly beforehand. Otherwise you'll get only ZONE_DMA under 16MB region. Takashi ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click