Matthew Poremba has uploaded this change for review. ( 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 0 seems to be
correct based on many tests.

Change-Id: I424469076e87e690ab0bb722bac4c3e7414fb150
---
M src/gpu-compute/gpu_command_processor.cc
1 file changed, 21 insertions(+), 1 deletion(-)



diff --git a/src/gpu-compute/gpu_command_processor.cc b/src/gpu-compute/gpu_command_processor.cc
index 0f74cb1..0e2ff50 100644
--- a/src/gpu-compute/gpu_command_processor.cc
+++ b/src/gpu-compute/gpu_command_processor.cc
@@ -224,7 +224,13 @@

         DPRINTF(GPUCommandProc, "Calling signal wakeup event on "
                 "signal event value %d\n", *event_val);
-        signalWakeupEvent(*event_val);
+
+        if (FullSystem) {
+            auto cb = new DmaVirtCallback<uint64_t>(function, 0);
+ 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: 1
Gerrit-Owner: Matthew Poremba <matthew.pore...@amd.com>
Gerrit-MessageType: newchange
_______________________________________________
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

Reply via email to