Re: [Intel-gfx] [PATCH v7 13/63] drm/i915: Reject more ioctls for userptr

2021-02-01 Thread Jason Ekstrand
On January 29, 2021 05:42:47 Maarten Lankhorst wrote: Op 28-01-2021 om 17:47 schreef Jason Ekstrand: On Thu, Jan 28, 2021 at 10:26 AM Maarten Lankhorst wrote: There are a couple of ioctl's related to tiling and cache placement, that make no sense for userptr, reject those: - i915_gem_set_ti

Re: [Intel-gfx] [PATCH v7 13/63] drm/i915: Reject more ioctls for userptr

2021-01-29 Thread Maarten Lankhorst
Op 28-01-2021 om 17:47 schreef Jason Ekstrand: > On Thu, Jan 28, 2021 at 10:26 AM Maarten Lankhorst > wrote: >> There are a couple of ioctl's related to tiling and cache placement, >> that make no sense for userptr, reject those: >> - i915_gem_set_tiling_ioctl() >> Tiling should always be line

Re: [Intel-gfx] [PATCH v7 13/63] drm/i915: Reject more ioctls for userptr

2021-01-28 Thread Jason Ekstrand
On Thu, Jan 28, 2021 at 10:26 AM Maarten Lankhorst wrote: > > There are a couple of ioctl's related to tiling and cache placement, > that make no sense for userptr, reject those: > - i915_gem_set_tiling_ioctl() > Tiling should always be linear for userptr. Changing placement will > fail wi

[Intel-gfx] [PATCH v7 13/63] drm/i915: Reject more ioctls for userptr

2021-01-28 Thread Maarten Lankhorst
There are a couple of ioctl's related to tiling and cache placement, that make no sense for userptr, reject those: - i915_gem_set_tiling_ioctl() Tiling should always be linear for userptr. Changing placement will fail with -ENXIO. - i915_gem_set_caching_ioctl() Userptr memory should alw