Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp368999ybh; Sun, 12 Jul 2020 08:58:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMNwaDWHrh90bzo7afguQooJI56oCxWw48wMzCnNrg9k8d8gKor/9l5L0LmU7EAUMkIVJU X-Received: by 2002:aa7:d7d0:: with SMTP id e16mr87775598eds.10.1594569534483; Sun, 12 Jul 2020 08:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594569534; cv=none; d=google.com; s=arc-20160816; b=UrZUvXe7My0jnv5rN0twLgw+pNsCNlla7pw+8cgb2YWB4CNsH/lQV9hovmDDCOxyVJ GmjJn6KX+2yvPag00qf2vUJx6ZmxgATuMYf2ca4OYDKcclD2lGSUkidIweNw89snY6wV UYLgajtbRVxdW9vnPJaSD4tR12rL2REExPg0T05bmOa4FVE+ktlo6ZJdMAcsyareLWrq RTORmsONbFuYHrzbEJTh8OSADCp/5u2oM71hZ//wb/oCXcXAsoaELkBkoOfpFRjOEvsW agNEL/OlSbmT44Iu5gPqHQ1zxeherOSjZC/Gm8p6B7zBM9mB02yggBoTMHQTFfK2At0R Ldbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=vgKCpCL0i7djS1qy+w/PbB/m1OH+/3f3qxrtRe4q6G8=; b=BYhHsDi694kpNFdHAGAlQiHah/dCxgXJ9bvMKPES1MzmkHoj1gD5JetrTfdGpNcwtw BQ6KB6G1vZkgnsMgpnwKZikxYIZpeBRml2xGWS5/aFNV8W1GVSp0hd2CR2CblEhycIAp EplBYaPzkbUZyATkH+rgVshUMu/lAe4RFWYbRqQgaNcar6Swb4IvlJujoh5qQb55UabU R8L2i+Q7RsQlWIXWQHb5HFWZ1JFYTQnRGJjZ/mfRnBYvRzUF4+KF0anZ5LX2m8k6Sd0T bffWkLruQsUiSbONTSxm7qZ2iBnddnR0UdS91ZaePnSSO22b0gMeFcHkI0I6+e0gJunD N5Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jLK9c0cw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si8208668edv.573.2020.07.12.08.58.31; Sun, 12 Jul 2020 08:58:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jLK9c0cw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729101AbgGLP4g (ORCPT + 99 others); Sun, 12 Jul 2020 11:56:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:44890 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728862AbgGLP4f (ORCPT ); Sun, 12 Jul 2020 11:56:35 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C862B2068F; Sun, 12 Jul 2020 15:56:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594569395; bh=qytnBpeo5SVmmrKysDJrmaQrOV+4aUUXlH6YcA2atXo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jLK9c0cwUji2AL9QM0O8ri9t+/eN7uc0xqTiv5xKlXcMek+++TydqAOy4wMJsy2MP aUxAZazB2kdCCJWcLXBenUDqGT8Ir0aHfHuFv8LqrHq4WW9hag7otuCUoBGUKiS4pT RguLSdz2S16fHqAYdlM6fWLphaBb1i8YLK+uG6zY= Date: Sun, 12 Jul 2020 17:56:31 +0200 From: Greg KH To: Gage Eads Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, magnus.karlsson@intel.com, bjorn.topel@intel.com Subject: Re: [PATCH 01/20] dlb2: add skeleton for DLB 2.0 driver Message-ID: <20200712155631.GB186665@kroah.com> References: <20200712134331.8169-1-gage.eads@intel.com> <20200712134331.8169-2-gage.eads@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200712134331.8169-2-gage.eads@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 12, 2020 at 08:43:12AM -0500, Gage Eads wrote: > +config INTEL_DLB2 > + tristate "Intel(R) Dynamic Load Balancer 2.0 Driver" > + depends on 64BIT && PCI && X86 Why just that platform? What about CONFIG_TEST for everything else? > + help > + This driver supports the Intel(R) Dynamic Load Balancer 2.0 (DLB 2.0) > + device. Are you sure you need the (R) in Kconfig texts everywhere? And a bit more info here would be nice, as no one knows if they have this or not, right? > --- /dev/null > +++ b/drivers/misc/dlb2/dlb2_hw_types.h > @@ -0,0 +1,29 @@ > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) Why dual licensed? I thought that Intel told me they were not going to do that anymore for any kernel code going forward as it was just such a pain and never actually helped anything. Has that changed? > + * Copyright(c) 2016-2020 Intel Corporation > + */ > + > +#ifndef __DLB2_HW_TYPES_H > +#define __DLB2_HW_TYPES_H > + > +#define DLB2_MAX_NUM_VDEVS 16 > +#define DLB2_MAX_NUM_DOMAINS 32 > +#define DLB2_MAX_NUM_LDB_QUEUES 32 /* LDB == load-balanced */ > +#define DLB2_MAX_NUM_DIR_QUEUES 64 /* DIR == directed */ > +#define DLB2_MAX_NUM_LDB_PORTS 64 > +#define DLB2_MAX_NUM_DIR_PORTS DLB2_MAX_NUM_DIR_QUEUES > +#define DLB2_MAX_NUM_LDB_CREDITS 8192 > +#define DLB2_MAX_NUM_DIR_CREDITS 2048 > +#define DLB2_MAX_NUM_HIST_LIST_ENTRIES 2048 > +#define DLB2_MAX_NUM_AQED_ENTRIES 2048 > +#define DLB2_MAX_NUM_QIDS_PER_LDB_CQ 8 > +#define DLB2_MAX_NUM_SEQUENCE_NUMBER_GROUPS 2 > +#define DLB2_MAX_NUM_SEQUENCE_NUMBER_MODES 5 > +#define DLB2_QID_PRIORITIES 8 > +#define DLB2_NUM_ARB_WEIGHTS 8 > +#define DLB2_MAX_WEIGHT 255 > +#define DLB2_NUM_COS_DOMAINS 4 > +#define DLB2_MAX_CQ_COMP_CHECK_LOOPS 409600 > +#define DLB2_MAX_QID_EMPTY_CHECK_LOOPS (32 * 64 * 1024 * (800 / 30)) > +#define DLB2_HZ 800000000 No tabs? How easy is that to read? :( greg k-h