Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425016AbdDUT1e (ORCPT ); Fri, 21 Apr 2017 15:27:34 -0400 Received: from mga05.intel.com ([192.55.52.43]:1201 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162265AbdDUT10 (ORCPT ); Fri, 21 Apr 2017 15:27:26 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,230,1488873600"; d="scan'208";a="959722721" From: yi1.li@linux.intel.com To: gregkh@linuxfoundation.org, wagi@monom.org, dwmw2@infradead.org, rafal@milecki.pl, arend.vanspriel@broadcom.com, rjw@rjwysocki.net, moritz.fischer@ettus.com, pmladek@suse.com, johannes.berg@intel.com, emmanuel.grumbach@intel.com, luciano.coelho@intel.com, kvalo@codeaurora.org, luto@kernel.org, takahiro.akashi@linaro.org, dhowells@redhat.com, pjones@redhat.com, mcgrof@kernel.org, atull@kernel.org Cc: linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, Yi Li Subject: [PATCHv1 0/2] Add streaming support for base firmware and fpga-mgr Date: Fri, 21 Apr 2017 14:22:20 -0500 Message-Id: <1492802542-1408-1-git-send-email-yi1.li@linux.intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1102 Lines: 17 From: Yi Li As the FPGA hardware advances, the bitstream image size grows. It could be an issue for kernel to allocate big buffers to load the whole firmware file. Here is an attempt to load the bitstream file into 4KB buffer and program the FPGA in a streaming mode. The streaming support is added in the driver_data_request_sync API on Luis R. Rodriguez's v6 branch. https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/log/?h=20170329-driver-data-v2-try3, which is sent to this list for review on March/29 [PATCH v6 0/5] firmware: add driver data API. It should not be a performance hit for FPGA programing since the majority of time spend is with the FPGA CvP/PR-IP interface. Yi Li (2): firmware: Add streaming support fpga-mgr: add streaming support drivers/base/firmware_class.c | 119 +++++++++++++++++++++++++++++++++++++++++- drivers/fpga/fpga-mgr.c | 96 ++++++++++++++++++++++++++++++++++ include/linux/driver_data.h | 13 +++++ include/linux/fpga/fpga-mgr.h | 4 ++ 4 files changed, 231 insertions(+), 1 deletion(-) -- 2.7.4