Linux MIPS Architecture development
 help / color / mirror / Atom feed
* flush_cache_page
@ 2008-01-13  4:55 Jorgen Lundman
  2008-01-13 15:21 ` [SPAM] flush_cache_page Markus Gothe
  0 siblings, 1 reply; 3+ messages in thread
From: Jorgen Lundman @ 2008-01-13  4:55 UTC (permalink / raw)
  To: linux-mips


Due to cache coherence bugs, Fuse has an extra call to work around it;

         flush_cache_page(vma, cs->addr, page_to_pfn(cs->pg));


But my kernel (2.6.15 for mips 4KEc Tangox board) does not have a 
flush_cache_page().

If I use kangox_flush_all() Fuse works rather well, but the performance 
is abysmal. Can I simulate this call using one of the calls I do have;

__flush_dcache_page
flush_data_cache_page
tangox_flush_cache_all
cache_flush
kc_flush_cache

Or alternatively, does anyone have the source for flush_cache_page() for 
said CPU?



-- 
Jorgen Lundman       | <lundman@lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [SPAM] flush_cache_page
  2008-01-13  4:55 flush_cache_page Jorgen Lundman
@ 2008-01-13 15:21 ` Markus Gothe
  2008-01-14  4:19   ` Jorgen Lundman
  0 siblings, 1 reply; 3+ messages in thread
From: Markus Gothe @ 2008-01-13 15:21 UTC (permalink / raw)
  To: Jorgen Lundman; +Cc: linux-mips


[-- Attachment #1.1: Type: text/plain, Size: 1191 bytes --]

Man, 2.6.15 is like 2-3 years old....

On 13 Jan 2008, at 05:55, Jorgen Lundman wrote:

>
> Due to cache coherence bugs, Fuse has an extra call to work around it;
>
>        flush_cache_page(vma, cs->addr, page_to_pfn(cs->pg));
>
>
> But my kernel (2.6.15 for mips 4KEc Tangox board) does not have a  
> flush_cache_page().
>
> If I use kangox_flush_all() Fuse works rather well, but the  
> performance is abysmal. Can I simulate this call using one of the  
> calls I do have;
>
> __flush_dcache_page
> flush_data_cache_page
> tangox_flush_cache_all
> cache_flush
> kc_flush_cache
>
> Or alternatively, does anyone have the source for flush_cache_page()  
> for said CPU?
>
>
>
> -- 
> Jorgen Lundman       | <lundman@lundman.net>
> Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
> Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
> Japan                | +81 (0)3 -3375-1767          (home)
>

_______________________________________

Mr Markus Gothe
Software Engineer

Phone: +46 (0)13 21 81 20 (ext. 1046)
Fax: +46 (0)13 21 21 15
Mobile: +46 (0)73 718 72 80
Diskettgatan 11, SE-583 35 Linköping, Sweden
www.27m.com



[-- Attachment #1.2: Type: text/html, Size: 3364 bytes --]

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [SPAM] flush_cache_page
  2008-01-13 15:21 ` [SPAM] flush_cache_page Markus Gothe
@ 2008-01-14  4:19   ` Jorgen Lundman
  0 siblings, 0 replies; 3+ messages in thread
From: Jorgen Lundman @ 2008-01-14  4:19 UTC (permalink / raw)
  To: linux-mips



Markus Gothe wrote:
> Man, 2.6.15 is like 2-3 years old....

Thank you, that is very useful. And if you can let me know how I do the 
signature, and which AES keys I need to encrypt the kernel with to be 
able to boot it on the SMP8634 I could upgrade.

But for now, I can not change what the device runs, only try to work 
around its limitations.

Lund



> 
> On 13 Jan 2008, at 05:55, Jorgen Lundman wrote:
> 
>>
>> Due to cache coherence bugs, Fuse has an extra call to work around it;
>>
>>        flush_cache_page(vma, cs->addr, page_to_pfn(cs->pg));
>>
>>
>> But my kernel (2.6.15 for mips 4KEc Tangox board) does not have a 
>> flush_cache_page().
>>
>> If I use kangox_flush_all() Fuse works rather well, but the 
>> performance is abysmal. Can I simulate this call using one of the 
>> calls I do have;
>>
>> __flush_dcache_page
>> flush_data_cache_page
>> tangox_flush_cache_all
>> cache_flush
>> kc_flush_cache
>>
>> Or alternatively, does anyone have the source for flush_cache_page() 
>> for said CPU?
>>
>>
>>
>> -- 
>> Jorgen Lundman       | <lundman@lundman.net <mailto:lundman@lundman.net>>
>> Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
>> Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
>> Japan                | +81 (0)3 -3375-1767          (home)
>>
> 
> _______________________________________
> 
> Mr Markus Gothe
> Software Engineer
> 
> Phone: +46 (0)13 21 81 20 (ext. 1046)
> Fax: +46 (0)13 21 21 15
> Mobile: +46 (0)73 718 72 80
> Diskettgatan 11, SE-583 35 Linköping, Sweden
> www.27m.com <http://www.27m.com>
> 
> 

-- 
Jorgen Lundman       | <lundman@lundman.net>
Unix Administrator   | +81 (0)3 -5456-2687 ext 1017 (work)
Shibuya-ku, Tokyo    | +81 (0)90-5578-8500          (cell)
Japan                | +81 (0)3 -3375-1767          (home)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-14  4:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-13  4:55 flush_cache_page Jorgen Lundman
2008-01-13 15:21 ` [SPAM] flush_cache_page Markus Gothe
2008-01-14  4:19   ` Jorgen Lundman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox