Return-Path: Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id DD6E4C002A for ; Fri, 12 May 2023 15:51:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id A9A7942CDF for ; Fri, 12 May 2023 15:51:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A9A7942CDF Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=cjjrmnC+ X-Virus-Scanned: amavisd-new at osuosl.org X-Spam-Flag: NO X-Spam-Score: -4.402 X-Spam-Level: X-Spam-Status: No, score=-4.402 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UYnOFpPcCrrm for ; Fri, 12 May 2023 15:51:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 4332142CD7 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by smtp4.osuosl.org (Postfix) with ESMTPS id 4332142CD7 for ; Fri, 12 May 2023 15:51:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683906705; x=1715442705; h=message-id:date:mime-version:subject:to:references:from: in-reply-to:content-transfer-encoding; bh=jcNyWRNhdEO0uG+l3JMFs2M0yV22GiyE6jgaq5ySPNo=; b=cjjrmnC+H5Rmv7toU7LO9GbAM6U498O6MQkogiD9UTwWfkjvZf9tFVCo H5qGHhlekS2KBHhxLiWYXXxr+rgUX7KEyTZHRwwYkxq3dB30ZYggURfaN V31HskTqYLntKgkt6fjeQ7GZtjYN3SR5P1VC39wYUAu23ddJFlkUSIfSg dbz4Mkjx35nQ0XxtGHpY1q6KDf5t1gpWkEdbM7mdnsa/nm7KcOuP167uM WzUqTuc6Qm/6uvcppXJdixRwbzIWNBLmbXHgmW9ecErBv7BmOMB0oe16F KDjJuXo/x3On92KTEEicP7CnhMtl8HrtSJYmCbE4plgKQiONbEpE2wx/t g==; X-IronPort-AV: E=McAfee;i="6600,9927,10708"; a="414192067" X-IronPort-AV: E=Sophos;i="5.99,269,1677571200"; d="scan'208";a="414192067" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2023 08:51:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10708"; a="730862599" X-IronPort-AV: E=Sophos;i="5.99,269,1677571200"; d="scan'208";a="730862599" Received: from djiang5-mobl3.amr.corp.intel.com (HELO [10.213.160.55]) ([10.213.160.55]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2023 08:51:43 -0700 Message-ID: <168e01c4-7f06-5803-6f73-952bcde730a9@intel.com> Date: Fri, 12 May 2023 08:51:43 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.10.0 Content-Language: en-US To: Rex Zhang , fenghua.yu@intel.com, ramesh.thomas@intel.com, tony.zhu@intel.com, accel-config@lists.linuxfoundation.org References: <20230512053123.16960-1-rex.zhang@intel.com> From: Dave Jiang In-Reply-To: <20230512053123.16960-1-rex.zhang@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Accel-config] [PATCH v3 1/2] accel-config: Add defconfig.conf for default config X-BeenThere: accel-config@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: accel-config List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2023 15:51:47 -0000 On 5/11/23 10:31 PM, Rex Zhang wrote: > A default configuration file is necessary. Add defconfig.conf > as the default config file. Configure 1 DSA and 1 IAX device, > 1 kernel wq and 1 user wq for either DSA or IAX by default. > The Kernel wq is configured in dedicated mode while the user > wq in shared mode. > > Signed-off-by: Rex Zhang Reviewed-by: Dave Jiang > --- > contrib/configs/defconfig.conf | 109 +++++++++++++++++++++++++++++++++ > 1 file changed, 109 insertions(+) > create mode 100644 contrib/configs/defconfig.conf > > diff --git a/contrib/configs/defconfig.conf b/contrib/configs/defconfig.conf > new file mode 100644 > index 0000000..2d27fc2 > --- /dev/null > +++ b/contrib/configs/defconfig.conf > @@ -0,0 +1,109 @@ > +[ > + { > + "dev":"dsa0", > + "read_buffer_limit":0, > + "groups":[ > + { > + "dev":"group0.0", > + "grouped_workqueues":[ > + { > + "dev":"wq0.0", > + "mode":"dedicated", > + "size":8, > + "group_id":0, > + "priority":10, > + "block_on_fault":0, > + "max_batch_size":32, > + "max_transfer_size":16384, > + "type":"kernel", > + "driver_name":"dmaengine", > + "name":"wq0.0", > + } > + ], > + "grouped_engines":[ > + { > + "dev":"engine0.0", > + "group_id":0 > + } > + ] > + }, > + { > + "dev":"group0.1", > + "grouped_workqueues":[ > + { > + "dev":"wq0.1", > + "mode":"shared", > + "size":32, > + "group_id":1, > + "priority":10, > + "block_on_fault":1, > + "max_batch_size":32, > + "max_transfer_size":2097152, > + "type":"user", > + "driver_name":"user", > + "name":"wq0.1", > + "threshold":28 > + } > + ], > + "grouped_engines":[ > + { > + "dev":"engine0.1", > + "group_id":1 > + } > + ] > + } > + ] > + }, > + { > + "dev":"iax1", > + "groups":[ > + { > + "dev":"group1.0", > + "grouped_workqueues":[ > + { > + "dev":"wq1.0", > + "mode":"dedicated", > + "size":8, > + "group_id":2, > + "priority":10, > + "block_on_fault":0, > + "max_transfer_size":16384, > + "type":"kernel", > + "driver_name":"crypto", > + "name":"wq1.0", > + } > + ], > + "grouped_engines":[ > + { > + "dev":"engine1.0", > + "group_id":2 > + } > + ] > + }, > + { > + "dev":"group1.1", > + "grouped_workqueues":[ > + { > + "dev":"wq1.1", > + "mode":"shared", > + "size":32, > + "group_id":3, > + "priority":10, > + "block_on_fault":1, > + "max_transfer_size":4194304, > + "type":"user", > + "driver_name":"user", > + "name":"wq1.1", > + "threshold":28 > + } > + ], > + "grouped_engines":[ > + { > + "dev":"engine1.1", > + "group_id":3 > + } > + ] > + } > + ] > + } > +]