git: 0e8044064716 - main - busdma: Add deferred time measurement to arm and powerpc

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 13 Nov 2023 19:26:43 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=0e8044064716fa7cf4fd9a98016f6e8c8f108333

commit 0e8044064716fa7cf4fd9a98016f6e8c8f108333
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-11-13 19:23:31 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-11-13 19:25:56 +0000

    busdma: Add deferred time measurement to arm and powerpc
    
    Add the forgotten field to these implementations as well.
    
    Pointy hat to: me (make universe vs make tinderbox)
    Fixes: 20f8814cd3fa
    Sponsored by: Netflix
---
 sys/arm/arm/busdma_machdep.c         | 1 +
 sys/powerpc/powerpc/busdma_machdep.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sys/arm/arm/busdma_machdep.c b/sys/arm/arm/busdma_machdep.c
index 07a3da114441..41b92d65ae84 100644
--- a/sys/arm/arm/busdma_machdep.c
+++ b/sys/arm/arm/busdma_machdep.c
@@ -149,6 +149,7 @@ struct bus_dmamap {
 	struct memdesc		mem;
 	bus_dmamap_callback_t	*callback;
 	void			*callback_arg;
+	__sbintime_t		queued_time;
 	int			flags;
 #define	DMAMAP_COHERENT		(1 << 0)
 #define	DMAMAP_DMAMEM_ALLOC	(1 << 1)
diff --git a/sys/powerpc/powerpc/busdma_machdep.c b/sys/powerpc/powerpc/busdma_machdep.c
index bffbfa94acac..59e54d2478fa 100644
--- a/sys/powerpc/powerpc/busdma_machdep.c
+++ b/sys/powerpc/powerpc/busdma_machdep.c
@@ -97,6 +97,7 @@ struct bus_dmamap {
 	int		       nsegs;
 	bus_dmamap_callback_t *callback;
 	void		      *callback_arg;
+	__sbintime_t	       queued_time;
 	STAILQ_ENTRY(bus_dmamap) links;
 	int		       contigalloc;
 };