Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openamp: should kick remote when use release_rx_buffer #415

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

GUIDINGLI
Copy link
Contributor

openamp: should kick remote when use release_rx_buffer

There is missing virtqueue_kick when use hold_rx/release_rx

Signed-off-by: Guiding Li liguiding1@xiaomi.com

@GUIDINGLI
Copy link
Contributor Author

-- lpcxpresso54114_m4 compile as Master in this sample
Loading Zephyr default modules (Zephyr base).
-- Application: /github/workspace/zephyrproject/zephyr/samples/subsys/ipc/openamp
-- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.4") found components: Interpreter
-- Cache files will be written to: /github/workspace/zephyrproject/zephyr/.cache
-- Zephyr version: 3.1.99 (/github/workspace/zephyrproject/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: lpcxpresso54114_m4
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
CMake Error at /github/workspace/zephyrproject/zephyr/cmake/modules/FindZephyr-sdk.cmake:63 (find_package):
Could not find a configuration file for package "Zephyr-sdk" that is
compatible with requested version "0.15".

The following configuration files were considered but not accepted:

/opt/zephyr-sdk/cmake/Zephyr-sdkConfig.cmake, version: 0.13.1

Call Stack (most recent call first):
/github/workspace/zephyrproject/zephyr/cmake/modules/FindHostTools.cmake:53 (find_package)
/github/workspace/zephyrproject/zephyr/cmake/modules/dts.cmake:8 (find_package)
/github/workspace/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:108 (include)
/github/workspace/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/github/workspace/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:25 (find_package)

-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/local/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/github/workspace/zephyrproject/zephyr/build -GNinja -DBOARD=lpcxpresso54114_m4 -S/github/workspace/zephyrproject/zephyr/samples/subsys/ipc/openamp

maybe, that's not my fault ?

@GUIDINGLI
Copy link
Contributor Author

@arnopo
Copy link
Collaborator

arnopo commented Sep 8, 2022

-- lpcxpresso54114_m4 compile as Master in this sample Loading Zephyr default modules (Zephyr base). -- Application: /github/workspace/zephyrproject/zephyr/samples/subsys/ipc/openamp -- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.4") found components: Interpreter -- Cache files will be written to: /github/workspace/zephyrproject/zephyr/.cache -- Zephyr version: 3.1.99 (/github/workspace/zephyrproject/zephyr) -- Found west (found suitable version "0.14.0", minimum required is "0.7.1") -- Board: lpcxpresso54114_m4 -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK CMake Error at /github/workspace/zephyrproject/zephyr/cmake/modules/FindZephyr-sdk.cmake:63 (find_package): Could not find a configuration file for package "Zephyr-sdk" that is compatible with requested version "0.15".

The following configuration files were considered but not accepted:

/opt/zephyr-sdk/cmake/Zephyr-sdkConfig.cmake, version: 0.13.1

Call Stack (most recent call first): /github/workspace/zephyrproject/zephyr/cmake/modules/FindHostTools.cmake:53 (find_package) /github/workspace/zephyrproject/zephyr/cmake/modules/dts.cmake:8 (find_package) /github/workspace/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:108 (include) /github/workspace/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include) /github/workspace/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) CMakeLists.txt:25 (find_package)

-- Configuring incomplete, errors occurred! FATAL ERROR: command exited with status 1: /usr/local/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/github/workspace/zephyrproject/zephyr/build -GNinja -DBOARD=lpcxpresso54114_m4 -S/github/workspace/zephyrproject/zephyr/samples/subsys/ipc/openamp

maybe, that's not my fault ?

Yes, Something seems broken for Zephyr CI, I need to investigate

@carlocaione
Copy link
Collaborator

Yes, Something seems broken for Zephyr CI, I need to investigate

Zephyr now needs the 0.15 SDK to be compiled.

@arnopo
Copy link
Collaborator

arnopo commented Sep 9, 2022

CI should be fixed with #417, could you rebase to rerun CI test please

@arnopo
Copy link
Collaborator

arnopo commented Sep 9, 2022

Yes, Something seems broken for Zephyr CI, I need to investigate

Zephyr now needs the 0.15 SDK to be compiled.

That's was the issue, thanks for the advice!

@arnopo arnopo requested review from arnopo and edmooring September 21, 2022 14:51
There is missing virtqueue_kick when use hold_rx/release_rx

Signed-off-by: Guiding Li <liguiding1@xiaomi.com>
@GUIDINGLI
Copy link
Contributor Author

@arnopo @carlocaione @edgarigl @jjmcdn
Updated!

Copy link
Contributor

@edmooring edmooring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to go.

@@ -315,6 +315,8 @@ static void rpmsg_virtio_release_rx_buffer(struct rpmsg_device *rdev,
/* Return buffer on virtqueue. */
len = virtqueue_get_buffer_length(rvdev->rvq, idx);
rpmsg_virtio_return_buffer(rvdev, rp_hdr, len, idx);
/* tell peer we return some rx buffer */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GUIDINGLI
Please, could you fix typo before I merge?
s/ tell peer we return some rx buffer / Tell peer we return some rx buffers/

@arnopo arnopo added this to the Release V2022.10 milestone Oct 3, 2022
@arnopo arnopo merged commit bb0be05 into OpenAMP:main Oct 14, 2022
@arnopo
Copy link
Collaborator

arnopo commented Oct 14, 2022

@GUIDINGLI : I fixed the typo to avoid to integrate it in the coming release

commit reference is now: 2b6a38a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants