Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7569600rwl; Tue, 10 Jan 2023 02:32:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXvdWljIJVJ2UXt5qdtKaem5IENbe3j+8K/feeKoZTQlzSaCBm189CQTbioI5chyzVya2hCH X-Received: by 2002:a05:6a20:c1a9:b0:a3:9598:e5c5 with SMTP id bg41-20020a056a20c1a900b000a39598e5c5mr99691754pzb.35.1673346774454; Tue, 10 Jan 2023 02:32:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673346774; cv=none; d=google.com; s=arc-20160816; b=sBhlU11TwYnmwhM01ZLarn5ZWWEDJUyFc01LTVIQIpSbHF4a4QE+AjCgjRxfl6n3bm tMHtGedBYr9NMu1H7EQmjrT82xoAQOcCBVgd+Zwqy5hFW9bpzMiXlYioDDGhUkrnPXrd Jl61wJjswH/meUot9TgORUiX1ouYRv0mZ+LI3aal+nIOnjsjXtJJM1/TA9tBmESG/jF2 cFfoRtiqO6OyDyAPtnkvzY0k4SkqNCa1ZyCYNzAckTY9li+eVyYxg3+3FRGcsmGeF5x8 N/0KKw89TtgOdNMbvSWl29O7Yuh1QkPS7vSrrrLg9VOd11tqK1ZVQnYWfz6CtfkGCVj+ PIYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=aAe9t7l23zECYZ21Dm7uS8CAz2rn5YTBgxJDXcu9HP0=; b=hRpkq1Q4RQ6/DAYHbIE9NXEzN24lIRW6LYM4JGIn/K+H34s/Vrnq3itmuKpEFochIE 1c9pzE38D/ihwd6VrVbdl3jBwMK6Vn50dt1NslzC+Ceyrprt+bjud2cs8LhuWyaNib7o Zcs5Ef3jF74YqJ2+66p2CFR98+zPuO/k9jqrtuLMkFb7NKw0WIbJogFzeWoDunRF8dyZ M7D3Ci2oyPkNcN0COrw9WyIvSjBxih8qtVvHWmg42auv48neDTtntpmBlrrPbnaZ9WjF 1cjOJlbcYy7OiCDnzljuK+lARwsg42Gy0MFgrdy/aVJ+GgHA58lw2Bbp5C3ldKpiTKLw wHXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l4HmJekw; 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 22-20020a630b16000000b00477b29bb007si11427965pgl.854.2023.01.10.02.32.47; Tue, 10 Jan 2023 02:32:54 -0800 (PST) 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=l4HmJekw; 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 S238220AbjAJKXC (ORCPT + 53 others); Tue, 10 Jan 2023 05:23:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231210AbjAJKWe (ORCPT ); Tue, 10 Jan 2023 05:22:34 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A0AD5AC55; Tue, 10 Jan 2023 02:21:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673346104; x=1704882104; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=PkKqqmBLchSYZl+hz18MXJzVs0JIqEvfTbNCyQox3Kg=; b=l4HmJekwWMewq0ZaT40iKFit+vY69pAYZGQUfo76PO0kBnsdAevlGBB3 iuK/xwp0rqnvleewzfGuX5eY3/KvR63An3HH1o5QseCY3CZM/NEXfsAan pYZ4ICv273K7o1aUk0nDpXazU8U5T/U4SF9bB1Y3hmW4KM2//sSSDmq2h NxotBgCkKS17VF/WnApKL2OnayQ+hP/b943auGlcNFQPRODlF6vYOX7zl 1Mtv0OwiBk9UsfIbxJc8xS1U/6DGhdyscPtm2jcKSRJK3bemBKFIbKAta DveKSMaxBVKd08KmTF4+g8JLxINE3MD0RFPb7mn6SxzGXrGXowp2ZuntN w==; X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="306625517" X-IronPort-AV: E=Sophos;i="5.96,315,1665471600"; d="scan'208";a="306625517" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jan 2023 02:21:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10585"; a="658937444" X-IronPort-AV: E=Sophos;i="5.96,315,1665471600"; d="scan'208";a="658937444" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007.fm.intel.com with ESMTP; 10 Jan 2023 02:21:38 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1pFBlA-006yvn-04; Tue, 10 Jan 2023 12:21:36 +0200 Date: Tue, 10 Jan 2023 12:21:35 +0200 From: Andy Shevchenko 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, 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, niklas.soderlund+renesas@ragnatech.se, macro@orcam.me.uk, johan@kernel.org, lukas@wunner.de, ilpo.jarvinen@linux.intel.com, marpagan@redhat.com, bagasdotme@gmail.com Subject: Re: [PATCH v10 3/4] fpga: dfl: add basic support for DFHv1 Message-ID: References: <20230110003029.806022-1-matthew.gerlach@linux.intel.com> <20230110003029.806022-4-matthew.gerlach@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230110003029.806022-4-matthew.gerlach@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 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 On Mon, Jan 09, 2023 at 04:30:28PM -0800, matthew.gerlach@linux.intel.com wrote: > From: Matthew Gerlach > > Version 1 of the Device Feature Header (DFH) definition adds > functionality to the Device Feature List (DFL) bus. > > A DFHv1 header may have one or more parameter blocks that > further describes the HW to SW. Add support to the DFL bus > to parse the MSI-X parameter. > > The location of a feature's register set is explicitly > described in DFHv1 and can be relative to the base of the DFHv1 > or an absolute address. Parse the location and pass the information > to DFL driver. ... > v10: change dfh_find_param to return size of parameter data in bytes The problem that might occur with this approach is byte ordering. When we have u64 items, we know that they all are placed in CPU ordering by the bottom layer. What's the contract now? Can it be a problematic? Please double check this (always keep in mind BE32 as most interesting case for u64/unsigned long representation and other possible byte ordering outcomes). -- With Best Regards, Andy Shevchenko