[Sound-open-firmware] [PATCH] byt-ipc: add msg back to empty_list for next use
The msg pool will be used up as it was not added back to empty_list, here correct it.
Signed-off-by: Keyon Jie yang.jie@linux.intel.com --- src/ipc/byt-ipc.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/ipc/byt-ipc.c b/src/ipc/byt-ipc.c index 8897bb9..6716cce 100644 --- a/src/ipc/byt-ipc.c +++ b/src/ipc/byt-ipc.c @@ -194,6 +194,9 @@ void ipc_platform_send_msg(struct ipc *ipc) shim_write(SHIM_IPCDL, msg->header); shim_write(SHIM_IPCDH, SHIM_IPCDH_BUSY);
+ /* add msg back to empty_list for next use */ + list_item_append(&msg->list, &ipc->empty_list); + out: spin_unlock_irq(&ipc->lock, flags); }
On Mon, 2017-12-11 at 21:31 +0800, Keyon Jie wrote:
The msg pool will be used up as it was not added back to empty_list, here correct it.
Signed-off-by: Keyon Jie yang.jie@linux.intel.com
src/ipc/byt-ipc.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/ipc/byt-ipc.c b/src/ipc/byt-ipc.c index 8897bb9..6716cce 100644 --- a/src/ipc/byt-ipc.c +++ b/src/ipc/byt-ipc.c @@ -194,6 +194,9 @@ void ipc_platform_send_msg(struct ipc *ipc) shim_write(SHIM_IPCDL, msg->header); shim_write(SHIM_IPCDH, SHIM_IPCDH_BUSY);
- /* add msg back to empty_list for next use */
- list_item_append(&msg->list, &ipc->empty_list);
This should be returned to the free pool in do_notify() ?
out: spin_unlock_irq(&ipc->lock, flags); }
--------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
-----Original Message----- From: Girdwood, Liam R Sent: Monday, December 11, 2017 10:59 PM To: Keyon Jie yang.jie@linux.intel.com; sound-open-firmware@alsa- project.org Cc: Jie, Yang yang.jie@intel.com; Wang, Yan yan.wang@intel.com Subject: Re: [Sound-open-firmware] [PATCH] byt-ipc: add msg back to empty_list for next use
On Mon, 2017-12-11 at 21:31 +0800, Keyon Jie wrote:
The msg pool will be used up as it was not added back to empty_list, here correct it.
Signed-off-by: Keyon Jie yang.jie@linux.intel.com
src/ipc/byt-ipc.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/ipc/byt-ipc.c b/src/ipc/byt-ipc.c index 8897bb9..6716cce 100644 --- a/src/ipc/byt-ipc.c +++ b/src/ipc/byt-ipc.c @@ -194,6 +194,9 @@ void ipc_platform_send_msg(struct ipc *ipc) shim_write(SHIM_IPCDL, msg->header); shim_write(SHIM_IPCDH, SHIM_IPCDH_BUSY);
- /* add msg back to empty_list for next use */
- list_item_append(&msg->list, &ipc->empty_list);
This should be returned to the free pool in do_notify() ?
I believe not all DSP initiated msg has ack from host? Or notify() is used seldom? I have blurry memory about this, but at least we can replace the one in do_notify() with this one?
Thanks, ~Keyon
out: spin_unlock_irq(&ipc->lock, flags); }
On Tue, 2017-12-12 at 13:51 +0000, Jie, Yang wrote:
-----Original Message----- From: Girdwood, Liam R Sent: Monday, December 11, 2017 10:59 PM To: Keyon Jie yang.jie@linux.intel.com; sound-open-firmware@alsa- project.org Cc: Jie, Yang yang.jie@intel.com; Wang, Yan yan.wang@intel.com Subject: Re: [Sound-open-firmware] [PATCH] byt-ipc: add msg back to empty_list for next use
On Mon, 2017-12-11 at 21:31 +0800, Keyon Jie wrote:
The msg pool will be used up as it was not added back to empty_list, here correct it.
Signed-off-by: Keyon Jie yang.jie@linux.intel.com
src/ipc/byt-ipc.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/src/ipc/byt-ipc.c b/src/ipc/byt-ipc.c index 8897bb9..6716cce 100644 --- a/src/ipc/byt-ipc.c +++ b/src/ipc/byt-ipc.c @@ -194,6 +194,9 @@ void ipc_platform_send_msg(struct ipc *ipc) shim_write(SHIM_IPCDL, msg->header); shim_write(SHIM_IPCDH, SHIM_IPCDH_BUSY);
- /* add msg back to empty_list for next use */
- list_item_append(&msg->list, &ipc->empty_list);
This should be returned to the free pool in do_notify() ?
I believe not all DSP initiated msg has ack from host? Or notify() is used seldom? I have blurry memory about this, but at least we can replace the one in do_notify() with this one?
Yes, all DSP messages should be ACked by host. It's possible the warning we see at boot is related to stale data in the inbox/outbox ?
Liam
participants (4)
-
Jie, Yang
-
Keyon Jie
-
Liam Girdwood
-
Liam Girdwood