gpu-compute: Chunkify AMDKernelCode read from device

The AMDKernelCode object can span potentially span two pages. Currently
the copy loop from device memory only translates once at the base

This changeset translates one cache line at a time before copying and
has the ancillary benefit for cleaning up this code a bit.

Change-Id: I602bc12d8f8c5d3a3e57ab3f42f7dd3df58dc144
Reviewed-by: Matt Sinclair <>
Tested-by: kokoro <>
Reviewed-by: Jason Lowe-Power <>
Maintainer: Jason Lowe-Power <>
1 file changed