Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754545AbbERSHj (ORCPT ); Mon, 18 May 2015 14:07:39 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:34759 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754460AbbERSHg (ORCPT ); Mon, 18 May 2015 14:07:36 -0400 Message-ID: <555A2A62.80309@gentoo.org> Date: Mon, 18 May 2015 14:07:30 -0400 From: Richard Yao User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Kernel development list Subject: Is there anyway to do direct mapped cache on Intel hardware? Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MeBcS27F3JwCdG8ESf1Q3bmEfKa9ShaSd" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2498 Lines: 55 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --MeBcS27F3JwCdG8ESf1Q3bmEfKa9ShaSd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Is there anyway to do direct mapped cache on Intel hardware? Direct mapped cache should allow me to implement software ECC via the low memory / high memory split. It would be slow, but I would prefer to have a slow laptop than one that is vulnerable to bit flips. If direct mapped cache is possible and non-NUMA systems could avoid writing it back/through, I imagine that people could also protect against cold boot attacks by encrypting main memory. This would be also be slow, but the AES instructions that Intel's newer processors are supposed to have should keep the slowdown within some reasonable bound. There might also be applications for using external memory algorithms (e.g. fractal tree indexes) to speed up in-memory operations. I also am not sure if the difference between system memory and cache is big enough to make it a win, but I am sure that is not something that I would want to implement on my laptop in my spare time. If someone knows a way to do direct mapped cache, please share. --MeBcS27F3JwCdG8ESf1Q3bmEfKa9ShaSd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVWipnAAoJECDuEZm+6ExkpMsP/1c/K1pJwT5nv1NcP+Uz2mcS CmLibIIg+HYpkKstB3629SFwDnOjQ2LkeIhB/hA5wsXnCJjeidIYtbEFbgFciV8q r5ShjjEFfjIIPIAjax/lgL+ryO3sk156XD2i1gkx/stm7sClNC0ad6D87xMdd7mc Yypr0YtfRP9m+Cpztn4qCVHR5F2uCftG4G5w5DMg7ZgnrmWA6/IqQnlVkqB7s+Ln mbuXpkZik6PI4qZXxg8872TtU0kcjENB/AzW6GwC0MYaj3LXB00N43+dN145ZLbC U63XJYU273OvK4oh5decNhRS9pmdBb8QHGJfjbnYbQeqj2nk2r7oOQyiJ1Gsa79N Pv48y3pRcprznMNPQ6M9VJ07zluI+IEBohitb1KxubPmmivKxUvfBvsLmhlGknY7 2dOL4HUZwCUwnh+S//UpnkGcdxJolOjco5jay9987jlLnwEpNh5gIP4GxlUl7HW0 6Ly+FzpyGZy6YgMFKuG8zF5hFVd+Vxpgqut8yZYBpNSrPfWWd6CgO6c6R0buIgmU oMc9uEc9DGI88K/f+QcjMul4emhEyL4iBx7ZcwnCUw0BzUKGfotobyfwanufr9b1 S62JWCOzi+O7yGONUiR1GjGdZG2LhXFhS946HdB2UZxCjS1CAieDKBl7ELPqtjvY DwKLVp3amHm4ebomg/0r =mdtB -----END PGP SIGNATURE----- --MeBcS27F3JwCdG8ESf1Q3bmEfKa9ShaSd-- -- 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/