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/
|