Re: [Intel-gfx] [PATCH] drm/i915: Add TTM offset argument to mmap.

2021-07-14 Thread Jason Ekstrand
On Wed, Jul 14, 2021 at 12:05 PM Maarten Lankhorst wrote: > > Op 14-07-2021 om 18:17 schreef Jason Ekstrand: > > On Wed, Jul 14, 2021 at 5:03 AM Maarten Lankhorst > > wrote: > >> The FIXED mapping is only used for ttm, and tells userspace that the > >> mapping type is pre-defined. This disables

Re: [Intel-gfx] [PATCH] drm/i915: Add TTM offset argument to mmap.

2021-07-14 Thread Maarten Lankhorst
Op 14-07-2021 om 18:17 schreef Jason Ekstrand: > On Wed, Jul 14, 2021 at 5:03 AM Maarten Lankhorst > wrote: >> The FIXED mapping is only used for ttm, and tells userspace that the >> mapping type is pre-defined. This disables the other type of mmap >> offsets when discrete memory is used, so fix

Re: [Intel-gfx] [PATCH] drm/i915: Add TTM offset argument to mmap.

2021-07-14 Thread Jason Ekstrand
On Wed, Jul 14, 2021 at 5:03 AM Maarten Lankhorst wrote: > > The FIXED mapping is only used for ttm, and tells userspace that the > mapping type is pre-defined. This disables the other type of mmap > offsets when discrete memory is used, so fix the selftests as well. > > Document the struct as

[Intel-gfx] [PATCH] drm/i915: Add TTM offset argument to mmap.

2021-07-14 Thread Maarten Lankhorst
The FIXED mapping is only used for ttm, and tells userspace that the mapping type is pre-defined. This disables the other type of mmap offsets when discrete memory is used, so fix the selftests as well. Document the struct as well, so it shows up in docbook. Cc: Jason Ekstrand Reviewed-by:

Re: [Intel-gfx] [PATCH] drm/i915: Add TTM offset argument to mmap.

2021-07-09 Thread Jason Ekstrand
On Thu, Jul 1, 2021 at 6:42 AM Maarten Lankhorst wrote: > > This is only used for ttm, and tells userspace that the mapping type is > ignored. This disables the other type of mmap offsets when discrete > memory is used, so fix the selftests as well. > > Signed-off-by: Maarten Lankhorst > --- >

Re: [Intel-gfx] [PATCH] drm/i915: Add TTM offset argument to mmap.

2021-07-09 Thread Maarten Lankhorst
Op 09-07-2021 om 11:30 schreef Matthew Auld: > On Mon, 5 Jul 2021 at 15:36, Matthew Auld > wrote: >> On Thu, 1 Jul 2021 at 12:50, Maarten Lankhorst >> wrote: >>> Op 01-07-2021 om 13:42 schreef Maarten Lankhorst: This is only used for ttm, and tells userspace that the mapping type is

Re: [Intel-gfx] [PATCH] drm/i915: Add TTM offset argument to mmap.

2021-07-09 Thread Matthew Auld
On Mon, 5 Jul 2021 at 15:36, Matthew Auld wrote: > > On Thu, 1 Jul 2021 at 12:50, Maarten Lankhorst > wrote: > > > > Op 01-07-2021 om 13:42 schreef Maarten Lankhorst: > > > This is only used for ttm, and tells userspace that the mapping type is > > > ignored. This disables the other type of mmap

Re: [Intel-gfx] [PATCH] drm/i915: Add TTM offset argument to mmap.

2021-07-05 Thread Matthew Auld
On Thu, 1 Jul 2021 at 12:50, Maarten Lankhorst wrote: > > Op 01-07-2021 om 13:42 schreef Maarten Lankhorst: > > This is only used for ttm, and tells userspace that the mapping type is > > ignored. This disables the other type of mmap offsets when discrete > > memory is used, so fix the selftests

Re: [Intel-gfx] [PATCH] drm/i915: Add TTM offset argument to mmap.

2021-07-01 Thread Maarten Lankhorst
Op 01-07-2021 om 13:42 schreef Maarten Lankhorst: > This is only used for ttm, and tells userspace that the mapping type is > ignored. This disables the other type of mmap offsets when discrete > memory is used, so fix the selftests as well. > > Signed-off-by: Maarten Lankhorst > --- >

[Intel-gfx] [PATCH] drm/i915: Add TTM offset argument to mmap.

2021-07-01 Thread Maarten Lankhorst
This is only used for ttm, and tells userspace that the mapping type is ignored. This disables the other type of mmap offsets when discrete memory is used, so fix the selftests as well. Signed-off-by: Maarten Lankhorst --- drivers/gpu/drm/i915/gem/i915_gem_mman.c | 17 +++-