Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932619AbbELIw7 (ORCPT ); Tue, 12 May 2015 04:52:59 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:52352 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932189AbbELIw4 (ORCPT ); Tue, 12 May 2015 04:52:56 -0400 Date: Tue, 12 May 2015 10:52:53 +0200 From: Pavel Machek To: Russell King - ARM Linux Cc: Nicolas Pitre , Geert Uytterhoeven , Tomi Valkeinen , Archit Taneja , Marek Vasut , kernel list , Dinh Nguyen , Jean-Christophe PLAGNIOL-VILLARD , Grant Likely , Rob Herring , Jingoo Han , Rob Clark , Linux Fbdev development list , "devicetree@vger.kernel.org" , Alexander Shiyan , H Hartley Sweeten Subject: Re: simple framebuffer slower by factor of 20, on socfpga (arm) platform Message-ID: <20150512085253.GA4606@amd> References: <20150409110634.GA27407@amd> <552660C7.4020805@ti.com> <552663C2.70308@ti.com> <55277650.8070607@codeaurora.org> <20150424132923.GA11729@amd> <553A47D3.2070107@ti.com> <20150428134848.GC12732@n2100.arm.linux.org.uk> <20150506104504.GM2067@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150506104504.GM2067@n2100.arm.linux.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2091 Lines: 50 On Wed 2015-05-06 11:45:04, Russell King - ARM Linux wrote: > On Tue, Apr 28, 2015 at 11:28:53AM -0400, Nicolas Pitre wrote: > > On Tue, 28 Apr 2015, Russell King - ARM Linux wrote: > > > > > On Fri, Apr 24, 2015 at 03:46:56PM +0200, Geert Uytterhoeven wrote: > > > > So please optimize ARM's _memcpy_fromio(), _memcpy_toio(), and _memset_io(). > > > > That will benefit other drivers on ARM, too. > > > > > > That's not going to happen. > > > > > > I've had a patch which does that, but people are concerned that it changes > > > the behaviour of the functions by changing the access size, which could > > > cause regressions. It seems people are far too worried about that to even > > > consider trying. :( > > > > What about making the optimized implementation available via kconfig? > > I'd prefer not to. My personal feeling is to put the patch in and just be > done with it - these functions are supposed to be used on IO areas which > don't care about access size (in other words, are memory-like rather than > being register-like.) Here's the rather old patch: > > From: Russell King > Subject: [PATCH] ARM: optimize memset_io()/memcpy_fromio()/memcpy_toio() > > If we are building for a LE platform, and we haven't overriden the > MMIO ops, then we can optimize the mem*io operations using the > standard string functions. > > Signed-off-by: Russell King Tested-by: Pavel Machek Acked-by: Pavel Machek Works for me, framebuffer performance is back in "too fast to measure" range. When this is merged, should 981409b25e2a99409b26daa67293ca1cfd5ea0a0 be reverted in -stable? Thanks, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- 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/