-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Rptun framework update and related driver update #13526
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
Conversation
|
[Experimental Bot, please feedback here] NuttX PR Requirements ReviewThis PR appears to bundle multiple changes related to the Summary:
Impact:
Testing:
Overall: This PR requires significant improvements to meet the NuttX requirements. Provide a clear and detailed summary, elaborate on the impact of each change, and include actual testing logs to ensure the changes are thoroughly validated. |
rptun secure is a rptun driver used for the rpmsg communication between (Non-Secure) REE and (Secure) TEE environments. Signed-off-by: yanghuatao <yanghuatao@xiaomi.com> Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Store the rx virtqueue idx to the local headrx index, and only process the data when the rx virtqueue has data to avoid access the ram in low power mode. Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
Flush the image memory to make sure the remote core access the correct image. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
So we can distinguish the pm wakelock Signed-off-by: ligd <liguiding1@xiaomi.com>
This BUG is introduced in PR: apache#13172 Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
rptun_dump related code has been moved to rptun.c from rptun_dump.c, but file rptun_dump.c is not deleted in PR: apache#11712 So delete this file. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
The function name rptun_panic_ is not consistent with other functions Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Should invalidate the memory when the data is located in shared memory and write by remote core. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
headrx is very convient to check weather current core miss interrupt by comparing the headrx with the rx vring avail.idx for slave side or rx vring used.idx for master side. So move headrx out of the CONFIG_RPTUN_PM range. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
wdog has better performance than work queue Signed-off-by: wangyongrong <wangyongrong@xiaomi.com>
add remote addrenv to make the da is start from 0, so the uint32_t da in resource table can store the correct address Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Move the panic logic in common places, later we can move more logic to the framework instead of having the drivers implement it repeatedly. Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com> Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Because we can use the common part implemented in rptun Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
Add more common command for rptun and rpmsg_virtio frameworks, also modify the rptun and rpmsg_virtio driver to use the common commands. Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
Because locate the command at the end the resource table is unfriendly when we want to support multi virtio devices instead only one virtio rpmsg device. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Leak backtrace:
1 14 2096 9886 0x4318d768 [0x040320744] <romfs_fileconfigure+184> romfs/fs_romfsutil.c:1039
[0x04031fd3e] <romfs_open+378> romfs/fs_romfs.c:281
[0x04027fa9e] <file_open+446> vfs/fs_open.c:244
[0x0402ab986] <rptun_store_open+26> rptun/rptun.c:955
[0x04034cc88] <remoteproc_load+120> open-amp/lib/remoteproc/remoteproc.c:452
[0x0402ac8ac] <rptun_dev_start+176> rptun/rptun.c:748
[0x0402ad038] <rptun_ioctl+416> rptun/rptun.c:618
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
Master can send restart command to slave to reboot the slave core Signed-off-by: mazhuang <mazhuang@xiaomi.com> Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
Sync the offset data type with resource table defined in OpenAMP and Linux. Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
Summary
Author: Bowen Wang wangbowen6@xiaomi.com
Date: Wed Dec 20 10:46:07 2023 +0800
Author: mazhuang mazhuang@xiaomi.com
Date: Tue Aug 20 16:32:38 2024 +0800
commit 2e71792
Author: xuxingliang xuxingliang@xiaomi.com
Date: Fri Aug 23 19:44:11 2024 +0800
commit 09b4804
Author: Bowen Wang wangbowen6@xiaomi.com
Date: Wed Aug 14 15:01:42 2024 +0800
commit 2ec7b89
Author: Yongrong Wang wangyongrong@xiaomi.com
Date: Tue Aug 6 11:32:14 2024 +0800
commit 11430f7
Author: Yongrong Wang wangyongrong@xiaomi.com
Date: Mon Aug 5 20:00:12 2024 +0800
commit 9f4f470
Author: Yongrong Wang wangyongrong@xiaomi.com
Date: Fri Jul 26 16:57:58 2024 +0800
commit f2278f5
Author: Bowen Wang wangbowen6@xiaomi.com
Date: Tue Jun 11 15:53:15 2024 +0800
commit 8843960
Author: wangyongrong wangyongrong@xiaomi.com
Date: Wed May 22 16:41:21 2024 +0800
commit 9d2e70e
Author: Bowen Wang wangbowen6@xiaomi.com
Date: Sat Aug 3 18:27:44 2024 +0800
commit 462f7d7
Author: Bowen Wang wangbowen6@xiaomi.com
Date: Fri Feb 23 19:57:25 2024 +0800
commit 7aa295c
Author: Xiang Xiao xiaoxiang@xiaomi.com
Date: Sun Feb 18 20:38:46 2024 +0800
commit 2185309
Author: ligd liguiding1@xiaomi.com
Date: Wed Apr 27 16:58:02 2022 +0800
commit 62ca344
Author: Bowen Wang wangbowen6@xiaomi.com
Date: Wed Sep 18 17:26:16 2024 +0800
commit e8e64e6
Author: Bowen Wang wangbowen6@xiaomi.com
Date: Wed Sep 18 17:20:56 2024 +0800
commit f79daed
Author: ligd liguiding1@xiaomi.com
Date: Mon Jun 20 21:47:20 2022 +0800
commit e8ad329
Author: Bowen Wang wangbowen6@xiaomi.com
Date: Thu Mar 28 15:16:40 2024 +0800
commit 29c8a58
Author: ligd liguiding1@xiaomi.com
Date: Fri Apr 7 23:38:33 2023 +0800
commit afb0ea8
Author: ligd liguiding1@xiaomi.com
Date: Thu Jun 16 20:38:51 2022 +0800
commit abe9fd4
Author: ligd liguiding1@xiaomi.com
Date: Thu Jan 5 12:08:04 2023 +0800
commit 95d3611
Author: ligd liguiding1@xiaomi.com
Date: Sat Apr 30 12:46:27 2022 +0800
commit dab9e66
Author: yanghuatao yanghuatao@xiaomi.com
Date: Thu Aug 10 16:06:57 2023 +0800
Impact
rptun
Testing
sim:rpserver, rpproxy and qemu