Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: 79b795e954e15d0d7c37d49fd32ac9cc0315bc3c
https://github.com/OpenAMP/open-amp/commit/79b795e954e15d0d7c37d49fd32ac9cc…
Author: Umair Khan <umair_khan(a)mentor.com>
Date: 2024-02-29 (Thu, 29 Feb 2024)
Changed paths:
M lib/remoteproc/elf_loader.c
Log Message:
-----------
remoteproc: Fix management of non loadable program segments
The elf loader assumes that the last ELF program segment will always
be a LOAD type segment. I deduce this from the fact that the elf_load()
function, when loading the remote ELF sections during the
RPROC_LOADER_READY_TO_LOAD stage, compares the last load segment num
to the total ELF sections to determine if the loading is complete and
it can move to the next stage RPROC_LOADER_POST_DATA_LOAD. If the last
program segment in the ELF is not of type LOAD, the last loaded LOAD
segment never equals total ELF sections. This creates an error
condition and the firmware loading fails. This patch fixes this issue
by comparing the last loaded LOAD segment number with the max LOAD
segment number in the ELF.
Signed-off-by: Umair Khan <umair_khan(a)mentor.com>
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/open-amp/settings/notifications
Branch: refs/heads/main
Home: https://github.com/OpenAMP/libmetal
Commit: 5bab7225cac041c26ecfbc92169d04d55211c4b2
https://github.com/OpenAMP/libmetal/commit/5bab7225cac041c26ecfbc92169d04d5…
Author: Rajiv Mohan <rajiv.mohan(a)amd.com>
Date: 2024-02-23 (Fri, 23 Feb 2024)
Changed paths:
M lib/system/freertos/xlnx/sys.c
M lib/system/generic/xlnx/sys.c
Log Message:
-----------
lib: system: MPU flag check fix for xilinx platform
Check if valid MPU flag is set or not. Current condition checks
if flag is 0 or not, which is not intended use of flags
Signed-off-by: Rajiv Mohan <rajiv.mohan(a)amd.com>
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/libmetal/settings/notifications
Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: 0c7e4202d0a1c6a6d590eb0c8f9d081dc7aed2ce
https://github.com/OpenAMP/open-amp/commit/0c7e4202d0a1c6a6d590eb0c8f9d081d…
Author: Bowen Wang <wangbowen6(a)xiaomi.com>
Date: 2024-02-23 (Fri, 23 Feb 2024)
Changed paths:
M lib/include/openamp/rpmsg_virtio.h
M lib/remoteproc/remoteproc_virtio.c
M lib/rpmsg/rpmsg_virtio.c
Log Message:
-----------
remoteproc_virtio: optimize the remoteproc virtio transport layer
1. Implement the rproc_virtio_create_virtqueues() and
rproc_virtio_delete_virtqueues().
2. Because 1, also modified the rpmsg init.
Signed-off-by: Bowen Wang <wangbowen6(a)xiaomi.com>
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/open-amp/settings/notifications
Branch: refs/heads/main
Home: https://github.com/OpenAMP/libmetal
Commit: f21fea6c32e803d75f74f0b4b7e922f29aea5c05
https://github.com/OpenAMP/libmetal/commit/f21fea6c32e803d75f74f0b4b7e922f2…
Author: Bowen Wang <wangbowen6(a)xiaomi.com>
Date: 2024-02-23 (Fri, 23 Feb 2024)
Changed paths:
M lib/system/nuttx/io.c
Log Message:
-----------
libmetal/nuttx/io.c: width matched access when read/write size = 1,2,4,8
Follow the virtio spec v1.2:
The driver MUST only use 32 bit wide and aligned reads and writes to access
the control registers described in table 4.1. For the device-specific
configuration space, the driver MUST use 8 bit wide accesses for 8 bit
wide fields, 16 bit wide and aligned accesses for 16 bit wide fields
and 32 bit wide and aligned accesses for 32 and 64 bit wide fields.
Signed-off-by: Bowen Wang <wangbowen6(a)xiaomi.com>
Signed-off-by: Jukka Laitinen <jukkax(a)ssrc.tii.ae>
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/libmetal/settings/notifications
Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: f94dde55e0f06809c331513641e0482bafe3d390
https://github.com/OpenAMP/open-amp/commit/f94dde55e0f06809c331513641e0482b…
Author: Umair Khan <umair_khan(a)mentor.com>
Date: 2024-02-22 (Thu, 22 Feb 2024)
Changed paths:
M apps/examples/load_fw/load_fw.c
Log Message:
-----------
load_fw: The firmware loading loop terminates prematurely
The remoteproc_load_noblock() is a non-blocking API designed to load
the remote firmware in streaming mode. The application has to continue
supplying the firmware data blocks until the complete firmware is
loaded. The load_fw example does this and checks the `nlen` variable
(returned by the remoteproc_load_noblock() API) for zero to determine
if the firmware loading is complete. However, `nlen` (contains the
filesize of the next program header) alone can't be taken as the
sufficient condition to mark the completion of firmware loading as
0 is a valid value for filesize for sections that don't require
loading to the target memory such as the .bss section. This patch
proposes checking filesize as well as memsize as a better metric to
mark completion of the firmware loading loop.
Signed-off-by: Umair Khan <umair_khan(a)mentor.com>
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/open-amp/settings/notifications
Branch: refs/heads/main
Home: https://github.com/OpenAMP/libmetal
Commit: 5d93a3c19331eea88f5612d7e4eb1a0f1fcfdd6a
https://github.com/OpenAMP/libmetal/commit/5d93a3c19331eea88f5612d7e4eb1a0f…
Author: Rajiv Mohan <rajiv.mohan(a)amd.com>
Date: 2024-02-19 (Mon, 19 Feb 2024)
Changed paths:
M lib/system/freertos/xlnx/sys.c
Log Message:
-----------
FreeRTOS Avoid mem mapping in MPU for region mapped
FreeRTOS patch for Avoiding memory mapping in MPU config table for region
that are already mapped by bsp and no change in attribute property
Signed-off-by: Rajiv Mohan <rajiv.mohan(a)amd.com>
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/libmetal/settings/notifications
Branch: refs/heads/main
Home: https://github.com/OpenAMP/libmetal
Commit: 3517a078369c041dc74252b87d7347c397d1d1c3
https://github.com/OpenAMP/libmetal/commit/3517a078369c041dc74252b87d7347c3…
Author: Rajiv Mohan <rajiv.mohan(a)amd.com>
Date: 2024-02-19 (Mon, 19 Feb 2024)
Changed paths:
M lib/system/generic/xlnx/sys.c
Log Message:
-----------
lib: xlnx: Avoid mapping in MPU for region mapped by bsp
Avoiding memory mapping in MPU config table for region that are already
mapped by bsp and no change in attribute property.
Signed-off-by: Rajiv Mohan <rajiv.mohan(a)amd.com>
Signed-off-by: Tanmay Shah <tanmay.shah(a)amd.com>
To unsubscribe from these emails, change your notification settings at https://github.com/OpenAMP/libmetal/settings/notifications
Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: b48965acdfe70bd5ac6ff916796e1b409a590542
https://github.com/OpenAMP/open-amp/commit/b48965acdfe70bd5ac6ff916796e1b40…
Author: Umair Khan <umair.khan.uet59(a)gmail.com>
Date: 2024-02-16 (Fri, 16 Feb 2024)
Changed paths:
M lib/remoteproc/elf_loader.c
Log Message:
-----------
Fixes #550: ELF loader loads ELF sections to their load addresses
Unlike the Linux rproc elf loader, the OpenAMP elf loader loads
the remote elf program segments to their load addresses instead
of their link addresses. This results in memory corruption when
the remote firmware attempts to relocate segments from their link
addresses to load addresses at runtime such as the data section.
Signed-off-by: Umair Khan <umair.khan.uet59(a)gmail.com>
Branch: refs/heads/main
Home: https://github.com/OpenAMP/open-amp
Commit: 7bf3cff391caeaf42b9ccb9ca77192c5a85f3eb4
https://github.com/OpenAMP/open-amp/commit/7bf3cff391caeaf42b9ccb9ca77192c5…
Author: Arnaud Pouliquen <arnaud.pouliquen(a)foss.st.com>
Date: 2024-02-15 (Thu, 15 Feb 2024)
Changed paths:
M lib/remoteproc/remoteproc_virtio.c
Log Message:
-----------
remoteproc_virtio: fix vrings_info structure init
Only the first index of the vring_info is set to 0.
Apply the memset to the whole memory allocated.
Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen(a)foss.st.com>