Re: [PATCH 3/5] drm/i915/dmabuf: Add LMEM knowledge to dmabuf map handler

2020-04-28 Thread Daniel Vetter
> >Subject: Re: [PATCH 3/5] drm/i915/dmabuf: Add LMEM knowledge to dmabuf > >map handler > > > >On Wed, Apr 22, 2020 at 05:25:17PM -0400, Michael J. Ruhl wrote: > >> LMEM backed buffer objects do not have struct page information. > >> Instead the dma_address

RE: [PATCH 3/5] drm/i915/dmabuf: Add LMEM knowledge to dmabuf map handler

2020-04-28 Thread Ruhl, Michael J
>-Original Message- >From: Daniel Vetter >Sent: Tuesday, April 28, 2020 11:02 AM >To: Ruhl, Michael J >Cc: dri-devel@lists.freedesktop.org; dan...@ffwll.ch; Xiong, Jianxin > >Subject: Re: [PATCH 3/5] drm/i915/dmabuf: Add LMEM knowledge to dmabuf >map handler >

Re: [PATCH 3/5] drm/i915/dmabuf: Add LMEM knowledge to dmabuf map handler

2020-04-28 Thread Daniel Vetter
On Wed, Apr 22, 2020 at 05:25:17PM -0400, Michael J. Ruhl wrote: > LMEM backed buffer objects do not have struct page information. > Instead the dma_address of the struct sg is used to store the > LMEM address information (relative to the device, this is not > the CPU physical address). > > The

[PATCH 3/5] drm/i915/dmabuf: Add LMEM knowledge to dmabuf map handler

2020-04-22 Thread Michael J. Ruhl
LMEM backed buffer objects do not have struct page information. Instead the dma_address of the struct sg is used to store the LMEM address information (relative to the device, this is not the CPU physical address). The dmabuf map handler requires pages to do a dma_map_xx. Add new