Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1651191

Re: [Intel-gfx] [PATCH v5 4/5] drm/i915/gvt: Dmabuf support for GVT-g

From Chris Wilson <chris@chris-wilson.co.uk>
Newsgroups linux.kernel
Subject Re: [Intel-gfx] [PATCH v5 4/5] drm/i915/gvt: Dmabuf support for GVT-g
Date 2017-05-26 10:40 +0200
Message-ID <tLiWR-3x5-3@gated-at.bofh.it> (permalink)
References <tKfol-1W6-1@gated-at.bofh.it> <tKfol-1W6-11@gated-at.bofh.it> <tL0ZY-iP-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, May 25, 2017 at 02:28:25PM +0100, Chris Wilson wrote:
> On Tue, May 23, 2017 at 06:32:00PM +0800, Xiaoguang Chen wrote:
> > +	gtt_entries = (gen8_pte_t __iomem *)dev_priv->ggtt.gsm +
> > +		(fb_gma >> PAGE_SHIFT);
> > +	for_each_sg(st->sgl, sg, fb_size, i) {
> > +		sg->offset = 0;
> > +		sg->length = PAGE_SIZE;
> > +		sg_dma_address(sg) =
> > +			GEN8_DECODE_PTE(readq(&gtt_entries[i]));
> > +		sg_dma_len(sg) = PAGE_SIZE;
> 
> This assumes that the entries are PAGE_SIZE. This will not remain true.

Ok, we will only be supporting different page sizes for ppgtt. However,
it is probably better to use I915_GTT_PAGE_SIZE to match our insertions.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [Intel-gfx] [PATCH v5 4/5] drm/i915/gvt: Dmabuf support for GVT-g Chris Wilson <chris@chris-wilson.co.uk> - 2017-05-25 15:30 +0200
  Re: [Intel-gfx] [PATCH v5 4/5] drm/i915/gvt: Dmabuf support for GVT-g Chris Wilson <chris@chris-wilson.co.uk> - 2017-05-26 10:40 +0200

csiph-web