Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2437576lqt; Mon, 22 Apr 2024 10:35:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9EFZCR17N29b7t/z8Gh7NW2cKWgVMgD/BNy4caL2QmE+1ec/OmfnEjaguvTivxF20C0ePvnnI2NxHAfBfFW2XY9lHu1wwzA9R/ED4zQ== X-Google-Smtp-Source: AGHT+IGtc0kucMF/+1sST39eb2+J9QWfn/vLtS+UuZsaYQSlKjqoXJPmOt2EEYXapedm/Xl+oC2e X-Received: by 2002:a05:6870:8588:b0:222:4cb3:4e79 with SMTP id f8-20020a056870858800b002224cb34e79mr13806519oal.12.1713807354804; Mon, 22 Apr 2024 10:35:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713807354; cv=pass; d=google.com; s=arc-20160816; b=DIfirZadcSX28TtB8Qx/2Ys3gOa0Q5GpME6D0G7qgxinklmsowzFn778L0VZ+rUCXT ppgLuOD4+bsW497jDB9Tq0pxL/cVZrmfLEHFkOpn9lQ6CbDVhLemkLCzOzZcKE5mN0Bj YydZyw0T1GsVJVkEeK05xUL5VpDv0+2jwEgJdBdGdJA1rdIf7P7JV6CNFn8KikP7vjXR bz/pIAv2f+jJFtHFeTLFIqbVHpp6q6Tw68YUTQP9Dkf7xl0BimMpOPqQwGZk/ch7rW+e sZr2SRasi+ww+svcYY2cPYYMxz927GfpFNV/4oimTaOupV4MW+kwbI6xtJAinTGGGnnq Ksqg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/lFzQ5ZbTqQaKmQBwqezEp5FAm5/GgH6WPCnR+KjYok=; fh=A5d5LLvpKmgTXzR/Oh65YTZppIPJ2G1vZJL0mXOm9Lk=; b=CqYJVAbMK2DWmDIIPvORBaWF4YVeKyHueJDLWlEeabosxaBEZwWhRePpSjFY/A182C lMZtSE8VrDY8lI7gDt4ABFCLlNUC2ceLBbP9Fk+aCyueo9LijnPBP+bu/Cl2V+tidfr0 VxAXqXjPeqEersKmXvj4U+Z9pL/d9OHUpXlfMzEZAnh6QjBaDj1BhdRQACZ+XFqWUt9V sRqb9MwXAZkYk2CHm21bUw31+Gk6HFbHeuT3MlCUIOlLbrdPa+aELHxEMQR/N+PQfjsA w79gw38qJ7Ik4gmLyNEj10Kv+jRbJ7OmMgomTiTAHyEhYK2MRrObPlQ3kCS8d1k1xfIm mBhg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=iM19m2Am; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-153800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153800-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m19-20020a638c13000000b005feabd8ca71si2693577pgd.554.2024.04.22.10.35.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 10:35:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=iM19m2Am; arc=pass (i=1 spf=pass spfdomain=ziepe.ca dkim=pass dkdomain=ziepe.ca); spf=pass (google.com: domain of linux-kernel+bounces-153800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153800-linux.lists.archive=gmail.com@vger.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 61A0D282573 for ; Mon, 22 Apr 2024 17:35:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2453A153BEF; Mon, 22 Apr 2024 17:35:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="iM19m2Am" Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43887153BE1 for ; Mon, 22 Apr 2024 17:35:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713807347; cv=none; b=WahYuWWVjNRtCly6ByoRmH2Vt5ZhKTuovUhB9AfvQZaBjYh1zV2pLQS3n0ykAes99E9lgvcu7aa/Ps5Dpwfhnb1NfiQIxlzPRcpRE5ITS/VNUERA7VF8iKhoiRX/5kvIgU8nbDMtnl+WqOzpExOF59P4KWB4XwMprYgXnGwbKKo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713807347; c=relaxed/simple; bh=fQ+RSPrRbkVE7QdGSNojzW1XEfrlFEsqKgx2Vk5asHE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sArwZqWVGEmQvdnlVZcx5MUjVpaHVXd8bxhXa0QVtt24If7iVUY7R+nYVkeDufiqo4oJEe9UnsTLJi1nMPyTNUaqJNLzwr86O3AZXp+Ggi/NFO3BXNGh8B/tHVGXe9fDvWocBGj0gFlR5EHY7JQaJ+g+n7pabS+3PXickH9wJiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=iM19m2Am; arc=none smtp.client-ip=209.85.222.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-790745f0fabso74854385a.0 for ; Mon, 22 Apr 2024 10:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1713807345; x=1714412145; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=/lFzQ5ZbTqQaKmQBwqezEp5FAm5/GgH6WPCnR+KjYok=; b=iM19m2AmEbc2vR5kk4Ug0MqhrufJfVHsICVtZPuDNEcJVbdU0BjXD0lgWawEsrpFlj SmyUDtwJ5GLif5LOBfZyos2dWjt9PDeEV/f6ObshzvX8QuNg3rpB6wA99GKjEgkYVNEX A1aDbjp/eKSMTLWQc4FozfZceB45TnlPNEUpX+sc7D3ng5rjtmP9jbiglXVp9MkzjSJB 6GtujYYjkviK5gdGT5G3dAzRDc7pn3EkYiPqVZ9uGniEpfPEt9sJ1dYqYYpaGZ73ekNx yzYWqrIM0/MDPnOJoep+E37lpzKtWYe9y1urFMXjPVhFo4Myd68w7VFMXqDwLvKqBdtC 6LMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713807345; x=1714412145; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/lFzQ5ZbTqQaKmQBwqezEp5FAm5/GgH6WPCnR+KjYok=; b=wZFbu6VAxosG4O94dE8T0ar40U9M+pgh/4JDLk8QVqM0DBdiPckBa4huTJnZaqh6kT A3IXSLV9L7A1Il0U+iz48DGhloEy29Cp7IQaMWhyQiTVARuLroR9tjbdjWTSw4leDoY7 QzFyWXp8knzTdIAUJEI62zi0Gfjg4eXEpeAQxTT7Fj1sqbzoCJBF7ty5Xukr7ERO0sbM cQ18EDBenGhzCGVODscXdB9bhBYhET+/U5YU5sV2nqsLYoAFTV6ZbfBzL8Lm5dOnLK5f WiW1wlwx3nwppCcxdJgMB3GaXB5ia/1q2Lp3TRVvUI/PqKzU0srYi9wYOFjfDnV57v0S BI0Q== X-Forwarded-Encrypted: i=1; AJvYcCU8cUnBh+zNa29/IDZm2nXahA4RsPFUB3l60j8qAblBKu+C2H23zpCuCTsYegPbgS1YTC73BAVTrswcyOlSxuRkO+dMnaO0IZWZ59YV X-Gm-Message-State: AOJu0Yy4WUlM6plyuu+ZqsA86OlxXTDsbHvfk5y04KLZhtX4e15xDuRs WKWqgW3AkZ7y+2cr7pq+YZzLgqZjp91j//aXVGGa07EOUSMsw3uk9unWXvvFjBA= X-Received: by 2002:a05:620a:1a0d:b0:790:5dab:f730 with SMTP id bk13-20020a05620a1a0d00b007905dabf730mr14122082qkb.55.1713807345218; Mon, 22 Apr 2024 10:35:45 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-80-239.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.80.239]) by smtp.gmail.com with ESMTPSA id w2-20020ae9e502000000b0078ec3aa9cc7sm4520464qkf.25.2024.04.22.10.35.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 10:35:44 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1ryxZv-000yHl-Sl; Mon, 22 Apr 2024 14:35:43 -0300 Date: Mon, 22 Apr 2024 14:35:43 -0300 From: Jason Gunthorpe To: Konstantin Taranov Cc: Konstantin Taranov , "sharmaajay@microsoft.com" , Long Li , "leon@kernel.org" , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH rdma-next 2/2] RDMA/mana_ib: Implement get_dma_mr Message-ID: <20240422173543.GA231144@ziepe.ca> References: <1713363659-30156-1-git-send-email-kotaranov@linux.microsoft.com> <1713363659-30156-3-git-send-email-kotaranov@linux.microsoft.com> <20240417145106.GV223006@ziepe.ca> <20240419121357.GB223006@ziepe.ca> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Apr 22, 2024 at 09:12:46AM +0000, Konstantin Taranov wrote: > > From: Jason Gunthorpe > > On Fri, Apr 19, 2024 at 09:14:14AM +0000, Konstantin Taranov wrote: > > > > From: Jason Gunthorpe On Wed, Apr 17, 2024 at > > > > 07:20:59AM -0700, Konstantin Taranov wrote: > > > > > From: Konstantin Taranov > > > > > > > > > > Implement allocation of DMA-mapped memory regions. > > > > > > > > > > Signed-off-by: Konstantin Taranov > > > > > --- > > > > > drivers/infiniband/hw/mana/device.c | 1 + > > > > > drivers/infiniband/hw/mana/mr.c | 36 > > > > +++++++++++++++++++++++++++++ > > > > > include/net/mana/gdma.h | 5 ++++ > > > > > 3 files changed, 42 insertions(+) > > > > > > > > What is the point of doing this without supporting enough verbs to > > > > allow a kernel ULP? > > > > > > > > > > True, the proposed code is useless at this state. > > > Nevertheless, mana_ib team aims to send kernel ULP patches after we > > > are done with uverbs pathes (i.e., udata is not null). As this change > > > does not conflict with the current effort, I decided to send this > > > patch now. I can extend the series to make it more useful. > > > > > > Jason, could you suggest a minimal list of ib_device_ops methods, > > > that includes get_dma_mr, which can be approved? > > > > Is there any chance you can send a single series to support a ULP. NVMe or > > something like? > > Sure, I can. I will investigate the way to make get_dma_mr used with fewer changes. > > Generally, I am wondering what would be easier for reviewers. > Should I try to send short patch series enabling one feature, or should I actually try > to produce long patch series that enable a use-case consisting of several features? Generally the guideline is to avoid adding dead code, some exceptions may be possible, but that should be the gold standard to try for, IMHO. If you want to support kernel ULPs then say witch kernel ULP you want and send a series to make it work. If that series is way too big then split it into two halfs and post both at the start. Jason