From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joshua Kinard Subject: Re: [PATCH v4 0/2] mm/highmem: make kmap cache coloring aware Date: Mon, 25 Aug 2014 19:55:53 -0400 Message-ID: <53FBCD09.1050003@gentoo.org> References: <1406941899-19932-1-git-send-email-jcmvbkbc@gmail.com> <20140825171600.GH25892@linux-mips.org> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140825171600.GH25892@linux-mips.org> Sender: owner-linux-mm@kvack.org To: Ralf Baechle , Max Filippov Cc: linux-xtensa@linux-xtensa.org, Chris Zankel , Marc Gauthier , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, David Rientjes , Andrew Morton , Leonid Yegoshin , Steven Hill List-Id: linux-arch.vger.kernel.org On 08/25/2014 13:16, Ralf Baechle wrote: > On Sat, Aug 02, 2014 at 05:11:37AM +0400, Max Filippov wrote: > >> this series adds mapping color control to the generic kmap code, allowing >> architectures with aliasing VIPT cache to use high memory. There's also >> use example of this new interface by xtensa. > > I haven't actually ported this to MIPS but it certainly appears to be > the right framework to get highmem aliases handled on MIPS, too. > > Though I still consider increasing PAGE_SIZE to 16k the preferable > solution because it will entirly do away with cache aliases. Won't setting PAGE_SIZE to 16k break some existing userlands (o32)? I use a 4k PAGE_SIZE because the last few times I've tried 16k or 64k, init won't load (SIGSEGVs or such, which panicks the kernel). -- Joshua Kinard Gentoo/MIPS kumba@gentoo.org 4096R/D25D95E3 2011-03-28 "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between." --Emperor Turhan, Centauri Republic -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from qmta04.westchester.pa.mail.comcast.net ([76.96.62.40]:35919 "EHLO qmta04.westchester.pa.mail.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756677AbaHZACD (ORCPT ); Mon, 25 Aug 2014 20:02:03 -0400 Message-ID: <53FBCD09.1050003@gentoo.org> Date: Mon, 25 Aug 2014 19:55:53 -0400 From: Joshua Kinard MIME-Version: 1.0 Subject: Re: [PATCH v4 0/2] mm/highmem: make kmap cache coloring aware References: <1406941899-19932-1-git-send-email-jcmvbkbc@gmail.com> <20140825171600.GH25892@linux-mips.org> In-Reply-To: <20140825171600.GH25892@linux-mips.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Ralf Baechle , Max Filippov Cc: linux-xtensa@linux-xtensa.org, Chris Zankel , Marc Gauthier , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, David Rientjes , Andrew Morton , Leonid Yegoshin , Steven Hill Message-ID: <20140825235553.eUs40Z3a6lU3lZBuB8trFLzzH7UTGy_zjc9S-0nfeMw@z> On 08/25/2014 13:16, Ralf Baechle wrote: > On Sat, Aug 02, 2014 at 05:11:37AM +0400, Max Filippov wrote: > >> this series adds mapping color control to the generic kmap code, allowing >> architectures with aliasing VIPT cache to use high memory. There's also >> use example of this new interface by xtensa. > > I haven't actually ported this to MIPS but it certainly appears to be > the right framework to get highmem aliases handled on MIPS, too. > > Though I still consider increasing PAGE_SIZE to 16k the preferable > solution because it will entirly do away with cache aliases. Won't setting PAGE_SIZE to 16k break some existing userlands (o32)? I use a 4k PAGE_SIZE because the last few times I've tried 16k or 64k, init won't load (SIGSEGVs or such, which panicks the kernel). -- Joshua Kinard Gentoo/MIPS kumba@gentoo.org 4096R/D25D95E3 2011-03-28 "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between." --Emperor Turhan, Centauri Republic