Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932148AbZJSPIC (ORCPT ); Mon, 19 Oct 2009 11:08:02 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756529AbZJSPIB (ORCPT ); Mon, 19 Oct 2009 11:08:01 -0400 Received: from fmmailgate07.web.de ([217.72.192.248]:42640 "EHLO fmmailgate07.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756042AbZJSPIA (ORCPT ); Mon, 19 Oct 2009 11:08:00 -0400 Date: Mon, 19 Oct 2009 16:47:10 +0200 Message-Id: <1392884759@web.de> MIME-Version: 1.0 From: Thomas Schlichter To: Jan Beulich Cc: 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: V01U2FsdGVkX19ZlUd4Y/03uBjN7eVmh9lQeiPdX0M2co2aMLkt0XLynFxgi UwGbannFbSR1yIRmxm0SlZO2Cel47FPi8Bjanrktr2Ntf2EIoEajUwyHfUDd g== 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: 1710 Lines: 45 Jan Beulich wrote: > >>> Thomas Schlichter 17.10.09 21:48 >>> > >What do you think about these patches? > > Functionality-wise this looks fine to me; whether the core sysfs changes > are acceptable I can't judge, though. OK, who can? Or shall I simply ask get_maintainer.pl again? > However, I would recommend folding the last two arguments of > mtrr_add_unaligned(), i.e. use mtrr_usage != NULL as the increment > argument passed to mtrr_add(). Good idea, I will do so this evening... > And patches 5 and 6 would apparently not build right now, as they're > failing to pass the new 5th argument to mtrr_add_unaligned(). *Grml* you are of course right. But I am not sure if these both patches are a goot idea at all. > Also, why do you add x86-specific code to drivers/pci-sysfs.c when the > function called there (pci_mmap_page_range()) already is arch-specific? > Moving your addition there would also allow covering the related > (legacy?) procfs based functionality... pci_release() could also become > arch-specific, with a fall-back definition to NULL. You are right, I should do that... > Additionally, I would suggest making those code portions depend on > CONFIG_X86_MTRR rather than CONFIG_X86, so that you don't > needlessly (try to) allocate the mtrr_usage vector. Good idea, I will do so. Thank you very much for your feedback, I'll hopefully come up with an even better version tonight... 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/