Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752300Ab1BFLPi (ORCPT ); Sun, 6 Feb 2011 06:15:38 -0500 Received: from fmmailgate01.web.de ([217.72.192.221]:50245 "EHLO fmmailgate01.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923Ab1BFLPg (ORCPT ); Sun, 6 Feb 2011 06:15:36 -0500 From: Thomas Schlichter To: Paul Mundt Subject: Re: [PATCH] uvesafb,vesafb: create write-combining or write-back PAT entries Date: Sun, 6 Feb 2011 12:02:05 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.35-25-generic-pae; KDE/4.5.5; i686; ; ) Cc: Michal Januszewski , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <201011271437.38126.thomas.schlichter@web.de> <20101130061051.GD17114@linux-sh.org> In-Reply-To: <20101130061051.GD17114@linux-sh.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart8479254.T2lzAKVkOP"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201102061202.09503.thomas.schlichter@web.de> X-Provags-ID: V01U2FsdGVkX1/Bp+fuL5DvnOACtt2B2RBTkg9obnSILk2FlmEO 9FePzN+KvbssjgOEkWzQTx02r7Xr2kuo9ij4HgWWL0D3zxpbJq o68tlfZ0+w3rHMrI00NA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2451 Lines: 64 --nextPart8479254.T2lzAKVkOP Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sorry for answering this late, unfortunately I was quite busy with my daily= =20 work... Am Dienstag 30 November 2010, um 07:10:51 schrieb Paul Mundt: > uvesafb presently has no special architecture dependencies, but > ioremap_wc() is not as of yet a wholly generic interface. Some > architectures that don't set ARCH_HAS_IOREMAP_WC get it by virtue of the > asm-generic/iomap.h include, and most of the nommu architectures will > stub it in via asm-generic/io.h, but this still leaves quite a long list > of platforms that don't handle it at all. >=20 > Your options at this point are either to establish ioremap_wc() as a > generic API, and layer this patch on top of that, or rework > uvesafb_init_mtrr() to do the actual broken-out remapping and rework it > in to something like a uvesafb_remap(), where you bury the MTRR details > under CONFIG_MTRR. >=20 > While there's probably value in exposing ioremap_wc() as a generic > interface, you're never going to hit any of the non-default ioremap() > calls on platforms lacking MTRRs anyways, so special-casing it is ok. Thank you for finding that problem and showing possibilities for fixing it.= I=20 prepared 3 patches, where the first essentially is my old patch with specia= l- casing via ifdef CONFIG_X86. The second patch establishes ioremap_cache() a= nd=20 ioremap_wc() for all architectures, and the third patch removed the special- casing from uvesafb. So the first patch can stand on its own and hopefully can be merged upstrea= m.=20 The third patch needs the second one, which may be merged for unifying=20 purposes. But as these are mor cleanup-patches, they are not that important= =20 for me. Best regards, Thomas Schlichter --nextPart8479254.T2lzAKVkOP Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAk1Of60ACgkQYAiN+WRIZzTmTwCgmkXxrMFyHBH7SZEoKuaWdoOL 0igAoI0ZvOlJw4EKfhpJXdaDvojUCjir =c5J2 -----END PGP SIGNATURE----- --nextPart8479254.T2lzAKVkOP-- -- 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/