seems ttm_bo_handle_move_mem not flush cache, if BO move SYS->VRAM?

2010-12-02 Thread Jerome Glisse
On Thu, Dec 2, 2010 at 2:35 AM, Thomas Hellstrom wrote: > On 12/02/2010 03:49 AM, april wrote: >> >> thanks Thomas >> >> I want to flush CPU cache, before use DMA ?from system memory to VRAM. >> >> Seems I should do this in driver move function itself. >> > > Yes. That's the right way. > >> bty, >

Re: seems ttm_bo_handle_move_mem not flush cache, if BO move SYS->VRAM?

2010-12-02 Thread Jerome Glisse
On Thu, Dec 2, 2010 at 2:35 AM, Thomas Hellstrom wrote: > On 12/02/2010 03:49 AM, april wrote: >> >> thanks Thomas >> >> I want to flush CPU cache, before use DMA  from system memory to VRAM. >> >> Seems I should do this in driver move function itself. >> > > Yes. That's the right way. > >> bty, >

seems ttm_bo_handle_move_mem not flush cache, if BO move SYS->VRAM?

2010-12-02 Thread april
thanks Thomas I want to flush CPU cache, before use DMA from system memory to VRAM. Seems I should do this in driver move function itself. bty, when BO changes from cached to write-combined, CPU cache will be flushed, and all the pages in this BO will do this. but, may be only a small part of p

seems ttm_bo_handle_move_mem not flush cache, if BO move SYS->VRAM?

2010-12-02 Thread Thomas Hellstrom
On 12/02/2010 03:49 AM, april wrote: > thanks Thomas > > I want to flush CPU cache, before use DMA from system memory to VRAM. > > Seems I should do this in driver move function itself. > Yes. That's the right way. > bty, > when BO changes from cached to write-combined, CPU cache will be > f

Re: seems ttm_bo_handle_move_mem not flush cache, if BO move SYS->VRAM?

2010-12-01 Thread Thomas Hellstrom
On 12/02/2010 03:49 AM, april wrote: thanks Thomas I want to flush CPU cache, before use DMA from system memory to VRAM. Seems I should do this in driver move function itself. Yes. That's the right way. bty, when BO changes from cached to write-combined, CPU cache will be flushed, and

Re: seems ttm_bo_handle_move_mem not flush cache, if BO move SYS->VRAM?

2010-12-01 Thread april
thanks Thomas I want to flush CPU cache, before use DMA from system memory to VRAM. Seems I should do this in driver move function itself. bty, when BO changes from cached to write-combined, CPU cache will be flushed, and all the pages in this BO will do this. but, may be only a small part of p

seems ttm_bo_handle_move_mem not flush cache, if BO move SYS->VRAM?

2010-12-01 Thread Thomas Hellstrom
On 12/01/2010 04:58 AM, april wrote: > hi all: > > I have a question: > > If a BO in VRAM (WC) evict to SYS memory(may be cached), and user > process still can access it event it is in SYS memory (may be cached) > . > when this BO volidate to VRAM, It seems "ttm_bo_handle_move_mem" not > flush c

seems ttm_bo_handle_move_mem not flush cache, if BO move SYS->VRAM?

2010-12-01 Thread april
hi all: I have a question: If a BO in VRAM (WC) evict to SYS memory(may be cached), and user process still can access it event it is in SYS memory (may be cached) . when this BO volidate to VRAM, It seems "ttm_bo_handle_move_mem" not flush cache (If evict to SYS memory with cached). But flu

seems ttm_bo_handle_move_mem not flush cache, if BO move SYS->VRAM?

2010-12-01 Thread Jerome Glisse
On Tue, Nov 30, 2010 at 10:58 PM, april wrote: > hi all: > > I have a question: > > If a BO in VRAM (WC) evict to SYS memory(may be cached), ?and user > process still can access it event it is in SYS memory (may be cached) > . > when this BO volidate to VRAM, ?It seems "ttm_bo_handle_move_mem" ?no

Re: seems ttm_bo_handle_move_mem not flush cache, if BO move SYS->VRAM?

2010-12-01 Thread Thomas Hellstrom
On 12/01/2010 04:58 AM, april wrote: hi all: I have a question: If a BO in VRAM (WC) evict to SYS memory(may be cached), and user process still can access it event it is in SYS memory (may be cached) . when this BO volidate to VRAM, It seems "ttm_bo_handle_move_mem" not flush cache (If evict

Re: seems ttm_bo_handle_move_mem not flush cache, if BO move SYS->VRAM?

2010-12-01 Thread Jerome Glisse
On Tue, Nov 30, 2010 at 10:58 PM, april wrote: > hi all: > > I have a question: > > If a BO in VRAM (WC) evict to SYS memory(may be cached),  and user > process still can access it event it is in SYS memory (may be cached) > . > when this BO volidate to VRAM,  It seems "ttm_bo_handle_move_mem"  no

seems ttm_bo_handle_move_mem not flush cache, if BO move SYS->VRAM?

2010-11-30 Thread april
hi all: I have a question: If a BO in VRAM (WC) evict to SYS memory(may be cached), and user process still can access it event it is in SYS memory (may be cached) . when this BO volidate to VRAM, It seems "ttm_bo_handle_move_mem" not flush cache (If evict to SYS memory with cached). But flus