Quoting Andi Shyti (2020-03-31 22:37:14) > Hi Chris, > > > If the user passes in a readonly reloc[], by the time we notice we have > > already commited to modifying the execobjects, or have indeed done so > > already. Reporting the failure just compounds the issue as we have no > > second pass to fall back to anymore. > > It's also written in the comment, btw. > > > Testcase: igt/gem_exec_reloc/readonly > > if one day we will change igt, we can't fix this commit. Heh, I'm old, I've been using this from the inception of igt even though it's not formalized anywhere. All it is is a clue that there is some code somewhere that exercises this patch in some way. And short of including the test code in the patch... Hey wait that's what selftests are so -- only execbuf2 is not amenable to unit testing atm, or at least no effect has been spent doing so. A new interface would be built around testing, but we might still struggle to create valid user addresses. I think there's a way to do so with set_fs(USER_DS) but I am not sure. Or we use usermodehelper to wrap the testcode and run it from userspace but included as part of the driver sources. -Chris _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx