And in some cases on some systems the DRM controller might zero the memory in some situations, in which cases you could say it was done by hardware.
Did you mean DMA controller? Or do you have more information?
And in some cases on some systems the DRM controller might zero the memory in some situations, in which cases you could say it was done by hardware.