https://bugzilla.kernel.org/show_bug.cgi?id=206895
--- Comment #10 from bigbeeshane@gmail.com --- Created attachment 288017 --> https://bugzilla.kernel.org/attachment.cgi?id=288017&action=edit amdgpu_possible_patch
drm_prime_sg_to_page_addr_arrays does not support cases when the number of segments returned from dma_map_sg differs from that reported (this can be the case)
Add and make use of a version that can use the count data returned from dma_map_sg and the correct sg_dma_len macro