ts-7000
[Top] [All Lists]

[ts-7000] Re: DMA with SSP on TS7400

To:
Subject: [ts-7000] Re: DMA with SSP on TS7400
From: "pakorn_0608" <>
Date: Mon, 19 Apr 2010 08:32:48 -0000
Hi everyone.

Now,I have done with this problem.
If you were following my problem in previous all post, I have the way to solve 
it now.

I back to use ts-kernel2.4 without disable D-CACHE when i compiling kernel 
again.

The function that i use is "flush_dcache_range(addr_start,addr_end)" included 
in "<asm-arm/proc/cache.h>".

It has a bit when i compile my module for use dma.
I have to comment "flush_dcache_page(struct page *page)" in file cache.h for 
without problem if compiling.

around line - 121
It is this function:
static inline void flush_dcache_page(struct page *page)
{
        if (page->mapping && !mapping_mapped(page->mapping))
                set_bit(PG_dcache_dirty, &page->flags);
        else {
                unsigned long virt = (unsigned long)page_address(page);
                cpu_cache_clean_invalidate_range(virt, virt + PAGE_SIZE, 0);
        }
}

I can use what i wanna use now.
Thank all.
Pakorn.




--- In  "pakorn_0608" <> wrote:
>
> Hi Breton,
> 
> I'm also think that it not so good for disable D-CACHE in kernel.
> But i don't understand why i cannot use "dma_map_single".
> Is it about it doesn'e have any patch into kernel-ts11 of ts7400?
> 
> For using kernel 2.6,It's my second plan to solve with this d-cache problem 
> by using DMA-API. 
> 
> Thank for notice me about what will happen when disable d-cache,but ,i'll try 
> to dothis way for keep result of it for knowledge.
> I'll follow to use kernel 2.6 later in a few days.
> 
> My features for using kernel are
> - USB SUPPORT
>     [M] usb mass storage support
>           [*]  USB/ATA bridge support
> 
> - ATA/ATAPI/MFM/RLL...
>     [M] ATA/ATAPI/MFM/RLL support
>        - IDE, ATA and ATAPI Block devices
>          [M] Enhanced IDE/ATA...
>               [M] SCSI emulation support.
> 
> something like this.
> 
> target i have to modprobe usb-storage, ide-scsi, sd_mod, vfat
> 
> I have to use USB port connect with USB to IDE converter for using with 
> Harddisk/IDE.
> 
> Thanks again Breton
> 
> Pakorn
> 
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] Re: DMA with SSP on TS7400, pakorn_0608 <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU