Optimization Of Firmware Functions For Hsa