Matthew Poremba has submitted this change. (
https://gem5-review.googlesource.com/c/public/gem5/+/57709 )
Change subject: gpu-compute: Handle mailbox/wakeup signals for GPUFS
......................................................................
gpu-compute: Handle mailbox/wakeup signals for GPUFS
The current mailbox/wakeup signal uses the SE mode proxy port to write
the event value. This is not available in full system mode so instead we
need to issue a DMA write to the address. The value of event_val clears
the event.
Change-Id: I424469076e87e690ab0bb722bac4c3e7414fb150
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/57709
Reviewed-by: Matt Sinclair <mattdsincl...@gmail.com>
Maintainer: Matt Sinclair <mattdsincl...@gmail.com>
Tested-by: kokoro <noreply+kok...@google.com>
---
M src/gpu-compute/gpu_command_processor.cc
1 file changed, 29 insertions(+), 1 deletion(-)
Approvals:
Matt Sinclair: Looks good to me, approved; Looks good to me, approved
kokoro: Regressions pass
diff --git a/src/gpu-compute/gpu_command_processor.cc
b/src/gpu-compute/gpu_command_processor.cc
index 0f74cb1..08bce77 100644
--- a/src/gpu-compute/gpu_command_processor.cc
+++ b/src/gpu-compute/gpu_command_processor.cc
@@ -224,7 +224,17 @@
DPRINTF(GPUCommandProc, "Calling signal wakeup event on "
"signal event value %d\n", *event_val);
- signalWakeupEvent(*event_val);
+
+ // The mailbox/wakeup signal uses the SE mode proxy port to write
+ // the event value. This is not available in full system mode so
+ // instead we need to issue a DMA write to the address. The value
of
+ // *event_val clears the event.
+ if (FullSystem) {
+ auto cb = new DmaVirtCallback<uint64_t>(function, *event_val);
+ dmaWriteVirt(mailbox_addr, sizeof(Addr), cb, &cb->dmaBuffer,
0);
+ } else {
+ signalWakeupEvent(*event_val);
+ }
}
}
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/57709
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I424469076e87e690ab0bb722bac4c3e7414fb150
Gerrit-Change-Number: 57709
Gerrit-PatchSet: 22
Gerrit-Owner: Matthew Poremba <matthew.pore...@amd.com>
Gerrit-Reviewer: Alexandru Duțu <alexandru.d...@amd.com>
Gerrit-Reviewer: Matt Sinclair <mattdsincl...@gmail.com>
Gerrit-Reviewer: Matthew Poremba <matthew.pore...@amd.com>
Gerrit-Reviewer: kokoro <noreply+kok...@google.com>
Gerrit-MessageType: merged
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s