[Intel-gfx] [PATCH 05/11] drm/i915/gtt: Compute the radix for gen8 page table levels

Chris Wilson chris at chris-wilson.co.uk
Wed Jul 10 13:55:45 UTC 2019


Quoting Mika Kuoppala (2019-07-10 14:49:05)
> Chris Wilson <chris at chris-wilson.co.uk> writes:
> > +static inline unsigned int gen8_pt_count(u64 addr, u64 end)
> > +{
> > +     GEM_BUG_ON(addr >= end);
> > +     if ((addr ^ end) & ~I915_PDE_MASK)
> > +             return I915_PDES - (addr & I915_PDE_MASK);
> 
> Ok, I yield on 512. I915_PDES is fine as it atleast
> couples it to mask :O

I had already removed them all! :-p

Give or take a few GEN8_PDES since that ends up being the single
constant we require.
-Chris


More information about the Intel-gfx mailing list