automatic DPDK test reports
 help / color / mirror / Atom feed
* |WARNING| pw122077-122078 [PATCH] [2/2] Memory Allocation: Alternative fix for ignore_msk during find_next_n() in fb_array library
@ 2023-01-15 20:37 dpdklab
  0 siblings, 0 replies; only message in thread
From: dpdklab @ 2023-01-15 20:37 UTC (permalink / raw)
  To: test-report; +Cc: dpdk-test-reports

[-- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-15 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-15 20:37 |WARNING| pw122077-122078 [PATCH] [2/2] Memory Allocation: Alternative fix for ignore_msk during find_next_n() in fb_array library dpdklab

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).