ttm_bo_eviction_valuable wrong units?

Dave Airlie airlied at gmail.com
Mon Oct 19 21:44:29 UTC 2020


if (place->fpfn >= (bo->mem.start + bo->mem.size) ||
            (place->lpfn && place->lpfn <= bo->mem.start))
                return false;

Should the bo->mem.size there be bo->mem.num_pages?

I was just writing patches to get rid of size and noticed this.

Dave.


More information about the dri-devel mailing list