Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756633AbZJSPHh (ORCPT ); Mon, 19 Oct 2009 11:07:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756042AbZJSPHg (ORCPT ); Mon, 19 Oct 2009 11:07:36 -0400 Received: from fmmailgate06.web.de ([217.72.192.247]:34938 "EHLO fmmailgate06.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755533AbZJSPHg (ORCPT ); Mon, 19 Oct 2009 11:07:36 -0400 Date: Mon, 19 Oct 2009 17:07:40 +0200 Message-Id: <1392918824@web.de> MIME-Version: 1.0 From: Thomas Schlichter To: Konrad Rzeszutek Wilk Cc: Jan Beulich , Arjan van de Ven , dri-devel@lists.sourceforge.net, Robert Hancock , Henrique de Moraes Holschuh , "H. Peter Anvin" , jbarnes@virtuousgeek.org, Jeremy Fitzhardinge , linux-kernel@vger.kernel.org, Ingo Molnar , Suresh Siddha , Thomas Gleixner , Thomas Hellstrom , Tejun Heo , Venkatesh Pallipadi , x86@kernel.org, Yinghai Lu Subject: =?iso-8859-15?Q?Re:_[RFC_Patch]_use_MTRR_for_write_combining_if_PAT_is?= =?iso-8859-15?Q?_not_available?= Organization: http://freemail.web.de/ X-Provags-Id: V01U2FsdGVkX1+WftxQp2O3ire+UDV6zzSEG3NHYFCU63kRZoWwR2ScwR1kY Q6KH1TJ2V7p+NhQDMBtgpZFCwt4K41v3OiIowXAA9Oti6Qz7aTsJBXZBXQVs Q== Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 787 Lines: 18 Konrad Rzeszutek Wilk wrote: > I am not familiar with libpciaccess, but I was wondering why that library > cannot realize it failed in its endeavour and use other means to accomplish > its goals? The thing is that the mmap() will succeed! Only the memory region will not be set up as write combining when PAT is disabled. So userspace would have to find out it PAT is enabled in kernel and accordingly set up MTRR entries. And currently I don't know of a kernel interface that would tell userspace if PAT is enabled. Kind regards, Thomas -- 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/