Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp720015rdf; Tue, 21 Nov 2023 14:53:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVwWagUEKvgTQZR9E6Rx7NqlnXuSYv8KF1pWlb18GvxqE4MypcDt2YGh8BDI5bx88emthQ X-Received: by 2002:a17:90b:2245:b0:27f:fc2f:4831 with SMTP id hk5-20020a17090b224500b0027ffc2f4831mr720802pjb.13.1700607206199; Tue, 21 Nov 2023 14:53:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700607206; cv=none; d=google.com; s=arc-20160816; b=QSiND/Q2FKWuMcoTkYz02BB2nDNHCfQd0pSkkc4Q5Rg4BhlRumGVKooivdpVMmwqE4 rdw1pM28YcvoZfAAGvI+acbT92mIx/uf+IrvP7LZNbcszZOvH4mRc9LrQXSa8iWqTdS5 3HPx4Q3PL4MdB3248IquPO1MUSA34zw/YtqSYG86jMBjUtFx86/ss/9/oI+Y46JP9vPM hymupKongrcbHuqjTOhugsSNOLBhJaek+wCMVoTR0JvcEMEvmGNCpw6tzbEIihJMtiLA +H+rnE08Bc6cpZl44Ct7hhVkTwWWbIuHv4SX8MZ7cnfqH8srEsFctF7wI7TNy398gNCX B5Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cBZ/5ezC5OGDjZYaRjvZC8mDAcEH3ru+LeckwBnVd60=; fh=PYYfFg3cV3ekTNFXq97/+9L1VNpDLLpRvm6rZCLpAxs=; b=hvWHdwA6oZFKBQxYH7vL2hmmQT7TGusb1u9j+kozX77UV+Yt1nQZTPChs4nOO83xj1 Jxfan8yM2KBtQ9aiwJCw+MMnEaye4pAit08YMJ5rm1+Ysz4A510Wj87w2DQmBjpGJmT1 EpwdlyQ4NPqVhSqKTBVlOVBegNM2CDzhHrrHxCJprkA/CjXwlmhNaLzbToUiKzm5aMn8 UHvQ5J0faikqQ5Dv8WQhpm8BtrAaqe5+67bRJZ9yP6Gk0XHJoLqgURt6XawBLWSG9mcW lobvEagsfNa13udLrpX16T4xZG1mFRFtG6awXmZebwh5y9S0nFb297mEqWuhm+12bNQ8 l7/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GDBbps2g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id qe4-20020a17090b4f8400b0028091c90974si114545pjb.1.2023.11.21.14.53.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 14:53:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GDBbps2g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id DF198817ABC0; Tue, 21 Nov 2023 14:53:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234808AbjKUWw4 (ORCPT + 99 others); Tue, 21 Nov 2023 17:52:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234775AbjKUWwu (ORCPT ); Tue, 21 Nov 2023 17:52:50 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EF0319E for ; Tue, 21 Nov 2023 14:52:43 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA010C433C7; Tue, 21 Nov 2023 22:52:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700607162; bh=lcd1kaNfal9twfdUVMZrLx4fsueilicX3t4phDi7yXE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GDBbps2gtwzo6uL2nHWSrvpUo/BPqGgOMVM9oxt5jgW+G2Qcd+pQKefBFTQvW+veP kC2oD5UgdrFjr4mm17/LNIuliKGnsUTLjnTjz1lA/x77iKCd1e1HwcHf6iPo/T1kdA 5YxfP6jjau6jvJV5ZA/112PrdEznjBA9U+HLsWAjzBf4KN9QT6gmjLK2fZD5egQnOh XRnLinwvWwtRAmuhDHYk/S9ZVAINmmGD/+6g8XSsS6mjAlbfJd4EfSJRzkjJsGY563 nelLqBx4EDHvEl4OqH0joxKK0f2/KTwI0sZhfGLJA2LzKwHKr5cK3IWk+oNKRU6sMh JtfOwxZr3R/KQ== Date: Tue, 21 Nov 2023 14:52:42 -0800 From: Saeed Mahameed To: 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, David Ahern Subject: Re: [PATCH V3 5/5] misc: mlx5ctl: Add umem reg/unreg ioctl Message-ID: References: <20231121070619.9836-1-saeed@kernel.org> <20231121070619.9836-6-saeed@kernel.org> <20231121124456.7a6388c6@kernel.org> <20231121141053.6133e069@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20231121141053.6133e069@kernel.org> 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 14:53:24 -0800 (PST) On 21 Nov 14:10, Jakub Kicinski wrote: >On Tue, 21 Nov 2023 13:04:06 -0800 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. > >You keep saying debugging but if it's expected to run on all servers in >the fleet _monitoring_ performance, then it's a very different thing. >To me it certainly moves this driver from "debug thing loaded when >things fail" to the "always loaded in production" category. Exactly, only when things fails or the user want to debug something. For your example, you can monitor network performance via standard netdev tools, once you start experiencing hiccups, you can use this driver and the corresponding tools to quickly grab HW debug information, useful to further root cause and analyze the network hiccups. Again this is only one use-case, the driver is intended to provide any debug information, not only diagnostic counters or monitoring tools. The goal of this driver is not the one use case you have in mind.