DPDK patches and discussions
 help / color / mirror / Atom feed
From: Akhil Goyal <gakhil@marvell.com>
To: Nagadheeraj Rottela <rnagadheeraj@marvell.com>,
	"fanzhang.oss@gmail.com" <fanzhang.oss@gmail.com>,
	Ashish Gupta <ashishg@marvell.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
	Nagadheeraj Rottela <rnagadheeraj@marvell.com>
Subject: RE: [PATCH v3 7/7] compress/nitrox: add stateful request support
Date: Thu, 29 Feb 2024 18:00:42 +0000	[thread overview]
Message-ID: <CO6PR18MB4484D133E3F3AEBD7F5ACD63D85F2@CO6PR18MB4484.namprd18.prod.outlook.com> (raw)
In-Reply-To: <20240215124856.26797-8-rnagadheeraj@marvell.com>

> +static void nitrox_dump_zip_instr(struct nitrox_zip_instr *instr,
> +				  union nitrox_zip_zptr *hptr_arr,
> +				  union nitrox_zip_zptr *iptr_arr,
> +				  union nitrox_zip_zptr *optr_arr)
> +{
> +	uint64_t value;
> +	int i = 0;
> +
> +	if (!rte_log_can_log(nitrox_logtype, RTE_LOG_DEBUG))
> +		return;
> +
> +	fprintf(stderr, "\nZIP instruction..(%p)\n", instr);
> +	fprintf(stderr, "\tWORD0 = 0x%016"PRIx64"\n", instr->w0.u64);
> +	fprintf(stderr, "\t\tTOL        = %d\n", instr->w0.tol);
> +	fprintf(stderr, "\t\tEXNUM      = %d\n", instr->w0.exn);
> +	fprintf(stderr, "\t\tEXBITS     = %x\n", instr->w0.exbits);
> +	fprintf(stderr, "\t\tCA         = %d\n", instr->w0.ca);
> +	fprintf(stderr, "\t\tSF         = %d\n", instr->w0.sf);
> +	fprintf(stderr, "\t\tSS         = %d\n", instr->w0.ss);
> +	fprintf(stderr, "\t\tCC         = %d\n", instr->w0.cc);
> +	fprintf(stderr, "\t\tEF         = %d\n", instr->w0.ef);
> +	fprintf(stderr, "\t\tBF         = %d\n", instr->w0.bf);
> +	fprintf(stderr, "\t\tCO         = %d\n", instr->w0.co);
> +	fprintf(stderr, "\t\tDS         = %d\n", instr->w0.ds);
> +	fprintf(stderr, "\t\tDG         = %d\n", instr->w0.dg);
> +	fprintf(stderr, "\t\tHG         = %d\n", instr->w0.hg);
> +	fprintf(stderr, "\n");
> +
> +	fprintf(stderr, "\tWORD1 = 0x%016"PRIx64"\n", instr->w1.u64);
> +	fprintf(stderr, "\t\tHL         = %d\n", instr->w1.hl);
> +	fprintf(stderr, "\t\tADLERCRC32 = 0x%08x\n", instr->w1.adlercrc32);
> +	fprintf(stderr, "\n");
> +
> +	value = instr->w2.cptr;
> +	fprintf(stderr, "\tWORD2 = 0x%016"PRIx64"\n", instr->w2.u64);
> +	fprintf(stderr, "\t\tCPTR = 0x%11"PRIx64"\n", value);
> +	fprintf(stderr, "\n");
> +
> +	value = instr->w3.hptr;
> +	fprintf(stderr, "\tWORD3 = 0x%016"PRIx64"\n", instr->w3.u64);
> +	fprintf(stderr, "\t\tHLEN       = %d\n", instr->w3.hlen);
> +	fprintf(stderr, "\t\tHPTR = 0x%11"PRIx64"\n", value);
> +
> +	if (instr->w0.hg && hptr_arr) {
> +		for (i = 0; i < instr->w3.hlen; i++) {
> +			value = hptr_arr[i].s.addr;
> +			fprintf(stderr, "\t\t\tZPTR[%d] : Length = %d Addr =
> 0x%11"PRIx64"\n",
> +				     i, hptr_arr[i].s.length, value);
> +		}
> +	}
> +
> +	fprintf(stderr, "\n");
> +
> +	value = instr->w4.iptr;
> +	fprintf(stderr, "\tWORD4 = 0x%016"PRIx64"\n", instr->w4.u64);
> +	fprintf(stderr, "\t\tILEN       = %d\n", instr->w4.ilen);
> +	fprintf(stderr, "\t\tIPTR       = 0x%11"PRIx64"\n", value);
> +	if (instr->w0.dg && iptr_arr) {
> +		for (i = 0; i < instr->w4.ilen; i++) {
> +			value = iptr_arr[i].s.addr;
> +			fprintf(stderr, "\t\t\tZPTR[%d] : Length = %d Addr =
> 0x%11"PRIx64"\n",
> +				     i, iptr_arr[i].s.length, value);
> +		}
> +	}
> +
> +	fprintf(stderr, "\n");
> +
> +	value = instr->w5.optr;
> +	fprintf(stderr, "\tWORD5 = 0x%016"PRIx64"\n", instr->w5.u64);
> +	fprintf(stderr, "\t\t OLEN = %d\n", instr->w5.olen);
> +	fprintf(stderr, "\t\t OPTR = 0x%11"PRIx64"\n", value);
> +	if (instr->w0.ds && optr_arr) {
> +		for (i = 0; i < instr->w5.olen; i++) {
> +			value = optr_arr[i].s.addr;
> +			fprintf(stderr, "\t\t\tZPTR[%d] : Length = %d Addr =
> 0x%11"PRIx64"\n",
> +				     i, optr_arr[i].s.length, value);
> +		}
> +	}
> +
> +	fprintf(stderr, "\n");
> +
> +	value = instr->w6.rptr;
> +	fprintf(stderr, "\tWORD6 = 0x%016"PRIx64"\n", instr->w6.u64);
> +	fprintf(stderr, "\t\tRPTR = 0x%11"PRIx64"\n", value);
> +	fprintf(stderr, "\n");
> +
> +	fprintf(stderr, "\tWORD7 = 0x%016"PRIx64"\n", instr->w7.u64);
> +	fprintf(stderr, "\t\tGRP        = %x\n", instr->w7.grp);
> +	fprintf(stderr, "\t\tADDR_MSB   = 0x%5x\n", instr->w7.addr_msb);
> +	fprintf(stderr, "\n");
> +}
> +
> +static void nitrox_dump_zip_result(struct nitrox_zip_instr *instr,
> +				   struct nitrox_zip_result *result)
> +{
> +	if (!rte_log_can_log(nitrox_logtype, RTE_LOG_DEBUG))
> +		return;
> +
> +	fprintf(stderr, "ZIP result..(instr %p)\n", instr);
> +	fprintf(stderr, "\tWORD0 = 0x%016"PRIx64"\n", result->w0.u64);
> +	fprintf(stderr, "\t\tCRC32          = 0x%8x\n", result->w0.crc32);
> +	fprintf(stderr, "\t\tADLER32        = 0x%8x\n", result->w0.adler32);
> +	fprintf(stderr, "\n");
> +
> +	fprintf(stderr, "\tWORD1 = 0x%016"PRIx64"\n", result->w1.u64);
> +	fprintf(stderr, "\t\tTBYTESWRITTEN  = %u\n", result->w1.tbyteswritten);
> +	fprintf(stderr, "\t\tTBYTESREAD     = %u\n", result->w1.tbytesread);
> +	fprintf(stderr, "\n");
> +
> +	fprintf(stderr, "\tWORD2 = 0x%016"PRIx64"\n", result->w2.u64);
> +	fprintf(stderr, "\t\tTBITS          = %u\n", result->w2.tbits);
> +	fprintf(stderr, "\t\tEXN            = %d\n", result->w2.exn);
> +	fprintf(stderr, "\t\tEBITS          = %x\n", result->w2.exbits);
> +	fprintf(stderr, "\t\tEF             = %d\n", result->w2.ef);
> +	fprintf(stderr, "\t\tCOMPCODE       = 0x%2x\n", result->w2.compcode);
> +	fprintf(stderr, "\n");
> +}
Writing to stdout or stderr is prohibited now. Please use DPDK logging.


  reply	other threads:[~2024-02-29 18:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-15 12:48 [PATCH 0/7] add Nitrox compress device support Nagadheeraj Rottela
2024-02-15 12:48 ` [PATCH v3 1/7] crypto/nitrox: move nitrox common code to common folder Nagadheeraj Rottela
2024-02-15 12:48 ` [PATCH v3 2/7] compress/nitrox: add nitrox compressdev driver Nagadheeraj Rottela
2024-02-15 12:48 ` [PATCH v3 3/7] common/nitrox: add compress hardware queue management Nagadheeraj Rottela
2024-02-15 12:48 ` [PATCH v3 4/7] crypto/nitrox: set queue type during queue pair setup Nagadheeraj Rottela
2024-02-15 12:48 ` [PATCH v3 5/7] compress/nitrox: add software queue management Nagadheeraj Rottela
2024-02-15 12:48 ` [PATCH v3 6/7] compress/nitrox: add stateless request support Nagadheeraj Rottela
2024-02-15 12:48 ` [PATCH v3 7/7] compress/nitrox: add stateful " Nagadheeraj Rottela
2024-02-29 18:00   ` Akhil Goyal [this message]
2024-02-29 17:22 ` [PATCH 0/7] add Nitrox compress device support Akhil Goyal

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=CO6PR18MB4484D133E3F3AEBD7F5ACD63D85F2@CO6PR18MB4484.namprd18.prod.outlook.com \
    --to=gakhil@marvell.com \
    --cc=ashishg@marvell.com \
    --cc=dev@dpdk.org \
    --cc=fanzhang.oss@gmail.com \
    --cc=rnagadheeraj@marvell.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).