From: Falko Schmidt <kaethorn@stud.uni-stuttgart.de>
To: alsa-devel@lists.sourceforge.net
Subject: Re: trouble on ppc32?
Date: Tue, 28 Feb 2006 16:41:03 +0100 [thread overview]
Message-ID: <20060228154103.GA2205@celes> (raw)
In-Reply-To: <s5h7j7kvbcb.wl%tiwai@suse.de>
On Fri, Feb 24, 2006 at 07:52:04PM +0100, Takashi Iwai wrote:
> At Wed, 22 Feb 2006 18:02:01 +0100,
> Falko Schmidt wrote:
> >
> > On Tue, Feb 21, 2006 at 04:17:48PM +0100, Takashi Iwai wrote:
> > > > -------------
> > > > Soundblaster Live 512 (PCI):
> > > > -------------
> > > >
> > > > Feb 20 21:54:43 cyan kernel: PCI: Enabling device 0000:01:03.0 (0104 -> 0105)
> > > > Feb 20 21:54:43 cyan kernel: max memory size is 0x7fffffff (addr = 0x8ba3f000)!!
> > > > Feb 20 21:54:59 cyan kernel: max memory size is 0x7fffffff (addr = 0x8ba21000)!!
> > > > Feb 20 21:54:59 cyan kernel: emu: failure page = 0
> > > > Feb 20 21:54:59 cyan kernel: max memory size is 0x7fffffff (addr = 0x8ba21000)!!
> > > > Feb 20 21:54:59 cyan kernel: emu: failure page = 0
> > > > Feb 20 21:55:13 cyan kernel: max memory size is 0x7fffffff (addr = 0x8ba21000)!!
> > > > Feb 20 21:55:13 cyan kernel: emu: failure page = 0
> > > > Feb 20 21:55:13 cyan kernel: max memory size is 0x7fffffff (addr = 0x8ba21000)!!
> > > > Feb 20 21:55:13 cyan kernel: emu: failure page = 0
> > > > Feb 20 21:55:13 cyan kernel: max memory size is 0x7fffffff (addr = 0x8baa1000)!!
> > > > Feb 20 21:55:13 cyan kernel: emu: failure page = 0
> > > > Feb 20 21:55:13 cyan kernel: max memory size is 0x7fffffff (addr = 0x8baa1000)!!
> > > > Feb 20 21:55:13 cyan kernel: emu: failure page = 0
> > >
> > > It's not the fault of driver but because of ppc's dma_alloc_coherent().
> > > It doesn't allocate memories in the given coherent_dma_mask.
> >
> > That sounds interesting. Thanks for pointing it out.
>
> Does the patch below have any influence? It's a blind-shot, though...
>
>
> Takashi
>
>
> diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c
> index 946f321..b77caa7 100644
> --- a/arch/powerpc/kernel/iommu.c
> +++ b/arch/powerpc/kernel/iommu.c
> @@ -546,6 +546,7 @@ void *iommu_alloc_coherent(struct iommu_
> return NULL;
>
> /* Alloc enough pages (and possibly more) */
> + again:
> ret = (void *)__get_free_pages(flag, order);
> if (!ret)
> return NULL;
> @@ -556,6 +557,15 @@ void *iommu_alloc_coherent(struct iommu_
> if (mapping == DMA_ERROR_CODE) {
> free_pages((unsigned long)ret, order);
> ret = NULL;
> + } else if (dev->coherent_dma_mask &&
> + mapping >= dev->coherent_dma_mask) {
> + iommu_free(tbl, mapping, npages);
> + free_pages((unsigned long)ret, order);
> + if (! (flag & __GFP_DMA)) {
> + flag |= __GFP_DMA;
> + goto again;
> + }
> + ret = NULL;
> } else
> *dma_handle = mapping;
> return ret;
>
2.6.15 kernels currently won't boot on my machine. I'll get back to you
once I solved that. Thanks a lot so far.
Falko
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
prev parent reply other threads:[~2006-02-28 15:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 23:12 trouble on ppc32? Falko Schmidt
2006-02-21 15:17 ` Takashi Iwai
2006-02-22 17:02 ` Falko Schmidt
2006-02-24 18:52 ` Takashi Iwai
2006-02-28 15:41 ` Falko Schmidt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060228154103.GA2205@celes \
--to=kaethorn@stud.uni-stuttgart.de \
--cc=alsa-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox