SWDEV-283981 - [PAL] Support hostcall SQ interrupt

Note that this requires base driver CL#2340320+ to have SQ interrupt
functionality enabled by default.

Change-Id: I04b936819ebe1eb7cf5de1db4fafe83af3a1b5f6


[ROCm/clr commit: 4171e9e0a3]
This commit is contained in:
Vladislav Sytchenko authored and Maneesh Gupta committed 2021-08-22 23:56:08 -07:00
1 parent 135551359e
commit a4306451fe
3 files changed
+75 -4

No files matched your search

+3 -3
View File
@@ -335,10 +335,10 @@ void HostcallListener::removeBuffer(HostcallBuffer* buffer) {
bool HostcallListener::initialize(const amd::Device &dev) {
doorbell_ = dev.createSignal();
#ifdef WITH_HSA_DEVICE
auto ws = device::Signal::WaitState::Blocked;
#else
#if defined(WITH_PAL_DEVICE) && !defined(_WIN32)
auto ws = device::Signal::WaitState::Active;
#else
auto ws = device::Signal::WaitState::Blocked;
#endif
if ((doorbell_ == nullptr) || !doorbell_->Init(dev, SIGNAL_INIT, ws)) {
return false;