Harald Freudenberger 1f0d22defd s390/ap: Rework ap_dqap to deal with messages greater than recv buffer
Rework of the ap_dqap() inline function with the dqap inline assembler
invocation and the caller code in ap_queue.c to be able to handle
replies which exceed the receive buffer size.

ap_dqap() now provides two additional parameters to handle together
with the caller the case where a reply in the firmware queue entry
exceeds the given message buffer size. It depends on the caller how to
exactly handle this. The behavior implemented now by ap_sm_recv() in
ap_queue.c is to simple purge this entry from the firmware queue and
let the caller 'receive' a -EMSGSIZE for the request without
delivering any reply data - not even a truncated reply message.

However, the reworked ap_dqap() could now get invoked in a way that
the message is received in multiple parts and the caller assembles the
parts into one reply message.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Suggested-by: Juergen Christ <jchrist@linux.ibm.com>
Reviewed-by: Juergen Christ <jchrist@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2021-07-08 15:37:27 +02:00
..
2021-07-02 13:22:47 -07:00
2021-07-02 15:14:36 -07:00
2021-06-30 15:51:09 -07:00
2021-07-03 11:49:33 -07:00
2021-07-02 12:54:34 -07:00
2021-06-17 17:37:18 -07:00
2021-06-29 10:53:48 -07:00
2021-06-16 09:03:52 -07:00
2021-06-30 11:15:39 -07:00
2021-07-03 11:49:33 -07:00
2021-07-02 12:58:26 -07:00
2021-07-03 11:13:22 -07:00
2021-06-30 11:15:39 -07:00
2021-07-02 13:22:47 -07:00
2021-06-30 15:51:09 -07:00
2021-06-30 12:12:56 -07:00
2021-07-02 15:25:23 -07:00
2021-07-03 11:13:22 -07:00
2021-07-02 12:58:26 -07:00
2021-06-30 12:12:56 -07:00
2021-07-03 11:13:22 -07:00
2021-07-04 11:55:13 -07:00
2021-07-02 15:14:36 -07:00
2021-07-03 10:54:08 -07:00
2021-07-03 11:49:33 -07:00
2021-07-02 15:14:36 -07:00
2021-06-28 12:14:19 -07:00
2021-07-03 11:13:22 -07:00
2021-07-03 11:49:33 -07:00
2021-07-02 15:14:36 -07:00
2021-06-16 08:53:58 -06:00
2021-06-29 11:21:35 -07:00