summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-13Linux: Update user AF_RPMSG define for 5.15+ kernelsHEAD3.52.00.00masteripc-nextSinthu Raja
IPC's Linux user space support contains a copy of a few kernel-defined structs and definitions including the socket address family used for rpmsg-based sockets - AF_RPMSG. This driver is currently out-of-tree and so it's definition is always 'one more' than the last address family defined by the mainline kernel's socket.h. A new address family was introduced in 5.15 (AF_MCTP), and as a result, the AF_RPMSG macro needs to be set to 46 post 5.15 kernel. The user space header has been updated to reflect on the kernel version and appropriately assign the value of AF_RPMSG. Do note that a specific value of AF_RPMSG can always be provided through the products.mak when KERNEL_INSTALL_DIR is not set. Signed-off-by: Sinthu Raja <sinthu.raja@ti.com>
2020-04-03am65xx: Update Resource type to match sciclient API changeSam Nelson
This type is expected to work with both PG1 and PG2 versions Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2020-03-13Remoteproc: DRA7xx: Fix incorrect DSP HEAP1 address3.51.00.00ASuman Anna
Commit 23a7eefaf8e2 ("Remoteproc: DRA7xx: Adjust entries to fix carveout allocation failures") has split up the single DSP heap at 0x95200000 of size 3 MB into two chunks of 2 MB and 1 MB. This erroneously used the address 0x95300000 for the second 1 MB chunk, when it should really be 0x95400000. Fix this properly. Fixes: 23a7eefaf8e2 ("Remoteproc: DRA7xx: Adjust entries to fix carveout allocation failures") Signed-off-by: Suman Anna <s-anna@ti.com>
2020-03-13am65xx: Pass valid request pointer for Sciclient version checkAngela Stegmaier
Sciclient now requires request payload to be non-NULL. This patch updates the payload pointer to be non-NULL value in order to be able to check the version. Signed-off-by: Angela Stegmaier <angelabaker@ti.com>
2020-01-31K2: Use FW_RSC_ADDR_ANY for vrings in R5F resource table3.51.00.00Sam Nelson
Mark the vring device addresses as FW_RSC_ADDR_ANY, so that Linux kernel knows it needs to update these to the actual dynamically allocated memory locations. The virtqueue driver itself will poll for the completion status of this update. Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2020-01-31VirtQueue: K2: poll for init completion statusSam Nelson
Virtqueue device address is provided by host, so poll the completion status for this operation before proceeding. Otherwise we end up using bad virtqueue address. Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2020-01-31Remoteproc: AM65XX: Use FW_RSC_ADDR_ANY for vrings in R5F resource tableSam Nelson
Mark the vring device addresses as FW_RSC_ADDR_ANY, so that Linux kernel knows it needs to update these to the actual dynamically allocated memory locations. The virtqueue driver itself will poll for the completion status of this update. Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2020-01-31VirtQueue: AM65X: poll for init completion statusSam Nelson
Virtqueue device address is provided by host, so poll the completion status for this operation before proceeding. Otherwise we end up using bad virtqueue address. Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2020-01-31am65xx: Remove dependence on DEVMEM entrySam Nelson
AM65XX does not have an IOMMU, and currently the DEVMEM entry is used as a work around. But in reality the VA and PA are directly mapped and dependence on DEVMEM to do the address translation need to be removed. Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-12-19Remoteproc: DRA7xx: Use FW_RSC_ADDR_ANY for vrings in IPU resource tableTero Kristo
Mark the vring device addresses as FW_RSC_ADDR_ANY, so that Linux kernel knows it needs to update these to the actual dynamically allocated memory locations. The virtqueue driver itself will poll for the completion status of this update. Signed-off-by: Tero Kristo <t-kristo@ti.com>
2019-12-19Remoteproc: DRA7xx: Use FW_RSC_ADDR_ANY for vrings in DSP resource tableTero Kristo
Mark the vring device addresses as FW_RSC_ADDR_ANY, so that Linux kernel knows it needs to update these to the actual dynamically allocated memory locations. The virtqueue driver itself will poll for the completion status of this update. Signed-off-by: Tero Kristo <t-kristo@ti.com>
2019-12-16VirtQueue: dra7xx: poll for init completion statusTero Kristo
Virtqueue device address is provided by host, so poll the completion status for this operation before proceeding. Otherwise we end up using bad virtqueue address. Signed-off-by: Tero Kristo <t-kristo@ti.com>
2019-10-28test_omx: Add null termination to avoid out of bound access3.50.04.08Sam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-28srvmgr: Fix issue with memcopySam Nelson
Previous fix to avoid the partial copy was wrong. Need to copy only the task parameters after arg0. Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-18Remoteproc: DRA7xx: Adjust entries to fix carveout allocation failuresSam Nelson
If the linux device tree uses DMA pools for carving out memory for the slave cores, the DMA pools uses the next power of 2 page order fitting the requested size (eg: 6 MB gets attempted to be allocated using 8 MB and at 8 MB alignments), and this may result in allocation failures if the overall DMA pool size does not have enough room to support the different RSC_CARVEOUT aligned size. This adjustment of the entries are updated carefully to make sure the allocation does not fail due to this alignment. The 1 MB IPC_DATA carveout entry is placed immediately after the vdev resource so that the image carveouts are always aligned on an even 2 MB boundary. Signed-off-by: Sam Nelson <sam.nelson@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com>
2019-10-18Remoteproc: DRA7xx: Drop invalid MEM_IOBUFS devmem entrySuman Anna
The MEM_IOBUFS DEVMEM entry of size 90 MB was a left-over from OMAP4/OMAP5 code, and this was used to map a static carveout of the same size at 0xBA300000 address into the DSP and IPU MMUs. This region is fully owned by the Linux kernel on DRA7xx/AM57xx SoCs, so it should not be mapped into the IPU and DSP memory space. Drop these invalid entries from both the IPU & DSP resource tables. Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-09test_omx: Update not to fill the whole buffer3.50.04.07ASam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-09SysMin: Fix missed local variableSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-09SysMin: Fix double usage of variable iSam Nelson
Renamed local usage inside loop Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-09tests: Fix issue with parameter order for strncpySam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-09RcmServer: Update cast to match type comparedSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08package.bld: Remove --gcc optionSam Nelson
--gcc is deprecated and will be removed in a subsequent release. GCC compatibility is implemented through the --relaxed_ansi option and is the default behavior of the compiler. Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08tests: Add error check to be more robustSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08transports: Fix to avoid potential divide by zero errorSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08nsremote: Add additional check to handle assert disabledSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08heaps: Avoid possible divide by zero errorSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08NotifySetup: Initialize retvalSam Nelson
This is to avoid uninitialized variable usage Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08ListMP: Add additional check to handle no Assert caseSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08SysMin: Update type to match print patternSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08RPMessage: Add additional check to handle no Assert caseSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08grcm: fix issue with Uint32 to Ptr conversionSam Nelson
Adding cast to UArg to indicate this is intentional Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08GateMP: Update handling of address > 32 bit for local Gate onlySam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08ListMP: Update to handle the case without Shared address translationSam Nelson
Fixes compiler warnings Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08TransportShmCirc: Fix handling of address > 32 bitsSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08TransportShm: Fix handling of address > 32 bitsSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08NameServer: Fix for handling address > 32 bitsSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08NameServerRemoteNotify: Fix handling of address > 32 bitsSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08NotifyDriverShm: Fix handling of address > 32 bitsSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08NotifyDriverCirc: Fix handling of address > 32 bitsSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08HeapMultiBufMP: Update to handle > 32 bit addressSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08HeapMemMP: Update handling of > 32bit shared addressesSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08HeapBufMP: Update handling for > 32 bit addressesSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08NotifySetup: Add return value check for cases not using AssertSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08Ipc: Add round up function separately for Address pointersSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08SharedRegion: Update to handle address calculation > 32 bits correctlySam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08Ipc: Add proper hanlding of shared pointer and addressesSam Nelson
Add appropriate handling of shared pointer which is limited to 32 bit. But the addresses can be 64 bits for some cores. Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08GateMP: Update arg to accomodate pointer for local GateSam Nelson
arg is storing value of a pointer. Need to accomodate more than 32 bit in 64 bit cores Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08VirtQueue: Add additional checks to handle, assert not enabledSam Nelson
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08mm: Update code for better portabilitySam Nelson
Replaced UInt32 with UArg Signed-off-by: Sam Nelson <sam.nelson@ti.com>
2019-10-08build: Remove deprecated --gcc optionSam Nelson
With the --gcc option the current gcc compiler gives warning and hence removed Signed-off-by: Sam Nelson <sam.nelson@ti.com>