Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750986AbbLDFW7 (ORCPT ); Fri, 4 Dec 2015 00:22:59 -0500 Received: from mail-qg0-f66.google.com ([209.85.192.66]:33255 "EHLO mail-qg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750781AbbLDFW5 (ORCPT ); Fri, 4 Dec 2015 00:22:57 -0500 MIME-Version: 1.0 In-Reply-To: References: <041d7ca272ef9499fab630294e3395110b3e31ac.1370354549.git.michal.simek@xilinx.com> <20130604173210.GL31367@sirena.org.uk> <93E0CE98-FF69-46EE-A45F-C5C75A0673C4@gmail.com> Date: Fri, 4 Dec 2015 10:52:56 +0530 Message-ID: Subject: Re: [PATCH 1/3] spi: spi-xilinx: Remove ISR race condition From: Shubhrajyoti Datta To: Jean-Francois Dagenais Cc: Mark Brown , Michal Simek , linux-kernel@vger.kernel.org, Michal Simek , Peter Crosthwaite , Peter Crosthwaite , Grant Likely , spi-devel-general@lists.sourceforge.net, Thomas Gleixner Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1007 Lines: 32 > >> >> ============= >> spi: xilinx - minimize iomem reads >> >> If this IP core is accessed through bridges like PCI-e, reads are rather >> costly. Doing many reads or read-modify-writes is thus long and strenuous >> on the CPU (active waiting). >> >> The transfer workflow of this driver allows some assumptions to be made and >> exploited to minimize reads as much as possible. >> >> These two assumptions are made: >> - since we are in control of the CR register, cache it so we don't have to >> read it all the time to modify it. > > Makes sense. I have made an attempt at it can you check if you get any performance improvemets on your setup. http://www.spinics.net/lists/linux-spi/msg05963.html Thanks, Shubhrajyoti -- 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/