diff options
| author | Matthew Auld <[email protected]> | 2022-07-11 08:58:59 +0000 |
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2022-07-12 22:21:45 +0000 |
| commit | aff1e0b09b54b64944b7fe32997229552737b9e9 (patch) | |
| tree | a432f3acba939bf7927d6c51322ad33caf8c7c4c /net/unix/af_unix.c | |
| parent | drm/i915/selftests: fix a couple IS_ERR() vs NULL tests (diff) | |
| download | kernel-aff1e0b09b54b64944b7fe32997229552737b9e9.tar.gz kernel-aff1e0b09b54b64944b7fe32997229552737b9e9.zip | |
drm/i915/ttm: fix sg_table construction
If we encounter some monster sized local-memory page that exceeds the
maximum sg length (UINT32_MAX), ensure that don't end up with some
misaligned address in the entry that follows, leading to fireworks
later. Also ensure we have some coverage of this in the selftests.
v2(Chris):
- Use round_down consistently to avoid udiv errors
v3(Nirmoy):
- Also update the max_segment in the selftest
Fixes: f701b16d4cc5 ("drm/i915/ttm: add i915_sg_from_buddy_resource")
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6379
Signed-off-by: Matthew Auld <[email protected]>
Cc: Thomas Hellström <[email protected]>
Cc: Nirmoy Das <[email protected]>
Reviewed-by: Nirmoy Das <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit bc99f1209f19fefa3ee11e77464ccfae541f4291)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
