DPDK patches and discussions
 help / color / mirror / Atom feed
From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: Nicolas Chautru <nicolas.chautru@intel.com>, dev@dpdk.org
Cc: hernan.vargas@intel.com
Subject: Re: [PATCH v1 9/9] baseband/acc: remove printf from PMD function
Date: Fri, 10 Feb 2023 10:45:13 +0100	[thread overview]
Message-ID: <0fd8dddb-863b-a439-2855-fe24d052918f@redhat.com> (raw)
In-Reply-To: <20230209221929.265059-10-nicolas.chautru@intel.com>



On 2/9/23 23:19, Nicolas Chautru wrote:
> Replacing usage of printf in companion function for
> bbdev-test by rte_log.

I think it could be backported. If you agree please add Fixes tag and Cc
stable.

> Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
> ---
>   drivers/baseband/acc/rte_acc100_pmd.c | 18 +++++++++---------
>   drivers/baseband/acc/rte_vrb_pmd.c    |  2 +-
>   2 files changed, 10 insertions(+), 10 deletions(-)

For the patch itself:
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>

Thanks,
Maxime


> diff --git a/drivers/baseband/acc/rte_acc100_pmd.c b/drivers/baseband/acc/rte_acc100_pmd.c
> index 36f6fec5ad..40b5eaf089 100644
> --- a/drivers/baseband/acc/rte_acc100_pmd.c
> +++ b/drivers/baseband/acc/rte_acc100_pmd.c
> @@ -4347,7 +4347,7 @@ poweron_cleanup(struct rte_bbdev *bbdev, struct acc_device *d,
>   {
>   	int i, template_idx, qg_idx;
>   	uint32_t address, status, value;
> -	printf("Need to clear power-on 5GUL status in internal memory\n");
> +	rte_bbdev_log(WARNING, "Need to clear power-on 5GUL status in internal memory");
>   	/* Reset LDPC Cores */
>   	for (i = 0; i < ACC100_ENGINES_MAX; i++)
>   		acc_reg_write(d, HWPfFecUl5gCntrlReg +
> @@ -4421,7 +4421,7 @@ poweron_cleanup(struct rte_bbdev *bbdev, struct acc_device *d,
>   	/* Force each engine which is in unspecified state */
>   	for (i = 0; i < num_failed_engine; i++) {
>   		int failed_engine = engines_to_restart[i];
> -		printf("Force engine %d\n", failed_engine);
> +		rte_bbdev_log(WARNING, "Force engine %d", failed_engine);
>   		for (template_idx = ACC100_SIG_UL_5G;
>   				template_idx <= ACC100_SIG_UL_5G_LAST;
>   				template_idx++) {
> @@ -4450,7 +4450,7 @@ poweron_cleanup(struct rte_bbdev *bbdev, struct acc_device *d,
>   		acc_reg_write(d, HWPfQmgrIngressAq + 0x100, enq_req.val);
>   		usleep(ACC_LONG_WAIT * 100);
>   		if (desc->req.word0 != 2)
> -			printf("DMA Response %#"PRIx32"\n", desc->req.word0);
> +			rte_bbdev_log(WARNING, "DMA Response %#"PRIx32"\n", desc->req.word0);
>   	}
>   
>   	/* Reset LDPC Cores */
> @@ -4482,7 +4482,7 @@ poweron_cleanup(struct rte_bbdev *bbdev, struct acc_device *d,
>   		} else
>   			acc_reg_write(d, address, 0);
>   	}
> -	printf("Number of 5GUL engines %d\n", numEngines);
> +	rte_bbdev_log(INFO, "Number of 5GUL engines %d", numEngines);
>   
>   	rte_free(d->sw_rings_base);
>   	usleep(ACC_LONG_WAIT);
> @@ -4671,7 +4671,7 @@ acc100_configure(const char *dev_name, struct rte_acc_conf *conf)
>   		} else
>   			acc_reg_write(d, address, 0);
>   	}
> -	printf("Number of 5GUL engines %d\n", numEngines);
> +	rte_bbdev_log(INFO, "Number of 5GUL engines %d", numEngines);
>   	/* 4GDL */
>   	numQqsAcc += numQgs;
>   	numQgs	= conf->q_dl_4g.num_qgroups;
> @@ -4801,7 +4801,7 @@ acc100_configure(const char *dev_name, struct rte_acc_conf *conf)
>   		version += acc_reg_read(d,
>   				HWPfDdrPhyIdtmFwVersion + 4 * i) << (8 * i);
>   	if (version != ACC100_PRQ_DDR_VER) {
> -		printf("* Note: Not on DDR PRQ version %8x != %08x\n",
> +		rte_bbdev_log(ERR, "* Note: Not on DDR PRQ version %8x != %08x",
>   				version, ACC100_PRQ_DDR_VER);
>   	} else if (firstCfg) {
>   		/* ---- DDR configuration at boot up --- */
> @@ -4871,7 +4871,7 @@ acc100_configure(const char *dev_name, struct rte_acc_conf *conf)
>   			if (value & 1)
>   				break;
>   		}
> -		printf("DDR Training completed in %d ms", i);
> +		rte_bbdev_log(INFO, "DDR Training completed in %d ms", i);
>   		/* Enable Memory Controller */
>   		acc_reg_write(d, HWPfDdrUmmcCtrl, 0x401);
>   		/* Release AXI interface reset */
> @@ -5047,7 +5047,7 @@ acc101_configure(const char *dev_name, struct rte_acc_conf *conf)
>   		} else
>   			acc_reg_write(d, address, 0);
>   	}
> -	printf("Number of 5GUL engines %d\n", numEngines);
> +	rte_bbdev_log(INFO, "Number of 5GUL engines %d", numEngines);
>   	/* 4GDL */
>   	numQqsAcc += numQgs;
>   	numQgs	= conf->q_dl_4g.num_qgroups;
> @@ -5185,7 +5185,7 @@ rte_acc_configure(const char *dev_name, struct rte_acc_conf *conf)
>   		return -ENODEV;
>   	}
>   	struct rte_pci_device *pci_dev = RTE_DEV_TO_PCI(bbdev->device);
> -	printf("Configure dev id %x\n", pci_dev->id.device_id);
> +	rte_bbdev_log(INFO, "Configure dev id %x", pci_dev->id.device_id);
>   	if (pci_dev->id.device_id == ACC100_PF_DEVICE_ID)
>   		return acc100_configure(dev_name, conf);
>   	else if (pci_dev->id.device_id == ACC101_PF_DEVICE_ID)
> diff --git a/drivers/baseband/acc/rte_vrb_pmd.c b/drivers/baseband/acc/rte_vrb_pmd.c
> index 18b5dab25f..c37f725415 100644
> --- a/drivers/baseband/acc/rte_vrb_pmd.c
> +++ b/drivers/baseband/acc/rte_vrb_pmd.c
> @@ -3633,7 +3633,7 @@ vrb1_configure(const char *dev_name, struct rte_acc_conf *conf)
>   		} else
>   			acc_reg_write(d, address, 0);
>   	}
> -	printf("Number of 5GUL engines %d\n", numEngines);
> +	rte_bbdev_log(INFO, "Number of 5GUL engines %d", numEngines);
>   	/* 4GDL */
>   	numQqsAcc += numQgs;
>   	numQgs	= conf->q_dl_4g.num_qgroups;


  reply	other threads:[~2023-02-10  9:45 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-09 22:19 [PATCH v1 0/9] baseband/acc: VRB PMD fixes Nicolas Chautru
2023-02-09 22:19 ` [PATCH v1 1/9] baseband/acc: protection for TB negative scenario Nicolas Chautru
2023-02-10  8:17   ` Maxime Coquelin
2023-02-10 17:28     ` Chautru, Nicolas
2023-02-10 17:58   ` [PATCH v2 0/9] baseband/acc: VRB PMD fixes Nicolas Chautru
2023-02-10 17:58     ` [PATCH v2 1/9] baseband/acc: protection for TB negative scenario Nicolas Chautru
2023-02-23  8:56       ` Maxime Coquelin
2023-02-23 17:25         ` Chautru, Nicolas
2023-02-10 17:58     ` [PATCH v2 2/9] baseband/acc: remove interrupt support on VRB1 Nicolas Chautru
2023-02-10 17:58     ` [PATCH v2 3/9] baseband/acc: add explicit mbuf append for soft output Nicolas Chautru
2023-02-22 11:20       ` Maxime Coquelin
2023-02-10 17:58     ` [PATCH v2 4/9] baseband/acc: prevent to dequeue more than requested Nicolas Chautru
2023-02-10 17:58     ` [PATCH v2 5/9] baseband/acc: fix iteration counter in TB mode Nicolas Chautru
2023-02-10 17:58     ` [PATCH v2 6/9] baseband/acc: fix potential arithmetic overflow Nicolas Chautru
2023-02-10 17:58     ` [PATCH v2 7/9] baseband/acc: add support for 4GUL CRC drop in VRB PMD Nicolas Chautru
2023-02-10 17:58     ` [PATCH v2 8/9] baseband/acc: add support for 4GUL with SO and TB Nicolas Chautru
2023-02-10 17:58     ` [PATCH v2 9/9] baseband/acc: remove printf from PMD function Nicolas Chautru
2023-02-23  9:28     ` [PATCH v2 0/9] baseband/acc: VRB PMD fixes Maxime Coquelin
2023-02-09 22:19 ` [PATCH v1 2/9] baseband/acc: add support for 4GUL with SO and TB Nicolas Chautru
2023-02-10  8:30   ` Maxime Coquelin
2023-02-10 17:29     ` Chautru, Nicolas
2023-02-09 22:19 ` [PATCH v1 3/9] baseband/acc: remove interrupt support on VRB1 Nicolas Chautru
2023-02-10  8:31   ` Maxime Coquelin
2023-02-09 22:19 ` [PATCH v1 4/9] baseband/acc: add explicit mbuf apend for soft output Nicolas Chautru
2023-02-10  8:40   ` Maxime Coquelin
2023-02-10 17:35     ` Chautru, Nicolas
2023-02-09 22:19 ` [PATCH v1 5/9] baseband/acc: prevent to dequeue more than requested Nicolas Chautru
2023-02-10  9:39   ` Maxime Coquelin
2023-02-09 22:19 ` [PATCH v1 6/9] baseband/acc: fix iteration counter in TB mode Nicolas Chautru
2023-02-10  9:40   ` Maxime Coquelin
2023-02-09 22:19 ` [PATCH v1 7/9] baseband/acc: fix potential arithmetic overflow Fix potential issue of overflow causing coverity warning Nicolas Chautru
2023-02-10  9:41   ` Maxime Coquelin
2023-02-09 22:19 ` [PATCH v1 8/9] baseband/acc: add support for 4GUL CRC drop in VRB PMD Nicolas Chautru
2023-02-10  9:43   ` Maxime Coquelin
2023-02-09 22:19 ` [PATCH v1 9/9] baseband/acc: remove printf from PMD function Nicolas Chautru
2023-02-10  9:45   ` Maxime Coquelin [this message]
2023-02-10 17:46     ` Chautru, Nicolas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0fd8dddb-863b-a439-2855-fe24d052918f@redhat.com \
    --to=maxime.coquelin@redhat.com \
    --cc=dev@dpdk.org \
    --cc=hernan.vargas@intel.com \
    --cc=nicolas.chautru@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).