From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 36D5941B8D; Tue, 31 Jan 2023 11:07:10 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 245B140DFB; Tue, 31 Jan 2023 11:07:10 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id BC3664067B for ; Tue, 31 Jan 2023 11:07:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675159628; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a9Ugz1FLg4TTG6QUlP5O+i6pIsJviy4knL6J+9lXzcI=; b=LKMGJQ9b2+av4QlPXjPVNax2lNOnXjT890O0tBtvJNQUc1OoJvwtq8UOBGm5S7j3147T2l AYaf4R6nWojTI1dSpnhnAT0jxohPbqcjr7dHwXS79fO827ahn9s0Plzr/R+2G/1+b16Dn3 cLsVVnhgMEuPuqS6SwDtzYnUGnDq4CM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-607-akloRFGmMYW4lZnTO35_yA-1; Tue, 31 Jan 2023 05:07:03 -0500 X-MC-Unique: akloRFGmMYW4lZnTO35_yA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C0E0C800186; Tue, 31 Jan 2023 10:07:02 +0000 (UTC) Received: from [10.39.208.22] (unknown [10.39.208.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8977F492C3E; Tue, 31 Jan 2023 10:07:01 +0000 (UTC) Message-ID: <3e0cf971-d5c7-a603-58e8-739f9a99c460@redhat.com> Date: Tue, 31 Jan 2023 11:07:00 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v1 06/13] test/bbdev: log capture from queue stop To: Hernan Vargas , dev@dpdk.org, gakhil@marvell.com, trix@redhat.com Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com References: <20230117165023.20567-1-hernan.vargas@intel.com> <20230117165023.20567-7-hernan.vargas@intel.com> From: Maxime Coquelin In-Reply-To: <20230117165023.20567-7-hernan.vargas@intel.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 1/17/23 17:50, Hernan Vargas wrote: > Improve log capture in bbdev not requiring standard output. > > Signed-off-by: Hernan Vargas > --- > app/test-bbdev/test_bbdev_perf.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c > index 36ea399938..ffb2de0604 100644 > --- a/app/test-bbdev/test_bbdev_perf.c > +++ b/app/test-bbdev/test_bbdev_perf.c > @@ -889,6 +889,7 @@ add_bbdev_dev(uint8_t dev_id, struct rte_bbdev_info *info, > ret = rte_bbdev_queue_configure(ad->dev_id, queue_id, > &qconf); > } > + rte_bbdev_queue_start(ad->dev_id, queue_id); > if (ret != 0) { > printf("All queues on dev %u allocated: %u\n", > dev_id, queue_id); > @@ -897,8 +898,8 @@ add_bbdev_dev(uint8_t dev_id, struct rte_bbdev_info *info, > ad->queue_ids[queue_id] = queue_id; > } > TEST_ASSERT(queue_id != 0, > - "ERROR Failed to configure any queues on dev %u", > - dev_id); > + "ERROR Failed to configure any queues on dev %u\n" > + "\tthe device may not support or have been configured", dev_id); > ad->nb_queues = queue_id; > > set_avail_op(ad, op_type); > @@ -3844,6 +3845,7 @@ throughput_pmd_lcore_ldpc_dec(void *arg) > TEST_ASSERT_SUCCESS(ret, "Validation failed!"); > } > > + rte_bbdev_queue_stop(tp->dev_id, queue_id); The patch is doing more than advertised. > rte_bbdev_dec_op_free_bulk(ops_enq, num_ops); > > double tb_len_bits = calc_ldpc_dec_TB_size(ref_op); Maxime