This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, master has been updated
via 1b1da0fe917cb916232fd9aad615b68941b8f490 (commit)
from e9545afb7d521b7be5b52f7ff599824fdde8113e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1b1da0fe917cb916232fd9aad615b68941b8f490
Author: Rizwan Ansari <rizwan.ansari(a)linaro.org>
Date: Tue May 17 21:42:29 2016 +0530
linux-generic: ticketlock: remove odp_sync_stores for octeon
Removes odp_sync_stores() call for OCTEON, Octeon
build will fail, As this api has been already
replaced by odp_mb_full().
Signed-off-by: Rizwan Ansari <rizwan.ansari(a)linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen(a)nokia.com>
Reviewed-by: Balasubramanian Manoharan <bala.manoharan(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/platform/linux-generic/odp_ticketlock.c b/platform/linux-generic/odp_ticketlock.c
index 7b4246f..353af9a 100644
--- a/platform/linux-generic/odp_ticketlock.c
+++ b/platform/linux-generic/odp_ticketlock.c
@@ -69,9 +69,6 @@ void odp_ticketlock_unlock(odp_ticketlock_t *ticketlock)
odp_atomic_store_rel_u32(&ticketlock->cur_ticket, cur + 1);
-#if defined __OCTEON__
- odp_sync_stores(); /* SYNCW to flush write buffer */
-#endif
}
int odp_ticketlock_is_locked(odp_ticketlock_t *ticketlock)
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/odp_ticketlock.c | 3 ---
1 file changed, 3 deletions(-)
hooks/post-receive
--
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, master has been updated
via e9545afb7d521b7be5b52f7ff599824fdde8113e (commit)
from e9d434fd193e501ef9ca69f530ce4e5f9448594d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e9545afb7d521b7be5b52f7ff599824fdde8113e
Author: Maxim Uvarov <maxim.uvarov(a)linaro.org>
Date: Thu Jun 30 10:39:53 2016 +0300
Revert "validation: queue: use malloc to avoid limits on max_queues"
This reverts commit e9d434fd193e501ef9ca69f530ce4e5f9448594d.
Some disagreement in ml about this path. Revert on Perti's
request.
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/validation/queue/queue.c b/test/validation/queue/queue.c
index 2c8658e..96941f4 100644
--- a/test/validation/queue/queue.c
+++ b/test/validation/queue/queue.c
@@ -55,7 +55,7 @@ void queue_test_capa(void)
odp_queue_capability_t capa;
odp_queue_param_t qparams;
char name[ODP_QUEUE_NAME_LEN];
- odp_queue_t *queue;
+ odp_queue_t queue[MAX_QUEUES];
uint32_t num_queues, i;
memset(&capa, 0, sizeof(odp_queue_capability_t));
@@ -71,15 +71,10 @@ void queue_test_capa(void)
name[ODP_QUEUE_NAME_LEN - 1] = 0;
- num_queues = capa.max_queues;
- queue = malloc(num_queues * sizeof(odp_queue_t));
- if (queue == NULL) {
- printf("Unable to alloc %d queues, trying with %d\n",
- num_queues, MAX_QUEUES);
+ if (capa.max_queues > MAX_QUEUES)
num_queues = MAX_QUEUES;
- queue = malloc(num_queues * sizeof(odp_queue_t));
- CU_ASSERT_FATAL(queue != NULL);
- }
+ else
+ num_queues = capa.max_queues;
odp_queue_param_init(&qparams);
@@ -98,8 +93,6 @@ void queue_test_capa(void)
for (i = 0; i < num_queues; i++)
CU_ASSERT(odp_queue_destroy(queue[i]) == 0);
-
- free(queue);
}
void queue_test_mode(void)
-----------------------------------------------------------------------
Summary of changes:
test/validation/queue/queue.c | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
hooks/post-receive
--
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "".
The branch, master has been updated
via e9d434fd193e501ef9ca69f530ce4e5f9448594d (commit)
via 50078445f1a944309fb88946582a2015fd098f6b (commit)
from 8e6e5e999ce3d9edb704e18bedf6bc0ebc6ecf79 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e9d434fd193e501ef9ca69f530ce4e5f9448594d
Author: Bill Fischofer <bill.fischofer(a)linaro.org>
Date: Wed Jun 29 06:59:43 2016 -0500
validation: queue: use malloc to avoid limits on max_queues
odp_queue_capability() returns max_queues which may be more than 64K.
Use malloc to allocate an array of queue handles to test the ability to
create max_queues to avoid limiting the test to 64K queues. If this malloc
fails then attempt a reduced test with 64K queues.
Signed-off-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen(a)nokia.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/validation/queue/queue.c b/test/validation/queue/queue.c
index 96941f4..2c8658e 100644
--- a/test/validation/queue/queue.c
+++ b/test/validation/queue/queue.c
@@ -55,7 +55,7 @@ void queue_test_capa(void)
odp_queue_capability_t capa;
odp_queue_param_t qparams;
char name[ODP_QUEUE_NAME_LEN];
- odp_queue_t queue[MAX_QUEUES];
+ odp_queue_t *queue;
uint32_t num_queues, i;
memset(&capa, 0, sizeof(odp_queue_capability_t));
@@ -71,10 +71,15 @@ void queue_test_capa(void)
name[ODP_QUEUE_NAME_LEN - 1] = 0;
- if (capa.max_queues > MAX_QUEUES)
+ num_queues = capa.max_queues;
+ queue = malloc(num_queues * sizeof(odp_queue_t));
+ if (queue == NULL) {
+ printf("Unable to alloc %d queues, trying with %d\n",
+ num_queues, MAX_QUEUES);
num_queues = MAX_QUEUES;
- else
- num_queues = capa.max_queues;
+ queue = malloc(num_queues * sizeof(odp_queue_t));
+ CU_ASSERT_FATAL(queue != NULL);
+ }
odp_queue_param_init(&qparams);
@@ -93,6 +98,8 @@ void queue_test_capa(void)
for (i = 0; i < num_queues; i++)
CU_ASSERT(odp_queue_destroy(queue[i]) == 0);
+
+ free(queue);
}
void queue_test_mode(void)
commit 50078445f1a944309fb88946582a2015fd098f6b
Author: Bill Fischofer <bill.fischofer(a)linaro.org>
Date: Wed Jun 29 06:59:41 2016 -0500
validation: queue: avoid out of bounds references
Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=2377 by correcting
loop bounds for error case.
Signed-off-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Reviewed-by: Petri Savolainen <petri.savolainen(a)nokia.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/test/validation/queue/queue.c b/test/validation/queue/queue.c
index be9c0dc..96941f4 100644
--- a/test/validation/queue/queue.c
+++ b/test/validation/queue/queue.c
@@ -84,7 +84,7 @@ void queue_test_capa(void)
if (queue[i] == ODP_QUEUE_INVALID) {
CU_FAIL("Queue create failed");
- num_queues = i - 1;
+ num_queues = i;
break;
}
-----------------------------------------------------------------------
Summary of changes:
test/validation/queue/queue.c | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
hooks/post-receive
--