[PATCH 03/11] drm/amdgpu: convert amdgpu_vm_it to half closed intervals
walken at google.com
Fri Oct 4 11:36:28 UTC 2019
On Fri, Oct 04, 2019 at 06:54:54AM +0000, Koenig, Christian wrote:
> Am 03.10.19 um 22:18 schrieb Davidlohr Bueso:
> > The amdgpu_vm interval tree really wants [a, b) intervals,
> NAK, we explicitly do need an [a, b[ interval here.
Just wanted to confirm where you stand on this patch, since I think
you reconsidered your initial position after first looking at 9/11
from this series.
I do not know the amdgpu code well, but I think the changes should be
fine - in struct amdgpu_bo_va_mapping, the "end" field will hold what
was previously stored in the "last" field, plus one. The expectation
is that overflows should not be an issue there, as "end" is explicitly
declared as an uint64, and as the code was previously computing
"last + 1" in many places.
Does that seem workable to you ?
Michel "Walken" Lespinasse
A program is never fully debugged until the last user dies.
More information about the dri-devel