Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp189226iob; Mon, 2 May 2022 16:42:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmgkycrR+FdtnhCXA2fNwoi4pfqV7f5SWgL73mVTb52ZGo5kkhyBJvraKaoOzzwjewMV7Z X-Received: by 2002:a05:6a00:1907:b0:4f7:945:14cf with SMTP id y7-20020a056a00190700b004f7094514cfmr13433564pfi.47.1651534929687; Mon, 02 May 2022 16:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651534929; cv=none; d=google.com; s=arc-20160816; b=izEkP5WyGmP0RG4x19PYuGPogCXTsmKyAklBSi6b4cdcjg82wrLOEanOwPN3II8Eo4 sRYEiJSm/L4gsq8jHEfGCZiT47usxY6oDQLLohH/61SytZ36GFCvG+xcq+09Mnf4I/O8 OPogGkSlCMN6WngmcRfTvDVbXvir/daqXIwTHiUHUMiR+kyBPOpZuGrVWLIB4FKUcqrv ADTt0JRYSzyIzcY196xQLlX9zG2IfyUKRctYIVEFT5WV645bEafxlFrF8wz4kVzS9LLQ ef3qmSu6c7hHgGYJrLueCy/2J0u1UJ9BLdIvb0uXDnhKuGZxbDmvYSSijuc8dRhNSbvc bChA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=3y/gnO5NriXy01NUlwMKjVmeqtM4bTYvuSzVe16kUvA=; b=VRAkfZpzqlF3QwWcMeZ7DcB9rtRHoDAh8Hf1FWSr6pZMjCqY2mHb5A11lmFMSUTTyW ptHK++O/D3ZWzxbdS5Mwac08bfRToxm18Xe/Z0Bhq070S4uOdgPdo+dGnsA74xFjHrtE VQmty8RZ33TB5R4GaTPA2H/ZkK9WXJHwEbwYyXEd+PLM2tXvs0yMKqzS3FnjXNzbZ6S/ CyWLbf6xuzdpGXrBgA4gV9ZCMo6I6Ui7rTXMQjHFI0a+bZoc3EQKbAnztkDCAm8ENC9S 4pc8j+H9D3F85cxldVoV70KiB5CRmk2JSCwMoLDzo53iWtJMhmEChh2aoGF0NTCkX1ii qvzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cXpb1peY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t8-20020a1709028c8800b00153b2d16509si14606518plo.273.2022.05.02.16.42.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 16:42:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cXpb1peY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 17E75338A2; Mon, 2 May 2022 16:41:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382878AbiD3O6d (ORCPT + 99 others); Sat, 30 Apr 2022 10:58:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242575AbiD3O60 (ORCPT ); Sat, 30 Apr 2022 10:58:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E677D138 for ; Sat, 30 Apr 2022 07:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1651330503; 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=3y/gnO5NriXy01NUlwMKjVmeqtM4bTYvuSzVe16kUvA=; b=cXpb1peYT+1K1pZR2qUBrabxxi+k2RAndq2bxFMLQt/T0OG2Y1ujJ3IB1jELyC3LwXNMeT 9pbkcc7/9c8T1F1xFUkdujnwpR+tWmpusuNV+ZdvnVBP86KDpMaQT8Sd69OctTxBj+HaqA J5cTr1rQBusQyipSebnvwgu5Io1G3/M= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-437-qPH6fiKCO6KZto0DiYd-fA-1; Sat, 30 Apr 2022 10:55:01 -0400 X-MC-Unique: qPH6fiKCO6KZto0DiYd-fA-1 Received: by mail-qk1-f198.google.com with SMTP id m17-20020a05620a24d100b0069f462e364bso7131158qkn.6 for ; Sat, 30 Apr 2022 07:55:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=3y/gnO5NriXy01NUlwMKjVmeqtM4bTYvuSzVe16kUvA=; b=5CKyhMNJyCXxfP+HxJLVcNLwcaYeW6pycSqjZQ1PXV4BWb/xObjL51YzCnOiYkmooN 6itKhxuNImAJXv6L+1pR1x8Z/8KKADboynliftFMDzwsKYnLgzY1M5tepuFVBM+Tx0hm +7jw1GMvybGsnpzYZ2LYcQuwMdauhfB8kQrSyBga6qwam+oYk+PxzU6IzMFWtMnu8rzX Gxd65j37CkbzAKxQq34i86ynOoc+hUhAG0EgI335AfQv66nXLoFXJjaKJeXrrAQ0N19m sTIA8a+DqBAY+8xj1ROx5McRh0KkzPhts23p96DF4hh4S9FbaasZapS98x/PYmZYSSmr 6A/g== X-Gm-Message-State: AOAM531Odbsb/hUcorKuDNBv9/dXDNe7uNfB8scuJCy+Sy5hTnRxAD/j S1gCMHcteUUqI80DIiC09x4LtFb5UXuV7avwbhirq6WhGO1t74oRo7dXa4bHl+I7CaTnz2rCPgW EzJiCFtXhymLO+mc7aihc9Q4v X-Received: by 2002:a05:622a:24f:b0:2e1:d658:a595 with SMTP id c15-20020a05622a024f00b002e1d658a595mr3697056qtx.657.1651330500919; Sat, 30 Apr 2022 07:55:00 -0700 (PDT) X-Received: by 2002:a05:622a:24f:b0:2e1:d658:a595 with SMTP id c15-20020a05622a024f00b002e1d658a595mr3697043qtx.657.1651330500721; Sat, 30 Apr 2022 07:55:00 -0700 (PDT) Received: from localhost.localdomain (024-205-208-113.res.spectrum.com. [24.205.208.113]) by smtp.gmail.com with ESMTPSA id o26-20020a05620a111a00b0069fc13ce242sm1256381qkk.115.2022.04.30.07.54.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 30 Apr 2022 07:54:59 -0700 (PDT) Subject: Re: [PATCH v3] uio: dfl: add HSSI subsystem feature id To: Xu Yilun Cc: Tianfei Zhang , hao.wu@intel.com, mdf@kernel.org, linux-fpga@vger.kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Matthew Gerlach References: <20220429005726.607804-1-tianfei.zhang@intel.com> <20220430142452.GB398931@yilunxu-OptiPlex-7050> From: Tom Rix Message-ID: <774dee52-7f68-9d50-4a61-feaedd99eb86@redhat.com> Date: Sat, 30 Apr 2022 07:54:57 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20220430142452.GB398931@yilunxu-OptiPlex-7050> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 4/30/22 7:24 AM, Xu Yilun wrote: > On Fri, Apr 29, 2022 at 05:23:53AM -0700, Tom Rix wrote: >> On 4/28/22 5:57 PM, Tianfei Zhang wrote: >>> From: Matthew Gerlach >>> >>> Add the Device Feature List (DFL) feature id for the >>> High Speed Serial Interface (HSSI) Subsystem to the >>> table of ids supported by the uio_dfl driver. >>> >>> The HSSI Subsystem is a configurable set of IP blocks >>> to be used as part of a Ethernet or PCS/FEC/PMA pipeline. >>> Like the Ethernet group used by the N3000 card, the HSSI >>> Subsystem does not fully implement a network device from >>> a Linux netdev perspective and is controlled and monitored >>> from user space software via the uio interface. >> Generally you should include the url for the dfl definitions. >> >> Can you add it here to the commit log ? > Do you refer to this url, https://github.com/OPAE/dfl-feature-id ? Yes, exactly. To someone not working the day-to-day working dfl they will have no clue where the fids come from. When a new one is added to the kernel, it should have a listing in dfl-feature-id repo. If it doesn't, there will be a future conflict. Tom > > Hao has some comments about this at > > https://lore.kernel.org/all/DM6PR11MB38190E6EEF6DE3EB900290C585F39@DM6PR11MB3819.namprd11.prod.outlook.com/ > >> Otherwise fine. >> >> Reviewed-by: Tom Rix >> >>> Signed-off-by: Matthew Gerlach >>> Signed-off-by: Tianfei Zhang > This patch is now good to me. > > Acked-by: Xu Yilun > >>> --- >>> v3: change the name of this feature id to HSSI_SUBSYS and rewrite >>> the git message. >>> v2: add HSSI introduction and the git repo of Feature ID table. >>> --- >>> drivers/uio/uio_dfl.c | 2 ++ >>> 1 file changed, 2 insertions(+) >>> >>> diff --git a/drivers/uio/uio_dfl.c b/drivers/uio/uio_dfl.c >>> index 89c0fc7b0cbc..8f39cc8bb034 100644 >>> --- a/drivers/uio/uio_dfl.c >>> +++ b/drivers/uio/uio_dfl.c >>> @@ -45,9 +45,11 @@ static int uio_dfl_probe(struct dfl_device *ddev) >>> } >>> #define FME_FEATURE_ID_ETH_GROUP 0x10 >>> +#define FME_FEATURE_ID_HSSI_SUBSYS 0x15 >>> static const struct dfl_device_id uio_dfl_ids[] = { >>> { FME_ID, FME_FEATURE_ID_ETH_GROUP }, >>> + { FME_ID, FME_FEATURE_ID_HSSI_SUBSYS }, >>> { } >>> }; >>> MODULE_DEVICE_TABLE(dfl, uio_dfl_ids);