Re: [RFC Patch] use MTRR for write combining if PAT is not available

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Beulich
Date: Tuesday, October 13, 2009 - 12:34 am

>>> Thomas Schlichter <thomas.schlichter@web.de> 12.10.09 20:32 >>>

This won't work if phys_addr or size aren't page aligned, or if size isn't
a power of two.


Similarly, this requires numpages to be a power of two.


I think user mode code handles this by splitting the request and trying to
establish as many entries as possible (and those as big as possible).

Also, in all cases you pass 'false' for the 'increment' parameter, in order
to avoid having to tear down the established entries. While this may be
reasonable for kernel initiated mappings, I don't think that's acceptable
for such originating from user mode.

Jan

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC Patch] use MTRR for write combining if PAT is not ..., Jan Beulich, (Tue Oct 13, 12:34 am)
Re: [RFC Patch] use MTRR for write combining if PAT is not ..., Thomas Schlichter, (Tue Oct 13, 2:29 pm)
Re: [RFC Patch] use MTRR for write combining if PAT is not ..., Thomas Schlichter, (Wed Oct 14, 12:14 pm)
Re: [RFC Patch] use MTRR for write combining if PAT is not ..., Thomas Schlichter, (Sat Oct 17, 12:48 pm)
Re: [RFC Patch] use MTRR for write combining if PAT is not ..., Konrad Rzeszutek Wilk, (Mon Oct 19, 6:36 am)