From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753529AbZJUOKS (ORCPT ); Wed, 21 Oct 2009 10:10:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753428AbZJUOKR (ORCPT ); Wed, 21 Oct 2009 10:10:17 -0400 Received: from vpn.id2.novell.com ([195.33.99.129]:4765 "EHLO vpn.id2.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753471AbZJUOKQ convert rfc822-to-8bit (ORCPT ); Wed, 21 Oct 2009 10:10:16 -0400 Message-Id: <4ADF32A0020000780001B20A@vpn.id2.novell.com> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 21 Oct 2009 15:11:12 +0100 From: "Jan Beulich" To: "Thomas Schlichter" Cc: "Jeremy Fitzhardinge" , "Ingo Molnar" , "Robert Hancock" , "Henrique de Moraes Holschuh" , "Suresh Siddha" , "Venkatesh Pallipadi" , "Tejun Heo" , , "Yinghai Lu" , "Thomas Gleixner" , "Arjan van de Ven" , , "Ingo Molnar" , , , "Thomas Hellstrom" , "H. Peter Anvin" Subject: Re: [RFC Patch] use MTRR for write combining if PAT is not available References: <1394846127@web.de> In-Reply-To: <1394846127@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> Thomas Schlichter 21.10.09 15:45 >>> >Ingo Molnar wrote: >> Can we eliminate mtrr_add_unaligned() as Suresh suggested, and still >> make it work on your testbox? > >Yes, I had that in the first place, but Jan suggested to extend it to also >handle non-aligned, non-power-of-two cases: > http://marc.info/?l=linux-kernel&m=125541951529918&w=2 I merely pointed out it wouldn't work for unaligned addresses or sizes passed in. >So if it's OK for Jan, I'll reduce the functionality again and use mtrr_add() >instead. Btw. this simply means to drop mtrr_add_unaligned(), all the other >parts are still required for reference counting and a proper mtrr_del() on file >close. I'm perfectly fine with just handling the aligned case, as long as the code checks that the alignment constraints are met. Jan