Re: [PATCH net-next v22 1/2] mailbox/pcc: support mailbox management of the shared buffer

From
Adam Young <hidden>
Date
2025-07-14 23:02:12
Also in
lkml
Reply to
unknown sender, 2025-07-10
Internal review discovered an error

On 7/10/25 15:12, admiyo@os.amperecomputing.com wrote:
+	if (pchan->chan.rx_alloc)
+		ret = pcc_write_to_buffer(chan, data);
This is the wrong check. The rx_alloc is expected to be used  for the type4, and the will be called from the type 3.

Going to add an explicit flag instead.

quoted hunk ↗ jump to hunk
+	pcc_hdr = pchan->chan.shmem;
+	if (ioread32(&pcc_hdr->flags) & PCC_CMD_COMPLETION_NOTIFY)
+		pchan->chan.irq_ack = true;
This flag can be removed and replaced  with a check of the value in the original buffer, which is held in chan->current_req.


Updated version of the patch series to follow.

Thread (10 messages) 10 messages, 5 authors, last reply 2025-07-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help