Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1227704rdb; Fri, 9 Feb 2024 14:42:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXjULkpY5ETgGYeWdIdnaTIkMjLesqbyZYCrRIHnfUu3H3xUpURi5FHrlVN7nAKWENjCt6dLG34Qlascuo+AKFhRIwSHa/kQyJPGuZdiw== X-Google-Smtp-Source: AGHT+IHQyOC6Cgik9XvDsTOxZXtnsyrplP8TAIqRQylDb0AhQ3XdAUZ4268Qb7GLMDTBW0C7d7Ux X-Received: by 2002:a05:6a00:c8d:b0:6e0:4d1e:6f6c with SMTP id a13-20020a056a000c8d00b006e04d1e6f6cmr955564pfv.8.1707518549469; Fri, 09 Feb 2024 14:42:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707518549; cv=pass; d=google.com; s=arc-20160816; b=mRz57WjIQ/SpZy5zSEtEJ/HO+Zeb37snP3l2uSsWNuGU25cey9iMUIIxNI/S7xluLP bS4uPf3QJa48iVQK/mCLV3pad8qpuddc8Jjr1oTHwHKZaCwzz3zGCJtnKamy5xss1zae +D60XNCpTsCrR3yPQfZwmFNizEuYEkzZ5KrkF0+s00d/87Wj7tDSx3VGAIZOrSEbLbcv ET535PUJzGepGi1bdP7pEZ+H4ZYSRbhMCwo+GdpsXss7+5I0ra5V9Rj1kO5NIareGmPP MlJhTVZ4Fn3BWuMwpkoZQuDe69tSmOAzIHKQm6lh6pfqae93wFxcY9Vdi0ocMcJ6jMvW GvNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=+Psr7KHOgudWSvsLTPi6GhfpCraZaBYOsO5MwJLI9SI=; fh=ayzVZyPBjQ67CosYRp0+71a//RdV8v/cyyE1wmxF3xE=; b=hmg6XY+qaVCiJIbCt2LZExtfu88S5Y6mLR/UNzW7hymSRswUkJFeid6yvJ6A/M75KG u0DnNjQJbRz9VccdfWaTiYyXLBC566t3B/D7bx+aMnpDzsbH++RrMoTPsZGXwUiXy1Lo NxF4ZAskBgKuGT4SeUCwqI3oKy5QFM4OHJagrRaJg7mZ2WV1cmsPipWKiC3wwdRnwJjQ gZxntgdkuym7MzTfNgo6+e/ic0p4vM5sMr4buXZQ/0++fV4eHK9MmI5I5unfaGHhegAI xjq6X9MRk9XIYLxlkn6iBvtVuOPxhhlnUeyX5ij7ugFmEYbQ/74fNNaYQuUY5kPU9pUT DHLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FMDUSxV8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60128-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVwFA4V4mPHWiQoWcK7xBBD61k8UPbI8qcmvNSctILrVka2UL2PZ/L+8QxRONdiAROTlk6OHrm4/ydnHOmukbSPC968I5KkP0A4Yl3g9A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a18-20020a637f12000000b005cee039f233si2380951pgd.425.2024.02.09.14.42.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 14:42:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60128-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FMDUSxV8; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60128-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60128-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 23AD028511E for ; Fri, 9 Feb 2024 22:42:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DF8E535280; Fri, 9 Feb 2024 22:42:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FMDUSxV8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1327C2134B; Fri, 9 Feb 2024 22:42:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707518538; cv=none; b=AcG8GpCPB4riu674z5P7+qPqI/dgll/8Tp2qrU0keWNNWyFgQV8fSM0Fpf81AcTOS6sbsWOw6yFKNO2Z0SLLxmBTnC37gQJtOmLdZAWuuoH6hbK1/+Mvmr29aFV6YR+5bKT6K+b5LKJc2mo6diFR36ciN0/P8ouKFiniNGPSkiU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707518538; c=relaxed/simple; bh=LB2yq/a/dObdaIA/QKejtPmk1xv0qVIDrLv38rM+hwY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=EtTx73wvau0TW1Tq9Mu1vdO8jOW3Gc6/mrc0TAKMv8WLWZzFDPBlvEKQFMLc55pPGt1t0xC/H+jpV6vGf5dclCRzpaqr3mLh59xpSjBDZAUXx9NIgqvmBVjB+w/snjDt8AJ4pmjsE0UCdqC7hJ/mWs1V92FB+A4Np/57SSPvmOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FMDUSxV8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09679C433C7; Fri, 9 Feb 2024 22:42:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707518537; bh=LB2yq/a/dObdaIA/QKejtPmk1xv0qVIDrLv38rM+hwY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=FMDUSxV8DcP6+vvHsaIGYsiVQCScFd182quGHHIs1DTBHQv4UIfUKOQ01JVWBaW7o r+ob50tFH7NFzFSIBqpz3IfoKKkPeHX5iz1SEZxVmNdzW+pF90kwrogGbSUmPdPFUs eQPdlhg+uecKlw9hBEA7KLFaokJESE17zQ7RvDGDW1Ibk2G0Lv7f0aOGzjMpF3ueom hIFrA5BjqTnvmUvh197AlJA5YJfGVgOWYik6VtBQLumIafAZFaePTBekqCnYKZeAKU l8Kx6e7rgdSozVkBS5MTpR4S/k+MZwwiQgN4VUQr14/7vZYDJYWBc491hapXmMtvlz goJOJ9U/RPddg== Message-ID: <2bdc5510-801a-4601-87a3-56eb941d661a@kernel.org> Date: Fri, 9 Feb 2024 15:42:16 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH V4 0/5] mlx5 ConnectX control misc driver Content-Language: en-US To: Jakub Kicinski , Saeed Mahameed Cc: Arnd Bergmann , Greg Kroah-Hartman , Leon Romanovsky , Jason Gunthorpe , Jiri Pirko , Leonid Bloch , Itay Avraham , Saeed Mahameed , Aron Silverton , Christoph Hellwig , andrew.gospodarek@broadcom.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20240207072435.14182-1-saeed@kernel.org> <20240207070342.21ad3e51@kernel.org> <20240208181555.22d35b61@kernel.org> From: David Ahern In-Reply-To: <20240208181555.22d35b61@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/8/24 7:15 PM, Jakub Kicinski wrote: >>> Ah yes, the high frequency counters. Something that is definitely >>> impossible to implement in a generic way. You were literally in the >>> room at netconf when David Ahern described his proposal for this. The key point of that proposal is host memory mapped to userspace where H/W counters land (either via direct DMA by a H/W push or a kthread/timer pulling in updates). That is similar to what is proposed here. >>> >> >> I was in the room and I am in support of David's idea, I like it a lot, >> but I don't believe we have any concrete proposal, and we don't have any >> use case for it in netdev for now, our use case for this is currently RDMA >> and HPC specific. >> >> Also siimilar to devlink we will be the first to jump in and implement >> the new API once defined, but this doesn't mean I need to throw away the > > I'm not asking to throw it away. The question is only whether you get > to push it upstream and skirt subsystem rules by posting a "misc" driver > without even CCing the maintainers on v1 :| Can you define what you mean by 'skirt subsystem rules'? That's a new one to me. BTW, there is already a broadcom driver under drivers/misc that seems to have a lot of overlap capability wise to this driver. Perhaps a Broadcom person could chime in. > >> whole driver just because one single use case will be implemented in netdev >> one day, and I am sure the netdev implementation won't satisfy all the >> use-cases of high frequency counters: >> >> Also keep in mind high frequency counters is a very small part of the debug >> and access capabilities the mlx5ctl interface offers. >> >>> Anyway, I don't want to waste any more time arguing with you. >>> My opinion is that the kernel community is under no obligation to carry >>> your proprietary gateway interfaces. I may be wrong, but I'm entitled >>> to my opinion. >> >> Thanks, I appreciate your honesty, but I must disagree with your Nack, we >> provided enough argument for why we believe this approach is the right >> way to go, it is clear from the responses on V3 and from the LWN article >> that we have the community support for this open source project. > > Why don't you repost it to netdev and see how many acks you get? > I'm not the only netdev maintainer. I'll go out on that limb and say I would have no problem ACK'ing the driver. It's been proven time and time again that these kinds of debugging facilities are needed for these kinds of complex, multifunction devices.