Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp706330rdf; Tue, 21 Nov 2023 14:18:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdUAfLpRj1pEBSZb3jeQR1JFQjCn8Tm0X0VDcGalqO2hX3UKgel4Ps57ixo/RvcANzQc8Q X-Received: by 2002:a05:6a20:3ca2:b0:180:d45e:727c with SMTP id b34-20020a056a203ca200b00180d45e727cmr410109pzj.46.1700605131030; Tue, 21 Nov 2023 14:18:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700605131; cv=none; d=google.com; s=arc-20160816; b=qbpWuSxtXIdv4lgJySadwTF12YH5amFa2G/zTd7oeobtArnN8A2I7KTAHYzbVhviLV pUd8FCIhKsPKzlm09jhLN7AkSqdRSoCZY9wT29ORFGvemkM4kAHBZ2EIJqUJgx7fUsws XA57EtuBFrkFTwADhHl1pSGQpxT5Pp4LyQecrZgRUtg2+EkNlbOhslSJFD17/2/FHBH3 wxmxPMZFNODg6gRedLnX3pZzk5n1eOHZukoLV/0j+VKNLX1vlbNx/8JoqbzWUQUqDFRg oa/yC43ySmIs2VsO7AtjkvVfOPkScrabU8DJZyhI5MkiqqbmcHOEKEiIVpzdEM14RvVO X6LQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=br4B46krml6/qaJMdStagCi/IUMi0oo9MydadLMEdKw=; fh=IQgtNU3U6suAD9mSMpm09+GqM0OgRC/LsOA1IXi4EMM=; b=TZiVl9DxQoj3ZDZNhIBVcDxBjpTQB7O2834Sg8NCLTSK7AZV5uaN41EDhpGSHQj35N 0vL6m2G+UIt0g7CSEtsFWl/arqor3DcvQEqZry+1L8A4RX6XMja70Qy0IawhFQeWjeg0 7U2PP7IQ9s7tWhaR6us3NcJTXWmYAKMWBS8NuhyuKTMq6G86QXCUvUx59XBjLuB+Ncby e5ptv2Hd20dVQJpnV3nuLCaXaFtjebNWKn5eoiYfd2z4hqjuBgg5QbY4uiDWA34nCuuB pEe7PRyUCOK8B9oNV+hd7FXHvV+WXKl296aJUuRms0um1e2mns3Ez6YPVVXx5BdBXid7 3QqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J7zbkuQ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id k2-20020a170902760200b001c9c967e77esi525446pll.207.2023.11.21.14.18.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 14:18:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J7zbkuQ6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 69050802A3F3; Tue, 21 Nov 2023 14:18:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229631AbjKUWSe (ORCPT + 99 others); Tue, 21 Nov 2023 17:18:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjKUWSd (ORCPT ); Tue, 21 Nov 2023 17:18:33 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31759191 for ; Tue, 21 Nov 2023 14:18:30 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 94BD7C433C7; Tue, 21 Nov 2023 22:18:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700605109; bh=0YC8SZz2FmloJHwU36nssTJ1zRm8xPDAafdB0h0p0j0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=J7zbkuQ6LQ+LUO4qnHeIdW5uvb9tAeXXblsJnIjSdG/gi8y/92947Lz1YqIzfixt5 uVVGJ31aOHi3sEBXvx0JhrRgiYdoNk0r9EXcfCD/bQOL4MZPaO5OHiGWlC/hIbwx2Q 97V9cCj/VSKWU6fEsF2dnbvt6QbJPSixZN+CHkJ1IX3lgYB/d8kK33DX/KGweik4Mh cdxn+yKsIHdLlvSmSb2xj1hV7y9r5ENApxLGjwmSYh6qOO4G2durBhEgSdqWfHoiQu ewiuZjCE0MFhDE7kxvKhSTvVh4geYajIlNKanThHzyE9TxtGB8lvOqqwsZyXXiDzFM ggeuUxA5OO58Q== Message-ID: <7ae9adff-5a6a-4ca6-983b-1d866dae9199@kernel.org> Date: Tue, 21 Nov 2023 14:18:27 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V3 5/5] misc: mlx5ctl: Add umem reg/unreg ioctl Content-Language: en-US To: Saeed Mahameed , Jakub Kicinski Cc: Saeed Mahameed , Arnd Bergmann , Greg Kroah-Hartman , Jason Gunthorpe , Leon Romanovsky , Jiri Pirko , Leonid Bloch , Itay Avraham , linux-kernel@vger.kernel.org References: <20231121070619.9836-1-saeed@kernel.org> <20231121070619.9836-6-saeed@kernel.org> <20231121124456.7a6388c6@kernel.org> From: David Ahern In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,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 groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 14:18:48 -0800 (PST) On 11/21/23 1:04 PM, Saeed Mahameed wrote: > On 21 Nov 12:44, Jakub Kicinski wrote: >> On Mon, 20 Nov 2023 23:06:19 -0800 Saeed Mahameed wrote: >>> high frequency diagnostic counters >> >> So is it a debug driver or not a debug driver? >> > > High frequency _diagnostic_ counters are a very useful tool for > debugging a high performance chip. So yes this is for diagnostics/debug. > >> Because I'm pretty sure some people want to have access to high freq >> counters in production, across their fleet. What's worse David Ahern >> has been pitching a way of exposing device counters which would be >> common across netdev. . For context on the `what's worse ...` comment for those who have not seen the netconf slides: https://netdev.bots.linux.dev/netconf/2023/david.pdf and I am having a hard time parsing Kuba's intent with that comment here (knowing you did not like the pitch I made at netconf :-)) > > This is not netdev, this driver is to support ConnectX chips and SoCs > with any stack, netdev/rdma/vdpa/virtio and internal chip units and > acceleration engines, add to that ARM core diagnostics in case of > Blue-Field DPUs. > I am not looking for counting netdev ethernet packets in this driver. > > I am also pretty sure David will also want an interface to access other > than netdev counters, to get more visibility on how a specific chip is > behaving. yes, and h/w counters were part of the proposal. One thought is to leverage userspace registered memory with the device vs mapping bar space, but we have not moved beyond a theoretical discussion at this point. > >> Definite nack on this patch. > > Based on what ? It's a generic interface argument?