[Intel-gfx] [PATCH 2/2] drm/i915/dmabuf: Use scatterlist for_each_sg API

2022-05-06 Thread Michael J. Ruhl
Update open coded for loop to use the standard scatterlist for_each_sg API. Cc: Tvrtko Ursulin Signed-off-by: Michael J. Ruhl --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c b

[Intel-gfx] [PATCH 1/2] drm/i915/dmabuf: dmabuf cleanup

2022-05-06 Thread Michael J. Ruhl
Some minor cleanup of some variables for consistency. Normalize struct sg_table to sgt. Normalize struct dma_buf_attachment to attach. checkpatch issues sizeof(), !NULL updates. Cc: Tvrtko Ursulin Signed-off-by: Michael J. Ruhl --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 47

[Intel-gfx] i915 dmabuf cleanup

2022-05-06 Thread Michael J. Ruhl
While studying this code I noticed a few inconsistencies and possible cleanups. Please consider these patches.

[Intel-gfx] [PATCH v1 1/2] drm/i915/gem: Correct the locking and pin pattern for dma-buf

2021-07-01 Thread Michael J. Ruhl
support and move the pinning into the attach/detach path. v4: (ruhl) - Put pages does not need to assert on the dma-resv Reported-by: Michael J. Ruhl Signed-off-by: Thomas Hellström Signed-off-by: Michael J. Ruhl --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c| 44 +-- .../drm/i915/gem

[Intel-gfx] [PATCH v1 2/2] drm/i915/gem: Migrate to system at dma-buf attach time

2021-07-01 Thread Michael J. Ruhl
() callback. v4: - Migrate in attach Signed-off-by: Thomas Hellström Signed-off-by: Michael J. Ruhl --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 12 +++- drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c | 4 +++- 2 files changed, 14 insertions(+), 2 deletions(-) diff

[Intel-gfx] [PATCH 1/2] drm/i915/gem: Correct the locking and pin pattern for dma-buf

2021-07-01 Thread Michael J. Ruhl
support and move the pinning into the attach/detach path. Reported-by: Michael J. Ruhl Signed-off-by: Thomas Hellström Signed-off-by: Michael J. Ruhl --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c| 46 +-- .../drm/i915/gem/selftests/i915_gem_dmabuf.c | 116 +- 2 files

[Intel-gfx] [PATCH 2/2] drm/i915/gem: Migrate to system at dma-buf attach time

2021-07-01 Thread Michael J. Ruhl
() callback. v4: - Migrate in attach Signed-off-by: Thomas Hellström Signed-off-by: Michael J. Ruhl --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 12 +++- drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c | 4 +++- 2 files changed, 14 insertions(+), 2 deletions(-) diff

[Intel-gfx] [PATCH 1/2] drm/i915/gem: Correct the locking and pin pattern for dma-buf

2021-07-01 Thread Michael J. Ruhl
support and move the pinning into the attach/detach path. Reported-by: Michael J. Ruhl Signed-off-by: Thomas Hellström Signed-off-by: Michael J. Ruhl --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c| 46 ++-- .../drm/i915/gem/selftests/i915_gem_dmabuf.c | 111 +- 2 files

[Intel-gfx] [PATCH 2/2] drm/i915/gem: Migrate to system at dma-buf attach time

2021-07-01 Thread Michael J. Ruhl
() callback. v4: - Migrate in attach Signed-off-by: Thomas Hellström Signed-off-by: Michael J. Ruhl --- drivers/gpu/drm/i915/gem/i915_gem_dmabuf.c | 12 +++- drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c | 4 +++- 2 files changed, 14 insertions(+), 2 deletions(-) diff

[Intel-gfx] [PATCH v2] drm/i915: Refactor setting dma info to a common helper

2020-04-17 Thread Michael J. Ruhl
nfo configuration, updating open code call sequence to the latest interface, refactoring into a common function for setting the dma segment and mask info Reviewed-by: Chris Wilson Signed-off-by: Michael J. Ruhl cc: Brian Welty cc: Daniele Ceraolo Spurio --- v1: removed i915 depenancy from agp path

[Intel-gfx] [PATCH v1] drm/i915: Refactor setting dma info to a common helper

2020-04-17 Thread Michael J. Ruhl
nfo configuration, updating open code call sequence to the latest interface, refactoring into a common function for setting the dma segment and mask info Signed-off-by: Michael J. Ruhl cc: Brian Welty cc: Daniele Ceraolo Spurio --- v1: removed i915 depenancy from agp path for dma mask Consolida

[Intel-gfx] [PATCH] drm/i915: Refactor dma mask usage to a common helper

2020-04-17 Thread Michael J. Ruhl
interface, refactoring into a common function for setting the dma_mask Note: GEN(5) and down is also set in intel_gmch_probe(). Signed-off-by: Michael J. Ruhl cc: Brian Welty cc: Daniele Ceraolo Spurio --- drivers/gpu/drm/i915/gt/intel_ggtt.c | 15 -- drivers/gpu/drm/i915