Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp961885rdb; Sun, 18 Feb 2024 22:18:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWmQl3r0Uo9j/XE7XGeyh2H5j0BAuQbX/YjbZh3URXVUcoL3AQ0SoUjGBI2or7BUdAMmJgce/hXVpkobaIG/xAX+MzU0gQ/lk71LQjVEg== X-Google-Smtp-Source: AGHT+IHPlyg/Qz6VTe9sWEIj64rkMEA0stvqlhkYMrJYWSKzjsKugHtehG7Z0EIZu9nunCn09ZHf X-Received: by 2002:a05:6102:2264:b0:470:5130:a5bd with SMTP id v4-20020a056102226400b004705130a5bdmr1612366vsd.0.1708323529491; Sun, 18 Feb 2024 22:18:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708323529; cv=pass; d=google.com; s=arc-20160816; b=OBw2pAB1dqK+F9syB8+wfBDgH/bzS8Nfdq2ks+QtqXc8JUOX3sCsaNn5tJY0oUSz4C opQY566nVU8jQmmSfXjbpsnPOXl02q9dSKB6SX7DXnnxw2HMbB8Ty4qJVC/R/aPJTS1Z bGb0fevtAOMBsTqN04dMkJEQYP1J7g5XVPV0FHZxkiQuH3au6Tiog/OecYIO3U7VPO6V bf/MPQ3X0gLY6iVR+3u/mMM8jMEdYEOwloqm2DiiOFlY17WJ4N1wiGmzMmHwvMvnjTVQ IC3jhoeeMl4/INnOCP1GYPi8gYj8megmUuGFIo+OB7cn52IHTro7RWUf5ctjOvlH8sZ0 V2SA== 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=8M09MUuuVIbI75QPYwQekwgWi6y8l1t0IpBeF5qbwnQ=; fh=UaL/LMyj9yjF2SuyIqTX5M9vx3RS2CIuQFpstCbzhkU=; b=aB83/pjuNLBleZ1iXOT8+yS3wlQ+aPc22J7KLe6OycWiCrlWf+N3kVt5pSHcoDIf/q cATeSkQ9qcJsKdTx+PRysyUHcezWEqDFUCC4LLW3f4uvwbiSvtUTl0SJb9lMS08UxY0B gffmn8WagCnO43kM80R5W0Iz4nWtOUmxosQro36n83u4x41EpHFBp+nuB3wavkDy+t2k LJi1ZO2VknqFIa2Om+K36gCUb387xa4/HYI7PQHmUktzW/qMdYcGaQbdcIxDLdBzPA0g JnWPibTgx/Teic7AFZpYH6PES0q7DOGLIQua0DmMc0ShMHobT0iEYNG/+HZTfwg/38bR eU3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IgE1BcYK; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-70764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t2-20020ac87602000000b0042c36f44980si5098853qtq.427.2024.02.18.22.18.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 22:18:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IgE1BcYK; arc=pass (i=1 dkim=pass dkdomain=linuxfoundation.org); spf=pass (google.com: domain of linux-kernel+bounces-70764-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3BF041C20B44 for ; Mon, 19 Feb 2024 06:18:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0933C200B7; Mon, 19 Feb 2024 06:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="IgE1BcYK" 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 EF6BA1CD38 for ; Mon, 19 Feb 2024 06:18:41 +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=1708323522; cv=none; b=dwfAgIEKb1ti8Z1NIHvxB3nk6PwmJ472abwjug/na5tvXC1pC7h0l0hsPhrdy6soQEhshhO0ENblrAl74VPb8Su0IvYVz/RnxJzyZGwT/VWxjtKIjKC3v5CpJSYDW6JUMcJ2J7nhct0SI9CvQoFhiB3GnNRwTKes5LjeLoou/Gs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708323522; c=relaxed/simple; bh=lEf5GE703li3fVw5B+qctZ3bGPCdTQaVbHU7CRuRmF0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=oQYTL/cPb+RSjc5ULsOaDKowQqfT98S2ylAKTgoklBqfqYmJiJ9KqiOw+JlAjnMLichFs4rmoTFXv8u+gcsZGaaOomMOM1vNCYKSw1zfSyJCfqH8C4ZxEFPL+R5nZAvPiFzhvQZIjVsrKJbHMFpqYdnREJMDFsQ5Bca17Y/SowM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IgE1BcYK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C0ADC433F1; Mon, 19 Feb 2024 06:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1708323521; bh=lEf5GE703li3fVw5B+qctZ3bGPCdTQaVbHU7CRuRmF0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IgE1BcYK8DAc6sS5Ul83IWkKau+YEq+zJcn3+nUouqFojDKNGL3j357zvcxvZZC5w /iva5EjbzVNwUMRQHCO9+96gWANriOiotPIfAkQxuJOPnWWC90XV9mLliWShBOgQqa aiVSLTolMrk4zy9nMV/DS5wamdEoVRi2+q6FTsBU= Date: Mon, 19 Feb 2024 07:18:38 +0100 From: Greg KH To: Vamsi Krishna Attunuru Cc: "arnd@arndb.de" , "linux-kernel@vger.kernel.org" Subject: Re: [EXT] Re: [PATCH v2 1/1] misc: mrvl-cn10k-dpi: add Octeon CN10K dpi driver Message-ID: <2024021913-aftermost-footnote-cd6e@gregkh> References: <20240216103225.1255684-1-vattunuru@marvell.com> <2024021713-corrode-landline-e186@gregkh> 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, Feb 19, 2024 at 05:03:38AM +0000, Vamsi Krishna Attunuru wrote: > > -----Original Message----- > > From: Greg KH > > Sent: Saturday, February 17, 2024 1:44 PM > > To: Vamsi Krishna Attunuru > > Cc: arnd@arndb.de; linux-kernel@vger.kernel.org > > Subject: [EXT] Re: [PATCH v2 1/1] misc: mrvl-cn10k-dpi: add Octeon CN10K > > dpi driver Why is this here? > > External Email > > > > ---------------------------------------------------------------------- > > On Fri, Feb 16, 2024 at 02:32:25AM -0800, Vamsi Attunuru wrote: > > > Adds a driver for Marvell CN10K DPI(DMA Engine) device's physical > > > function which initializes DPI DMA hardware's global configuration and > > > enables hardware mailbox channels between physical function (PF) and > > > it's virtual functions (VF). VF device drivers (User space drivers) > > > use this hw mailbox to communicate any required device configuration > > > on it's respective VF device. Accordingly, this DPI PF driver provision the VF > > device resources. > > > > > > At the hardware level, the DPI physical function (PF) acts as a > > > management interface to setup the VF device resources, VF devices are > > > only provisioned to handle or control the actual DMA Engine's data transfer > > capabilities. > > > > > > Signed-off-by: Vamsi Attunuru > > > --- > > > > > > Changes V1 -> V2: > > > - Fixed return values and busy-wait loops > > > - Merged .h file into .c file > > > - Fixed directory structure > > > - Removed module params > > > - Registered the device as misc device > > > > Why register as a misc device if you don't actually use it at all? That feels > > pointless and extra code and confusion for everyone as you have created a > > device node in the system that will just fail all operations made on it. > > > > confused, > > > > Module params are removed in V2, planning to use device node to pass the device configuration tuning parameters and other ops, can you please also share other v2 review comments, I will plan to address it in V3. How is a reviewer supposed to know that you are going to use unused code sometime in the future when you do not say that here? What would you do if you had to review such code? You would stop there and wait for it all to make sense. Please try to get some internal review next time before you send out your next version so that you don't waste other's time reviewing dead code like this. thanks, greg k-h