diff options
author | Andi Shyti <[email protected]> | 2024-08-07 11:45:53 +0100 |
---|---|---|
committer | Andi Shyti <[email protected]> | 2024-08-08 10:49:27 +0100 |
commit | cecab0bb737fb74813733f2472761fc3a93857b1 (patch) | |
tree | dbe7063cd70946a9e2833dbd0969e8bb113b74c1 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 0829b5bcdd3ba077c408e71e22ac2bfa85bf2c95 (diff) |
drm/i915/gem: Improve pfn calculation readability in vm_fault_gtt()
By moving the pfn calculation to the set_address_limits()
function we improve code readability. This way,
set_address_limits() is responsible for calculating all memory
mapping paramenters: "start", "end" and "pfn".
This suggestion from Jonathan was made during the review of
commit 8bdd9ef7e9b1 ("drm/i915/gem: Fix Virtual Memory mapping
boundaries calculation"), which I liked, but it got lost on the
way.
Suggested-by: Jonathan Cavitt <[email protected]>
Signed-off-by: Andi Shyti <[email protected]>
Reviewed-by: Krzysztof Niemiec <[email protected]>
Reviewed-by: Jonathan Cavitt <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions