Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754431AbbDXNbd (ORCPT ); Fri, 24 Apr 2015 09:31:33 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:49296 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750776AbbDXNbb (ORCPT ); Fri, 24 Apr 2015 09:31:31 -0400 Date: Fri, 24 Apr 2015 15:31:24 +0200 From: Pavel Machek To: Arnd Bergmann Cc: Tomi Valkeinen , Geert Uytterhoeven , 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" , shc_work@mail.ru, linux@arm.linux.org.uk, hsweeten@visionengravers.com, Archit Taneja Subject: Re: simple framebuffer slower by factor of 20, on socfpga (arm) platform Message-ID: <20150424133124.GB11729@amd> References: <20150407121247.GA29497@amd> <552660C7.4020805@ti.com> <552663C2.70308@ti.com> <2137270.OOdtDiT2H4@wuerfel> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2137270.OOdtDiT2H4@wuerfel> 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: 946 Lines: 22 > > The difference is probably caused by memcpy() vs memcpy_fromio(). The > > comment above memcpy_fromio() says "This needs to be optimized". I think > > generally speaking memcpy_fromio() is correct for a framebuffer. > > > > That said, if the fb is in RAM, and is only written by the CPU, I think > > a normal memcpy() for fb_memcpy_fromfb() should be fine... > > Could memcpy() cause alignment traps here if the fb pointer is unaligned > and uncached? Original commit did not comment on any failure, so I expect that is not a problem here... 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/