summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5d40679)
raw | patch | inline | side by side (parent: 5d40679)
author | Sam Nelson <sam.nelson@ti.com> | |
Sat, 1 Aug 2015 15:14:58 +0000 (11:14 -0400) | ||
committer | Angela Stegmaier <angelabaker@ti.com> | |
Tue, 6 Oct 2015 19:14:13 +0000 (14:14 -0500) |
- Update VirtQueue driver to remove the per core patching of Vring address
- This patch was required with the keystone 2 remoteproc driver
based on kernel version 3.10.x
- No longer needed for kernel drivers added on the 4.1 2015 LTS kernel
for keystone2
- Currently putting under #ifdef in case customer wants use it to use
with older kernel
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
- This patch was required with the keystone 2 remoteproc driver
based on kernel version 3.10.x
- No longer needed for kernel drivers added on the 4.1 2015 LTS kernel
for keystone2
- Currently putting under #ifdef in case customer wants use it to use
with older kernel
Signed-off-by: Sam Nelson <sam.nelson@ti.com>
packages/ti/ipc/family/tci6638/VirtQueue.c | patch | blob | history |
diff --git a/packages/ti/ipc/family/tci6638/VirtQueue.c b/packages/ti/ipc/family/tci6638/VirtQueue.c
index 504afba00d9e18586f8d9cf0f5c8ed4655c40664..bcb6f2d28f86ffa90825d01c442c042108e2c6bb 100644 (file)
case ID_HOST_TO_SELF:
vringAddr = (struct vring *)Resource_getVringDA(vq->id);
Assert_isTrue(vringAddr != NULL, NULL);
+#ifdef PER_CORE_VRING_PATCH
/* Add per core offset: must match on host side: */
vringAddr = (struct vring *)((UInt32)vringAddr +
(DNUM * VirtQueue_VRING_OFFSET));
-
+#endif
/* Also, assert that the vring address is non-cached: */
#if !defined(xdc_runtime_Assert_DISABLE_ALL) \
|| !defined(xdc_runtime_Log_DISABLE_ALL)