lkml.org 
[lkml]   [2002]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: HIGHMEM and DMA (emu10k1 related)

This might not be immediately relevant but I saw a similar issue with
Radeon DMA engine. What was happenning is that the card has an internal
memory controller which was misconfigured. So it was not "seeing" certain
physical pages. The problem manifested in pages of data filled with 0's.
Also it was often that it worked fine right after boot but became slowly
screwed up as memory was getting more fragmented.

So I think what happens is that your cards idea of pci addressable memory
goes awry with the pages you get from kernel. Try printing out the
addresses and checking whether there is any pattern. Also (probably you
did that already) check linux/Documentation/ for new PCI functions..

Vladimir Dergachev

On Sat, 5 Jan 2002, Rui Sousa wrote:

>
> Hi,
>
> Lately, there have been reports of problems when using
> the emu10k1 driver and a kernel compiled with HIGHMEM support.
> I finally managed to observe the problem myself and basically this
> e-mail is a request for help to try and solve this.
>
> 1. The problem is only observed when using a kernel compiled with
> HIGHMEM support, even if actual RAM available is less than 1GiB
> (192MiB in my case).
>
> 2. The emu10k1 uses DMA to get sound data from host memory.
>
> 3. DMA memory is allocated with pci_alloc_consistent (in
> PAGE_SIZE blocks).
>
> 4. The emu10k1 reads some bytes from host memory and caches them
> locally (up to 128 bytes). These can then be read back through PCI IO
> registers (using inl()).
>
> 5. When I compare the values in host memory to the ones read by the card
> _some times_ they are different (all of the 128 bytes read). The values
> read by the card are usually zero when this happens.
>
> 6. Once the problem starts if I start/stop the same sound application
> (freeing and then allocating the same DMA memory pages) the problem
> persists. If I stop the application, start another one (with a
> different buffer usually allocating more memory), stop it, go
> back to the initial one, the problem is gone.
>
>
> At the hardware level what is the difference between a kernel with
> HIGHMEM support and one without? I see that the physical/virtual
> addresses of the pages obtained with pci_alloc_consistent are within
> the same range...
>
> If it's a bug in the driver why would it only show up some times and
> only if HIGHMEM support is enabled?
>
> Thanks for any help,
> Rui Sousa
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.056 / U:24.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site