Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4308615rwn; Sun, 11 Sep 2022 09:11:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Fzhns0qqHjrkSY68IsxrNfhc4q2q2IE3q3mSnz4MEAn3Qfgai344Kq7KeaBn0Lnl03Ua/ X-Received: by 2002:a63:4183:0:b0:41b:f6d3:8825 with SMTP id o125-20020a634183000000b0041bf6d38825mr20310800pga.193.1662912693688; Sun, 11 Sep 2022 09:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662912693; cv=none; d=google.com; s=arc-20160816; b=JFpmIFhFTYeEUEUKPlw+3iOm/rEihWlG2Z0DwBLBOekGLU1P1MkDZXY8YIJ0L5z94B G2waOYWHQIA7RgjPoIQVLElvkHDdTPZcUijugjtv5PGcGoZkZXf14zH0nogv9jAIwKs7 8lYfdEmzNl2KsjIRiFWSsN77llc63GXCISOuR1S+Xl0oA/JIqIkE7OdcmP4YJPdvDk9I SdHjMarYnNU07dyS2f//XrhlSwoxlAgnTS8bAfToj58ncphtxxzJ7IkDGfKsJejpNrvD nkHhFrc9UsuH3/tuKp+9HlluEymsyNSItzF9X4QKPpbP6hrLdX+r6ccrErjx2eVGojS/ S7hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=pNrIqs7VP/NOmKaI8npJHsro1OWj9J+yBdaAnA/qywc=; b=LdPEtOCNPMObltspPF40PT5H6Ea+wrqbSOkMz5//8DMSzm7yqSamqokMF7m0voLgEL 0mn8SmKbcNpckIYuwhWecpkkvadgFtYv75+YJz79AVyTa02W8dlpfoRCzvzGasvw2X0I M9t5KmD7S+q41tE+fxpjgl9LSdJfFHGpDH0MUishDuOJ8r/7/mn4GXsvNF5Ur6fF70md w5FWnP6PGIhKYaqQJnInMJtPofyO1+3I5EUelpcatee4hB+Er9eD0Mi+ulFMMxaLjOU+ IZpQSXi90X/kCFaW1e3N1Cux7EWlEnZivRljRg2MIdaRQvuK3lCoMOMlpycBnpTAW7hs E5HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mx2bYIkM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ja4-20020a170902efc400b0017564dac8edsi6482129plb.167.2022.09.11.09.11.20; Sun, 11 Sep 2022 09:11:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mx2bYIkM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229615AbiIKQGh (ORCPT + 99 others); Sun, 11 Sep 2022 12:06:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbiIKQGf (ORCPT ); Sun, 11 Sep 2022 12:06:35 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A16A82497E; Sun, 11 Sep 2022 09:06:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662912395; x=1694448395; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=+N93ngh3HO0DUnK769NJCjP/Lgd0Phq1/ZPbwKIbUvs=; b=mx2bYIkM5SqVFjiUNp7WI9hj3pCAZW6/hQRH96LzhACSuD4yzfpKnjN+ 0ZV8uPiB95V4y5hk/qAXeq/dTVua/nsQa9I2qt476voMJ6rWhAmBrODDF ZPxGxAmMIdsoppEl3JcXDZx94bAAD7BdNH5zrj8OsRYCKBokfXfaUEXuh Jg3FmmzboPiqxZyD/HheELm3GDycUEousIK4IKufP+UolDTzNcXnjT1aQ Zlwev8Z18Xkd0U6ViMCObhKbHPSPY/QsF6aDiPxVQCO5GJZBRUthsJP21 Gipb5Uemly9yfWk6kRNSbDZCMd+gW7UkE9qUXzDwiqNgmnpTHFoJ8uAlc A==; X-IronPort-AV: E=McAfee;i="6500,9779,10467"; a="299072976" X-IronPort-AV: E=Sophos;i="5.93,307,1654585200"; d="scan'208";a="299072976" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2022 09:06:33 -0700 X-IronPort-AV: E=Sophos;i="5.93,307,1654585200"; d="scan'208";a="684182310" Received: from rhweight-wrk1.ra.intel.com ([137.102.106.139]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Sep 2022 09:06:32 -0700 Date: Sun, 11 Sep 2022 09:06:52 -0700 (PDT) From: matthew.gerlach@linux.intel.com X-X-Sender: mgerlach@rhweight-WRK1 To: Xu Yilun cc: hao.wu@intel.com, russell.h.weight@intel.com, basheer.ahmed.muddebihal@intel.com, trix@redhat.com, mdf@kernel.org, linux-fpga@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tianfei.zhang@intel.com, corbet@lwn.net, gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, jirislaby@kernel.org, geert+renesas@glider.be, andriy.shevchenko@linux.intel.com, niklas.soderlund+renesas@ragnatech.se, phil.edworthy@renesas.com, macro@orcam.me.uk, johan@kernel.org, lukas@wunner.de Subject: Re: [PATCH v1 1/5] Documentation: fpga: dfl: Add documentation for DFHv1 In-Reply-To: Message-ID: References: <20220906190426.3139760-1-matthew.gerlach@linux.intel.com> <20220906190426.3139760-2-matthew.gerlach@linux.intel.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 11 Sep 2022, Xu Yilun wrote: > On 2022-09-06 at 12:04:22 -0700, matthew.gerlach@linux.intel.com wrote: >> From: Matthew Gerlach >> >> Add documentation describing the extentions provided by Version >> 1 of the Device Feature Header (DFHv1). >> >> Signed-off-by: Matthew Gerlach >> --- >> Documentation/fpga/dfl.rst | 24 ++++++++++++++++++++++++ >> 1 file changed, 24 insertions(+) >> >> diff --git a/Documentation/fpga/dfl.rst b/Documentation/fpga/dfl.rst >> index 15b670926084..31699b89781e 100644 >> --- a/Documentation/fpga/dfl.rst >> +++ b/Documentation/fpga/dfl.rst >> @@ -561,6 +561,30 @@ new DFL feature via UIO direct access, its feature id should be added to the >> driver's id_table. >> >> >> +Extending the Device Feature Header - DFHv1 >> +=========================================== >> +The current 8 bytes of the Device Feature Header, hereafter referred to as >> +to DFHv0, provide very little opportunity for the hardware to describe itself >> +to software. Version 1 of the Device Feature Header (DFHv1) is being introduced >> +to provide increased flexibility and extensibility to hardware designs using >> +Device Feature Lists. The list below describes some of the goals behind the >> +changes in DFHv1: >> + >> +* Provide a standardized mechanism for features to describe >> + parameters/capabilities to software. >> +* Standardize the use of a GUID for all DFHv1 types. >> +* Decouple the location of the DFH from the register space of the feature itself. >> + >> +Modeled after PCI Capabilities, DFHv1 Parameters provide a mechanism to associate >> +a list of parameter values to a particular feature. >> + >> +With DFHv0, not all features types contained a GUID. DFHv1 makes the GUILD standard >> +across all types. >> + >> +With DFHv0, the register map of a given feature is located immediately following >> +the DFHv0 in the memory space. With DFHv1, the location of the feature register >> +map can be specified as an offset to the DFHv1 or as an absolute address. > > Could you make a table or diagram to describe the data structure layout of DFHv1 > extention. > > Thanks, > Yilun I was hoping that the actual macro definitions would be sufficient, but I will look into making a table. Matthew Gerlach > >> + >> Open discussion >> =============== >> FME driver exports one ioctl (DFL_FPGA_FME_PORT_PR) for partial reconfiguration >> -- >> 2.25.1 >> >