Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

Commit 30d1d9b

Browse files
JasonTTangJason Tang
authored andcommitted
Avoid using sdma engine if there's none
Change-Id: Id8d373683f3e1667ab461b4c5b8b490377b64cc0
1 parent 4ab5dbd commit 30d1d9b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

device/pal/palsettings.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,10 @@ bool Settings::create(const Pal::DeviceProperties& palProp,
356356
return false;
357357
}
358358

359+
if (0 == palProp.engineProperties[Pal::EngineTypeDma].engineCount) {
360+
disableSdma_ = true;
361+
}
362+
359363
// Image DMA must be disabled if SDMA is disabled
360364
imageDMA_ &= !disableSdma_;
361365

0 commit comments

Comments
 (0)