Slightly simplified hdma solver