From: Hernan Vargas <hernan.vargas@intel.com>
To: dev@dpdk.org, gakhil@marvell.com, trix@redhat.com,
maxime.coquelin@redhat.com
Cc: nicolas.chautru@intel.com, qi.z.zhang@intel.com,
Hernan Vargas <hernan.vargas@intel.com>
Subject: [PATCH v1 3/5] baseband/acc: move memory barrier
Date: Mon, 22 Apr 2024 08:40:06 -0700 [thread overview]
Message-ID: <20240422154008.119800-4-hernan.vargas@intel.com> (raw)
In-Reply-To: <20240422154008.119800-1-hernan.vargas@intel.com>
Moving memory barrier so that dequeue thread can be in sync with enqueue
thread.
Signed-off-by: Hernan Vargas <hernan.vargas@intel.com>
---
drivers/baseband/acc/acc_common.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/baseband/acc/acc_common.h b/drivers/baseband/acc/acc_common.h
index fddeb0737b8b..e249f37e38fe 100644
--- a/drivers/baseband/acc/acc_common.h
+++ b/drivers/baseband/acc/acc_common.h
@@ -1112,6 +1112,9 @@ acc_dma_enqueue(struct acc_queue *q, uint16_t n,
req_elem_addr,
(void *)q->mmio_reg_enqueue);
+ q->aq_enqueued++;
+ q->sw_ring_head += enq_batch_size;
+
rte_wmb();
/* Start time measurement for enqueue function offload. */
@@ -1122,8 +1125,6 @@ acc_dma_enqueue(struct acc_queue *q, uint16_t n,
queue_stats->acc_offload_cycles += rte_rdtsc_precise() - start_time;
- q->aq_enqueued++;
- q->sw_ring_head += enq_batch_size;
n -= enq_batch_size;
} while (n);
--
2.37.1
next prev parent reply other threads:[~2024-04-22 15:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-22 15:40 [PATCH v1 0/5] ACC100 improvements and clean up Hernan Vargas
2024-04-22 15:40 ` [PATCH v1 1/5] baseband/acc: remove ACC100 unused code Hernan Vargas
2024-05-02 15:27 ` Maxime Coquelin
2024-04-22 15:40 ` [PATCH v1 2/5] baseband/acc: remove ACC100 HARQ pruning Hernan Vargas
2024-05-02 15:28 ` Maxime Coquelin
2024-04-22 15:40 ` Hernan Vargas [this message]
2024-05-02 15:29 ` [PATCH v1 3/5] baseband/acc: move memory barrier Maxime Coquelin
2024-04-22 15:40 ` [PATCH v1 4/5] baseband/acc: improve error description Hernan Vargas
2024-05-02 15:31 ` Maxime Coquelin
2024-04-22 15:40 ` [PATCH v1 5/5] baseband/acc: cosmetic log changes Hernan Vargas
2024-05-02 15:31 ` Maxime Coquelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240422154008.119800-4-hernan.vargas@intel.com \
--to=hernan.vargas@intel.com \
--cc=dev@dpdk.org \
--cc=gakhil@marvell.com \
--cc=maxime.coquelin@redhat.com \
--cc=nicolas.chautru@intel.com \
--cc=qi.z.zhang@intel.com \
--cc=trix@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).