diff options
author | 2024-08-07 11:45:53 +0100 | |
---|---|---|
committer | 2024-08-08 10:49:27 +0100 | |
commit | cecab0bb737fb74813733f2472761fc3a93857b1 (patch) | |
tree | dbe7063cd70946a9e2833dbd0969e8bb113b74c1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/i915: 2 GiB of relocations ought to be enough for anybody* (diff) | |
download | linux-rng-cecab0bb737fb74813733f2472761fc3a93857b1.tar.xz linux-rng-cecab0bb737fb74813733f2472761fc3a93857b1.zip |
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 <Jonathan.cavitt@intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Krzysztof Niemiec <krzysztof.niemiec@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240807104553.481763-1-andi.shyti@linux.intel.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions