Commit c7e0acd1 authored by Arun Gopalakrishnan's avatar Arun Gopalakrishnan Committed by Hari Kanigeri

ARM OMAP4 Syslink IPC MessageQ, Notify Fix

This fix revert the work around made in MessageQ to
function it with Notify hard coded a multiproc id.

There is a minor fix in the Notify to enable multiproc
id beyond 2(replaced hard coded value with that provided
by multiproc)
Signed-off-by: default avatarArun M G <arunmg@ti.com>
parent c709c461
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <syslink/notify.h> #include <syslink/notify.h>
#include <syslink/notify_shmdriver.h> #include <syslink/notify_shmdriver.h>
#include <syslink/notifydefs.h> #include <syslink/notifydefs.h>
#include <syslink/multiproc.h>
#define NOTIFY_BASE_CMD (0x100) #define NOTIFY_BASE_CMD (0x100)
...@@ -84,8 +84,6 @@ ...@@ -84,8 +84,6 @@
*/ */
#define CMD_NOTIFY_EXIT (NOTIFY_BASE_CMD + 11u) #define CMD_NOTIFY_EXIT (NOTIFY_BASE_CMD + 11u)
#define MAX_PROCESSORS 2
/* /*
* const NOTIFY_SYSTEM_KEY_MASK * const NOTIFY_SYSTEM_KEY_MASK
* *
...@@ -251,7 +249,8 @@ struct notify_driver_proc_info { ...@@ -251,7 +249,8 @@ struct notify_driver_proc_info {
*/ */
struct notify_driver_attrs { struct notify_driver_attrs {
u32 numProc; u32 numProc;
struct notify_driver_proc_info proc_info[MAX_PROCESSORS]; struct notify_driver_proc_info
proc_info[MULTIPROC_MAXPROCESSORS];
}; };
......
...@@ -1050,11 +1050,6 @@ int messageq_put(u32 queue_id, messageq_msg msg) ...@@ -1050,11 +1050,6 @@ int messageq_put(u32 queue_id, messageq_msg msg)
u32 priority; u32 priority;
int key; int key;
/* FIXME: Remove the SysM3 & AppM3 workaround */
if (dst_proc_id == 2 || dst_proc_id == 3)
dst_proc_id = 1;
else
dst_proc_id = 0;
gt_2trace(messageq_dbgmask, GT_ENTER, "messageq_put", queue_id, msg); gt_2trace(messageq_dbgmask, GT_ENTER, "messageq_put", queue_id, msg);
BUG_ON(msg == NULL); BUG_ON(msg == NULL);
...@@ -1069,11 +1064,6 @@ int messageq_put(u32 queue_id, messageq_msg msg) ...@@ -1069,11 +1064,6 @@ int messageq_put(u32 queue_id, messageq_msg msg)
msg->dst_id = (u16)(queue_id); msg->dst_id = (u16)(queue_id);
msg->dst_proc = (u16)(queue_id >> 16); msg->dst_proc = (u16)(queue_id >> 16);
/* FIXME: Remove the SysM3 & AppM3 workaround */
if (msg->dst_proc == 2 || msg->dst_proc == 3)
msg->dst_proc = 1;
else
msg->dst_proc = 0;
if (dst_proc_id != multiproc_get_id(NULL)) { if (dst_proc_id != multiproc_get_id(NULL)) {
if (dst_proc_id >= multiproc_get_max_processors()) { if (dst_proc_id >= multiproc_get_max_processors()) {
/*! @retval MESSAGEQ_E_INVALIDPROCID /*! @retval MESSAGEQ_E_INVALIDPROCID
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment