Skip to contentSkip to conversation

ti-ipc: add module dependency between omap_remoteproc and virtio_rpmsg_bus

PATCH Superseded Denys Dmytriyenko 3 participants 3 messages Mar 27, 2017

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ti-ipc: add module dependency between omap_remoteproc and virtio_rpmsg_bus

From: Denys Dmytriyenko <[email protected]>

This is required to workaround the remoteproc crash due to watchdog interrupt conflicts - LCPD-9490

---
 recipes-ti/ipc/ti-ipc/omap_remoteproc.conf | 1 +
 recipes-ti/ipc/ti-ipc_git.bb               | 4 ++++
 2 files changed, 5 insertions(+)
 create mode 100644 recipes-ti/ipc/ti-ipc/omap_remoteproc.conf
recipes-ti/ipc/ti-ipc/omap_remoteproc.conf new file +1 -0
new file mode 100644
index 0000000..6b5034c
@@ -0,0 +1 @@
+softdep omap_remoteproc pre: virtio_rpmsg_bus
recipes-ti/ipc/ti-ipc_git.bb +4 -0
index 5878b63..b536f61 100644
@@ -9,6 +9,7 @@ PR = "${INC_PR}.0"
 DEPENDS += "virtual/kernel"
 
 SRC_URI += "file://tiipclad-daemon.sh \
+            file://omap_remoteproc.conf \
             file://0001-Add-kernel-build-dir.patch \
            "
 
@@ -41,6 +42,9 @@ do_install_append() {
     # lad daemon executable.
     sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.sh
     install -c -m 755 ${WORKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
+
+    install -d ${D}${sysconfdir}/modprobe.d/
+    install -c -m 644 ${WORKDIR}/omap_remoteproc.conf ${D}${sysconfdir}/modprobe.d/
 }
 
 PACKAGES =+ "${PN}-test"
Signature · 1 line
2.7.4
#1 lore raw

Hi Denys,

Quoted 34 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

This is required to workaround the remoteproc crash due to watchdog interrupt conflicts - LCPD-9490

---
 recipes-ti/ipc/ti-ipc/omap_remoteproc.conf | 1 +
 recipes-ti/ipc/ti-ipc_git.bb               | 4 ++++
 2 files changed, 5 insertions(+)
 create mode 100644 recipes-ti/ipc/ti-ipc/omap_remoteproc.conf
recipes-ti/ipc/ti-ipc/omap_remoteproc.conf new file +1 -0
new file mode 100644
index 0000000..6b5034c
@@ -0,0 +1 @@
+softdep omap_remoteproc pre: virtio_rpmsg_bus
recipes-ti/ipc/ti-ipc_git.bb +1 -0
index 5878b63..b536f61 100644
@@ -9,6 +9,7 @@ PR = "${INC_PR}.0"
 DEPENDS += "virtual/kernel"
 
 SRC_URI += "file://tiipclad-daemon.sh \
+            file://omap_remoteproc.conf \
             file://0001-Add-kernel-build-dir.patch \
            "
 

recipes-ti/ipc/ti-ipc_git.bb do_install_append() { · line 47

Quoted 6 lines
recipes-ti/ipc/ti-ipc_git.bb +3 -0
@@ -41,6 +42,9 @@ do_install_append() {
     # lad daemon executable.
     sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.sh
     install -c -m 755 ${WORKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
+
+    install -d ${D}${sysconfdir}/modprobe.d/
+    install -c -m 644 ${WORKDIR}/omap_remoteproc.conf ${D}${sysconfdir}/modprobe.d/

Does this install even on K2 builds/FS? It is ideally not required on K2 builds, though I believe this will be a no-op on K2.

Otherwise, LGTM.

regards
Suman

Quoted 4 lines
recipes-ti/ipc/ti-ipc_git.bb +0 -0
 }
 
 PACKAGES =+ "${PN}-test"
#2 lore raw
Quoted 36 lines · Suman Anna

Hi Denys,

Quoted 33 lines · Denys Dmytriyenko

From: Denys Dmytriyenko <[email protected]>

This is required to workaround the remoteproc crash due to watchdog interrupt conflicts - LCPD-9490

---
 recipes-ti/ipc/ti-ipc/omap_remoteproc.conf | 1 +
 recipes-ti/ipc/ti-ipc_git.bb               | 4 ++++
 2 files changed, 5 insertions(+)
 create mode 100644 recipes-ti/ipc/ti-ipc/omap_remoteproc.conf
recipes-ti/ipc/ti-ipc/omap_remoteproc.conf new file +1 -0
new file mode 100644
index 0000000..6b5034c
@@ -0,0 +1 @@
+softdep omap_remoteproc pre: virtio_rpmsg_bus
recipes-ti/ipc/ti-ipc_git.bb +1 -0
index 5878b63..b536f61 100644
@@ -9,6 +9,7 @@ PR = "${INC_PR}.0"
 DEPENDS += "virtual/kernel"
 
 SRC_URI += "file://tiipclad-daemon.sh \
+            file://omap_remoteproc.conf \
             file://0001-Add-kernel-build-dir.patch \
            "
 
Quoted 10 lines

recipes-ti/ipc/ti-ipc_git.bb do_install_append() { · line 47

Quoted 7 lines
recipes-ti/ipc/ti-ipc_git.bb +3 -0
@@ -41,6 +42,9 @@ do_install_append() {
     # lad daemon executable.
     sed -i -e "s/__LAD_DAEMON__/${DAEMON}/" ${WORKDIR}/tiipclad-daemon.sh
     install -c -m 755 ${WORKDIR}/tiipclad-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
+
+    install -d ${D}${sysconfdir}/modprobe.d/
+    install -c -m 644 ${WORKDIR}/omap_remoteproc.conf ${D}${sysconfdir}/modprobe.d/

Does this install even on K2 builds/FS? It is ideally not required on K2 builds, though I believe this will be a no-op on K2.

I can limit it to "dra7xx" SOC family only - shouldn't be a problem since this package is already machine-specific.

Quoted 10 lines

Otherwise, LGTM.

regards
Suman

Quoted 4 lines
recipes-ti/ipc/ti-ipc_git.bb +0 -0
 }
 
 PACKAGES =+ "${PN}-test"