History log of /device/google/contexthub/contexthubhal/system_comms.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
90d065027fc1463c7b0288a775ec77a1ee7805a2 04-Oct-2016 Alexey Polyudov <apolyudov@google.com> nanohub HAL: load nanoapp without nanohub reboot

send ENABLE_APP instead of REBOOT; as a side effect
we should now return failure in case app_init() method failed

fix couple logging issues and incorrect response handlings.

Test: execute the sequence below

Note: this requires that Nanohub OS image is built with the following
https://googleplex-android-review.git.corp.google.com/#/c/1503793/
and uploaded to context hub MCU.

As of this moment, this change is source-merged, but binary OS image is
not in sync with it.

With updated OS, execute:

adb shell 'echo 1 > /sys/class/nanohub/nanohub/erase_shared'
adb shell nanoapp_cmd download
adb shell 'echo 1 > /sys/class/nanohub/nanohub/reset'

gts-tradefed run everything --skip-system-status-check
com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker
--module GtsLocationTestCases --test
com.google.android.location.gts.ContextHubHelloWorldNanoAppTest#runTest
--primary-abi-only

gts-tradefed run everything --skip-system-status-check
com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker
--module GtsLocationTestCases --test
com.google.android.location.gts.ContextHubTrivialNanoAppsTest
--primary-abi-only

Bug: 31038843
Bug: 31360590
Change-Id: If0dfe75f7cfa8ddeeabfc6ae124aa4cd155a30a8
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/contexthubhal/system_comms.cpp
68bdac382883447f8acf8a95e03ae415456a4874 04-Oct-2016 Alexey Polyudov <apolyudov@google.com> nanohub HAL: return 0 on successful management operations

Bug: 31824213
Change-Id: I8ea2e6a60207349a8dfdd59e82c3c1532754f5dc
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/contexthubhal/system_comms.cpp
53d7164c9e25b417d597c102d92bae3050c149ae 26-Sep-2016 Alexey Polyudov <apolyudov@google.com> nanohub HAL: abort outstanding sessions on FW reboot

Bug: 31361942
Change-Id: Iace48661521cd262c6b674a181e616bea38f6426
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/contexthubhal/system_comms.cpp
b78969e7bce5b6d57a3e6b99315f44fe77b5d2b6 15-Sep-2016 Alexey Polyudov <apolyudov@google.com> nanohub: add CHRE message support

this patch adds nanohub OS capability to understand
a new host message format in addition to the old one,
currently the only one supported by HAL.
This is necessary for a smooth transition between the two.
New format allows to pass message type as required by CHRE

Bug: 31393280
Change-Id: I0ea649862bd90c349ab82237a5922133f5d730eb
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/contexthubhal/system_comms.cpp
c8e09a8dc0eecf2e0fb473ff8d8c0574f7fbfa9c 12-Sep-2016 Alexey Polyudov <apolyudov@google.com> nanohub: move common definitions to common header and adjust code

this is a no-op change;
it moves definitions from os-specific to project-wide generic
header, to allow both HAL and FW use the same data structures.

There are minor code changes to ensure correct type handling.
Some changes done to source formatting as well

Bug: 31393280
Change-Id: I29d3034e1956ea6bc89b92424425894d408a95e0
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/contexthubhal/system_comms.cpp
7adb1a0b7ba0f6c2ef0c3e44979a382314f0ab0c 13-Sep-2016 Alexey Polyudov <apolyudov@google.com> nanohub HAL: use STL thread model

Change-Id: I8114d1b4cd46399b4ca2cca02667488853846d8a
/device/google/contexthub/contexthubhal/system_comms.cpp
ae6e5e83de773c9c223e1ed32bfedf301269b840 10-Aug-2016 Zhengyin Qian <qianzy@google.com> contexthubhal: use AOSP header. am: e96ece71fb am: 0ae05e0a5b
am: 97085d1fd7

Change-Id: I5f0e8aeac749adb0a26deeeded8552a82be610eb
e96ece71fbd610603074755303e1d6cc3e505b00 29-Jul-2016 Zhengyin Qian <qianzy@google.com> contexthubhal: use AOSP header.

BUG: 30503963
Change-Id: Ie96dfa8ab08e3cf7f45fdf9725aac5a657a6719b
/device/google/contexthub/contexthubhal/system_comms.cpp
5d57ce2ada63e76c04576995ca354abfd3bdee2b 19-Jul-2016 Alexey Polyudov <apolyudov@google.com> nanohub: fix nanoapp unload issues

1. unaligned access
2. incorrect io count
3. corner case in heapFreeAll
4. deadlock in contexthub HAL

Bug: 30165300
Change-Id: Id2642b0e343abc3babbc389e7ff2979b738c5db2
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/contexthubhal/system_comms.cpp
9371a880e14d92bd2613c57d3123f4571b91785d 10-Jul-2016 Alexey Polyudov <apolyudov@google.com> contexthub HAL: send nanohub OS reboot notification to JNI

Bug: 28454080
Change-Id: Idb521a7fc49e94950ac38bc0728e81a551969da6
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/contexthubhal/system_comms.cpp
70ab6271e35d78b86a68b00b663c177230697fb5 28-Apr-2016 Alexey Polyudov <apolyudov@google.com> nanohub HAL: support for new firmware

plus improved message logging

Bug: 28265099
Change-Id: I3a3b2f3abfd59bfce273dbedc10942d2efc21f5e
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/contexthubhal/system_comms.cpp
49f44c0a34d0361f46bad4456d40c6cfe47ef50f 18-Apr-2016 Alexey Polyudov <apolyudov@google.com> nanohub HAL: report unhandled system message

it is possible that message intended for system (HAL itself)
are not always handled.

We want to see them in the log, if they are not handled,
as this is likely the bug.

Bug: 28265099
Change-Id: I1f51c8a59e950381804941c3b37e12116c0a4c3e
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/contexthubhal/system_comms.cpp
96177b03ab7915a8abce9fcb14f61be2edab918f 12-Apr-2016 Alexey Polyudov <apolyudov@google.com> make nanohub HAL c++ aware

Change-Id: I383f0ca68874908ec7d75b834264cac05f6831f3
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/contexthubhal/system_comms.cpp
6fae615f5f1fa27e880c86db7e3f4c77e62139bf 08-Apr-2016 Alexey Polyudov <apolyudov@google.com> Prepare nanohub HAL for becoming c++ aware

rename .c files to .cpp

Change-Id: Idf75fe116745d10b8cc41540aedc00c5fb25b703
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/device/google/contexthub/contexthubhal/system_comms.cpp