Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp962069rwb; Tue, 27 Sep 2022 06:50:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4PLAFfvzraDe/+3mqW4D7EnBRaKmtI6xt7liqh+2tDNakgFFD73RQw+4RSQOg3WqPpUbB6 X-Received: by 2002:a63:6581:0:b0:434:9482:c243 with SMTP id z123-20020a636581000000b004349482c243mr24434125pgb.448.1664286648672; Tue, 27 Sep 2022 06:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664286648; cv=none; d=google.com; s=arc-20160816; b=qdZz1k3CE03f1g9uS2mjgvF7xtHgaTZZAaSCnfW7inLaakLrSgJi5g/CsiwzaQBe8b 90uRPz3q3P1wR/O/iu1V5uMXHIREJyFv20BGpx6cxbxJvzvSIqKhX1zIbnTYRnTxl9TM /7+xston2qDEbr5oyE9GzHrdcudKiVPiKesJiswc4uSDuN72yDrutAdBzGXjNT5YpRtc 69NrHOUWSEyEX/ZV7T8EdPSX79i+yp0QSWmQFYZSUgiNsAJALhn27tn/0IY6QYj75Lyk 0jJ6nUgkHsy7mxGA8xnXfvTRzsXZMXK9JRBOPMfx56XkfBx6HhMAafo7YDfyN7L3IRuy zUww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=1Ic0JdQlxKGR51s0tI1mRy/nvUH0y0VArtJgZt+/U/A=; b=zuIKpPC8mgzIT8SxA+i4JsWGFerBRcZotx6o3rBYbZj4pKwsApcPg6Kzq197QGT823 xQhYh60RKDXSpCVqfl19PMgbZeehdiJl8qqE92NzUllD7tK9YCHxFO12VVv5ymh9TqEn dsethfngpA6fGkoQopKmZtYfCYyh4S61kHgHDIvejkjcPftLSHh4Apj4Av6wF4ttPtWA mXuzkY+dEQNvZXGTUGUw+N6+yhfW6LrX8Eu6f7i6I1nGvyZZImw+Xx5NDxBmZsL6zoFg 3E3yASv79vzePv2e831yDcp3We+xp4a0fu4xZ0S4Rz/hS4k9gB4uR4CCzNzmv3XnyObT 88ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="chr/NFCR"; 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 s14-20020a17090302ce00b001788298484csi2000566plk.13.2022.09.27.06.50.37; Tue, 27 Sep 2022 06:50:48 -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="chr/NFCR"; 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 S231945AbiI0Myf (ORCPT + 99 others); Tue, 27 Sep 2022 08:54:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231727AbiI0My1 (ORCPT ); Tue, 27 Sep 2022 08:54:27 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ABB8E118D; Tue, 27 Sep 2022 05:54:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664283266; x=1695819266; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=Flh/QIQI4J2i9KB5PdCsdOmNeR/PhgABr6J+CVo/0qg=; b=chr/NFCRW2I0L0NnBbfPuwcHpkdg9QyBCVcpTrzdM2HvzL2RtUC6lFc0 dRNiaYfl2U1/XiDsx85JEfFADlG+w+VZZcTMq20ol8A+25YgPmt3dzhDp /F1dgA1Obb36s5W6IdwOSc7vAbfk72uB+Bhpjau3HpK5mA3fJVzAY0hXC VlEKKTjopmvmmkvwGhrDoJ5hWlEvkFNeqzrkjERFmYiPP7TutKTYwlS75 yW3m5wTZC1IeDHk6phbmxyzBPPKhspsSkzXLPelncEeIG9Mip30zcA1Ul cZGj0xt/lljbX3fTMxOERHFnlzk5/0WqNCye/sDcz98uQ4dBWsEajQTkX A==; X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="284433545" X-IronPort-AV: E=Sophos;i="5.93,349,1654585200"; d="scan'208";a="284433545" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 05:54:25 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10483"; a="866558230" X-IronPort-AV: E=Sophos;i="5.93,349,1654585200"; d="scan'208";a="866558230" Received: from aksaxena-mobl2.ger.corp.intel.com ([10.252.60.19]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Sep 2022 05:54:18 -0700 Date: Tue, 27 Sep 2022 15:54:16 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: matthew.gerlach@linux.intel.com cc: hao.wu@intel.com, yilun.xu@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, LKML , tianfei.zhang@intel.com, corbet@lwn.net, Greg Kroah-Hartman , linux-serial , Jiri Slaby , geert+renesas@glider.be, Andy Shevchenko , niklas.soderlund+renesas@ragnatech.se, phil.edworthy@renesas.com, macro@orcam.me.uk, johan@kernel.org, Lukas Wunner Subject: Re: [PATCH v2 1/6] Documentation: fpga: dfl: Add documentation for DFHv1 In-Reply-To: Message-ID: References: <20220923121745.129167-1-matthew.gerlach@linux.intel.com> <20220923121745.129167-2-matthew.gerlach@linux.intel.com> <40e867ec-c7-66f-9db9-94f6132d587e@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-962032008-1664283266=:2334" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-962032008-1664283266=:2334 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Tue, 27 Sep 2022, matthew.gerlach@linux.intel.com wrote: > > > On Fri, 23 Sep 2022, Ilpo J?rvinen wrote: > > > On Fri, 23 Sep 2022, matthew.gerlach@linux.intel.com wrote: > > > > > From: Matthew Gerlach > > > > > > Add documentation describing the extensions provided by Version > > > 1 of the Device Feature Header (DFHv1). > > > > > > Signed-off-by: Matthew Gerlach > > > --- > > > v2: s/GUILD/GUID/ > > > add picture > > > --- > > > Documentation/fpga/dfl.rst | 49 ++++++++++++++++++++++++++++++++++++++ > > > 1 file changed, 49 insertions(+) > > > > > > diff --git a/Documentation/fpga/dfl.rst b/Documentation/fpga/dfl.rst > > > index 15b670926084..7c786b75b498 100644 > > > --- a/Documentation/fpga/dfl.rst > > > +++ b/Documentation/fpga/dfl.rst > > > @@ -561,6 +561,55 @@ 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 > > > GUID 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. > > > The DFHv1 > > > +structure is shown below: > > > + > > > + > > > +-----------------------------------------------------------------------+ > > > + |63 Type 60|59 DFH VER 52|51 Rsvd 41|40 EOL|39 Next 16|15 VER 12|11 > > > ID 0| > > > + > > > +-----------------------------------------------------------------------+ > > > + |63 GUID_L > > > 0| > > > + > > > +-----------------------------------------------------------------------+ > > > + |63 GUID_H > > > 0| > > > + > > > +-----------------------------------------------------------------------+ > > > + |63 Address/Offset 1| Rel > > > 0| > > > + > > > +-----------------------------------------------------------------------+ > > > > Is something missing here given the layout is claimed (in 2/6) to be: > > > > "DFHv1 Register Offset definitons > > In DHFv1, DFH + GUID + CSR_START + CSR_SIZE_GROUP + PARAM_HDR + PARAM_DATA" > > > > ? > > > I was hesitant to have a picture because the description would then be in two > places. I suspect my picture is not clear, but it does line up with the > offset definitions: > > DFH offset 0x0 > GUID offsets 0x8 and 0x10 > CSR_START offset 0x18 > CSR_SIZE offset 0x20 > First PARAM_HDR, if it exists, is 0x28, > First PARAM_DATA, if it exists, is 0x30. I already noted in the other email I figured it out. It was thanks to the offsets in the header how I found out where I had misintepreted things. I initially had thought PARAM_DATA would be the parameters, both headers and param data, but then realized that it's PARAM_HDR+PARAM_DATA which is repeated n times. I don't think there's need to fix anything in here. -- i. --8323329-962032008-1664283266=:2334--