automatic DPDK test reports
 help / color / mirror / Atom feed
From: dpdklab@iol.unh.edu
To: test-report@dpdk.org
Cc: dpdk-test-reports@iol.unh.edu
Subject: |WARNING| pw122077-122078 [PATCH] [2/2] Memory Allocation: Alternative fix for ignore_msk during find_next_n() in fb_array library
Date: Sun, 15 Jan 2023 15:37:59 -0500 (EST)	[thread overview]
Message-ID: <20230115203759.63C27B370@noxus.dpdklab.iol.unh.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 3686 bytes --]

Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/122077

_apply patch failure_

Submitter: Vipin P R <vipinp@vmware.com>
Date: Friday, January 13 2023 13:14:29 
Applied on: CommitID:83397b9f073904438965e1fda2efe76f7850fe01
Apply patch set 122077-122078 failed:

.git/rebase-apply/patch:18: trailing whitespace.
					/* There aren't "need" number of contiguous bits anywhere in the mask. 
.git/rebase-apply/patch:19: trailing whitespace.
					 * Ignore these many number of bits from LSB for the next iteration. 
Checking patch lib/eal/common/eal_common_fbarray.c...
error: while searching for:
				 * no runs in the space we've lookahead-scanned
				 * as well, so skip that on next iteration.
				 */
				ignore_msk = ~((1ULL << need) - 1);
				msk_idx = lookahead_idx - 1;
				break;
			}

error: patch failed: lib/eal/common/eal_common_fbarray.c:235
Applying patch lib/eal/common/eal_common_fbarray.c with 1 reject...
Rejected hunk #1.
diff a/lib/eal/common/eal_common_fbarray.c b/lib/eal/common/eal_common_fbarray.c	(rejected hunks)
@@ -235,7 +235,12 @@ find_next_n(const struct rte_fbarray *arr, unsigned int start, unsigned int n,
 				 * no runs in the space we've lookahead-scanned
 				 * as well, so skip that on next iteration.
 				 */
-				ignore_msk = ~((1ULL << need) - 1);
+				if (!lookahead_msk) {
+					/* There aren't "need" number of contiguous bits anywhere in the mask. 
+					 * Ignore these many number of bits from LSB for the next iteration. 
+					 */
+					ignore_msk = ~((1ULL << need) - 1);
+				}
 				msk_idx = lookahead_idx - 1;
 				break;
 			}
.git/rebase-apply/patch:32: trailing whitespace.
			
.git/rebase-apply/patch:56: trailing whitespace.
					 * starting from LSB of lookahead_msk_. 
Checking patch lib/eal/common/eal_common_fbarray.c...
error: while searching for:
				 * as well, so skip that on next iteration.
				 */
				if (!lookahead_msk) {
					/* There aren't "need" number of contiguous bits anywhere in the mask. 
					 * Ignore these many number of bits from LSB for the next iteration. 
					 */
					ignore_msk = ~((1ULL << need) - 1);
				}
				msk_idx = lookahead_idx - 1;
				break;

error: patch failed: lib/eal/common/eal_common_fbarray.c:236
Applying patch lib/eal/common/eal_common_fbarray.c with 1 reject...
Hunk #1 applied cleanly.
Hunk #2 applied cleanly.
Rejected hunk #3.
diff a/lib/eal/common/eal_common_fbarray.c b/lib/eal/common/eal_common_fbarray.c	(rejected hunks)
@@ -236,10 +238,23 @@ find_next_n(const struct rte_fbarray *arr, unsigned int start, unsigned int n,
 				 * as well, so skip that on next iteration.
 				 */
 				if (!lookahead_msk) {
-					/* There aren't "need" number of contiguous bits anywhere in the mask. 
+					/* There aren't "need" number of contiguous bits anywhere in the mask.
 					 * Ignore these many number of bits from LSB for the next iteration. 
 					 */
 					ignore_msk = ~((1ULL << need) - 1);
+				} else {
+					/* Find the first clear bit */
+					fcb_idx = __builtin_ffsll((~lookahead_msk_));
+					/* clear all bits upto the first clear bit in lookahead_msk_. */
+					lookahead_msk_ = lookahead_msk_ & ((~0ULL) << fcb_idx);
+					/* find the first set bit in the modified mask */
+					fsb_idx = __builtin_ffsll(lookahead_msk_);
+					/* number of bits to ignore from the next iteration */
+					ignore_bits = fsb_idx - 1;
+					/* ignore all bits preceding the first set bit after the first clear bit
+					 * starting from LSB of lookahead_msk_. 
+					 */
+					ignore_msk = ~((1ULL << ignore_bits) - 1);
 				}
 				msk_idx = lookahead_idx - 1;
 				break;

https://lab.dpdk.org/results/dashboard/patchsets/24989/

UNH-IOL DPDK Community Lab

                 reply	other threads:[~2023-01-15 20:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20230115203759.63C27B370@noxus.dpdklab.iol.unh.edu \
    --to=dpdklab@iol.unh.edu \
    --cc=dpdk-test-reports@iol.unh.edu \
    --cc=test-report@dpdk.org \
    /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).