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 53b114eac3815099760186f90b64a201d7fac69b (commit)
from 1bb6291e4e9050d476fefb02f11024898847e2b7 (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 53b114eac3815099760186f90b64a201d7fac69b
Author: Petri Savolainen <petri.savolainen(a)linaro.org>
Date: Tue Jan 16 15:23:37 2018 +0200
configure: enable linux helpers by default
Enable Linux helpers by default as e.g. OFP uses those. Build
and test helper code does not add significant overhead, but
catches potential issues early.
Signed-off-by: Petri Savolainen <petri.savolainen(a)linaro.org>
Reviewed-by: Bill Fischofer <bill.fischofer(a)linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov(a)linaro.org>
diff --git a/helper/m4/configure.m4 b/helper/m4/configure.m4
index 3a867e8c..562bfc6e 100644
--- a/helper/m4/configure.m4
+++ b/helper/m4/configure.m4
@@ -8,15 +8,12 @@ AC_ARG_ENABLE([test-helper],
AM_CONDITIONAL([test_helper], [test x$test_helper = xyes ])
##########################################################################
-# Enable/disable helper-ext
-# platform specific non portable extensions
+# Enable/disable Linux helpers
##########################################################################
-helper_linux=no
AC_ARG_ENABLE([helper-linux],
- [ --enable-helper-linux build helper platform extensions (not portable)],
- [if test "x$enableval" = "xyes"; then
- helper_linux=yes
- fi])
+ [AS_HELP_STRING([--disable-helper-linux], [disable Linux helpers])],
+ [helper_linux=$enableval],
+ [helper_linux=yes])
AC_CONFIG_FILES([helper/Makefile
helper/libodphelper.pc
-----------------------------------------------------------------------
Summary of changes:
helper/m4/configure.m4 | 11 ++++-------
1 file changed, 4 insertions(+), 7 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, devel/native-drivers has been updated
via d99b3beb5ba18f061b4baa2debd46d674e542403 (commit)
from 217b610fa1c7c14e0e8f4a33a94dba6f50c79328 (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 d99b3beb5ba18f061b4baa2debd46d674e542403
Author: Josep Puigdemont <josep.puigdemont(a)linaro.org>
Date: Tue Jan 2 15:47:50 2018 +0100
physmem: change API, alloc now does a mapping too
We add the _reserve() function to the API to do what was previously
achieved with _alloc(), which is to reserve a set of huge pages that are
physically contiguous.
We changed _alloc() so it now calls _reserve() and _map() and it returns
a block that is already mapped in the process' virtual address space.
Signed-off-by: Josep Puigdemont <josep.puigdemont(a)linaro.org>
Reviewed-by: Yi He <yi.he(a)linaro.org>
diff --git a/platform/linux-generic/pktio/physmem/physmem.c b/platform/linux-generic/pktio/physmem/physmem.c
index 297ff2fa..a01b54fe 100644
--- a/platform/linux-generic/pktio/physmem/physmem.c
+++ b/platform/linux-generic/pktio/physmem/physmem.c
@@ -251,7 +251,7 @@ static struct physmem_block *block_get(void)
return block;
}
-struct physmem_block *physmem_block_alloc(uint64_t size)
+struct physmem_block *physmem_block_reserve(uint64_t size)
{
struct physmem_block *block;
struct physmem_block *ret = NULL;
@@ -331,6 +331,22 @@ struct physmem_block *physmem_block_alloc(uint64_t size)
return ret;
}
+struct physmem_block *physmem_block_alloc(uint64_t size)
+{
+ struct physmem_block *block;
+
+ block = physmem_block_reserve(size);
+ if (block == NULL)
+ return NULL;
+
+ if (physmem_block_map(block, NULL)) {
+ physmem_block_free(block);
+ return NULL;
+ }
+
+ return block;
+}
+
void physmem_block_free(struct physmem_block *block)
{
if (block == NULL)
@@ -547,7 +563,6 @@ exit_failure:
block->va_reserved = NULL;
block->va_reserved_size = 0;
-
while (mapped_cnt--) {
hp = &pages[block->first + mapped_cnt];
munmap(hp->va, hp->size);
diff --git a/platform/linux-generic/pktio/physmem/physmem.h b/platform/linux-generic/pktio/physmem/physmem.h
index 77dcb389..ea3e6567 100644
--- a/platform/linux-generic/pktio/physmem/physmem.h
+++ b/platform/linux-generic/pktio/physmem/physmem.h
@@ -37,6 +37,7 @@ struct physmem_block {
int physmem_block_init_global(void);
int physmem_block_term_global(void);
+struct physmem_block *physmem_block_reserve(uint64_t size);
struct physmem_block *physmem_block_alloc(uint64_t size);
void physmem_block_free(struct physmem_block *block);
int physmem_block_map(struct physmem_block *block, void *addr);
-----------------------------------------------------------------------
Summary of changes:
platform/linux-generic/pktio/physmem/physmem.c | 19 +++++++++++++++++--
platform/linux-generic/pktio/physmem/physmem.h | 1 +
2 files changed, 18 insertions(+), 2 deletions(-)
hooks/post-receive
--