SWDEV-283981 - [PAL] Support hostcall SQ interrupt

Change-Id: Ic6f0ad384404712d5eeb1eaf600e231a8f8631f7


[ROCm/clr commit: 4589343c3e]
This commit is contained in:
Vladislav Sytchenko
2021-06-28 14:21:02 -04:00
committed by Maneesh Gupta
parent 89e36989ec
commit 74adf82805
3 changed files with 75 additions and 4 deletions
+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;