Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7398979rwd; Tue, 20 Jun 2023 00:15:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5495bFPib4i5reNE6FEygckq61BvTL2nOeE3kLM7CguMCvTeQzBupzoaNSGxrFIIPDBRwt X-Received: by 2002:a05:6359:2a5:b0:12b:dc58:159a with SMTP id ek37-20020a05635902a500b0012bdc58159amr5354836rwb.14.1687245345238; Tue, 20 Jun 2023 00:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687245345; cv=none; d=google.com; s=arc-20160816; b=TLoUPl0vpa5t7heYWs3csFWvLTlH5xkEDT/mBHUFMDxBbogZkxEE2cvSE/pRfEQByk 9pS71hdGkmKC2ASBEM4BctnJfzgZmKVFOqzitApvQBFWLp6/NYm7BZpGsdd9F6ALIWp/ lEYI1Qwt/KvWm7zUo6as1KYMoiiMEaTdxRfMtrVlMZvhfQusQo6g05YPi44i2+PNQdn/ 9KbFd9rCGCviWRgAHBz3ibWkXNW+dnvMaD9nlYMuCeArkTx2T8ATCFiF/mZHeoWyLYsj Ey8CBCnzuKOczdnSabnYOTZdWta1UsUWHJMTZizQq7D1AosQkIk/WYKQx4LEFEGFtsFL ESXw== 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=zVeLgWu6T1EOzH9CnldSTOrix8U8JUo93JPcNRsjAPM=; b=M0jUTNI4cOr0MA5Q/jSrFQmdi/hy4h7jsRVBRF5Idd4uoE/hjjOfSmscmgLfSRc8+i 3SrSLfTqBN5LDWxf/x96/siNe+pliVAjxRO86inM0BApc408GVUE6FNPgqdInHpcmFJJ YejyBxPGJ3EyiUh4r6BXxMckPYNZquKv9YGCPnMzF2/ZxFTk80b/ln7oIBRmnYaORIBU UoGpjyCJbzUZgTgPjo8HczV4eqJq9FV4XXBRLeAN1tpLUz3YjGnCLuXNhhOet02KC9mu jAi+veaX4N38tvSv59sG1Iv42Jf4RpKU7+EO3UThVvCDl1Fz47SYItCX453eQJggKSjt ObxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YYHRqV7N; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s25-20020aa78bd9000000b0064d2b749b3csi1130468pfd.71.2023.06.20.00.15.32; Tue, 20 Jun 2023 00:15:45 -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=@linuxfoundation.org header.s=korg header.b=YYHRqV7N; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230490AbjFTHHK (ORCPT + 99 others); Tue, 20 Jun 2023 03:07:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbjFTHHH (ORCPT ); Tue, 20 Jun 2023 03:07:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 256D510F9; Tue, 20 Jun 2023 00:07:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AEEA761028; Tue, 20 Jun 2023 07:07:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAD73C433C0; Tue, 20 Jun 2023 07:07:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687244822; bh=GR6mhcNPQGfkgf7foRclZExHB5KiyAu6DP74hdSupHI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YYHRqV7NGao0+/4qGNuIYHGB7c2vQTiWCmItJ4yhidm8FjqgK5mH0b1OpmvjwZHA1 pAlF3lBlSnWan838AKvkOAAqtL8/0MkeQhKPQZNpcxgm0nVgUd6n70zqNd4p8bEx1v rFikaycLUbi9MorxHDXIMgYoe1l2ruTkLLUfR4/I= Date: Tue, 20 Jun 2023 09:06:57 +0200 From: Greg KH To: Saurabh Singh Sengar Cc: Saurabh Sengar , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , "Michael Kelley (LINUX)" , "corbet@lwn.net" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-doc@vger.kernel.org" Subject: Re: [EXTERNAL] Re: [PATCH v2 1/5] uio: Add hv_vmbus_client driver Message-ID: <2023062007-coral-nicotine-856c@gregkh> References: <1686766512-2589-1-git-send-email-ssengar@linux.microsoft.com> <1686766512-2589-2-git-send-email-ssengar@linux.microsoft.com> <2023061419-probe-velocity-b276@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, Jun 20, 2023 at 05:19:14AM +0000, Saurabh Singh Sengar wrote: > > And you are defining a "global" variable that can be modified by an individual > > sysfs file for ANY device bound to this driver, messing with the other device's > > ring buffer size, right? This needs to be per-device, or explain in huge detail > > here why not. > > The global variable is expected to be set by userspace per device before opening, the > particular uio device. For a particular Hyper-v device this value be same, and once > device is open the ring buffer is allocated and there won't be any impact afterwards > changing it. I can elaborate more of this in sysfs documentation. That's totally confusing, please make this per-device properly, as you will find out when you try to document it, what you are describing is unlike any other per-device interface we have. greg k-h