Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2999800ybt; Mon, 29 Jun 2020 12:31:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4qx4NDRv2C6Xx2/nft6JGWhUzhZZoR3UfDm7Y62QhURx04Al8MZrqRyl6jwm4ZPbdoP9q X-Received: by 2002:a17:906:d9d9:: with SMTP id qk25mr16092335ejb.448.1593459110685; Mon, 29 Jun 2020 12:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593459110; cv=none; d=google.com; s=arc-20160816; b=D1FUVhBpvh8uvLMOqVq5hlS3bSZnDR/3P8pSwpfoTIp6l2rm9iJHkl5mkzECy3+5Er NG1D+N2XbaO/ETDUX68LqJcfoyUlmam53I9DfFoLvc00+Qbz8ahE98TNgc9OPEKMLc5C JsC0cVNVapHVB+ZgIO2p0tlelyxkzxyl5emEMrpDoFBcp9WF64fcxN9/EFD2Q2HjABE1 vy4U5O9YKdZUt4n7L5JKH1Y7E6MyHZZrAJt3YdYrJ5bu4g/8qyv+yrwKVwKyMOiAKBoZ ruTc0RtntlBmHCO1WrBkl55KHjD6YCT/DTY2EQ9Y1+pUckz8YBueQQt/6+4ob+g5aKOH l7Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=/rozIRZd2Z+z5ejQC/EdCJboYjDdy+vJEupYT4pSKo0=; b=Fos7ntVn+qKM35Aj2eanUUjcdynt/HOxBsy5D0AkCjlT04dqC8M6VMpV4TlIn2/Ehk P6IfxhNEzm3nHUlpf3uK7/d1JxiJ7x1J2XE5iHmGWTxNhImJYtH3LQCtDPMK4fkKtf7R QjnUgQRkFEfd0FBc5szVzfxfzuWyvrPCqboeN6B5ZLQpflVkmMHzNPjf9cLJ7umtEijN umdTpdOzy94uRf4+WMEJaq6pFXn3TjD+EeTOTwGdeNq5EHofyZ3PGjEKhS3V2+ilbIVL wwTPul1YXAGpbIcHAXClunJDFLluzaX4xeufH+BdhE8wYFGP6GU4PalmaJLL2okq10Y5 4klw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="V/hTM7XB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id la26si322674ejb.587.2020.06.29.12.31.27; Mon, 29 Jun 2020 12:31:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="V/hTM7XB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732826AbgF2TaR (ORCPT + 99 others); Mon, 29 Jun 2020 15:30:17 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:25701 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732807AbgF2TaO (ORCPT ); Mon, 29 Jun 2020 15:30:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593459007; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/rozIRZd2Z+z5ejQC/EdCJboYjDdy+vJEupYT4pSKo0=; b=V/hTM7XB50m9Kuc7AcgnYYNGh4Ng3MgmS/LaBBEh0+2dFG8O4oS1UeRcsITjTRKqc4qeTt eHeB033RqlUURYiw4myCfNGX/VNPBxa5FfRHQOflni2f1hLK+cxi3nvwKTMCR0Q+5sDAO9 EMoYa5r0TO1dKQtqMLIvZ9PpozT7iNY= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-292-msZzHqchMRycRMFTAle1qQ-1; Mon, 29 Jun 2020 09:28:07 -0400 X-MC-Unique: msZzHqchMRycRMFTAle1qQ-1 Received: by mail-qv1-f70.google.com with SMTP id a12so6120174qvt.22 for ; Mon, 29 Jun 2020 06:28:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=/rozIRZd2Z+z5ejQC/EdCJboYjDdy+vJEupYT4pSKo0=; b=SI6zwWqwO7Lxip1jAvaO1GlOZNk30zQE1O/mTeED+mvw0TIYUSrewuoxrxQ8xnhToW PR14BLDDa+dDBbl1GUP8s88brzZYV3HdK1WeEyl0ydCspaipn6vM1Gu4Z2UHyvmXRD2F Epust4ksYJ54wWx4NqtsBHCgqbNTbb2DHKRbDsAInlHSA7TDn/JbB3URB0opOFUPH5za BKQtIb6moDjNojLl8rRZRaO2XwthTYJjqLRpLo5SdfPz8CVCeFIR1PV+7EuzG4eysXBr 61BtujSuInBMNfXrlvUqed6J/fWJSmfZ/ZNZ04pqRkRgqVEZMVRMRtcUjXSCuEV442pb dOwA== X-Gm-Message-State: AOAM531arp6/thp9Wb4saSiVuFXHfEOBwXAjpVE51HLLcl6z+0LpnKAP RbxJ7ktWEjHBUBZp//KFAD8UCLfyS+LqF5jSYEXZjCy0bnotX7sl4LW9HzMwfUHjzHmQ8QlMnwn OC79xKQ0V+h1JK3JdPULlHeeH X-Received: by 2002:a0c:b246:: with SMTP id k6mr15065267qve.146.1593437287342; Mon, 29 Jun 2020 06:28:07 -0700 (PDT) X-Received: by 2002:a0c:b246:: with SMTP id k6mr15065252qve.146.1593437287140; Mon, 29 Jun 2020 06:28:07 -0700 (PDT) Received: from trix.remote.csb (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id x13sm17008095qts.57.2020.06.29.06.28.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 29 Jun 2020 06:28:06 -0700 (PDT) Subject: Re: [PATCH] fpga: dfl: improve configuration of dfl pci devices To: "Wu, Hao" , "Xu, Yilun" Cc: "mdf@kernel.org" , "linux-fpga@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "matthew.gerlach@linux.intel.com" References: <20200628151813.7679-1-trix@redhat.com> <20200629021924.GB2620@yilunxu-OptiPlex-7050> From: Tom Rix Message-ID: <26b7c920-7b9f-b753-4a49-258e09b771fa@redhat.com> Date: Mon, 29 Jun 2020 06:28:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/28/20 8:12 PM, Wu, Hao wrote: >> -----Original Message----- >> From: linux-fpga-owner@vger.kernel.org >> On Behalf Of Xu Yilun >> Sent: Monday, June 29, 2020 10:19 AM >> To: trix@redhat.com >> Cc: mdf@kernel.org; linux-fpga@vger.kernel.org; linux- >> kernel@vger.kernel.org; Wu, Hao ; >> matthew.gerlach@linux.intel.com >> Subject: Re: [PATCH] fpga: dfl: improve configuration of dfl pci devices >> >> I think maybe we don't have to select them all. It is now possible for >> FPGA DFL boards to work without FME or AFU, providing limited >> functionality. It is possible designers trim the bitstream for their >> purpose, and also need a smaller driver set. >> > Yes, we hope that this dfl-pci could be a common module shared by > different cards. Some device doesn't have FME, e.g. some VF device > with AFU only, some device has FME, but no PR support, and in the > future, it's possible to add new modules, or something replacing AFU > or FME, so we don't have to select all here. > >> I think we may add "default FPGA_DFL" for FPGA_DFL_FME, >> FPGA_DFL_FME_MGR and others to make life easier. > It's hard to say it's easier for everybody, e.g. I am a user of N3000, but > I have to unselect the PR modules, as they are default Yes as proposed? > Maybe it's better to let user select what they want, unless we find > something really common needed under DFL framework. I get your point about n3000, but that card is not currently supported in the public. Currently there is really only pac10, the 0x9c4 device.  Once n3000 (and d5005) is out, it will have several sub devices that will also so need to be manually configured.  While a developer of the n3000 will know which subdevices are needed, someone just building the kernel will not.  So would expect there to be something like CONFIG_FPGA_DFL_N3000 select CONFIG_DFL_PCI select CONFIG_DFL_SUBDEV_1 .. On PF vs FP, yes only afu parts are needed.  But i doubt anyone builds a VF specific kernel. And if folks wanted to not use the fme parts they would not have to load it's module at run time. I would like a top level config what auto selects all of the submodules needed based on the card. I think maybe that is CONFIG_FPGA_DFL_PAC10. so we will be ready for CONFIG_FPGA_DFL_N3000 and CONFIG_FPGA_DFL_D5005 and what ever comes later. Tom > Hao >