Re: highmem and cache handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Vladimir...

On Wed, Mar 28, 2012 at 19:30, Vladimir Murzin <murzin.v@xxxxxxxxx> wrote:
> Hello everyone!
>
> I can see across the Linux kernel source code that some
> kmap*()/kunmap*() pairs are coupled with flush_dcache_page().
> Sometimes it is done outside kmap*()/kunmap() pairs, sometimes inside...
> I'm curious is there any rule how it should be done correctly or it
> should be handled case by case?

Never "read" such "rule", but IMHO to be sure TLB really cache the new
mapping, flush_dcache_page() logically should be done before kmap().

But I think it's platform dependent.... not sure though....

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux