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
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
While studying this code I noticed a few inconsistencies and possible
cleanups.
Please consider these patches.
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
() 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
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
() 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
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
() 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
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
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
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
12 matches
Mail list logo