Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp327927rwi; Wed, 12 Oct 2022 21:22:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7bvIdkMqsu99MKvE0dYrxowQA7pXPjNaecw/E/+zSXWM3fYD9Ktcj1x3YYvsblMlymDX3Q X-Received: by 2002:a17:906:5a51:b0:78d:3c82:740f with SMTP id my17-20020a1709065a5100b0078d3c82740fmr25077242ejc.346.1665634979755; Wed, 12 Oct 2022 21:22:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665634979; cv=none; d=google.com; s=arc-20160816; b=tCZX/yzLHO8gToAjz74Zod+d99+blGtfVJSzdE03ITureyG5JKAkGvDJOBA64tWmhl wqvBZjWIh1um9N7hlXIPLC2XJpmZS7b42OkYO41ttARdXU7OAl795MqoOtdA4N0kFFgc 79SttOyypDSayuWlrtMqzWeS/Wwe0H/1wUXpKb8QZZh0mjD3vSpdqOE7nONgFwrCdOtt jBZoHgwUf/TeUosnd2YWPlTibShGJa7Kfh4Lko6OZ3JYSDEVlvyQUzul551ST0NVtSPF Rc6UAAGqqBpPaOEjjH1mo0ynOyyu7d6Z4oWGdOKCk8UQozAm5kmx5DACoyxq/CDt1wtI l9hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=lBeQwqjXzN3pnjmug5AoUIgi34hiXvQZyQDaZ+yRCfE=; b=A2i0ifbzyKJeonLsIE1Bg9XZOeSCZyZjtLPPjjE2ESzxxViwQU8qVwUeXgaozXWvck mxqU+zVvvFKtHnVk0nrqrq+FDcgTvovxHvxM8zbF0j5POADh4aRuIUgeD3mlvDkSJd85 Chv3FhO1LzglS92V000Rb9hF+AWDf4xo6iOIs693p2dNTFFORavZHHytPIp//q41doqK 4sDuKWnXr+snCIuedqFeNRMUCwKtcOLtWpxMxLLkYh/lVjq9DH94Kgw19HT/YUFGJjsF J53av6sTcl2wZNg1fgklJeHO4oLLbbcP1GS1lmfceItMuEnldzJ+uuQUegJULd3GTQyF cX0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=n3ro9Lxs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b19-20020a170906661300b0073db9474d06si17486791ejp.325.2022.10.12.21.22.33; Wed, 12 Oct 2022 21:22:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=n3ro9Lxs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229552AbiJMEPY (ORCPT + 99 others); Thu, 13 Oct 2022 00:15:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiJMEPU (ORCPT ); Thu, 13 Oct 2022 00:15:20 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5EFE7A4862; Wed, 12 Oct 2022 21:15:15 -0700 (PDT) Received: by linux.microsoft.com (Postfix, from userid 1127) id 25FD220F0F7B; Wed, 12 Oct 2022 21:15:15 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 25FD220F0F7B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1665634515; bh=lBeQwqjXzN3pnjmug5AoUIgi34hiXvQZyQDaZ+yRCfE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n3ro9LxsrP1+3BsKlkmkvbeQMDu8Fxjlo2bSUWgnW8zm1yIv3zyfjVbFhYLcDdcq+ PCcBPKr/cQUUCXgSLWeOaX2kU7lVMCp3dDG4tixkKUdt8Y1by3/vVhE5APM194wffH RM4gUmPfCUPXArhAMjgZ3tq0tJfMxj0v0NME8DAg= Date: Wed, 12 Oct 2022 21:15:15 -0700 From: Saurabh Singh Sengar To: Greg KH Cc: ssengar@microsoft.com, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, longli@microsoft.com, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, mikelley@microsoft.com Subject: Re: [PATCH] uio_hv_generic: Enable support for slower vmbus device channels Message-ID: <20221013041515.GA12822@linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net> References: <1665575806-27990-1-git-send-email-ssengar@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 12, 2022 at 05:54:07PM +0200, Greg KH wrote: > On Wed, Oct 12, 2022 at 05:52:05PM +0200, Greg KH wrote: > > On Wed, Oct 12, 2022 at 04:56:46AM -0700, Saurabh Sengar wrote: > > > This patch enables support for slower vmbus channels, which consist > > > of following 3 changes : > > > 1. Support for hypercalls > > > 2. Module params for recv/send buffer sizes > > > 3. Module param for custom ring buffer sizes > > > > Even if this all was ok, you are doing 3 things all in one change, > > that's not allowed at all, you all know this. > > > > Anyway, no new module parameters, this is not the 1990's, we have much > > better ways to do this properly (hint, module parameters modify code, > > you want to modify the options of a specific device.) > > Also, you give no good reason for why this is needed at all, nor how > anyone would use these options and why they would need to. > > The kernel should "just work" and not require manual intervention by a > user. Dynamically fix this based on the device, do NOT force a user to > have to attempt to "tune" anything, that will never work properly over > time, AND you are being lazy and forcing each individual user to do the > work, making more effort needed overall than just doing it properly in > the kernel. Let me find a method if we can avoid using module parameters, this may result in hardcoding values in the vmbus driver code for various devices, giving less flexibilty to user. Meanwhile I figure out this, we can go ahead with "support for hypercalls", I will send a new patch for it. Regards, Saurabh > > thanks, > > greg k-h