Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3647759rdg; Wed, 18 Oct 2023 01:33:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/GgrlJhpKt8jKmuykBd/jJm8bPOhnWCsn3Y27baQ+zgdP4/TdP4cfTgTkIiE0kT/b4RJO X-Received: by 2002:a54:4194:0:b0:3ae:156f:d319 with SMTP id 20-20020a544194000000b003ae156fd319mr4890267oiy.45.1697618009980; Wed, 18 Oct 2023 01:33:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697618009; cv=none; d=google.com; s=arc-20160816; b=yiWz5D5yZXQByxMI8/N0eaBQMNH5OXzYJQJ2cStdO2CpFYEh5muclcYiPgMGc3shYJ oudhWSbid/Sf11BOdE0S5RoT7h6M6FRVHjM0bfKhee5QMjYLT/lbwlng9foFEhty09lO 0OkT9om8Kwr3/8whd0Vcn1+AJPPK13Y7/l+s8rgpr0hmMthphGAVmzf6YusAaP4LMQ20 5xpLXBj+2TCh+w6CcqRg8e1N4lksbXhqtpFb8OKOk6QPB1ZIh9NPE9xYlPksVYki9dP9 eFwc3ZO9PCNOL6e3UvOO0afjgWDMxhl/rFvHbbc4RqPBWTMV0WD4LwxHCUgA5aE/tYBz B8xg== 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=4n4YOujCW8szM4f4IXWXowd/b4mZ3W2xHOLb0/4IUj8=; fh=NQsvnJnrOlaWrXm4606ZuzBRCJOJcA+VEJ6Cxb3Gq9w=; b=DMYoQr21WmEimbMTQzYxVoPf3KGKS0cHf78Jp99DuvI+/gjQu4NDvLWit0NPzpPICF It3cukbqTBnMW1ySnbnImG/axlOjhjw498euKHUUCOW/c2jE3WNu7YjEu5lpBNkJfyF9 xwDoa0tEesPj0fwLz7hwIzbeBT1hZCe4rv59FkDTkdcSspdSvVKkoaI94Dxv48KuGe47 WBpnUXQs0WtDvzMFUW2yHzE389euHcEXGBqn31zoXA7TIAgPWDe5mEAhlJl7J5KWM5oA 6G6cqJShtHCQEQXyQkn7wwekvteqE3DSGmx9xW0OVOx7U1Li0m7BYKWMweJTh0pule+G IeGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J+dUmYUx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id l133-20020a633e8b000000b0058974d3c292si1683227pga.191.2023.10.18.01.33.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 01:33:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J+dUmYUx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 3094380C6EBD; Wed, 18 Oct 2023 01:33:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344707AbjJRIdH (ORCPT + 99 others); Wed, 18 Oct 2023 04:33:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344717AbjJRIdF (ORCPT ); Wed, 18 Oct 2023 04:33:05 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F20F10C for ; Wed, 18 Oct 2023 01:33:04 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7A7A8C433C9; Wed, 18 Oct 2023 08:33:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697617984; bh=JCobLY4PQbNo/OadzXHobT7yufD2DypNJuvfESqM2HM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J+dUmYUxHYcwx3NNrG2uKOdo1olAr6xgCpPcdKOL/beEZge9lydlU4VBrkap+yii5 VDfsf1N+PoStk3ZXbFPhz5LRRS/KVeavE/C8J5YAUYxEodclmgJe7YsPN34J4+gkai Axmnddc2WTDolL9azg+IbfS7UO9rbbfmpEMQBqm0= Date: Wed, 18 Oct 2023 10:33:00 +0200 From: Greg Kroah-Hartman To: Saeed Mahameed Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, Leon Romanovsky , Jason Gunthorpe , Jiri Pirko , Saeed Mahameed Subject: Re: [PATCH 5/5] misc: mlx5ctl: Add umem reg/unreg ioctl Message-ID: <2023101841-wow-stardust-3c09@gregkh> References: <20231018081941.475277-1-saeed@kernel.org> <20231018081941.475277-6-saeed@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231018081941.475277-6-saeed@kernel.org> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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]); Wed, 18 Oct 2023 01:33:27 -0700 (PDT) On Wed, Oct 18, 2023 at 01:19:41AM -0700, Saeed Mahameed wrote: > +#define umem_dbg(__mdev, fmt, ...) \ > + dev_dbg((__mdev)->device, "mlx5ctl_umem: " fmt, ##__VA_ARGS__) That's really really odd, and should not be needed for dev_dbg() because you already have the driver name and file name and line information in that message. Why add yet-another-prefix? Please just use normal dev_dbg() lines. > +#define MLX5CTL_UMEM_MAX_MB 64 > + > +static size_t umem_num_pages(u64 addr, size_t len) > +{ > + return (size_t)((ALIGN(addr + len, PAGE_SIZE) - > + ALIGN_DOWN(addr, PAGE_SIZE))) / > + PAGE_SIZE; > +} We don't have a function or macro for this already? thanks, greg k-h