From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752924AbdBOXHM (ORCPT ); Wed, 15 Feb 2017 18:07:12 -0500 Received: from quartz.orcorp.ca ([184.70.90.242]:45073 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752353AbdBOXHK (ORCPT ); Wed, 15 Feb 2017 18:07:10 -0500 Date: Wed, 15 Feb 2017 16:07:00 -0700 From: Jason Gunthorpe To: Alan Tull Cc: Moritz Fischer , linux-kernel , linux-fpga@vger.kernel.org Subject: Re: [RFC 7/8] fpga-region: add sysfs interface Message-ID: <20170215230700.GA17067@obsidianresearch.com> References: <1487175261-7051-1-git-send-email-atull@kernel.org> <1487175261-7051-8-git-send-email-atull@kernel.org> <20170215172157.GA3317@obsidianresearch.com> <20170215180612.GB3317@obsidianresearch.com> <20170215194918.GA5531@obsidianresearch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.156 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 15, 2017 at 04:49:58PM -0600, Alan Tull wrote: > So this script takes the bitfile and its build logs as input, parses > the build logs for image information, does some manipulations on bit > order as needed, and adds the header. So it's really doing (at least) > two things: adding header info and doing bitorder changes where needed > so that the kernel won't need to do it. Yes. This mangling is basically mandatory for Zynq due to how DevCfg works, what Xilinx tools emit, and the desire to avoid copying the bitfile. Other cases are less essential, eg a gpio driver could do the bit-reversal internally. We did the swap when writing the image because the speed up was very noticable when the programming hardware was a < 100MHz CPU. It would be trivial to add Altera support, it really just needs a similar build log parser for Altera's format to extract similar information. Jason