Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756095AbYBKR7A (ORCPT ); Mon, 11 Feb 2008 12:59:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753668AbYBKR6v (ORCPT ); Mon, 11 Feb 2008 12:58:51 -0500 Received: from cantor2.suse.de ([195.135.220.15]:38366 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752419AbYBKR6u (ORCPT ); Mon, 11 Feb 2008 12:58:50 -0500 From: Andi Kleen Organization: SUSE Linux Products GmbH, Nuernberg, GF: Markus Rex, HRB 16746 (AG Nuernberg) To: "Siddha, Suresh B" Subject: Re: [PATCH] [7/8] CPA: Don't flush caches on CPUs that support self-snoop Date: Mon, 11 Feb 2008 18:58:46 +0100 User-Agent: KMail/1.9.6 Cc: Arjan van de Ven , tglx@linutronix.de, mingo@elte.hu, linux-kernel@vger.kernel.org References: <200802111050.372086035@suse.de> <200802111627.23751.ak@suse.de> <20080211173606.GB21564@linux-os.sc.intel.com> In-Reply-To: <20080211173606.GB21564@linux-os.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802111858.46200.ak@suse.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2027 Lines: 47 On Monday 11 February 2008 18:36:06 Siddha, Suresh B wrote: > On Mon, Feb 11, 2008 at 04:27:23PM +0100, Andi Kleen wrote: > > > > > > That is exactly the situation in pageattr.c. You're saying the manual > > > > is wrong here? > > > > > > I'm saying that we are not following step 2 (marking the pages not present) > > > > Yes that's true. It's one of the design problems of the intent API that makes > > fixing this hard unfortunately. > > BTW, making pages not present is required only while changing the attribute > from WB to WC or WC to WB. I think this step is for avoiding attribute aliasing > for speculative accesses. For UC, we don't have speculative accesses and such we > probably don't need it. Ok that would imply that my patch is ok for all current in tree users at least (none of them ever set WC currently, only UC). It might not be safe for the out of tree WC users though. So it should be ok to apply according to standard policy :) > So WC support through PAT should take care of it. You mean the PAT patch should do something about it? Yes probably, but what? > > (intent API assumes that the caller doesn't fully own the page to change, and > > if you can't control it 100% it is not possible to unmap it temporarily) > > True. Perhaps for WC chages we can assume the ownership? Not assuming owner ship was the main reason why the intent change was originally submitted. I personally never quite understood the rationale for that, but the submitter and the maintainers apparently thought it a valuable thing to have, otherwise the patch would not have been written and included. You'll need to ask them if that has changed now. At least if that requirement was dropped it would be possible to remove quite a lot of code from pageattr.c -Andi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/