[igt-dev] [PATCH i-g-t] lib/intel_batchbuffer: Fix relocs across the 4GB address boundary

Imre Deak imre.deak at intel.com
Mon Nov 9 13:12:09 UTC 2020


On Mon, Nov 09, 2020 at 01:05:29PM +0000, Chris Wilson wrote:
> Quoting Zbigniew Kempczyński (2020-11-09 13:02:14)
> > On Mon, Nov 09, 2020 at 12:08:43PM +0000, Chris Wilson wrote:
> > > Quoting Imre Deak (2020-11-09 12:06:32)
> > > > If the delta of a relocation target wrt. the object base address crosses
> > > > the 4GB address boundary the upper 32bit of the target address will be
> > > > incorrect, fix this.
> > > > 
> > > > Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> > > > Cc: Chris Wilson <chris at chris-wilson.co.uk>
> > > > Signed-off-by: Imre Deak <imre.deak at intel.com>
> > > 
> > > Zbigniew, fancy writing a test case for this?
> > > -Chris
> > 
> > Sure, enqueued. 
> > 
> > Apart of fix is correct - I thought we're mostly using delta
> > to set some bits in commands. What's the real usage?
> 
> Large offsets would most commonly be used for subsurfaces or auxiliary
> state contained within one buffer.

Yes, it came up with a relocation needed for the color clear value
address within a framebuffer object.

> -Chris
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev


More information about the igt-dev mailing list