Re: [PATCH] drm/prime: fix extracting of the DMA addresses from a scatterlist

2020-03-27 Thread Alex Deucher
On Fri, Mar 27, 2020 at 6:25 AM Shane Francis wrote: > > Hello Marek, > > On Fri, Mar 27, 2020 at 9:00 AM Marek Szyprowski > wrote: > > > I have tested the above patch against my original issues with amdgpu > > > and radeon drivers and everything is still working as expected. > > > > > > Sorry I

Re: [PATCH] drm/prime: fix extracting of the DMA addresses from a scatterlist

2020-03-27 Thread Shane Francis
Hello Marek, On Fri, Mar 27, 2020 at 9:00 AM Marek Szyprowski wrote: > > I have tested the above patch against my original issues with amdgpu > > and radeon drivers and everything is still working as expected. > > > > Sorry I missed this in my original patches. > > No problem. Thanks for

Re: [PATCH] drm/prime: fix extracting of the DMA addresses from a scatterlist

2020-03-27 Thread Marek Szyprowski
Hi Shane On 2020-03-27 09:55, Shane Francis wrote: > On Fri, Mar 27, 2020 at 8:24 AM Marek Szyprowski > wrote: >> Scatterlist elements contains both pages and DMA addresses, but in general, >> one cannot assume 1:1 relation between them. The sg->length is the size of >> the physical memory chunk

Re: [PATCH] drm/prime: fix extracting of the DMA addresses from a scatterlist

2020-03-27 Thread Shane Francis
On Fri, Mar 27, 2020 at 8:24 AM Marek Szyprowski wrote: > > Scatterlist elements contains both pages and DMA addresses, but in general, > one cannot assume 1:1 relation between them. The sg->length is the size of > the physical memory chunk described by sg->page, while sg_dma_length(sg) is > the