diff options
| author | Jason Gunthorpe <[email protected]> | 2020-10-28 19:15:26 +0000 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2020-11-02 13:42:57 +0000 |
| commit | 7a60c2dd0f575ab14a457e99582af0ca1e072a74 (patch) | |
| tree | e243aaf15c18c1a8e45528884ffcc7caf398f6f1 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | gpu/drm: delete same check in if condition (diff) | |
| download | kernel-7a60c2dd0f575ab14a457e99582af0ca1e072a74.tar.gz kernel-7a60c2dd0f575ab14a457e99582af0ca1e072a74.zip | |
drm: Remove SCATTERLIST_MAX_SEGMENT
Since commit 9a40401cfa13 ("lib/scatterlist: Do not limit max_segment to
PAGE_ALIGNED values") the max_segment input to sg_alloc_table_from_pages()
does not have to be any special value. The new algorithm will always
create something less than what the user provides. Thus eliminate this
confusing constant.
- vmwgfx should use the HW capability, not mix in the OS page size for
calling dma_set_max_seg_size()
- i915 uses i915_sg_segment_size() both for sg_alloc_table_from_pages
and for some open coded sgl construction. This doesn't change the value
since rounddown(size, UINT_MAX) == SCATTERLIST_MAX_SEGMENT
- drm_prime_pages_to_sg uses it as a default if max_segment is zero,
UINT_MAX is fine to use directly.
Cc: Gerd Hoffmann <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Thomas Hellstrom <[email protected]>
Cc: Qian Cai <[email protected]>
Cc: "Ursulin, Tvrtko" <[email protected]>
Suggested-by: Christoph Hellwig <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
0 files changed, 0 insertions, 0 deletions
